/* ============================================================
   研盘 Tickwise — 去模板化覆盖层（叠加在 Nova style.css 之上）
   只覆盖品牌相关：配色 / 字体 / 披露条 / 行情条 / 入金对照表 / 桥接行
   ============================================================ */

:root,
[data-bs-theme=light] {
  --bs-primary: #0E7A58;
  --bs-primary-rgb: 14, 122, 88;
  --bs-primary-hover: #0A5E44;
  --bs-primary-hover-rgb: 10, 94, 68;
  --bs-secondary: #D9EFE6;
  --bs-secondary-rgb: 217, 239, 230;
  --bs-heading-color: #14181C;
  --bs-body-color: #3D434E;
  --bs-link-color: var(--bs-primary);

  --ink: #14181C;
  --muted: #6C7480;
  --faint: #98A0AB;
  --line: #E5E9ED;
  --down: #C24536;
  --down-wash: #FBEEEC;
  --paper: #F5F7F8;
}

/* —— 字体 —— */
body { font-family: "IBM Plex Sans", "Noto Sans SC", -apple-system, "Segoe UI", sans-serif; }
h1, h2, h3, h4, h5, h6 { font-family: "Newsreader", "Noto Serif SC", Georgia, serif; letter-spacing: -0.012em; }
.mono, .num { font-family: "IBM Plex Mono", ui-monospace, monospace; font-feature-settings: "tnum" 1; letter-spacing: -0.01em; }

/* —— 顶部披露条 —— */
.topbar { background: var(--ink); color: #C8D2CF; font-size: 0.8rem; line-height: 1.5; }
.topbar .container { display: flex; gap: 10px; align-items: center; padding: 9px 0; max-width: 1140px; }
.topbar .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--bs-primary); flex: none; }
.topbar b { color: #fff; font-weight: 600; }

/* —— 文字 logo —— */
.brand-text { display: inline-flex; align-items: baseline; gap: 7px; font-family: "Newsreader", "Noto Serif SC", Georgia, serif; font-weight: 700; font-size: 1.32rem; color: var(--ink) !important; text-decoration: none !important; letter-spacing: -0.02em; }
.brand-text .mk { width: 28px; height: 28px; border-radius: 7px; background: var(--ink); display: inline-grid; place-items: center; align-self: center; }
.brand-text .en { font-family: "IBM Plex Mono", monospace; font-size: 0.72rem; font-weight: 500; color: var(--muted); }

/* —— Hero 微信任行 —— */
.hero-trust { display: flex; flex-wrap: wrap; gap: 18px; color: var(--muted); font-size: 0.9rem; }
.hero-trust span { display: inline-flex; align-items: center; gap: 7px; }
.hero-trust i { color: var(--bs-primary); }

/* —— 行情条（示意，非实时）—— */
.ticker { background: var(--ink); border-top: 1px solid #25303A; }
.ticker .container { display: flex; gap: 26px; align-items: center; overflow-x: auto; padding: 11px 0; font-family: "IBM Plex Mono", monospace; font-size: 0.82rem; white-space: nowrap; scrollbar-width: none; }
.ticker .container::-webkit-scrollbar { display: none; }
.ticker .lab { color: #7E8893; font-size: 0.7rem; letter-spacing: 0.07em; flex: none; }
.ticker .it { color: #D6DCE2; flex: none; }
.ticker .it b { color: #fff; font-weight: 500; }
.ticker .up { color: #3DD9A0; }
.ticker .dn { color: #F0816F; }

/* —— 签名：入金对照表 —— */
.fund-wrap { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: #fff; box-shadow: 0 24px 50px -38px rgba(20,24,28,.3); }
.fund-table { width: 100%; border-collapse: collapse; font-size: 0.97rem; }
.fund-table th { font-size: 0.8rem; font-weight: 600; color: var(--muted); text-align: left; padding: 15px 22px; background: var(--paper); border-bottom: 1px solid var(--line); }
.fund-table td { padding: 17px 22px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--bs-body-color); }
.fund-table tbody tr:last-child td { border-bottom: none; }
.fund-table .way { font-weight: 600; color: var(--ink); font-family: "Newsreader", "Noto Serif SC", Georgia, serif; }
.fund-table .way small { display: block; font-weight: 400; color: var(--faint); font-size: 0.78rem; margin-top: 3px; }
.fund-table .col-num { font-family: "IBM Plex Mono", monospace; font-size: 0.86rem; color: var(--ink); }
.bridge-row { background: #E8F4EE; }
.bridge-row td { border-bottom-color: #CFE6DB !important; }
.btag { display: inline-block; font-size: 0.7rem; font-weight: 600; color: #fff; background: var(--bs-primary); padding: 2px 9px; border-radius: 6px; margin-left: 7px; vertical-align: middle; }
.risknote { display: flex; gap: 10px; padding: 14px 22px; background: var(--down-wash); font-size: 0.85rem; color: #7A2D22; line-height: 1.55; }
.risknote i { color: var(--down); margin-top: 1px; }

/* —— 路线图编号配色（覆盖 Nova 蓝）—— */
.howitworks__v1 .step-number { background: var(--bs-primary) !important; color: #fff !important; }

/* —— 指南卡内的小标签 —— */
.guide-kicker { font-family: "IBM Plex Mono", monospace; font-size: 0.72rem; color: var(--bs-primary); letter-spacing: 0.03em; display: block; margin-bottom: 8px; }

/* —— 出站 / 关于 CTA 带 —— */
.go-band { background: var(--ink); border-radius: 20px; padding: 48px 44px; color: #DDE6E2; }
.go-band h2 { color: #fff; }
.go-band .btn-white { background: #fff; color: var(--ink); border: none; }

/* —— 段落小标题（subtitle）改成不大写、走品牌色 —— */
.subtitle, .hero-subtitle, .logos-title { text-transform: none !important; letter-spacing: 0.02em !important; color: var(--bs-primary) !important; font-family: "IBM Plex Mono", monospace; font-weight: 500; }

/* —— 作者卡头像 —— */
.ava { width: 60px; height: 60px; border-radius: 50%; background: var(--bs-secondary); display: grid; place-items: center; font-family: "Newsreader", "Noto Serif SC", Georgia, serif; font-weight: 700; color: var(--bs-primary-hover); font-size: 1.3rem; flex: none; }

/* —— Hero 出站卡（不露邀请码，链到 go 出站页）—— */
.hero__v6 .hero-img .go-card { background: #fff; border: 1px solid var(--line); padding: 18px 20px; display: flex; flex-direction: column; gap: 8px; text-decoration: none !important; }
.go-card .gc-kicker { font-family: "IBM Plex Mono", monospace; font-size: 0.72rem; color: var(--bs-primary); display: inline-flex; align-items: center; gap: 6px; }
.go-card .gc-title { font-family: "Newsreader", "Noto Serif SC", Georgia, serif; color: var(--ink); font-weight: 600; font-size: 1.02rem; line-height: 1.35; }
.go-card .gc-cta { color: var(--bs-primary); font-weight: 600; font-size: 0.9rem; display: inline-flex; align-items: center; gap: 2px; }
.go-card .gc-note { font-size: 0.7rem; color: var(--faint); }
.go-card:hover { border-color: var(--bs-primary); }
.go-card:hover .gc-cta { gap: 6px; }

@media (max-width: 575.98px) {
  .fund-table th:nth-child(2), .fund-table td:nth-child(2) { display: none; }
}

/* —— 全局图片兜底 + 无障碍降级（§18.5 / §18.6）—— */
img { max-width: 100%; height: auto; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  [data-aos] { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* —— Cookie 同意横幅（§18.3 Consent Mode v2）—— */
.tw-consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 1080; max-width: 760px; margin: 0 auto; background: var(--ink); color: #D7E0DC; border: 1px solid #2A3640; border-radius: 14px; padding: 14px 18px; display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; box-shadow: 0 16px 40px -20px rgba(0,0,0,.55); font-size: .86rem; line-height: 1.5; }
.tw-consent a { color: #3DD9A0; }
.tw-consent-actions { display: flex; gap: 8px; flex: none; }
.tw-consent-btn { font-family: inherit; font-size: .85rem; font-weight: 600; border-radius: 9px; padding: 10px 18px; min-height: 44px; cursor: pointer; border: 1px solid transparent; transition: background .15s, border-color .15s; }
.tw-consent .tw-reject { background: transparent; color: #C8D2CF; border-color: #3A4651; }
.tw-consent .tw-reject:hover { border-color: #5B6A74; }
.tw-consent .tw-accept { background: var(--bs-primary); color: #fff; }
.tw-consent .tw-accept:hover { background: #0c6b4e; }
@media (max-width: 520px) { .tw-consent { flex-direction: column; align-items: stretch; } .tw-consent-actions { justify-content: flex-end; } }

/* 移动端隐藏装饰性行情条（§21）*/
@media (max-width: 767.98px) { .ticker { display: none; } }

/* —— logo / brand 兜底尺寸（防缓存混用时撑破布局）—— */
.navbar-brand .mk, .offcanvas-header .mk, .footer .brand-text .mk { flex: none; width: 28px; height: 28px; overflow: hidden; }
.navbar-brand .mk svg, .brand-text .mk svg { width: 15px; height: 15px; }
.navbar-brand img, .brand-text img, .footer img { max-height: 32px; width: auto; }

/* —— 窄屏标题折行兜底 + 工具重置链触摸区（§21）—— */
h1, h2, h3 { overflow-wrap: break-word; }
.calc-reset { padding: 11px 4px; min-height: 40px; }
