/* ============================================================
   攒股收息 · 「收息存折 / 私人银行票据」视觉体系
   深墨绿压场 · 金箔细线 · 衬线大数字 · 朱红印章 · 纸张纹理
   v3 — 全站视觉升级（保留全部原有类名与交互 id）
   ============================================================ */
:root {
  /* 纸 */
  --bg:        #F5F1E8;
  --bg-soft:   #EDE6D7;
  --card:      #FFFDF8;
  --card-soft: #F8F2E3;
  /* 金 */
  --gold:      #C9A24B;
  --gold-deep: #8E6D27;
  --gold-soft: #F2E6C8;
  --gold-tint: #FAF4E6;
  --foil:      #E3C578;   /* 金箔亮色，用于深底 */
  /* 墨绿 */
  --forest:    #1B332C;
  --forest-2:  #2A4A3C;
  --forest-3:  #14261F;
  /* 朱红印章 */
  --seal:      #A8442F;
  /* 字 */
  --brown:     #3B2A18;
  --ink:       #26221C;
  --ink-2:     #6B6154;
  --ink-3:     #A39786;
  /* 线 */
  --line:      #E6DECC;
  --line-2:    #F0EADB;
  /* 语义 */
  --green:     #4E9B63;
  --amber:     #D99B36;
  --red:       #C9553A;
  --blue:      #5B8DEF;
  /* 形 */
  --radius:    14px;
  --radius-sm: 9px;
  --shadow:    0 1px 2px rgba(59,42,24,.04), 0 10px 28px rgba(59,42,24,.045);
  --shadow-sm: 0 1px 2px rgba(59,42,24,.035);
  --shadow-lg: 0 20px 46px rgba(27,51,44,.20);
  /* 字体 */
  --serif:     Georgia, "Songti SC", "STSong", "Noto Serif CJK SC", "Source Han Serif SC", "SimSun", serif;
  --num:       Georgia, "Times New Roman", "Songti SC", serif;
  --sans:      -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", "Microsoft YaHei", Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--ink); font-size: 18px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  background-color: var(--bg);
  /* 纸张点阵 + 极淡斜光 */
  background-image:
    radial-gradient(circle at 1px 1px, rgba(89,70,42,.045) 1px, transparent 0),
    linear-gradient(160deg, rgba(255,255,255,.55) 0%, rgba(255,255,255,0) 42%);
  background-size: 5px 5px, 100% 100%;
  background-attachment: fixed, fixed;
}

::selection { background: var(--gold-soft); color: var(--brown); }

/* ===================== 顶部品牌栏 ===================== */
.appbar {
  position: sticky; top: 0; z-index: 30;
  background: rgba(255,253,248,.90);
  backdrop-filter: saturate(1.5) blur(14px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(255,255,255,.7) inset;
}
.appbar::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,162,75,.42) 18%, rgba(201,162,75,.42) 82%, transparent);
}
.appbar-inner { max-width: 1180px; margin: 0 auto; padding: 13px 24px 0; }
.brand-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.brand { display: flex; align-items: center; gap: 12px; }

/* 印章式 logo */
.brand-mark {
  position: relative; width: 42px; height: 42px; flex: none;
  border-radius: 50%; display: grid; place-items: center;
  background: var(--seal); color: #FFF6E6;
  font-family: var(--serif); font-size: 28px; font-weight: 700; line-height: 1;
  box-shadow: 0 3px 10px rgba(168,68,47,.28), inset 0 0 0 2px rgba(255,246,230,.55);
  transform: rotate(-7deg);
}
.brand-mark::after {
  content: ""; position: absolute; inset: 3px; border-radius: 50%;
  border: 1px solid rgba(255,246,230,.35); pointer-events: none;
}
.brand-text strong {
  display: block; font-family: var(--serif); font-size: 22px; font-weight: 700;
  color: var(--brown); letter-spacing: 2.5px; line-height: 1.2;
}
.brand-text small {
  display: block; color: var(--ink-3); font-size: 14px;
  letter-spacing: 2.4px; text-transform: uppercase; margin-top: 3px;
}
.brand-kicker {
  display: inline-block; font-size: 14px; letter-spacing: 2px; color: var(--gold-deep);
  border: 1px solid var(--gold-soft); border-radius: 3px; padding: 2px 7px;
  margin-left: 10px; vertical-align: 3px; text-transform: uppercase;
}

.updated { font-size: 14px; color: var(--ink-3); white-space: nowrap; letter-spacing: .3px; }
.updated b { color: var(--gold-deep); font-weight: 600; }
.live-dot {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--green); margin-right: 6px; vertical-align: 1px;
  box-shadow: 0 0 0 3px rgba(78,155,99,.16);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 3px rgba(78,155,99,.16) } 50% { box-shadow: 0 0 0 6px rgba(78,155,99,.06) } }

/* 导航：细下划线 + 字距 */
.nav { display: flex; gap: 2px; margin-top: 14px; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a {
  text-decoration: none; color: var(--ink-2);
  padding: 10px 17px 12px; font-size: 18px; letter-spacing: .6px;
  white-space: nowrap; position: relative; flex: none;
  transition: color .18s;
}
.nav a:hover { color: var(--gold-deep); }
.nav a.active { color: var(--brown); font-weight: 700; }
.nav a.active::after {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: 0; height: 3px;
  background: linear-gradient(90deg, var(--foil), var(--gold-deep)); border-radius: 3px 3px 0 0;
}
.nav a.active::before {
  content: ""; position: absolute; left: 50%; bottom: 0; width: 4px; height: 4px;
  background: var(--gold-deep); transform: translate(-50%, 1px) rotate(45deg);
}

/* ===================== 内容容器 ===================== */
.wrap { max-width: 1180px; margin: 0 auto; padding: 26px 24px 72px; }
.page > .hero, .page > .card, .page > .stats { animation: rise .55s cubic-bezier(.2,.7,.3,1) backwards; }
.page > *:nth-child(2) { animation-delay: .05s; }
.page > *:nth-child(3) { animation-delay: .10s; }
.page > *:nth-child(4) { animation-delay: .15s; }
.page > *:nth-child(5) { animation-delay: .20s; }
.page > *:nth-child(6) { animation-delay: .25s; }
@keyframes rise { from { opacity: 0; transform: translateY(16px) } to { opacity: 1; transform: translateY(0) } }

/* 页脚 */
.site-foot {
  margin-top: 34px; padding-top: 18px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  font-size: 14px; color: var(--ink-3); letter-spacing: .4px;
}
.site-foot b { font-family: var(--serif); color: var(--gold-deep); letter-spacing: 1px; }

/* ===================== 卡片：票据纸 ===================== */
.card {
  position: relative;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 4px 12px 12px 12px; padding: 22px 24px;
  box-shadow: var(--shadow); margin-bottom: 18px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
/* 左上折角细线 */
.card::before {
  content: ""; position: absolute; top: 0; left: 0; width: 24px; height: 24px;
  border-top: 2px solid rgba(201,162,75,.55); border-left: 2px solid rgba(201,162,75,.55);
  border-radius: 4px 0 0 0; pointer-events: none;
}
.card:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(59,42,24,.06), 0 18px 36px rgba(59,42,24,.07); border-color: #DDD0B6; }
.card h2 {
  font-family: var(--serif); font-size: 22px; margin: 0 0 16px;
  color: var(--brown); font-weight: 700; letter-spacing: .6px;
  display: flex; align-items: center; gap: 9px;
}
.card h2::before {
  content: ""; width: 3px; height: 19px; flex: none; border-radius: 2px;
  background: linear-gradient(180deg, var(--foil), var(--gold-deep));
}
.card h2 .sub { font-family: var(--sans); font-size: 16px; color: var(--ink-3); font-weight: 400; margin-left: auto; letter-spacing: 0; }
.card h3 { font-size: 18px; margin: 0 0 8px; color: var(--gold-deep); font-weight: 700; }

/* 卡片内分区眉标 */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; letter-spacing: 2.2px; text-transform: uppercase;
  color: var(--gold-deep); font-weight: 700; margin-bottom: 10px;
}
.eyebrow::after { content: ""; width: 34px; height: 1px; background: var(--gold-soft); }

/* ===================== 统计块：衬线大数字 ===================== */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.stat {
  position: relative; background: var(--card); border: 1px solid var(--line);
  border-radius: 4px 11px 11px 11px; padding: 17px 18px; box-shadow: var(--shadow-sm);
  overflow: hidden; transition: transform .2s ease, box-shadow .2s ease;
}
.stat::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--foil), transparent 72%); }
.stat:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(59,42,24,.08); }
.stat .label { color: var(--ink-3); font-size: 14px; letter-spacing: 1.4px; text-transform: uppercase; }
.stat .value {
  font-family: var(--num); font-size: 46px; font-weight: 700; margin-top: 7px;
  color: var(--ink); letter-spacing: -.5px; font-variant-numeric: tabular-nums; line-height: 1.1;
}
.stat .value.gold { color: var(--gold-deep); }
.stat.sub { background: var(--card-soft); border-color: var(--gold-soft); box-shadow: none; }
.stat.sub h3 { color: var(--gold-deep); margin: 0 0 6px; }
.stat.sub p { margin: 0; color: var(--ink-2); font-size: 16px; line-height: 1.65; }

/* ===================== 网格 ===================== */
.grid { display: grid; gap: 16px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

/* ===================== 主视觉 Hero：深墨绿票据 ===================== */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(900px 320px at 88% -20%, rgba(227,197,120,.16), transparent 70%),
    linear-gradient(125deg, var(--forest-3) 0%, var(--forest) 42%, var(--forest-2) 100%);
  border: 1px solid rgba(227,197,120,.30); border-radius: 4px 16px 16px 16px;
  padding: 38px 42px 34px; margin-bottom: 18px; color: #F6EFDF;
  box-shadow: var(--shadow-lg);
}
/* 内嵌金线框 */
.hero::before {
  content: ""; position: absolute; inset: 9px; border: 1px solid rgba(227,197,120,.22);
  border-radius: 2px 10px 10px 10px; pointer-events: none; z-index: 1;
}
/* 水印大字 */
.hero::after {
  content: "攒"; position: absolute; right: 4%; bottom: -22%;
  font-family: var(--serif); font-size: 313px; line-height: 1; font-weight: 700;
  color: rgba(227,197,120,.055); pointer-events: none; z-index: 0;
  transform: rotate(-8deg);
}
.hero > * { position: relative; z-index: 2; }
.hero .lead {
  font-family: var(--serif); font-size: 18px; color: var(--foil); font-weight: 700;
  letter-spacing: 1px; display: block;
}
.hero .lead small {
  display: block; font-family: var(--sans); font-weight: 400; font-size: 16px;
  color: rgba(246,239,223,.68); margin-top: 5px; letter-spacing: .2px;
}
/* Hero 专用：票据抬头 / 大标题 / 印章 / 数据带 */
.hero-top {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 20px;
  padding-bottom: 16px; border-bottom: 1px solid rgba(227,197,120,.22);
}
.hero-kicker {
  font-size: 14px; letter-spacing: 3px; text-transform: uppercase;
  color: rgba(227,197,120,.82);
}
.hero-kicker b { color: var(--foil); font-weight: 700; }
.hero-title {
  font-family: var(--serif); font-size: 46px; line-height: 1.28; font-weight: 700;
  letter-spacing: 2px; margin: 16px 0 0; color: #FBF4E4;
}
.hero-title em { font-style: normal; color: var(--foil); }
.hero-sub {
  margin: 12px 0 0; font-size: 18px; color: rgba(246,239,223,.72);
  letter-spacing: .5px; line-height: 1.8;
}
/* 朱红圆印章 */
.seal {
  flex: none; width: 92px; height: 92px; border-radius: 50%;
  border: 2px solid var(--seal); color: var(--seal);
  display: grid; place-items: center; text-align: center;
  font-family: var(--serif); font-size: 46px; font-weight: 700; line-height: 1;
  transform: rotate(11deg); position: relative;
  background: rgba(168,68,47,.06);
  box-shadow: inset 0 0 0 4px rgba(168,68,47,.10), 0 4px 14px rgba(0,0,0,.14);
  animation: sealFloat 6s ease-in-out infinite;
}
.seal::after {
  content: ""; position: absolute; inset: 5px; border-radius: 50%;
  border: 1px dashed rgba(168,68,47,.55);
}
.seal small { display: block; font-size: 14px; letter-spacing: 2px; margin-top: 5px; font-family: var(--sans); }
@keyframes sealFloat { 0%,100% { transform: rotate(11deg) translateY(0) } 50% { transform: rotate(8deg) translateY(-5px) } }
/* Hero 底部数据带 */
.hero-band {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  margin-top: 26px; padding-top: 20px; border-top: 1px solid rgba(227,197,120,.22);
}
.hero-band > div { padding: 0 24px; border-right: 1px solid rgba(227,197,120,.18); }
.hero-band > div:first-child { padding-left: 0; }
.hero-band > div:last-child { border-right: none; }
.hb-label { font-size: 14px; letter-spacing: 2px; text-transform: uppercase; color: rgba(227,197,120,.72); }
.hb-value {
  font-family: var(--num); font-size: 36px; font-weight: 700; color: var(--foil);
  margin-top: 5px; line-height: 1.1; font-variant-numeric: tabular-nums;
}
.hb-value small { font-family: var(--sans); font-size: 16px; color: rgba(246,239,223,.6); margin-left: 4px; font-weight: 400; }
.hb-note { font-size: 14px; color: rgba(246,239,223,.5); margin-top: 4px; }
/* 内页紧凑章节封面 */
.hero.compact { padding: 26px 32px 27px; }
.hero.compact .lead { font-family: var(--serif); font-size: 36px; letter-spacing: 3px; color: #FBF4E4; line-height: 1.35; }
.hero.compact .lead small { font-size: 16px; letter-spacing: .3px; margin-top: 9px; max-width: 780px; }
.hero.compact::after { font-size: 191px; bottom: -46%; right: 3%; }
.hero.compact .pill { background: rgba(255,253,248,.14); color: var(--foil); border: 1px solid rgba(227,197,120,.3); }
.hero.compact .btn.ghost { background: rgba(255,253,248,.10); color: var(--foil); border-color: rgba(227,197,120,.35); }
.hero.compact .btn.ghost:hover { background: rgba(255,253,248,.2); }

/* 撕票虚线 */
.hero-tear {
  position: absolute; left: 0; right: 0; bottom: 0; height: 8px; z-index: 3;
  background:
    radial-gradient(circle at 6px 0, var(--bg) 5px, transparent 5.5px) 0 0 / 14px 8px repeat-x;
  border-top: 1px dashed rgba(227,197,120,.3);
}

/* Hero 内的核心双栏（浅色纸卡） */
.core2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 16px; }
.core-card {
  position: relative; background: #FFFDF8; border: 1px solid var(--gold-soft);
  border-radius: 4px 12px 12px 12px; padding: 18px 20px;
  box-shadow: 0 6px 20px rgba(20,38,31,.10);
}
.core-card::before { content: ""; position: absolute; top: 0; left: 0; width: 3px; height: 100%;
  background: linear-gradient(180deg, var(--foil), var(--gold-deep)); border-radius: 4px 0 0 12px; }
.core-card h3 { display: flex; align-items: center; gap: 9px; color: var(--brown);
  font-family: var(--serif); font-size: 22px; margin: 0 0 8px; letter-spacing: 1px; }
.core-card p { margin: 0; color: var(--ink-2); font-size: 16px; line-height: 1.75; }

/* 圆形数字徽章 */
.badge-num {
  width: 27px; height: 27px; border-radius: 50%; flex: none;
  background: linear-gradient(135deg, var(--foil), var(--gold-deep));
  color: #fff; font-family: var(--num); font-size: 18px; font-weight: 700;
  display: inline-grid; place-items: center; box-shadow: 0 2px 6px rgba(142,109,39,.32);
}

/* ===================== Tab / 筛选胶囊 ===================== */
.tabs { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 12px; }
.tab, .chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 7px 15px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--card); color: var(--ink-2);
  font-size: 16px; cursor: pointer; transition: all .18s; white-space: nowrap;
  font-family: inherit;
}
.tab:hover, .chip:hover { border-color: var(--gold); color: var(--gold-deep); transform: translateY(-1px); }
.tab.active, .chip.active {
  background: linear-gradient(135deg, var(--forest), var(--forest-2));
  border-color: var(--forest); color: #FBF4E4; font-weight: 700;
  box-shadow: 0 3px 10px rgba(27,51,44,.18);
}
.tab .cnt { font-size: 14px; color: var(--ink-3); font-weight: 400; font-family: var(--num); }
.tab.active .cnt { color: var(--foil); }

/* 行内小标签 */
.pill {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 999px;
  background: var(--bg-soft); color: var(--ink-3);
  font-size: 14px; white-space: nowrap; letter-spacing: .3px;
}

/* ===================== 搜索框 ===================== */
.search { position: relative; margin: 14px 0 4px; }
.search .ico { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--ink-3); font-size: 18px; }
.search input {
  width: 100%; padding: 12px 15px 12px 40px; border-radius: 4px 10px 10px 10px;
  border: 1px solid var(--line); background: #FBF7EE; font-size: 16px;
  color: var(--ink); font-family: inherit; letter-spacing: .3px;
  transition: border-color .18s, box-shadow .18s, background .18s;
}
.search input::placeholder { color: var(--ink-3); }
.search input:focus { outline: none; border-color: var(--gold); background: var(--card); box-shadow: 0 0 0 3px var(--gold-soft); }
.search .hint { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--ink-3); font-size: 14px; font-family: var(--num); }

/* ===================== 表格（股票池 / 后台） ===================== */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.ptable { width: 100%; border-collapse: collapse; font-size: 16px; min-width: 720px; }
.ptable thead th {
  color: var(--ink-3); font-weight: 700; font-size: 14px; text-align: left;
  padding: 11px 10px; letter-spacing: 1.4px; text-transform: uppercase;
  border-bottom: 2px solid var(--gold-soft); cursor: pointer;
  user-select: none; white-space: nowrap; background: transparent;
}
.ptable thead th.no-sort { cursor: default; }
.ptable thead th::after { content: ""; }
.ptable tbody td { padding: 14px 10px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.ptable tbody tr { transition: background .15s, box-shadow .15s; }
.ptable tbody tr:hover { background: #FBF6EA; box-shadow: inset 3px 0 0 var(--gold); }

.stock-name { font-size: 18px; font-weight: 700; color: var(--ink); letter-spacing: .3px; }
.stock-code { font-size: 14px; color: var(--ink-3); margin-top: 3px; font-family: var(--num); letter-spacing: .6px; }
.theme-tag {
  display: inline-block; margin-left: 7px; padding: 2px 7px; border-radius: 3px;
  background: var(--bg-soft); color: var(--ink-2); font-size: 14px; font-weight: 600;
  vertical-align: middle; letter-spacing: .3px;
}
.muted { color: var(--ink-3); font-size: 16px; }
.yield-big {
  font-family: var(--num); font-size: 28px; font-weight: 700; color: var(--gold-deep);
  font-variant-numeric: tabular-nums; letter-spacing: -.6px; line-height: 1;
}
.buy-price { font-weight: 700; color: var(--ink); font-family: var(--num); font-size: 18px; }
.buy-delta { font-size: 14px; color: var(--ink-3); margin-top: 3px; }
.buy-delta.ok { color: var(--green); }

/* 重点关注页：备注输入框 */
.focus-note {
  width: 150px; padding: 5px 8px; font-size: 16px; color: var(--ink);
  background: var(--paper); border: 1px dashed #D8D2C2; border-radius: 4px;
}
.focus-note::placeholder { color: var(--ink-3); font-size: 14px; }
.focus-note:focus { outline: none; border-style: solid; border-color: var(--gold); background: #FFF; box-shadow: 0 0 0 3px var(--gold-soft); }

/* 建议胶囊（五档） */
.advice { display: inline-block; padding: 4px 11px; border-radius: 3px; font-size: 16px; font-weight: 700; letter-spacing: .5px; }
.advice.low   { background: #E4F1E7; color: #2F7A4C; box-shadow: inset 0 0 0 1px rgba(78,155,99,.22); }
.advice.buy   { background: #EBF3DF; color: #4E8438; box-shadow: inset 0 0 0 1px rgba(110,160,74,.20); }
.advice.mid   { background: #F9EDCF; color: #A8801F; box-shadow: inset 0 0 0 1px rgba(217,155,54,.20); }
.advice.high  { background: #F9E4D9; color: #B6552F; box-shadow: inset 0 0 0 1px rgba(201,85,58,.18); }
.advice.vhigh { background: #F6DAD4; color: #A9372A; box-shadow: inset 0 0 0 1px rgba(169,55,42,.20); }
.advice.unknown { background: #EFEAE0; color: var(--ink-3); }

/* 价格位置条 */
.pos-wrap { display: flex; align-items: center; gap: 8px; }
.posbar { position: relative; height: 7px; width: 100px; border-radius: 6px;
  background: linear-gradient(90deg, #4E9B63, #D99B36, #C9553A); flex: none; }
.posbar .mk {
  position: absolute; top: -4px; width: 4px; height: 15px; background: var(--forest);
  border-radius: 2px; transform: translateX(-50%); box-shadow: 0 0 0 2px #FFFDF8;
  transition: left .45s cubic-bezier(.2,.7,.3,1);
}
.pos-label { font-size: 14px; color: var(--ink-2); font-family: var(--num); }

/* 保险圆点 */
.dots { letter-spacing: 3px; font-size: 16px; white-space: nowrap; }

/* 关注星标 */
.star { background: none; border: none; cursor: pointer; font-size: 22px; color: var(--ink-3);
  padding: 2px 4px; transition: color .18s, transform .18s; }
.star:hover { transform: scale(1.2); }
.star.on { color: var(--gold); }

/* ===================== 按钮 ===================== */
.btn {
  position: relative; overflow: hidden;
  border: 1px solid var(--forest); background: var(--forest); color: #FBF4E4;
  padding: 10px 20px; border-radius: 4px 9px 9px 9px; cursor: pointer;
  font-size: 16px; font-weight: 600; font-family: inherit; letter-spacing: .5px;
  transition: transform .15s, box-shadow .15s, background .15s, border-color .15s;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
}
.btn::after {
  content: ""; position: absolute; top: 0; left: -120%; width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.18), transparent);
  transition: left .55s ease; pointer-events: none;
}
.btn:hover { background: var(--forest-2); transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(27,51,44,.20); }
.btn:hover::after { left: 140%; }
.btn:active { transform: translateY(0); }
.btn.ghost { background: var(--card); color: var(--forest); border-color: var(--line); }
.btn.ghost:hover { background: var(--card-soft); border-color: var(--gold); color: var(--gold-deep); }
.btn.sm { padding: 6px 12px; font-size: 16px; border-radius: 3px 7px 7px 7px; }
.btn.gold-soft { background: var(--gold-soft); border-color: var(--gold-soft); color: var(--gold-deep); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }

/* ===================== 表单 ===================== */
label { display: block; font-size: 16px; color: var(--ink-2); margin-bottom: 6px; letter-spacing: .3px; }
input[type=text], input[type=number], input[type=password], select {
  border: 1px solid var(--line); border-radius: 4px 8px 8px 8px; padding: 10px 12px;
  font-size: 16px; background: var(--card); color: var(--ink); font-family: inherit; width: 100%;
  transition: border-color .18s, box-shadow .18s;
}
input:focus, select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }

/* ===================== 滑块 ===================== */
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 5px;
  border-radius: 999px; background: linear-gradient(90deg, var(--gold-deep), var(--gold-soft)); cursor: pointer; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none;
  width: 20px; height: 20px; border-radius: 50%; background: var(--card);
  border: 5px solid var(--forest); box-shadow: 0 2px 7px rgba(27,51,44,.28); transition: transform .15s; }
input[type=range]::-webkit-slider-thumb:hover { transform: scale(1.12); }
input[type=range]::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%;
  background: var(--card); border: 5px solid var(--forest); }

/* ===================== 提示 / 分隔 ===================== */
.note { font-size: 16px; color: var(--ink-2); line-height: 1.7; }
.divider { height: 1px; background: linear-gradient(90deg, var(--gold-soft), var(--line), transparent); margin: 18px 0; }

/* ===================== 课堂 lesson ===================== */
.lesson {
  position: relative; border: 1px solid var(--line); border-radius: 4px 11px 11px 11px;
  padding: 17px 19px; margin-bottom: 12px; background: var(--card);
  border-left: 3px solid var(--gold);
}
.lesson h4 { margin: 0 0 8px; font-family: var(--serif); font-size: 18px;
  color: var(--brown); display: flex; align-items: center; gap: 9px; font-weight: 700; letter-spacing: .5px; }
.lesson h4::before { content: ""; width: 7px; height: 7px; flex: none;
  background: var(--gold-deep); transform: rotate(45deg); }
.lesson p { margin: 0; color: var(--ink-2); font-size: 16px; line-height: 1.8; }

/* 浅提示条：左侧金竖线 */
.tip {
  position: relative; background: var(--card-soft); border: 1px solid var(--gold-soft);
  border-left: 3px solid var(--gold); border-radius: 3px 9px 9px 9px;
  padding: 13px 16px; font-size: 16px; color: var(--ink-2); line-height: 1.75; margin-bottom: 12px;
}

/* ===================== 弹窗 ===================== */
.modal { position: fixed; inset: 0; background: rgba(20,38,31,.52); backdrop-filter: blur(3px);
  display: grid; place-items: center; z-index: 60; padding: 16px; }
.modal.hidden { display: none; }
/* 通用隐藏（重点关注页空态切换等） */
.hidden { display: none !important; }
.modal-box {
  background: var(--card); border: 1px solid var(--gold-soft); border-radius: 6px 16px 16px 16px;
  padding: 26px; width: min(600px, 94vw); max-height: 88vh; overflow: auto;
  position: relative; box-shadow: 0 24px 60px rgba(20,38,31,.32);
  animation: pop .25s cubic-bezier(.2,.7,.3,1) backwards;
}
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.98) } to { opacity: 1; transform: none } }
.modal-close { position: absolute; top: 12px; right: 16px; border: none; background: none;
  font-size: 28px; cursor: pointer; color: var(--ink-3); line-height: 1; }
.modal-box h2 { margin: 0 0 18px; color: var(--brown); font-family: var(--serif); font-size: 28px; letter-spacing: .5px; }

/* ===================== 列表项 ===================== */
.row-line { display: flex; justify-content: space-between; align-items: center;
  padding: 12px 0; border-bottom: 1px solid var(--line-2); gap: 12px; }
.row-line:last-child { border-bottom: none; }
.row-line span { font-size: 18px; color: var(--ink); }

/* ===================== 参考图专用组件 ===================== */
/* 步骤流程 */
.step-flow { display: flex; align-items: stretch; gap: 6px; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
.step { flex: 1; min-width: 88px; background: var(--card-soft); border: 1px solid var(--gold-soft);
  border-radius: 4px 10px 10px 10px; padding: 13px 8px; text-align: center;
  transition: transform .18s, box-shadow .18s; }
.step:hover { transform: translateY(-2px); box-shadow: 0 6px 14px rgba(59,42,24,.08); }
.step .sn { width: 23px; height: 23px; border-radius: 50%; margin: 0 auto 7px;
  background: linear-gradient(135deg, var(--foil), var(--gold-deep)); color: #fff;
  font-family: var(--num); font-size: 16px; font-weight: 700; display: grid; place-items: center; }
.step .st { font-size: 16px; font-weight: 700; color: var(--brown); }
.step .sd { font-size: 14px; color: var(--ink-3); margin-top: 4px; }
.step-arrow { display: grid; place-items: center; color: var(--gold); font-size: 18px; flex: none; }

/* 公式框（衬线） */
.formula { background: var(--card-soft); border: 1px solid var(--gold-soft); border-radius: 4px 10px 10px 10px;
  padding: 13px 12px; font-family: var(--serif); font-size: 18px; font-weight: 700;
  color: var(--brown); text-align: center; letter-spacing: .5px; }
.formula .op { color: var(--gold-deep); margin: 0 4px; }

/* 目录四宫格 */
.toc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; }
.toc-cell { border: 1px solid var(--line); border-radius: 4px 11px 11px 11px;
  padding: 15px; background: var(--card); transition: transform .18s, box-shadow .18s, border-color .18s; }
.toc-cell:hover { transform: translateY(-3px); border-color: var(--gold-soft); box-shadow: 0 10px 22px rgba(59,42,24,.07); }
.toc-cell h4 { margin: 0 0 10px; font-family: var(--serif); font-size: 18px; color: var(--brown);
  display: flex; align-items: center; gap: 7px; font-weight: 700; letter-spacing: .5px; }
.toc-cell h4::before { content: ""; width: 9px; height: 9px; flex: none; transform: rotate(45deg);
  background: linear-gradient(135deg, var(--foil), var(--gold-deep)); }
.toc-cell ul { margin: 0; padding-left: 0; list-style: none; }
.toc-cell li { font-size: 16px; color: var(--ink-2); line-height: 2; }
.toc-cell li a { color: var(--ink-2); text-decoration: none; transition: color .15s; }
.toc-cell li a:hover { color: var(--gold-deep); }

/* 堆叠条 */
.sbar-row { margin-bottom: 13px; }
.sbar-head { display: flex; justify-content: space-between; align-items: baseline;
  font-size: 14px; color: var(--ink-2); margin-bottom: 6px; }
.sbar-head .sv { font-family: var(--num); font-size: 18px; font-weight: 700; color: var(--ink); }
.sbar { height: 21px; border-radius: 3px; background: #EFE9DC; display: flex; overflow: hidden; gap: 2px; padding: 2px; }
.sbar .seg { border-radius: 2px; display: grid; place-items: center; font-size: 14px; color: #fff; font-weight: 700;
  animation: growX .6s ease-out backwards; }
@keyframes growX { from { transform: scaleX(0); transform-origin: left } to { transform: scaleX(1) } }
.seg.gray { background: #CFC5B2; } .seg.blue { background: #5B8DEF; }
.seg.orange { background: #E08B45; } .seg.purple { background: #9B7ED8; } .seg.green { background: #4E9B63; }
.sbar-legend { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 7px; font-size: 14px; color: var(--ink-2); }
.sbar-legend i { width: 9px; height: 9px; border-radius: 2px; display: inline-block; margin-right: 4px; vertical-align: -1px; }

/* A / B 结果卡 */
.ab-card { border-radius: 4px 11px 11px 11px; padding: 15px; border: 1px solid; }
.ab-card.a { background: linear-gradient(135deg, #FCF5E5, #F7EBD2); border-color: var(--gold-soft); }
.ab-card.b { background: #F2EFE8; border-color: #E4DDCF; }
.ab-card .abt { font-size: 14px; color: var(--ink-2); letter-spacing: 1px; text-transform: uppercase; }
.ab-card .abv { font-family: var(--num); font-size: 36px; font-weight: 700; color: var(--ink); margin-top: 5px; line-height: 1.1; }
.ab-card .abs { font-size: 14px; color: var(--ink-3); margin-top: 4px; }

/* 对比条 */
.cmp-row { margin-bottom: 11px; }
.cmp-head { display: flex; justify-content: space-between; font-size: 14px; color: var(--ink-2); margin-bottom: 5px; }
.cmp-track { height: 27px; border-radius: 3px; background: #F0ECE3; overflow: hidden; }
.cmp-fill { height: 100%; border-radius: 3px; display: flex; align-items: center; justify-content: flex-end;
  padding-right: 9px; color: #fff; font-size: 14px; font-weight: 700; font-family: var(--num);
  transition: width .5s cubic-bezier(.2,.7,.3,1); }
.cmp-fill.gold { background: linear-gradient(90deg, var(--forest-2), var(--gold-deep)); }
.cmp-fill.gray { background: #B9B2A6; }

/* 圆点评级表格 */
.dot-table { width: 100%; border-collapse: collapse; font-size: 16px; }
.dot-table th { font-size: 14px; color: var(--ink-3); font-weight: 700; padding: 8px 4px;
  text-align: center; border-bottom: 2px solid var(--gold-soft); letter-spacing: 1px; text-transform: uppercase; }
.dot-table th:first-child { text-align: left; }
.dot-table td { padding: 10px 4px; border-bottom: 1px solid var(--line-2); text-align: center; }
.dot-table td:first-child { text-align: left; font-weight: 700; color: var(--ink); }
.dot-table .rate { letter-spacing: 1px; font-size: 14px; color: var(--gold); }
.dot-table .rate .off { color: #DDD6C8; }

/* FAQ（红问黑答） */
.faq { margin-bottom: 13px; padding-left: 13px; border-left: 2px solid rgba(168,68,47,.35); }
.faq .q { font-family: var(--serif); font-size: 18px; font-weight: 700; color: var(--seal); margin-bottom: 5px; }
.faq .a { font-size: 16px; color: var(--ink-2); line-height: 1.8; }

/* 五档图例 */
.tier-legend { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 11px; }
.tier-legend span { font-size: 14px; padding: 3px 9px; border-radius: 999px; font-weight: 700; }

/* 金色滑块行 */
.slider-row { margin: 12px 0; }
.slider-row .sl-head { display: flex; justify-content: space-between; align-items: baseline;
  font-size: 16px; color: var(--ink-2); margin-bottom: 9px; }
.slider-row .sl-val { font-family: var(--num); font-size: 28px; font-weight: 700; color: var(--gold-deep); line-height: 1; }
.slider-row .sl-scale { display: flex; justify-content: space-between; margin-top: 4px;
  font-size: 14px; color: var(--ink-3); letter-spacing: .02em; }

/* 卡片小标题 */
.mini-title { font-family: var(--serif); font-size: 18px; font-weight: 700; color: var(--brown);
  margin: 0 0 12px; display: flex; align-items: center; gap: 8px; letter-spacing: .5px; }
.mini-title .ic { width: 21px; height: 21px; border-radius: 50%; flex: none;
  background: linear-gradient(135deg, var(--foil), var(--gold-deep)); color: #fff;
  font-size: 14px; font-weight: 700; display: grid; place-items: center; font-family: var(--sans); }

/* 分区标题 */
.sec-title { font-family: var(--serif); font-size: 18px; font-weight: 700; color: var(--ink-2);
  margin: 0 0 12px; display: flex; align-items: center; gap: 8px; letter-spacing: .5px; }
.sec-title .ic { width: 19px; height: 19px; border-radius: 3px; background: var(--gold-soft);
  color: var(--gold-deep); font-size: 14px; display: grid; place-items: center; font-weight: 700; font-family: var(--sans); }

/* 图表容器 */
.chart-box { height: 200px; margin-top: 12px; }

/* ===================== 杂项 ===================== */
a { color: var(--gold-deep); }
a:hover { text-decoration: underline; }
.text-gold { color: var(--gold-deep); font-family: var(--num); }
.kbd { font-size: 14px; color: var(--ink-3); }

/* 登录页（独立页面） */
.login-wrap { max-width: 420px; margin: 60px auto; }
.login-brand { text-align: center; margin-bottom: 20px; }
.login-brand .brand-mark { display: inline-grid; transform: rotate(-7deg); }
.login-brand strong { display: block; margin-top: 12px; font-family: var(--serif); font-size: 22px;
  color: var(--brown); letter-spacing: 2px; }
.login-brand small { color: var(--ink-3); font-size: 14px; letter-spacing: 2px; text-transform: uppercase; }
.login-card { padding: 28px 26px; border-radius: 4px 14px 14px 14px; }
.login-card h2 { font-family: var(--serif); margin-bottom: 18px; }
.login-card label { display: block; font-size: 16px; color: var(--ink-3); margin: 0 0 6px; }
.login-card input { width: 100%; box-sizing: border-box; margin-bottom: 14px; }
.login-card .btn { width: 100%; justify-content: center; }
.login-tip { margin-top: 15px; font-size: 16px; color: var(--ink-3); text-align: center; line-height: 1.8; }
.login-tip code { background: var(--bg-soft); padding: 2px 7px; border-radius: 3px; color: var(--gold-deep); font-family: var(--num); }
.err { color: var(--seal); font-size: 16px; min-height: 16px; margin: -6px 0 8px; }

/* ===================== 国家队动态（独立页面 /national-team） ===================== */
.nt-period { margin-left: auto; font-family: var(--num); font-size: 16px; color: var(--gold-deep); font-weight: 700; }
.nt-pool-filter{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:15px;padding-top:14px;border-top:1px solid var(--line)}
.nt-pool-filter>.chip{display:inline-flex;align-items:center;gap:9px;min-height:42px;padding:8px 13px;font-size:18px;font-weight:700}
.nt-pool-filter>.chip>span{font-size:16px;font-variant-numeric:tabular-nums}
.nt-pool-filter>.note{flex:1 1 280px;font-size:16px;margin:0;line-height:1.7}
.nt-pool-filter>.chip:disabled{cursor:wait;opacity:.65}
.nt-code { font-family: var(--num); font-size: 14px; color: var(--ink-3); margin-left: 6px; letter-spacing: .6px; }
.nt-chg { display: inline-block; font-size: 14px; font-weight: 700; padding: 2px 8px; border-radius: 3px; white-space: nowrap; }
.nt-chg.new { background: #F9EDCF; color: #A8801F; }
.nt-chg.up { background: #F6DAD4; color: #A9372A; }
.nt-chg.down { background: #E4F1E7; color: #2F7A4C; }
.nt-chg.flat { background: var(--bg-soft); color: var(--ink-3); }

.nt-org-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.nt-org-card {
  text-align: left; background: var(--card-soft); border: 1px solid var(--gold-soft);
  border-radius: 4px 10px 10px 10px; padding: 11px 13px; cursor: pointer;
  font-family: inherit; color: inherit; transition: all .18s;
}
.nt-org-card:hover { border-color: var(--gold); }
.nt-org-card.active { border-color: var(--gold-deep); background: #FBF3DF; box-shadow: inset 0 0 0 1px var(--gold-deep); }
.nt-org-name { font-family: var(--serif); font-size: 18px; font-weight: 700; color: var(--brown); }
.nt-org-tag { font-size: 14px; color: var(--ink-3); margin-top: 2px; }
.nt-org-nums { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; font-size: 14px; color: var(--ink-2); }
.nt-org-nums b { font-family: var(--num); font-size: 16px; }
.nt-org-nums .up { color: #A9372A; }
.nt-org-nums .down { color: #2F7A4C; }

.nt-moved-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 9px; }
.nt-moved-item { background: var(--card-soft); border: 1px solid var(--gold-soft); border-radius: 4px 10px 10px 10px; padding: 9px 11px; }
.nt-moved-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.nt-moved-name { font-weight: 700; font-size: 16px; color: var(--ink); }
.nt-moved-sub { font-size: 14px; color: var(--ink-3); margin-top: 5px; line-height: 1.6; }

.nt-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.nt-select { padding: 8px 11px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font-family: inherit; font-size: 16px; border-radius: 4px; }
.nt-table { min-width: 980px; font-size: 16px; }
.nt-table th.num, .nt-table td.num { text-align: right; font-family: var(--num); font-variant-numeric: tabular-nums; }
.nt-table .tag-pill { font-size: 14px; padding: 2px 7px; border-radius: 3px; background: var(--bg-soft); color: var(--ink-2); font-weight: 600; white-space: nowrap; }
.nt-table .stock-name a { color: var(--gold-deep); text-decoration: none; }
.nt-table .stock-name a:hover { text-decoration: underline; }

/* 设置页：数据健康度 */
.health-bar { width: 84px; height: 5px; border-radius: 4px; background: var(--bg-soft); margin-top: 4px; overflow: hidden; }
.health-bar i { display: block; height: 100%; background: var(--green); border-radius: 4px; }
.note code { background: var(--bg-soft); padding: 1px 6px; border-radius: 3px; color: var(--gold-deep); font-size: 16px; }
#health-table td { font-size: 16px; }
#health-table .note { font-size: 14px; }

/* ===================== 响应式 ===================== */
@media (max-width: 860px) {
  .nt-org-grid, .nt-moved-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .grid-4, .toc-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .grid-2, .core2 { grid-template-columns: 1fr; }
  .wrap { padding: 18px 14px 56px; }
  .hero { padding: 26px 22px 24px; }
  .hero-title { font-size: 36px; }
  .hero-band { grid-template-columns: repeat(3, 1fr); }
  .hero-band > div { padding: 0 10px; }
  .hb-value { font-size: 28px; }
  .seal { width: 70px; height: 70px; font-size: 28px; }
  .hero::after { font-size: 220px; }
}
@media (max-width: 520px) {
  .nav a { padding: 9px 11px 11px; font-size: 16px; }
  .brand-text small, .brand-kicker { display: none; }
  .card { padding: 17px; }
  .toc-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 28px; }
  .hero-band { grid-template-columns: 1fr 1fr; gap: 14px 0; }
  .hero-band > div:nth-child(2) { border-right: none; }
  .hero-band > div:nth-child(3) { padding-left: 0; }
  .seal { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* 工作台与筛选体验 */
:root { --ink-3: #7B7163; --green: #327746; }
.brand { text-decoration: none; }
.updated a { color: inherit; text-decoration: none; border-bottom: 1px dotted var(--line); }
.live-dot.stale { background: var(--amber); box-shadow: 0 0 0 3px rgba(217,155,54,.12); animation: none; }
.live-dot.pending { background: #968B7A; animation: none; }
.skip-link { position: fixed; top: -70px; left: 20px; z-index: 200; background: var(--forest); color: white; padding: 12px 20px; border-radius: 8px; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid #B18B3C; outline-offset: 4px; }
.card:hover { transform: none; }
.page-index .hero { padding: 32px 36px 30px; }
.page-index .hero-title { font-size: clamp(30px, 3.8vw, 44px); letter-spacing: 1px; }
.page-index .hero-top { border-bottom: 0; padding-bottom: 0; }
.page-index .hero-band { margin-top: 24px; padding-top: 18px; }
.hero-sub { color: #D5DAD1; }
.hb-note { color: #C5CDBF; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin-top: 23px; }
.hero-actions .btn { background: #E3C578; color: #1B332C; border-color: #E3C578; text-decoration: none; padding: 11px 18px; }
.hero-actions .btn span { margin-left: 20px; }
.hero-link { color: #F3E5C0; text-decoration: none; font-size: 16px; }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 18px; }
.section-heading .eyebrow { margin-bottom: 0; }
.section-heading h2 { margin: 7px 0 0; font-size: 28px; }
.section-heading h2::before { display: none; }
.section-heading > a { color: var(--gold-deep); font-size: 16px; white-space: nowrap; }
.ledger-empty { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; background: #F2F5EE; border: 1px solid #D9E1D2; border-radius: 9px; padding: 16px; margin-bottom: 18px; }
.ledger-empty[hidden] { display: none; }
.ledger-empty b { color: var(--forest); }
.ledger-empty span { font-size: 16px; color: var(--ink-2); flex: 1; min-width: 210px; }
.ledger-empty a { text-decoration: none; }
.quick-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 22px; }
.quick-card { display: flex; align-items: center; gap: 12px; padding: 22px 18px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--ink); text-decoration: none; transition: border-color .2s, background .2s; }
.quick-card:hover { background: var(--gold-tint); border-color: var(--gold); }
.quick-card > span:nth-child(2) { flex: 1; }
.quick-card b { display: block; font-size: 18px; }
.quick-card small { display: block; color: var(--ink-2); font-size: 14px; margin-top: 6px; }
.quick-icon { font-family: var(--serif); color: var(--gold-deep); font-size: 28px; }
.learning-section > summary { cursor: pointer; padding: 20px 0; border-top: 1px solid var(--line); color: var(--forest); }
.learning-section > summary span { font-size: 22px; font-family: var(--serif); font-weight: bold; }
.learning-section > summary small { margin-left: 18px; color: var(--ink-3); }
.result-toolbar { display: flex; gap: 14px; align-items: center; justify-content: space-between; margin-bottom: 18px; font-size: 16px; color: var(--ink-2); }
.result-toolbar button { flex: none; }
.empty-results { text-align: center; padding: 45px 20px !important; color: var(--ink-2); }
.empty-results b { color: var(--forest); font-size: 22px; }
.stock-detail { background: transparent; border: 0; padding: 3px 0; font: inherit; color: inherit; font-weight: inherit; cursor: pointer; text-align: left; }
.stock-detail:hover { color: var(--gold-deep); text-decoration: underline; }
#pool-table th[aria-sort="ascending"]::after { content: ' ↑'; color: var(--gold-deep); }
#pool-table th[aria-sort="descending"]::after { content: ' ↓'; color: var(--gold-deep); }
#pool-table td { font-variant-numeric: tabular-nums; }
.page-pool .table-scroll { max-height: 72vh; }
.page-pool .ptable th { position: sticky; top: 0; background: var(--card-soft); z-index: 2; }
.page-pool .ptable td:first-child { position: sticky; left: 0; background: var(--card); z-index: 1; box-shadow: 1px 0 var(--line-2); }
.page-pool .ptable th:first-child { left: 0; z-index: 3; }
.page-pool .ptable tbody tr:hover td { background-color: var(--gold-tint); }
@media (max-width: 860px) {
  .quick-grid { grid-template-columns: 1fr; gap: 10px; }
  .quick-card { padding: 16px 20px; }
  .brand-kicker { display: none; }
  .updated { font-size: 14px; white-space: normal; text-align: right; max-width: 200px; }
}
@media (max-width: 520px) {
  .appbar-inner { padding: 12px 16px 0; }
  .brand-text strong { font-size: 22px; }
  .brand-text small { font-size: 14px; letter-spacing: 1px; }
  .brand-mark { width: 36px; height: 36px; }
  .updated { max-width: 132px; line-height: 1.6; }
  .nav { gap: 2px; margin-top: 10px; }
  .nav a { padding: 10px 12px; font-size: 16px; }
  .wrap { padding: 18px 14px 45px; }
  .page-index .hero { padding: 25px 22px; }
  .page-index .hero-title { font-size: 36px; }
  .page-index .seal { display: none; }
  .hero-kicker { font-size: 14px; letter-spacing: 1.5px; }
  .hero-actions { gap: 15px; }
  .page-index .hero-band { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero-band > div { padding: 0 8px; }
  .hb-label { font-size: 14px; letter-spacing: 0; }
  .hb-value { font-size: 36px; }
  .hb-note { font-size: 14px; }
  .section-heading h2 { font-size: 22px; }
  .section-heading > a { font-size: 14px; }
  .ledger-empty { align-items: flex-start; }
  .ledger-empty .btn { width: 100%; text-align: center; }
  .result-toolbar { align-items: flex-start; flex-direction: column; }
  .learning-section > summary small { display: block; margin: 7px 0 0 18px; font-size: 14px; }
  .page-pool .ptable td:first-child { min-width: 140px; max-width: 170px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

#data-health { scroll-margin-top: 130px; }

.portfolio-chart { position: relative; height: 230px; min-width: 0; }

@media (max-width:520px) { .page-holdings [style*="grid-column:span 2"] { grid-column: 1 / -1 !important; } }
