:root {
  --bg: #070b16;
  --bg-2: #0c1222;
  --surface: #111a2e;
  --surface-2: #16203a;
  --border: rgba(120, 160, 220, 0.14);
  --text: #e6edf6;
  --muted: #8b9bb8;
  --cyan: #22d3ee;
  --cyan-soft: rgba(34, 211, 238, 0.12);
  --purple: #8b5cf6;
  --up: #ff4d4f;   /* 涨 = 红 */
  --down: #1fd17a; /* 跌 = 绿 */
  --radius: 16px;
  --maxw: 1120px;
  --font: "Segoe UI", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --mono: "SFMono-Regular", "JetBrains Mono", Consolas, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  /* 中文排版：禁止标点悬挂、避免单字成行 */
  word-break: normal;
  line-break: strict;
  text-wrap: pretty;
}
a { color: inherit; text-decoration: none; }

/* 标题平衡换行，避免单字成行 */
.hero__title, .section__title, .note__title, .card h3,
.holding-name, .goal__label, .kpi__label, .stat__label, .trades-title, .holdings-title {
  text-wrap: balance;
}
code {
  font-family: var(--mono);
  background: var(--cyan-soft);
  color: var(--cyan);
  padding: 1px 6px;
  border-radius: 6px;
  font-size: 0.9em;
}

/* ---------- 导航 ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(7, 11, 22, 0.72);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.nav.scrolled { border-bottom: 1px solid var(--border); }
.nav__inner {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px;
}
.nav__logo { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.nav__logo-mark { color: var(--cyan); font-size: 1.3rem; }
.nav__logo-sub { color: var(--muted); font-size: .7rem; font-family: var(--mono); margin-left: 4px; }
.nav__links { display: flex; gap: 28px; }
.nav__links a {
  color: var(--muted); font-size: .95rem; position: relative; transition: color .2s;
}
.nav__links a:hover { color: var(--text); }
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--cyan); transition: width .25s;
}
.nav__links a:hover::after { width: 100%; }
.nav__links a.active { color: var(--text); }
.nav__links a.active::after { width: 100%; }
.nav__toggle { display: none; background: none; border: none; color: var(--text); font-size: 1.4rem; cursor: pointer; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  padding: 120px 24px 60px; overflow: hidden;
  background:
    radial-gradient(900px 500px at 80% -10%, rgba(139, 92, 246, 0.18), transparent 60%),
    radial-gradient(800px 500px at 10% 10%, rgba(34, 211, 238, 0.14), transparent 60%),
    var(--bg);
}
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .5; }
.hero__inner {
  position: relative; z-index: 2; max-width: var(--maxw); margin: 0 auto; width: 100%;
}
.hero__eyebrow {
  color: var(--cyan); font-family: var(--mono); letter-spacing: 2px;
  font-size: .85rem; text-transform: uppercase; margin-bottom: 18px;
}
.hero__title { font-size: clamp(2.1rem, 5vw, 3.6rem); line-height: 1.2; font-weight: 800; }
.hero__title .hl {
  background: linear-gradient(90deg, var(--cyan), var(--purple));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__sub { color: var(--muted); max-width: 620px; margin: 22px 0 32px; font-size: 1.08rem; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 12px 26px; border-radius: 999px;
  font-weight: 600; font-size: .98rem; transition: transform .2s, box-shadow .2s; cursor: pointer;
}
.btn--primary {
  background: linear-gradient(90deg, var(--cyan), #38bdf8);
  color: #04121a; box-shadow: 0 8px 30px rgba(34, 211, 238, .35);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(34, 211, 238, .5); }
.btn--ghost { border: 1px solid var(--border); color: var(--text); }
.btn--ghost:hover { border-color: var(--cyan); color: var(--cyan); }

.hero__stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
  margin-top: 40px; max-width: 580px;
}
.stat {
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px 16px; text-align: center;
}
.stat__num { font-family: var(--mono); font-size: 1.7rem; font-weight: 700; color: var(--text); }
.stat__unit { font-size: 1rem; color: var(--cyan); }
.stat__label { color: var(--muted); font-size: .82rem; margin-top: 4px; }

/* ---------- 目标进度卡片 ---------- */
.goal-card {
  margin-top: 24px;
  max-width: 580px;
  background: linear-gradient(180deg, rgba(34,211,238,.06), transparent);
  border: 1px solid rgba(34,211,238,.25);
  border-radius: var(--radius);
  padding: 20px 24px;
}
.goal__date {
  font-family: var(--mono);
  font-size: .82rem;
  color: var(--cyan);
  margin-bottom: 14px;
  letter-spacing: .05em;
}
.goal__item { margin-bottom: 12px; }
.goal__item:last-child { margin-bottom: 0; }
.goal__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.goal__label { font-size: .88rem; color: var(--text); }
.goal__label strong { color: #f97316; }
.goal__pct {
  font-family: var(--mono);
  font-size: .95rem;
  font-weight: 700;
  color: #22d3ee;
}
.goal__bar {
  height: 6px;
  background: rgba(255,255,255,.08);
  border-radius: 3px;
  overflow: hidden;
}
.goal__fill {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, #22d3ee, #38bdf8);
  width: 0%;
  transition: width 1.2s ease-out;
}
.goal__fill--year { background: linear-gradient(90deg, #f97316, #fb923c); }

.goal__hint {
  margin-top: 16px;
  font-size: .8rem;
  color: var(--muted);
  line-height: 1.5;
}
.hero__scroll {
  position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%);
  color: var(--muted); font-size: .8rem; animation: bob 2s infinite; z-index: 2;
}
@keyframes bob { 0%,100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }

/* ---------- 通用 section ---------- */
.section { max-width: var(--maxw); margin: 0 auto; padding: 90px 24px; }
.section--alt { max-width: none; background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section--alt > * { max-width: var(--maxw); margin-left: auto; margin-right: auto; }
.section__head { text-align: center; margin-bottom: 52px; }
.section__kicker { font-family: var(--mono); color: var(--cyan); letter-spacing: 3px; font-size: .8rem; }
.section__title { font-size: clamp(1.6rem, 3.5vw, 2.4rem); margin: 10px 0 12px; font-weight: 800; }
.section__desc { color: var(--muted); max-width: 640px; margin: 0 auto; }

/* ---------- 时间线 ---------- */
.timeline { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.timeline__head { font-size: 1.2rem; margin-bottom: 22px; color: var(--text); }
.tl-item { position: relative; padding: 0 0 26px 30px; border-left: 2px solid var(--border); }
.tl-item:last-child { border-left-color: transparent; }
.tl-item__dot {
  position: absolute; left: -7px; top: 4px; width: 12px; height: 12px;
  border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 4px var(--cyan-soft);
}
.tl-item__dot--fut { background: var(--purple); box-shadow: 0 0 0 4px rgba(139, 92, 246, .18); }
.tl-item__time { font-family: var(--mono); color: var(--cyan); font-size: .9rem; margin-bottom: 8px; }
.tl-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px 20px; transition: transform .2s, border-color .2s;
}
.tl-card:hover { transform: translateX(4px); border-color: var(--cyan); }
.tl-card h4 { font-size: 1.05rem; margin-bottom: 6px; }
.tl-card p { color: var(--muted); font-size: .94rem; }

/* ---------- 卡片网格 ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 22px;
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.card:hover {
  transform: translateY(-6px); border-color: var(--cyan);
  box-shadow: 0 16px 40px rgba(34, 211, 238, .12);
}
.card__icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--cyan-soft); color: var(--cyan); font-weight: 700; font-size: 1.2rem; margin-bottom: 16px;
}
.card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: .94rem; }

/* ---------- KPI ---------- */
.kpi { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 40px; }
.kpi__item {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; text-align: center;
}
.kpi__num { font-family: var(--mono); font-size: 1.9rem; font-weight: 700; }
.kpi__num.up { color: var(--up); }
.kpi__num.down { color: var(--down); }
.kpi__label { color: var(--muted); font-size: .85rem; margin-top: 6px; }
.kpi__sub { color: var(--muted); font-size: .76rem; margin-top: 4px; font-family: var(--mono); }

/* ---------- 持仓明细 ---------- */
.holdings-section { margin-bottom: 36px; }
.holdings-title { font-size: 1.1rem; margin-bottom: 6px; color: var(--text); }
.holdings-sub { font-size: .88rem; color: var(--muted); margin-bottom: 16px; }
.holdings-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.holding-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  padding: 16px 18px; transition: transform .2s, border-color .2s;
}
.holding-card:hover { transform: translateY(-3px); border-color: rgba(34,211,238,.5); }
.holding-name { font-size: .95rem; font-weight: 600; margin-bottom: 6px; }
.holding-code { font-family: var(--mono); font-size: .78rem; color: var(--muted); font-weight: 400; margin-left: 6px; }
.holding-value { font-family: var(--mono); font-size: 1.15rem; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.holding-pct { font-family: var(--mono); font-size: .85rem; font-weight: 600; }
.holding-pct.up { color: var(--up); }
.holding-pct.down { color: var(--down); }
.holding-w { color: var(--muted); font-weight: 400; margin-left: 8px; font-size: .78rem; }
.holding-buy { font-size: .78rem; color: var(--muted); margin-top: 6px; font-family: var(--mono); }
.holding-buy b { color: var(--text); font-weight: 600; }

/* 已清仓卡片 */
.holding-card--closed { opacity: .62; filter: grayscale(.35); border-style: dashed; }
.holding-card--closed:hover { transform: none; border-color: var(--border); }
.holding-badge {
  display: inline-block; margin-left: 6px; padding: 1px 9px; border-radius: 999px;
  font-size: .68rem; font-weight: 600; letter-spacing: .5px;
  color: #fb923c; border: 1px solid rgba(251, 146, 60, .5); background: rgba(251, 146, 60, .14);
}

/* 持仓交互：提示 / 可点击放大 / 实时行 */
.holdings-hint {
  font-size: .82rem; color: var(--muted); margin: -4px 0 14px;
  text-wrap: pretty;
}
.holdings-hint strong { color: var(--cyan); font-weight: 600; }
.holdings-note { font-size: .76rem; color: var(--muted); margin: 0 0 16px; opacity: .85; text-wrap: pretty; }
.holdings-note strong { color: #f59e0b; font-weight: 600; }
.holding-card--click {
  cursor: pointer;
  transition: transform .22s ease, border-color .22s, box-shadow .22s;
}
.holding-card--click:hover {
  transform: translateY(-4px) scale(1.04);
  border-color: var(--cyan);
  box-shadow: 0 12px 34px -12px rgba(34,211,238,.45);
}
.holding-card--click:focus-visible {
  outline: 2px solid var(--cyan); outline-offset: 2px;
}
.holding-live {
  font-family: var(--mono); font-size: .8rem; margin-top: 8px;
  color: var(--muted); line-height: 1.4;
}
.holding-live b { color: var(--text); font-weight: 700; }
.holding-live .lu { color: #ff4d4f; }   /* 涨 */
.holding-live .ld { color: #1fd17a; }   /* 跌 */
.holdings-tag { color: var(--cyan); font-size: .82rem; }

/* ---------- 持仓透视弹窗 ---------- */
.hold-modal {
  position: fixed; inset: 0; z-index: 100;
  display: none; align-items: center; justify-content: center;
  padding: 24px;
}
.hold-modal.open { display: flex; }
.hold-modal__mask {
  position: absolute; inset: 0;
  background: rgba(4,8,18,.72); backdrop-filter: blur(4px);
}
.hold-modal__panel {
  position: relative; z-index: 1;
  width: 100%; max-width: 760px; max-height: 90vh; overflow-y: auto;
  background: linear-gradient(180deg, #0e1626, #0a1120);
  border: 1px solid var(--border); border-radius: 16px;
  padding: 26px 28px; box-shadow: 0 30px 80px -20px rgba(0,0,0,.7);
  animation: hmIn .25s ease;
}
@keyframes hmIn { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.hold-modal__close {
  position: absolute; top: 14px; right: 16px;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--border); color: var(--muted);
  font-size: 1.3rem; line-height: 1; cursor: pointer; transition: .2s;
}
.hold-modal__close:hover { color: var(--text); border-color: var(--cyan); }
.hold-modal__head {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 16px;
  margin-bottom: 18px;
}
.hold-modal__name { font-size: 1.4rem; margin: 0; }
.hold-modal__code { font-family: var(--mono); font-size: .82rem; color: var(--muted); margin-top: 4px; }
.hold-modal__price { text-align: right; }
.hm-price { font-family: var(--mono); font-size: 1.7rem; font-weight: 700; color: var(--text); }
.hm-pct { font-family: var(--mono); font-size: .9rem; font-weight: 600; margin-top: 2px; }
.hm-pct.up, .lu { color: #ff4d4f; }      /* 涨=A股红 */
.hm-pct.down, .ld { color: #1fd17a; }    /* 跌=A股绿 */
.hold-modal__stats {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
  margin-bottom: 18px;
}
.hm-stat {
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
  padding: 12px 14px;
}
.hm-stat__k { display: block; font-size: .76rem; color: var(--muted); margin-bottom: 6px; }
.hm-stat__v { font-family: var(--mono); font-size: 1.05rem; font-weight: 700; color: var(--text); }
.hm-stat__v.up { color: #ff4d4f; }
.hm-stat__v.down { color: #1fd17a; }
.hm-arrow { color: var(--muted); margin: 0 4px; }
.hold-modal__chartbox {
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  padding: 16px;
}
.hold-modal__charttitle {
  display: flex; justify-content: space-between; align-items: center;
  font-size: .85rem; color: var(--text); margin-bottom: 12px; gap: 10px;
}
.hm-legend { font-size: .76rem; color: var(--muted); }
.hm-legend .dot { display: inline-block; width: 10px; height: 4px; border-radius: 2px; margin: 0 4px 0 10px; vertical-align: middle; }
.dot--hist { background: #22d3ee; }
.dot--tgt { background: #a78bfa; }
.hm-thesis {
  background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--cyan);
  border-radius: 10px; padding: 14px 16px; margin-top: 16px;
}
.hm-thesis__k { display: block; font-size: .76rem; color: var(--muted); margin-bottom: 8px; letter-spacing: .03em; }
.hm-thesis__v { margin: 0; font-size: .9rem; line-height: 1.7; color: var(--text); text-wrap: pretty; }
.hold-modal__canvaswrap { height: 320px; position: relative; }
.hold-modal__note {
  font-size: .78rem; color: var(--muted); margin: 14px 2px 0; line-height: 1.6; text-wrap: pretty;
}
.hold-modal__note strong { color: #fb923c; font-weight: 600; }

/* ---------- 代表性交易 ---------- */
.trades-section { margin-bottom: 36px; }
.trades-title { font-size: 1.1rem; margin-bottom: 8px; color: var(--text); }
.trades-sub { font-size: .82rem; color: var(--muted); margin-bottom: 14px; font-family: var(--mono); }
.trades-list { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.trade-row {
  display: grid; grid-template-columns: 1fr 100px 180px 70px;
  align-items: center; padding: 12px 20px;
  border-bottom: 1px solid var(--border); font-size: .9rem;
  transition: background .15s;
}
.trade-row:last-child { border-bottom: none; }
.trade-row:hover { background: rgba(34,211,238,.04); }
.trade-name { font-weight: 600; }
.trade-date { font-family: var(--mono); color: var(--muted); font-size: .82rem; }
.trade-gain { font-family: var(--mono); font-weight: 600; font-size: .88rem; }
.trade-gain.up { color: var(--up); }
.trade-gain.down { color: var(--down); }
.trade-days { font-family: var(--mono); color: var(--muted); font-size: .82rem; text-align: right; }
.trade-row--header { background: rgba(34,211,238,.06); border-bottom: 2px solid var(--border); font-weight: 700; font-size: .82rem; color: var(--cyan); pointer-events: none; }
.trade-row--header:hover { background: rgba(34,211,238,.06); }

/* ---------- 图表 ---------- */
.charts { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.chart-box {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px 22px; min-height: 320px;
}
.chart-box--wide { grid-column: 1 / -1; }
.chart-box__title { font-size: 1rem; margin-bottom: 14px; color: var(--text); }
.chart-box canvas { max-height: 280px; }

/* ---------- 关于 ---------- */
.about { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: start; }
.about__bio { color: var(--muted); margin: 16px 0 24px; max-width: 560px; }
.about__contact { display: flex; flex-wrap: wrap; gap: 12px; }
.chip {
  border: 1px solid var(--border); border-radius: 999px; padding: 8px 16px;
  font-size: .9rem; color: var(--text); transition: border-color .2s, color .2s;
}
.chip:hover { border-color: var(--cyan); color: var(--cyan); }
.disclaimer {
  background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--purple);
  border-radius: 12px; padding: 18px 20px;
}
.disclaimer strong { color: var(--purple); }
.disclaimer p { color: var(--muted); font-size: .9rem; margin-top: 8px; }

/* ---------- 页脚 ---------- */
.footer { text-align: center; padding: 40px 24px; color: var(--muted); border-top: 1px solid var(--border); }
.footer__note { font-family: var(--mono); font-size: .82rem; margin-top: 6px; color: var(--cyan); }
.footer__stat { font-size: 13px; color: var(--muted); margin-top: 10px; letter-spacing: .3px; }
#visitorCount { color: var(--cyan); font-weight: 700; font-variant-numeric: tabular-nums; }

/* ---------- 回到顶部 ---------- */
.to-top {
  position: fixed; right: 22px; bottom: 22px; width: 46px; height: 46px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--cyan); color: var(--cyan);
  font-size: 1.3rem; cursor: pointer; opacity: 0; pointer-events: none;
  transition: opacity .3s, transform .2s; z-index: 40;
}
.to-top.show { opacity: 1; pointer-events: auto; }
.to-top:hover { transform: translateY(-3px); }

/* ---------- 入场动画 ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- 指数行情条 ---------- */
.ticker {
  display: flex; align-items: center; gap: 14px;
  background: var(--bg-2); border-bottom: 1px solid var(--border);
  padding: 9px 24px; overflow: hidden;
}
.ticker__hint {
  font-family: var(--mono); font-size: .7rem; color: var(--muted);
  white-space: nowrap; flex: none; letter-spacing: .5px;
}
.ticker__track {
  display: flex; gap: 30px; white-space: nowrap;
  animation: scroll-x 30s linear infinite;
}
.ticker:hover .ticker__track { animation-play-state: paused; }
.tk { font-family: var(--mono); font-size: .85rem; color: var(--text); }
.tk i { font-style: normal; margin-left: 6px; }
.tk i.up { color: var(--up); }
.tk i.down { color: var(--down); }
@keyframes scroll-x { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- 市场观察 / 研究笔记 ---------- */
.disclaimer-banner {
  background: rgba(139, 92, 246, .08); border: 1px solid rgba(139, 92, 246, .3);
  border-left: 3px solid var(--purple); border-radius: 12px;
  padding: 14px 18px; color: var(--muted); font-size: .88rem; margin-bottom: 30px;
}
.disclaimer-banner b { color: var(--purple); }
.notes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.note {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; transition: transform .2s, border-color .2s;
  display: flex; flex-direction: column;
}
.note:hover { transform: translateY(-4px); border-color: var(--cyan); }
.note__meta { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.note__date { font-family: var(--mono); font-size: .76rem; color: var(--muted); }
.note__title { font-size: 1.08rem; margin-bottom: 10px; line-height: 1.4; }
.note__excerpt { color: var(--muted); font-size: .94rem; flex: 1; }
.note__foot { margin-top: 14px; font-family: var(--mono); font-size: .8rem; color: var(--cyan); }
.tag {
  font-family: var(--mono); font-size: .72rem; padding: 2px 11px; border-radius: 999px;
  border: 1px solid var(--border); letter-spacing: .5px;
}
.tag--macro { color: var(--cyan); border-color: rgba(34, 211, 238, .4); background: var(--cyan-soft); }
.tag--sector { color: var(--purple); border-color: rgba(139, 92, 246, .4); background: rgba(139, 92, 246, .12); }
.tag--tech { color: var(--down); border-color: rgba(31, 209, 122, .4); background: rgba(31, 209, 122, .1); }
.tag--hold { color: #fb923c; border-color: rgba(251, 146, 60, .4); background: rgba(251, 146, 60, .12); }

/* ---------- 操作记录 / 时间轴 ---------- */
.ops {
  position: relative; margin-top: 30px; padding-left: 24px;
}
.ops::before {
  content: ""; position: absolute; left: 8px; top: 8px; bottom: 8px; width: 2px;
  background: linear-gradient(var(--border), transparent);
}
.ops__row { position: relative; padding: 0 0 26px 20px; }
.ops__row:last-child { padding-bottom: 0; }
.ops__row::before {
  content: ""; position: absolute; left: -21px; top: 6px; width: 13px; height: 13px;
  border-radius: 50%; background: var(--cyan); border: 2px solid var(--bg-2);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, .18);
}
.ops__date {
  font-family: var(--mono); font-size: .84rem; color: var(--cyan);
  font-weight: 600; margin-bottom: 12px; letter-spacing: .5px;
}
.ops__body { display: flex; flex-direction: column; gap: 9px; }
.ops__item {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; padding: 11px 15px;
}
.ops__act {
  font-family: var(--mono); font-size: .72rem; padding: 3px 11px;
  border-radius: 999px; border: 1px solid var(--border); letter-spacing: .5px; white-space: nowrap;
}
.ops__act--buy { color: var(--cyan); border-color: rgba(34, 211, 238, .45); background: var(--cyan-soft); }
.ops__act--sell { color: #fb923c; border-color: rgba(251, 146, 60, .45); background: rgba(251, 146, 60, .12); }
.ops__name { font-weight: 600; }
.ops__code { font-style: normal; font-family: var(--mono); font-size: .74rem; color: var(--muted); margin-left: 5px; }
.ops__price { font-family: var(--mono); color: var(--text); margin-left: auto; font-size: .92rem; }
.ops__tag {
  font-size: .72rem; color: var(--muted); border: 1px dashed var(--border);
  border-radius: 6px; padding: 2px 9px;
}
.ops__hint { margin-top: 16px; font-size: .82rem; color: var(--muted); }
.ops__hint code {
  font-family: var(--mono); background: var(--surface); border: 1px solid var(--border);
  border-radius: 5px; padding: 1px 6px; color: var(--cyan);
}
.ops__empty { color: var(--muted); font-size: .9rem; }

/* ---------- 关注股票 & 操作计划 ---------- */
.watch-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
.watch-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  padding: 18px 20px; transition: transform .2s, border-color .2s, box-shadow .2s;
}
.watch-card:hover {
  transform: translateY(-3px); border-color: var(--cyan);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
}
.watch-card__top {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px;
}
.watch-name { font-weight: 700; font-size: 1.05rem; }
.watch-code { font-style: normal; font-family: var(--mono); font-size: .74rem; color: var(--muted); margin-left: 6px; }
.watch-badge {
  font-size: .72rem; font-weight: 600; padding: 3px 10px; border-radius: 999px;
  border: 1px solid transparent; white-space: nowrap;
}
.watch-badge--plan { color: var(--cyan); border-color: rgba(34, 211, 238, .45); background: var(--cyan-soft); }
.watch-badge--batch { color: #a78bfa; border-color: rgba(167, 139, 250, .45); background: rgba(167, 139, 250, .12); }
.watch-badge--watch { color: var(--muted); border-color: var(--border); background: rgba(255, 255, 255, .04); }
.watch-plan { font-size: .96rem; line-height: 1.5; color: var(--text); margin-bottom: 12px; }
.watch-trigger {
  font-size: .85rem; color: var(--muted); padding: 8px 12px; border-radius: 10px;
  background: rgba(255, 255, 255, .03); border: 1px solid var(--border);
}
.watch-trigger b { color: #fb923c; font-size: 1.1rem; font-family: var(--mono); margin: 0 2px; }
.watch-unit { font-family: var(--mono); font-size: .76rem; }
.watch-note { font-size: .8rem; color: var(--muted); margin-top: 10px; line-height: 1.5; }
.watch__hint { margin-top: 20px; font-size: .82rem; color: var(--muted); }
.watch__hint code {
  font-family: var(--mono); background: var(--surface); border: 1px solid var(--border);
  border-radius: 5px; padding: 1px 6px; color: var(--cyan);
}

/* ---------- 响应式 ---------- */
/* 平板横屏 / 小笔记本 */
@media (max-width: 1080px) {
  .holdings-grid { grid-template-columns: repeat(2, 1fr); }
  .kpi { grid-template-columns: repeat(2, 1fr); }
  .watch-grid { grid-template-columns: repeat(2, 1fr); }
}
/* 平板竖屏 */
@media (max-width: 860px) {
  .nav__inner { flex-wrap: wrap; padding: 10px 16px; }
  .nav__logo-sub { display: none; }
  .nav__toggle { display: none; }
  .nav__links {
    display: flex; flex-direction: row; flex-wrap: nowrap; gap: 0;
    width: 100%; margin-top: 6px;
    overflow-x: auto; overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    background: transparent; border-bottom: none;
    scrollbar-width: none; -ms-overflow-style: none;
  }
  .nav__links::-webkit-scrollbar { display: none; }
  .nav__links a {
    white-space: nowrap; flex: 0 0 auto;
    padding: 7px 14px; border-bottom: none;
    color: var(--muted); font-size: .9rem;
  }
  .nav__links a::after,
  .nav__links a.active::after { display: none; }
  .nav__links a.active { color: var(--cyan); background: rgba(34,211,238,.1); border-radius: 999px; }
  .hero__stats { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .kpi { grid-template-columns: repeat(2, 1fr); }
  .charts { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; }
  .notes { grid-template-columns: 1fr; }
  .holdings-grid { grid-template-columns: repeat(2, 1fr); }
  .trade-row { grid-template-columns: 1fr 90px 140px 60px; font-size: .82rem; padding: 10px 14px; }
}
/* 手机 */
@media (max-width: 600px) {
  .section { padding: 56px 16px; }
  .hero { padding: 108px 16px 48px; }
  .hero__title { font-size: clamp(1.8rem, 8vw, 2.6rem); }
  .hero__cta { gap: 10px; }
  .hero__cta .btn { flex: 1 1 44%; text-align: center; padding: 12px 14px; font-size: .92rem; }
  .hero__cta .btn--primary { flex-basis: 100%; }
  .kpi { gap: 10px; }
  .kpi__num { font-size: 1.5rem; }
  .kpi__item { padding: 16px 10px; }
  .holdings-grid { grid-template-columns: 1fr; }
  .watch-grid { grid-template-columns: 1fr; }
  .trade-row {
    grid-template-columns: 1fr auto;
    grid-template-areas: "name gain" "date days";
    row-gap: 4px; padding: 12px 14px; font-size: .85rem;
  }
  .trade-name { grid-area: name; }
  .trade-gain { grid-area: gain; text-align: right; }
  .trade-date { grid-area: date; font-size: .76rem; }
  .trade-days { grid-area: days; text-align: right; font-size: .76rem; }
  .chart-box { padding: 16px; min-height: 280px; }
  .hold-modal__stats { grid-template-columns: 1fr; }
  .goal-card { padding: 18px 16px; }
}
@media (max-width: 480px) {
  .hero__stats { grid-template-columns: 1fr 1fr; gap: 12px; }
  .hold-modal { padding: 8px; }
  .hold-modal__panel { padding: 20px 16px; }
  .hold-modal__head { flex-direction: column; align-items: flex-start; }
  .hold-modal__price { text-align: left; }
  .hold-modal__canvaswrap { height: 260px; }
  .note { padding: 18px; }
  .about__contact { flex-direction: column; align-items: stretch; }
  .chip { text-align: center; }
}

/* ---------- 量化交易卡片 ---------- */
.quant-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.quant-card {
  position: relative;
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 24px;
  display: flex; flex-direction: column;
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.quant-card:hover { transform: translateY(-6px); border-color: var(--cyan); box-shadow: 0 16px 40px rgba(34,211,238,.12); }
.quant-card--done { border-color: rgba(139,92,246,.35); }
.quant-card--done:hover { border-color: var(--purple); box-shadow: 0 16px 40px rgba(139,92,246,.14); }
.quant-card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.quant-card__head h3 { font-size: 1.2rem; }
.quant-badge { font-size: .74rem; font-weight: 600; padding: 4px 12px; border-radius: 999px; letter-spacing: .5px; white-space: nowrap; }
.quant-badge--testing { color: #fbbf24; border: 1px solid rgba(251,191,36,.45); background: rgba(251,191,36,.12); }
.quant-badge--done { color: var(--cyan); border: 1px solid rgba(34,211,238,.45); background: var(--cyan-soft); }
.quant-card__desc { color: var(--muted); font-size: .94rem; margin-bottom: 16px; }
.quant-card__list { list-style: none; display: flex; flex-direction: column; gap: 9px; margin-bottom: 18px; padding: 0; }
.quant-card__list li { position: relative; padding-left: 20px; font-size: .9rem; color: var(--text); }
.quant-card__list li::before { content: "▹"; position: absolute; left: 0; color: var(--cyan); }
.quant-card--done .quant-card__list li::before { color: var(--purple); }
.quant-card__foot { margin-top: auto; }
.quant-status { font-family: var(--mono); font-size: .8rem; color: #fbbf24; }
.quant-link { align-self: flex-start; padding: 9px 20px; font-size: .92rem; }

/* ---------- 量化笔记文章页 ---------- */
.doc { max-width: 860px; margin: 0 auto; padding: 110px 24px 40px; }
.doc__head { margin-bottom: 26px; border-bottom: 1px solid var(--border); padding-bottom: 22px; }
.doc__kicker { font-family: var(--mono); color: var(--purple); letter-spacing: 2px; font-size: .8rem; }
.doc__title { font-size: clamp(1.5rem, 4vw, 2.4rem); line-height: 1.32; margin: 12px 0 14px; font-weight: 800; }
.doc__meta { color: var(--muted); font-size: .85rem; font-family: var(--mono); }
.doc__keywords { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.doc__kw { font-size: .74rem; color: var(--cyan); border: 1px solid rgba(34,211,238,.35); background: var(--cyan-soft); border-radius: 999px; padding: 2px 10px; }
.doc__body { font-size: 1rem; line-height: 1.85; }
.doc__body h2 { font-size: 1.4rem; margin: 38px 0 16px; padding-left: 12px; border-left: 3px solid var(--cyan); }
.doc__body h3 { font-size: 1.12rem; margin: 26px 0 12px; color: var(--text); }
.doc__body p { margin: 14px 0; color: var(--muted); }
.doc__body strong { color: var(--text); font-weight: 600; }
.doc__body ul, .doc__body ol { margin: 14px 0; padding-left: 24px; color: var(--muted); }
.doc__body li { margin: 8px 0; }
.doc__body blockquote { margin: 18px 0; padding: 14px 18px; background: rgba(139,92,246,.08); border-left: 3px solid var(--purple); border-radius: 10px; color: var(--muted); font-size: .94rem; }
.doc__body blockquote p { margin: 4px 0; }
.doc__body pre { margin: 18px 0; padding: 16px 18px; background: #0a1120; border: 1px solid var(--border); border-radius: 12px; overflow-x: auto; }
.doc__body pre code { background: none; color: #cfe3f5; padding: 0; font-size: .86rem; line-height: 1.6; white-space: pre; }
.doc__body code { font-family: var(--mono); }
.doc__body table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: .9rem; }
.doc__body th, .doc__body td { border: 1px solid var(--border); padding: 10px 12px; text-align: left; vertical-align: top; }
.doc__body th { background: var(--surface); color: var(--cyan); font-family: var(--mono); font-size: .82rem; }
.doc__body td { color: var(--muted); }
.doc__figure { margin: 20px 0; border: 1px dashed var(--border); border-radius: 12px; padding: 30px 16px; text-align: center; color: var(--muted); font-size: .85rem; background: rgba(255,255,255,.02); }
.doc__figure .ph { font-size: 1.8rem; opacity: .4; display: block; margin-bottom: 8px; }
.doc__note { margin-top: 30px; font-size: .82rem; color: var(--muted); border-top: 1px solid var(--border); padding-top: 16px; text-align: center; }
.doc__back { display: inline-block; margin-bottom: 18px; color: var(--cyan); font-size: .9rem; }

/* ---------- 量化板块：左右两模块 ---------- */
.quant-split { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
.quant-module { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 24px; display: flex; flex-direction: column; transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.quant-module--stock { border-color: rgba(251,191,36,.28); cursor: pointer; }
.quant-module--stock:hover { border-color: #fbbf24; box-shadow: 0 16px 40px rgba(251,191,36,.10); }
.quant-module--stock:focus-visible { outline: 2px solid #fbbf24; outline-offset: 4px; }
.quant-module--future { border-color: rgba(34,211,238,.30); }
.quant-module--future:hover { border-color: var(--cyan); box-shadow: 0 16px 40px rgba(34,211,238,.12); }
.quant-module__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.quant-module__head h3 { font-size: 1.25rem; }
.quant-module__head--clickable { cursor: pointer; }
.quant-module__head--clickable:focus-visible { outline: 2px solid var(--cyan); outline-offset: 4px; border-radius: 8px; }
.quant-module__desc { color: var(--muted); font-size: .94rem; margin-bottom: 16px; }
.quant-module__list { list-style: none; display: flex; flex-direction: column; gap: 9px; margin: 0 0 18px; padding: 0; }
.quant-module__list li { position: relative; padding-left: 20px; font-size: .9rem; color: var(--text); }
.quant-module__list li::before { content: "▹"; position: absolute; left: 0; color: var(--cyan); }
.quant-module--stock .quant-module__list li::before { color: #fbbf24; }
.quant-module__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; }
.quant-status { font-family: var(--mono); font-size: .8rem; color: #fbbf24; }
.quant-status--done { color: var(--cyan); }
.quant-hint { font-size: .8rem; color: var(--muted); opacity: .85; }

/* 内联日记 */
.quant-diary { margin-top: 18px; border: 1px solid rgba(34,211,238,.25); border-radius: 14px; overflow: hidden; background: var(--bg); }
.quant-diary[hidden] { display: none; }
.quant-diary__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; background: rgba(34,211,238,.08); border-bottom: 1px solid rgba(34,211,238,.2); font-size: .9rem; color: var(--text); }
.quant-diary__close { background: none; border: none; color: var(--muted); font-size: 1.5rem; line-height: 1; cursor: pointer; padding: 0 6px; }
.quant-diary__close:hover { color: var(--cyan); }
.quant-diary__body { padding: 18px 20px; max-height: 60vh; overflow-y: auto; }
.quant-diary__full { display: inline-block; padding: 12px 16px; font-size: .88rem; color: var(--cyan); text-decoration: none; }
.quant-diary__full:hover { text-decoration: underline; }

/* 轻提示 toast */
.toast { position: fixed; left: 50%; bottom: 38px; transform: translateX(-50%) translateY(20px); background: #0b1220; color: #e6f0f5; border: 1px solid var(--cyan); border-radius: 12px; padding: 12px 22px; font-size: .92rem; box-shadow: 0 12px 36px rgba(0,0,0,.4); opacity: 0; pointer-events: none; transition: opacity .3s ease, transform .3s ease; z-index: 999; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- 量化响应式 ---------- */
@media (max-width: 860px) {
  .quant-split { grid-template-columns: 1fr; }
  .quant-diary__body { max-height: none; }
  .doc { padding: 96px 16px 32px; }
}

/* ---------- 全站访问密码门 ---------- */
.gate-lock { overflow: hidden; height: 100%; }
.gate-lock body { visibility: hidden; }
.gate {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(1200px 600px at 50% -10%, rgba(34,211,238,.12), transparent 60%), #070a0f;
  visibility: visible;
  font-family: var(--mono, ui-monospace, monospace);
}
.gate__card {
  width: min(92vw, 380px);
  background: rgba(15,20,28,.94);
  border: 1px solid rgba(34,211,238,.25);
  border-radius: 16px; padding: 32px 26px;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
  text-align: center; backdrop-filter: blur(8px);
}
.gate__logo { font-size: .76rem; letter-spacing: .12em; color: var(--cyan, #22d3ee); margin-bottom: 18px; }
.gate__logo span { color: var(--muted, #6b7785); }
.gate__title { font-size: 1.4rem; color: #e6edf3; margin: 0 0 6px; }
.gate__sub { font-size: .85rem; color: var(--muted, #9aa7b2); margin: 0 0 20px; }
.gate__input {
  width: 100%; box-sizing: border-box; padding: 12px 14px; margin-bottom: 14px;
  background: #0b0f15; border: 1px solid rgba(255,255,255,.12); border-radius: 10px;
  color: #e6edf3; font-size: 1rem; text-align: center; letter-spacing: .12em;
}
.gate__input:focus { outline: none; border-color: var(--cyan, #22d3ee); }
.gate__btn {
  width: 100%; padding: 12px; border: none; border-radius: 10px; cursor: pointer;
  background: linear-gradient(135deg, #22d3ee, #0ea5b7); color: #04121a; font-weight: 700; font-size: 1rem;
}
.gate__btn:hover { filter: brightness(1.08); }
.gate__err { color: #ff6b6b; font-size: .8rem; min-height: 1em; margin: 10px 0 0; }
.gate__hint { font-size: .72rem; color: var(--muted, #6b7785); margin: 16px 0 0; line-height: 1.5; }
.gate--out { opacity: 0; transition: opacity .35s ease; }
.gate--shake { animation: gateShake .35s; }
@keyframes gateShake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-8px); }
  40%, 80% { transform: translateX(8px); }
}
