/* ==========================================================================
   touzi.online  ·  Investment Intelligence
   Visual system: Deep Space / Neon / Glass / Data
   ========================================================================== */

html[data-theme="light"] {
  background: #f4f7fc;
  --bg: #f4f7fc; --bg-2: #ffffff; --bg-3: #eaf0fa;
  --panel: rgba(255,255,255,.86); --panel-2: rgba(255,255,255,.94);
  --line: rgba(40,70,120,.14); --line-2: rgba(40,70,120,.26);
  --txt: #16213a; --txt-2: #3f5275; --muted: #67799b; --dim: #9aa8c2;
  --cyan: #0a92b8; --blue: #3b62d9; --violet: #7a4fd0; --gold: #b87510;
  --up: #d8324f; --down: #0e9c74;
  --grad-text: linear-gradient(100deg,#16213a 0%,#0a92b8 38%,#3b62d9 72%,#7a4fd0 100%);
}

html[data-theme="light"] #stars { opacity: .12; }
html[data-theme="light"] .glass, html[data-theme="light"] .info-card, html[data-theme="light"] .term,
html[data-theme="light"] .tile, html[data-theme="light"] .calc-card, html[data-theme="light"] .course-lesson,
html[data-theme="light"] .quiz-opt, html[data-theme="light"] .faq-item, html[data-theme="light"] .dtable,
html[data-theme="light"] .more-menu, html[data-theme="light"] .search-panel, html[data-theme="light"] .lb-panel,
html[data-theme="light"] .rel-card, html[data-theme="light"] .dict-card, html[data-theme="light"] .essay {
  background: #ffffff !important; border-color: #d8e0ef !important;
  box-shadow: 0 6px 20px rgba(30,50,90,.06) !important;
}
html[data-theme="light"] .dtable th, html[data-theme="light"] .dtable td { border-color: #e2e8f3 !important; }
html[data-theme="light"] .callout, html[data-theme="light"] .note { background: rgba(60,100,180,.06) !important; }
html[data-theme="light"] .figure { background: #0a0e1a !important; }
html[data-theme="light"] .nav { background: rgba(244,247,252,.96) !important; backdrop-filter: none; }
html[data-theme="light"] .page-hero { background: radial-gradient(ellipse at 70% 0%, rgba(60,130,200,.10), transparent 60%); }

:root {
  --bg:        #05070f;
  --bg-2:      #080c18;
  --bg-3:      #0c1222;
  --panel:     rgba(15, 22, 40, .62);
  --panel-2:   rgba(20, 29, 52, .78);
  --line:      rgba(125, 165, 225, .15);
  --line-2:    rgba(125, 165, 225, .28);
  --txt:       #e9f0ff;
  --txt-2:     #b9c7e4;
  --muted:     #7e8fb0;
  --dim:       #56678a;

  --cyan:      #3ee0ff;
  --blue:      #4d7cff;
  --violet:    #a471ff;
  --gold:      #ffc46b;
  --up:        #ff5b72;   /* 涨 · 红（中文市场惯例） */
  --down:      #20d6a4;   /* 跌 · 绿（中文市场惯例） */

  --glow-cyan: 0 0 24px rgba(62, 224, 255, .35);
  --glow-blue: 0 0 30px rgba(77, 124, 255, .32);
  --grad-1: linear-gradient(120deg, #3ee0ff 0%, #6b8cff 45%, #a471ff 100%);
  --grad-2: linear-gradient(120deg, #ffc46b 0%, #ff8f6b 100%);
  --grad-text: linear-gradient(100deg, #ffffff 0%, #a9e9ff 38%, #9aa8ff 72%, #c9a6ff 100%);

  --r-sm: 10px;
  --r:     16px;
  --r-lg:  24px;
  --maxw:  1220px;
  --nav-h: 72px;
  --ease:  cubic-bezier(.22, .68, 0, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 20px); background: #05070f; }
body {
  margin: 0;
  background: transparent;
  color: var(--txt);
  font-family: "Inter", "SF Pro Display", -apple-system, BlinkMacSystemFont,
               "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before {
  content: ""; position: fixed; inset: 0; z-index: -3; pointer-events: none;
  background:
    radial-gradient(900px 620px at 78% -6%, rgba(77,124,255,.20), transparent 62%),
    radial-gradient(760px 560px at 6% 14%, rgba(62,224,255,.11), transparent 60%),
    radial-gradient(900px 700px at 92% 76%, rgba(164,113,255,.13), transparent 62%),
    linear-gradient(180deg, #05070f 0%, #070b16 55%, #05070f 100%);
}
body::after {
  content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background-image:
    linear-gradient(rgba(125,165,225,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(125,165,225,.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.9), rgba(0,0,0,.35) 55%, transparent 100%);
}
#stars { position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .65; }

::selection { background: rgba(62,224,255,.28); color: #fff; }
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; display: block; }
button, input, select { font: inherit; }
h1,h2,h3,h4 { margin: 0; line-height: 1.25; font-weight: 750; letter-spacing: -.015em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.wrap { width: min(var(--maxw), calc(100% - 48px)); margin-inline: auto; }
.mono { font-family: ui-monospace, "SFMono-Regular", "Cascadia Code", Consolas, "Liberation Mono", monospace; font-variant-numeric: tabular-nums; }
.num { font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.grad-text {
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.cyan { color: var(--cyan); } .gold { color: var(--gold); }
.violet { color: var(--violet); } .blue { color: var(--blue); }
.up { color: var(--up); } .down { color: var(--down); }

/* ============================ NAV ============================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; height: var(--nav-h); z-index: 100;
  display: flex; align-items: center;
  background: rgba(5, 8, 17, .72);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border-bottom: 1px solid var(--line);
}
.nav::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(62,224,255,.5), rgba(164,113,255,.4), transparent);
  opacity: .7;
}
.nav .wrap { display: flex; align-items: center; gap: 28px; width: min(var(--maxw), calc(100% - 48px)); }
.brand { display: flex; align-items: center; gap: 11px; flex: 0 0 auto; }
.brand-mark { width: 38px; height: 38px; filter: drop-shadow(0 0 12px rgba(62,224,255,.5)); }
.brand-txt { font-size: 19px; font-weight: 800; letter-spacing: -.02em; }
.brand-txt span { color: var(--cyan); }
.brand-sub { font-size: 10px; letter-spacing: .22em; color: var(--dim); text-transform: uppercase; margin-top: -3px; }

.nav-links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-links > a {
  position: relative; padding: 9px 7px; font-size: 12.5px; color: var(--txt-2);
  border-radius: 8px; transition: color .25s, background .25s;
}
.nav-links > a:hover { color: #fff; background: rgba(125,165,225,.08); transform: translateY(-1px); }
.nav-links > a.active { color: var(--cyan); }
.nav-links > a.active::after {
  content: ""; position: absolute; left: 9px; right: 9px; bottom: 2px; height: 2px;
  background: var(--cyan); box-shadow: var(--glow-cyan); border-radius: 2px;
}

/* 分组 Mega Menu：桌面四列面板，移动端抽屉按组平铺 */
.more-link, .drawer-group { display: none; }
.nav-more { position: relative; display: flex; align-items: center; }
.more-btn {
  padding: 9px 8px; font-size: 12.5px; color: var(--txt-2); background: none;
  border: 1px solid transparent; cursor: pointer; border-radius: 8px; transition: .25s var(--ease);
}
.more-btn:hover { color: #fff; background: rgba(125,165,225,.08); border-color: var(--line-2); }
.more-btn span { font-size: 10px; margin-left: 4px; color: var(--cyan); }
.more-menu {
  position: absolute; top: calc(100% + 10px); right: -20px; z-index: 120;
  display: grid; grid-template-columns: repeat(5, 142px); gap: 4px 10px;
  width: max-content; padding: 16px 14px;
  background: rgba(10,16,30,.985); border: 1px solid var(--line-2); border-radius: 14px;
  box-shadow: 0 26px 64px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.03);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: .22s var(--ease);
}
.more-menu::before {
  content: ""; position: absolute; top: -6px; right: 66px; width: 12px; height: 12px;
  background: rgba(10,16,30,.985); border-left: 1px solid var(--line-2); border-top: 1px solid var(--line-2);
  transform: rotate(45deg);
}
.nav-more:hover .more-menu, .nav-more:focus-within .more-menu, .more-menu.open {
  opacity: 1; visibility: visible; transform: none;
}
.mega-col h5 {
  margin: 0 0 8px; padding: 0 10px 8px; font-size: 10.5px; font-weight: 750;
  letter-spacing: .12em; color: var(--cyan); border-bottom: 1px solid var(--line);
}
.mega-col a {
  display: block; padding: 8px 10px; border-radius: 7px;
  font-size: 12.5px; color: var(--txt-2); white-space: nowrap; transition: .2s;
}
.mega-col a:hover { background: rgba(62,224,255,.09); color: var(--cyan); transform: translateX(2px); }
.mega-col a.active { color: var(--cyan); background: rgba(62,224,255,.07); }
.nav-actions { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }

.lang-switch {
  display: inline-flex; align-items: center; padding: 3px; gap: 2px;
  border: 1px solid var(--line-2); border-radius: 999px; background: rgba(10,16,30,.7);
}
.lang-switch a, .lang-switch span {
  padding: 5px 12px; font-size: 12px; border-radius: 999px; color: var(--muted);
  transition: all .25s; line-height: 1.4;
}
.lang-switch a:hover { color: #fff; }
.lang-switch .on {
  background: linear-gradient(120deg, rgba(62,224,255,.18), rgba(164,113,255,.2));
  color: #fff; box-shadow: inset 0 0 0 1px rgba(62,224,255,.35);
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 11px 22px; border-radius: 999px; font-size: 14px; font-weight: 650;
  border: 1px solid transparent; cursor: pointer; transition: all .3s var(--ease);
  white-space: nowrap; position: relative; overflow: hidden;
}
.btn-sm { padding: 8px 17px; font-size: 13px; }
.btn-primary {
  color: #04121b; background: var(--grad-1); box-shadow: 0 6px 26px rgba(62,224,255,.28);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 34px rgba(62,224,255,.45); }
.btn-ghost { color: var(--txt); border-color: var(--line-2); background: rgba(15,22,40,.5); }
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); box-shadow: 0 0 22px rgba(62,224,255,.18); transform: translateY(-2px); }
.btn-gold { color: #1a1003; background: var(--grad-2); box-shadow: 0 6px 26px rgba(255,196,107,.24); }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 10px 32px rgba(255,196,107,.4); }
.btn .arrow { transition: transform .3s; }
.btn:hover .arrow { transform: translateX(4px); }

.hamburger { display: none; width: 40px; height: 40px; border: 1px solid var(--line-2); border-radius: 10px; background: rgba(15,22,40,.6); cursor: pointer; position: relative; }
.hamburger i { position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--txt); transition: .3s; border-radius: 2px; }
.hamburger i:nth-child(1) { top: 14px; } .hamburger i:nth-child(2) { top: 20px; } .hamburger i:nth-child(3) { top: 26px; }
.hamburger.open i:nth-child(1) { top: 20px; transform: rotate(45deg); }
.hamburger.open i:nth-child(2) { opacity: 0; }
.hamburger.open i:nth-child(3) { top: 20px; transform: rotate(-45deg); }
.drawer-mask { display: none; position: fixed; inset: 0; background: rgba(2,4,10,.7); z-index: 98; backdrop-filter: blur(3px); }
.drawer-mask.show { display: block; }

/* ============================ HERO ============================ */
.hero { position: relative; padding: calc(var(--nav-h) + 88px) 0 0; min-height: 100vh; display: flex; flex-direction: column; overflow-x: clip; }
.hero-grid {
  width: min(var(--maxw), calc(100% - 48px)); margin-inline: auto;
  display: grid; grid-template-columns: 1.06fr .94fr; gap: 48px; align-items: center; flex: 1;
  padding-bottom: 60px;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; font-size: 12px; letter-spacing: .2em;
  color: var(--cyan); text-transform: uppercase; margin-bottom: 22px;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--cyan); box-shadow: var(--glow-cyan); }
.eyebrow .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }

.hero h1 { font-size: clamp(2.7rem, 5.4vw, 5.1rem); line-height: 1.1; font-weight: 820; }
.hero h1 .line { display: block; }
.hero-sub { margin-top: 26px; max-width: 560px; font-size: 17px; color: var(--txt-2); line-height: 1.9; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

.hero-stats { display: flex; gap: 0; margin-top: 52px; border-top: 1px solid var(--line); padding-top: 24px; max-width: 570px; }
.hero-stats .item { flex: 1; padding-right: 18px; border-right: 1px solid var(--line); }
.hero-stats .item:last-child { border-right: 0; }
.hero-stats .v { font-size: clamp(1.4rem, 2.4vw, 2.05rem); font-weight: 780; letter-spacing: -.02em; }
.hero-stats .k { font-size: 12px; color: var(--muted); margin-top: 3px; }

/* Hero visual: orbital globe */
.hero-visual { position: relative; min-height: 520px; display: grid; place-items: center; }
.orbit-svg { width: min(100%, 560px); height: auto; overflow: visible; }
.orbit-ring { fill: none; stroke: rgba(125,165,225,.22); stroke-width: 1; }
.orbit-ring.dash { stroke-dasharray: 3 7; stroke: rgba(62,224,255,.35); }
.orbit-spin { transform-origin: 280px 280px; animation: spin 34s linear infinite; }
.orbit-spin.rev { animation: spin 48s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.orbit-pulse { animation: pulse 3.4s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: .45; } 50% { opacity: 1; } }
.float-card {
  position: absolute; padding: 12px 16px; border-radius: 12px;
  background: rgba(11,18,34,.86); border: 1px solid var(--line-2);
  backdrop-filter: blur(12px); box-shadow: 0 12px 40px rgba(0,0,0,.45);
  animation: float 6s ease-in-out infinite; font-size: 12px;
}
.float-card.b { animation-delay: -2s; } .float-card.c { animation-delay: -4s; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.float-card .lbl { color: var(--muted); font-size: 11px; letter-spacing: .08em; }
.float-card .val { font-size: 17px; font-weight: 750; margin-top: 2px; }
.float-card .chg { font-size: 11px; margin-left: 8px; }
.fc1 { top: 12%; left: -2%; } .fc2 { top: 46%; right: -4%; } .fc3 { bottom: 10%; left: 6%; }

/* ticker */
.ticker {
  position: relative; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: rgba(8,12,24,.75); overflow: hidden; height: 52px; display: flex; align-items: center;
}
.ticker-label {
  position: absolute; left: 0; top: 0; bottom: 0; z-index: 2; display: flex; align-items: center; gap: 8px;
  padding: 0 22px; background: linear-gradient(90deg, #070b16 70%, rgba(7,11,22,0));
  font-size: 11px; letter-spacing: .18em; color: var(--cyan); text-transform: uppercase;
}
.ticker-label i { width: 6px; height: 6px; border-radius: 50%; background: var(--down); box-shadow: 0 0 10px var(--down); animation: blink 1.8s infinite; }
.ticker-label .tl-short { display: none; }
@keyframes blink { 50% { opacity: .25; } }
.ticker-track { display: flex; gap: 0; white-space: nowrap; animation: marquee 42s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.tk { display: inline-flex; align-items: baseline; gap: 9px; padding: 0 26px; border-right: 1px solid var(--line); font-size: 13px; }
.tk .sym { color: var(--txt-2); font-weight: 650; letter-spacing: .04em; }
.tk .px { font-weight: 700; }
.tk .ch { font-size: 12px; }
.tk .note { color: var(--dim); font-size: 11px; }
.ticker-disclaim { position: absolute; right: 0; top: 0; bottom: 0; z-index: 2; display: flex; align-items: center; padding: 0 20px; font-size: 10px; color: var(--dim); background: linear-gradient(270deg, #070b16 75%, rgba(7,11,22,0)); }

/* ============================ SECTIONS ============================ */
section { padding: 108px 0; position: relative; }
section.alt { background: linear-gradient(180deg, rgba(10,15,28,.0), rgba(10,15,28,.62), rgba(10,15,28,0)); }
.sec-head { margin-bottom: 52px; max-width: 780px; }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head.center .eyebrow::before { display: none; }
.sec-head h2 { font-size: clamp(2rem, 3.6vw, 3.15rem); margin-bottom: 18px; }
.sec-head p { color: var(--txt-2); font-size: 16px; line-height: 1.9; }
.sec-index { font-size: 11px; letter-spacing: .24em; color: var(--dim); margin-bottom: 14px; text-transform: uppercase; }

.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.g6 { grid-template-columns: repeat(3, 1fr); }

.glass {
  position: relative; border: 1px solid var(--line); border-radius: var(--r);
  background: var(--panel); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  padding: 28px; overflow: hidden; transition: transform .4s var(--ease), border-color .4s, box-shadow .4s;
}
.glass::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(62,224,255,.5), transparent); opacity: .6;
}
.glass:hover { transform: translateY(-5px); border-color: var(--line-2); box-shadow: 0 20px 60px rgba(0,0,0,.42), 0 0 34px rgba(62,224,255,.07); }
.glass.pad-lg { padding: 36px; }
.glass.hot { border-color: rgba(62,224,255,.38); background: linear-gradient(160deg, rgba(62,224,255,.09), rgba(15,22,40,.7) 55%); }
.glass.hot::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(420px 240px at 90% 0%, rgba(62,224,255,.14), transparent 70%);
}
.card-icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(140deg, rgba(62,224,255,.16), rgba(164,113,255,.13));
  border: 1px solid rgba(62,224,255,.25); color: var(--cyan); margin-bottom: 20px;
}
.card-icon svg { width: 23px; height: 23px; }
.card-icon.gold { background: linear-gradient(140deg, rgba(255,196,107,.16), rgba(255,143,107,.1)); border-color: rgba(255,196,107,.28); color: var(--gold); }
.card-icon.violet { background: linear-gradient(140deg, rgba(164,113,255,.18), rgba(77,124,255,.1)); border-color: rgba(164,113,255,.3); color: var(--violet); }
.glass h3 { font-size: 20px; margin-bottom: 10px; }
.glass h4 { font-size: 16px; margin-bottom: 8px; }
.glass p { color: var(--txt-2); font-size: 14.5px; line-height: 1.85; }
.glass .meta { margin-top: 18px; font-size: 12px; color: var(--dim); letter-spacing: .06em; }
.tag {
  display: inline-block; padding: 4px 11px; border-radius: 999px; font-size: 11px;
  border: 1px solid var(--line-2); color: var(--txt-2); background: rgba(125,165,225,.06);
  letter-spacing: .06em;
}
.tag.cy { color: var(--cyan); border-color: rgba(62,224,255,.35); background: rgba(62,224,255,.08); }
.tag.gd { color: var(--gold); border-color: rgba(255,196,107,.35); background: rgba(255,196,107,.08); }
.tag.vi { color: var(--violet); border-color: rgba(164,113,255,.35); background: rgba(164,113,255,.08); }

.bullet { display: flex; gap: 12px; align-items: flex-start; margin-top: 14px; font-size: 14px; color: var(--txt-2); }
.bullet::before { content: ""; flex: 0 0 auto; width: 6px; height: 6px; margin-top: 9px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 9px var(--cyan); }

/* big feature split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split .visual { position: relative; }
.panel-frame {
  border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: 22px;
  background: linear-gradient(160deg, rgba(16,24,44,.9), rgba(8,12,24,.9));
  box-shadow: 0 30px 80px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.04);
}
.frame-bar { display: flex; align-items: center; gap: 6px; margin-bottom: 18px; }
.frame-bar i { width: 8px; height: 8px; border-radius: 50%; background: rgba(125,165,225,.3); }
.frame-bar i:first-child { background: rgba(255,91,114,.6); }
.frame-bar span { margin-left: auto; font-size: 11px; color: var(--dim); letter-spacing: .1em; }

/* session clock */
.clock-wrap { display: grid; place-items: center; padding: 8px 0; }
.clock-svg { width: min(100%, 340px); }
.clock-seg { fill: none; stroke-width: 22; stroke-linecap: butt; opacity: .85; }
.clock-label { font-size: 11px; fill: var(--txt-2); }
.clock-center { text-align: center; }
.clock-center .big { font-size: 22px; font-weight: 800; }
.clock-center .sm { font-size: 10px; color: var(--muted); letter-spacing: .14em; }

/* data table */
.table-wrap { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: rgba(11,17,32,.6); }
table.dtable { width: 100%; border-collapse: collapse; font-size: 14px; }
.dtable th {
  text-align: left; padding: 15px 18px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); font-weight: 650; background: rgba(125,165,225,.055); border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.dtable td { padding: 14px 18px; border-bottom: 1px solid rgba(125,165,225,.08); color: var(--txt-2); vertical-align: top; }
.dtable tr:last-child td { border-bottom: 0; }
.dtable tbody tr { transition: background .25s; }
.dtable tbody tr:hover { background: rgba(62,224,255,.05); }
.dtable td strong { color: var(--txt); font-weight: 650; }
.dtable .pill { font-size: 11px; padding: 2px 9px; border-radius: 999px; border: 1px solid var(--line-2); }
.table-scroll { overflow-x: auto; }

/* timeline / path */
.path { position: relative; padding-left: 8px; }
.path::before { content: ""; position: absolute; left: 23px; top: 12px; bottom: 12px; width: 1px; background: linear-gradient(180deg, var(--cyan), var(--violet), transparent); }
.path-item { position: relative; display: grid; grid-template-columns: 46px 1fr; gap: 22px; padding: 0 0 30px; }
.path-item:last-child { padding-bottom: 0; }
.path-dot {
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: #0b1222; border: 1px solid rgba(62,224,255,.5); color: var(--cyan);
  font-size: 12px; font-weight: 750; box-shadow: 0 0 18px rgba(62,224,255,.18); z-index: 1;
}
.path-body { padding-top: 2px; }
.path-body h3 { font-size: 18px; margin-bottom: 6px; }
.path-body p { font-size: 14px; color: var(--txt-2); }

/* numbered list */
.numlist { counter-reset: nl; }
.numlist li { counter-increment: nl; position: relative; padding: 16px 0 16px 52px; border-bottom: 1px solid var(--line); }
.numlist li:last-child { border-bottom: 0; }
.numlist li::before {
  content: counter(nl, decimal-leading-zero); position: absolute; left: 0; top: 15px;
  font-size: 13px; font-weight: 750; color: var(--cyan); letter-spacing: .08em;
  width: 34px; height: 30px; display: grid; place-items: center;
  border: 1px solid rgba(62,224,255,.3); border-radius: 8px; background: rgba(62,224,255,.06);
}
.numlist li strong { display: block; font-size: 16px; margin-bottom: 4px; }
.numlist li span { font-size: 14px; color: var(--txt-2); }

/* quote / callout */
.callout {
  border-left: 2px solid var(--cyan); padding: 20px 24px; border-radius: 0 var(--r) var(--r) 0;
  background: linear-gradient(90deg, rgba(62,224,255,.09), rgba(62,224,255,0));
  margin-top: 26px;
}
.callout.warn { border-left-color: var(--gold); background: linear-gradient(90deg, rgba(255,196,107,.09), rgba(255,196,107,0)); }
.callout.danger { border-left-color: var(--up); background: linear-gradient(90deg, rgba(255,91,114,.09), rgba(255,91,114,0)); }
.callout .ttl { font-size: 13px; font-weight: 750; letter-spacing: .08em; margin-bottom: 7px; color: var(--cyan); }
.callout.warn .ttl { color: var(--gold); } .callout.danger .ttl { color: var(--up); }
.callout p { font-size: 14px; color: var(--txt-2); line-height: 1.85; }

/* stat strip */
.strip { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: rgba(11,17,32,.55); }
.strip .cell { padding: 26px 24px; border-right: 1px solid var(--line); }
.strip .cell:last-child { border-right: 0; }
.strip .v { font-size: 28px; font-weight: 800; letter-spacing: -.02em; }
.strip .k { font-size: 12px; color: var(--muted); margin-top: 4px; }

/* article cards */
.article { display: flex; flex-direction: column; gap: 14px; }
.article .thumb { height: 148px; border-radius: 12px; border: 1px solid var(--line); overflow: hidden; position: relative; background: #0b1222; }
.article .thumb svg { width: 100%; height: 100%; }
.article .a-meta { display: flex; gap: 10px; align-items: center; font-size: 11px; color: var(--dim); letter-spacing: .08em; }
.article h3 { font-size: 18px; line-height: 1.5; transition: color .25s; }
.article:hover h3 { color: var(--cyan); }
.article p { font-size: 13.5px; color: var(--muted); }
.article .read { margin-top: auto; font-size: 12px; color: var(--cyan); display: inline-flex; gap: 7px; align-items: center; }
.article .read svg { width: 14px; height: 14px; flex: 0 0 auto; }

/* FAQ */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; text-align: left; background: none; border: 0; color: var(--txt); padding: 20px 0; display: flex; align-items: center; gap: 16px; cursor: pointer; font-size: 16px; font-weight: 650; }
.faq-q .plus { margin-left: auto; color: var(--cyan); font-size: 20px; transition: transform .3s; flex: 0 0 auto; }
.faq-item.open .plus { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .4s var(--ease); }
.faq-item.open .faq-a { max-height: 460px; }
.faq-a p { padding: 0 0 22px; color: var(--txt-2); font-size: 14.5px; line-height: 1.9; }

/* calculator */
.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.calc-card { padding: 28px; }
.calc-card h3 { font-size: 19px; margin-bottom: 6px; }
.calc-card .hint { font-size: 12.5px; color: var(--muted); margin-bottom: 22px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 12px; color: var(--txt-2); margin-bottom: 7px; letter-spacing: .04em; }
.field .inp-row { display: flex; gap: 8px; }
.field input, .field select {
  width: 100%; padding: 11px 13px; border-radius: 10px; color: var(--txt);
  background: rgba(6,10,20,.8); border: 1px solid var(--line-2); outline: none;
  transition: border-color .25s, box-shadow .25s; font-variant-numeric: tabular-nums;
}
.field input:focus, .field select:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(62,224,255,.1); }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 16px) 50%, calc(100% - 11px) 50%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
.calc-out {
  margin-top: 20px; padding: 20px; border-radius: 12px;
  background: linear-gradient(140deg, rgba(62,224,255,.1), rgba(164,113,255,.06));
  border: 1px solid rgba(62,224,255,.22);
}
.calc-out .lbl { font-size: 11px; letter-spacing: .14em; color: var(--muted); text-transform: uppercase; }
.calc-out .big { font-size: 30px; font-weight: 800; margin-top: 6px; letter-spacing: -.02em; }
.calc-out .sub { font-size: 12.5px; color: var(--txt-2); margin-top: 8px; line-height: 1.75; }
.calc-out .rows { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 12px; }
.calc-out .row { display: flex; justify-content: space-between; font-size: 13px; padding: 4px 0; color: var(--txt-2); }
.calc-out .row b { color: var(--txt); font-weight: 650; }

/* chart */
.chart-box { position: relative; border: 1px solid var(--line); border-radius: var(--r); background: rgba(9,14,27,.7); padding: 20px; }
.chart-box svg { width: 100%; height: auto; display: block; }
.chart-legend { display: flex; gap: 18px; flex-wrap: wrap; font-size: 12px; color: var(--muted); margin-top: 14px; }
.chart-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 6px; }

/* heatmap */
.heat { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; font-size: 10.5px; }
.grid > *, .split > *, .info-grid > *, .figure-pair > *, .tiles > * { min-width: 0; }
.chart-box { min-width: 0; overflow-x: auto; }
.heat .hcell { aspect-ratio: 1.35; display: grid; place-items: center; border-radius: 5px; color: #04101a; font-weight: 700; }
.heat .hlabel { display: grid; place-items: center; color: var(--muted); font-size: 10.5px; }

/* CTA band */
.cta-band {
  position: relative; border: 1px solid rgba(62,224,255,.25); border-radius: var(--r-lg);
  padding: 56px; text-align: center; overflow: hidden;
  background: linear-gradient(130deg, rgba(62,224,255,.1), rgba(77,124,255,.07) 45%, rgba(164,113,255,.1));
}
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 260px at 50% 0%, rgba(62,224,255,.16), transparent 70%); pointer-events: none; }
.cta-band h2 { font-size: clamp(1.9rem, 3.2vw, 2.8rem); margin-bottom: 14px; }
.cta-band p { color: var(--txt-2); max-width: 620px; margin: 0 auto 28px; }
.cta-band .hero-cta { justify-content: center; margin-top: 0; }

/* ============================ PARTNER ADS ============================ */
/* 每页仅 1 张，居中融入阅读流；首页在 Hero 后、文章页在正文中部 */
.ad-strip { margin: 40px 0; padding: 22px 0 6px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
html[data-theme="light"] .ad-strip { background: rgba(255,255,255,.4); }
.ad-head { display: flex; align-items: baseline; justify-content: center; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; text-align: center; }
.ad-label { font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.ad-note { font-size: 11.5px; color: var(--dim); line-height: 1.6; }
.ad-grid { display: flex; justify-content: center; }
.ad-card { position: relative; display: block; width: min(100%, 720px); aspect-ratio: 600 / 285; overflow: hidden;
  border: 1px solid var(--line); border-radius: 12px; background: #0b1220;
  transition: border-color .25s, transform .25s, box-shadow .25s; }
.ad-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ad-card:hover { border-color: var(--cyan); transform: translateY(-3px); box-shadow: 0 12px 32px rgba(0,0,0,.35); }
.ad-badge { position: absolute; top: 8px; right: 8px; padding: 2px 7px; border-radius: 5px;
  background: rgba(5,8,16,.78); border: 1px solid var(--line-2); color: var(--muted);
  font-size: 10px; letter-spacing: .06em; }
@media (max-width: 620px) {
  .ad-card { aspect-ratio: 600 / 320; }
  .ad-note { width: 100%; }
}

/* ============================ FOOTER ============================ */
.footer { border-top: 1px solid var(--line); background: rgba(5,8,16,.9); padding: 72px 0 0; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 44px; padding-bottom: 48px; }
.footer-brand p { font-size: 13.5px; color: var(--muted); margin-top: 16px; max-width: 320px; line-height: 1.85; }
.footer h4 { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--txt); margin-bottom: 18px; }
.footer ul li { margin-bottom: 10px; }
.footer ul a { font-size: 13.5px; color: var(--muted); transition: color .25s; }
.footer ul a:hover { color: var(--cyan); }
.risk-box { border: 1px solid rgba(255,196,107,.22); background: rgba(255,196,107,.045); border-radius: var(--r); padding: 24px 26px; margin-bottom: 40px; }
.risk-box h4 { color: var(--gold); font-size: 13px; letter-spacing: .1em; margin-bottom: 10px; }
.risk-box p { font-size: 12.5px; color: var(--muted); line-height: 1.85; }
.footer-bottom { border-top: 1px solid var(--line); padding: 22px 0 30px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 12px; color: var(--dim); }
.footer-bottom a { color: var(--muted); } .footer-bottom a:hover { color: var(--cyan); }

/* reveal */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; } .reveal.d4 { transition-delay: .32s; }
.reveal.d5 { transition-delay: .4s; }  .reveal.d6 { transition-delay: .48s; }

/* page hero (inner pages) */
.page-hero { padding: calc(var(--nav-h) + 84px) 0 66px; position: relative; border-bottom: 1px solid var(--line); }
.page-hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(700px 340px at 82% 0%, rgba(62,224,255,.12), transparent 65%); }
.page-hero h1 { font-size: clamp(2.4rem, 4.6vw, 4rem); margin-bottom: 20px; }
.page-hero .lead { font-size: 17px; color: var(--txt-2); max-width: 720px; line-height: 1.9; }
.crumb { font-size: 12px; color: var(--dim); letter-spacing: .1em; margin-bottom: 24px; }
.crumb a:hover { color: var(--cyan); }
.hero-chips { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 28px; }

/* misc */
.divider { height: 1px; background: linear-gradient(90deg, transparent, var(--line-2), transparent); margin: 64px 0; }
.kpi-row { display: flex; gap: 26px; flex-wrap: wrap; margin-top: 26px; }
.kpi { min-width: 130px; }
.kpi .v { font-size: 24px; font-weight: 780; }
.kpi .k { font-size: 12px; color: var(--muted); }
.note { font-size: 12px; color: var(--dim); line-height: 1.8; margin-top: 14px; }
.center { text-align: center; }
.mt-0 { margin-top: 0; } .mt-24 { margin-top: 24px; } .mt-40 { margin-top: 40px; }
.mb-24 { margin-bottom: 24px; }

/* ============================ RESPONSIVE ============================ */
@media (max-width: 1080px) {
  .nav-links { gap: 0; }
  .nav-links > a { padding: 9px 9px; font-size: 13px; }
  .hero-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .hero-visual { min-height: 420px; }
  .float-card { transform: scale(.9); }
  .fc2 { right: 0; }
  .g4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}
@media (max-width: 900px) {
  /* 关键：header 的 backdrop-filter 会让抽屉的 position:fixed 锚定到 header 而非视口 */
  .nav { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(5,8,17,.96); }
  .nav-links {
    position: fixed; top: 0; right: 0; bottom: 0; width: min(320px, 84vw); z-index: 99;
    flex-direction: column; align-items: stretch; gap: 4px; margin: 0; padding: 92px 24px 30px;
    background: rgba(7,11,22,.97); backdrop-filter: blur(20px); border-left: 1px solid var(--line-2);
    transform: translateX(102%); transition: transform .4s var(--ease); overflow-y: auto;
  }
  .nav-links.show { transform: none; }
  .more-link { display: block; }
  .nav-more { display: none; }
  .drawer-group {
    display: block; margin: 14px 0 4px; padding: 6px 16px;
    font-size: 10.5px; font-weight: 750; letter-spacing: .14em;
    color: var(--cyan); border-bottom: 1px solid rgba(62,224,255,.2);
  }
  .nav-links > a { padding: 9px 16px; font-size: 13.5px; border-bottom: 1px solid rgba(125,165,225,.08); border-radius: 8px; }
  .nav-links > a.more-link { padding-left: 26px; color: var(--muted); }
  .nav-links > a.active::after { left: 16px; right: auto; width: 26px; bottom: 4px; }
  .hamburger { display: block; }
  .nav-actions .btn { display: none; }
  .hero-grid { grid-template-columns: 1fr; padding-top: 20px; }
  .hero-visual { min-height: 380px; order: 2; margin-top: -30px; }
  .hero { padding-top: calc(var(--nav-h) + 52px); }
  .hero h1 { font-size: clamp(2.4rem, 8vw, 3.6rem); }
  .split { grid-template-columns: 1fr; gap: 34px; }
  .g3, .g6 { grid-template-columns: repeat(2, 1fr); }
  .calc-grid { grid-template-columns: 1fr; }
  .strip { grid-template-columns: repeat(2, 1fr); }
  .strip .cell:nth-child(2) { border-right: 0; }
  .strip .cell:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .cta-band { padding: 40px 26px; }
  section { padding: 76px 0; }
  .ticker-disclaim { display: none; }
}
@media (max-width: 620px) {
  .wrap, .nav .wrap, .hero-grid { width: calc(100% - 32px); }
  .g2, .g3, .g4, .g6 { grid-template-columns: 1fr; }
  .hero-stats { flex-wrap: wrap; gap: 18px 0; }
  .hero-stats .item { min-width: 45%; flex: 0 0 50%; border-right: 0; }
  .hero-visual { min-height: 320px; }
  .float-card { font-size: 11px; padding: 9px 12px; }
  .float-card .val { font-size: 14px; }
  .fc1 { top: 4%; left: 0; } .fc2 { right: 1%; } .fc3 { bottom: 2%; left: 2%; }
  .glass { padding: 22px; }
  .glass.pad-lg { padding: 24px; }
  .sec-head { margin-bottom: 36px; }
  .sec-head h2 { font-size: 1.9rem; }
  .strip { grid-template-columns: 1fr 1fr; }
  .strip .v { font-size: 22px; }
  .heat { font-size: 8.5px; }
  .page-hero { padding-top: calc(var(--nav-h) + 52px); }
  /* 顶部栏在 390px 下必须保住汉堡按钮 */
  .nav .wrap { gap: 10px; }
  .brand { gap: 8px; }
  .brand-sub { display: none; }
  .brand-txt { font-size: 16px; }
  .brand-mark { width: 30px; height: 30px; }
  .nav-actions { gap: 8px; }
  .lang-switch a, .lang-switch span { padding: 4px 8px; font-size: 11px; }
  .hamburger { width: 36px; height: 36px; }
  .hamburger i { left: 9px; right: 9px; }
  .hamburger i:nth-child(1) { top: 12px; }
  .hamburger i:nth-child(2) { top: 17px; }
  .hamburger i:nth-child(3) { top: 22px; }
  .hamburger.open i:nth-child(1), .hamburger.open i:nth-child(3) { top: 17px; }
  .ticker-label .tl-long { display: none; }
  .ticker-label .tl-short { display: inline; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; }
  .ticker-label { padding: 0 12px; font-size: 10px; }
  .tk { padding: 0 16px; }
  .path-item { grid-template-columns: 40px 1fr; gap: 14px; }
  .path::before { left: 19px; }
  .path-dot { width: 28px; height: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   扩展组件：信息图 / 长文 / 标签页 / 数据卡
   ========================================================================== */
.figure {
  margin: 28px 0 32px; padding: 16px;
  border: 1px solid var(--line); border-radius: var(--r);
  background: linear-gradient(160deg, rgba(12,18,34,.9), rgba(7,11,22,.92));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.03), 0 18px 46px rgba(0,0,0,.28);
  overflow: hidden;
}
.figure svg { width: 100%; height: auto; display: block; }
.fig-cap {
  margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--line);
  font-size: 12px; color: var(--muted); line-height: 1.8;
}
.fig-cap::before { content: "▲"; color: var(--cyan); margin-right: 8px; font-size: 9px; }
.figure-pair { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.figure-pair .figure { margin: 0; }

.info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.info-card {
  border: 1px solid var(--line); border-radius: var(--r); padding: 24px;
  background: rgba(13,19,36,.62); transition: border-color .3s, transform .3s;
}
.info-card:hover { border-color: var(--line-2); transform: translateY(-3px); }
.info-card h4 { font-size: 16px; margin-bottom: 10px; }
.info-card p { font-size: 14px; color: var(--txt-2); }
.info-card .num-big { font-size: 32px; font-weight: 800; letter-spacing: -.03em; }

.callout.insight {
  border-left-color: var(--violet);
  background: linear-gradient(90deg, rgba(164,113,255,.1), rgba(164,113,255,0));
}
.callout.insight .ttl { color: var(--violet); }

.article-long { max-width: 860px; margin-inline: auto; }
.article-long h3 { font-size: 22px; margin: 40px 0 14px; }
.article-long h3:first-child { margin-top: 0; }
.article-long p { font-size: 15.5px; line-height: 2; color: var(--txt-2); margin-bottom: 16px; }
.article-long strong { color: var(--txt); font-weight: 650; }
.article-long .lead-p { font-size: 17px; color: var(--txt); border-left: 2px solid var(--cyan); padding-left: 18px; }

.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 24px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.tab-btn {
  padding: 9px 18px; border-radius: 999px; cursor: pointer; font-size: 13px;
  border: 1px solid var(--line-2); background: rgba(15,22,40,.6); color: var(--muted);
  transition: all .25s;
}
.tab-btn:hover { color: #fff; border-color: var(--cyan); }
.tab-btn.on { color: #04121b; background: var(--grad-1); border-color: transparent; font-weight: 700; }
.tab-panel { display: none; animation: fadeUp .45s var(--ease); }
.tab-panel.on { display: block; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.term-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.term {
  border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px;
  background: rgba(12,18,34,.6); transition: border-color .25s;
}
.term:hover { border-color: rgba(62,224,255,.4); }
.term .en { font-size: 10px; letter-spacing: .14em; color: var(--dim); text-transform: uppercase; }
.term .zh { font-size: 16px; font-weight: 700; margin: 2px 0 6px; }
.term .df { font-size: 13px; color: var(--txt-2); line-height: 1.8; }
.term .chip { display: inline-block; margin-top: 8px; font-size: 10px; color: var(--cyan); }

.formula {
  display: block; padding: 16px 20px; margin: 18px 0; border-radius: 12px;
  background: rgba(6,10,20,.85); border: 1px solid rgba(62,224,255,.22);
  font-family: ui-monospace, Consolas, monospace; font-size: 14px; color: var(--cyan);
  overflow-x: auto; white-space: pre-wrap; line-height: 1.9;
}

.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.tile {
  border: 1px solid var(--line); border-radius: 14px; padding: 20px;
  background: linear-gradient(150deg, rgba(62,224,255,.07), rgba(15,22,40,.65));
}
.tile .k { font-size: 11px; letter-spacing: .12em; color: var(--muted); text-transform: uppercase; }
.tile .v { font-size: 26px; font-weight: 800; margin: 6px 0 4px; letter-spacing: -.02em; }
.tile .s { font-size: 11.5px; color: var(--dim); line-height: 1.7; }

.insight-list { display: grid; gap: 12px; margin-top: 22px; }
.insight-list .row {
  display: grid; grid-template-columns: 38px 1fr; gap: 16px; align-items: start;
  padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: rgba(13,19,36,.55);
}
.insight-list .row .no { font-size: 12px; font-weight: 800; color: var(--cyan); padding-top: 3px; }
.insight-list .row b { display: block; font-size: 15px; margin-bottom: 4px; }
.insight-list .row span { font-size: 13.5px; color: var(--txt-2); line-height: 1.8; }

.essay {
  display: block; border: 1px solid var(--line); border-radius: var(--r); padding: 24px;
  background: rgba(13,19,36,.6); transition: .3s var(--ease);
}
.essay:hover { border-color: rgba(62,224,255,.4); transform: translateY(-4px); box-shadow: 0 18px 44px rgba(0,0,0,.3); }
.essay .n { font-size: 11px; letter-spacing: .18em; color: var(--cyan); }
.essay h3 { font-size: 19px; margin: 10px 0 8px; }
.essay p { font-size: 13.5px; color: var(--muted); }
.essay .meta { margin-top: 14px; font-size: 11px; color: var(--dim); }

/* 可访问性：跳转链接与键盘焦点 */
.skip-link {
  position: absolute; left: 16px; top: -80px; z-index: 200;
  padding: 11px 20px; border-radius: 10px; background: var(--grad-1);
  color: #04121b; font-size: 14px; font-weight: 750; transition: top .25s var(--ease);
}
.skip-link:focus { top: 14px; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }

@media (max-width: 900px) {
  .figure-pair, .info-grid, .term-grid { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .figure { padding: 8px; margin: 20px 0 24px; }
  .fig-cap { font-size: 11px; }
  .tiles { grid-template-columns: 1fr 1fr; gap: 10px; }
  .tile { padding: 14px; }
  .tile .v { font-size: 21px; }
  .article-long p { font-size: 14.5px; }
}

/* 滚动进度 + 站内搜索 */
.scroll-progress {
  position: absolute; left: 0; bottom: -1px; height: 2px; width: 0;
  background: linear-gradient(90deg, var(--cyan), var(--violet));
  box-shadow: 0 0 10px rgba(62,224,255,.6); z-index: 3;
  transition: width .12s linear;
}
.search-icon-btn {
  width: 34px; height: 34px; border: 1px solid var(--line-2); border-radius: 9px;
  background: rgba(15,22,40,.6); color: var(--txt-2); cursor: pointer;
  display: grid; place-items: center; transition: .25s;
}
.search-icon-btn:hover { color: var(--cyan); border-color: var(--cyan); }
.search-icon-btn svg { width: 16px; height: 16px; }
.theme-btn { width: 34px; height: 34px; border: 1px solid var(--line-2); border-radius: 9px; background: rgba(15,22,40,.6); color: var(--txt-2); cursor: pointer; display: grid; place-items: center; transition: .25s; }
.theme-btn:hover { color: var(--cyan); border-color: var(--cyan); }
.theme-btn svg { width: 16px; height: 16px; }
.search-modal { position: fixed; inset: 0; z-index: 300; display: none; align-items: flex-start; justify-content: center; padding-top: 12vh; }
.search-modal.open { display: flex; }
.search-backdrop { position: absolute; inset: 0; background: rgba(2,4,10,.82); backdrop-filter: blur(6px); }
.search-panel {
  position: relative; width: min(620px, calc(100% - 32px)); padding: 18px;
  border: 1px solid var(--line-2); border-radius: 16px;
  background: rgba(10,16,30,.98); box-shadow: 0 30px 80px rgba(0,0,0,.6);
  animation: fadeUp .3s var(--ease);
}
.search-input-row {
  display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 10px;
  background: rgba(6,10,20,.9); border: 1px solid var(--line-2);
}
.search-input-row svg { width: 18px; height: 18px; color: var(--cyan); flex: 0 0 auto; }
.search-input-row input { flex: 1; min-width: 0; background: none; border: 0; outline: none; color: var(--txt); font-size: 15px; }
.search-input-row input::placeholder { color: var(--dim); }
.search-close { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 18px; line-height: 1; }
.search-results { margin-top: 14px; max-height: 52vh; overflow-y: auto; display: grid; gap: 6px; }
.search-results a { display: block; padding: 11px 14px; border-radius: 9px; border: 1px solid transparent; }
.search-results a:hover { background: rgba(62,224,255,.08); border-color: rgba(62,224,255,.25); }
.search-results .st { font-size: 14px; font-weight: 650; color: var(--txt); }
.search-results .sd { font-size: 12px; color: var(--muted); margin-top: 3px; line-height: 1.6; }
.search-empty { padding: 24px; text-align: center; color: var(--muted); font-size: 13px; }
#searchIndex { display: none; }
.table-hint {
  margin: 16px 0 -6px; padding: 7px 11px; border-radius: 8px;
  font-size: 11px; color: var(--cyan);
  background: rgba(62,224,255,.06); border: 1px solid rgba(62,224,255,.18);
}

/* 词条检索与 pill */
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px;
  border: 1px solid var(--line-2); border-radius: 999px; font-size: 12px;
  color: var(--txt-2); background: rgba(15,22,40,.6); transition: .25s var(--ease);
}
.pill:hover { border-color: var(--cyan); color: var(--cyan); transform: translateY(-2px); }
.dict-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 24px 0 20px; }
.dict-search {
  flex: 1; min-width: 220px; display: flex; align-items: center; gap: 10px;
  padding: 11px 15px; border-radius: 11px; border: 1px solid var(--line-2);
  background: rgba(8,13,26,.9);
}
.dict-search svg { width: 17px; height: 17px; color: var(--cyan); flex: 0 0 auto; }
.dict-search input { flex: 1; min-width: 0; background: none; border: 0; outline: none; color: var(--txt); font-size: 14px; }
.dict-search input::placeholder { color: var(--dim); }
.dict-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.dict-alpha { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 14px; }
.dict-alpha .tab-btn { padding: 5px 9px; font-size: 11px; }
.dict-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.dict-card {
  display: block; padding: 15px 17px; border-radius: 12px; border: 1px solid var(--line);
  background: rgba(13,19,36,.6); transition: .25s var(--ease);
}
.dict-card:hover { border-color: rgba(62,224,255,.4); transform: translateY(-3px); }
.dict-card .en { font-size: 10px; letter-spacing: .1em; color: var(--dim); text-transform: uppercase; }
.dict-card .zh { font-size: 15px; font-weight: 700; margin: 3px 0 6px; color: var(--txt); }
.dict-card .df { font-size: 12px; color: var(--muted); line-height: 1.7; }
.dict-count { margin: 0 0 14px; font-size: 12px; color: var(--dim); }
@media (max-width: 900px) { .dict-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .dict-grid { grid-template-columns: 1fr; } }

/* 互动课程 */
.course-progress-head { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--muted); }
.course-progress-head b { font-size: 20px; color: var(--cyan); font-weight: 800; }
.course-bar { height: 8px; margin: 12px 0 14px; border-radius: 999px; background: rgba(125,165,225,.14); overflow: hidden; }
.course-bar > div { height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, var(--cyan), var(--violet)); transition: width .4s var(--ease); }
.course-meta { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--dim); }
.course-level { margin-bottom: 34px; }
.course-level h3 { font-size: 17px; margin-bottom: 14px; color: var(--txt); }
.course-lessons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.course-lesson {
  display: grid; grid-template-columns: 30px 1fr auto; gap: 10px; align-items: center;
  padding: 13px 15px; text-align: left; cursor: pointer; border-radius: 11px;
  border: 1px solid var(--line); background: rgba(13,19,36,.62); transition: .25s var(--ease);
}
.course-lesson:hover { border-color: rgba(62,224,255,.45); transform: translateY(-2px); }
.course-lesson.done { border-color: rgba(32,214,164,.42); background: rgba(32,214,164,.07); }
.cl-no { font-size: 11px; font-weight: 800; color: var(--cyan); }
.cl-title { font-size: 13px; color: var(--txt); }
.cl-state { font-size: 10.5px; color: var(--dim); }
.course-lesson.done .cl-state { color: var(--dn); }
.cld-head h3 { font-size: 20px; margin: 10px 0; }
.cld-head p { font-size: 14px; color: var(--txt-2); line-height: 1.9; }
.quiz-block { margin-top: 22px; }
.quiz-q { font-size: 14px; font-weight: 650; color: var(--txt); margin-bottom: 10px; }
.quiz-opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.quiz-opt {
  padding: 10px 12px; border-radius: 9px; text-align: left; cursor: pointer; font-size: 12.5px;
  border: 1px solid var(--line-2); background: rgba(10,16,30,.7); color: var(--txt-2); transition: .2s;
}
.quiz-opt:hover:not(:disabled) { border-color: var(--cyan); color: var(--cyan); }
.quiz-opt.correct { border-color: var(--dn); color: var(--dn); background: rgba(32,214,164,.12); }
.quiz-opt.wrong { border-color: var(--up); color: var(--up); background: rgba(255,91,114,.1); }
.course-lesson.locked { opacity: .42; cursor: not-allowed; }
.course-lesson.locked:hover { transform: none; border-color: var(--line); }
@media (max-width: 900px) { .course-lessons { grid-template-columns: repeat(2, 1fr); } .quiz-opts { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .course-lessons { grid-template-columns: 1fr; } }
.back-top {
  position: fixed; right: 20px; bottom: 24px; z-index: 90;
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--line-2); background: rgba(10,16,30,.92);
  color: var(--cyan); font-size: 18px; cursor: pointer;
  display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0,0,0,.4);
  transition: .25s var(--ease);
}
.back-top:hover { border-color: var(--cyan); transform: translateY(-3px); }
.back-top[hidden] { display: none; }
@media (max-width: 620px) { .search-modal { padding-top: 8vh; } }

/* 超小屏（≤360px）：保住汉堡按钮，抽屉改为近全宽 */
/* 长文目录 / 可信度信息 / 横向串联 */
.toc { margin: 18px 0 30px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; background: rgba(13,19,36,.62); }
.toc-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.toc-title { margin-bottom: 10px; font-size: 13px; font-weight: 750; color: var(--cyan); }
.toc.collapsible .toc-title { margin-bottom: 0; }
.toc-toggle { padding: 4px 10px; border: 1px solid var(--line-2); border-radius: 999px; background: rgba(62,224,255,.06); color: var(--cyan); font-size: 11px; cursor: pointer; transition: .18s; }
.toc-toggle:hover { border-color: var(--cyan); background: rgba(62,224,255,.14); }
.toc-toggle .toc-less { display: none; }
.toc-toggle[aria-expanded="true"] .toc-more { display: none; }
.toc-toggle[aria-expanded="true"] .toc-less { display: inline; }
html[data-theme="light"] .toc-list.collapsed::after { background: linear-gradient(180deg, transparent, #f2f5fa); }
.toc-list.collapsed { max-height: 76px; overflow: hidden; position: relative; }
.toc-list.collapsed::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 44px; background: linear-gradient(180deg, transparent, rgba(13,19,36,.98)); pointer-events: none; }
.toc-list { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 4px 18px; }
.toc-list a { display: block; padding: 3px 0; font-size: 12.5px; color: var(--muted); }
.toc-list a:hover { color: var(--cyan); }
.toc-list .toc-l3 { padding-left: 14px; font-size: 12px; color: var(--dim); }
.page-meta-bar { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 26px 0 20px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; background: rgba(62,224,255,.05); font-size: 11.5px; color: var(--muted); }
.page-meta-bar b { margin-right: 5px; color: var(--cyan); font-weight: 650; }
.rel-section { padding: 52px 0; border-top: 1px solid var(--line); background: rgba(8,13,26,.6); }
.rel-navs { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.rel-nav { flex: 1 1 180px; display: flex; flex-direction: column; gap: 5px; padding: 12px 16px; border: 1px solid var(--line-2); border-radius: 10px; font-size: 13px; color: var(--txt); }
.rel-nav span { font-size: 11px; color: var(--cyan); }
.rel-nav:hover { border-color: var(--cyan); }
.rel-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
.rel-card { display: block; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: rgba(13,19,36,.6); transition: .25s var(--ease); }
.rel-card:hover { border-color: rgba(62,224,255,.4); transform: translateY(-3px); }
.rel-card .rt { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 700; color: var(--txt); }
.rel-card .rd { display: block; font-size: 12px; line-height: 1.7; color: var(--muted); }
@media (max-width: 900px) { .rel-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } .toc-list { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .rel-grid { grid-template-columns: 1fr; } }

@media print {
  .nav, .footer, .search-modal, .back-top, .scroll-progress, .drawer-mask, #stars,
  .ticker, .float-card, .rel-section, .toc, .page-meta-bar, .skip-link,
  .search-icon-btn, .lang-switch, .hamburger, .more-btn, .figure-lightbox { display: none !important; }
  html, body { background: #fff !important; color: #111 !important; }
  body * { box-shadow: none !important; text-shadow: none !important; }
  .wrap { max-width: none !important; padding: 0 !important; }
  section, .alt { padding: 14px 0 !important; background: #fff !important; }
  h1, h2, h3, h4, p, li, td, th, strong, b { color: #111 !important; }
  a { color: #111 !important; text-decoration: none !important; }
  .glass, .info-card, .term, .tile, .card, .dtable { background: #fff !important; border-color: #ddd !important; color: #111 !important; }
  .dtable th, .dtable td { border-color: #ddd !important; }
  .figure { break-inside: avoid; background: #0a0e1a !important; border: 1px solid #bbb !important; }
  .fig-cap { color: #ddd !important; }
}

/* 正文术语内链 */
.term-link {
  color: var(--txt); text-decoration: underline dotted rgba(62,224,255,.55);
  text-underline-offset: 3px; transition: color .2s, text-decoration-color .2s;
}
.term-link:hover { color: var(--cyan); text-decoration-color: var(--cyan); }

/* 信息图放大查看 */
.figure-lightbox { position: fixed; inset: 0; z-index: 400; display: none; align-items: center; justify-content: center; padding: 20px; }
.figure-lightbox.open { display: flex; }
.lb-backdrop { position: absolute; inset: 0; background: rgba(2,4,10,.9); backdrop-filter: blur(6px); }
.lb-panel { position: relative; width: min(1100px, 96vw); max-height: 92vh; overflow: auto; padding: 22px; border: 1px solid var(--line-2); border-radius: 16px; background: rgba(10,16,30,.98); box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.lb-tools { position: absolute; top: 12px; right: 12px; z-index: 2; display: flex; gap: 8px; }
.lb-close { width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--line-2); background: rgba(10,16,30,.9); color: var(--txt); cursor: pointer; }
.lb-close:hover { border-color: var(--cyan); color: var(--cyan); }
.lb-download { height: 34px; padding: 0 12px; border-radius: 9px; border: 1px solid var(--line-2); background: rgba(10,16,30,.9); color: var(--txt-2); font-size: 12px; cursor: pointer; }
.lb-download:hover { border-color: var(--cyan); color: var(--cyan); }
.lb-svg svg { display: block; width: 100%; height: auto; }
.lb-cap { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); line-height: 1.8; }

@media (max-width: 360px) {
  .nav .wrap { gap: 6px; padding-inline: 12px; }
  .brand { gap: 6px; }
  .brand-mark { width: 26px; height: 26px; }
  .brand-txt { font-size: 14px; }
  .nav-actions { gap: 6px; }
  .nav-actions .btn-primary, .theme-btn { display: none; }
  .search-icon-btn { width: 30px; height: 30px; }
  .lang-switch { padding: 2px; gap: 1px; }
  .lang-switch a, .lang-switch span { padding: 3px 5px; font-size: 10px; }
  .hamburger { width: 32px; height: 32px; }
  .hamburger i { left: 8px; right: 8px; }
  .hamburger i:nth-child(1) { top: 10px; }
  .hamburger i:nth-child(2) { top: 15px; }
  .hamburger i:nth-child(3) { top: 20px; }
  .hamburger.open i:nth-child(1), .hamburger.open i:nth-child(3) { top: 15px; }
  .nav-links { width: 88vw; padding-inline: 18px; }
  .hero-stats .item { min-width: 100%; flex: 0 0 100%; }
}

/* ---------- reader enhancements ---------- */
:root { --reader-fs: 1; }
.reader-active main { font-size: calc(15px * var(--reader-fs)); }
.reader-active main p:not(.hero-sub), .reader-active main li,
.reader-active main .glass p, .reader-active main .essay p,
.reader-active main .bullet, .reader-active main .note p,
.reader-active main .callout p { font-size: 1em; line-height: 1.85; }
.page-meta-bar .read-progress { color: var(--cyan); font-variant-numeric: tabular-nums; }
.reader-tools { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-left: auto; padding-left: 16px; border-left: 1px solid var(--line); }
.reader-font, .reader-share { display: inline-flex; align-items: center; gap: 3px; }
.reader-fbtn, .reader-sbtn, .reader-fav {
  min-width: 26px; height: 26px; padding: 0 6px; border-radius: 7px;
  border: 1px solid var(--line); background: rgba(255,255,255,.03);
  color: var(--muted); font-size: 11px; line-height: 1; cursor: pointer; transition: .18s;
}
.reader-fbtn:hover, .reader-sbtn:hover, .reader-fav:hover { border-color: var(--cyan); color: var(--cyan); }
.reader-fbtn[aria-pressed="true"] { background: rgba(62,224,255,.16); border-color: var(--cyan); color: var(--cyan); }
.reader-fav { font-size: 14px; color: var(--dim); }
.reader-fav[aria-pressed="true"] { color: #ffc857; border-color: rgba(255,200,87,.55); }
.reader-toast {
  position: fixed; left: 50%; bottom: 32px; z-index: 9000;
  transform: translateX(-50%) translateY(20px); opacity: 0; pointer-events: none;
  padding: 10px 18px; border: 1px solid var(--line-2); border-radius: 10px;
  background: rgba(10,16,30,.97); color: var(--txt); font-size: 13px; transition: .25s;
}
.reader-toast.on { opacity: 1; transform: translateX(-50%) translateY(0); }
.term-tip {
  position: absolute; z-index: 8500; max-width: 320px; padding: 12px 14px;
  border: 1px solid var(--line-2); border-radius: 12px;
  background: rgba(10,16,30,.98); box-shadow: 0 18px 50px rgba(0,0,0,.55);
  font-size: 12.5px; color: var(--txt-2); line-height: 1.75;
}
.term-tip[hidden] { display: none; }
.term-tip .tt-more { margin-top: 8px; font-size: 11px; color: var(--cyan); }
.keys-help {
  position: fixed; right: 24px; bottom: 24px; z-index: 8600; width: 260px;
  padding: 14px 16px; border: 1px solid var(--line-2); border-radius: 14px;
  background: rgba(10,16,30,.98); box-shadow: 0 20px 60px rgba(0,0,0,.6);
}
.keys-help[hidden] { display: none; }
.kh-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font-size: 13px; color: var(--cyan); }
.kh-close { width: 22px; height: 22px; border-radius: 6px; border: 1px solid var(--line); background: none; color: var(--muted); cursor: pointer; }
.keys-help ul { list-style: none; margin: 0; padding: 0; }
.keys-help li { display: flex; align-items: center; gap: 10px; padding: 5px 0; font-size: 12px; color: var(--txt-2); }
.keys-help kbd { min-width: 26px; padding: 2px 6px; border: 1px solid var(--line-2); border-radius: 5px; text-align: center; color: var(--txt); font-family: ui-monospace, monospace; font-size: 11px; }
.fav-block { margin: 4px 18px 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.fav-title { margin-bottom: 8px; font-size: 11px; letter-spacing: .12em; color: var(--cyan); text-transform: uppercase; }
.fav-list { max-height: 160px; overflow: auto; }
.fav-row { display: flex; align-items: center; gap: 8px; padding: 5px 0; }
.fav-row a { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px; color: var(--txt-2); }
.fav-row a:hover { color: var(--cyan); }
.fav-del { width: 18px; height: 18px; border-radius: 5px; border: 1px solid var(--line); background: none; color: var(--muted); font-size: 10px; cursor: pointer; }
.fav-empty { padding: 4px 0; font-size: 12px; color: var(--dim); }
@media (max-width: 620px) {
  .reader-tools { width: 100%; margin-left: 0; padding-left: 0; border-left: none; }
  .keys-help { right: 12px; bottom: 12px; }
}
@media print {
  .reader-tools, .read-progress, .reader-toast, .term-tip, .keys-help, .fav-block { display: none !important; }
}
