/* ============================================================
   投资名人堂 · 设计系统 v2（双主题）
   品牌常量（双主题通用）：深蓝 #050038 / 金 #ffd02f / 涨红 #f23030 / 跌绿 #00b35c
   主题令牌：深色为默认，html[data-theme="light"] 切换浅色
   字号阶梯：44/40(标题) 22(分区) 18(卡题) 16/14/13/12(正文阶梯)
   圆角阶梯：8(小件) 12(输入/小卡) 16(卡片) 24(大容器) 999(胶囊)
   容器：1080px
   ============================================================ */
:root {
  /* 品牌常量 */
  --navy: #050038;
  --navy-2: #0e0a4e;
  --navy-3: #141052;
  --gold: #ffd02f;
  --up: #f23030;
  --down: #00b35c;
  /* 深色主题（默认） */
  --bg: #050038;
  --bg-soft: #0a0745;
  --surface: #0e0a4e;
  --surface-2: rgba(255, 255, 255, .045);
  --border: rgba(255, 255, 255, .1);
  --border-strong: rgba(255, 255, 255, .2);
  --text: #e8e6f5;
  --text-dim: rgba(232, 230, 245, .66);
  --text-faint: rgba(232, 230, 245, .45);
  --gold-ink: #ffd02f;          /* 金色文字（深底） */
  --gold-soft: rgba(255, 210, 47, .13);
  --gold-border: rgba(255, 210, 47, .35);
  --accent: #8b9dff;            /* 频道强调蓝（深底可读） */
  --tint-gold: rgba(255, 210, 47, .06);
  --shadow: 0 10px 32px rgba(0, 0, 12, .4);
  /* 兼容旧变量名 */
  --ink: #050038;
  --yellow: #ffd02f;
  --muted: var(--text-dim);
  --blue: var(--accent); /* 兼容旧引用 */
  --radius: 16px;
}
html[data-theme="light"] {
  --bg: #f5f5f7;
  --bg-soft: #ffffff;
  --surface: #ffffff;
  --surface-2: #f1f1f6;
  --border: #e4e4ec;
  --border-strong: #cfcfdd;
  --text: #26283a;
  --text-dim: rgba(38, 40, 58, .68);
  --text-faint: rgba(38, 40, 58, .46);
  --gold-ink: #a67c00;          /* 金色文字（浅底换深金保证对比度） */
  --gold-soft: rgba(255, 210, 47, .22);
  --gold-border: rgba(166, 124, 0, .4);
  --accent: #3b5bfd;
  --tint-gold: #fff7e0;
  --shadow: 0 4px 24px rgba(5, 0, 56, .08);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  transition: background .25s, color .25s;
}
a { text-decoration: none; color: inherit; }
.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ===== 主题切换按钮 ===== */
.theme-toggle {
  width: 34px; height: 34px; border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface-2);
  color: var(--text); font-size: 15px; line-height: 1;
  cursor: pointer; transition: all .2s; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
}
.theme-toggle:hover { border-color: var(--gold); transform: translateY(-1px); }
.nav .theme-toggle { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.22); }

/* ===== 子频道胶囊导航（全站唯一实现） ===== */
.subnav {
  display: flex; gap: 10px; flex-wrap: wrap; justify-content: center;
  max-width: 1080px; margin: 18px auto 0; padding: 0 24px;
}
.subnav a {
  padding: 8px 18px; border-radius: 999px; font-size: 13px;
  border: 1px solid var(--border-strong); color: var(--text-dim);
  background: var(--surface-2); transition: color .2s, border-color .2s, background .2s;
}
.subnav a:hover { color: var(--gold-ink); border-color: var(--gold-border); }
.subnav a.on { background: var(--gold); border-color: var(--gold); color: var(--navy); font-weight: 800; }

/* ===== 页脚推广条（全站唯一实现） ===== */
.promo-band {
  margin: 26px auto 30px; max-width: 1032px; padding: 12px 18px;
  background: var(--gold-soft); border: 1px solid var(--gold-border); border-radius: 12px;
  font-size: 12.5px; line-height: 1.9; color: var(--text-dim); text-align: center;
}
.promo-band a { color: var(--gold-ink); font-weight: 700; }

/* ===== 导航栏（双主题均为深蓝品牌带） ===== */
.nav {
  background: var(--navy);
  color: #fff;
  height: 64px;
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav .container { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.logo { display: flex; align-items: center; gap: 9px; font-size: 20px; font-weight: 800; color: var(--gold); letter-spacing: 1px; }
.logo-mark { width: 27px; height: 27px; flex: none; }
.nav-links { display: flex; gap: 22px; font-size: 14px; }
.nav-links a { color: rgba(255,255,255,.75); transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--gold); }
.nav-right { display: flex; gap: 12px; align-items: center; }
.btn {
  display: inline-block;
  padding: 9px 22px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all .2s;
}
.btn-yellow { background: var(--gold); color: var(--navy); }
.btn-yellow:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.3); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-dark { background: var(--surface-2); color: var(--text); border: 1px solid var(--border-strong); }
.btn-dark:hover { border-color: var(--gold); color: var(--gold-ink); }

/* ===== Hero（品牌深蓝带，双主题不变） ===== */
.hero {
  background: linear-gradient(160deg, #050038 0%, #141052 60%, #1c1466 100%);
  color: #fff;
  text-align: center;
  padding: 72px 0 64px;
}
.hero-badge {
  display: inline-block;
  background: var(--gold-soft);
  color: var(--gold);
  border: 1px solid var(--gold-border);
  padding: 5px 16px;
  border-radius: 999px;
  font-size: 13px;
  margin-bottom: 24px;
}
.hero h1 { font-size: 44px; font-weight: 800; letter-spacing: 2px; }
.hero h1 span { color: var(--gold); }
.hero p { color: rgba(255,255,255,.7); margin: 18px 0 36px; font-size: 17px; }
.search-bar {
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 12px;
  overflow: hidden;
}
.search-bar input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  padding: 15px 20px;
  font-size: 15px;
}
.search-bar input::placeholder { color: rgba(255,255,255,.5); }
.search-bar button { background: var(--gold); border: none; padding: 0 28px; font-size: 15px; font-weight: 700; color: var(--navy); cursor: pointer; }
.hero-stats { display: flex; justify-content: center; gap: 64px; margin-top: 52px; }
.hero-stats .num { font-size: 34px; font-weight: 800; color: var(--gold); }
.hero-stats .label { font-size: 13px; color: rgba(255,255,255,.6); margin-top: 4px; }

/* ===== Section 通用 ===== */
.section { padding: 64px 0; }
.section-head { margin-bottom: 32px; }
.section-head h2 { font-size: 26px; font-weight: 800; color: var(--text); }
.section-head p { color: var(--text-dim); font-size: 14px; margin-top: 6px; }
.sec-head2 { margin-bottom: 20px; }
.sec-head2 h2 { font-size: 22px; font-weight: 800; color: var(--text); }
.sec-head2 .en { font-size: 12px; letter-spacing: 2.5px; color: var(--text-faint); font-weight: 600; margin-top: 2px; }

/* ===== 游资金句 C位（品牌深蓝带） ===== */
.quote-wall {
  background: var(--navy);
  border-radius: 24px;
  padding: 32px;
  color: #fff;
}
.quote-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.quote-head-left { display: flex; align-items: center; gap: 12px; }
.quote-icon {
  width: 40px; height: 40px; border-radius: 12px;
  background: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
}
.quote-head-left h3 { font-size: 22px; font-weight: 800; }
.quote-head-left .en { font-size: 11px; letter-spacing: 2px; color: var(--gold); font-weight: 600; }
.quote-nav { display: flex; align-items: center; gap: 16px; }
.quote-nav .counter { font-size: 14px; color: rgba(255,255,255,.6); }
.quote-nav .arrow {
  width: 40px; height: 40px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; cursor: pointer; border: none;
}
.arrow-prev { background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.15); }
.arrow-next { background: var(--gold); color: var(--navy); }
.quote-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.quote-card {
  position: relative;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  padding: 24px;
  overflow: hidden;
}
.quote-card .mark {
  position: absolute; top: 12px; right: 16px;
  font-size: 64px; color: var(--gold); opacity: .15;
  font-family: Georgia, serif; line-height: 1;
}
.quote-card .who { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.avatar {
  width: 48px; height: 48px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 800; flex-shrink: 0;
}
.avatar.y { background: var(--gold); color: var(--navy); }
.avatar.r { background: #f24d40; color: #fff; }
.avatar.b { background: #4262ff; color: #fff; }
.avatar.g { background: #00b35c; color: #fff; }
.quote-card .who .name { font-size: 17px; font-weight: 800; }
.quote-card .who .tag { font-size: 12px; color: var(--gold); font-weight: 600; }
.quote-card .text { font-size: 17px; font-weight: 700; line-height: 1.7; position: relative; z-index: 1; }
.quote-card .attr { font-size: 12px; color: rgba(255,255,255,.55); margin-top: 18px; }

/* ===== 左右双栏 ===== */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.person-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px 24px;
  margin-bottom: 12px;
  transition: all .2s;
  cursor: pointer;
}
.person-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--gold-border); }
.person-card .avatar { width: 44px; height: 44px; font-size: 17px; }
.person-card .info { flex: 1; }
.person-card .info .name { font-size: 16px; font-weight: 800; color: var(--text); }
.person-card .info .sub { font-size: 12px; color: var(--text-dim); }
.person-card .stat { text-align: right; }
.person-card .stat .v { font-size: 16px; font-weight: 800; }
.person-card .stat .l { font-size: 12px; color: var(--text-faint); }
.person-card .year { font-size: 12px; color: var(--text-faint); }
/* 窄卡修饰（首页赛场新锐三列）：纵向重排防挤压——行1 头像+信息+收藏，行2 资产+年份，名字与标签永不竖排 */
.pc-slim { flex-wrap: wrap; row-gap: 10px; }
.pc-slim .info { flex: 1 1 0; min-width: 0; }
.pc-slim .info .name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-slim .fav-btn { align-self: flex-start; }
.pc-slim .pc-brk { flex-basis: 100%; height: 0; }
.pc-slim .stat { text-align: left; }
.pc-slim .stat .l { white-space: nowrap; }
.pc-slim .year { align-self: center; }
.tag-pill {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  font-size: 12px; background: var(--surface-2); color: var(--text-dim); margin-right: 6px; font-weight: 600;
}
.v-up { color: var(--up); }
.v-down { color: var(--down); }
.duo-title { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.duo-title .bar { width: 4px; height: 22px; border-radius: 2px; background: var(--gold); }
.duo-title.fund .bar { background: #4262ff; }
.duo-title h3 { font-size: 20px; font-weight: 800; color: var(--text); }
.duo-title a, .duo-title span { font-size: 13px; font-weight: 600; }
.duo-title a { color: var(--accent); }

/* ===== 页脚（品牌深蓝带） ===== */
.footer { background: var(--navy); color: rgba(255,255,255,.65); padding: 56px 0 32px; margin-top: 48px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer h4 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.footer a { display: block; font-size: 13px; margin-bottom: 10px; color: rgba(255,255,255,.6); }
.footer a:hover { color: var(--gold); }
.footer .brand { display: flex; align-items: center; gap: 9px; color: var(--gold); font-size: 20px; font-weight: 800; margin-bottom: 12px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 24px; text-align: center; font-size: 12px; color: rgba(255,255,255,.45); }

/* ===== 榜单页 ===== */
.page-hero { background: linear-gradient(160deg, #050038, #1c1466); color: #fff; padding: 56px 0; }
.breadcrumb { font-size: 13px; color: rgba(255,255,255,.55); margin-bottom: 16px; }
.breadcrumb a { color: rgba(255,255,255,.75); }
.breadcrumb a:hover { color: var(--gold); }
.page-hero h1 { font-size: 40px; font-weight: 800; }
.page-hero p { color: rgba(255,255,255,.65); margin-top: 10px; }
.page-hero .hero-sub { color: rgba(255,255,255,.65); font-size: 15px; margin-top: 10px; }
.filter-bar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 24px;
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  margin: 18px auto 40px;
  position: relative;
  box-shadow: var(--shadow);
}
.filter-bar .search { flex: 1; min-width: 220px; display: flex; }
.filter-bar input, .filter-bar select {
  border: 1px solid var(--border); border-radius: 10px;
  padding: 10px 14px; font-size: 14px; outline: none; background: var(--bg-soft); color: var(--text);
}
.filter-bar input::placeholder { color: var(--text-faint); }
.filter-bar .search input { flex: 1; border-radius: 10px 0 0 10px; }
.filter-bar .search button { background: var(--gold); color: var(--navy); border: none; padding: 0 20px; border-radius: 0 10px 10px 0; cursor: pointer; font-weight: 700; }
.chip {
  padding: 7px 16px; border-radius: 999px; font-size: 13px;
  background: var(--surface-2); color: var(--text-dim); cursor: pointer; border: none; font-weight: 600;
}
.chip.active { background: var(--gold); color: var(--navy); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.rank-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; cursor: pointer; transition: all .2s; position: relative;
}
.rank-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--gold-border); }
.rank-badge {
  position: absolute; top: 16px; right: 16px;
  width: 30px; height: 30px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800;
  background: var(--surface-2); color: var(--text-dim);
}
.rank-badge.gold { background: var(--gold); color: var(--navy); }
.rank-badge.silver { background: #d8dbe4; color: var(--navy); }
.rank-badge.bronze { background: #ecc9a8; color: #7a4b1f; }
.rank-card .avatar { margin-bottom: 16px; }
.rank-card h3 { font-size: 17px; font-weight: 800; color: var(--text); }
.rank-card .desc { font-size: 12px; color: var(--text-dim); margin: 4px 0 14px; }
.rank-card .nums { display: flex; justify-content: space-between; border-top: 1px dashed var(--border); padding-top: 14px; }
.rank-card .nums .v { font-size: 15px; font-weight: 800; color: var(--text); }
.rank-card .nums .l { font-size: 12px; color: var(--text-faint); }

/* ===== 详情页 ===== */
.detail-hero { background: linear-gradient(160deg, #050038, #1c1466); color: #fff; padding: 56px 0; }
.detail-hero .wrap { display: flex; align-items: center; gap: 24px; }
.detail-hero .avatar { width: 88px; height: 88px; font-size: 36px; }
.detail-hero h1 { font-size: 40px; font-weight: 800; }
.detail-hero .real { font-size: 14px; color: rgba(255,255,255,.6); margin-left: 12px; font-weight: 400; }
.detail-hero .tags { display: flex; gap: 8px; margin-top: 10px; }
.detail-hero .tags span { background: var(--gold-soft); color: var(--gold); border: 1px solid var(--gold-border); padding: 3px 12px; border-radius: 999px; font-size: 12px; }
.detail-stats { display: flex; gap: 48px; margin-left: auto; }
.detail-stats .v { font-size: 24px; font-weight: 800; color: var(--gold); }
.detail-stats .l { font-size: 12px; color: rgba(255,255,255,.55); }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; margin-bottom: 24px; }
.panel h3 { font-size: 18px; font-weight: 800; color: var(--text); margin-bottom: 18px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-size: 12px; color: var(--text-dim); font-weight: 600; padding: 10px 12px; border-bottom: 1px solid var(--border); background: var(--surface-2); }
td { padding: 13px 12px; border-bottom: 1px solid var(--border); }
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--surface-2); }
.stock-name { font-weight: 700; color: var(--text); }
.bar-wrap { background: var(--border); border-radius: 999px; height: 8px; width: 120px; display: inline-block; vertical-align: middle; }
.bar-fill { height: 100%; border-radius: 999px; background: #4262ff; }

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
  .quote-grid, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .duo { grid-template-columns: 1fr; }
  .hero h1 { font-size: 36px; }
  .page-hero h1, .detail-hero h1 { font-size: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .detail-hero .wrap { flex-wrap: wrap; }
  .detail-stats { margin-left: 0; }
}
@media (max-width: 640px) {
  .quote-grid, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .hero-stats { flex-wrap: wrap; gap: 24px; }
  .nav-links { display: none; }
}

/* ===== 云服务：登录弹窗（跟随主题） ===== */
#auth-modal-mask {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(2, 0, 25, .65);
  display: none; align-items: center; justify-content: center;
  padding: 20px;
}
#auth-modal-mask.open { display: flex; }
.auth-modal {
  position: relative;
  width: 100%; max-width: 400px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 28px 28px;
  box-shadow: var(--shadow);
}
.auth-close {
  position: absolute; top: 14px; right: 16px;
  width: 32px; height: 32px; border-radius: 999px; border: none;
  background: var(--surface-2); color: var(--text); font-size: 20px; cursor: pointer;
}
.auth-head { text-align: center; margin-bottom: 20px; }
.auth-logo { font-size: 20px; font-weight: 800; color: var(--text); }
.auth-sub { font-size: 12px; color: var(--text-dim); margin-top: 4px; }
.auth-tabs { display: flex; gap: 4px; background: var(--surface-2); border-radius: 12px; padding: 4px; margin-bottom: 16px; }
.auth-tab {
  flex: 1; border: none; background: transparent; cursor: pointer;
  padding: 8px 0; border-radius: 9px; font-size: 13px; font-weight: 600; color: var(--text-dim);
}
.auth-tab.active { background: var(--gold); color: var(--navy); }
.auth-tab.hidden { display: none; }
.auth-hint {
  display: none; font-size: 12px; color: #8a5b00;
  background: #fff3c9; border-radius: 10px; padding: 10px 12px; margin-bottom: 12px;
}
html[data-theme="dark"] .auth-hint, html:not([data-theme]) .auth-hint { color: #e8c56a; background: rgba(255,210,47,.1); }
.auth-pane { display: none; }
.auth-pane.active { display: block; }
.auth-pane label { display: block; font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 14px; }
.auth-pane input {
  display: block; width: 100%; margin-top: 6px;
  border: 1px solid var(--border); border-radius: 10px;
  background: var(--bg-soft); color: var(--text);
  padding: 11px 14px; font-size: 14px; outline: none;
}
.auth-pane input::placeholder { color: var(--text-faint); }
.auth-pane input:focus { border-color: var(--gold); }
.otp-row { display: flex; gap: 8px; margin-top: 6px; }
.otp-row input { margin-top: 0; flex: 1; }
.otp-tip { font-size: 12px; color: var(--text-faint); line-height: 1.5; margin: -8px 0 12px; }
.btn-ghost-dark {
  background: var(--surface-2); color: var(--text); border: 1px solid var(--border-strong);
  padding: 0 14px; border-radius: 10px; font-size: 13px; cursor: pointer; white-space: nowrap;
}
.btn-ghost-dark:disabled { opacity: .5; cursor: not-allowed; }
.auth-submit { width: 100%; margin-top: 4px; padding: 12px 0; font-size: 15px; }
.auth-link {
  display: block; width: 100%; text-align: center; margin-top: 12px;
  background: none; border: none; cursor: pointer;
  font-size: 13px; color: var(--accent); font-weight: 600;
}
.auth-error { min-height: 18px; font-size: 13px; color: var(--up); text-align: center; margin-top: 10px; }

/* ===== 云服务：导航用户态 / 收藏 / 提示 ===== */
.nav-user { font-size: 13px; color: rgba(255,255,255,.85); font-weight: 600; }
.fav-btn {
  border: 1px solid var(--border-strong); background: var(--surface-2); color: var(--text-dim);
  border-radius: 999px; padding: 4px 12px; font-size: 12px; font-weight: 600;
  cursor: pointer; white-space: nowrap; transition: all .15s;
}
.fav-btn:hover { border-color: var(--gold-border); color: var(--gold-ink); }
.fav-btn.on { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.person-card .fav-btn { align-self: center; }
.rank-card .nums .fav-btn { align-self: center; }
.load-error {
  padding: 24px; text-align: center; font-size: 14px; color: var(--text-dim);
  background: var(--surface-2); border: 1px dashed var(--border-strong); border-radius: 12px;
}
.toast {
  position: fixed; left: 50%; bottom: 40px; transform: translateX(-50%) translateY(20px);
  background: var(--gold); color: var(--navy); font-size: 14px; font-weight: 700;
  padding: 12px 24px; border-radius: 999px; z-index: 1100;
  opacity: 0; transition: all .3s; pointer-events: none;
  box-shadow: 0 12px 32px rgba(0,0,0,.35);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.toast-err { background: var(--up); color: #fff; }

/* ============================================================
   投资大师：首页卡片 + 详情页（时间线 / 理论 tab / 著作 / 名言）
   ============================================================ */
.master-hero { background: linear-gradient(160deg, var(--navy) 0%, #1a1560 100%); padding: 56px 0 48px; color: #fff; }
.master-hero-grid { display: grid; grid-template-columns: 300px 1fr; gap: 40px; align-items: center; }
.master-portrait-wrap { position: relative; width: 100%; aspect-ratio: 2/3; border-radius: 16px; overflow: hidden; box-shadow: 0 20px 48px rgba(0,0,0,.4); background: rgba(255,255,255,.06); }
.master-portrait-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.master-avatar-fallback { display: none; width: 100%; height: 100%; align-items: center; justify-content: center; font-size: 96px; font-weight: 800; color: var(--gold); background: #4262ff; }
.master-country { font-size: 14px; color: var(--gold); font-weight: 700; margin-bottom: 8px; }
.master-head-info h1 { font-size: 40px; margin: 0 0 4px; color: #fff; }
.master-en { font-size: 15px; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,.6); margin-bottom: 16px; }
.master-summary { font-size: 15px; line-height: 1.8; color: rgba(255,255,255,.85); max-width: 640px; margin: 0 0 16px; }
.master-titles { margin-bottom: 12px; }
.master-titles .tag-pill { background: var(--gold-soft); color: var(--gold); border-color: transparent; }
.master-life { font-size: 14px; color: rgba(255,255,255,.65); margin-bottom: 20px; }
.master-hero .fav-btn { border-color: var(--gold); color: var(--gold); background: transparent; }
.master-hero .fav-btn.on { background: var(--gold); color: var(--navy); }

/* 首页大师卡 */
#master-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.master-card { display: flex; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; transition: all .25s; text-decoration: none; }
.master-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--gold-border); }
.mc-img { width: 120px; min-height: 160px; flex-shrink: 0; background: var(--navy-2); }
.mc-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mc-img-fallback { display: flex; align-items: center; justify-content: center; font-size: 48px; font-weight: 800; color: var(--gold); }
.mc-body { padding: 16px 18px; min-width: 0; }
.mc-head { display: flex; align-items: baseline; gap: 8px; }
.mc-head .name { font-size: 18px; font-weight: 800; color: var(--text); }
.mc-country { font-size: 12px; color: var(--accent); font-weight: 700; }
.mc-en { font-size: 12px; color: var(--text-faint); margin: 2px 0 8px; }
.mc-summary { font-size: 13px; line-height: 1.7; color: var(--text-dim); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 10px; }
.mc-titles .tag-pill { font-size: 11px; }

/* 时间线 */
.section-alt { background: var(--tint-gold); }
.sec-head h3 { margin: 0; font-size: 24px; color: var(--text); }
.sec-head .en { font-size: 12px; letter-spacing: 3px; color: var(--text-faint); margin-top: 2px; }
.sec-head { margin-bottom: 20px; }
.timeline-legend { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 24px; }
.tl-legend-item { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-dim); }
.tl-legend-item i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.timeline { position: relative; padding-left: 28px; max-width: 760px; }
.timeline::before { content: ''; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 2px; background: var(--border); }
.tl-item { position: relative; padding-bottom: 22px; }
.tl-dot { position: absolute; left: -26px; top: 8px; width: 14px; height: 14px; border-radius: 50%; background: var(--surface); border: 3px solid #4262ff; box-shadow: 0 0 0 4px rgba(66,98,255,.15); }
.tl-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 16px 20px; transition: all .25s; }
.tl-card:hover { transform: translateX(4px); box-shadow: var(--shadow); }
.tl-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.tl-year { color: #fff; font-size: 12px; font-weight: 800; padding: 3px 10px; border-radius: 999px; }
.tl-era { font-size: 12px; font-weight: 700; color: var(--text-faint); }
.tl-card h4 { margin: 0 0 6px; font-size: 16px; color: var(--text); }
.tl-card p { margin: 0; font-size: 13px; line-height: 1.75; color: var(--text-dim); }

/* 理论 tab 子卡 */
.theory-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.theory-tab { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; border: 1.5px solid var(--border); background: var(--surface); font-size: 14px; font-weight: 700; color: var(--text); cursor: pointer; transition: all .2s; }
.theory-tab:hover { border-color: var(--gold-border); }
.theory-tab.active { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.theory-tab.active .tt-icon { transform: scale(1.1); }
.tt-icon { font-size: 17px; }
.theory-panel { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 28px 30px; box-shadow: var(--shadow); animation: fadeIn .3s; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.theory-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.theory-icon { font-size: 34px; }
.theory-head h3 { margin: 0; font-size: 21px; color: var(--text); }
.theory-tagline { font-size: 13px; color: var(--accent); font-weight: 700; margin-top: 2px; }
.theory-img-wrap { margin: 0 0 18px; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); }
.theory-img-wrap img { width: 100%; display: block; }
.theory-img-cap { font-size: 12px; color: var(--text-dim); padding: 8px 14px; background: var(--surface-2); }
.theory-divider { text-align: center; font-size: 13px; font-weight: 800; color: var(--accent); margin: 14px 0 10px; letter-spacing: 2px; }
.theory-p { margin: 0 0 10px; font-size: 14px; line-height: 1.85; color: var(--text); }
.theory-p b { color: var(--gold-ink); margin-right: 6px; }
.theory-li { margin: 0 0 8px 14px; font-size: 14px; line-height: 1.8; color: var(--text); }

/* 著作卡 */
#master-books { display: flex; flex-direction: column; gap: 14px; }
.book-card { display: flex; gap: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 16px; transition: all .25s; }
.book-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.book-cover { width: 64px; height: 86px; flex-shrink: 0; border-radius: 8px; background: var(--navy-2); color: var(--gold); display: flex; align-items: center; justify-content: center; font-size: 30px; font-weight: 800; box-shadow: inset -6px 0 12px rgba(0,0,0,.25); }
.book-title { font-size: 15px; font-weight: 800; color: var(--text); margin-bottom: 4px; }
.book-year { font-size: 11px; color: #fff; background: #4262ff; border-radius: 999px; padding: 2px 8px; margin-left: 8px; vertical-align: middle; }
.book-info p { margin: 6px 0 0; font-size: 13px; line-height: 1.7; color: var(--text-dim); }

/* 名言卡 */
#master-quotes { display: flex; flex-direction: column; gap: 14px; }
.mq-card { position: relative; background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--gold); border-radius: 12px; padding: 18px 20px 14px; }
.mq-card .mark { position: absolute; top: 8px; right: 16px; font-size: 42px; color: var(--gold); opacity: .3; font-family: Georgia, serif; line-height: 1; }
.mq-card .text { font-size: 15px; font-weight: 700; line-height: 1.8; color: var(--text); margin-bottom: 10px; }
.mq-card .attr { font-size: 12px; color: var(--text-faint); display: flex; align-items: center; gap: 8px; }

@media (max-width: 860px) {
  .master-hero-grid { grid-template-columns: 1fr; }
  .master-portrait-wrap { max-width: 280px; margin: 0 auto; }
  .master-head-info h1 { font-size: 30px; text-align: center; }
  .master-en, .master-life { text-align: center; }
  .master-head-info { text-align: center; }
}

/* ============================================================
   影音书单 + 个人中心
   ============================================================ */
#note-modal-mask { position: fixed; inset: 0; z-index: 1000; background: rgba(2,0,25,.65); display: none; align-items: center; justify-content: center; padding: 20px; }
#note-modal-mask.open { display: flex; }
.note-modal { max-width: 460px; }
.note-modal-body { display: flex; flex-direction: column; gap: 12px; }
.note-item-name { margin: 0; font-weight: 800; color: var(--text); }
#note-textarea { width: 100%; border: 1.5px solid var(--border); border-radius: 12px; padding: 12px 14px; font-size: 14px; line-height: 1.7; resize: vertical; font-family: inherit; background: var(--bg-soft); color: var(--text); }
#note-textarea:focus { outline: none; border-color: var(--gold); }

.media-hero { background: linear-gradient(160deg, var(--navy) 0%, #1a1560 100%); padding: 52px 0 40px; color: #fff; text-align: center; }
.media-hero h1 { color: #fff; font-size: 40px; font-weight: 800; }
.media-toolbar { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: center; margin-top: 26px; }
.media-tabs { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.media-tab { padding: 10px 20px; border-radius: 999px; border: 1.5px solid rgba(255,255,255,.25); background: rgba(255,255,255,.06); color: #fff; font-size: 14px; font-weight: 700; cursor: pointer; transition: all .2s; }
.media-tab i { font-style: normal; opacity: .55; font-size: 12px; margin-left: 4px; }
.media-tab.active { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.media-filters { display: flex; gap: 10px; }
.media-filters input, .media-filters select { border: 1.5px solid rgba(255,255,255,.25); background: rgba(255,255,255,.08); color: #fff; border-radius: 999px; padding: 9px 18px; font-size: 13px; min-width: 200px; }
.media-filters input::placeholder { color: rgba(255,255,255,.55); }
.media-filters select option { color: var(--text); }
.media-count { font-size: 13px; font-weight: 700; color: var(--accent); margin-bottom: 16px; }
.media-grid { display: flex; flex-direction: column; gap: 16px; }
.media-card { position: relative; display: flex; gap: 18px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 18px; transition: all .25s; }
.media-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: var(--gold-border); }
.m-rank { position: absolute; top: -8px; left: -8px; width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 13px; font-weight: 800; box-shadow: 0 6px 16px rgba(0,0,0,.3); }
.m-cover { width: 84px; height: 112px; flex-shrink: 0; border-radius: 12px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.m-cover span { font-size: 40px; font-weight: 800; color: var(--gold); text-shadow: 0 4px 12px rgba(0,0,0,.35); }
.m-body { flex: 1; min-width: 0; }
.m-title { font-size: 17px; font-weight: 800; color: var(--text); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.m-rate { font-size: 12px; color: #fff; background: #4262ff; border-radius: 999px; padding: 2px 10px; font-weight: 800; }
.m-meta { font-size: 12px; color: var(--text-faint); margin: 4px 0 8px; }
.m-sum { font-size: 13px; line-height: 1.75; color: var(--text-dim); }
.m-master { font-size: 13px; margin-top: 8px; color: var(--accent); font-weight: 700; }
.m-master a { color: var(--accent); text-decoration: underline; }
.m-soon { opacity: .6; font-weight: 500; }
.m-note { margin-top: 8px; font-size: 13px; line-height: 1.7; background: var(--tint-gold); border-radius: 10px; padding: 8px 12px; color: var(--text); }
.m-note b { color: var(--gold-ink); }
.m-actions { margin-top: 10px; }
.note-btn { border: 1.5px solid var(--border-strong); background: transparent; color: var(--text-dim); border-radius: 999px; padding: 6px 16px; font-size: 12px; font-weight: 700; cursor: pointer; transition: all .2s; }
.note-btn:hover { border-color: var(--gold); color: var(--gold-ink); }
.note-btn.has { border-color: var(--gold); background: var(--gold); color: var(--navy); }

.profile-hero { background: linear-gradient(160deg, var(--navy) 0%, #1a1560 100%); padding: 52px 0 40px; color: #fff; text-align: center; }
.profile-hero h1 { color: #fff; font-size: 40px; font-weight: 800; }
.profile-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: start; }
.profile-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 26px; }
.profile-card.slim { padding: 20px; }
.profile-card + .profile-card { margin-top: 20px; }
.profile-card-title { margin: 0 0 18px; font-size: 18px; display: flex; align-items: center; gap: 8px; color: var(--text); }
.count-pill { font-style: normal; font-size: 12px; background: var(--gold); color: var(--navy); border-radius: 999px; padding: 1px 9px; font-weight: 800; }
.avatar-row { display: flex; gap: 20px; align-items: flex-start; margin-bottom: 18px; }
.avatar-preview { width: 96px; height: 96px; border-radius: 16px; overflow: hidden; background: var(--navy-2); flex-shrink: 0; display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 24px rgba(0,0,0,.25); }
.avatar-char-big { font-size: 44px; font-weight: 800; color: var(--gold); display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.avatar-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar-actions { display: flex; flex-direction: column; gap: 10px; }
.avatar-upload-btn { cursor: pointer; display: inline-block; text-align: center; }
.avatar-char-pick { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-dim); flex-wrap: wrap; }
.av-colors { display: inline-flex; gap: 6px; }
.av-dot { width: 22px; height: 22px; border-radius: 50%; border: 2px solid transparent; box-shadow: 0 0 0 1.5px var(--border-strong); cursor: pointer; padding: 0; transition: transform .15s; }
.av-dot.on { box-shadow: 0 0 0 2.5px var(--gold); transform: scale(1.15); }
.avatar-hint { font-size: 12px; color: var(--text-faint); margin: 0; }
#profile-form label { display: block; font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 14px; }
#profile-form input, #profile-form textarea { width: 100%; margin-top: 6px; border: 1.5px solid var(--border); border-radius: 12px; padding: 11px 14px; font-size: 14px; font-family: inherit; line-height: 1.6; background: var(--bg-soft); color: var(--text); }
#profile-form input:focus, #profile-form textarea:focus { outline: none; border-color: var(--gold); }
.acct-row { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; padding: 8px 0; border-bottom: 1px dashed var(--border); }
.acct-row span { color: var(--text-dim); }
.uid-text { font-size: 12px; max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-card .btn { margin-top: 14px; width: 100%; }
.empty-tip { font-size: 13px; color: var(--text-dim); }
.empty-tip a { color: var(--accent); font-weight: 700; }
.fav-item { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text); padding: 7px 0; text-decoration: none; border-bottom: 1px dashed var(--border); }
.fav-item:hover { color: var(--gold-ink); }
.note-item { display: block; font-size: 13px; color: var(--text); padding: 8px 0; text-decoration: none; border-bottom: 1px dashed var(--border); }
.note-item b { color: var(--text); display: block; margin-bottom: 2px; }
.note-item span { color: var(--text-faint); font-size: 12px; }
.note-item:hover b { color: var(--gold-ink); }

@media (max-width: 900px) {
  .profile-grid { grid-template-columns: 1fr; }
  .media-card { flex-direction: column; }
  .m-cover { width: 100%; height: 120px; }
}

/* 术语自动链接（游资殿堂 → 操盘术语） */
.term-link { color: var(--gold-ink); border-bottom: 1px dashed var(--gold-border); text-decoration: none; cursor: pointer; }
.term-link:hover { opacity: .85; }

.media-hero .hero-sub, .profile-hero .hero-sub { color: rgba(255,255,255,.65); font-size: 15px; margin-top: 10px; }

/* ---------- 每日金句 · 日历卡 ---------- */
.qcal { position: relative; display: flex; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; min-height: 252px; }
.qcal::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--gold); opacity: .85; }
.qcal-cal { flex: 0 0 172px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 30px 16px; border-right: 1px solid var(--border); }
.qcal-mon { font-size: 13px; color: var(--text-dim); letter-spacing: 1px; }
.qcal-day { font-size: 64px; font-weight: 800; line-height: 1.15; color: var(--gold-ink); font-variant-numeric: tabular-nums; }
.qcal-week { font-size: 14px; color: var(--text); opacity: .72; margin-top: 2px; }
.qcal-dnav { display: flex; align-items: center; gap: 8px; margin-top: 14px; }
.qcal-dnav .arrow { width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--border); background: transparent; color: var(--text-dim); font-size: 14px; line-height: 1; cursor: pointer; transition: all .2s; padding: 0; }
.qcal-dnav .arrow:hover:not(:disabled) { border-color: var(--gold); color: var(--gold-ink); }
.qcal-dnav .arrow:disabled { opacity: .3; cursor: default; }
.qcal-dlabel { font-size: 11.5px; color: var(--text-faint); min-width: 44px; text-align: center; }
.qcal-body { flex: 1; min-width: 0; padding: 26px 30px 20px; display: flex; flex-direction: column; }
.qcal-mark { font-size: 42px; line-height: .55; color: var(--gold); opacity: .5; font-family: Georgia, serif; margin-bottom: 16px; }
.qcal-text { font-size: 19px; font-weight: 700; line-height: 1.75; color: var(--text); flex: 1 1 auto; display: flex; align-items: center; overflow: hidden; }
.qcal-text span { display: block; width: 100%; max-height: 9.2em; overflow: hidden; }
.qcal-text.md span { max-height: 8.4em; }
.qcal-text.md { font-size: 17px; line-height: 1.7; }
.qcal-text.sm span { max-height: 7.6em; }
.qcal-text.sm { font-size: 15px; line-height: 1.65; }
.qcal-who { margin-top: 13px; font-size: 14px; }
.qcal-who .name { color: var(--gold-ink); font-weight: 700; }
.qcal-who .tag { color: var(--text-faint); margin-left: 10px; font-size: 12px; }
.qcal-foot { margin-top: auto; padding-top: 16px; display: flex; align-items: center; gap: 16px; }
.qcal-dots { display: flex; gap: 7px; }
.qcal-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--border); cursor: pointer; transition: background .2s; }
.qcal-dots i.on { background: var(--gold); }
.qcal-nav { display: flex; align-items: center; gap: 10px; }
.qcal-nav .counter { font-size: 12px; color: var(--text-faint); }
.qcal-nav .arrow { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--border); background: transparent; color: var(--text-dim); font-size: 16px; line-height: 1; cursor: pointer; transition: all .2s; padding: 0; }
.qcal-nav .arrow:hover { border-color: var(--gold); color: var(--gold-ink); }
.qcal-share { margin-left: auto; padding: 6px 14px; border-radius: 8px; border: 1px solid var(--border); background: transparent; color: var(--text-dim); font-size: 13px; cursor: pointer; transition: all .2s; letter-spacing: 1px; }
.qcal-share:hover { border-color: var(--gold); color: var(--gold-ink); }

/* 海报弹窗 */
.qcal-modal-mask { position: fixed; inset: 0; background: rgba(2, 2, 20, .74); z-index: 240; display: flex; align-items: center; justify-content: center; padding: 20px; }
.qcal-modal { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 16px; max-width: 400px; width: 100%; max-height: 92vh; overflow: auto; }
.qcal-modal img { width: 100%; border-radius: 10px; display: block; }
.qcal-modal-hint { font-size: 12px; color: var(--text-faint); text-align: center; margin-top: 10px; }
.qcal-modal-actions { display: flex; gap: 10px; margin-top: 10px; }
.qcal-modal-actions .btn { flex: 1; }
.qcal-modal .qcal-close { position: absolute; top: 6px; right: 6px; z-index: 2; width: 30px; height: 30px; border-radius: 50%; border: none; background: rgba(5, 0, 56, .55); color: #fff; font-size: 16px; line-height: 1; cursor: pointer; }

@media (max-width: 640px) {
  .qcal { flex-direction: column; }
  .qcal-cal { flex: none; flex-direction: row; align-items: baseline; justify-content: flex-start; gap: 12px; padding: 16px 20px; border-right: 0; border-bottom: 1px solid var(--border); }
  .qcal-day { font-size: 34px; line-height: 1; }
  .qcal-body { padding: 20px 20px 16px; }
  .qcal-text { font-size: 16px; }
  .qcal-foot { flex-wrap: wrap; gap: 12px; }
}

/* ---------- 复利矩阵 & 回本对照 ---------- */
.comp-toggle { margin-left: auto; padding: 7px 16px; border-radius: 9px; border: 1px solid var(--border-strong); background: transparent; color: var(--text-dim); font-size: 13px; font-weight: 600; cursor: pointer; transition: all .2s; }
.comp-toggle:hover { border-color: var(--gold); color: var(--gold-ink); }
.comp-scroll { overflow: auto; max-height: 560px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
.curve-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin: 0 0 12px; }
.cb-lab { font-size: 12px; color: var(--text-dim); font-weight: 800; letter-spacing: .5px; }
.cb-btn { font: inherit; font-size: 12px; font-weight: 700; color: var(--gold-ink); background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 4px 12px; cursor: pointer; transition: all .15s; }
.cb-btn:hover { border-color: var(--gold); }
.cb-btn.on { background: var(--gold); color: #241a00; border-color: var(--gold); box-shadow: 0 2px 10px rgba(255, 208, 47, .35); }
.cb-tip { font-size: 11.5px; color: var(--text-faint); margin-left: 4px; }
.cb-sep { flex: none; width: 1px; height: 16px; background: var(--border); margin: 0 3px; }
.cb-btn.cb-all { border-style: dashed; }
.battle-viewport { overflow: hidden; }
.battle-track { transition: transform .55s cubic-bezier(.4, 0, .2, 1); }
.battle-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(238px, 1fr)); gap: 12px; }
.battle-pager { display: flex; justify-content: center; gap: 7px; margin-top: 14px; }
.battle-pager i { width: 7px; height: 7px; border-radius: 50%; background: var(--border); cursor: pointer; transition: background .2s, transform .2s; }
.battle-pager i.on { background: var(--gold); transform: scale(1.25); }
.nav-search { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 600; color: var(--text-dim); text-decoration: none; padding: 5px 11px; border: 1px solid var(--border); border-radius: 999px; transition: color .2s, border-color .2s; }
.nav-search:hover { color: var(--gold-ink); border-color: var(--gold); }
/* 凯利公式互动卡 */
.kelly-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 22px 24px 18px; }
.kelly-ctrls { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.kctrl label { display: flex; justify-content: space-between; font-size: 13.5px; font-weight: 700; color: var(--text); margin-bottom: 10px; }
.kctrl label b { color: var(--gold-ink); font-variant-numeric: tabular-nums; }
.kctrl input[type=range] { width: 100%; accent-color: var(--gold); cursor: pointer; }
.kscale { display: flex; justify-content: space-between; font-size: 11px; color: var(--text-faint); margin-top: 4px; }
.kelly-out { display: flex; gap: 14px; margin: 22px 0 6px; }
.ko-main { flex: 1.3; background: rgba(255, 208, 47, .1); border: 1px solid rgba(255, 208, 47, .4); border-radius: 12px; padding: 14px 16px; display: flex; align-items: center; gap: 14px; }
.ko-main b { font-size: 30px; font-weight: 800; color: var(--gold-ink); font-variant-numeric: tabular-nums; }
.ko-main span { font-size: 12px; color: var(--text-dim); line-height: 1.5; }
.ko-main span i { font-style: normal; color: var(--text-faint); font-size: 11px; }
.ko-sub { flex: 1; background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; display: flex; align-items: center; gap: 12px; }
.ko-sub b { font-size: 20px; font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; }
.ko-sub span { font-size: 12px; color: var(--text-dim); line-height: 1.5; }
.kelly-out.bad .ko-main { background: rgba(0, 179, 92, .1); border-color: rgba(0, 179, 92, .4); }
.kelly-out.bad .ko-main b { color: var(--down); }
.kelly-barwrap { position: relative; margin: 14px 8px 4px; }
.kelly-bar { position: relative; height: 12px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); overflow: hidden; }
.kelly-bar i { position: absolute; left: 0; top: 0; bottom: 0; transition: width .25s; }
.kelly-bar #kelly-barfull { background: var(--gold); opacity: .45; }
.kelly-bar #kelly-barhalf { background: var(--gold); }
.kb-lab { position: absolute; top: 16px; font-size: 10.5px; color: var(--text-faint); }
.kb-lab.kb-100 { right: 0; }
.kelly-note { margin-top: 26px; padding-top: 14px; border-top: 1px dashed var(--border); font-size: 12.5px; color: var(--text-faint); line-height: 1.8; }
.kelly-note b { color: var(--gold-ink); }
@media (max-width: 760px) { .kelly-ctrls { grid-template-columns: 1fr; gap: 16px; } .kelly-out { flex-direction: column; } }

/* ===== 胜率错觉 · 盈亏平衡胜率曲线（可拖拽互动） ===== */
.wr-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 20px 22px 18px; }
.wr-what { font-size: 12.5px; color: var(--text-dim); line-height: 1.9; margin-bottom: 12px; padding: 11px 14px; border-radius: 10px; background: rgba(255, 208, 47, .07); border: 1px solid rgba(255, 208, 47, .28); }
.wr-what b { color: var(--gold-ink); }
.wr-hint { font-size: 12.5px; color: var(--text-dim); line-height: 1.9; margin-bottom: 14px; }
.wr-hint b { color: var(--text); }
.wr-up { color: var(--up); }
.wr-down { color: var(--down); }
.wr-up-t { color: var(--up); font-weight: 700; }
.wr-flex { display: grid; grid-template-columns: 1fr 272px; gap: 20px; align-items: start; }
.wr-chart-wrap { background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: 8px; }
#wr-svg { display: block; width: 100%; height: auto; touch-action: none; cursor: crosshair; user-select: none; -webkit-user-select: none; }
#wr-svg text { font-family: inherit; }
.wr-side { display: flex; flex-direction: column; gap: 16px; }
.wr-out { border: 1px solid var(--border); border-radius: 12px; padding: 13px 15px; display: flex; flex-direction: column; gap: 9px; background: var(--surface-2); }
.wo-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 12.5px; color: var(--text-dim); }
.wo-row b { color: var(--text); font-size: 15px; font-variant-numeric: tabular-nums; }
.wo-row b.good { color: var(--up); }
.wo-row b.poor { color: var(--down); }
.wo-badge { text-align: center; border-radius: 9px; padding: 9px 10px; font-weight: 800; font-size: 13px; background: rgba(0, 179, 92, .12); color: var(--up); border: 1px solid rgba(0, 179, 92, .4); transition: all .2s; }
.wo-badge.bad { background: rgba(230, 65, 44, .12); color: var(--down); border-color: rgba(230, 65, 44, .4); }
.wo-badge.mid { background: rgba(255, 208, 47, .1); color: var(--gold-ink); border-color: rgba(255, 208, 47, .45); }
.wr-presets { display: flex; flex-wrap: wrap; gap: 6px; }
.wr-presets button { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--border-strong); background: transparent; color: var(--text-dim); font-size: 12px; font-weight: 600; cursor: pointer; font-family: inherit; transition: all .15s; }
.wr-presets button:hover { color: var(--gold-ink); border-color: rgba(255, 208, 47, .55); background: rgba(255, 208, 47, .08); }
@media (max-width: 860px) { .wr-flex { grid-template-columns: 1fr; } }
.comp-table td.cur { outline: 2px solid var(--gold); outline-offset: -2px; font-weight: 800; box-shadow: 0 0 10px rgba(255, 208, 47, .45); position: relative; z-index: 1; }
.comp-table td.curn { outline: 2px dashed rgba(255, 208, 47, .75); outline-offset: -2px; }
.comp-table td.cur, .comp-table td.curn { animation: curIn .55s ease 2; }
@keyframes curIn {
  0% { box-shadow: 0 0 0 0 rgba(255, 208, 47, .0); }
  50% { box-shadow: 0 0 0 6px rgba(255, 208, 47, .38); }
  100% { box-shadow: 0 0 0 0 rgba(255, 208, 47, .0); }
}
@media (prefers-reduced-motion: reduce) { .comp-table td.cur, .comp-table td.curn { animation: none; } }
.comp-table { border-collapse: separate; border-spacing: 1px; font-size: 11.5px; font-variant-numeric: tabular-nums; }
.comp-table th, .comp-table td { padding: 5px 8px; text-align: center; white-space: nowrap; }
.comp-table thead th { position: sticky; top: 0; z-index: 4; background-image: linear-gradient(var(--surface-2), var(--surface-2)), linear-gradient(var(--surface), var(--surface)); color: var(--text-dim); font-weight: 600; box-shadow: inset 0 -1px 0 var(--border); }
.comp-table .rowlab { position: sticky; left: 0; z-index: 3; background-image: linear-gradient(var(--surface-2), var(--surface-2)), linear-gradient(var(--surface), var(--surface)); color: var(--text); font-weight: 700; box-shadow: inset -1px 0 0 var(--border); }
.comp-table thead .rowlab { z-index: 5; }
.comp-table thead th.hlc { color: var(--gold-ink); font-weight: 800; }
.comp-table .rowlab.hlr { color: var(--gold-ink); font-weight: 800; }
/* 十字高亮：半透明色块铺满整行/列，无线框 */
.comp-table td.xhr, .comp-table td.xhc { box-shadow: inset 0 0 0 999px rgba(255, 210, 47, .16); }
.comp-table td.xhr.xhc { box-shadow: inset 0 0 0 999px rgba(255, 210, 47, .30); }
.comp-table thead th.xhh, .comp-table th.rowlab.xhh { color: var(--gold-ink); background-image: linear-gradient(rgba(255, 210, 47, .14), rgba(255, 210, 47, .14)), linear-gradient(var(--surface-2), var(--surface-2)), linear-gradient(var(--surface), var(--surface)); }
.comp-table th.grp { color: var(--gold-ink); cursor: pointer; font-weight: 700; opacity: .9; }
.comp-table th.grp:hover { opacity: 1; text-decoration: underline; }
.comp-table th.exp { cursor: pointer; }
.comp-table th.exp:hover { color: var(--gold-ink); }
.comp-table td.dots { color: var(--text-faint); opacity: .55; }
.comp-intro { font-size: 13px; color: var(--text-dim); line-height: 1.8; margin: 0 0 12px; }
.comp-intro b { color: var(--gold-ink); }
.pb-title { font-size: 17px; font-weight: 800; color: var(--text); margin: 26px 0 12px; }
.pb-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 6px 22px 16px; }
.pb-row { display: grid; grid-template-columns: 90px 1fr 1fr 92px; gap: 16px; align-items: center; padding: 8px 0; border-bottom: 1px dashed var(--border); font-size: 13px; }
.pb-row:last-child { border-bottom: none; }
.pb-row.head { font-size: 12.5px; font-weight: 700; color: var(--text-dim); border-bottom: 1px solid var(--border); padding: 12px 0 8px; }
.pb-loss { color: var(--down); font-weight: 800; font-size: 15px; }
.pb-left, .pb-need { position: relative; display: flex; align-items: center; min-height: 22px; }
/* 剩余资产：虚线框=原来的 100，实心=还剩下的，⚡=断裂位 */
.pb-track { position: relative; display: block; flex: 1 1 auto; max-width: 300px; height: 14px; border: 1.5px dashed var(--blue); border-radius: 5px; opacity: .95; }
.pb-track i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px 0 0 4px; background: var(--blue); opacity: .85; transition: width .4s; }
.pb-track em { position: absolute; top: 50%; transform: translate(-50%, -54%); font-style: normal; font-size: 9px; line-height: 1; background: var(--surface); border: 1px solid var(--blue); border-radius: 50%; padding: 1px 2px; }
.pb-left b { margin-left: 8px; font-size: 13.5px; }
/* 回本涨幅：浅金=直觉预期（涨回跌幅），实金=比直觉多的部分 */
.pb-track2 { position: relative; display: flex; flex: 1 1 auto; max-width: 300px; height: 14px; }
.pb-track2 i { height: 14px; flex: none; transition: width .4s; }
.pb-track2 .n1 { background: var(--gold); opacity: .35; border-radius: 4px 0 0 4px; }
.pb-track2 .n2 { background: var(--gold); border-radius: 0 4px 4px 0; box-shadow: inset 1.5px 0 0 var(--surface); }
.pb-need b { margin-left: 8px; color: var(--gold-ink); font-weight: 800; font-size: 13.5px; }
.pb-extra { color: #e05252; font-weight: 700; text-align: right; }
.pb-note { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border); font-size: 12.5px; line-height: 1.8; color: var(--text-dim); }
.pb-note b { color: var(--gold-ink); }
.pb-warn { display: block; color: var(--down); font-weight: 700; }
@media (max-width: 640px) {
  .pb-row { grid-template-columns: 64px 1fr 1fr 60px; gap: 8px; font-size: 12px; }
  .pb-loss { font-size: 13px; }
  .pb-card { padding: 4px 14px 12px; }
}

/* ---------- 概率定理导流条（首页） ---------- */
.prob-promo { display: flex; align-items: center; gap: 14px; margin-top: 18px; padding: 14px 20px; background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--gold); border-radius: 12px; text-decoration: none; transition: border-color .2s, transform .2s; }
.prob-promo:hover { border-color: rgba(255,210,47,.45); transform: translateY(-2px); }
.prob-promo .pp-ico { font-size: 20px; flex: none; }
.prob-promo .pp-txt { font-size: 13.5px; color: var(--text-dim); line-height: 1.6; }
.prob-promo .pp-txt b { color: var(--text); }
.prob-promo .pp-go { margin-left: auto; flex: none; font-size: 13px; font-weight: 700; color: var(--gold-ink); }
@media (max-width: 640px) { .prob-promo .pp-go { display: none; } }

/* 帕累托杠杆矩阵单元格（两行：杠杆 + 成本→收益） */
.comp-table .pv { font-weight: 800; font-size: 12.5px; }
.comp-table .ps { font-size: 10px; opacity: .78; margin-top: 1px; }

/* ---------- 帕累托：牛鼻子方格 + 交易三动作 ---------- */
/* 牛鼻子方格：10×10 层层嵌套 + 动效 */
.pn-flex { display: flex; gap: 26px; align-items: flex-start; }
.pn-grid { flex: none; display: grid; grid-template-columns: repeat(10, 46px); grid-auto-rows: 46px; gap: 4px; touch-action: none; }
.pn-cell { border-radius: 7px; background: var(--surface-2); border: 1px solid var(--border); position: relative; transition: background .45s, border-color .45s, box-shadow .45s; }
.pn-cell.l1 { background: rgba(255, 210, 47, .28); border-color: rgba(255, 210, 47, .5); }
.pn-cell.l2 { background: rgba(255, 158, 40, .55); border-color: rgba(255, 158, 40, .75); }
.pn-cell.l3 { background: #e0442a; border-color: #ff7050; box-shadow: 0 0 16px rgba(255, 110, 50, .45); }
.pn-cell.cow { display: flex; align-items: center; justify-content: center; font-size: 26px; line-height: 1; cursor: grab; z-index: 2; box-shadow: 0 0 20px rgba(255, 110, 50, .6); }
.pn-cell.cow:active { cursor: grabbing; }
.pn-grid.jiggle .pn-cell.l1 { animation: pnWiggle .3s ease-in-out infinite; }
.pn-grid.jiggle .pn-cell.l1:nth-child(3n) { animation-delay: .06s; }
.pn-grid.jiggle .pn-cell.l1:nth-child(3n+1) { animation-delay: .12s; }
@keyframes pnWiggle {
  0%, 100% { transform: rotate(-2.6deg) scale(.94); }
  50% { transform: rotate(2.6deg) scale(.94); }
}
@media (prefers-reduced-motion: reduce) {
  .pn-grid.jiggle .pn-cell.l1 { animation: none; }
}
.pn-legend { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 12px; padding-top: 4px; }
.pnl-quote { font-size: 15.5px; font-weight: 800; color: var(--gold-ink); line-height: 1.7; padding-bottom: 10px; border-bottom: 1px dashed var(--border); }
.pnl-src { display: block; margin-top: 6px; font-size: 12px; font-weight: 600; color: var(--text-faint); text-align: right; }
.pnl-desc { font-size: 12.5px; color: var(--text-dim); line-height: 1.75; }
.pnl-desc b { color: var(--gold-ink); }
.pnl-item { display: flex; gap: 12px; align-items: flex-start; font-size: 13px; color: var(--text-dim); line-height: 1.65; }
.pnl-item b { color: var(--text); }
.pnl-sw { flex: none; width: 18px; height: 18px; border-radius: 5px; margin-top: 2px; }
.pnl-sw.s0 { background: var(--surface-2); border: 1px solid var(--border-strong, var(--border)); }
.pnl-sw.s1 { background: rgba(255, 210, 47, .28); border: 1px solid rgba(255, 210, 47, .5); }
.pnl-sw.s2 { background: rgba(255, 158, 40, .55); border: 1px solid rgba(255, 158, 40, .75); }
.pnl-sw.s3 { background: #e0442a; border: 1px solid #ff7050; }
.pnl-note { font-size: 12.5px; color: var(--text-faint); line-height: 1.75; border-top: 1px dashed var(--border); padding-top: 10px; }
.pnl-note b { color: var(--gold-ink); }
@media (max-width: 860px) {
  .pn-flex { flex-direction: column; }
  .pn-grid { grid-template-columns: repeat(10, 1fr); grid-auto-rows: auto; aspect-ratio: 1; width: 100%; max-width: 480px; gap: 3px; }
}
.pareto-apply { margin-top: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 16px 20px 14px; }
.pa-head { font-size: 14.5px; font-weight: 800; color: var(--gold-ink); letter-spacing: 1px; margin-bottom: 10px; }
.pa-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.pa-item { font-size: 12.5px; color: var(--text-dim); line-height: 1.75; }
.pa-item b { color: var(--text); font-size: 13.5px; }
.pa-no { float: left; font-size: 18px; font-weight: 800; color: var(--gold-ink); margin-right: 8px; line-height: 1.3; }
.pa-foot { margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--border); font-size: 12px; color: var(--text-faint); line-height: 1.7; }
.pa-foot b { color: var(--text); }
.pa-x { color: #e05252; font-weight: 700; }

/* 延伸思考：不同起点比例 × 三层聚焦 */
.pnl-ext { margin-top: 18px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 14px 18px 12px; overflow-x: auto; }
.pe-head { font-size: 14px; font-weight: 800; color: var(--gold-ink); margin-bottom: 6px; }
.pe-desc { font-size: 12.5px; color: var(--text-dim); line-height: 1.7; margin-bottom: 10px; }
.pe-desc b { color: var(--gold-ink); }
.ext-table { border-collapse: collapse; min-width: 480px; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.ext-table th, .ext-table td { border: 1px solid var(--border); padding: 7px 12px; text-align: center; white-space: nowrap; }
.ext-table thead th { background: var(--surface-2); color: var(--text-dim); font-weight: 700; }
.ext-table tbody th { background: var(--surface-2); color: var(--text); font-weight: 700; }
.ext-table td { color: var(--text); }
.ext-table tr.base th, .ext-table tr.base td { color: var(--gold-ink); font-weight: 800; }
.ext-table tr.dim th, .ext-table tr.dim td { color: var(--text-faint); }
.ext-table tr:last-child th, .ext-table tr:last-child td { border-bottom: 2px solid rgba(255, 255, 255, .28); }
html[data-theme="light"] .ext-table tr:last-child th, html[data-theme="light"] .ext-table tr:last-child td { border-bottom-color: rgba(0, 0, 0, .25); }
.ext-table i { font-style: normal; font-size: 10.5px; font-weight: 400; opacity: .85; }
.pe-note { margin-top: 10px; font-size: 12.5px; color: var(--text-faint); line-height: 1.7; }
.pe-note b { color: var(--gold-ink); }
@media (max-width: 860px) { .pa-grid { grid-template-columns: 1fr; gap: 12px; } }

/* ===== 全局搜索弹层 ===== */
.gs-mask { position: fixed; inset: 0; z-index: 1050; background: rgba(2, 2, 20, .74); backdrop-filter: blur(2px); display: none; align-items: flex-start; justify-content: center; padding: 9vh 20px 40px; }
.gs-mask.open { display: flex; }
.gs-panel { width: 100%; max-width: 620px; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); display: flex; flex-direction: column; max-height: 76vh; overflow: hidden; }
.gs-input-row { display: flex; align-items: center; gap: 10px; padding: 15px 18px; border-bottom: 1px solid var(--border); color: var(--gold-ink); flex: none; }
.gs-input-row input { flex: 1; background: none; border: none; outline: none; color: var(--text); font-size: 16px; font-family: inherit; }
.gs-input-row input::placeholder { color: var(--text-faint); }
#gs-close { flex: none; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--border); background: none; color: var(--text-dim); font-size: 16px; line-height: 1; cursor: pointer; transition: all .2s; }
#gs-close:hover { color: var(--text); border-color: var(--gold); }
.gs-body { overflow-y: auto; padding: 8px 0 14px; scrollbar-width: thin; scrollbar-color: var(--border) transparent; }
.gs-body::-webkit-scrollbar { width: 6px; }
.gs-body::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
.gs-body::-webkit-scrollbar-track { background: transparent; }
.gs-empty { text-align: center; color: var(--text-faint); font-size: 13.5px; line-height: 2; padding: 36px 20px; }
.gs-empty b { color: var(--gold-ink); font-weight: 700; }
.gs-group { padding: 8px 12px 4px; }
.gs-group + .gs-group { border-top: 1px dashed var(--border); margin-top: 6px; padding-top: 12px; }
.gs-group-hd { display: flex; align-items: center; justify-content: space-between; font-size: 12px; font-weight: 800; letter-spacing: 1.5px; color: var(--gold-ink); margin-bottom: 6px; padding: 0 6px; }
.gs-group-hd i { font-style: normal; font-weight: 500; color: var(--text-faint); letter-spacing: 0; }
.gs-row { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 12px; text-decoration: none; cursor: pointer; transition: background .15s; }
.gs-row:hover { background: rgba(255, 208, 47, .07); }
button.gs-row { width: 100%; text-align: left; background: none; border: none; font-family: inherit; }
.gs-avatar { flex: none; width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 800; color: #fff; }
.gs-avatar-img { object-fit: cover; }
.gs-a-y { background: linear-gradient(135deg, #d4a017, #8a6a00); }
.gs-a-b { background: linear-gradient(135deg, #4262ff, #2a3ab0); }
.gs-a-g { background: linear-gradient(135deg, #0d8050, #085a38); }
.gs-b-ico, .gs-q-ico { background: var(--surface-2); color: var(--gold-ink); font-size: 16px; font-weight: 700; border: 1px solid var(--border); }
.gs-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.gs-main b { font-size: 14.5px; color: var(--text); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gs-main b.gs-quote-text { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-weight: 600; font-size: 13.5px; line-height: 1.5; }
.gs-main i { font-style: normal; font-size: 12px; color: var(--text-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gs-cat { flex: none; font-size: 11px; font-weight: 700; padding: 2px 9px; border-radius: 999px; }
.gs-cat.c0 { color: #e6b84c; background: rgba(230, 184, 76, .12); }
.gs-cat.c1 { color: #ff8f6b; background: rgba(255, 143, 107, .12); }
.gs-cat.c2 { color: #7c9bff; background: rgba(124, 155, 255, .12); }
.gs-cat.c3 { color: #52d4a4; background: rgba(82, 212, 164, .12); }
.gs-cat.c4 { color: #c9a4ff; background: rgba(201, 164, 255, .12); }
.gs-go { flex: none; font-size: 14px; color: var(--text-faint); }
.gs-row:hover .gs-go { color: var(--gold-ink); }
.gs-copy { font-size: 11px; border: 1px solid var(--border); border-radius: 999px; padding: 2px 10px; }
.gs-more { font-size: 11.5px; color: var(--text-faint); text-align: center; padding: 6px 0 2px; }
.gs-foot { flex: none; border-top: 1px solid var(--border); padding: 9px 18px; font-size: 11.5px; color: var(--text-faint); letter-spacing: .5px; }
@media (max-width: 560px) { .gs-mask { padding: 5vh 12px 20px; } .gs-panel { max-height: 82vh; } .gs-main i { display: none; } }

/* ============================================================
   浅色主题补丁（REQ-038）：导航 / hero 横幅 / 页脚整体浅色化
   原则：深蓝品牌带只属于深色主题；浅色下导航、banner、
   页脚与主体一致走浅底深字，金色统一降为深金 #a67c00 保证对比度。
   ============================================================ */

/* ---- 顶部导航 ---- */
html[data-theme="light"] .nav { background: #ffffff; color: var(--text); border-bottom: 1px solid var(--border); box-shadow: 0 1px 0 rgba(5,0,56,.03); }
html[data-theme="light"] .logo { color: #a67c00; }
html[data-theme="light"] .nav-links a { color: rgba(38,40,58,.72); }
html[data-theme="light"] .nav-links a:hover, html[data-theme="light"] .nav-links a.active { color: #a67c00; }
html[data-theme="light"] .nav .theme-toggle { background: rgba(5,0,56,.05); border-color: var(--border-strong); color: var(--text); }
html[data-theme="light"] .nav-user { color: var(--text); }
html[data-theme="light"] .nav .btn-ghost { color: var(--text-dim); border-color: var(--border-strong); }
html[data-theme="light"] .nav .btn-ghost:hover { color: #a67c00; border-color: var(--gold-border); }

/* ---- 首页 hero（banner 数据带）---- */
html[data-theme="light"] .hero { background: linear-gradient(160deg, #ffffff 0%, #fff7e0 100%); color: var(--text); }
html[data-theme="light"] .hero-badge { background: var(--gold-soft); color: #a67c00; border-color: var(--gold-border); }
html[data-theme="light"] .hero h1 span { color: #a67c00; }
html[data-theme="light"] .hero p { color: var(--text-dim); }
html[data-theme="light"] .search-bar { background: #ffffff; border-color: var(--border-strong); box-shadow: var(--shadow); }
html[data-theme="light"] .search-bar input { color: var(--text); }
html[data-theme="light"] .search-bar input::placeholder { color: var(--text-faint); }
html[data-theme="light"] .hero-stats .num { color: #a67c00; }
html[data-theme="light"] .hero-stats .label { color: var(--text-dim); }

/* ---- 频道页 page-hero ---- */
html[data-theme="light"] .page-hero { background: linear-gradient(160deg, #ffffff, #fff7e0); color: var(--text); }
html[data-theme="light"] .breadcrumb { color: var(--text-faint); }
html[data-theme="light"] .breadcrumb a { color: var(--text-dim); }
html[data-theme="light"] .breadcrumb a:hover { color: #a67c00; }
html[data-theme="light"] .page-hero h1 { color: var(--text); }
html[data-theme="light"] .page-hero p, html[data-theme="light"] .page-hero .hero-sub { color: var(--text-dim); }
html[data-theme="light"] .page-hero p span[style*="ffd02f"] { color: #a67c00 !important; border-color: var(--gold-border) !important; }
html[data-theme="light"] .page-hero p span[style*="ffd02f"] a { color: #a67c00 !important; }

/* ---- 人物详情页 detail-hero ---- */
html[data-theme="light"] .detail-hero { background: linear-gradient(160deg, #ffffff, #fff7e0); color: var(--text); }
html[data-theme="light"] .detail-hero h1 { color: var(--text); }
html[data-theme="light"] .detail-hero .real { color: var(--text-faint); }
html[data-theme="light"] .detail-hero .tags span { background: var(--gold-soft); color: #a67c00; border-color: var(--gold-border); }

/* ---- 大师 / 经济学家详情页 master-hero ---- */
html[data-theme="light"] .master-hero { background: linear-gradient(160deg, #ffffff 0%, #fff7e0 100%); color: var(--text); }
html[data-theme="light"] .master-country { color: #a67c00; }
html[data-theme="light"] .master-head-info h1 { color: var(--text); }
html[data-theme="light"] .master-en { color: var(--text-faint); }
html[data-theme="light"] .master-summary { color: var(--text-dim); }
html[data-theme="light"] .master-titles .tag-pill { background: var(--gold-soft); color: #a67c00; border-color: transparent; }
html[data-theme="light"] .master-life { color: var(--text-faint); }
html[data-theme="light"] .master-hero .fav-btn { border-color: var(--gold-border); color: #a67c00; background: transparent; }
html[data-theme="light"] .master-portrait-wrap { box-shadow: 0 12px 36px rgba(5,0,56,.14); }

/* ---- 页脚 ---- */
html[data-theme="light"] .footer { background: #ffffff; color: var(--text-dim); border-top: 1px solid var(--border); }
html[data-theme="light"] .footer h4 { color: var(--text); }
html[data-theme="light"] .footer a { color: var(--text-dim); }
html[data-theme="light"] .footer a:hover { color: #a67c00; }
html[data-theme="light"] .footer .brand { color: #a67c00; }
html[data-theme="light"] .footer-bottom { border-top-color: var(--border); color: var(--text-faint); }

/* ---- tools / terms-wiki 内联深蓝导航（压内联样式）---- */
html[data-theme="light"] .twnav { background: #ffffff !important; border-bottom: 1px solid var(--border) !important; box-shadow: 0 1px 0 rgba(5,0,56,.03); }
html[data-theme="light"] .twnav a { color: rgba(38,40,58,.72) !important; }
html[data-theme="light"] .twnav a:hover { color: #a67c00 !important; }
