/* ==========================================================================
   方程式快讯 · THE WIRE
   纸墨版式：暖纸、墨黑、单一青绿强调；数据色（砖红/松绿）只用于涨跌。
   ========================================================================== */

/* ---- 1. 设计变量 --------------------------------------------------------- */
:root {
  --paper:      #F4F1E8;
  --paper-2:    #EDE9DC;
  --paper-3:    #E2DDCB;
  --ink:        #15140F;
  --ink-2:      #5B5749;
  --ink-3:      #736D5D;
  --rule:       rgba(21, 20, 15, .13);
  --rule-mid:   rgba(21, 20, 15, .22);
  --rule-hard:  rgba(21, 20, 15, .55);
  --acc:        #0F4C43;
  --acc-tint:   rgba(15, 76, 67, .09);
  --up:         #1F6B4F;   /* 涨 = 绿 */
  --down:       #A63A22;   /* 跌 = 红 */
  --up-tint:    rgba(31, 107, 79, .08);
  --down-tint:  rgba(166, 58, 34, .08);

  --serif: "Songti SC", "Source Han Serif SC", "Noto Serif CJK SC", "STSong",
           Georgia, "Times New Roman", serif;
  --sans:  "PingFang SC", "Hiragino Sans GB", -apple-system, BlinkMacSystemFont,
           "Helvetica Neue", "Microsoft YaHei", sans-serif;
  --mono:  "SF Mono", ui-monospace, "JetBrains Mono", "Roboto Mono", Menlo,
           Consolas, monospace;

  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);

  --pad: 48px;
  --maxw: 1280px;
  --ctl-h: 58px;
}

html[data-theme="dark"] {
  --paper:      #0E0F0D;
  --paper-2:    #151714;
  --paper-3:    #1D201C;
  --ink:        #EDE7D7;
  --ink-2:      #A9A390;
  --ink-3:      #857F6D;
  --rule:       rgba(237, 231, 215, .13);
  --rule-mid:   rgba(237, 231, 215, .24);
  --rule-hard:  rgba(237, 231, 215, .6);
  --acc:        #7EC2B0;
  --acc-tint:   rgba(126, 194, 176, .12);
  --up:         #6FB391;   /* 涨 = 绿 */
  --down:       #E07A60;   /* 跌 = 红 */
  --up-tint:    rgba(111, 179, 145, .1);
  --down-tint:  rgba(224, 122, 96, .1);
}

/* ---- 2. 复位 ------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  transition: background-color .45s var(--ease), color .45s var(--ease);
  overflow-x: hidden;
}

h1, h2, h3, p, ol, ul, figure, dl, dd { margin: 0; padding: 0; }
ol, ul { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; }
a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px;
    text-decoration-thickness: 1px; text-decoration-color: var(--rule-mid);
    transition: color .2s, text-decoration-color .2s; }
a:hover { color: var(--acc); text-decoration-color: var(--acc); }
img { max-width: 100%; display: block; }
::selection { background: var(--acc); color: var(--paper); }

:focus-visible {
  outline: 1.5px solid var(--acc);
  outline-offset: 3px;
}

.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.dim  { color: var(--ink-3); }

/* 纸纹：极轻的一层，只为去掉纯色屏幕的“电子感” */
.grain {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  opacity: .38;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.22'/%3E%3C/svg%3E");
}
html[data-theme="dark"] .grain { mix-blend-mode: screen; opacity: .22; }

/* ---- 3. 版心 ------------------------------------------------------------- */
.shell {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
  position: relative;
  z-index: 2;
}

/* ---- 4. 报头 ------------------------------------------------------------- */
.masthead { padding-top: 22px; border-bottom: 1px solid var(--ink); }

.topline {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  min-height: 26px;
  font-size: 10px;
  letter-spacing: .1em;
  color: var(--ink-3);
}
.topline-left, .topline-right {
  display: flex; align-items: center; gap: 10px; min-width: 0;
}
.topline .sep {
  width: 1px; height: 9px; background: var(--rule-mid); flex: none;
}
.topline .sep.wide { margin: 0 6px; }
.topline .tz { font-size: 9px; letter-spacing: .14em; }

.live {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--acc); font-weight: 600;
  letter-spacing: .14em;
}
.pulse {
  width: 6px; height: 6px; border-radius: 50%;
  background: currentColor;
  position: relative;
  flex: none;
}
.pulse::after {
  content: ""; position: absolute; inset: -4px;
  border-radius: 50%; border: 1px solid currentColor;
  opacity: 0; animation: ping 2.6s var(--ease) infinite;
}
@keyframes ping {
  0%   { transform: scale(.4); opacity: .65; }
  70%  { transform: scale(1.25); opacity: 0; }
  100% { transform: scale(1.25); opacity: 0; }
}

.theme-btn {
  font-family: var(--mono); font-size: 9px; letter-spacing: .1em;
  color: var(--ink-2);
  border: 1px solid var(--rule-mid);
  padding: 3px 7px 4px;
  cursor: pointer;
  transition: border-color .2s, color .2s, background-color .2s;
}
.theme-btn:hover { border-color: var(--ink); color: var(--ink); }

.kicker {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .2em;
  color: var(--ink-2);
  white-space: nowrap;
}

/* 期号行：报头之上的一行小字，左右两端对齐 */
.dateline {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px;
  padding-top: 15px;
}
.dateline-right {
  display: flex; align-items: center; gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
  color: var(--ink-2);
  min-width: 0;
}
.dateline .sep {
  width: 1px; height: 9px; background: var(--rule-mid); flex: none;
}
.issue {
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: .06em;
  white-space: nowrap;
}
.issue b {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.issue-sub {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .1em;
  white-space: nowrap;
}

/* 报头主体：巨字 + 一道横线 + 落款，全部按基线对齐 */
.mast {
  display: flex; align-items: baseline;
  gap: clamp(16px, 3vw, 34px);
  padding: 8px 0 20px;
}
.wordmark {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(54px, 7.2vw, 92px);
  line-height: .92;
  letter-spacing: .015em;
  padding-bottom: .06em;
  white-space: nowrap;
  flex: none;
}
.mast-rule {
  flex: 1 1 auto;
  height: 1px;
  background: var(--ink);
  min-width: 40px;
  align-self: baseline;
}
.mast-note {
  flex: none;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: .14em;
  color: var(--ink-3);
  white-space: nowrap;
  padding-bottom: 2px;
}

/* ---- 5. 控制条 ----------------------------------------------------------- */
.controls {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: flex-end; gap: 28px;
  height: var(--ctl-h);
  background: var(--paper);
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  -webkit-backdrop-filter: blur(10px) saturate(1.1);
  backdrop-filter: blur(10px) saturate(1.1);
  border-bottom: 1px solid var(--rule);
  transition: box-shadow .3s;
}
.controls.is-stuck { box-shadow: 0 12px 24px -20px rgba(0, 0, 0, .5); }

.ch-wrap {
  position: relative;
  display: flex; align-items: stretch;
  flex: 1 1 auto; min-width: 0;
}
.ch-scroll {
  position: absolute; right: -6px; top: 0; bottom: 0;
  width: 30px;
  display: flex; align-items: flex-end; justify-content: flex-end;
  padding: 0 0 15px 0;
  font-family: var(--mono); font-size: 13px; line-height: 1;
  color: var(--ink-3);
  background: linear-gradient(to right, transparent, var(--paper) 55%);
  opacity: 0; pointer-events: none;
  transition: opacity .25s, color .2s;
  cursor: pointer;
}
.ch-scroll.is-on { opacity: 1; pointer-events: auto; }
.controls.searching .ch-scroll { opacity: 0; pointer-events: none; }
.ch-scroll:hover { color: var(--ink); }

.channels {
  display: flex; align-items: stretch; gap: 0;
  height: 100%;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  flex: 1 1 auto;
  min-width: 0;
  mask-image: linear-gradient(to right, #000 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, #000 92%, transparent 100%);
}
.channels::-webkit-scrollbar { display: none; }

.chip {
  position: relative;
  display: inline-flex; align-items: baseline; gap: 5px;
  padding: 0 0 1px;
  margin-right: 20px;
  align-self: center;
  height: 100%;
  align-items: flex-end;
  padding-bottom: 18px;
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--ink-2);
  white-space: nowrap;
  cursor: pointer;
  transition: color .22s;
  flex: none;
}
.chip::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 2px; background: var(--acc);
  transform: scaleX(0); transform-origin: left;
  transition: transform .45s var(--ease);
}
.chip:hover { color: var(--ink); }
.chip[aria-selected="true"] { color: var(--ink); font-weight: 600; }
.chip[aria-selected="true"]::after { transform: scaleX(1); }
.chip b {
  font-family: var(--mono); font-size: 8.5px; font-weight: 400;
  color: var(--ink-3); letter-spacing: .02em;
  transition: color .22s;
}
.chip[aria-selected="true"] b { color: var(--acc); }

.search {
  flex: none;
  display: flex; align-items: center; gap: 7px;
  height: 100%;
  padding-bottom: 16px;
  border-bottom: 1px solid transparent;
  transition: border-color .25s;
}
.search-btn {
  display: none;
  font-family: var(--mono); font-size: 8.5px; letter-spacing: .16em;
  color: var(--ink-3); padding: 4px 0;
}
.search:focus-within { border-color: var(--ink); }
.search input {
  width: 148px;
  border: 0; background: none; outline: none;
  font-family: var(--sans); font-size: 12px; color: var(--ink);
  transition: width .35s var(--ease);
  padding: 0;
}
.search input::placeholder { color: var(--ink-3); }
.search input:focus { width: 216px; }
.search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.search kbd {
  font-family: var(--mono); font-size: 9px;
  color: var(--ink-3);
  border: 1px solid var(--rule-mid);
  padding: 1px 4px;
  line-height: 1.3;
}

/* ---- 6. 主体网格 --------------------------------------------------------- */
.grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 312px;
  column-gap: 56px;
  padding-top: 0;
  padding-bottom: 96px;
  align-items: start;
}

/* ---- 7. 快讯流 ----------------------------------------------------------- */
.wire { min-width: 0; position: relative; }

/* 手机上的行情纸带：桌面已经有右栏，这里只在窄屏出现 */
.ticker {
  display: none;
  grid-column: 1 / -1;
  gap: 0;
  margin-top: 4px;
  padding: 9px 0 8px;
  border-bottom: 1px solid var(--rule);
  overflow-x: auto;
  scrollbar-width: none;
  white-space: nowrap;
  mask-image: linear-gradient(to right, #000 94%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, #000 94%, transparent 100%);
}
.ticker::-webkit-scrollbar { display: none; }
.ticker .t-item {
  display: inline-flex; align-items: baseline; gap: 6px;
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .04em;
}
.ticker .t-sep {
  display: inline-block; width: 1px; height: 8px;
  background: var(--rule-mid);
  margin: 0 14px;
  vertical-align: middle;
}
.ticker .t-item b { font-weight: 500; color: var(--ink); }
.ticker .t-item span { color: var(--ink-3); font-size: 9px; }

.nowline {
  display: flex; align-items: center; gap: 10px;
  padding: 18px 0 14px;
  font-size: 9.5px;
  letter-spacing: .16em;
  color: var(--ink-3);
  text-transform: uppercase;
}
.nowline .pulse { color: var(--acc); }
.nowline time { letter-spacing: .06em; color: var(--ink-2); }
.nowline-rule { flex: 1; height: 1px; background: var(--rule); }
.nowline .dim { letter-spacing: .06em; text-transform: none; }

.rows { border-top: 1px solid var(--rule); }

.day {
  display: flex; align-items: baseline; gap: 12px;
  padding: 24px 0 9px;
  border-bottom: 1px solid var(--ink);
}
.day b {
  font-family: var(--serif); font-size: 15px; font-weight: 700;
  letter-spacing: .04em;
}
.day span {
  font-family: var(--mono); font-size: 8.5px;
  letter-spacing: .22em; color: var(--ink-3); text-transform: uppercase;
}
.day .fill { flex: 1; height: 0; }
.day .count {
  font-family: var(--mono); font-size: 9px; color: var(--ink-3);
  letter-spacing: .06em;
}

.row {
  position: relative;
  display: grid;
  grid-template-columns: 56px 16px minmax(0, 1fr);
  column-gap: 16px;
  padding: 18px 0 19px;
  border-bottom: 1px solid var(--rule);
  cursor: pointer;
  transition: background-color .3s var(--ease);
}
.row::before {
  content: ""; position: absolute; left: -14px; top: 18px; bottom: 19px;
  width: 2px; background: var(--acc);
  opacity: 0; transform: scaleY(.5); transform-origin: top;
  transition: opacity .3s, transform .4s var(--ease);
}
.row:hover::before, .row.is-sel::before { opacity: 1; transform: scaleY(1); }
.row.is-sel { background: linear-gradient(90deg, var(--acc-tint), transparent 42%); }

.row-time {
  font-family: var(--mono);
  font-size: 10.5px;
  line-height: 1.7;
  letter-spacing: .02em;
  color: var(--ink-3);
  text-align: right;
  padding-top: 1px;
  font-variant-numeric: tabular-nums;
  transition: color .25s;
}
.row:hover .row-time { color: var(--ink-2); }

.row-spine { position: relative; }
.row-spine::before {
  content: ""; position: absolute; left: 7.5px; top: -18px; bottom: -20px;
  width: 1px; background: var(--rule);
}
.row-spine i {
  position: absolute; left: 4.5px; top: 3px;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--dot, var(--ink-3));
  transition: border-color .25s, box-shadow .25s, background-color .25s;
}
.row:hover .row-spine i { border-color: var(--dot, var(--ink)); background: var(--paper-2); box-shadow: 0 0 0 4px var(--acc-tint); }
.row.is-new .row-spine i { background: var(--acc); border-color: var(--acc); }

.row-main { min-width: 0; }

.row-meta {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 5px;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: .14em;
  color: var(--ink-3);
  text-transform: uppercase;
}
.cat {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--ink-2);
  letter-spacing: .12em;
}
.cat::before {
  content: ""; width: 5px; height: 5px; flex: none;
  background: var(--cat, var(--ink-3));
}
.stamp {
  color: var(--acc);
  border: 1px solid currentColor;
  padding: 0 4px 1px;
  font-size: 7.5px;
  letter-spacing: .18em;
  line-height: 1.5;
}
.row-meta .spacer { flex: 1; }
.lag {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--ink-3); letter-spacing: .02em;
  font-variant-numeric: tabular-nums;
}
.lag .track {
  display: block; width: 18px; height: 2px;
  background: var(--rule); position: relative;
}
.lag .track i {
  position: absolute; left: 0; top: 0; bottom: 0;
  background: var(--ink-3); min-width: 1px;
}
.lag.slow .track i { background: var(--down); }
.lag.slow { color: var(--down); }


.row-open {
  opacity: 0; transform: translateX(-4px);
  transition: opacity .25s, transform .35s var(--ease);
  color: var(--acc);
}
.row:hover .row-open { opacity: 1; transform: none; }

.row-title {
  font-family: var(--serif);
  font-size: 18.5px;
  font-weight: 400;
  line-height: 1.62;
  letter-spacing: .006em;
  color: var(--ink);
  text-wrap: pretty;
  overflow-wrap: anywhere;
}

.row-coins { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; }
.coin {
  font-family: var(--mono); font-size: 9px; letter-spacing: .06em;
  color: var(--ink-2);
  border: 1px solid var(--rule-mid);
  padding: 0 5px 1px;
  line-height: 1.5;
  cursor: pointer;
  transition: color .2s, border-color .2s, background-color .2s;
}
.coin:hover, .coin.is-on {
  color: var(--paper); background: var(--acc); border-color: var(--acc);
}

/* 首屏骨架 */
.wire-state.is-skeleton { padding: 10px 0 0; }
.sk-row {
  display: grid; grid-template-columns: 16px minmax(0, 1fr);
  column-gap: 16px;
  padding: 22px 0;
  border-bottom: 1px solid var(--rule);
}
.sk-dot {
  width: 7px; height: 7px; border-radius: 50%;
  border: 1px solid var(--rule-mid);
  margin-top: 8px;
}
.sk-row > div { display: flex; flex-direction: column; gap: 9px; }
.sk-bar {
  display: block; height: 9px;
  background: var(--paper-3);
  animation: breathe 1.6s var(--ease) infinite;
}
.sk-bar.w30 { width: 30%; } .sk-bar.w40 { width: 40%; }
.sk-bar.w45 { width: 45%; } .sk-bar.w50 { width: 50%; }
.sk-bar.w60 { width: 60%; } .sk-bar.w70 { width: 70%; }
.sk-bar.w80 { width: 80%; } .sk-bar.w85 { width: 85%; }
@keyframes breathe { 0%,100% { opacity: .55; } 50% { opacity: 1; } }

/* 加载 / 空 / 错误 */
.wire-state {
  padding: 72px 0;
  text-align: center;
  font-family: var(--serif);
  font-size: 15px;
  color: var(--ink-3);
  letter-spacing: .06em;
}
.wire-state b {
  display: block; font-size: 19px; color: var(--ink); margin-bottom: 8px;
  font-weight: 400; letter-spacing: .04em;
}
.wire-state button {
  margin-top: 18px;
  font-family: var(--mono); font-size: 9px; letter-spacing: .16em;
  border: 1px solid var(--rule-mid); padding: 7px 14px; cursor: pointer;
  color: var(--ink-2);
  transition: border-color .2s, color .2s;
}
.wire-state button:hover { color: var(--acc); border-color: var(--acc); }

.more {
  display: block; width: 100%;
  padding: 20px 0;
  font-family: var(--mono); font-size: 9px; letter-spacing: .2em;
  color: var(--ink-3); text-transform: uppercase;
  border-bottom: 1px solid var(--rule);
  cursor: pointer;
  transition: color .25s, background-color .25s;
}
.more:hover { color: var(--ink); background: var(--paper-2); }

/* 新快讯浮条 */
.newpill {
  position: sticky; top: calc(var(--ctl-h) + 12px); z-index: 20;
  display: flex; justify-content: center;
  height: 0;
  pointer-events: none;
}
.newpill button {
  pointer-events: auto;
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--ink); color: var(--paper);
  font-size: 10.5px; letter-spacing: .06em;
  padding: 7px 14px;
  border-radius: 999px;
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .5);
  transform: translateY(-8px);
  opacity: 0;
  transition: opacity .3s, transform .4s var(--ease);
  cursor: pointer;
}
.newpill.is-on button { transform: none; opacity: 1; }
.newpill .arrow { font-family: var(--mono); font-size: 11px; opacity: .7; }

/* ---- 8. 右栏 ------------------------------------------------------------- */
.rail {
  position: sticky; top: calc(var(--ctl-h) + 22px);
  align-self: start;
  display: flex; flex-direction: column; gap: 40px;
  padding-left: 28px;
  border-left: 1px solid var(--rule);
  margin-top: 18px;
}

.panel-h {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 10px;
  padding-bottom: 9px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--ink);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .22em;
}
.panel-h .mono {
  font-size: 8px; font-weight: 400; letter-spacing: .26em; color: var(--ink-3);
}

.breadth {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: end;
  column-gap: 14px;
  margin-bottom: 18px;
}
.breadth-num {
  display: flex; align-items: baseline; gap: 1px;
  font-family: var(--serif);
}
.breadth-num b {
  font-size: 42px; font-weight: 700; line-height: .85;
  letter-spacing: -.01em;
  font-variant-numeric: tabular-nums;
}
.breadth-num span { font-size: 11px; color: var(--ink-3); }
.breadth-txt {
  display: flex; flex-direction: column; gap: 3px;
  font-size: 10px; color: var(--ink-2);
  padding-bottom: 2px;
}
.breadth-txt .dim { font-size: 8.5px; letter-spacing: .1em; }
.breadth-bar {
  grid-column: 1 / -1;
  display: flex; height: 2px; margin-top: 12px;
  background: var(--paper-3);
  overflow: hidden;
  position: relative;
}
.breadth-bar::after {
  content: ""; position: absolute; left: 50%; top: -3px; bottom: -3px;
  width: 1px; background: var(--rule-mid);
}
.breadth-bar i { display: block; height: 100%; transition: width .9s var(--ease); }
#breadthUp { background: var(--up); opacity: .55; }
#breadthDn { background: var(--down); opacity: .3; }

.tape { display: flex; flex-direction: column; }
.tape-row {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto 56px;
  align-items: center;
  column-gap: 10px;
  padding: 6px 0;
  border-bottom: 1px solid var(--rule);
  cursor: pointer;
  text-align: left;
  transition: background-color .2s;
}
.tape-row:last-child { border-bottom: 0; }
.tape-row:hover { background: var(--paper-2); }
.tape-row .tk {
  font-family: var(--mono); font-size: 10px; letter-spacing: .08em;
  color: var(--ink); font-weight: 500;
}
.range {
  position: relative; height: 1px; background: var(--rule-mid);
  display: block;
}
.range i {
  position: absolute; top: -2px; width: 5px; height: 5px;
  background: var(--ink-2); border-radius: 50%;
  transform: translateX(-2px);
  transition: left .8s var(--ease), background-color .3s;
}
.range::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0;
  width: var(--fill, 0%);
  background: var(--ink-3); opacity: .25;
}
.tape-row .px {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: .01em; text-align: right;
  font-variant-numeric: tabular-nums;
}
.tape-row .chg {
  font-family: var(--mono); font-size: 9px;
  text-align: right; letter-spacing: .01em;
  font-variant-numeric: tabular-nums;
}
.up { color: var(--up); }
.down { color: var(--down); }
.flat { color: var(--ink-3); }

.buzz-row {
  display: grid;
  grid-template-columns: auto 1fr 26px;
  align-items: center;
  column-gap: 10px;
  width: 100%;
  padding: 5px 0;
  cursor: pointer;
  text-align: left;
}
.buzz-row .sym {
  font-family: var(--mono); font-size: 10px; letter-spacing: .05em;
  color: var(--ink-2);
  transition: color .2s;
  max-width: 92px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.buzz-row:hover .sym { color: var(--acc); }
.buzz-row .bar { height: 2px; background: var(--rule); display: block; }
.buzz-row .bar i {
  display: block; height: 100%; background: var(--ink-2);
  transition: width .9s var(--ease), background-color .2s;
}
.buzz-row:hover .bar i { background: var(--acc); }
.buzz-row .n {
  font-family: var(--mono); font-size: 8.5px; color: var(--ink-3);
  text-align: right;
}

.colophon p {
  font-size: 10.5px; line-height: 1.75; color: var(--ink-3);
  margin-bottom: 8px;
}
.colophon .keys {
  margin-top: 14px; padding-top: 12px;
  border-top: 1px solid var(--rule);
  font-size: 8.5px; letter-spacing: .08em; color: var(--ink-3);
}

/* ---- 9. 详情面板 --------------------------------------------------------- */
.scrim {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(10, 10, 8, .42);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity .35s var(--ease);
}
.scrim.is-open { opacity: 1; }

.sheet {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 70;
  width: min(608px, 100vw);
  display: flex; flex-direction: column;
  background: var(--paper);
  border-left: 1px solid var(--ink);
  box-shadow: -40px 0 100px -40px rgba(0, 0, 0, .45);
  transform: translateX(102%);
  transition: transform .46s var(--ease);
  will-change: transform;
}
.sheet.is-open { transform: none; }

.sheet-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  padding: 16px 30px;
  border-bottom: 1px solid var(--rule);
}
.sheet-kicker {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 9px; letter-spacing: .18em;
  color: var(--ink-3); text-transform: uppercase;
  min-width: 0;
}
.icon-btn {
  font-family: var(--mono); font-size: 8.5px; letter-spacing: .16em;
  color: var(--ink-2);
  border: 1px solid var(--rule-mid);
  padding: 5px 7px 6px;
  cursor: pointer;
  flex: none;
  transition: border-color .2s, color .2s;
}
.icon-btn:hover { border-color: var(--ink); color: var(--ink); }

.sheet-body {
  flex: 1; overflow-y: auto;
  padding: 34px 40px 30px;
  overscroll-behavior: contain;
}
.sheet-body::-webkit-scrollbar { width: 10px; }
.sheet-body::-webkit-scrollbar-thumb {
  background: var(--rule-mid); border: 4px solid var(--paper); border-radius: 6px;
}

.sheet-text {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.78;
  letter-spacing: .008em;
  white-space: pre-wrap;
  text-wrap: pretty;
  color: var(--ink);
  margin-bottom: 26px;
}
.sheet-text.en {
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.6;
  letter-spacing: 0;
}

.sheet-figure { margin: 0 0 24px; }
.sheet-figure img { width: 100%; border: 1px solid var(--rule); }

.sheet-meta {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 9px 16px;
  padding-top: 18px;
  border-top: 1px solid var(--ink);
  font-size: 11px;
  line-height: 1.6;
  color: var(--ink-2);
}
.sheet-meta dt {
  font-family: var(--mono); font-size: 8.5px; letter-spacing: .16em;
  color: var(--ink-3); text-transform: uppercase; padding-top: 3px;
}
.sheet-meta dd { margin: 0; overflow-wrap: anywhere; }
.sheet-meta dd.mono { font-size: 10.5px; }

.sheet-actions { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.btn {
  font-family: var(--mono); font-size: 9px; letter-spacing: .14em;
  border: 1px solid var(--rule-mid);
  padding: 7px 12px;
  cursor: pointer;
  color: var(--ink-2);
  transition: border-color .2s, color .2s, background-color .2s;
}
.btn:hover { border-color: var(--ink); color: var(--ink); }
.btn.primary { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn.primary:hover { background: var(--acc); border-color: var(--acc); }

.sheet-related {
  margin-top: 34px;
  border-top: 1px solid var(--ink);
  padding-top: 14px;
}
.sheet-related h4 {
  margin: 0 0 8px;
  font-family: var(--mono); font-size: 8.5px; font-weight: 400;
  letter-spacing: .18em; color: var(--ink-3); text-transform: uppercase;
}
.sheet-related button {
  display: grid; grid-template-columns: 44px minmax(0, 1fr);
  column-gap: 12px; align-items: baseline;
  width: 100%; text-align: left;
  padding: 9px 0;
  border-top: 1px solid var(--rule);
  cursor: pointer;
  transition: color .2s;
}
.sheet-related button:first-of-type { border-top: 0; }
.sheet-related .time { font-size: 9px; color: var(--ink-3); }
.sheet-related .t {
  font-family: var(--serif); font-size: 14px; line-height: 1.55;
  color: var(--ink-2);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  transition: color .2s;
}
.sheet-related button:hover .t { color: var(--ink); }
.sheet-related button:hover .time { color: var(--ink-2); }

.sheet-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px;
  padding: 12px 30px;
  border-top: 1px solid var(--rule);
}
.nav-btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; color: var(--ink-2);
  padding: 6px 0;
  cursor: pointer;
  max-width: 46%;
  transition: color .2s;
}
.nav-btn:hover { color: var(--acc); }
.nav-btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-btn .mono { font-size: 9px; color: var(--ink-3); }
.nav-btn.next { text-align: right; margin-left: auto; }

/* ---- 10. 入场与细节 ------------------------------------------------------ */
.dateline > *, .topline > * {
  animation: rise .9s var(--ease) both;
}
.dateline .kicker { animation-delay: .02s; }
.dateline-right { animation-delay: .12s; }
.wordmark { animation: clipIn 1s var(--ease) both .06s; }
.topline    { animation-delay: 0s; }

@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}
@keyframes clipIn {
  from { clip-path: inset(0 100% 0 0); opacity: 0; }
  to   { clip-path: inset(0 0 0 0); opacity: 1; }
}

.row.is-new { animation: rowIn .6s var(--ease) both; }
@keyframes rowIn {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: none; }
}
.row.is-new .stamp { animation: stampOut .5s var(--ease) 5.5s forwards; }
@keyframes stampOut { to { opacity: 0; transform: translateY(-2px); } }

.sheet-body > * { animation: rise .6s var(--ease) both; }
.sheet-body > *:nth-child(2) { animation-delay: .04s; }
.sheet-body > *:nth-child(3) { animation-delay: .08s; }
.sheet-body > *:nth-child(4) { animation-delay: .12s; }

.noscript { padding: 80px 0; font-family: var(--serif); font-size: 18px; }

/* ---- 11. 响应式 ---------------------------------------------------------- */
@media (min-width: 1600px) {
  :root { --maxw: 1360px; }
  .wordmark { font-size: clamp(88px, 6.4vw, 100px); }
  .row-title { font-size: 19.5px; }
  .grid { grid-template-columns: minmax(0, 1fr) 330px; }
}

@media (max-width: 1200px) {
  :root { --pad: 36px; }
  .grid { grid-template-columns: minmax(0, 1fr) 286px; column-gap: 40px; }
  .search input { width: 128px; }
  .search input:focus { width: 176px; }
}

@media (max-width: 1000px) {
  .grid { grid-template-columns: minmax(0, 1fr); }
  .ticker { display: flex; }
  .search input { width: 92px; }
  .search input:focus { width: 132px; }
  .search input::placeholder { letter-spacing: 0; }
  .rail {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 34px 40px;
    margin-top: 56px;
    padding-left: 0;
    padding-top: 34px;
    border-left: 0;
    border-top: 1px solid var(--ink);
  }
  .colophon { grid-column: 1 / -1; }
  .wordmark { font-size: clamp(46px, 9vw, 72px); }
  .mast-note { display: none; }
}

@media (max-width: 720px) {
  :root { --pad: 20px; --ctl-h: 54px; }
  .dateline { flex-direction: column; align-items: flex-start; gap: 4px; padding-top: 7px; }
  .dateline-right { justify-content: flex-start; gap: 8px; }
  .dateline .sep { display: none; }
  .dateline-right .issue-sub:last-child { display: inline; }
  .search { padding-bottom: 14px; align-items: flex-end; }
  .search-btn { display: block; padding-bottom: 1px; }
  .search input {
    width: 0; padding: 0; opacity: 0; pointer-events: none;
    transition: width .35s var(--ease), opacity .2s;
  }
  .search.is-open {
    position: absolute; left: 20px; right: 20px; top: 0; bottom: 0;
    z-index: 6; background: var(--paper);
    padding: 0 0 15px;
    border-bottom: 1px solid var(--ink);
  }
  .search.is-open input {
    width: auto; flex: 1 1 auto; opacity: 1; pointer-events: auto; padding: 0;
  }
  .search.is-open .search-btn { display: none; }
  .masthead { padding-top: 14px; }
  .mast { padding: 2px 0 12px; gap: 12px; }
  .mast-rule { min-width: 20px; }
  .wordmark { font-size: clamp(40px, 13vw, 56px); }
  .dateline { padding-top: 10px; gap: 10px; }
  .kicker { font-size: 8px; letter-spacing: .2em; }
  .dateline-right { gap: 7px; }
  .issue { font-size: 11.5px; }
  .issue b { font-size: 11px; }
  .issue-sub { font-size: 8px; letter-spacing: .04em; }
  .dateline .sep:nth-of-type(2) { display: none; }
  .dateline-right .issue-sub:last-child { display: none; }

  .controls { gap: 14px; }
  .chip { margin-right: 18px; font-size: 11.5px; padding-bottom: 15px; }
  .search input { font-size: 12px; }
  .search kbd { display: none; }

  .grid { padding-bottom: 64px; }
  .row { grid-template-columns: 42px 12px minmax(0, 1fr); column-gap: 10px; padding: 15px 0 16px; }
  .row-title { font-size: 16.5px; line-height: 1.66; }
  .row::before { left: -8px; top: 15px; bottom: 16px; }
  .row-spine::before { left: 5.5px; top: -15px; bottom: -17px; }
  .row-spine i { left: 2.5px; top: 2px; }
  .row-meta { font-size: 8px; gap: 8px; }
  .nowline { padding: 14px 0 11px; }

  .rail { grid-template-columns: 1fr; gap: 30px; margin-top: 44px; padding-top: 26px; }
  .sheet { width: 100vw; border-left: 0; }
  .sheet-body { padding: 26px 22px 24px; }
  .sheet-text { font-size: 19px; }
  .sheet-head, .sheet-foot { padding-left: 20px; padding-right: 20px; }
  .sheet-head { padding-top: calc(14px + env(safe-area-inset-top)); }
  .sheet-foot { padding-bottom: calc(12px + env(safe-area-inset-bottom)); }
}

@media (max-width: 430px) {
  .hide-sm { display: none; }
  .topline .tz { display: none; }
  .dateline-right .issue-sub { font-size: 7.5px; }
  .row-meta .lag { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-delay: 0ms !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .grain { display: none; }
}
