/* ==========================================================================
   Lens — 视觉系统
   Apple 官网的感知目标：极简、大留白、克制的高光、物理动效。
   实现上刻意不用全屏模糊：全站只有导航栏一块玻璃，其余全部不透明。
   ========================================================================== */

:root {
  /* 中性色 */
  --ink: #1d1d1f;
  --ink-2: #6e6e73;
  --ink-3: #86868b;
  --paper: #fbfbfd;
  --paper-2: #f5f5f7;
  --line: rgba(0, 0, 0, 0.08);
  --line-dark: rgba(255, 255, 255, 0.12);

  /* 强调色 */
  --blue: #0071e3;
  --blue-hover: #0077ed;

  /* 涨跌：遵循 A 股习惯 —— 涨/买入=红，跌/卖出=绿 */
  --up: #d92b2b;
  --up-soft: rgba(217, 43, 43, 0.1);
  --down: #0f9d58;
  --down-soft: rgba(15, 157, 88, 0.1);

  /* 暗色区块 */
  --black: #000;
  --black-2: #0a0a0c;

  /* 圆角：同心推导，子元素 = 父元素 − 内边距 */
  --r-xl: 28px;
  --r-lg: 22px;
  --r-md: 16px;
  --r-sm: 11px;

  /* 弹簧：阻尼比约 0.72 的轻微过冲，不是 ease-out 假装的 */
  --spring: linear(
    0, 0.008 1.1%, 0.031 2.4%, 0.129 5%, 0.257 7.7%, 0.518 13.1%,
    0.752 18.4%, 0.906 22.8%, 1.014 27.5%, 1.072 32%, 1.096 36.4%,
    1.09 40.9%, 1.066 45.6%, 1.033 51%, 1.011 56.8%, 1.001 63.3%,
    0.998 72.4%, 1 100%
  );
  --spring-dur: 0.72s;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "SFMono-Regular", Menlo, Consolas, monospace;
}

/* --------------------------------------------------------------------------
   基础
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* 不设 scroll-padding：让锚点区块的顶边贴到视口 0。
     区块自身顶部内边距 ≥76px，导航（48px）盖的是留白；
     若设成 48px，玻璃背后会露出上一个区块的 48px，整条导航被染成灰色。 */
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
button { font-family: inherit; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.wrap {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 40px);
}
.wrap.narrow { max-width: 760px; }

.muted { color: var(--ink-3); font-size: 13px; }

/* --------------------------------------------------------------------------
   全局导航 —— 全站唯一玻璃层
   面积小、数量唯一、位置固定，玻璃成本被关在笼子里。
   -------------------------------------------------------------------------- */
.gnav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(22, 22, 23, 0.72);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  /* 明暗区块交替，导航跟着反色；只过渡颜色，不动布局 */
  transition: background-color 0.28s ease, border-color 0.28s ease;
}

/* 背后是浅色区块时，玻璃换成浅色，文字转深 —— 否则会糊成一片灰 */
.gnav[data-tone="light"] {
  background: rgba(251, 251, 253, 0.78);
  border-bottom-color: rgba(0, 0, 0, 0.08);
}
.gnav[data-tone="light"] .brand { color: var(--ink); }
.gnav[data-tone="light"] .gnav-links a { color: rgba(29, 29, 31, 0.66); }
.gnav[data-tone="light"] .gnav-links a:hover { color: var(--ink); }

.gnav-inner {
  max-width: 1080px;
  margin: 0 auto;
  height: 48px;
  padding: 0 clamp(16px, 4vw, 40px);
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #f5f5f7;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.brand-mark { width: 17px; height: 17px; opacity: 0.92; }

.gnav-links {
  display: flex;
  gap: 26px;
  margin-left: auto;
}
.gnav-links a {
  color: rgba(245, 245, 247, 0.72);
  text-decoration: none;
  font-size: 12.5px;
  letter-spacing: 0.01em;
  transition: color 0.2s ease;
}
.gnav-links a:hover { color: #f5f5f7; }

.gnav-cta {
  border: 0;
  border-radius: 980px;
  padding: 6px 15px;
  background: var(--blue);
  color: #fff;
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.gnav-cta:hover { background: var(--blue-hover); }

/* --------------------------------------------------------------------------
   首屏
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  background: var(--black);
  color: #f5f5f7;
  padding: clamp(104px, 15vw, 168px) 0 clamp(64px, 9vw, 104px);
  overflow: hidden;
  isolation: isolate;
}

/* 一道极淡的径向光，营造「屏幕发光」而不是「贴一张图」 */
.hero-glow {
  position: absolute;
  top: -38%;
  left: 50%;
  width: min(1100px, 130vw);
  aspect-ratio: 1;
  transform: translateX(-50%);
  background: radial-gradient(
    circle at center,
    rgba(0, 113, 227, 0.22) 0%,
    rgba(0, 113, 227, 0.08) 34%,
    rgba(0, 0, 0, 0) 66%
  );
  pointer-events: none;
  z-index: -1;
}

.hero-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 40px);
  text-align: center;
}

.eyebrow {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
}
.eyebrow-light { color: #2997ff; }

.hero-title {
  margin: 0;
  font-size: clamp(46px, 8.6vw, 92px);
  line-height: 1.03;
  font-weight: 600;
  letter-spacing: -0.03em;
  background: linear-gradient(180deg, #fff 30%, rgba(255, 255, 255, 0.72) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  margin: 22px auto 0;
  max-width: 620px;
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.55;
  color: rgba(245, 245, 247, 0.66);
  letter-spacing: -0.01em;
}

.br-mobile { display: none; }

/* 搜索 */
.search {
  margin: clamp(32px, 5vw, 44px) auto 0;
  max-width: 620px;
  display: flex;
  gap: 8px;
  padding: 6px;
  border-radius: 980px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition: border-color 0.25s ease, background-color 0.25s ease;
}
.search:focus-within {
  border-color: rgba(41, 151, 255, 0.7);
  background: rgba(255, 255, 255, 0.12);
}

.search-input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: #f5f5f7;
  font-size: 17px;
  padding: 12px 8px 12px 22px;
  letter-spacing: 0.01em;
  outline: none;
}
.search-input::placeholder { color: rgba(245, 245, 247, 0.42); }

.search-btn {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  border-radius: 980px;
  padding: 12px 22px;
  background: var(--blue);
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s var(--spring);
}
.search-btn:hover { background: var(--blue-hover); }
.search-btn:active { transform: scale(0.97); }
.search-btn:disabled { opacity: 0.55; cursor: default; }
.search-btn-icon { width: 15px; height: 15px; }

/* 快捷标的 */
.chips {
  margin: 18px auto 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.chip {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: transparent;
  color: rgba(245, 245, 247, 0.78);
  border-radius: 980px;
  padding: 7px 15px;
  font-size: 13px;
  font-family: var(--mono);
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.chip:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}

/* 报价条 */
.ticker-strip {
  margin: clamp(36px, 6vw, 56px) auto 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(126px, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.tick {
  background: rgba(10, 10, 12, 0.6);
  padding: 13px 14px;
  text-align: left;
  cursor: pointer;
  border: 0;
  transition: background-color 0.2s ease;
}
.tick:hover { background: rgba(255, 255, 255, 0.06); }
.tick-code {
  font-family: var(--mono);
  font-size: 12px;
  color: rgba(245, 245, 247, 0.55);
  letter-spacing: 0.04em;
}
.tick-price {
  margin-top: 3px;
  font-size: 17px;
  font-weight: 500;
  color: #f5f5f7;
  font-variant-numeric: tabular-nums;
}
.tick-chg {
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.tick-chg.up { color: #ff6961; }
.tick-chg.down { color: #4cd68b; }
.tick-chg.flat { color: var(--ink-3); }

/* --------------------------------------------------------------------------
   状态区
   -------------------------------------------------------------------------- */
.state-wrap {
  background: var(--paper);
  padding: 56px 0;
}
.state {
  max-width: 720px;
  margin: 0 auto;
  padding: 22px 26px;
  border-radius: var(--r-md);
  background: #fff;
  border: 1px solid var(--line);
  font-size: 15px;
  color: var(--ink-2);
  text-align: center;
}
.state.error {
  border-color: rgba(217, 43, 43, 0.28);
  background: var(--up-soft);
  color: #8c1a1a;
}
.state.loading::after {
  content: "";
  display: inline-block;
  width: 13px; height: 13px;
  margin-left: 9px;
  vertical-align: -2px;
  border: 2px solid rgba(0, 0, 0, 0.15);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* --------------------------------------------------------------------------
   区块骨架
   -------------------------------------------------------------------------- */
.section { padding: clamp(76px, 11vw, 132px) 0; }
.section-light  { background: var(--paper); }
.section-light2 { background: var(--paper-2); }
.section-dark   { background: var(--black); color: #f5f5f7; }

.h2 {
  margin: 0 0 20px;
  font-size: clamp(34px, 5.4vw, 60px);
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: -0.028em;
}
.h2-sm { font-size: clamp(28px, 4vw, 42px); }

.lead {
  margin: 0 0 clamp(36px, 5vw, 52px);
  max-width: 640px;
  font-size: clamp(16px, 1.9vw, 19px);
  line-height: 1.6;
  color: var(--ink-2);
  letter-spacing: -0.005em;
}
.section-dark .lead { color: rgba(245, 245, 247, 0.62); }

.fine {
  margin: 20px 0 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-3);
}
.section-dark .fine { color: rgba(245, 245, 247, 0.45); }

/* 入场：只动 transform / opacity */
.reveal {
  opacity: 0;
  transform: translate3d(0, 22px, 0);
  transition:
    opacity var(--spring-dur) var(--spring),
    transform var(--spring-dur) var(--spring);
}
.reveal.in { opacity: 1; transform: translate3d(0, 0, 0); }

/* --------------------------------------------------------------------------
   概览
   -------------------------------------------------------------------------- */
.ov-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
}
.ov-name {
  margin: 0;
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 600;
  letter-spacing: -0.025em;
}
.ov-meta {
  margin: 6px 0 0;
  font-size: 13.5px;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}
.ov-price { text-align: right; }
.ov-last {
  font-size: clamp(38px, 6vw, 54px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.ov-chg {
  margin-top: 7px;
  font-size: 15px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.up { color: var(--up); }
.down { color: var(--down); }
.flat { color: var(--ink-3); }

/* --------------------------------------------------------------------------
   全天盘：盘前 / 盘中 / 盘后
   -------------------------------------------------------------------------- */
.sessions {
  margin-top: 30px;
  padding: 18px 20px 16px;
  border-radius: var(--r-lg);
  background: #fff;
  border: 1px solid var(--line);
}
.sess-head {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.sess-badge {
  padding: 3px 10px;
  border-radius: 980px;
  font-size: 11.5px;
  letter-spacing: 0.02em;
  background: rgba(0, 0, 0, 0.06);
  color: var(--ink-2);
  white-space: nowrap;
}
/* 盘中用蓝色点出"正在交易"，其余时段保持中性 */
.sess-badge[data-session="market"] {
  background: rgba(0, 113, 227, 0.1);
  color: #0062c4;
}
.sess-anchor {
  font-size: 13px;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}
.sess-anchor b {
  color: var(--ink);
  font-weight: 600;
}
.sess-src {
  margin-left: auto;
  font-size: 11.5px;
  color: var(--ink-3);
  white-space: nowrap;
}
.sess-body {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 14px;
}
.sess-seg {
  padding: 12px 14px;
  border-radius: var(--r-md);
  background: var(--paper);
  border: 1px solid transparent;
}
/* 当前所处时段：加一道边框，不靠颜色抢注意力 */
.sess-seg.active {
  border-color: rgba(0, 113, 227, 0.45);
  background: rgba(0, 113, 227, 0.045);
}
.sess-seg-label {
  font-size: 11.5px;
  color: var(--ink-3);
  letter-spacing: 0.01em;
}
.sess-seg-price {
  margin-top: 6px;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.015em;
  font-variant-numeric: tabular-nums;
}
.sess-seg-price.muted { color: var(--ink-3); font-size: 15px; font-weight: 400; }
.sess-seg-chg {
  margin-top: 2px;
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
}
.sess-seg-vol {
  margin-top: 4px;
  font-size: 11px;
  color: var(--ink-3);
}
.sess-note {
  margin: 12px 0 0;
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--ink-3);
}
.sess-empty {
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--ink-3);
}

.kpis {
  margin-top: 32px;
  display: grid;
  /* 6 张卡固定 3 列 → 3×2，避免 auto-fit 出现 5+1 的孤儿卡 */
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.kpi {
  padding: 20px 20px 18px;
  border-radius: var(--r-lg);
  background: #fff;
  border: 1px solid var(--line);
}
.kpi-label {
  font-size: 12.5px;
  color: var(--ink-3);
  letter-spacing: 0.01em;
}
.kpi-value {
  margin-top: 8px;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.kpi-sub {
  margin-top: 5px;
  font-size: 12px;
  color: var(--ink-3);
}

.notice {
  margin-top: 22px;
  padding: 16px 20px;
  border-radius: var(--r-md);
  background: #fff8e6;
  border: 1px solid rgba(180, 130, 0, 0.24);
  font-size: 13.5px;
  line-height: 1.6;
  color: #6b4e00;
}
.notice strong { display: block; margin-bottom: 4px; font-size: 13px; }

/* --------------------------------------------------------------------------
   买卖点
   -------------------------------------------------------------------------- */
.zones-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.zone-col {
  padding: 26px 24px 22px;
  border-radius: var(--r-xl);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line-dark);
}
.zone-title {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: rgba(245, 245, 247, 0.9);
}
/* 价格不是按高低排的，标一下免得读者以为乱序 */
.zone-hint {
  margin-left: auto;
  font-size: 11px;
  font-weight: 400;
  color: rgba(245, 245, 247, 0.38);
  letter-spacing: 0.02em;
}
.dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.dot-buy { background: var(--up); box-shadow: 0 0 0 4px rgba(217, 43, 43, 0.18); }
.dot-sell { background: var(--down); box-shadow: 0 0 0 4px rgba(15, 157, 88, 0.18); }

.zone-list { display: flex; flex-direction: column; gap: 11px; }

.zone {
  padding: 16px 17px;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.07);
  transition: background-color 0.22s ease, border-color 0.22s ease;
}
.zone:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
}
.zone-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.zone-price {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.zone-buy .zone-price { color: #ff6961; }
.zone-sell .zone-price { color: #4cd68b; }
.zone-band {
  font-size: 12px;
  color: rgba(245, 245, 247, 0.45);
  font-variant-numeric: tabular-nums;
}
.zone-conf {
  font-size: 12px;
  padding: 3px 9px;
  border-radius: 980px;
  background: rgba(255, 255, 255, 0.09);
  color: rgba(245, 245, 247, 0.8);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.zone-meta {
  margin-top: 8px;
  font-size: 12.5px;
  line-height: 1.55;
  color: rgba(245, 245, 247, 0.5);
}
.zone-dist { color: rgba(245, 245, 247, 0.72); font-variant-numeric: tabular-nums; }

/* 价格阶梯 */
.ladder-card {
  margin-top: 18px;
  padding: 24px 24px 20px;
  border-radius: var(--r-xl);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line-dark);
}
.ladder-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 18px;
  font-size: 13px;
  color: rgba(245, 245, 247, 0.75);
}
.ladder { display: flex; flex-direction: column; gap: 2px; }

.ladder-row {
  display: grid;
  grid-template-columns: 84px 1fr 74px;
  align-items: center;
  gap: 12px;
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
}
.ladder-price { color: rgba(245, 245, 247, 0.62); text-align: right; }
.ladder-bar-track {
  position: relative;
  height: 22px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  overflow: hidden;
}
.ladder-bar {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: 6px;
  transform-origin: left center;
}
.ladder-bar.buy { background: rgba(217, 43, 43, 0.55); }
.ladder-bar.sell { background: rgba(15, 157, 88, 0.55); }
.ladder-bar.ma { background: rgba(41, 151, 255, 0.42); }
.ladder-bar.current { background: rgba(255, 255, 255, 0.3); }

/* 当前价参考线：每行 1px，行距 2px 叠成一根近似连续的标尺 */
.ladder-guide {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(255, 255, 255, 0.6);
  z-index: 1;
}
.ladder-tag { color: rgba(245, 245, 247, 0.42); font-size: 11.5px; }

.ladder-row.current .ladder-price { color: #fff; font-weight: 600; }
.ladder-row.current .ladder-bar-track {
  background: rgba(255, 255, 255, 0.16);
  outline: 1px solid rgba(255, 255, 255, 0.5);
}

/* --------------------------------------------------------------------------
   位置
   -------------------------------------------------------------------------- */
.pos-card {
  padding: 34px clamp(20px, 4vw, 34px) 28px;
  border-radius: var(--r-xl);
  background: #fff;
  border: 1px solid var(--line);
}
.pos-scale { position: relative; padding-top: 8px; }

.pos-track {
  position: relative;
  height: 8px;
  border-radius: 980px;
  background: linear-gradient(90deg, #cfe8d9 0%, #ececef 50%, #f6d6d6 100%);
}
.pos-marker {
  position: absolute;
  top: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--blue);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
  /* 不给 left 加过渡：left 变化每帧都要重新布局。
     位置一次性算好，进场只用 opacity，代价接近零。 */
  transition: opacity 0.32s ease;
}
.pos-ticks {
  display: flex;
  justify-content: space-between;
  margin-top: 14px;
  font-size: 12px;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}
.pos-mid-label { text-align: center; margin-top: 4px; }

.pos-readout {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 18px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.ro-label { font-size: 12.5px; color: var(--ink-3); }
.ro-value {
  margin-top: 5px;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.015em;
  font-variant-numeric: tabular-nums;
}

.pos-grid {
  margin-top: 16px;
  display: grid;
  /* 6 张卡固定 3 列，和概览区保持同一节奏，避免 4+2 的孤儿行 */
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.pos-item {
  padding: 20px 20px 18px;
  border-radius: var(--r-lg);
  background: #fff;
  border: 1px solid var(--line);
}
.pos-item .ro-value {
  font-size: 22px;
  /* 区间类数值较长，宁可变小也不要折行把卡片撑高 */
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* --------------------------------------------------------------------------
   图表
   -------------------------------------------------------------------------- */
.chart-card {
  padding: 24px clamp(16px, 3vw, 26px) 20px;
  border-radius: var(--r-xl);
  background: #fff;
  border: 1px solid var(--line);
}
.chart-card-dark {
  background: rgba(255, 255, 255, 0.045);
  border-color: var(--line-dark);
}
.chart-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 13px;
  color: var(--ink-2);
}
.chart-card-dark .chart-head { color: rgba(245, 245, 247, 0.7); }

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 14px;
  font-size: 12.5px;
  color: var(--ink-2);
}
.lg { display: inline-flex; align-items: center; gap: 7px; }
.lg-swatch { width: 14px; height: 3px; border-radius: 2px; }
.lg-val { color: var(--ink); font-variant-numeric: tabular-nums; font-weight: 500; }

.chart-host { width: 100%; }
.chart-host svg { width: 100%; height: auto; display: block; }

.chart-note {
  margin: 14px 0 0;
  font-size: 12.5px;
  color: var(--ink-3);
}

/* 表格 */
.bt-table-wrap {
  margin-top: 16px;
  border-radius: var(--r-lg);
  background: #fff;
  border: 1px solid var(--line);
  overflow-x: auto;
}
.bt-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
.bt-table th {
  text-align: right;
  padding: 14px 16px;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-3);
  letter-spacing: 0.02em;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.bt-table th:first-child,
.bt-table td:first-child { text-align: left; }
.bt-table td {
  padding: 15px 16px;
  text-align: right;
  border-bottom: 1px solid var(--line);
}
.bt-table tbody tr:last-child td { border-bottom: 0; }
.bt-table tbody tr.best { background: rgba(0, 113, 227, 0.05); }
.bt-name { font-weight: 500; }
.bt-name small { display: block; font-weight: 400; color: var(--ink-3); font-size: 11.5px; margin-top: 2px; }

/* --------------------------------------------------------------------------
   推演
   -------------------------------------------------------------------------- */
.fc-top {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 18px;
  margin-bottom: 18px;
}
.fc-bias, .fc-mc {
  padding: 26px 24px;
  border-radius: var(--r-xl);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line-dark);
}
.fc-bias-label { font-size: 12.5px; color: rgba(245, 245, 247, 0.5); }
.fc-bias-value {
  margin-top: 8px;
  font-size: 40px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
}
.fc-bias-note {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(245, 245, 247, 0.55);
}

.fc-mc { display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.mc-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 13.5px;
  color: rgba(245, 245, 247, 0.62);
}
.mc-line b {
  font-size: 19px;
  font-weight: 600;
  color: #f5f5f7;
  font-variant-numeric: tabular-nums;
}

/* 信号条 */
.signals {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 10px;
}
.sig {
  padding: 15px 17px;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line-dark);
}
.sig-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  font-size: 13px;
  color: rgba(245, 245, 247, 0.85);
}
.sig-val { font-variant-numeric: tabular-nums; color: #f5f5f7; }
.sig-bar {
  position: relative;
  height: 4px;
  margin: 11px 0 8px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.1);
}
.sig-bar::before {
  content: "";
  position: absolute;
  left: 50%; top: -3px; bottom: -3px;
  width: 1px;
  background: rgba(255, 255, 255, 0.22);
}
.sig-fill {
  position: absolute;
  top: 0; bottom: 0;
  border-radius: 2px;
  transform-origin: left center;
}
.sig-fill.pos { background: var(--up); }
.sig-fill.neg { background: var(--down); }
.sig-note { font-size: 11.5px; color: rgba(245, 245, 247, 0.42); }

.disclaimer {
  margin: 26px 0 0;
  padding: 18px 22px;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-dark);
  font-size: 12.5px;
  line-height: 1.7;
  color: rgba(245, 245, 247, 0.55);
}

/* --------------------------------------------------------------------------
   新闻
   -------------------------------------------------------------------------- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}
.news-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 22px 20px;
  border-radius: var(--r-lg);
  background: #fff;
  border: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.22s ease, transform 0.22s var(--spring);
}
.news-card:hover {
  border-color: rgba(0, 0, 0, 0.16);
  transform: translate3d(0, -2px, 0);
}
.news-top {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  color: var(--ink-3);
}
.news-tag {
  padding: 2px 8px;
  border-radius: 980px;
  font-size: 11px;
  letter-spacing: 0.01em;
}
.news-tag.bull { background: var(--up-soft); color: #a81f1f; }
.news-tag.bear { background: var(--down-soft); color: #0a7340; }
.news-tag.neut { background: rgba(0, 0, 0, 0.05); color: var(--ink-2); }
/* 非直接相关的条目：弱化处理，避免与公司消息混为一谈 */
.news-scope {
  margin-left: auto;
  font-size: 10.5px;
  color: var(--ink-3);
  border: 1px solid var(--line);
  border-radius: 980px;
  padding: 1px 7px;
  white-space: nowrap;
}
.news-title {
  font-size: 15px;
  line-height: 1.45;
  font-weight: 500;
  letter-spacing: -0.008em;
}
.news-sum {
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--ink-3);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-foot {
  margin-top: auto;
  font-size: 11.5px;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}

/* --------------------------------------------------------------------------
   说明 / 页脚
   -------------------------------------------------------------------------- */
.about-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 26px 32px;
  margin-top: 8px;
}
.about-item h3 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.about-item p {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-2);
}

.sources {
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--ink-3);
}
.sources b { color: var(--ink-2); font-weight: 500; }

.footer {
  background: var(--black-2);
  color: rgba(245, 245, 247, 0.5);
  padding: 52px 0 60px;
  font-size: 12.5px;
  line-height: 1.75;
}
.footer-title {
  margin: 0 0 14px;
  font-size: 15px;
  font-weight: 600;
  color: #f5f5f7;
  letter-spacing: -0.01em;
}
.footer-note { margin: 0 0 16px; max-width: 720px; }
.footer-note strong { color: rgba(245, 245, 247, 0.78); font-weight: 500; }
.footer-meta { margin: 0; color: rgba(245, 245, 247, 0.32); }

.market-heading, .market-toolbar, .market-tabs, .market-zoom {
  display: flex; align-items: center; gap: 8px;
}
.market-heading { justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.market-heading .h2 { margin-bottom: 0; }
.market-card { padding: clamp(12px, 3vw, 24px); background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); min-width: 0; }
.market-toolbar { justify-content: space-between; flex-wrap: wrap; }
.market-tabs { flex-wrap: wrap; }
.market-tabs button, .market-zoom button, .market-refresh {
  border: 1px solid transparent; border-radius: 9px; background: var(--paper); color: var(--ink-2);
  padding: 9px 12px; cursor: pointer; font: inherit; font-size: 13px; min-height: 38px;
}
.market-tabs button[aria-pressed="true"] { background: #0071e3; color: #fff; }
.market-tabs button:focus-visible, .market-zoom button:focus-visible, .market-refresh:focus-visible, .market-chart:focus-visible { outline: 2px solid #0071e3; outline-offset: 3px; }
.market-refresh { white-space: nowrap; border-color: var(--line); background: #fff; }
.market-refresh:disabled { opacity: .5; cursor: wait; }
.market-zoom { color: var(--ink-3); font-size: 12px; }
.market-zoom[hidden] { display: none; }
.market-status { margin: 18px 0 12px; color: var(--ink-2); font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.market-raw { display: block; margin: 0 0 10px; font-size: 12px; color: #946315; }
.market-raw[hidden] { display: none; }
.market-legend { display: flex; flex-wrap: wrap; gap: 8px 16px; min-height: 20px; color: var(--ink-3); font-size: 11px; }
.market-readout { min-height: 44px; padding-top: 8px; color: var(--ink-2); font-size: 12px; line-height: 1.8; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.market-chart { min-height: 180px; width: 100%; touch-action: pan-y; }
.market-note { margin: 12px 0 0; color: var(--ink-3); font-size: 12px; line-height: 1.7; }
.market-previous { display: block; margin: 16px 0; font-size: 13px; color: var(--ink-2); }
.market-previous[hidden] { display: none; }
.market-empty { min-height: 270px; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 28px 16px; color: var(--ink-2); }
.market-empty strong { font-size: 20px; color: var(--ink); }
.market-empty p { margin: 12px 0 0; font-size: 13px; line-height: 1.7; }
@media (max-width: 560px) {
  .market-tabs { gap: 4px; }
  .market-tabs button { padding: 9px 10px; }
  .market-heading { align-items: flex-end; }
}

/* --------------------------------------------------------------------------
   响应式
   -------------------------------------------------------------------------- */
@media (max-width: 860px) {
  .pos-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gnav-links { display: none; }
  .zones-grid { grid-template-columns: 1fr; }
  .fc-top { grid-template-columns: 1fr; }
  .ov-head { align-items: flex-start; }
  .ov-price { text-align: left; }
  .br-mobile { display: inline; }
}

@media (max-width: 560px) {
  .pos-grid, .about-list { grid-template-columns: minmax(0, 1fr); }
  .sess-empty { overflow-wrap: anywhere; }
  body { font-size: 16px; }
  .sess-body { grid-template-columns: 1fr; }
  .sess-src { margin-left: 0; }
  .search { flex-direction: column; border-radius: var(--r-lg); padding: 10px; }
  .search-input { padding: 12px 14px; text-align: center; }
  .search-btn { justify-content: center; padding: 13px 20px; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .pos-readout { grid-template-columns: repeat(2, 1fr); }
  .ladder-row { grid-template-columns: 70px 1fr; }
  .ladder-tag { display: none; }
  .bt-table { font-size: 12.5px; }
  .bt-table th, .bt-table td { padding: 11px 9px; }
}

/* --------------------------------------------------------------------------
   三个降级开关 —— 缺一个都不算做完
   -------------------------------------------------------------------------- */

/* 1) 减少动态效果：全部退化为瞬时或纯淡入 */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 0; transform: none; }
  .reveal.in { opacity: 1; }
  .state.loading::after { animation: none; border-top-color: rgba(0, 0, 0, 0.15); }
}

/* 2) 减少透明度：玻璃退化为不透明纯色 */
@media (prefers-reduced-transparency: reduce) {
  .gnav {
    background: #1d1d1f;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  /* 浅色态的优先级比 .gnav 高，必须单独写，否则会退回半透明 */
  .gnav[data-tone="light"] {
    background: var(--paper);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .search { background: #1d1d1f; }
  .tick { background: #0a0a0c; }
}

/* 3) 更高对比度：加实线边框、提高文字对比 */
@media (prefers-contrast: more) {
  :root { --ink-2: #48484a; --ink-3: #5c5c60; --line: rgba(0, 0, 0, 0.28); }
  .kpi, .pos-item, .chart-card, .bt-table-wrap, .news-card, .pos-card { border-color: rgba(0, 0, 0, 0.3); }
  .section-dark { background: #000; }
  .section-dark .lead, .section-dark .fine { color: rgba(245, 245, 247, 0.82); }
  .zone-meta, .sig-note, .chart-card-dark .chart-head { color: rgba(245, 245, 247, 0.78); }
  .gnav { border-bottom-color: rgba(255, 255, 255, 0.4); }
  .gnav[data-tone="light"] { border-bottom-color: rgba(0, 0, 0, 0.4); }
  .gnav[data-tone="light"] .gnav-links a { color: var(--ink); }
}

/* 打印：玻璃在纸上无效，换成纯色底 + 深色字，否则会印出一片灰 */
@media print {
  .gnav {
    position: static;
    background: #fff !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    border-bottom: 1px solid #ccc;
  }
  .gnav .brand, .gnav-links a { color: #000 !important; }
  .section-dark { background: #fff !important; color: #000 !important; }
  .section-dark .lead, .section-dark .fine, .zone-meta { color: #333 !important; }
  .hero { background: #fff !important; color: #000 !important; }
  .hero-title, .hero-sub, .eyebrow { color: #000 !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* 不支持 backdrop-filter 时直接给不透明底，不留半透明脏底 */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .gnav { background: #1d1d1f; }
  .gnav[data-tone="light"] { background: var(--paper); }
}

/* 交易内容层采用不透明表面；不增加模糊或装饰性动效。 */
.hero { min-height: auto; padding: 112px 0 48px; }
.hero-title { font-size: clamp(32px, 5vw, 60px); letter-spacing: -.035em; }
.hero-sub { max-width: 700px; margin: 20px auto 26px; font-size: 17px; }
#market { padding-top: 42px; }
.assist-toolbar, .assist-actions, .assist-display, .assist-conclusion, .assist-news-head { display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap; }
.assist-toolbar { border-bottom:1px solid var(--line); padding-bottom:18px; margin-bottom:12px; }
.assist-modes { display:flex; padding:4px; background:#f3f4f6; border-radius:14px; gap:4px; }
.assist-modes button { border:0; border-radius:10px; background:transparent; color:#5c6068; padding:10px 14px; font:inherit; font-size:14px; cursor:pointer; }
.assist-modes button[aria-pressed="true"] { background:#fff; color:#0066cc; box-shadow:0 1px 4px #172b4d12; }
.assist-modes small { font-size:11px; margin-left:4px; color:#69717c; }
.assist-actions label { font-size:13px; color:#596270; display:flex; gap:6px; align-items:center; }
.assist-run { background:#0071e3; color:#fff; border:0; border-radius:12px; padding:12px 23px; font:inherit; font-size:14px; font-weight:600; cursor:pointer; }
.assist-run:disabled { opacity:.55; cursor:wait; }
.assist-status { color:#536174; font-size:13px; line-height:1.7; margin:10px 0 18px; }
.assist-decision { border-left:3px solid #b19a68; padding:9px 12px; background:#faf8f2; color:#725b30; font-size:13px; line-height:1.8; margin-bottom:18px; }
.assist-display { justify-content:flex-start; gap:8px; font-size:12px; margin:10px 0; color:#5d6471; }
.assist-display select { font:inherit; color:#303c4e; background:#f7f8fa; border:1px solid #d8dde4; border-radius:8px; padding:7px; }
.assist-key { margin-left:auto; font-size:11px; }
.assist-key i { font-style:normal; margin-left:8px; }
.key-early { color:#936000; }.key-buy { color:#0066cc; }.key-exit { color:#a34431; }
.assist-report { margin-top:24px; border-top:1px solid var(--line); padding-top:22px; }
.assist-caption { font-size:11px; letter-spacing:.08em; color:#6e7784; margin:0 0 7px; }
.assist-conclusion h3, .assist-risk h3 { font-size:23px; letter-spacing:-.025em; margin:0 0 7px; font-weight:600; }
.assist-conclusion p:not(.assist-caption) { color:#657084; font-size:13px; margin:0; }
.assist-badge { background:#f0f4f8; border-radius:8px; padding:8px 10px; color:#52627a; font-size:12px; }
.assist-timing { font-size:12px; color:#697586; margin:13px 0 18px; line-height:1.8; }
.assist-plan { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); background:#f6f8fb; border-radius:14px; padding:18px; gap:18px; }
.assist-plan span { display:block; font-size:12px; color:#637187; margin-bottom:7px; }
.assist-plan strong { font-size:22px; font-weight:600; color:#243751; font-variant-numeric:tabular-nums; }
.assist-reason { font-size:13px; line-height:1.8; margin:16px 0 8px; color:#435169; }
.assist-validation { border-top:1px solid var(--line); padding:16px 0; margin-top:16px; font-size:13px; color:#40526a; }
.assist-validation summary { cursor:pointer; line-height:1.8; }
.assist-validation-body { color:#667185; font-size:12px; line-height:1.9; padding-top:10px; }
.assist-table { overflow:auto; }.assist-table table { width:100%; border-collapse:collapse; text-align:left; white-space:nowrap; }
.assist-table th, .assist-table td { border-bottom:1px solid #e9edf2; padding:7px; }
.assist-context { border-top:1px solid var(--line); padding-top:20px; }
.assist-risk { background:#f3f6fa; border-radius:14px; padding:20px; margin-bottom:20px; }
.assist-risk[data-level="attention"] { background:#fff7e9; }
.assist-risk h3 { font-size:18px; line-height:1.6; }.assist-risk ul:empty { display:none; }
.assist-risk ul { padding-left:18px; font-size:13px; line-height:1.9; color:#79571e; margin:10px 0; }
.assist-revision { font-size:13px; color:#8a641d; margin:10px 0; }
.assist-perspectives { display:grid; grid-template-columns:1fr 1fr; gap:24px; }
.assist-perspectives article { padding:8px 0; min-width:0; }
.assist-context h4 { font-size:18px; margin:0 0 16px; font-weight:600; }
.assist-context article p { font-size:13px; line-height:1.8; color:#627083; }
.assist-finance, .assist-macro { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.assist-finance div, .assist-macro div { min-width:0; }
.assist-finance dt, .assist-macro dt { font-size:12px; color:#697586; line-height:1.7; }
.assist-finance dd, .assist-macro dd { margin:5px 0; font-size:19px; color:#27374b; font-variant-numeric:tabular-nums; }
.assist-finance dd small, .assist-macro dd small { display:block; color:#61728b; font-size:12px; margin-top:4px; }
.assist-news { border-top:1px solid var(--line); padding-top:22px; margin-top:20px; }
.assist-news ul { list-style:none; padding:0; margin:0; }.assist-news li { padding:13px 0; border-bottom:1px solid #edf0f4; font-size:14px; line-height:1.7; }
.assist-news li a { color:#245b96; text-decoration:none; overflow-wrap:anywhere; }.assist-news li a:hover { text-decoration:underline; }
.assist-news li small { font-size:11px; color:#738095; }.assist-event-tag { display:inline-block; font-size:10px; color:#79571e; background:#fff3da; padding:1px 6px; border-radius:4px; margin-right:8px; }
.assist-context-error { font-size:13px; color:#a34431; }
@media(max-width:600px) {
  .hero { padding:92px 0 30px; }.hero-sub { font-size:15px; }
  .assist-toolbar { gap:12px; }.assist-modes { width:100%; justify-content:space-between; }
  .assist-modes button { padding:10px 9px; flex:1; }.assist-modes small { display:block; margin:4px 0 0; }
  .assist-actions { width:100%; }.assist-key { width:100%; margin:3px 0 0; }
  .assist-plan { grid-template-columns:1fr 1fr; }.assist-plan strong { font-size:20px; }
  .assist-perspectives { grid-template-columns:1fr; gap:14px; }.assist-risk { padding:15px; }
  .assist-conclusion h3 { font-size:21px; }.assist-conclusion { gap:10px; }
}
@media(prefers-contrast:more) { .assist-risk, .assist-plan, .assist-modes { border:1px solid #697586; }.assist-caption,.assist-timing { color:#414c5b; } }

/* Risk controls: opaque content; no new glass layers or animated layout. */
.assist-risk-settings{margin:12px 0;font-size:13px;color:var(--muted,#666)}
.assist-risk-settings summary{cursor:pointer;padding:8px 0}
.assist-risk-fields{display:flex;flex-wrap:wrap;align-items:end;gap:12px;padding:10px 0}
.assist-risk-fields label{display:grid;gap:6px;flex:1 1 135px;min-width:0}
.assist-risk-fields input{width:100%;box-sizing:border-box;border:1px solid #d4d9e0;border-radius:6px;padding:9px;background:#fff;color:#1d1d1f;font:inherit}
.assist-risk-fields button,.assist-audit button{border:1px solid #bdc9d9;background:#fff;border-radius:6px;padding:9px;color:#06c;cursor:pointer}
.assist-audit{overflow-wrap:anywhere}
