/* ==========================================================================
 * css/sunrain-guide.css — 《今天是太阳雨》官方物料指路台
 * 视觉母题：门厅第五扇门（深色卡片 + 细杆 + 错落箭头路牌）
 * 双强调色：暖金（国内源） / 晴青（海外可直达）
 * 六档字号：12 / 13 / 14 / 16 / 18 / 22px + 首屏流式主标题
 * ========================================================================== */

.sg-body {
  --sg-surface: #FFFFFF;
  --sg-soft: #EFEDE7;
  --sg-muted: #58645E;
  --sg-line: rgba(20, 24, 22, 0.1);
  --sg-line-strong: rgba(20, 24, 22, 0.2);

  /* 暖金（国内源）：文字严格用 #B45309，色块/线条/图标用 #D97706 与 #F5B952 */
  --sg-cn-text: #B45309;
  --sg-cn-icon: #D97706;
  --sg-cn-fill: #FFF9EC;
  --sg-cn-fill-hover: #FFF3D8;
  --sg-cn-border: rgba(217, 119, 6, 0.34);

  /* 晴青（海外可直达）：文字严格用 #0369A1 */
  --sg-global-text: #0369A1;
  --sg-global-icon: #0284C7;
  --sg-global-fill: #F0F8FD;
  --sg-global-fill-hover: #E1F2FC;
  --sg-global-border: rgba(2, 132, 199, 0.3);

  /* 亮金路牌质感 */
  --sg-gold-bright: #F5B952;
  --sg-gold-bright-hover: #F7C56D;
  --sg-gold-ink: #141816;

  /* 卡片投影（全页仅三处使用：正片与官号方块、唱片套栏、补充路牌卡） */
  --sg-shadow: 0 1px 2px rgba(20, 24, 22, 0.05), 0 8px 22px -16px rgba(20, 24, 22, 0.16);
  --sg-shadow-hover: 0 4px 12px -6px rgba(20, 24, 22, 0.12), 0 14px 28px -18px rgba(217, 119, 6, 0.22);

  /* 路牌细杆与米白牌 */
  --sg-pole-bg: linear-gradient(180deg, #3A4248 0%, #1F252A 100%);
  --sg-plaque-paper: #FFFDF8;
  --sg-plaque-edge: rgba(20, 24, 22, 0.24);
  --sg-row-hover: rgba(217, 119, 6, 0.035);
  --sg-access-bg: #FFFFFF;
  --sg-access-text: #48544E;
  --sg-access-border: rgba(217, 119, 6, 0.24);

  min-height: 100vh;
  background-color: var(--bg-base);
  color: var(--ink-primary);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.6;
  overflow-x: clip;
  padding-bottom: 48px;
  -webkit-font-smoothing: antialiased;
}

.sg-body[data-theme="dark"] {
  --sg-surface: #141B23;
  --sg-soft: #131920;
  --sg-muted: #93A4B6;
  --sg-line: rgba(255, 255, 255, 0.1);
  --sg-line-strong: rgba(255, 255, 255, 0.22);

  --sg-cn-text: #F5B952;
  --sg-cn-icon: #F5B952;
  --sg-cn-fill: rgba(245, 185, 82, 0.12);
  --sg-cn-fill-hover: rgba(245, 185, 82, 0.2);
  --sg-cn-border: rgba(245, 185, 82, 0.34);

  --sg-global-text: #38BDF8;
  --sg-global-icon: #38BDF8;
  --sg-global-fill: rgba(56, 189, 248, 0.12);
  --sg-global-fill-hover: rgba(56, 189, 248, 0.2);
  --sg-global-border: rgba(56, 189, 248, 0.34);

  --sg-shadow: 0 10px 26px -18px rgba(0, 0, 0, 0.72);
  --sg-shadow-hover: 0 14px 32px -16px rgba(0, 0, 0, 0.85);

  --sg-pole-bg: linear-gradient(180deg, rgba(243, 246, 249, 0.68) 0%, rgba(243, 246, 249, 0.28) 100%);
  --sg-plaque-paper: #EEECE4;
  --sg-plaque-edge: rgba(0, 0, 0, 0.4);
  --sg-row-hover: rgba(245, 185, 82, 0.045);
  --sg-access-bg: rgba(11, 15, 19, 0.62);
  --sg-access-text: #F5B952;
  --sg-access-border: rgba(245, 185, 82, 0.28);
}

/* 零优先级重置，绝不压过各按钮自身字号与字重 */
:where(.sg-body a) {
  color: inherit;
  text-decoration: none;
}

:where(.sg-body button, .sg-body input) {
  font-family: inherit;
  color: inherit;
}

:where(.sg-body button) {
  background: none;
  border: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

:where(.sg-body ol, .sg-body ul) {
  list-style: none;
}

.sg-body [hidden] {
  display: none !important;
}

.sg-body :focus-visible {
  outline: 2px solid var(--sg-cn-icon);
  outline-offset: 2px;
}

.sg-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* 纯数字等宽类（中文一律不套等宽、不拉字距） */
.sg-num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* 跳至正文 */
.sg-skip-link {
  position: fixed;
  top: -80px;
  left: 16px;
  z-index: 95;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 10px;
  background: var(--ink-primary);
  color: var(--bg-base);
  font-size: 13px;
  font-weight: 600;
}

.sg-skip-link:focus {
  top: 12px;
}

/* ==========================================================================
 * 渐进增强：仅脚本生效时显示的控件（无 sg-js 时全部隐藏，内容完全展开）
 * ========================================================================== */
#btnThemeToggle,
#btnCopyPageUrl,
.sg-toolbar,
#sgCatTabs,
.sg-search,
#btnGlobalOnly,
.sg-copy,
.sg-group-more,
.sg-result-tip {
  display: none;
}

html.sg-js #btnThemeToggle,
html.sg-js #btnCopyPageUrl,
html.sg-js #btnGlobalOnly,
html.sg-js .sg-copy {
  display: inline-flex;
}

html.sg-js .sg-toolbar {
  display: flex;
}

html.sg-js #sgCatTabs {
  display: flex;
}

html.sg-js .sg-search {
  display: flex;
}

html.sg-js .sg-result-tip {
  display: inline;
}

/* 分组收起规则：仅在 html.sg-js 且 data-view="all" 且未展开时生效 */
html.sg-js #sgCatalog[data-view="all"] .sg-group:not(.is-open) .sg-row:nth-child(n+5) {
  display: none;
}

html.sg-js #sgCatalog[data-view="all"] .sg-group:not(.is-open) .sg-group-more {
  display: inline-flex;
}

/* ==========================================================================
 * 太阳雨极简天光背景
 * ========================================================================== */
.sg-sunwash {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(840px 420px at 88% -8%, rgba(245, 185, 82, 0.2), transparent 66%),
    radial-gradient(720px 380px at 8% 2%, rgba(56, 189, 248, 0.09), transparent 64%);
}

.sg-body[data-theme="dark"] .sg-sunwash {
  background:
    radial-gradient(840px 420px at 88% -10%, rgba(245, 185, 82, 0.1), transparent 66%),
    radial-gradient(720px 380px at 8% 2%, rgba(56, 189, 248, 0.07), transparent 64%);
}

.sg-rainveil {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.24;
  background-image: repeating-linear-gradient(
    -74deg,
    transparent 0,
    transparent 42px,
    rgba(20, 24, 22, 0.025) 42px,
    rgba(20, 24, 22, 0.025) 43px
  );
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.72) 0%, transparent 52%);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.72) 0%, transparent 52%);
}

.sg-body[data-theme="dark"] .sg-rainveil {
  opacity: 0.18;
  background-image: repeating-linear-gradient(
    -74deg,
    transparent 0,
    transparent 42px,
    rgba(255, 255, 255, 0.03) 42px,
    rgba(255, 255, 255, 0.03) 43px
  );
}

.sg-wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
 * 吸顶栏（电脑一行；≤960px 导航折到第二行均分排开）
 * ========================================================================== */
.sg-topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--bg-glass);
  -webkit-backdrop-filter: blur(16px) saturate(1.15);
  backdrop-filter: blur(16px) saturate(1.15);
  border-bottom: 1px solid var(--sg-line);
}

.sg-topbar-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
  padding-top: 8px;
  padding-bottom: 8px;
}

.sg-brand-group {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex-shrink: 0;
}

.sg-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--sg-line-strong);
  background: var(--sg-surface);
  color: var(--ink-secondary);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: border-color 0.18s ease, color 0.18s ease, transform 0.18s var(--ea-out);
}

.sg-back-btn:hover {
  color: var(--ink-primary);
  border-color: var(--sg-cn-icon);
}

.sg-back-btn:active {
  transform: scale(0.97);
}

.sg-back-short {
  display: none;
}

.sg-masthead {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 900;
  color: var(--ink-primary);
  white-space: nowrap;
}

.sg-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.sg-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-secondary);
  white-space: nowrap;
  transition: color 0.16s ease, background-color 0.16s ease;
}

.sg-nav a:hover {
  color: var(--ink-primary);
  background: var(--sg-soft);
}

.sg-nav a:active {
  transform: scale(0.97);
}

.sg-nav a.is-current {
  color: var(--ink-primary);
  font-weight: 700;
}

.sg-nav a.is-current::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 2px;
  height: 2.5px;
  border-radius: 99px;
  background: var(--sg-cn-icon);
}

.sg-top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.sg-share-btn {
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 13px;
  border-radius: 999px;
  border: 1px solid var(--sg-line-strong);
  background: var(--sg-surface);
  color: var(--ink-secondary);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: border-color 0.18s ease, color 0.18s ease, transform 0.16s ease;
}

.sg-share-btn:hover {
  border-color: var(--sg-cn-icon);
  color: var(--ink-primary);
}

.sg-share-btn:active {
  transform: scale(0.96);
}

/* 换肤胶囊：继承 tokens.css 结构，触控高度收齐到 36px */
.sg-topbar .bui-theme-pill {
  height: 36px;
  padding: 3px;
  border-color: var(--sg-line-strong);
  transition: transform 0.16s ease;
}

.sg-topbar .bui-theme-pill:active {
  transform: scale(0.96);
}

.sg-topbar .bui-theme-thumb {
  top: 3px;
  left: 3px;
  width: 28px;
  height: 28px;
}

.sg-body[data-theme="dark"] .sg-topbar .bui-theme-thumb {
  transform: translateX(30px);
}

.sg-topbar .bui-theme-icon {
  width: 28px;
  height: 28px;
  font-size: 14px;
}

/* ==========================================================================
 * 首屏 · 报头与门厅第五扇门同源路标卡
 * ========================================================================== */
.sg-main {
  position: relative;
  z-index: 1;
}

.sg-hero {
  padding: 40px 0 28px;
}

.sg-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.92fr);
  gap: 40px;
  align-items: center;
}

.sg-kicker {
  font-size: 14px;
  font-weight: 700;
  color: var(--sg-cn-text);
  margin-bottom: 10px;
}

.sg-hero-title {
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: clamp(32px, 4.4vw, 50px);
  line-height: 1.14;
  color: var(--ink-primary);
}

.sg-hero-accent {
  position: relative;
  display: inline-block;
  color: var(--sg-cn-text);
  z-index: 1;
}

.sg-hero-accent::after {
  content: "";
  position: absolute;
  left: -2px;
  right: -2px;
  bottom: 0.08em;
  height: 0.16em;
  border-radius: 99px;
  background: linear-gradient(90deg, rgba(245, 185, 82, 0.56), rgba(56, 189, 248, 0.28));
  z-index: -1;
}

.sg-body[data-theme="dark"] .sg-hero-accent::after {
  background: linear-gradient(90deg, rgba(245, 185, 82, 0.26), rgba(56, 189, 248, 0.2));
}

.sg-hero-lead {
  margin-top: 16px;
  max-width: 35em;
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-secondary);
}

.sg-hero-stats {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid var(--sg-line);
  font-size: 13px;
  line-height: 1.6;
  color: var(--sg-muted);
}

/* 路标卡（呼应 lobby.css .leaf-og 与 .leaf-signs） */
.sg-signpost-card {
  position: relative;
  border-radius: 18px;
  padding: 18px 20px 20px;
  color: #F4F6F8;
  background:
    radial-gradient(120% 75% at 100% 0%, rgba(245, 185, 82, 0.22), transparent 62%),
    radial-gradient(95% 75% at 6% 100%, rgba(56, 189, 248, 0.1), transparent 58%),
    linear-gradient(162deg, #1E262D 0%, #0F1419 100%);
  border: 1px solid rgba(255, 255, 255, 0.11);
  box-shadow: 0 22px 44px -26px rgba(10, 14, 18, 0.65);
}

.sg-signpost-hint {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 14px;
}

.sg-signpost-stage {
  position: relative;
  padding: 4px 0 4px 16px;
}

.sg-pole {
  position: absolute;
  left: 7px;
  top: -2px;
  bottom: -2px;
  width: 3px;
  border-radius: 99px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.25));
}

.sg-pole::before {
  content: "";
  position: absolute;
  top: -3px;
  left: -2px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #F5B952;
}

.sg-signs {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sg-sign {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 40px;
  padding: 6px 24px 6px 18px;
  color: #141816;
  -webkit-clip-path: polygon(0 0, calc(100% - 13px) 0, 100% 50%, calc(100% - 13px) 100%, 0 100%);
  clip-path: polygon(0 0, calc(100% - 13px) 0, 100% 50%, calc(100% - 13px) 100%, 0 100%);
  transition: transform 0.22s var(--ea-out), filter 0.18s ease;
}

.sg-sign::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 50%;
  width: 4px;
  height: 4px;
  margin-top: -2px;
  border-radius: 50%;
  background: rgba(20, 24, 22, 0.32);
}

.sg-sign.is-gold {
  background: linear-gradient(95deg, #F5B952 0%, #EFA835 100%);
}

.sg-sign.is-paper {
  background: #F5F3ED;
}

.sg-sign.is-sky {
  background: linear-gradient(95deg, #D4ECF8 0%, #F4E3BC 100%);
}

/* 错落宽度（手机端同样保持错落） */
.sg-sign-w1 { width: 94%; }
.sg-sign-w2 { width: 85%; }
.sg-sign-w3 { width: 81%; }
.sg-sign-w4 { width: 91%; }
.sg-sign-w5 { width: 86%; }
.sg-sign-w6 { width: 89%; }
.sg-sign-w7 { width: 98%; }

.sg-sign:hover {
  transform: translateX(6px);
  filter: brightness(1.04);
}

.sg-sign:active {
  transform: translateX(3px) scale(0.99);
}

.sg-sign-zh {
  font-size: 14px;
  font-weight: 700;
  color: #141816;
  white-space: nowrap;
}

.sg-sign-en {
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.sg-sign.is-gold .sg-sign-en {
  color: #2D220D;
}

.sg-sign.is-paper .sg-sign-en {
  color: #46504B;
}

.sg-sign.is-sky .sg-sign-en {
  color: #2A3B44;
}

/* ==========================================================================
 * 通用分区报头：细杆 + 箭头路牌标题（无 01/02/03 编号）
 * ========================================================================== */
.sg-sec {
  padding: 36px 0 18px;
  scroll-margin-top: 76px;
}

.sg-sec-head {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 28px;
  margin-bottom: 24px;
  border-top: 1px solid var(--sg-line-strong);
}

.sg-plaque-post {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 4px 0 4px 10px;
  flex-shrink: 0;
}

.sg-plaque-pole {
  position: absolute;
  left: 2px;
  top: -4px;
  bottom: -6px;
  width: 3px;
  border-radius: 99px;
  background: var(--sg-pole-bg);
}

.sg-plaque-pole::before {
  content: "";
  position: absolute;
  top: -3px;
  left: -2px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sg-gold-bright);
}

.sg-plaque-wrap {
  filter: drop-shadow(0 0 0.75px var(--sg-plaque-edge)) drop-shadow(0 4px 10px rgba(20, 24, 22, 0.08));
}

.sg-plaque {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 8px 34px 8px 20px;
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 900;
  line-height: 1.25;
  color: #141816;
  white-space: nowrap;
  -webkit-clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 50%, calc(100% - 16px) 100%, 0 100%);
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 50%, calc(100% - 16px) 100%, 0 100%);
}

.sg-plaque::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 50%;
  width: 4px;
  height: 4px;
  margin-top: -2px;
  border-radius: 50%;
  background: rgba(20, 24, 22, 0.34);
}

.sg-plaque.is-gold {
  background: linear-gradient(95deg, #F5B952 0%, #EFA835 100%);
}

.sg-plaque.is-paper {
  background: var(--sg-plaque-paper);
}

.sg-plaque.is-sky {
  background: linear-gradient(95deg, #D4ECF8 0%, #F4E3BC 100%);
}

.sg-sec-intro {
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-secondary);
  max-width: 44em;
}

/* ==========================================================================
 * 第一区 · 正片与官号（全页三处阴影卡片之一）
 * ========================================================================== */
.sg-hubs-block + .sg-hubs-block {
  margin-top: 26px;
}

.sg-subhead {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-primary);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sg-subhead::before {
  content: "";
  width: 12px;
  height: 2px;
  border-radius: 99px;
  background: var(--sg-cn-icon);
  flex-shrink: 0;
}

.sg-watch-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.sg-watch-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px;
  border-radius: 14px;
  background: var(--sg-surface);
  border: 1px solid var(--sg-line);
  box-shadow: var(--sg-shadow);
  transition: transform 0.2s var(--ea-out), border-color 0.18s ease, box-shadow 0.2s ease;
}

.sg-watch-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--sg-shadow-hover);
}

.sg-watch-card[data-scope="cn"]:hover {
  border-color: var(--sg-cn-icon);
}

.sg-watch-card[data-scope="global"]:hover {
  border-color: var(--sg-global-icon);
}

.sg-watch-card:active {
  transform: scale(0.985);
}

.sg-watch-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 2px;
}

.sg-watch-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.sg-watch-card[data-scope="cn"] .sg-watch-badge {
  background: var(--sg-cn-fill);
  color: var(--sg-cn-text);
}

.sg-watch-card[data-scope="cn"] .sg-watch-badge i {
  color: var(--sg-cn-icon);
}

.sg-watch-card[data-scope="global"] .sg-watch-badge {
  background: var(--sg-global-fill);
  color: var(--sg-global-text);
}

.sg-watch-card[data-scope="global"] .sg-watch-badge i {
  color: var(--sg-global-icon);
}

.sg-card-arrow {
  font-size: 16px;
  color: var(--sg-muted);
  flex-shrink: 0;
  transition: transform 0.2s var(--ea-out), color 0.18s ease;
}

.sg-watch-card:hover .sg-card-arrow {
  transform: translate(2px, -2px);
  color: var(--ink-primary);
}

.sg-watch-name {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.35;
  color: var(--ink-primary);
}

.sg-watch-line {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--ink-secondary);
}

.sg-watch-desc {
  margin-top: 2px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--sg-muted);
}

/* 官方账号与资料页：电脑四列，手机两列 */
.sg-account-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.sg-account-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 13px;
  border-radius: 12px;
  background: var(--sg-surface);
  border: 1px solid var(--sg-line);
  box-shadow: var(--sg-shadow);
  transition: transform 0.18s var(--ea-out), border-color 0.18s ease, box-shadow 0.2s ease;
}

.sg-account-card:hover {
  transform: translateY(-1px);
  box-shadow: var(--sg-shadow-hover);
}

.sg-account-card[data-scope="cn"]:hover {
  border-color: var(--sg-cn-icon);
}

.sg-account-card[data-scope="global"]:hover {
  border-color: var(--sg-global-icon);
}

.sg-account-card:active {
  transform: scale(0.985);
}

.sg-account-ic {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.sg-account-card[data-scope="cn"] .sg-account-ic {
  background: var(--sg-cn-fill);
  color: var(--sg-cn-icon);
}

.sg-account-card[data-scope="global"] .sg-account-ic {
  background: var(--sg-global-fill);
  color: var(--sg-global-icon);
}

.sg-account-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.sg-account-name {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink-primary);
  overflow-wrap: break-word;
}

.sg-account-desc {
  font-size: 12px;
  line-height: 1.45;
  color: var(--sg-muted);
}

/* ==========================================================================
 * 第二区 · 物料目录（无外框卡片，节目单排布）
 * ========================================================================== */
.sg-toolbar {
  flex-direction: column;
  gap: 12px;
  margin-bottom: 14px;
}

.sg-cat-tabs {
  flex-wrap: wrap;
  gap: 8px;
}

.sg-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--sg-line-strong);
  background: var(--sg-surface);
  color: var(--ink-secondary);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.14s ease;
}

.sg-tab:hover {
  border-color: var(--ink-primary);
  color: var(--ink-primary);
}

.sg-tab:active {
  transform: scale(0.97);
}

.sg-tab-n {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  font-weight: 600;
  color: var(--sg-muted);
}

.sg-tab[aria-pressed="true"] {
  background: #141816;
  border-color: #141816;
  color: #F6F5F1;
}

.sg-tab[aria-pressed="true"] .sg-tab-n {
  color: #F5B952;
}

.sg-body[data-theme="dark"] .sg-tab[aria-pressed="true"] {
  background: #F5B952;
  border-color: #F5B952;
  color: #141816;
}

.sg-body[data-theme="dark"] .sg-tab[aria-pressed="true"] .sg-tab-n {
  color: #2D220D;
}

.sg-filter-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sg-search {
  position: relative;
  align-items: center;
  flex: 1 1 280px;
  min-width: 0;
  background: var(--sg-surface);
  border: 1px solid var(--sg-line-strong);
  border-radius: 10px;
  transition: border-color 0.16s ease;
}

.sg-search:focus-within {
  border-color: var(--sg-cn-icon);
}

.sg-search-icon {
  position: absolute;
  left: 13px;
  font-size: 16px;
  color: var(--sg-muted);
  pointer-events: none;
}

.sg-search-input {
  width: 100%;
  min-height: 42px;
  padding: 0 42px 0 38px;
  border: 0;
  background: transparent;
  font-size: 14px;
  color: var(--ink-primary);
  outline: none;
}

.sg-search-input::placeholder {
  color: var(--sg-muted);
}

.sg-search-input::-webkit-search-cancel-button {
  -webkit-appearance: none;
}

.sg-clear-btn {
  position: absolute;
  right: 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  font-size: 16px;
  color: var(--sg-muted);
}

.sg-clear-btn:hover {
  color: var(--ink-primary);
}

.sg-toggle {
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 42px;
  padding: 0 15px;
  border-radius: 10px;
  border: 1px solid var(--sg-line-strong);
  background: var(--sg-surface);
  color: var(--ink-secondary);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.14s ease;
}

.sg-toggle i {
  font-size: 16px;
  color: var(--sg-global-icon);
}

.sg-toggle:hover {
  border-color: var(--sg-global-icon);
  color: var(--sg-global-text);
}

.sg-toggle:active {
  transform: scale(0.97);
}

.sg-toggle[aria-pressed="true"] {
  background: var(--sg-global-fill);
  border-color: var(--sg-global-text);
  color: var(--sg-global-text);
  font-weight: 700;
}

/* 结果统计与搜词提示 */
.sg-result-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 16px;
  padding: 4px 0 18px;
  font-size: 13px;
}

.sg-result-count {
  font-weight: 700;
  color: var(--ink-primary);
  font-variant-numeric: tabular-nums;
}

.sg-result-tip {
  color: var(--sg-muted);
}

/* 节目单分组 */
.sg-catalog {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.sg-group {
  scroll-margin-top: 84px;
}

.sg-group-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--ink-primary);
}

.sg-group-title-wrap {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
}

.sg-group-title {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.3;
  color: var(--ink-primary);
}

.sg-group-en {
  font-size: 12px;
  font-weight: 600;
  color: var(--sg-muted);
}

.sg-group-count {
  font-size: 12px;
  font-weight: 600;
  color: var(--sg-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

/* 节目单条目行（桌面三栏：日期 | 内容 | 按钮） */
.sg-row {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  column-gap: 18px;
  align-items: start;
  padding: 15px 6px;
  border-bottom: 1px solid var(--sg-line);
  transition: background-color 0.15s ease;
}

.sg-row:hover {
  background: var(--sg-row-hover);
}

.sg-row-date {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.6;
  color: var(--sg-muted);
  padding-top: 1px;
  white-space: nowrap;
}

.sg-row-main {
  min-width: 0;
}

.sg-row-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 8px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--sg-muted);
}

.sg-row-meta > span + span::before {
  content: "·";
  margin-right: 8px;
  color: var(--sg-muted);
  font-weight: 400;
}

.sg-row-subtag {
  font-weight: 600;
  color: var(--ink-secondary);
}

.sg-row-people {
  color: var(--sg-muted);
}

.sg-row-global {
  font-weight: 700;
  color: var(--sg-global-text);
}

.sg-row-title {
  margin-top: 3px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.42;
  color: var(--ink-primary);
}

.sg-row-desc {
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-secondary);
}

.sg-row-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  max-width: 340px;
  padding-top: 2px;
}

/* 统一链接按钮（全页目录、专辑、曲目、BGM 共用） */
.sg-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 4px 12px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
  transition: background-color 0.16s ease, border-color 0.16s ease, transform 0.14s ease;
}

.sg-link i {
  font-size: 15px;
  flex-shrink: 0;
}

.sg-link[data-scope="cn"] {
  background: var(--sg-cn-fill);
  border-color: var(--sg-cn-border);
  color: var(--sg-cn-text);
}

.sg-link[data-scope="cn"] i {
  color: var(--sg-cn-icon);
}

.sg-link[data-scope="cn"]:hover {
  background: var(--sg-cn-fill-hover);
  border-color: var(--sg-cn-icon);
}

.sg-link[data-scope="global"] {
  background: var(--sg-global-fill);
  border-color: var(--sg-global-border);
  color: var(--sg-global-text);
}

.sg-link[data-scope="global"] i {
  color: var(--sg-global-icon);
}

.sg-link[data-scope="global"]:hover {
  background: var(--sg-global-fill-hover);
  border-color: var(--sg-global-icon);
}

.sg-link:active {
  transform: scale(0.97);
}

.sg-link-access {
  display: inline-flex;
  align-items: center;
  padding: 1px 6px;
  margin-left: 2px;
  border-radius: 5px;
  border: 1px solid var(--sg-access-border);
  background: var(--sg-access-bg);
  color: var(--sg-access-text);
  font-size: 12px;
  font-style: normal;
  font-weight: 600;
  line-height: 1.3;
}

/* 只有图标的复制按钮 */
.sg-copy {
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--sg-line-strong);
  background: var(--sg-surface);
  color: var(--ink-secondary);
  font-size: 16px;
  flex-shrink: 0;
  transition: border-color 0.16s ease, color 0.16s ease, background-color 0.16s ease, transform 0.14s ease;
}

.sg-copy:hover {
  border-color: var(--sg-cn-icon);
  color: var(--sg-cn-text);
}

.sg-copy:active {
  transform: scale(0.95);
}

/* 分组底部「看全部 N 条」按钮 */
.sg-group-more {
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 12px;
  min-height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--sg-line-strong);
  background: var(--sg-surface);
  color: var(--ink-primary);
  font-size: 14px;
  font-weight: 600;
  transition: border-color 0.16s ease, color 0.16s ease, transform 0.14s ease;
}

.sg-group-more:hover {
  border-color: var(--sg-cn-icon);
  color: var(--sg-cn-text);
}

.sg-group-more:active {
  transform: scale(0.97);
}

/* 空结果 */
.sg-empty {
  padding: 40px 16px;
  text-align: center;
  border-top: 1px solid var(--sg-line);
  border-bottom: 1px solid var(--sg-line);
}

.sg-empty p {
  font-size: 14px;
  color: var(--ink-secondary);
}

.sg-reset-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 14px;
  min-height: 42px;
  padding: 0 20px;
  border-radius: 10px;
  border: 1px solid var(--sg-cn-border);
  background: var(--sg-cn-fill);
  color: var(--sg-cn-text);
  font-size: 14px;
  font-weight: 700;
  transition: background-color 0.16s ease, transform 0.14s ease;
}

.sg-reset-btn:hover {
  background: var(--sg-cn-fill-hover);
}

.sg-reset-btn:active {
  transform: scale(0.97);
}

/* ==========================================================================
 * 第三区 · 原声与配乐（左侧 sticky 唱片套为三处阴影卡之二，右侧无框曲目单）
 * ========================================================================== */
.sg-ost-shell {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.sg-sleeve-panel {
  position: sticky;
  top: 80px;
  padding: 20px;
  border-radius: 16px;
  background: var(--sg-surface);
  border: 1px solid var(--sg-line);
  box-shadow: var(--sg-shadow);
}

.sg-vinyl-stage {
  position: relative;
  height: 158px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
}

.sg-vinyl-sleeve {
  position: relative;
  z-index: 2;
  width: 152px;
  height: 152px;
  padding: 16px 14px;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    radial-gradient(110% 90% at 100% 0%, rgba(245, 185, 82, 0.36), transparent 62%),
    linear-gradient(155deg, #FBF6E8 0%, #EFE8D5 100%);
  color: #141816;
  border: 1px solid rgba(20, 24, 22, 0.12);
  box-shadow: 4px 10px 22px -12px rgba(20, 24, 22, 0.36);
}

.sg-sleeve-accent {
  display: block;
  width: 22px;
  height: 3px;
  border-radius: 99px;
  background: #D97706;
}

.sg-sleeve-titles {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sg-sleeve-title {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.25;
  color: #141816;
  white-space: nowrap;
}

.sg-sleeve-sub {
  font-size: 13px;
  font-weight: 600;
  color: #48544E;
}

.sg-sleeve-bar {
  display: block;
  width: 44px;
  height: 3px;
  border-radius: 99px;
  background: linear-gradient(90deg, #D97706, #0284C7);
}

.sg-vinyl-disc {
  position: absolute;
  left: 96px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    conic-gradient(from 40deg, rgba(255, 255, 255, 0.08) 0deg, transparent 55deg, rgba(255, 255, 255, 0.06) 160deg, transparent 220deg, rgba(255, 255, 255, 0.08) 360deg),
    repeating-radial-gradient(circle at center, #1F262E 0, #1F262E 2px, #12161B 3px, #12161B 5px);
  box-shadow: 0 12px 26px -14px rgba(0, 0, 0, 0.72);
  transition: transform 0.55s var(--ea-out);
}

.sg-sleeve-panel:hover .sg-vinyl-disc {
  transform: translateX(12px) rotate(18deg);
}

.sg-vinyl-label {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 35% 35%, #F8CB75, #D97706);
}

.sg-vinyl-hole {
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #141816;
}

.sg-album-title {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.35;
  color: var(--ink-primary);
}

.sg-album-note {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--ink-secondary);
}

.sg-album-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

/* 右侧唱片内页式曲目单（无卡片） */
.sg-tracklist-col {
  min-width: 0;
}

.sg-tracklist-head {
  padding-bottom: 10px;
  border-bottom: 2px solid var(--ink-primary);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-secondary);
}

.sg-track {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  column-gap: 14px;
  padding: 16px 4px;
  border-bottom: 1px solid var(--sg-line);
  transition: background-color 0.15s ease;
}

.sg-track:hover {
  background: var(--sg-row-hover);
}

.sg-track-no {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  font-weight: 700;
  color: var(--sg-cn-text);
  padding-top: 3px;
}

.sg-track-body {
  min-width: 0;
}

.sg-track-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
}

.sg-track-title {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.38;
  color: var(--ink-primary);
}

.sg-track-role {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--sg-cn-fill);
  color: var(--sg-cn-text);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
}

.sg-track-artist {
  margin-top: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-secondary);
}

.sg-track-scene {
  margin-top: 3px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--sg-muted);
}

/* 按钮一律排在文字下方同一行，每首歌节奏完全一致 */
.sg-track-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}

/* 原声区底部双栏说明（无外框卡片，靠线与留白） */
.sg-ost-notes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 36px;
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--sg-line-strong);
}

.sg-note-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.4;
  color: var(--ink-primary);
}

.sg-note-title i {
  font-size: 18px;
  color: var(--sg-cn-icon);
}

.sg-note-body {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.72;
  color: var(--ink-secondary);
}

.sg-note-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
}

.sg-tap-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 8px;
  border: 1px solid var(--sg-cn-border);
  background: var(--sg-cn-fill);
  color: var(--sg-cn-text);
  font-size: 14px;
  font-weight: 700;
  transition: background-color 0.16s ease, border-color 0.16s ease, transform 0.14s ease;
}

.sg-tap-link:hover {
  background: var(--sg-cn-fill-hover);
  border-color: var(--sg-cn-icon);
}

.sg-tap-link:active {
  transform: scale(0.97);
}

/* ==========================================================================
 * 第四区 · 补充路牌（全页三处阴影卡片之三）与声明尾栏
 * ========================================================================== */
.sg-sec-foot {
  padding-top: 28px;
}

.sg-contrib-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 28px;
  padding: 26px 28px;
  border-radius: 16px;
  background:
    radial-gradient(85% 110% at 100% 0%, rgba(245, 185, 82, 0.14), transparent 62%),
    var(--sg-surface);
  border: 1px solid var(--sg-line);
  box-shadow: var(--sg-shadow);
}

.sg-body[data-theme="dark"] .sg-contrib-card {
  background:
    radial-gradient(85% 110% at 100% 0%, rgba(245, 185, 82, 0.08), transparent 62%),
    var(--sg-surface);
}

.sg-contrib-copy {
  flex: 1 1 360px;
  min-width: 0;
}

.sg-contrib-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--sg-cn-text);
  margin-bottom: 6px;
}

.sg-contrib-tag i {
  color: var(--sg-cn-icon);
}

.sg-contrib-title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 900;
  line-height: 1.32;
  color: var(--ink-primary);
}

.sg-contrib-body {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-secondary);
}

.sg-contrib-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  flex-shrink: 0;
}

.sg-btn-primary,
.sg-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  transition: transform 0.16s var(--ea-out), background-color 0.16s ease, border-color 0.16s ease;
}

/* 亮金底深色字，与路牌质感统一 */
.sg-btn-primary {
  background: var(--sg-gold-bright);
  color: var(--sg-gold-ink);
  border: 1px solid #E5A436;
}

.sg-btn-primary:hover {
  background: var(--sg-gold-bright-hover);
  transform: translateY(-1px);
}

.sg-btn-primary:active {
  transform: scale(0.97);
}

.sg-btn-secondary {
  background: var(--sg-surface);
  color: var(--ink-primary);
  border: 1px solid var(--sg-line-strong);
}

.sg-btn-secondary:hover {
  border-color: var(--sg-cn-icon);
  color: var(--sg-cn-text);
}

.sg-btn-secondary:active {
  transform: scale(0.97);
}

/* 覆写 tokens.css 里的 .site-legal-strip，确保无 <12px 小字、对比度 ≥ 4.5 且不用多余卡片盒 */
.sg-body .sg-legal {
  margin-top: 24px;
  padding: 18px 0 0;
  border: 0;
  border-top: 1px solid var(--sg-line-strong);
  border-radius: 0;
  background: transparent;
}

.sg-body .sg-legal .site-legal-copy {
  font-size: 12px;
  line-height: 1.7;
  color: var(--sg-muted);
}

.sg-body .sg-legal .site-legal-copy strong {
  color: var(--ink-secondary);
}

.sg-body .sg-legal .site-legal-copy a {
  color: var(--sg-cn-text);
  padding: 13px 0;
}

.sg-body .sg-legal .site-legal-action {
  min-height: 40px;
  padding: 0 16px;
  background: var(--sg-surface);
  border-color: var(--sg-line-strong);
  color: var(--ink-secondary);
  font-size: 12px;
}

.sg-body .sg-legal .site-legal-action:hover {
  border-color: var(--sg-cn-icon);
  color: var(--sg-cn-text);
}

.sg-body .sg-legal .site-legal-action:active {
  transform: scale(0.97);
}

/* ==========================================================================
 * 提示气泡（左右各留 16px、居中、最宽 420px、避开底部安全区）
 * ========================================================================== */
.sg-toast {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  z-index: 80;
  width: fit-content;
  max-width: min(420px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 11px 18px;
  border-radius: 12px;
  background: #141816;
  color: #F6F5F1;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
  box-shadow: 0 14px 32px -12px rgba(10, 14, 18, 0.55);
}

.sg-body[data-theme="dark"] .sg-toast {
  background: #1E2732;
  color: #F3F6F9;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

/* ==========================================================================
 * 平板与小桌面（≤ 960px）：吸顶栏拆两行，导航四项均分排开
 * ========================================================================== */
@media (max-width: 960px) {
  .sg-topbar-in {
    flex-wrap: wrap;
    row-gap: 0;
    column-gap: 10px;
    min-height: auto;
    padding-top: 6px;
    padding-bottom: 0;
  }

  .sg-brand-group {
    order: 1;
    padding-bottom: 6px;
  }

  .sg-top-actions {
    order: 2;
    margin-left: auto;
    padding-bottom: 6px;
  }

  .sg-nav {
    order: 3;
    flex: 0 0 100%;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2px;
    border-top: 1px solid var(--sg-line);
    margin: 0 -24px;
    padding: 0 12px;
  }

  .sg-nav a {
    min-height: 38px;
    padding: 0 4px;
    font-size: 13px;
    border-radius: 0;
  }

  .sg-nav a.is-current::after {
    left: 14%;
    right: 14%;
    bottom: 0;
  }

  .sg-sec,
  .sg-group {
    scroll-margin-top: 98px;
  }

  .sg-hero-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .sg-watch-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sg-account-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sg-row {
    grid-template-columns: 56px minmax(0, 1fr);
    row-gap: 10px;
  }

  .sg-row-actions {
    grid-column: 2;
    justify-content: flex-start;
    max-width: none;
    padding-top: 0;
  }

  .sg-ost-shell {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .sg-sleeve-panel {
    position: static;
  }

  .sg-ost-notes {
    grid-template-columns: 1fr;
    gap: 22px;
  }
}

/* ==========================================================================
 * 手机端（≤ 680px）：紧凑高效、触控 ≥ 40px、搜索框 16px、绝不横向溢出
 * ========================================================================== */
@media (max-width: 680px) {
  .sg-wrap {
    padding: 0 14px;
  }

  .sg-nav {
    margin: 0 -14px;
    padding: 0 6px;
  }

  .sg-brand-group {
    gap: 8px;
  }

  .sg-back-btn {
    padding: 0 10px;
    gap: 4px;
  }

  .sg-back-full,
  .sg-share-text {
    display: none;
  }

  .sg-back-short {
    display: inline;
  }

  .sg-masthead {
    font-size: 14px;
  }

  .sg-share-btn {
    width: 36px;
    padding: 0;
  }

  .sg-top-actions {
    gap: 6px;
  }

  /* 首屏收紧，保证第一区与目录尽早露面 */
  .sg-hero {
    padding: 18px 0 16px;
  }

  .sg-hero-grid {
    gap: 16px;
  }

  .sg-kicker {
    font-size: 13px;
    margin-bottom: 6px;
  }

  .sg-hero-title {
    font-size: clamp(28px, 8.2vw, 34px);
  }

  .sg-hero-lead {
    margin-top: 10px;
    font-size: 14px;
    line-height: 1.65;
  }

  .sg-hero-stats {
    margin-top: 12px;
    padding-top: 10px;
    font-size: 12px;
  }

  .sg-signpost-card {
    padding: 14px 14px 16px;
    border-radius: 16px;
  }

  .sg-signpost-hint {
    margin-bottom: 10px;
  }

  .sg-signpost-stage {
    padding: 2px 0 2px 14px;
  }

  .sg-pole {
    left: 5px;
  }

  .sg-sign {
    min-height: 40px;
    padding: 6px 20px 6px 15px;
  }

  .sg-sign-zh {
    font-size: 13px;
  }

  /* 分区头：手机上说明排在路牌下面 */
  .sg-sec {
    padding: 20px 0 12px;
    scroll-margin-top: 96px;
  }

  .sg-sec-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding-top: 18px;
    margin-bottom: 16px;
  }

  .sg-plaque {
    min-height: 40px;
    padding: 6px 28px 6px 16px;
    font-size: 18px;
  }

  .sg-sec-intro {
    font-size: 13px;
    line-height: 1.6;
  }

  /* 第一区：紧凑两列小方块 */
  .sg-hubs-block + .sg-hubs-block {
    margin-top: 18px;
  }

  .sg-subhead {
    margin-bottom: 10px;
  }

  .sg-watch-grid {
    gap: 8px;
  }

  .sg-watch-card {
    padding: 10px 11px;
    gap: 4px;
    border-radius: 12px;
  }

  .sg-watch-top {
    margin-bottom: 1px;
  }

  .sg-watch-badge {
    padding: 2px 7px;
  }

  .sg-card-arrow {
    font-size: 14px;
  }

  .sg-watch-name {
    font-size: 14px;
  }

  .sg-watch-line {
    font-size: 12px;
    font-weight: 500;
  }

  .sg-watch-desc {
    display: none;
  }

  .sg-account-grid {
    gap: 8px;
  }

  .sg-account-card {
    align-items: center;
    min-height: 46px;
    padding: 8px 10px;
    gap: 8px;
    border-radius: 10px;
  }

  .sg-account-ic {
    width: 28px;
    height: 28px;
    font-size: 14px;
  }

  .sg-account-name {
    font-size: 13px;
  }

  .sg-account-desc {
    display: none;
  }

  /* 第二区筛选：分类标签折成整齐两行（3×2），绝不横向滚动 */
  html.sg-js #sgCatTabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .sg-tab {
    min-height: 40px;
    padding: 0 6px;
    gap: 4px;
    border-radius: 10px;
  }

  .sg-filter-row {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .sg-search {
    flex: none;
    width: 100%;
  }

  /* iOS 防缩放：手机上搜索框严格 16px */
  .sg-search-input {
    font-size: 16px;
    min-height: 44px;
  }

  .sg-clear-btn {
    width: 40px;
    height: 40px;
  }

  .sg-toggle {
    width: 100%;
    min-height: 42px;
  }

  .sg-result-bar {
    padding: 2px 0 12px;
    gap: 4px;
  }

  .sg-catalog {
    gap: 24px;
  }

  /* 手机端每组默认只显示前 3 条（仅 sg-js 下） */
  html.sg-js #sgCatalog[data-view="all"] .sg-group:not(.is-open) .sg-row:nth-child(n+4) {
    display: none;
  }

  /* 手机端节目单行：日期并入小类同一行，按钮触控高度 ≥ 40px */
  .sg-row {
    display: block;
    padding: 11px 0;
  }

  .sg-row:hover {
    background: transparent;
  }

  .sg-row-date {
    float: left;
    margin-right: 8px;
    padding-top: 0;
    line-height: 18px;
  }

  .sg-row-date::after {
    content: "·";
    margin-left: 8px;
    color: var(--sg-muted);
  }

  .sg-row-meta {
    display: block;
    line-height: 18px;
  }

  .sg-row-meta > span + span::before {
    content: "·";
    margin: 0 6px;
    color: var(--sg-muted);
    font-weight: 400;
  }

  .sg-row-title {
    clear: left;
    margin-top: 4px;
    font-size: 14px;
    line-height: 1.4;
  }

  .sg-row-desc {
    margin-top: 3px;
    font-size: 13px;
    line-height: 1.48;
  }

  /* 仅 sg-js 下手机简介默认收成一行，点击 .sg-row-main 切 is-open 展开 */
  html.sg-js .sg-row-main {
    cursor: pointer;
  }

  html.sg-js .sg-row:not(.is-open) .sg-row-desc {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .sg-row-actions {
    justify-content: flex-start;
    margin-top: 8px;
    gap: 8px;
  }

  .sg-link {
    min-height: 40px;
    padding: 6px 12px;
  }

  .sg-copy {
    width: 40px;
    height: 40px;
  }

  .sg-group-more {
    width: 100%;
    min-height: 42px;
    border-radius: 10px;
  }

  /* 第三区：唱片套与曲目单 */
  .sg-sleeve-panel {
    padding: 16px;
  }

  .sg-vinyl-stage {
    height: 144px;
    margin-bottom: 14px;
  }

  .sg-vinyl-sleeve {
    width: 138px;
    height: 138px;
    padding: 14px 12px;
  }

  .sg-vinyl-disc {
    left: 88px;
    width: 126px;
    height: 126px;
  }

  .sg-track {
    grid-template-columns: 26px minmax(0, 1fr);
    column-gap: 10px;
    padding: 14px 0;
  }

  .sg-track:hover {
    background: transparent;
  }

  .sg-track-title {
    font-size: 14px;
  }

  .sg-track-scene {
    font-size: 13px;
  }

  .sg-track-actions {
    margin-top: 10px;
  }

  .sg-ost-notes {
    margin-top: 22px;
    padding-top: 18px;
  }

  .sg-note-body {
    font-size: 13px;
  }

  /* 第四区：补充路牌卡 */
  .sg-contrib-card {
    padding: 18px 16px;
    gap: 16px;
  }

  .sg-contrib-title {
    font-size: 18px;
  }

  .sg-contrib-body {
    font-size: 13px;
  }

  .sg-contrib-actions {
    width: 100%;
    gap: 8px;
  }

  .sg-btn-primary,
  .sg-btn-secondary {
    flex: 1 1 150px;
  }

  .sg-body .sg-legal {
    padding: 16px 0 0;
  }

  .sg-body .sg-legal .site-legal-action {
    width: 100%;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sg-back-btn,
  .sg-nav a,
  .sg-share-btn,
  .sg-topbar .bui-theme-pill,
  .sg-sign,
  .sg-watch-card,
  .sg-card-arrow,
  .sg-account-card,
  .sg-tab,
  .sg-toggle,
  .sg-row,
  .sg-link,
  .sg-copy,
  .sg-group-more,
  .sg-reset-btn,
  .sg-vinyl-disc,
  .sg-track,
  .sg-tap-link,
  .sg-btn-primary,
  .sg-btn-secondary,
  .sg-body .sg-legal .site-legal-action {
    transition: none !important;
  }
}
