/**
 * 拾光主题 · 首页 + 文章列表页样式
 * 卡片样式已移到 cards.css
 */

/* ============================================================
   Hero
   ============================================================ */

.sg-hero{
  padding: 80px 0 40px;
  position: relative;
  z-index: 1;
}

.sg-hero-inner{
  display: grid;
  grid-template-columns: 1fr 480px;
  gap: 60px;
  align-items: center;
}

.sg-hero-title{
  font-size: clamp(38px, 5vw, 60px);
  font-weight: 700;
  letter-spacing: -.038em;
  line-height: 1.05;
  margin-bottom: 20px;
  background: linear-gradient(180deg, #1d1d1f 0%, #48484d 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.sg-accent-text{
  background: var(--sg-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.sg-hero-desc{
  font-size: 17px;
  color: var(--sg-text-2);
  max-width: 480px;
  line-height: 1.62;
  margin-bottom: 32px;
}

.sg-hero-actions{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.sg-btn{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  border-radius: 13px;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all var(--sg-dur-base) var(--sg-ease);
  letter-spacing: -.005em;
}

.sg-btn-primary{
  color: #fff;
  background: var(--sg-brand);
  box-shadow: var(--sg-shadow-brand);
  position: relative;
  overflow: hidden;
}

.sg-btn-primary::before{
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent, rgba(255, 255, 255, .35), transparent);
  transform: translateX(-100%);
  transition: transform .6s ease;
}

.sg-btn-primary:hover::before{ transform: translateX(100%); }
.sg-btn-primary:hover{
  transform: translateY(-2px);
  box-shadow: 0 14px 38px rgba(59, 91, 253, .38);
}

.sg-btn-ghost{
  color: var(--sg-text);
  background: var(--sg-glass-bg-strong);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid var(--sg-glass-border);
  box-shadow: var(--sg-shadow-sm);
}

.sg-btn-ghost:hover{
  transform: translateY(-2px);
  box-shadow: var(--sg-shadow-md);
  border-color: rgba(10, 132, 255, .25);
}

/* Hero 右侧视觉 */
.sg-hero-right{ position: relative; height: 320px; }

.sg-hero-rect{
  position: absolute;
  right: 50px; top: 10px;
  width: 300px; height: 200px;
  border-radius: 24px;
  background: var(--sg-brand);
  transform: rotate(-8deg);
  box-shadow: 0 20px 60px rgba(59, 91, 253, .3);
  overflow: hidden;
}

.sg-hero-rect::before{
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, .25), transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(255, 255, 255, .12), transparent 50%);
}

.sg-hero-rect::after{
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .08) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(circle at center, black, transparent 80%);
  mask-image: radial-gradient(circle at center, black, transparent 80%);
}

.sg-hero-float{
  position: absolute;
  right: 0; top: 110px;
  width: 340px;
  padding: 22px 24px;
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: blur(30px);
  backdrop-filter: blur(30px);
  border: 1px solid rgba(255, 255, 255, .95);
  border-radius: 20px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, .06), 0 20px 60px rgba(0, 0, 0, .08);
  transform: rotate(2deg);
  transition: transform var(--sg-dur-slower) var(--sg-ease);
  text-decoration: none;
  display: block;
  color: inherit;
}

.sg-hero-float:hover{ transform: rotate(0deg) translateY(-3px); }

.sg-hero-float-badge{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--sg-accent);
  background: var(--sg-accent-soft);
  border-radius: 100px;
  margin-bottom: 14px;
}

.sg-hero-float-dot{
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--sg-accent);
  box-shadow: 0 0 6px var(--sg-accent);
}

.sg-hero-float-title{
  font-size: 15px;
  font-weight: 650;
  line-height: 1.45;
  color: var(--sg-text);
  letter-spacing: -.01em;
  margin-bottom: 14px;
}

.sg-hero-float-line{
  height: 7px;
  border-radius: 4px;
  background: linear-gradient(90deg, rgba(0, 0, 0, .08), rgba(0, 0, 0, .03));
  margin-bottom: 8px;
}

.sg-hero-float-line.short{ width: 60%; }

/* ============================================================
   精选大卡区
   ============================================================ */

.sg-featured{
  margin-top: 50px;
  padding-bottom: 20px;
  position: relative;
  z-index: 1;
}

.sg-featured-grid{
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 18px;
}

.sg-featured-main{
  position: relative;
  min-height: 440px;
  border-radius: var(--sg-r-xl);
  background: var(--sg-brand);
  overflow: hidden;
  text-decoration: none;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 12px 40px rgba(59, 91, 253, .22), 0 24px 60px rgba(0, 0, 0, .06);
  transition: transform var(--sg-dur-slower) var(--sg-ease), box-shadow var(--sg-dur-slower) var(--sg-ease);
}

.sg-featured-main:hover{
  transform: translateY(-4px);
  box-shadow: 0 16px 52px rgba(59, 91, 253, .3), 0 32px 80px rgba(0, 0, 0, .09);
}

.sg-featured-main::before{
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 15%, rgba(255, 255, 255, .22), transparent 50%),
    radial-gradient(circle at 80% 85%, rgba(255, 255, 255, .1), transparent 50%);
  pointer-events: none;
}

.sg-featured-main::after{
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: radial-gradient(circle at 30% 40%, black, transparent 75%);
  mask-image: radial-gradient(circle at 30% 40%, black, transparent 75%);
  pointer-events: none;
}

.sg-featured-main-top{
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  position: relative;
  z-index: 2;
}

.sg-featured-badge{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  font-size: 12.5px;
  font-weight: 600;
  color: #fff;
  letter-spacing: .01em;
  background: rgba(255, 255, 255, .16);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 100px;
}

.sg-featured-arrow{
  width: 42px; height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, .16);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, .25);
  color: #fff;
  transition: transform var(--sg-dur-base) var(--sg-ease), background var(--sg-dur-base) var(--sg-ease);
}

.sg-featured-main:hover .sg-featured-arrow{
  transform: translate(3px, -3px);
  background: rgba(255, 255, 255, .24);
}

.sg-featured-main-body{ position: relative; z-index: 2; }

.sg-featured-main-title{
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -.03em;
  color: #fff;
  line-height: 1.05;
  margin-bottom: 6px;
}

.sg-featured-main-subtitle{
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -.015em;
  color: rgba(255, 255, 255, .85);
  margin-bottom: 18px;
}

.sg-featured-main-desc{
  font-size: 14.5px;
  line-height: 1.62;
  color: rgba(255, 255, 255, .82);
  max-width: 440px;
  margin-bottom: 22px;
}

.sg-featured-main-tags{
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

.sg-featured-main-tags span{
  padding: 6px 13px;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, .95);
  background: rgba(255, 255, 255, .14);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 8px;
}

.sg-featured-empty{
  display: flex;
  align-items: center;
  justify-content: center;
}

.sg-empty-inline{
  color: rgba(255, 255, 255, .8);
  font-size: 15px;
}

.sg-featured-side{
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* 视频卡 */
.sg-featured-video{
  flex: 1;
  min-height: 250px;
  position: relative;
  border-radius: var(--sg-r-xl);
  background: var(--sg-glass-bg);
  -webkit-backdrop-filter: blur(26px);
  backdrop-filter: blur(26px);
  border: 1px solid var(--sg-glass-border);
  box-shadow: var(--sg-shadow-sm);
  overflow: hidden;
  transition: all var(--sg-dur-slow) var(--sg-ease);
}

.sg-featured-video::before{
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--sg-glass-highlight);
  z-index: 3;
}

.sg-featured-video-duration{
  position: absolute;
  top: 14px; right: 14px;
  padding: 3px 9px;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  background: rgba(0, 0, 0, .55);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-radius: 6px;
  z-index: 3;
}

.sg-featured-video-meta{
  position: absolute;
  bottom: 14px; left: 16px;
  right: 16px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.sg-featured-video-source{
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  font-size: 10.5px;
  font-weight: 600;
  color: #fff;
  background: rgba(0, 0, 0, .35);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 100px;
}

.sg-featured-video-live{
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #30d158;
}

.sg-featured-video-caption{
  font-size: 12.5px;
  font-weight: 500;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .6);
}

/* ============================================================
   统计条
   ============================================================ */

.sg-stats-row{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.sg-stat-card,
.sg-filter-card{
  position: relative;
  border-radius: var(--sg-r-xl);
  background: var(--sg-glass-bg);
  -webkit-backdrop-filter: blur(26px);
  backdrop-filter: blur(26px);
  border: 1px solid var(--sg-glass-border);
  box-shadow: var(--sg-shadow-sm);
  padding: 24px;
  transition: all var(--sg-dur-slow) var(--sg-ease);
  min-height: 158px;
  display: flex;
  flex-direction: column;
}

.sg-stat-card::before,
.sg-filter-card::before{
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--sg-glass-highlight);
}

.sg-stat-card:hover,
.sg-filter-card:hover{
  transform: translateY(-3px);
  box-shadow: var(--sg-shadow-md);
  border-color: rgba(10, 132, 255, .2);
}

.sg-stat-icon{
  width: 38px; height: 38px;
  border-radius: 11px;
  background: var(--sg-accent-soft);
  border: 1px solid rgba(10, 132, 255, .12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sg-accent);
  margin-bottom: auto;
}

.sg-stat-num{
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.05;
  margin-top: 14px;
  margin-bottom: 5px;
  background: var(--sg-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.sg-stat-label{
  font-size: 12.5px;
  font-weight: 500;
  color: var(--sg-text-3);
}

.sg-filter-title{
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -.012em;
  color: var(--sg-text);
  margin-bottom: 4px;
}

.sg-filter-sub{
  font-size: 12.5px;
  font-weight: 500;
  color: var(--sg-text-3);
  margin-bottom: auto;
}

.sg-filter-platforms{
  display: flex;
  gap: 6px;
  margin-top: 14px;
}

.sg-filter-platforms a{
  width: 32px; height: 32px;
  border-radius: 9px;
  background: rgba(0, 0, 0, .04);
  border: 1px solid rgba(0, 0, 0, .05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sg-text-2);
  transition: all var(--sg-dur-fast) var(--sg-ease);
}

.sg-filter-platforms a:hover{
  background: var(--sg-accent-soft);
  border-color: rgba(10, 132, 255, .18);
  color: var(--sg-accent);
}

/* ============================================================
   Tab
   ============================================================ */

.sg-content{
  position: relative;
  z-index: 1;
  padding-bottom: 100px;
}

.sg-tabs-wrap{
  display: flex;
  justify-content: center;
  margin: 52px auto 42px;
}

.sg-tabs{
  display: flex;
  gap: 3px;
  padding: 4px;
  background: rgba(255, 255, 255, .72);
  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: blur(22px);
  border: 1px solid var(--sg-glass-border);
  border-radius: 100px;
  box-shadow: var(--sg-shadow-sm);
}

.sg-tab{
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 24px;
  font-size: 14px;
  font-weight: 600;
  color: var(--sg-text-2);
  background: transparent;
  border: none;
  border-radius: 100px;
  cursor: pointer;
  transition: all var(--sg-dur-base) var(--sg-ease);
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
}

.sg-tab:hover{ color: var(--sg-text); }

.sg-tab.active{
  color: #fff;
  background: var(--sg-brand);
  box-shadow: 0 3px 12px rgba(59, 91, 253, .3);
}

.sg-tab svg{ flex-shrink: 0; }

.sg-panel{ display: none; }
.sg-panel.active{
  display: block;
  animation: sg-fade-up .45s var(--sg-ease);
}

@keyframes sg-fade-up{
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* 瀑布流容器（列数不同页面不同） */
.sg-masonry{
  column-count: 5;
  column-gap: 14px;
  padding-top: 4px;
  padding-bottom: 20px;
}

.sg-article-list{
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 20px;
}

/* 加载更多 */
.sg-load-more-wrap{
  display: flex;
  justify-content: center;
  padding: 32px 24px 0;
}

.sg-load-more{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 30px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  color: var(--sg-text);
  background: var(--sg-glass-bg-strong);
  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: blur(22px);
  border: 1px solid var(--sg-glass-border);
  border-radius: 100px;
  cursor: pointer;
  box-shadow: var(--sg-shadow-sm);
  transition: all var(--sg-dur-base) var(--sg-ease);
}

.sg-load-more:hover{
  transform: translateY(-2px);
  box-shadow: var(--sg-shadow-md);
  border-color: rgba(10, 132, 255, .28);
  color: var(--sg-accent);
}

.sg-load-more:active{ transform: scale(.97); }
.sg-load-more.loading{ opacity: .7; pointer-events: none; }
.sg-load-more.loading svg{ animation: sg-spin 1s linear infinite; }

@keyframes sg-spin{ to { transform: rotate(360deg); } }

/* 空状态 */
.sg-empty-state{
  padding: 60px 24px;
  text-align: center;
}

.sg-empty-state-visual{
  position: relative;
  width: 120px; height: 120px;
  margin: 0 auto 22px;
}

.sg-empty-state-visual::before{
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 24px;
  border: 2px dashed rgba(10, 132, 255, .22);
  background: rgba(10, 132, 255, .03);
}

.sg-empty-state-ring{
  position: absolute;
  top: 50%; left: 50%;
  width: 52px; height: 52px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 3px solid rgba(10, 132, 255, .12);
  border-top-color: var(--sg-accent);
  animation: sg-empty-spin 1.2s linear infinite;
}

@keyframes sg-empty-spin{
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.sg-empty-state-icon{
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 20px; height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sg-accent);
}

.sg-empty-state h3{
  font-size: 18px;
  font-weight: 650;
  color: var(--sg-text);
  margin-bottom: 8px;
}

.sg-empty-state p{
  font-size: 13.5px;
  color: var(--sg-text-2);
  line-height: 1.6;
  max-width: 320px;
  margin: 0 auto;
}

/* ============================================================
   文章列表页 /blog/
   ============================================================ */

.sg-blog-page{
  position: relative;
  z-index: 1;
  padding-bottom: 100px;
}

.sg-blog-header{ padding: 40px 0 0; }

.sg-blog-header-card{
  position: relative;
  padding: 40px 48px 32px;
  border-radius: 32px;
  background: var(--sg-brand);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(59, 91, 253, .26);
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 48px;
  align-items: center;
}

.sg-blog-header-card::before{
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 10% 10%, rgba(255,255,255,.28), transparent 45%),
    radial-gradient(circle at 90% 90%, rgba(255,255,255,.1), transparent 50%);
  pointer-events: none;
}

.sg-blog-header-card::after{
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(circle at 20% 30%, black, transparent 75%);
  mask-image: radial-gradient(circle at 20% 30%, black, transparent 75%);
  pointer-events: none;
}

.sg-blog-header-content{ position: relative; z-index: 2; min-width: 0; }

.sg-blog-header-label{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  letter-spacing: .04em;
  background: rgba(255,255,255,.16);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 100px;
  margin-bottom: 22px;
  text-transform: uppercase;
}

.sg-blog-header-content h1{
  font-size: 46px;
  font-weight: 700;
  letter-spacing: -.036em;
  color: #fff;
  line-height: 1.05;
  margin-bottom: 14px;
}

.sg-blog-header-content p{
  font-size: 15px;
  line-height: 1.65;
  color: rgba(255,255,255,.82);
  max-width: 520px;
}

.sg-blog-header-deco{
  position: relative;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sg-blog-deco-ring{
  position: absolute;
  width: 150px; height: 150px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.32);
  box-shadow:
    inset 0 0 30px rgba(255,255,255,.15),
    0 0 40px rgba(255,255,255,.1);
}

.sg-blog-deco-ring::before{
  content: '';
  position: absolute;
  inset: 20px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.22);
}

.sg-blog-deco-ring::after{
  content: '';
  position: absolute;
  inset: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.15);
}

.sg-blog-deco-center{
  position: relative;
  z-index: 2;
  width: 60px; height: 60px;
  border-radius: 18px;
  background: rgba(255,255,255,.2);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 12px 32px rgba(0,0,0,.2);
}

.sg-blog-deco-dot{
  position: absolute;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,.75);
  box-shadow: 0 0 12px rgba(255,255,255,.8);
}

.sg-blog-deco-dot.d1{ top: 10px; left: 50%; margin-left: -3.5px; animation: sg-blog-pulse 2s ease-in-out infinite; }
.sg-blog-deco-dot.d2{ bottom: 10px; left: 50%; margin-left: -3.5px; animation: sg-blog-pulse 2s ease-in-out infinite .5s; }
.sg-blog-deco-dot.d3{ left: 10px; top: 50%; margin-top: -3.5px; animation: sg-blog-pulse 2s ease-in-out infinite 1s; }
.sg-blog-deco-dot.d4{ right: 10px; top: 50%; margin-top: -3.5px; animation: sg-blog-pulse 2s ease-in-out infinite 1.5s; }

@keyframes sg-blog-pulse{
  0%, 100% { opacity: .4; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.35); }
}

.sg-blog-masonry{
  margin-top: 40px;
  column-count: 4;
  column-gap: 18px;
  padding-bottom: 20px;
}

.sg-blog-masonry > .sg-card{ margin-bottom: 18px; }

/* ============================================================
   响应式
   ============================================================ */

@media (max-width: 1100px){
  .sg-masonry{ column-count: 4; }
  .sg-hero-inner{ grid-template-columns: 1fr 400px; gap: 40px; }
  .sg-hero-right{ height: 280px; }
  .sg-hero-rect{ width: 250px; height: 170px; right: 30px; }
  .sg-hero-float{ width: 290px; padding: 18px 20px; }
  .sg-featured-grid{ grid-template-columns: 1.2fr 1fr; }
  .sg-blog-masonry{ column-count: 3; }
  .sg-blog-header-card{ padding: 32px 36px 28px; grid-template-columns: 1fr 180px; gap: 32px; }
  .sg-blog-header-content h1{ font-size: 38px; }
}

@media (max-width: 860px){
  .sg-hero{ padding: 56px 0 28px; }
  .sg-hero-inner{ grid-template-columns: 1fr; gap: 0; }
  .sg-hero-right{ display: none; }
  .sg-featured-grid{ grid-template-columns: 1fr; }
  .sg-featured-main{ min-height: 360px; padding: 26px; }
  .sg-featured-main-title{ font-size: 32px; }
  .sg-featured-main-subtitle{ font-size: 18px; }
  .sg-masonry{ column-count: 3; column-gap: 12px; }
  .sg-tabs-wrap{ margin: 34px auto 30px; }
  .sg-blog-header-card{ grid-template-columns: 1fr; padding: 28px 28px 24px; gap: 20px; }
  .sg-blog-header-deco{ display: none; }
  .sg-blog-header-content h1{ font-size: 32px; }
  .sg-blog-masonry{ column-count: 2; column-gap: 14px; }
}

@media (max-width: 768px){

  .sg-home,
  .sg-hero,
  .sg-hero-inner,
  .sg-featured,
  .sg-featured-grid{
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: clip;
  }

  .sg-hero-inner{
    display: block;
    grid-template-columns: none;
  }

  .sg-hero-left{ width: 100%; max-width: 100%; }

  .sg-featured-grid{
    display: flex;
    flex-direction: column;
    gap: 14px;
    grid-template-columns: none;
  }

  .sg-featured-main,
  .sg-featured-side,
  .sg-featured-video,
  .sg-stats-row{
    width: 100%;
    max-width: 100%;
    min-width: 0;
    flex-shrink: 0;
    box-sizing: border-box;
  }

  .sg-featured-main,
  .sg-featured-video{ overflow: hidden; }

  .sg-featured-video iframe,
  .sg-bili-frame iframe{
    width: 100% !important;
    max-width: 100% !important;
  }

  .sg-bili{ width: 100%; max-width: 100%; box-sizing: border-box; }

  .sg-hero{ padding: 32px 0 20px; }
  .sg-hero-title{ font-size: 30px; letter-spacing: -.032em; line-height: 1.08; margin-bottom: 12px; }
  .sg-hero-desc{ font-size: 14.5px; margin-bottom: 20px; line-height: 1.55; }
  .sg-hero-actions{ display: flex; gap: 10px; }
  .sg-btn{ flex: 1; justify-content: center; padding: 12px 18px; font-size: 14px; border-radius: 12px; }
  .sg-btn-ghost{ flex: 0.7; }

  .sg-featured{ margin-top: 24px; padding-bottom: 8px; }
  .sg-featured-main{ min-height: auto; padding: 22px; border-radius: 22px; }
  .sg-featured-badge{ padding: 5px 11px; font-size: 11px; }
  .sg-featured-arrow{ width: 34px; height: 34px; }
  .sg-featured-arrow svg{ width: 15px; height: 15px; }
  .sg-featured-main-title{ font-size: 24px; letter-spacing: -.026em; line-height: 1.15; margin-bottom: 6px; }
  .sg-featured-main-subtitle{ font-size: 13.5px; margin-bottom: 12px; }
  .sg-featured-main-desc{
    font-size: 12.5px; line-height: 1.55; margin-bottom: 14px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  }
  .sg-featured-main-tags{ gap: 5px; }
  .sg-featured-main-tags span{ padding: 4px 10px; font-size: 11px; }

  .sg-featured-side{ gap: 12px; }
  .sg-featured-video{ min-height: auto; border-radius: 18px; }

  .sg-stats-row{ grid-template-columns: 1fr 1fr; gap: 12px; }

  .sg-stat-card,
  .sg-filter-card{ padding: 16px; min-height: 118px; border-radius: 18px; }

  .sg-stat-icon{ width: 32px; height: 32px; border-radius: 9px; }
  .sg-stat-icon svg{ width: 15px; height: 15px; }
  .sg-stat-num{ font-size: 22px; margin-top: 10px; margin-bottom: 3px; }
  .sg-stat-label{ font-size: 11px; }
  .sg-filter-title{ font-size: 13px; margin-bottom: 2px; }
  .sg-filter-sub{ font-size: 11px; }
  .sg-filter-platforms{ gap: 5px; margin-top: 10px; }
  .sg-filter-platforms a{ width: 28px; height: 28px; border-radius: 8px; }
  .sg-filter-platforms a svg{ width: 13px; height: 13px; }

  .sg-tabs-wrap{ margin: 32px auto 24px; padding: 0 16px; }
  .sg-tabs{ width: 100%; justify-content: stretch; }
  .sg-tab{ flex: 1; justify-content: center; padding: 9px 0; font-size: 13px; gap: 5px; }
  .sg-tab svg{ width: 13px; height: 13px; }

  .sg-content{ padding-bottom: calc(64px + 60px + env(safe-area-inset-bottom, 0px)); }

  .sg-masonry,
  .sg-article-list{ padding-left: 14px; padding-right: 14px; }

  .sg-masonry{ column-count: 2; column-gap: 10px; }

  /* 文章列表页 */
  .sg-blog-page{ padding-bottom: calc(64px + 40px + env(safe-area-inset-bottom, 0px)); }
  .sg-blog-header{ padding: 20px 0 0; }
  .sg-blog-header-card{ padding: 22px 22px 20px; border-radius: 22px; box-shadow: 0 12px 32px rgba(59, 91, 253, .24); }
  .sg-blog-header-label{ padding: 4px 10px; font-size: 10px; margin-bottom: 14px; }
  .sg-blog-header-content h1{ font-size: 26px; margin-bottom: 8px; }
  .sg-blog-header-content p{ font-size: 12.5px; }
  .sg-blog-masonry{ margin-top: 20px; column-count: 2; column-gap: 10px; }
  .sg-blog-masonry > .sg-card{ margin-bottom: 10px; }
}

@media (max-width: 560px){
  .sg-masonry{ column-count: 2; column-gap: 10px; }
  .sg-hero-title{ font-size: 30px; }
  .sg-hero-desc{ font-size: 14.5px; }
  .sg-btn{ padding: 12px 20px; font-size: 14px; }
  .sg-stats-row{ gap: 12px; }
  .sg-stat-card,
  .sg-filter-card{ padding: 18px; min-height: 130px; }
  .sg-stat-num{ font-size: 26px; }
  .sg-tab{ padding: 8px 16px; font-size: 13px; }
  .sg-featured-main{ min-height: 300px; padding: 22px; }
  .sg-featured-main-title{ font-size: 26px; }
  .sg-featured-main-subtitle{ font-size: 15px; }
  .sg-featured-main-desc{ font-size: 13px; }
}