/* =========================================================================
   EquationNews 正式版 —— 样式（底子是 05 阶段 T1 快讯时间线，第 16 节起是行情模块：市值矩阵 / 涨跌榜 / 币种详情 / 行情页）
   版式：页头（吸顶）→ 三栏（频道导航 208 / 秒级时间线 / 市场·订阅 344）→ 页脚
   视觉（2026-10-16 改版）：页面底色 --canvas 上放白卡片（1px 细线 + 12px 圆角 + 轻阴影），控件 6px 圆角；
   颜色语义见 _shared/eq-base.css：主色「灰蓝」= 链接 / 选中 / 主按钮 / 实时；橙只做提醒小标记（频道刚有新消息、历史事件前三）；频道四组识别色；涨跌色只表示价格方向。
   线的语法：卡片之间靠留白分开；卡片内部用 1px 发丝线分条目。
   断点：≥1280 三栏 · 1024–1279 两栏（频道改为横向 chip）· 761–1023 单栏 · ≤760 手机（底部 tab）
   ========================================================================= */

/* ---------- 1. 变量 ---------- */
.t1 {
  --hd-h: 64px;
  --top-h: calc(var(--hd-h) + 1px);   /* 吸顶页头的实际高度（含底边线），所有吸顶元素都贴在它下面 */
  --rl-w: 232px;            /* 左栏：频道（各语言同宽；要放下「方程式财经 TradFi」+「昨 10:22」，英 / 俄 / 土的长频道名也少折行） */
  --rr-w: 344px;            /* 右栏：市场（迷你市值矩阵 + 涨跌榜）/ 订阅 */
  --pad: 24px;              /* 页面左右边距 */
  --gut: 20px;              /* 栏间距 */
  --card-pad: 20px;         /* 卡片左右内边距 */
  /* 快讯条目栅格：时间 | 中线 | 频道 + 来源 | 标题 */
  --when-w: 76px;
  --spine-gap: 24px;
  --tags-w: 116px;
  --title-gap: 14px;
  --spine-x: calc(var(--when-w) + var(--spine-gap) / 2);
  --row-pad: 12px;

  --ink-0: var(--eq-n700);  /* 普通标题：次级墨色 */
  --ink-1: var(--fg);       /* 主频道标题：主墨色 */
  --hover: color-mix(in srgb, var(--ac) 4%, var(--bg));
  --seg-on: var(--bg);      /* 分段控件选中块 */
  --sticky-top: var(--top-h);
}
[data-theme="dark"] { color-scheme: dark; }
[data-theme="dark"] .t1 {
  --ink-0: #C5CCD8;
  --hover: color-mix(in srgb, var(--ac-text) 6%, var(--bg));
  --seg-on: #2C3649;
}

/* ---------- 2. 基础 ---------- */
.t1 { font-size: 14px; line-height: 1.6; text-autospace: normal; }
.t1 ::selection { background: color-mix(in srgb, var(--ac) 24%, transparent); }
.t1 ul, .t1 ol { list-style: none; margin: 0; padding: 0; }
.t1 h1, .t1 h2, .t1 h3, .t1 h4, .t1 p { margin: 0; }
.num { font-family: var(--eq-font-mono); font-variant-numeric: tabular-nums; letter-spacing: 0; }
.wrap { max-width: 1440px; margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.skip { position: absolute; left: -9999px; top: 0; z-index: 100; padding: 8px 12px; border-radius: var(--eq-radius); background: var(--ac); color: var(--ac-fg); }
.skip:focus { left: 8px; top: 8px; }
.is-hidden { display: none !important; }
.t1 [hidden] { display: none !important; }
.t1 sub { font-size: .72em; vertical-align: -.25em; line-height: 0; }
.t1 input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.t1 :focus-visible { outline: 2px solid var(--ac); outline-offset: 2px; }
.ex { font-size: 12px; font-weight: 500; color: var(--fg-3); border: 1px dashed var(--line-2); border-radius: 4px; padding: 0 5px; line-height: 18px; white-space: nowrap; }
/* 卡片：页面上的内容块都铺在卡片上 */
.mod, .feed, .ip-main, .ip-when, .hl, .blk { background: var(--bg); border: 1px solid var(--line); border-radius: var(--eq-radius-lg); box-shadow: var(--sh-1); }

/* ---------- 3. 控件 ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: var(--eq-radius);
  background: var(--bg); color: var(--fg); box-shadow: var(--sh-1); font-size: 13.5px; font-weight: 600; white-space: nowrap; transition: background .12s, border-color .12s; }
.btn:hover { background: var(--surface-2); border-color: var(--eq-n300); }
[data-theme="dark"] .btn:hover { border-color: #46546E; }
.btn-pri { background: var(--ac); color: var(--ac-fg); border-color: var(--ac); }
.btn-pri:hover { background: color-mix(in srgb, var(--ac) 86%, #000); border-color: color-mix(in srgb, var(--ac) 86%, #000); }   /* 深浅色都压暗：混白会让白字掉到 3.8:1 */
.btn-sm { height: 30px; padding: 0 10px; font-size: 12.5px; }
.btn svg { width: 14px; height: 14px; }
.ib { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border: 1px solid var(--line-2); border-radius: var(--eq-radius); color: var(--fg-2); flex: none; }
.ib:hover { color: var(--ac-text); border-color: var(--ac-line); background: var(--ac-soft); }
.ib svg { width: 16px; height: 16px; }

/* 分段控件：浅灰轨道里放一块白色「滑块」 */
.seg { display: inline-flex; gap: 2px; padding: 2px; border-radius: calc(var(--eq-radius) + 2px); background: var(--surface-3); flex: none; }
.seg > button { height: 30px; min-width: 32px; padding: 0 10px; border-radius: var(--eq-radius); font-size: 13px; font-weight: 500; color: var(--fg-2); white-space: nowrap; }
.seg > button[aria-pressed="true"] { background: var(--seg-on); color: var(--fg); font-weight: 600; box-shadow: var(--sh-1); }
.seg > button:not([aria-pressed="true"]):hover { color: var(--fg); }
.seg-sm > button { height: 26px; min-width: 30px; padding: 0 9px; font-size: 12.5px; }

.chk { display: inline-flex; align-items: center; gap: 8px; height: 30px; font-size: 13px; color: var(--fg-2); white-space: nowrap; }
.chk i { position: relative; width: 16px; height: 16px; border: 1.5px solid var(--line-2); border-radius: 4px; background: var(--bg); flex: none; transition: background .12s, border-color .12s; }
.chk:hover { color: var(--fg); }
.chk:hover i { border-color: var(--ac-line); }
.chk[aria-pressed="true"] { color: var(--fg); font-weight: 500; }
.chk[aria-pressed="true"] i { background: var(--ac); border-color: var(--ac); }
.chk[aria-pressed="true"] i::after { content: ""; position: absolute; left: 4.5px; top: 1px; width: 4px; height: 8px;
  border: solid var(--ac-fg); border-width: 0 1.8px 1.8px 0; transform: rotate(45deg); }

/* 「实时」胶囊（行情页状态也用它）；首页栏头的是常亮标识：主色浅底 + 跳动圆点，不是按钮、不能暂停（用户 10-22 定） */
.live { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 999px;
  font-size: 12.5px; font-weight: 600; letter-spacing: .02em; color: var(--fg-2); white-space: nowrap; }
.live .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.fh-live .live { cursor: default; background: var(--ac-soft); color: var(--ac-text); border-color: var(--ac-line); }
.fh-live .live .dot { animation: eq-pulse 1.6s infinite; }
/* 「实时」旁的提醒声音开关（10-22 晚用户定，默认开，只有主频道组的新快讯响）：开 = 主色浅底，关 = 灰描边 + 静音图标 */
.snd { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border: 1px solid var(--line-2); border-radius: 50%; color: var(--fg-3); flex: none; }
.snd svg { width: 15px; height: 15px; }
.snd:hover { color: var(--ac-text); border-color: var(--ac-line); }
.snd[aria-pressed="true"] { color: var(--ac-text); background: var(--ac-soft); border-color: var(--ac-line); }

/* 频道标签：分组识别色 10% 浅底 + 分组色文字（data-g = main / list / mkt / feed，app.js chG） */
.tag { --tg: var(--fg-3); display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 5px;
  background: color-mix(in srgb, var(--tg) 10%, var(--bg)); font-size: 12px; font-weight: 500; line-height: 1; color: var(--fg-2); white-space: nowrap; }
.tag[data-g] { color: var(--tg); }
[data-g="main"] { --tg: var(--cg-main); } [data-g="list"] { --tg: var(--cg-list); } [data-g="mkt"] { --tg: var(--cg-mkt); } [data-g="feed"] { --tg: var(--cg-feed); }
button.tag:hover, a.tag:hover { background: color-mix(in srgb, var(--tg) 18%, var(--bg)); }
/* 来源：交易所 logo / 人物头像 / 字母圆标（app.js srcIcon），尺寸跟字号走 */
.xi { display: inline-block; flex: none; width: 1.2em; height: 1.2em; border-radius: 50%; object-fit: cover; vertical-align: -.22em;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--fg) 10%, transparent); }
.xi-0, .xi-eq { display: inline-flex; align-items: center; justify-content: center; box-shadow: none; background: var(--surface-3); color: var(--fg-2); }
.xi-0 { font: 700 .62em/1 var(--eq-font-mono); min-width: 1.94em; width: auto; height: 1.94em; padding: 0 .3em; border-radius: 999px; letter-spacing: -.04em; vertical-align: -.3em; }
.xi-eq { background: var(--fg); color: var(--bg); }
.xi-eq svg { width: 62%; height: auto; }
.src { display: inline-flex; align-items: center; justify-content: center; font-size: 15px; line-height: 1; white-space: nowrap; }
.src .xi { vertical-align: 0; }

.chip { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px 0 6px; border: 1px solid var(--line); border-radius: 999px;
  font: 12px/1 var(--eq-font-mono); color: var(--fg-2); white-space: nowrap; background: var(--bg); transition: border-color .12s, background .12s; }
button.chip:hover { border-color: var(--ac-line); background: var(--ac-soft); }
.chip b { font-weight: 600; color: var(--fg); }
.chip .px { color: var(--fg); }
.chip .mc { font-family: var(--eq-font-sans); }
.chip-more { padding: 0 10px; color: var(--fg-3); }
.up { color: var(--eq-up); } .down { color: var(--eq-down); }

/* 价格跳动：数字短暂染成涨跌色（交易所惯例），不做位移动画 */
.f-up { color: var(--eq-up) !important; } .f-down { color: var(--eq-down) !important; }

/* ---------- 4. 页头（吸顶，半透明 + 背景模糊） ---------- */
.hd { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 88%, transparent); border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px); }
.hd-in { display: flex; align-items: center; height: var(--hd-h); }
.hd-logo { display: flex; align-items: center; height: 100%; padding-right: 32px; color: var(--fg); flex: none; }
.hd-nav { display: flex; align-items: center; gap: 2px; height: 100%; }
.hd-nav a { position: relative; display: flex; align-items: center; height: 36px; padding: 0 12px; border-radius: var(--eq-radius); font-size: 15px; font-weight: 500; color: var(--fg-2); white-space: nowrap; }
.hd-nav a:hover { color: var(--fg); background: var(--surface-3); }
.hd-nav a[aria-current="page"] { color: var(--ac-text); font-weight: 600; background: var(--ac-soft); }
.hd-search { position: relative; width: 300px; margin-left: auto; }
.hd-search > svg { position: absolute; left: 11px; top: 50%; width: 15px; height: 15px; transform: translateY(-50%); color: var(--fg-3); pointer-events: none; }
.hd-search input { width: 100%; height: 36px; padding: 0 38px 0 34px; border: 1px solid transparent; border-radius: var(--eq-radius); background: var(--surface-3);
  font-size: 13.5px; color: var(--fg); outline: none; -webkit-appearance: none; appearance: none; transition: border-color .12s, box-shadow .12s, background .12s; }
.hd-search input::placeholder { color: var(--fg-3); }
.hd-search input:focus { border-color: var(--ac); background: var(--bg); box-shadow: 0 0 0 3px var(--ac-soft); }
.hd-search kbd { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); padding: 3px 6px; border: 1px solid var(--line-2); border-radius: 4px;
  background: var(--bg); font: 500 12px/1 var(--eq-font-mono); color: var(--fg-3); }
.hd-search input:focus + kbd { display: none; }
.hd-tools { display: flex; align-items: center; gap: 10px; margin-left: 14px; }
.hd-msearch { display: none; }

/* ---------- 5. 显示设置弹层（页头右侧齿轮：语言 / 深浅色 / 时区 / 涨跌色，首页加快讯列表） ---------- */
.hd-set { position: relative; }
.hd-pop { position: absolute; right: 0; top: calc(100% + 12px); z-index: 40; width: 320px; max-width: calc(100vw - 24px); padding: 14px 16px 16px; background: var(--bg);
  border: 1px solid var(--line); border-radius: var(--eq-radius-lg); box-shadow: var(--sh-3); }
.hd-pop h2 { font: 600 13px/1.3 var(--eq-font-display); color: var(--fg); padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.hp-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; font-size: 13px; color: var(--fg-2); }
.hp-row .seg > button { white-space: nowrap; }

/* ---------- 6. 三栏 ---------- */
.grid { display: grid; grid-template-columns: var(--rl-w) minmax(0, 1fr) var(--rr-w); column-gap: var(--gut); align-items: start; padding-top: 20px; padding-bottom: 40px; }
/* 两侧栏都吸顶；比视口高时由 app.js stickTall() 把 --stick-top 设成负值，变成「底部对齐吸住」 */
.rail-l { position: sticky; top: var(--stick-top, calc(var(--top-h) + 20px)); }
.feed { min-width: 0; min-height: calc(100vh - var(--top-h)); padding: 0 var(--card-pad) 8px; }
.rail-r { position: sticky; top: var(--stick-top, calc(var(--top-h) + 20px)); min-width: 0; }

/* 模块卡片 */
.mod { margin-bottom: 16px; padding: 2px 16px 16px; }
.mod-hd { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; }
.mod-hd h2 { font: 600 15px/1.3 var(--eq-font-display); letter-spacing: 0; white-space: nowrap; }
.mod-hd h2 small { margin-left: 8px; font: 500 12px/1 var(--eq-font-sans); color: var(--fg-3); }
.mod-hd .aside { font-size: 12px; color: var(--fg-3); white-space: nowrap; }
.mod-hd a.aside { color: var(--ac-text); font-weight: 500; }
.mod-hd a.aside:hover { text-decoration: underline; text-underline-offset: 3px; }
.mod-ft { margin-top: 8px; font-size: 12px; line-height: 1.5; color: var(--fg-3); }
.mod-ft a { color: var(--ac-text); }
.mod-ft a:hover { text-decoration: underline; text-underline-offset: 2px; }
.mtabs { display: flex; gap: 2px; padding: 2px; border-radius: calc(var(--eq-radius) + 2px); background: var(--surface-3); }
.mtabs button { height: 24px; padding: 0 9px; border-radius: 5px; font-size: 12.5px; color: var(--fg-2); }
.mtabs button:hover { color: var(--fg); }
.mtabs button[aria-pressed="true"] { background: var(--seg-on); color: var(--fg); font-weight: 600; box-shadow: var(--sh-1); }

/* ---------- 7. 左栏：12 个频道 ---------- */
.rail-l .mod { padding: 2px 8px 12px; }
.rail-l .mod-hd { padding: 0 8px; }
.chs-all { margin-bottom: 4px; }
.chs-g { display: flex; align-items: center; gap: 7px; padding: 14px 10px 5px; font-size: 12px; color: var(--fg-3); }
.chs-g::before { content: ""; width: 3px; height: 11px; border-radius: 2px; background: var(--tg); }
.ch { position: relative; display: flex; align-items: center; gap: 8px; width: 100%; min-height: 34px; padding: 4px 10px; border-radius: var(--eq-radius); font-size: 14px; color: var(--fg); text-align: left; }
.ch:hover { background: var(--hover); }
.ch[data-g]::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--tg); flex: none; }
.ch.has-i::before { display: none; }                                   /* 有频道头像时不再画分组色点 */
.ch .chi { width: 20px; height: 20px; border-radius: 50%; flex: none; box-shadow: 0 0 0 1px var(--line); }
/* 频道图标的两种变体（app.js chIcon）：两家交易所 / 两个人叠成一对（左上 + 右下，后一个带底色描边）；线条图标 = 分组色浅底 + 分组色线条 */
.chi-pair { position: relative; display: inline-block; box-shadow: none !important; border-radius: 0 !important; }
.chi-pair img { position: absolute; width: 72%; height: 72%; border-radius: 50%; object-fit: cover; }
.chi-pair img:first-child { left: 0; top: 0; }
.chi-pair img:last-child { right: 0; bottom: 0; box-shadow: 0 0 0 1.5px var(--bg); }
.chi-g { display: inline-flex; align-items: center; justify-content: center; color: var(--tg); background: color-mix(in srgb, var(--tg) 14%, var(--bg)); }
.chi-g svg { width: 74%; height: 74%; }
.chi-alpha { color: #1E2026; background: #F0B90B; }
/* 频道名放不下时折成两行（俄 / 土等语言的频道名比中文长），不截断 */
.ch .nm { flex: 1; min-width: 0; line-height: 1.3; overflow: hidden; overflow-wrap: break-word; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; }
html[lang="ko"] .ch .nm { word-break: keep-all; }   /* 韩文按词（空格）折行，不在字中间断 */
.ch .nm small { font-size: 11px; font-weight: 500; color: var(--fg-3); white-space: nowrap; }   /* 主频道组里财经标注 TradFi */
/* 带标注的频道名只占一行：标注放不下就整个折到被裁掉的第二行（藏起来），不会单独折成一行 */
.ch .nm.has-tag { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 4px; height: 1.3em; }

.ch .n { font: 500 12.5px/1 var(--eq-font-mono); color: var(--fg-3); }
.ch .n.last { font-family: var(--eq-font-sans); font-size: 12px; color: var(--fg-3); }
.ch .hot { width: 6px; height: 6px; border-radius: 50%; background: var(--hot); flex: none; animation: eq-pulse 1.6s infinite; }
/* 有图标的行：「刚有新快讯」红点挂在图标右上角，不占名字的宽度（俄 / 土 / 英的频道名和日期都比中文宽） */
.ch.has-i .hot { position: absolute; left: 26px; top: 50%; margin-top: -12px; width: 7px; height: 7px; box-shadow: 0 0 0 1.5px var(--bg); }
.ch[aria-pressed="true"] { background: var(--ac-soft); color: var(--ac-text); font-weight: 600; }
.chs-all .ch { font-weight: 600; }
.chs-all .ch .n { color: var(--fg-2); }
.ch[aria-pressed="true"] .n, .ch[aria-pressed="true"] .nm small { color: inherit; }

/* ---------- 8. 中栏：栏头 / 过滤 ---------- */
.fh-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 62px; }
.fh-title { display: flex; align-items: baseline; gap: 12px; min-width: 0; }
.fh-title h1 { font: 600 24px/1.2 var(--eq-font-display); letter-spacing: -.01em; white-space: nowrap; }
.fh-title p { font-size: 13px; color: var(--fg-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fh-live { display: flex; align-items: center; gap: 8px; flex: none; }
.ff { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 18px; min-height: 50px; padding: 6px 0; border-top: 1px solid var(--line); }
.ff-right { margin-left: auto; font-size: 12.5px; color: var(--fg-3); white-space: nowrap; }
.ff-right b { font-weight: 500; color: var(--fg-2); }
.sel { position: relative; display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--fg-2); white-space: nowrap; }
.sel select { height: 30px; padding: 0 28px 0 10px; border: 1px solid var(--line-2); border-radius: var(--eq-radius); background: var(--bg); color: var(--fg);
  font-size: 13px; -webkit-appearance: none; appearance: none; cursor: pointer; }
.sel select:hover { border-color: var(--ac-line); }
.sel::after { content: ""; position: absolute; right: 10px; top: 50%; margin-top: -2px; border: 4px solid transparent; border-top-color: var(--fg-2); pointer-events: none; }
.fchips { display: none; }
.fq { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 13px; color: var(--fg-2); }
.fq b { color: var(--fg); }
.fq button { margin-left: auto; font-size: 12.5px; color: var(--ac-text); }
.fq button:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 9. 日期分组头（吸顶） ---------- */
.dh { position: sticky; top: var(--sticky-top); z-index: 10; display: grid; grid-template-columns: calc(var(--when-w) + var(--spine-gap)) 1fr auto;
  align-items: center; height: 44px; background: var(--bg); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.dh b { font: 600 19px/1 var(--eq-font-display); letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.dh span { font-size: 13.5px; color: var(--fg-2); }
.dh span strong { font-weight: 600; color: var(--ac-text); }
.dh em { font-style: normal; font-size: 12.5px; color: var(--fg-3); white-space: nowrap; }
.dh em .num { color: var(--fg-2); }

/* ---------- 10. 快讯条目（核心组件） ---------- */
.fl-list { position: relative; }
.fl { position: relative; display: grid; grid-template-columns: var(--when-w) var(--spine-gap) var(--tags-w) var(--title-gap) minmax(0, 1fr);
  padding: var(--row-pad) 0; }
.fl > .fl-when { grid-column: 1; }
.fl > .fl-tags { grid-column: 3; }
.fl > .fl-body { grid-column: 5; min-width: 0; }
/* 中线（时间线脊柱）+ 条目分隔线：分隔线从中线开始，时间列像刻度尺一样悬在线外；主频道条目和刚到的条目，中线加粗成主色 */
.fl::before { content: ""; position: absolute; left: calc(var(--spine-x) - .5px); top: 0; bottom: 0; width: 1px; background: var(--line); }
.fl::after { content: ""; position: absolute; left: var(--spine-x); right: 0; bottom: 0; height: 1px; background: var(--line); }
.fl:hover { background: linear-gradient(to right, transparent var(--spine-x), var(--hover) var(--spine-x)); }
.fl.is-main::before, .fl.is-fresh::before { left: calc(var(--spine-x) - 1.5px); width: 3px; border-radius: 2px; background: var(--ac); }
.fl-node { position: absolute; left: var(--spine-x); top: calc(var(--row-pad) + 12px); width: 7px; height: 7px; border-radius: 50%; transform: translate(-50%, -50%);
  background: var(--bg); border: 1.5px solid var(--line-2); }
.is-fresh .fl-node { width: 11px; height: 11px; background: var(--ac); border: 2px solid var(--bg); box-shadow: 0 0 0 1px var(--ac); }
.fl-node.sym { display: flex; align-items: center; justify-content: center; width: 19px; height: 25px; border: 0; border-radius: 0; box-shadow: none; background: var(--bg); color: var(--fg); }
.fl:hover .fl-node.sym { background: var(--bg); }
.fl-node.sym svg { width: 16px; height: 16px; }

.fl-when { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; }
.fl-time { display: inline-flex; align-items: center; height: 24px; padding: 0 6px; margin-left: -6px; border-radius: 5px; font: 500 13px/1 var(--eq-font-mono);
  font-variant-numeric: tabular-nums; color: var(--fg-2); white-space: nowrap; }
.fl-time:hover { color: var(--ac-text); }
.is-main .fl-time { color: var(--fg); font-weight: 600; }
.fl-fresh { font: 600 12px/18px var(--eq-font-mono); color: var(--ac-text); }
/* 推送毫秒是模拟值：虚线下划线（与「示例」虚线框同一语言）+ 悬停说明；栏头状态里另有「示例」标 */
.fl-lat { font: 12px/16px var(--eq-font-mono); color: var(--fg-3); text-decoration: underline dashed; text-underline-offset: 3px; text-decoration-thickness: 1px; cursor: help; }

.fl-tags { display: flex; align-items: center; justify-content: space-between; gap: 6px; height: 24px; min-width: 0; }
.fl-body { position: relative; }
.fl-title { font-family: var(--eq-font-text); font-size: 16px; line-height: 24px; font-weight: 400; color: var(--ink-0); overflow-wrap: anywhere; }
.is-main .fl-title { font-weight: 600; color: var(--ink-1); }
.fl-title a:hover { color: var(--ac-text); }
.fl-title .pair { font-family: var(--eq-font-mono); font-size: .9em; font-weight: 600; color: var(--fg); }
.fl-title .pct { margin: 0 .12em; font-family: var(--eq-font-mono); font-size: .94em; font-weight: 600; }
.fl-title .who { color: var(--fg-3); font-weight: 400; }
.ln + .ln { display: block; }
.fl-title .ln + .ln { color: var(--ink-0); font-weight: 400; }
.ip-h1 .ln + .ln { margin-top: 2px; }
.ip-h1 .data .num { font-weight: 600; }
.fl-title .caps { font-size: .94em; letter-spacing: .01em; }   /* 全大写的英文行（财经电讯）：正文衬线体，略小一点不压人 */
/* 程序化监控（价格 / OI）结构化成一行数据：等宽字体本身就是「机器条目」的记号 */
.fl-data { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 14px; row-gap: 0; font: 14px/24px var(--eq-font-mono); color: var(--fg-2); }
.fl-data .sym { font-weight: 600; color: var(--fg); }
.fl-data .f { white-space: nowrap; }
.fl-data .k { margin-right: 5px; font-family: var(--eq-font-sans); font-size: 12.5px; color: var(--fg-3); }
.fl-data .v { color: var(--fg); }
.fl-data .v.up, .fl-data .v.down { font-weight: 600; }
.fl-data .v.up { color: var(--eq-up); } .fl-data .v.down { color: var(--eq-down); }
.fl-data .dim { color: var(--fg-3); }
.fl-coins { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.titles-only .fl-coins, .titles-only .fl-lat { display: none !important; }
/* 只看一个频道时，频道标签列收起，标题更宽 */
.one-ch .fl { --tags-w: 28px; }
.one-ch .fl-tags .tag { display: none; }
.one-ch .fl-tags { justify-content: flex-end; }
.titles-only .fl { --row-pad: 9px; }

/* 悬停操作区：骑在条目上边线的浮动工具条（一半落在上一条的留白里，不压标题）；键盘聚焦时同样出现 */
.fl-act { position: absolute; top: -15px; right: 4px; z-index: 6; display: flex; align-items: stretch; height: 30px; padding: 2px; border: 1px solid var(--line);
  border-radius: calc(var(--eq-radius) + 2px); background: var(--bg); box-shadow: var(--sh-2); opacity: 0; pointer-events: none; transition: opacity .12s; }
.dh + .fl .fl-act, .fl-list > .fl:first-child .fl-act { top: 3px; }
.fl:hover .fl-act, .fl:focus-within .fl-act, .fl.menu-open .fl-act { opacity: 1; pointer-events: auto; }
.fl-act button, .fl-act a { display: inline-flex; align-items: center; gap: 4px; padding: 0 8px; border-radius: 5px; font-size: 12.5px; color: var(--fg-2); white-space: nowrap; }
.fl-act button:hover, .fl-act a:hover { background: var(--ac-soft); color: var(--ac-text); }
.fl-more { display: none; }
.pop { position: absolute; z-index: 25; min-width: 176px; padding: 4px; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--sh-3); }
.pop button, .pop a { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; height: 34px; padding: 0 10px; border-radius: var(--eq-radius); font-size: 13px; color: var(--fg); text-align: left; }
.pop button:hover, .pop a:hover { background: var(--ac-soft); color: var(--ac-text); }
.pop small { font-size: 12px; color: var(--fg-3); }

/* 新消息进场：行展开 + 淡入下落（app.js enterRows，WAAPI）；主色浅底停一会儿再慢慢褪掉 + 中线加粗 + 「+12s」走秒 */
.fl.eq-new { animation: t1-flash 2.4s var(--eq-ease); }
@keyframes t1-flash { 0%, 30% { background: var(--flash); } to { background: transparent; } }

/* 新快讯提示条：时间线顶部主色胶囊条、吸顶；出现时日期头自动让到它下面（不浮在条目上，不挡字） */
.newbar-wrap { position: sticky; top: var(--top-h); z-index: 12; }
.newbar { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 36px; padding: 0 12px; border-radius: var(--eq-radius);
  background: var(--ac); color: var(--ac-fg); box-shadow: var(--sh-2); font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.newbar:hover { background: color-mix(in srgb, var(--ac) 88%, #000); }
.newbar .arr { font-family: var(--eq-font-mono); }
.newbar small { font-size: 12.5px; font-weight: 400; opacity: .85; }
.newbar:not([hidden]) { animation: t1-drop .32s var(--eq-ease); }   /* 出现时从上方轻轻落下（hidden → 显示会重播） */
@keyframes t1-drop { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
.feed.has-new { --sticky-top: calc(var(--top-h) + 36px); }

.more { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 24px 0 16px; }
.more .btn { min-width: 260px; }
.more small { font-size: 12px; color: var(--fg-3); }
.empty { padding: 56px 0; text-align: center; color: var(--fg-3); font-size: 14px; }
.empty button { margin-top: 12px; }

/* ---------- 11. 页脚 ---------- */
.ft { margin-top: 8px; background: var(--bg); border-top: 1px solid var(--line); }
.ft-in { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 32px; padding-top: 36px; padding-bottom: 28px; }
.ft-brand p { margin-top: 14px; max-width: 320px; font-size: 13px; line-height: 1.7; color: var(--fg-2); }
.ft h4 { margin-bottom: 8px; font-size: 12px; font-weight: 600; color: var(--fg-3); letter-spacing: .04em; }
.ft li a { display: inline-block; font-size: 13.5px; line-height: 2; color: var(--fg-2); }
.ft li a:hover { color: var(--ac-text); }
.ft-legal { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding-top: 16px; padding-bottom: 28px;
  border-top: 1px solid var(--line); font-size: 12.5px; color: var(--fg-3); }
.ft-legal .disc { color: var(--fg-2); }
.ft-legal .disc b { font-weight: 600; color: var(--fg); }

/* ---------- 12. 提示 / 操作面板 / 手机底部 tab ---------- */
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 60; max-width: calc(100vw - 32px); padding: 10px 16px; border-radius: 10px; background: var(--invert-bg); color: var(--invert-fg);
  box-shadow: var(--sh-3); font-size: 13px; transform: translate(-50%, 16px); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.sheet { position: fixed; inset: 0; z-index: 55; display: none; }
.sheet.on { display: block; }
.sheet-bg { position: absolute; inset: 0; background: rgba(11, 14, 20, .45); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
.sheet-panel { position: absolute; left: 0; right: 0; bottom: 0; max-height: 80vh; overflow: auto; padding: 4px 16px calc(12px + env(safe-area-inset-bottom));
  background: var(--bg); border-radius: var(--eq-radius-xl) var(--eq-radius-xl) 0 0; box-shadow: var(--sh-3); }
.sheet-hd { padding: 14px 0 10px; font-size: 13px; color: var(--fg-2); line-height: 1.5; border-bottom: 1px solid var(--line); }
.sheet-hd .num { color: var(--fg); font-weight: 600; margin-right: 6px; }
.sheet-panel button, .sheet-panel a { display: flex; align-items: center; justify-content: space-between; width: 100%; height: 48px; border-bottom: 1px solid var(--line); font-size: 15px; color: var(--fg); text-align: left; }
.sheet-panel small { font-size: 12px; color: var(--fg-3); }
.sheet-panel .close { justify-content: center; border-bottom: 0; font-weight: 600; color: var(--ac-text); }
.mtab { display: none; }

/* ---------- 13. 详情页 item.html ---------- */
.ip-crumb { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; font-size: 13px; color: var(--fg-3); }
.ip-crumb ol { display: flex; align-items: center; gap: 8px; min-width: 0; white-space: nowrap; overflow: hidden; }
.ip-crumb li + li::before { content: "/"; margin-right: 8px; color: var(--line-2); }
.ip-crumb a { color: var(--fg-2); } .ip-crumb a:hover { color: var(--ac-text); }
.ip-grid { display: grid; grid-template-columns: var(--rl-w) minmax(0, 1fr) var(--rr-w); column-gap: var(--gut); align-items: start; padding-bottom: 40px; }
.ip-when { position: sticky; top: calc(var(--top-h) + 20px); padding: 16px; }
.ip-main { min-width: 0; padding: 22px 28px 24px; }
.ip-side { min-width: 0; }
.tb-head { display: flex; flex-direction: column; align-items: flex-start; }
.tb-sub { display: contents; }
.tb-date { order: -1; font: 500 13px/1.4 var(--eq-font-mono); color: var(--fg-2); }
.tb-time { display: inline-block; margin-top: 8px; padding: 6px 0 7px; font: 600 34px/1 var(--eq-font-mono); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.tb-tz { margin-top: 8px; font-size: 12.5px; color: var(--fg-3); line-height: 1.6; }
.tb-tz .num { color: var(--fg-2); }
.tb-meta { margin-top: 16px; border-top: 1px solid var(--line); }
.tb-meta div { display: grid; grid-template-columns: 52px 1fr; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13px; line-height: 1.5; }
.tb-meta div:last-child { border-bottom: 0; }
.tb-meta dt { color: var(--fg-3); } .tb-meta dd { margin: 0; color: var(--fg); overflow-wrap: anywhere; }
.tb-meta dd a { color: var(--ac-text); }
.tb-meta dd a:hover { text-decoration: underline; text-underline-offset: 3px; }
.tb-meta dd .num { font-size: 12.5px; }
.tb-meta dd .xi { margin-right: 6px; }
.ip-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ip-tags .tag { height: 26px; padding: 0 9px; font-size: 12.5px; }
.tag-src { gap: 6px; padding-left: 4px !important; }
.tag-src .src { font-size: 18px; }
.ip-h1 { margin-top: 14px; font: 600 32px/1.36 var(--eq-font-text); letter-spacing: -.005em; color: var(--fg); overflow-wrap: anywhere; }
.ip-h1 .caps { font-size: .9em; letter-spacing: .01em; }
.ip-alt { margin-top: 12px; display: grid; gap: 8px; }
.ip-alt p { display: grid; grid-template-columns: 28px 1fr; gap: 6px; font-family: var(--eq-font-text); font-size: 18px; line-height: 1.5; color: var(--fg-2); overflow-wrap: anywhere; }
.ip-alt p i { font: 600 12px/1 var(--eq-font-mono); font-style: normal; color: var(--fg-3); padding-top: 7px; }
.ip-alt p .caps { font-size: .94em; letter-spacing: .01em; }
.ip-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 20px; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ip-bar .acts { display: flex; flex-wrap: wrap; gap: 8px; }
/* 「分享」：展开 / 收起分享卡片 */
.ip-bar .acts [data-do="share"] .caret { width: 0; height: 0; margin-left: 6px; border: 4px solid transparent; border-top-color: currentColor; border-bottom-width: 0; transition: transform .15s; }
.ip-bar .acts [data-do="share"][aria-expanded="true"] { border-color: var(--ac-line); background: var(--ac-soft); color: var(--ac-text); }
.ip-bar .acts [data-do="share"][aria-expanded="true"] .caret { transform: rotate(180deg); }
.sec { margin-top: 30px; scroll-margin-top: calc(var(--top-h) + 16px); }   /* 锚点跳转（如 #share）不被吸顶页头挡住 */
.sec-hd { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.sec-hd h2 { display: flex; align-items: center; gap: 8px; font: 600 17px/1.3 var(--eq-font-display); }
.sec-hd h2::before { content: ""; width: 4px; height: 16px; border-radius: 2px; background: var(--ac); }
.sec-hd small { font-size: 12.5px; color: var(--fg-3); }
/* 涉及币种：横向数据条（价格 / 24h / 市值 / 相关快讯），多币种时逐条叠放 */
.coin-cards { display: grid; gap: 8px; margin-top: 10px; }
.coin { display: grid; grid-template-columns: 132px 1.3fr 1fr 1fr .8fr auto; align-items: center; gap: 16px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); }
.c-sym b { display: block; font: 600 20px/1.1 var(--eq-font-mono); }
.c-sym span { display: block; margin-top: 4px; font-size: 12px; color: var(--fg-3); }
.c-cell .v { display: block; font: 600 16px/1.2 var(--eq-font-mono); white-space: nowrap; }
.c-cell .v.big { font-size: 22px; letter-spacing: -.02em; }
.c-cell .k { display: block; margin-top: 4px; font-size: 12px; color: var(--fg-3); white-space: nowrap; }
.coin-go { justify-self: end; font-size: 13px; color: var(--fg-2); white-space: nowrap; }
.coin-go a, .coin-go button { color: var(--ac-text); font-weight: 500; }
.coin-go a:hover, .coin-go button:hover { text-decoration: underline; text-underline-offset: 3px; }
.ip-mmeta { display: none; }
.dim { color: var(--fg-3); }
.ip-data { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 12px 0 0; }
.ip-data div { padding: 10px 12px; border-radius: 8px; background: var(--surface-3); }
.ip-data dt { font-size: 12px; color: var(--fg-3); }
.ip-data dd { margin: 4px 0 0; font: 600 16px/1.25 var(--eq-font-mono); }
.side-list .data .num { font-weight: 600; }
.ip-h1.is-data { font-family: var(--eq-font-sans); }
.ip-h1.is-data .pair { font-family: var(--eq-font-mono); font-size: .92em; }
.ip-h1.is-data .num { font-size: .94em; }
/* 「同一事件」区块 2026-10-20 按用户要求整个删掉（后端接口仍返回 related，只用来数「相关快讯」条数） */
/* 分享卡片预览：卡片本身是要生成的 PNG（黑白品牌样式），外面套一层圆角预览框 */
/* 分享卡外框 / 按钮列用中性类名：.share-side 这类名字会被广告拦截器的社交规则库整列隐藏（2026-10-20 实测 AdGuard 社交、Fanboy 社交 / 烦扰元素） */
.pcard { display: grid; grid-template-columns: minmax(0, 1fr) 200px; gap: 20px; margin-top: 14px; align-items: start; }
.scard { display: block; width: 100%; height: auto; aspect-ratio: auto 1200 / 630; border: 1px solid var(--line-2); border-radius: 10px; background: #fff; box-shadow: var(--sh-2); }
.scard.dk { background: #0B0E14; border-color: #0B0E14; }   /* 图片本身是后端生成的 PNG（/api/v1/news/{no}/card.png），这里只给预览框；内容多的快讯卡片会加高，加载后按图片实际比例显示 */
.pc-acts { display: grid; gap: 10px; align-content: start; }
.pc-acts .seg { width: 100%; } .pc-acts .seg button { flex: 1; }
.pc-acts .btn { width: 100%; justify-content: space-between; }
.pc-acts p { font-size: 12px; color: var(--fg-3); line-height: 1.6; }
/* 上一条 / 下一条 */
.side-list li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.side-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.side-list .t { font: 500 12.5px/1 var(--eq-font-mono); color: var(--fg-3); }
.side-list a { display: block; margin-top: 5px; font-family: var(--eq-font-text); font-size: 13.5px; line-height: 1.55; color: var(--fg); overflow-wrap: anywhere; }
.side-list a:hover { color: var(--ac-text); }

.nf { padding: 80px 0; text-align: center; }
.nf h1 { font: 600 24px/1.3 var(--eq-font-display); }
.nf p { margin-top: 8px; color: var(--fg-3); }
.nf .btn { margin-top: 20px; }

/* ---------- 14. 响应式 ---------- */
@media (max-width: 1360px) {
  .t1 { --rl-w: 212px; --rr-w: 312px; --gut: 16px; --card-pad: 18px; --tags-w: 112px; }
  .hd-search { width: 240px; }
}
/* 两栏：频道改成横向 chip，放在过滤条上方 */
@media (max-width: 1279px) {
  .grid { grid-template-columns: minmax(0, 1fr) var(--rr-w); }
  .rail-l { display: none; }
  .fchips { display: flex; gap: 6px; overflow-x: auto; padding: 0 0 12px; scrollbar-width: none; }
  .fchips::-webkit-scrollbar { display: none; }
  .fchips button { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 13px; white-space: nowrap; flex: none; }
  .fchips button[data-g]::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--tg); }
  .fchips button.has-i::before { display: none; }
  .fchips .chi { width: 16px; height: 16px; border-radius: 50%; }
  .fchips button .n { font: 12px/1 var(--eq-font-mono); color: var(--fg-3); }
  .fchips button[aria-pressed="true"] { background: var(--ac-soft); color: var(--ac-text); border-color: var(--ac-line); font-weight: 600; }
  .fchips button[aria-pressed="true"] .n { color: inherit; }
  .ip-grid { grid-template-columns: var(--rl-w) minmax(0, 1fr); }
  .ip-side { grid-column: 1 / -1; padding: 20px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--gut); }
  .hd-nav a { padding: 0 10px; }
  .hd-logo { padding-right: 20px; }
}
@media (max-width: 1100px) {
  .hd-search { width: 200px; }
}
/* 单栏：右栏模块排到时间线下方，两列网格 */
@media (max-width: 1023px) {
  .grid { grid-template-columns: minmax(0, 1fr); }
  .feed { min-height: 0; }
  .rail-r { position: static; padding: 20px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--gut); }
  .hd-nav { display: none; }
  .hd-search { width: auto; flex: 1; margin-left: 8px; }
  .ip-grid { grid-template-columns: minmax(0, 1fr); row-gap: 16px; }
  .ip-when { position: static; }
  .tb { display: grid; grid-template-columns: auto 1fr; gap: 0 24px; align-items: end; }
  /* 单栏时元信息排成三列，标题不被 6 行元信息压到首屏下方 */
  .tb-meta { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 24px; }
  .ft-in { grid-template-columns: 1fr 1fr 1fr; }
  .ft-brand { grid-column: 1 / -1; }
}

/* 手机（按 390 设计） */
@media (max-width: 760px) {
  .t1 { --pad: 16px; --hd-h: 52px; font-size: 15px; }
  .t1 { padding-bottom: calc(60px + env(safe-area-inset-bottom)); }
  .hd-logo { padding-right: 0; margin-right: auto; }
  .hd-search { display: none; }
  .hd-search.open { display: block; position: absolute; left: 0; right: 0; top: var(--hd-h); z-index: 35; width: auto; margin: 0; padding: 8px 16px; background: var(--bg); border-bottom: 1px solid var(--line); }
  .hd-search.open > svg { left: 27px; }
  .hd-search.open input { height: 42px; font-size: 16px; }
  .hd-search kbd { display: none; }
  .hd-tools { gap: 6px; margin-left: 8px; }
  .hd-tools .btn-pri { display: none; }
  .hd-msearch { display: inline-flex; width: 40px; height: 40px; border: 0; }
  .hd-set .ib { width: 40px; height: 40px; border: 0; }   /* 手机：齿轮和搜索一样去掉边框 */
  .hd-pop { top: calc(100% + 6px); }
  .grid { padding-top: 0; }
  /* 手机：时间线卡片铺满屏宽（不留圆角和侧边线） */
  .feed { margin: 0 calc(var(--pad) * -1); padding: 0 var(--pad); border-radius: 0; border-width: 0 0 1px; box-shadow: none; }
  .fh-top { min-height: 0; padding: 10px 0 8px; }
  .fh-title p { display: none; }
  .fh-title h1 { font-size: 21px; }
  .fh-live .live { height: 34px; }
  .snd { width: 40px; height: 40px; }
  .fchips { margin: 0 calc(var(--pad) * -1); padding: 0 var(--pad) 10px; }
  .fchips button { height: 40px; padding: 0 12px; font-size: 14px; }
  .ff { display: none; }
  .fchips { padding-bottom: 12px; }
  .fl-tags .tag, .fl-time { position: relative; }
  .fl-tags .tag::after, .fl-time::after { content: ""; position: absolute; inset: -10px -4px; }
  .chip { height: 32px; padding: 0 10px; font-size: 12.5px; }
  .dh { grid-template-columns: auto 1fr auto; gap: 10px; height: 42px; }
  .dh b { font-size: 18px; }
  .newbar { height: 40px; font-size: 14px; }
  .feed.has-new { --sticky-top: calc(var(--top-h) + 40px); }
  /* 手机条目：第一行 时间 + 频道 + 来源，第二行起标题 */
  .fl { display: block; padding: 12px 0 13px; }
  .fl::before, .fl-node { display: none; }
  .fl-node.sym { display: flex; position: static; float: left; width: 16px; height: 24px; margin: 0 8px 0 -2px; transform: none; background: none; }
  .fl-node.sym svg { width: 14px; height: 14px; }
  .fl::after { left: 0; }
  .fl:hover { background: none; }
  .fl.is-main, .fl.is-fresh { box-shadow: inset 3px 0 0 var(--ac); padding-left: 12px; }
  .fl-when { flex-direction: row; align-items: center; gap: 8px; float: left; height: 24px; margin-right: 8px; }
  .fl-time { font-size: 13px; }
  .fl-fresh, .fl-lat { line-height: 24px; }
  .fl-tags { justify-content: flex-start; height: 24px; padding-right: 44px; }
  .fl-body { clear: both; padding-top: 6px; }
  .fl-title { font-size: 16px; line-height: 1.55; }
  .fl-data { font-size: 14px; line-height: 1.6; column-gap: 12px; }
  .fl-coins { flex-wrap: nowrap; overflow-x: auto; margin-right: calc(var(--pad) * -1); padding-right: var(--pad); scrollbar-width: none; }
  .fl-coins::-webkit-scrollbar { display: none; }
  .fl-act { display: none; }
  .fl-more { position: absolute; top: 4px; right: -8px; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 40px; color: var(--fg-2); }
  .fl-more svg { width: 18px; height: 18px; }
  .rail-r { display: block; padding-top: 16px; }
  .rail-r .mod { margin-bottom: 16px; }
  /* 底部 tab：快讯 / 频道 / 行情（10-22 删掉站内收藏后「我的」也去掉了） */
  .mtab { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: repeat(3, 1fr);
    height: calc(56px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); border-top: 1px solid var(--line);
    background: color-mix(in srgb, var(--bg) 90%, transparent); -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px); }
  .mtab a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 12px; color: var(--fg-3); }
  .mtab a svg { width: 20px; height: 20px; }
  .mtab a[aria-current] { color: var(--ac-text); font-weight: 600; }
  .mtab a[aria-current] svg { stroke-width: 2; }
  /* tab 切换：只显示当前视图 */
  [data-mtab="feed"] .rail-l, [data-mtab="feed"] .rail-r { display: none; }
  [data-mtab="ch"] .feed, [data-mtab="ch"] .rail-r { display: none; }
  [data-mtab="ch"] .rail-l { display: block; position: static; padding: 16px 0 0; }
  [data-mtab="ch"] .rail-l .ch { min-height: 46px; font-size: 15px; }
  .ft-in { grid-template-columns: 1fr 1fr; gap: 20px 24px; padding-top: 24px; }
  .ft-legal { flex-direction: column; align-items: flex-start; }
  /* 详情页 */
  .sec-hd { flex-direction: column; align-items: flex-start; gap: 2px; }
  .ip-crumb { font-size: 12.5px; }
  .tb-head { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 14px; }
  .tb-sub { display: block; }
  .tb-time { margin-top: 0; }
  .tb .tb-meta { display: none; }
  .ip-main { padding: 18px 16px 20px; }
  .ip-when { padding: 14px 16px; }
  .ip-mmeta { display: block; margin-top: 10px; font-size: 12.5px; color: var(--fg-3); }
  .ip-bar { flex-direction: column; align-items: stretch; }
  .ip-bar .acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .ip-bar .acts .btn { width: 100%; }
  .ip-bar .acts [data-do="share"] { grid-column: 1 / -1; justify-content: center; }
  .coin { grid-template-columns: 1fr 1fr; gap: 12px 16px; }
  .coin .c-sym { grid-column: 1 / -1; display: flex; align-items: baseline; gap: 10px; }
  .coin .coin-go { grid-column: 1 / -1; justify-self: start; }
  .ip-crumb ol li:nth-child(2) { display: none; }
  .tb { display: block; }
  .tb-time { font-size: 30px; }
  .ip-h1 { font-size: 24px; line-height: 1.42; }
  .ip-alt p { font-size: 16px; grid-template-columns: 26px 1fr; }
  .ip-bar .acts .btn { height: 40px; }
  .rel li { grid-template-columns: 76px minmax(0, 1fr) auto; gap: 4px 10px; }
  .rel li .tag { grid-column: 2; justify-self: start; }
  .rel li .tx { grid-column: 1 / -1; }
  .rel li .dt { grid-column: 3; grid-row: 1; }
  .pcard { grid-template-columns: 1fr; }
  .pc-acts { grid-template-columns: 1fr 1fr; }
  .pc-acts .seg, .pc-acts p { grid-column: 1 / -1; }
  .ip-side { display: block; }
  /* 点击区域 ≥ 40px（简报 4.8）：控件直接做到 40px；视觉上不宜放大的（币种芯片、详情页频道标签）
     用 ::after 向外扩出点击区。正文里的行内标题链接按 WCAG 2.5.8「行内目标」例外处理，只加上下内边距扩点击区、不改行高。 */
  .btn, .btn-sm, .seg-sm > button, .chk, .mtabs button { height: 40px; }
  .chip, .ip-tags .tag { position: relative; }
  .chip::after { content: ""; position: absolute; inset: -4px 0; }
  .ip-tags .tag::after { content: ""; position: absolute; inset: -8px -2px; }
  /* 芯片行是横滑容器，会裁掉溢出的 ::after：上下各留 4px 内边距，再用外边距抵消，视觉位置不变 */
  .fl-coins { margin-top: 4px; margin-bottom: -4px; padding-top: 4px; padding-bottom: 4px; }
  .coin-go, .mod-hd a.aside, .ip-crumb ol a, .ft li a { display: inline-flex; align-items: center; min-height: 40px; }
  .fl-title a { padding: 10px 0; }
}
@media (prefers-reduced-motion: reduce) {
  .newbar, .live .dot, .ch .hot, .toast { animation: none !important; transition: none !important; }   /* 新消息的浅底褪色不算「动」，保留 */
}

/* =========================================================================
   15. 最终 Demo：全站规则补丁（05 评审后定下的规则）
   ========================================================================= */
/* 中文字距为 0：05 各模板残留的 0.02–0.06em 字距只保留给英文大写标签 */
html[lang="zh-CN"] .live, html[lang="zh-CN"] .ft h4,
html[lang="zh-CN"] .ip-h1, html[lang="zh-CN"] .fh-title h1 { letter-spacing: 0; }
/* 只给价格类涨跌上色：OI 变化用墨色 + ▲▼ */
.ink { color: var(--fg); }
.fl-data .v.ink { font-weight: 600; }

/* 页头导航里的「监控 · 规划中」（虚线框 = 规划中，与「示例」同一语言） */
.hd-soon { display: flex; align-items: center; gap: 6px; padding: 0 12px; font-size: 15px; font-weight: 500; color: var(--fg-3); white-space: nowrap; cursor: default; }
.hd-soon i { font-style: normal; font-size: 12px; line-height: 18px; padding: 0 6px; border: 1px dashed var(--line-2); border-radius: 4px; }
@media (max-width: 1279px) { .hd-soon { padding: 0 10px; } .hd-soon i { display: none; } }
@media (max-width: 1100px) { .hd-soon { display: none; } }


/* =========================================================================
   16. 行情模块（mkt.js）：市值矩阵 / 图例 / 悬停提示 / 涨跌榜 / 币种详情
   ========================================================================= */
.t1 { --tl-strong: #FFFFFF;
  /* 清算「交易所分布」的分类色（前五家 + 其他） */
  --x0: var(--ac-text); --x1: #7C3AED; --x2: #0E9AA7; --x3: #E08A00; --x4: #DB2777; --x5: var(--line-2); }
[data-theme="dark"] .t1 { --tl-strong: #0B0E14; --x1: #A584FF; --x2: #33C3D6; --x3: #F2B35B; --x4: #F472B6; --x5: #3A465C; }

/* 市值矩阵：正方化树图，面积 = 市值；格子之间 1px 底色缝（沿用 T4 热区的格子语法），整块圆角裁切 */
.tm { position: relative; width: 100%; background: var(--bg); border-radius: 8px; overflow: hidden; }
.tm-page { height: clamp(440px, 64vh, 660px); }
.tm-mini { height: 236px; }
.tl { position: absolute; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start; padding: var(--pad, 6px); text-align: left;
  box-shadow: inset 0 0 0 1px var(--bg); color: var(--fg); background: var(--surface-3); cursor: pointer; }
.tl b { font: 600 var(--fs)/1.04 var(--eq-font-mono); letter-spacing: -.01em; white-space: nowrap; }
.tl .pc { margin-top: .22em; font: 500 var(--fp)/1.15 var(--eq-font-mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tl .px { margin-top: .3em; font: 400 var(--fx)/1.3 var(--eq-font-mono); white-space: nowrap; opacity: .8; }
.tl .nm { margin-top: auto; max-width: 100%; font: 400 var(--fx)/1.3 var(--eq-font-sans); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: .75; }
.tl .px sub { font-size: .72em; vertical-align: -.25em; line-height: 0; }
.tl[data-d="u"][data-l="1"] { background: color-mix(in srgb, var(--eq-up) 13%, var(--bg)); }
.tl[data-d="u"][data-l="2"] { background: color-mix(in srgb, var(--eq-up) 30%, var(--bg)); }
.tl[data-d="u"][data-l="3"] { background: color-mix(in srgb, var(--eq-up) 55%, var(--bg)); }
.tl[data-d="u"][data-l="4"] { background: var(--eq-up); color: var(--tl-strong); }
.tl[data-d="d"][data-l="1"] { background: color-mix(in srgb, var(--eq-down) 13%, var(--bg)); }
.tl[data-d="d"][data-l="2"] { background: color-mix(in srgb, var(--eq-down) 30%, var(--bg)); }
.tl[data-d="d"][data-l="3"] { background: color-mix(in srgb, var(--eq-down) 55%, var(--bg)); }
.tl[data-d="d"][data-l="4"] { background: var(--eq-down); color: var(--tl-strong); }
.tl:hover, .tl:focus-visible { outline: 2px solid var(--fg); outline-offset: -2px; z-index: 2; }
.tl[data-l="4"]:hover, .tl[data-l="4"]:focus-visible { outline-color: var(--tl-strong); }

/* 色阶图例：9 格（跌 4 级 · 平 · 涨 4 级），刻度落在格子交界处 */
.mk-scale { position: relative; width: 324px; max-width: 100%; }
.mk-scale .steps { display: flex; height: 10px; }
.mk-scale .steps i { flex: 1; }
.mk-scale .s-d4 { background: var(--eq-down); } .mk-scale .s-d3 { background: color-mix(in srgb, var(--eq-down) 55%, var(--bg)); }
.mk-scale .s-d2 { background: color-mix(in srgb, var(--eq-down) 30%, var(--bg)); } .mk-scale .s-d1 { background: color-mix(in srgb, var(--eq-down) 13%, var(--bg)); }
.mk-scale .s-n0 { background: var(--surface-3); }
.mk-scale .s-u1 { background: color-mix(in srgb, var(--eq-up) 13%, var(--bg)); } .mk-scale .s-u2 { background: color-mix(in srgb, var(--eq-up) 30%, var(--bg)); }
.mk-scale .s-u3 { background: color-mix(in srgb, var(--eq-up) 55%, var(--bg)); } .mk-scale .s-u4 { background: var(--eq-up); }
.mk-scale .ticks { position: relative; display: block; height: 18px; font: 12px/1 var(--eq-font-mono); color: var(--fg-3); }
.mk-scale .ticks span { position: absolute; top: 5px; transform: translateX(-50%); white-space: nowrap; }
.mk-scale .ticks span:nth-child(1) { left: 11.11%; } .mk-scale .ticks span:nth-child(2) { left: 22.22%; } .mk-scale .ticks span:nth-child(3) { left: 33.33%; }
.mk-scale .ticks span:nth-child(4) { left: 50%; } .mk-scale .ticks span:nth-child(5) { left: 66.67%; } .mk-scale .ticks span:nth-child(6) { left: 77.78%; }
.mk-scale .ticks span:nth-child(7) { left: 88.89%; }

/* 悬停提示（只在有鼠标的设备上出现；触屏点格子直接打开币种详情） */
.mk-tip { position: fixed; left: 0; top: 0; z-index: 70; min-width: 236px; padding: 10px 12px 12px; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--sh-3);
  font-size: 12.5px; line-height: 1.5; color: var(--fg); pointer-events: none; }
.mk-tip[hidden] { display: none; }
.mt-hd { display: flex; align-items: baseline; gap: 8px; }
.mt-hd b { font: 600 15px/1.2 var(--eq-font-mono); }
.mt-hd span { color: var(--fg-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mt-hd em { margin-left: auto; font: normal 12px/1 var(--eq-font-mono); color: var(--fg-3); }
.mt-px { margin-top: 4px; font: 600 20px/1.2 var(--eq-font-mono); }
.mt-ch { display: flex; gap: 14px; margin-top: 4px; font: 12.5px/1.4 var(--eq-font-mono); }
.mt-ch i, .mt-kv span { font-style: normal; color: var(--fg-3); }
.mt-ch i { margin-right: 5px; font-family: var(--eq-font-sans); }
.mt-kv { display: flex; gap: 14px; margin-top: 2px; }
.mt-kv b { font: 500 12.5px var(--eq-font-mono); color: var(--fg); }
.mt-sp { margin-top: 8px; }
.mt-sp svg { width: 100%; height: 40px; }

/* 迷你走势：7 日价格（价格类，允许按 7 日涨跌上色） */
.spark { display: block; overflow: visible; color: var(--fg-3); }
.spark path { fill: none; stroke: currentColor; stroke-width: 1.25; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.spark.up { color: var(--eq-up); } .spark.down { color: var(--eq-down); }

/* 涨跌榜 / 列表视图：同一张表，按所在容器宽度收起列（容器查询） */
.mv-col, #mvMini { container-type: inline-size; min-width: 0; }
.mv { width: 100%; border-collapse: collapse; }
.mv th { height: 32px; padding: 0 8px; font-size: 12px; font-weight: 500; color: var(--fg-3); text-align: left; white-space: nowrap; border-bottom: 1px solid var(--line); }
.mv td { height: 40px; padding: 0 8px; border-bottom: 1px solid var(--line); font: 13px/1.2 var(--eq-font-mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.mv th:first-child, .mv td:first-child { padding-left: 0; }
.mv th:last-child, .mv td:last-child { padding-right: 0; }
.mv .r { text-align: right; }
.mv tbody tr { cursor: pointer; }
.mv tbody tr:hover { background: var(--hover); }
.mv .rk { width: 30px; color: var(--fg-3); }
.mv tbody tr:nth-child(-n+3) .rk { color: var(--fg); font-weight: 600; }
.mv .co { font-family: var(--eq-font-sans); }
.mv .co .sym { font: 600 13.5px/1 var(--eq-font-mono); color: var(--fg); }
.mv .co .sym:hover { color: var(--ac-text); }
.mv .co .nm { display: inline-block; max-width: 112px; margin-left: 8px; overflow: hidden; text-overflow: ellipsis; vertical-align: -3px; font-size: 12px; color: var(--fg-3); }
/* 币安定价标记：小号币安 logo（悬停说明现货 / 永续） */
.bnb { display: inline-flex; align-items: center; margin-left: 6px; vertical-align: -1px; font-size: 12px; cursor: help; }
.bnb .xi { vertical-align: 0; }
.mv .cg { width: 1%; }   /* 「涨跌」列不用 .ch：.ch 是左栏频道按钮 */
.mv td.cg b { display: inline-block; min-width: 64px; font-weight: 600; }
.mbar { display: inline-block; width: 52px; height: 6px; margin-right: 10px; vertical-align: 1px; border-radius: 3px; background: var(--surface-3); overflow: hidden; }
.mbar i { display: block; height: 100%; }
.mbar i.up { background: var(--eq-up); } .mbar i.down { background: var(--eq-down); margin-left: auto; }
.mv .mc small { margin-left: 6px; font-size: 12px; color: var(--fg-3); }
.mv .vol { color: var(--fg-2); }
.mv .sp { width: 92px; }
.mv .sp .spark { margin-left: auto; }
.mv .dim { color: var(--fg-3); }
.mk-empty { padding: 28px 0; font-size: 13px; color: var(--fg-3); text-align: center; }
/* 列宽估算：# 30 · 币种 210 · 价格 90 · 涨跌 142 · 市值 110 · 成交额 80 · 走势 100 ≈ 762px，放不下就从右往左收 */
@container (max-width: 780px) { .mv .vol { display: none; } }
@container (max-width: 690px) { .mv .sp { display: none; } }
@container (max-width: 590px) { .mv .mc { display: none; } .mv .co .nm { max-width: 84px; } }
@container (max-width: 470px) { .mv .co .nm, .mv .mbar { display: none; } .mv td.cg b { min-width: 0; } }
/* 首页右栏的迷你榜：只有 # / 币种 / 价格 / 涨跌 */
.mv-mini td { height: 36px; }
.mv-mini .co .nm, .mv-mini .mbar { display: none; }

/* 首页右栏「市场」模块 */
.mk-mini-stats { display: flex; justify-content: space-between; gap: 8px; padding: 2px 0 8px; font-size: 12.5px; color: var(--fg-3); white-space: nowrap; }
.mk-mini-stats b { margin: 0 2px; font: 600 13px/1 var(--eq-font-mono); color: var(--fg); }
.mk-mini-stats .up, .mk-mini-stats .down { font: 12.5px/1 var(--eq-font-mono); }
.mk-rail-ft { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; font-size: 12px; color: var(--fg-3); }
.mk-live { height: 26px; padding: 0 9px; font-size: 12px; }
/* 行情数据状态（不是按钮）：实时 = 反白 + 跳动圆点；重连中 / 不可用 = 虚线灰 */
.mk-live { cursor: default; }
.mk-live[data-st="live"] { background: var(--ac-soft); color: var(--ac-text); border-color: var(--ac-line); }
.mk-live[data-st="live"] .dot { animation: eq-pulse 1.6s infinite; }
.mk-live[data-st="retry"], .mk-live[data-st="down"] { color: var(--fg-3); border-color: var(--fg-3); border-style: dashed; }

/* 币种详情：桌面右侧抽屉，手机底部面板 */
.cd { position: fixed; inset: 0; z-index: 58; display: none; }
.cd.on { display: block; }
html.cd-open { overflow: hidden; }
.cd-bg { position: absolute; inset: 0; background: rgba(11, 14, 20, .45); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
.cd-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(440px, 100vw); overflow: auto; padding: 0 24px 28px; background: var(--bg); box-shadow: var(--sh-3); }
.cd-hd { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 10px; min-height: 64px; background: var(--bg); border-bottom: 1px solid var(--line); }
.cd-hd h2 { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.cd-hd h2 b { font: 600 24px/1.1 var(--eq-font-mono); }
.cd-hd h2 span { font-size: 14px; font-weight: 400; color: var(--fg-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cd-rk { padding: 2px 8px; border-radius: 999px; background: var(--surface-3); font: 12px/1.4 var(--eq-font-mono); color: var(--fg-2); }
.cd-x { margin-left: auto; width: 40px; height: 40px; }
.cd-tags { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 12px; }
.cd-px { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; padding: 14px 0 0; }
.cd-px .num { font: 600 34px/1.1 var(--eq-font-mono); letter-spacing: -.02em; }
.cd-px > span:nth-child(2) { font: 600 16px/1 var(--eq-font-mono); }
.cd-px small { font: 12px/1 var(--eq-font-mono); color: var(--fg-3); }
.cd-ch { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 14px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cd-ch div { padding: 9px 0 10px; }
.cd-ch div + div { padding-left: 14px; border-left: 1px solid var(--line); }
.cd-ch span:first-child { display: block; font: 12px/1.3 var(--eq-font-mono); color: var(--fg-3); }
.cd-ch span:last-child { font: 600 15px/1.4 var(--eq-font-mono); }
.cd-sp { margin-top: 14px; }
.cd-sp .spark { width: 100%; height: 88px; }
.cd-lh { display: flex; justify-content: space-between; margin-top: 6px; font-size: 12px; color: var(--fg-3); }
.cd-lh b { font: 500 12.5px var(--eq-font-mono); color: var(--fg-2); }
.cd-kv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; margin: 12px 0 0; }
.cd-kv div { padding: 10px 0; border-bottom: 1px solid var(--line); }
.cd-kv dt { font-size: 12px; color: var(--fg-3); }
.cd-kv dd { margin: 3px 0 0; font: 600 15px/1.3 var(--eq-font-mono); }
.cd-kv dd small { margin-left: 6px; font: 400 12px var(--eq-font-sans); color: var(--fg-3); }
.cd-news h3 { display: flex; align-items: baseline; gap: 8px; margin-top: 24px; padding-top: 12px; border-top: 1px solid var(--line); font: 600 15px/1.3 var(--eq-font-display); }
.cd-news h3 small { font: 12px var(--eq-font-mono); color: var(--fg-3); }
.cd-news li a { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); }
.cd-news li a:hover .hl { color: var(--ac-text); }
.cd-news time { margin-right: 8px; font: 500 12.5px/1 var(--eq-font-mono); color: var(--fg-2); }
.cd-news .tag { vertical-align: 1px; }
.cd-news .hl { display: block; margin-top: 5px; font-family: var(--eq-font-text); font-size: 14px; line-height: 1.55; color: var(--fg); overflow-wrap: anywhere; }
.cd-news .hl .data { font: 13px/1.6 var(--eq-font-mono); }
.cd-none { padding: 14px 0; font-size: 13px; color: var(--fg-3); }
.cd-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.cd-acts .btn { height: 40px; }
.cd-note { margin-top: 14px; font-size: 12px; line-height: 1.6; color: var(--fg-3); }

/* 机器条目一句话标题（行情异动列、币种详情）：等宽 + 交易对加粗 */
.data { font-family: var(--eq-font-sans); }   /* 程序化监控的一句话（价格 / OI）是数据，不用正文衬线体 */
.data .pair { font-weight: 600; color: var(--fg); }

/* =========================================================================
   17. 行情页 markets.html
   ========================================================================= */
.mk-page { padding-top: 20px; padding-bottom: 48px; }
.mk-hd { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; min-height: 58px; padding: 4px 0 16px; }
.mk-hd-t { display: flex; align-items: baseline; gap: 12px; min-width: 0; }
.mk-hd h1 { font: 600 24px/1.2 var(--eq-font-display); white-space: nowrap; }
.mk-hd p { font-size: 13px; color: var(--fg-3); }
.mk-tools, .blk-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; }
/* 概览三卡（参考 CoinGecko 首页的总市值 / 涨幅榜卡、CoinMarketCap 的 Market Status / Derivatives 卡）：等高卡片 */
.mk-hl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gut); margin-bottom: var(--gut); }
.hl { min-width: 0; display: flex; flex-direction: column; padding: 16px 18px; }
.hl-hd { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; min-width: 0; }
.hl-hd h2 { font: 600 14.5px/1.3 var(--eq-font-display); white-space: nowrap; }
.hl-hd span, .hl-hd a { min-width: 0; font-size: 12px; color: var(--fg-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hl-hd a:hover { color: var(--ac-text); }
.hl-big { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; margin-top: 8px; }
.hl-big b { font: 400 28px/1.1 var(--eq-font-display); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.hl-big > span { font: 600 13px/1 var(--eq-font-mono); }
.hl-big small { font: 12px/1 var(--eq-font-mono); color: var(--fg-3); }
.hl-chart { position: relative; flex: 1 0 78px; min-height: 78px; margin-top: 10px; }   /* 四卡等高：走势图吃掉多出来的高度 */
.hl-chart svg { display: block; width: 100%; height: 100%; }
.hl-chart .hi, .hl-chart .lo { position: absolute; right: 0; padding-left: 4px; background: var(--bg); font-size: 12px; line-height: 1; color: var(--fg-3); }
.hl-chart .hi { top: 0; } .hl-chart .lo { bottom: 2px; }
.area { color: var(--fg-3); }
.area.up { color: var(--eq-up); } .area.down { color: var(--eq-down); }
.area .l { fill: none; stroke: currentColor; stroke-width: 1.5; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.area .a { fill: currentColor; opacity: .1; }
.hl-x { display: flex; justify-content: space-between; margin-top: 4px; font: 12px/1 var(--eq-font-mono); color: var(--fg-3); }
.hl-kv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; margin: auto 0 0; padding-top: 10px; }
.hl-kv div { min-width: 0; padding: 6px 0; border-top: 1px solid var(--line); }
.hl-kv dt { font-size: 12px; color: var(--fg-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hl-kv dd { display: flex; align-items: center; gap: 8px; margin: 2px 0 0; font: 600 14px/1.3 var(--eq-font-mono); white-space: nowrap; }
.hl-kv .dom { max-width: 64px; }
.hl-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 6px; }
.hl-3 dd { gap: 5px; font: 500 12.5px/1.3 var(--eq-font-sans); }
.hl-3 dd b { font: 600 14px/1.3 var(--eq-font-mono); }
/* 恐惧与贪婪：半圆表只用灰阶（不是涨跌），当前段墨色 */
/* 恐惧与贪婪五档颜色（用户 10-16 要求上色）：恐惧用「跌」色、贪婪用「涨」色，跟随显示设置里的涨跌色（默认绿涨红跌 → 恐惧红、贪婪绿）；
   中性用琥珀色，中间两档是涨 / 跌色混入 35% 琥珀（橙 / 黄绿），与常见恐惧贪婪表的红→橙→黄→浅绿→绿一致；浅色下琥珀取深一档，五档文字在白底上都 ≥ 4.5:1。
   变量定义在根元素上：data-theme / data-updown 也在根元素，var() 在这里就按当前主题和涨跌色算好 */
:root { --fng-mid: #8C6600; --fng-mix: #B08000; --fng-0: var(--eq-down); --fng-1: color-mix(in srgb, var(--eq-down) 65%, var(--fng-mix)); --fng-2: var(--fng-mid);
  --fng-3: color-mix(in srgb, var(--eq-up) 65%, var(--fng-mix)); --fng-4: var(--eq-up); }
[data-theme="dark"] { --fng-mid: #E3B341; --fng-mix: #E0A800; }
.fz0 { --fz: var(--fng-0); } .fz1 { --fz: var(--fng-1); } .fz2 { --fz: var(--fng-2); } .fz3 { --fz: var(--fng-3); } .fz4 { --fz: var(--fng-4); }
.fzc { color: var(--fz); }
.fng { display: flex; align-items: center; gap: 14px; margin-top: 6px; }
.fng-g { width: 148px; flex: none; }
.gauge { display: block; width: 100%; height: auto; }
.gauge path { fill: none; stroke-width: 13; }
.gauge .g0 { stroke: var(--fng-0); } .gauge .g1 { stroke: var(--fng-1); } .gauge .g2 { stroke: var(--fng-2); }
.gauge .g3 { stroke: var(--fng-3); } .gauge .g4 { stroke: var(--fng-4); }
.gauge path { opacity: .3; }
.gauge path.on { opacity: 1; }
.gauge line { stroke: var(--fg); stroke-width: 2.5; stroke-linecap: square; }
.gauge circle { fill: var(--fg); }
.fng-v { min-width: 0; }
.fng-v b { display: block; font: 400 34px/1 var(--eq-font-display); font-variant-numeric: tabular-nums; color: var(--fz, var(--fg)); }
.fng-v span { display: block; margin-top: 4px; font-size: 14px; font-weight: 600; color: var(--fz, var(--fg)); }
.fng-v small { display: block; margin-top: 2px; font: 12px/1.3 var(--eq-font-mono); color: var(--fg-3); white-space: nowrap; }
.fng-hist { display: flex; align-items: flex-end; gap: 2px; flex: 1 0 36px; min-height: 36px; margin: 4px 0 10px; }
.fng-hist i { flex: 1; background: color-mix(in srgb, var(--fz, var(--fg)) 38%, var(--bg)); }
.fng-hist i.on { background: var(--fz, var(--fg)); }
.hl-br { margin-top: auto; padding-top: 8px; border-top: 1px solid var(--line); }
.hl-br-t { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--fg-3); white-space: nowrap; }
.hl-br .brb { width: 100%; height: 6px; margin-top: 7px; }
.hl-br-n { display: flex; justify-content: space-between; margin-top: 5px; font: 600 13px/1.3 var(--eq-font-mono); }
.hl-ft { margin-top: auto; padding-top: 8px; font-size: 12px; line-height: 1.5; color: var(--fg-3); }
/* 能看历史的卡（data-hx）：整张卡可点，标题行右侧「历史 ›」 */
.hl[data-hx] { cursor: pointer; transition: border-color .15s var(--eq-ease), box-shadow .15s var(--eq-ease); }
.hl[data-hx]:hover { border-color: var(--ac-line); box-shadow: var(--sh-2); }
.hl-hd .hl-r { display: inline-flex; align-items: center; gap: 8px; overflow: visible; color: inherit; }
.hl-hx { display: inline-flex; align-items: center; gap: 3px; flex: none; height: 22px; padding: 0 8px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 12px; color: var(--fg-2); white-space: nowrap; }
.hl-hx i { font-style: normal; }
.hl[data-hx]:hover .hl-hx, .hl-hx:hover { border-color: var(--ac-line); background: var(--ac-soft); color: var(--ac-text); }
.blk-tools .hl-hx { height: 30px; padding: 0 12px; font-size: 12.5px; font-weight: 500; color: var(--fg); }
/* 清算：多单用跌色、空单用涨色（多单在下跌里被强平），跟着涨跌色设置走 */
i.lq-l { background: var(--eq-down); } i.lq-s { background: var(--eq-up); }
.lqb { display: flex; width: 100%; height: 6px; }
.lqb i { display: block; height: 100%; } .lqb .lq-s { flex: 1; }
.lq-ls i, .lq-kv dt i, .hx-key i, .hx-leg i, .exl i { display: inline-block; width: 8px; height: 8px; margin-right: 5px; vertical-align: 0; }
.hl-big > .lq-chg { font: 500 12px/1.3 var(--eq-font-sans); color: var(--fg-2); }
#hlLiq .lqb { margin-top: 10px; }
.lq-kv { margin-top: 0; padding-top: 4px; }
.lq-kv div { border-top: 0; }
.lq-kv dd small { font: 12px/1 var(--eq-font-mono); color: var(--fg-3); }
.lq-hist { display: flex; gap: 2px; flex: 1 0 40px; min-height: 40px; margin-top: 6px; }
.lq-hist span { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; }
.lq-hist i { display: block; flex: none; }
.lq-hist span:not(.on) i { opacity: .5; }

.mk-grid { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 0 var(--gut); align-items: start; }
.blk { min-width: 0; padding: 4px 20px 18px; }
/* 矩阵 + 清算并排（容器窄于 700px 时上下排）；矩阵只占左半，高度 420 */
.mk-duo { grid-column: 1; grid-row: 1; min-width: 0; container-type: inline-size; }
.duo-in { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--gut); align-items: stretch; }
.blk-liq { display: flex; flex-direction: column; }
@container (max-width: 699px) {
  .duo-in { grid-template-columns: minmax(0, 1fr); }
  .duo-in .tm-page { height: 320px; }
  .blk-liq { margin-top: var(--gut); }
}
.lq-sum { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: end; gap: 8px 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.lq-tot { white-space: nowrap; }
.lq-tot b { font: 400 28px/1.1 var(--eq-font-display); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.lq-tot small { margin-left: 6px; font: 12px var(--eq-font-mono); color: var(--fg-3); }
.lq-ls { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 2px 14px; font-size: 12.5px; color: var(--fg-2); white-space: nowrap; }
.lq-ls b { margin-left: 4px; font: 600 13px/1.3 var(--eq-font-mono); color: var(--fg); }
.lq-ls small { margin-left: 4px; font: 12px var(--eq-font-mono); color: var(--fg-3); }
.lq-sum .lqb { grid-column: 1 / -1; }
.lq-tbl-w { min-width: 0; container-type: inline-size; }
.lq-tbl td { height: 35px; }
.lq-tbl .co .nm { max-width: 120px; }
.lq-tbl .tt b { display: block; font-weight: 600; }
.lq-tbl .ll, .lq-tbl .ls { color: var(--fg-2); }
.lqm { display: flex; justify-content: flex-end; height: 3px; margin-top: 4px; }
.lqm i { display: block; height: 100%; }
@container (max-width: 470px) { .lq-tbl .co .nm { display: inline-block; max-width: 70px; } }
@container (max-width: 380px) { .lq-tbl .co .nm { display: none; } }
.lq-ex { margin-top: auto; padding-top: 14px; }
.lq-ex h3 { margin-bottom: 7px; font-size: 12px; font-weight: 500; color: var(--fg-3); }
.exb { display: flex; height: 8px; border-radius: 4px; overflow: hidden; }
.exb i { display: block; height: 100%; box-shadow: inset -1px 0 0 var(--bg); }
.exb .ex5 { flex: 1; box-shadow: none; }
.ex0 { background: var(--x0); } .ex1 { background: var(--x1); } .ex2 { background: var(--x2); } .ex3 { background: var(--x3); } .ex4 { background: var(--x4); } .ex5 { background: var(--x5); }
.exl { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 10px; font-size: 12px; color: var(--fg-2); }
.exl li { display: inline-flex; align-items: center; }
.exl .xi { margin-right: 5px; font-size: 14px; }
.exl i.ex0, .exl i.ex1, .exl i.ex2, .exl i.ex3, .exl i.ex4, .exl i.ex5 { width: 8px; height: 8px; border-radius: 2px; }
.exl b { margin-left: 5px; font: 600 12px/1.3 var(--eq-font-mono); color: var(--fg); }
.lq-note { margin-top: 10px; text-align: left; }
.lq-note a { color: var(--ac-text); white-space: nowrap; }
.lq-note a:hover { text-decoration: underline; text-underline-offset: 3px; }
.lq-note svg { display: inline-block; width: 11px; height: 11px; vertical-align: -1px; }
/* 并排时两块的标题行都是两行（标题 + 说明 / 控件），矩阵和清算的内容顶端对齐 */
.duo-in .blk-tools { width: 100%; margin-left: 0; }
.blk-flow { grid-column: 2; grid-row: 1; }
.blk-movers { grid-column: 1 / -1; grid-row: 2; margin-top: var(--gut); }
.blk-all { grid-column: 1 / -1; grid-row: 3; margin-top: var(--gut); }
.blk-hd { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; min-height: 52px; padding: 8px 0; }
.blk-hd h2 { font: 600 17px/1.3 var(--eq-font-display); white-space: nowrap; }
.blk-meta { font-size: 12.5px; color: var(--fg-3); }
.blk-tools { margin-left: auto; }
.blk-ft { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 10px 24px; padding-top: 12px; }
.mk-note { font-size: 12px; line-height: 1.6; color: var(--fg-3); text-align: right; }
.tm-page { height: 420px; }
.dom { flex: 1; max-width: 120px; height: 4px; border-radius: 2px; background: var(--surface-3); overflow: hidden; }
.dom i { display: block; height: 100%; background: var(--ac); }
.brb { display: flex; width: 64px; height: 4px; flex: none; }
.brb i.up { background: var(--eq-up); } .brb i.down { flex: 1; background: var(--eq-down); }

/* 行情异动列 */
.blk-flow .newbar-wrap { top: var(--top-h); }
.flow-list { border-top: 1px solid var(--line); }
.fw { position: relative; display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 0 10px; padding: 10px 0 11px; border-bottom: 1px solid var(--line); }
.fw.is-fresh::before { content: ""; position: absolute; left: -12px; top: 10px; bottom: 11px; width: 3px; border-radius: 2px; background: var(--ac); }
.fw-when { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; }
.fw-t { display: inline-flex; align-items: center; height: 22px; font: 500 13px/1 var(--eq-font-mono); color: var(--fg-2); white-space: nowrap; }
.fw-t:hover { color: var(--ac-text); }
.fw-m { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; min-height: 22px; }
.fw-c { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px 0 5px; border: 1px solid var(--line); border-radius: 999px; font: 12px/1 var(--eq-font-mono); color: var(--fg-2); white-space: nowrap; }
.fw-c b { font-weight: 600; color: var(--fg); }
.fw-c:hover { border-color: var(--ac-line); background: var(--ac-soft); }
.fw-h { display: block; margin-top: 5px; font-size: 14px; line-height: 1.55; color: var(--ink-0); overflow-wrap: anywhere; }
.fw-h:hover { color: var(--ac-text); }
.fw-h .data { font: 13px/1.6 var(--eq-font-mono); }
.fw-h .pct { font-family: var(--eq-font-mono); font-weight: 600; }
.fw.eq-new { animation: t1-flash 2.4s var(--eq-ease); }
.flow-all { font-size: 13px; font-weight: 500; color: var(--ac-text); }
.flow-all::after { content: " →"; }
.flow-all:hover { text-decoration: underline; text-underline-offset: 3px; }

/* 全部币种表（参考 CoinMarketCap / CoinGecko 主表）：表头吸在页头下方，点表头排序；按容器宽度从右往左收列 */
.all-tbl { container-type: inline-size; min-width: 0; }
.mv-all th { position: sticky; top: var(--top-h); z-index: 3; background: var(--bg); }
.mv-all th button { display: inline-flex; align-items: center; gap: 4px; height: 32px; font: inherit; color: inherit; white-space: nowrap; }
.mv-all th button:hover, .mv-all th[aria-sort] { color: var(--fg); }
.mv-all th i { font-style: normal; font-size: 12px; }
.mv-all td { height: 50px; }
.mv-all .rk { width: 44px; }
.mv-all tbody tr:nth-child(-n+3) .rk { color: var(--fg-3); font-weight: 400; }
.mv-all .co .nm { max-width: 150px; }
.mv-all .sup small { color: var(--fg-3); }
.supb { display: block; width: 84px; height: 3px; margin: 6px 0 0 auto; border-radius: 2px; background: var(--surface-3); overflow: hidden; }
.supb i { display: block; height: 100%; background: var(--fg-3); }
.mv-all .nw a { color: var(--fg-2); }
.mv-all .nw a:hover { color: var(--ac-text); }
.mv-all .nw b { color: var(--fg); }
.mv-all .sp { width: 100px; }
@container (max-width: 1180px) { .mv-all .sup { display: none; } }
@container (max-width: 1030px) { .mv-all .c1 { display: none; } }
@container (max-width: 900px) { .mv-all .vol { display: table-cell; } .mv-all .nw { display: none; } }
@container (max-width: 780px) { .mv-all .vol { display: none; } }
@container (max-width: 640px) { .mv-all .c7 { display: none; } }
@container (max-width: 400px) { .mv-all td, .mv-all th { padding: 0 5px; } .mv-all .rk { width: 26px; } .mv-all .bnb { display: none; } .mv-all .mc { font-size: 12.5px; } }
.cat-seg { flex-wrap: wrap; }
.all-q { position: relative; display: inline-flex; align-items: center; }
.all-q svg { position: absolute; left: 9px; width: 14px; height: 14px; color: var(--fg-3); pointer-events: none; }
.all-q input { width: 200px; height: 32px; padding: 0 10px 0 30px; border: 1px solid transparent; border-radius: var(--eq-radius); background: var(--surface-3); font-size: 13px; color: var(--fg); outline: none; -webkit-appearance: none; appearance: none; }
.all-q input:focus { border-color: var(--ac); background: var(--bg); box-shadow: 0 0 0 3px var(--ac-soft); }
.pager { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px; padding-top: 18px; }
.pager button { min-width: 34px; height: 34px; padding: 0 8px; border: 1px solid var(--line-2); border-radius: var(--eq-radius); font: 13px/1 var(--eq-font-mono); color: var(--fg-2); }
.pager button:hover:not(:disabled) { border-color: var(--ac-line); color: var(--ac-text); background: var(--ac-soft); }
.pager button[aria-current="page"] { background: var(--ac); border-color: var(--ac); color: var(--ac-fg); font-weight: 600; }
.pager button:disabled { opacity: .4; cursor: default; }
.pg-gap { color: var(--fg-3); }
.pg-t { margin-left: 10px; font-size: 12.5px; color: var(--fg-3); }
#mkNote { margin-top: 14px; text-align: left; }

/* 涨跌榜：两张表并排；窄屏改为切换 */
.mv-tabs { display: none; }
.mv-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
.mv-h { display: flex; align-items: baseline; gap: 8px; height: 40px; padding-top: 8px; border-top: 1px solid var(--line); font: 600 15px/1.3 var(--eq-font-display); }
.mv-h small { font: 12px var(--eq-font-mono); color: var(--fg-3); }
.mv-h::before { font: 600 12px var(--eq-font-mono); }
.up-h::before { content: "▲"; color: var(--eq-up); } .dn-h::before { content: "▼"; color: var(--eq-down); }
.mv-more { display: flex; justify-content: center; padding-top: 20px; }
.mv-more .btn { min-width: 240px; }

@media (max-width: 1279px) {
  .mk-grid { grid-template-columns: minmax(0, 1fr) 340px; }
  .mv-cols { gap: 0 24px; }
}
@media (max-width: 1023px) {
  .mk-grid { grid-template-columns: minmax(0, 1fr); }
  .mk-duo, .blk-flow, .blk-movers, .blk-all { grid-column: 1; grid-row: auto; }
  .blk-movers { order: 2; margin-top: var(--gut); }
  .blk-flow { order: 3; margin-top: var(--gut); }
  .blk-all { order: 4; }
  .mv-tabs { display: flex; gap: 2px; padding: 2px; margin-bottom: 6px; border-radius: calc(var(--eq-radius) + 2px); background: var(--surface-3); width: max-content; }
  .mv-tabs button { height: 30px; padding: 0 16px; border-radius: var(--eq-radius); font-size: 13.5px; font-weight: 500; color: var(--fg-2); }
  .mv-tabs button[aria-pressed="true"] { background: var(--seg-on); color: var(--fg); font-weight: 600; box-shadow: var(--sh-1); }
  .mv-cols { grid-template-columns: minmax(0, 1fr); }
  [data-tab="gain"] .mv-lose, [data-tab="lose"] .mv-gain { display: none; }
  .mv-h { display: none; }
  .mk-note { text-align: left; }
}
@media (max-width: 760px) {
  .mk-page { padding-top: 0; }
  .mk-hd { padding: 10px 0 12px; gap: 8px; }
  .mk-hd h1 { font-size: 21px; }
  .mk-hd-t { flex-direction: column; gap: 2px; }
  .mk-hd p { font-size: 12.5px; }
  .mk-tools { width: 100%; gap: 8px; }
  .mk-tools .seg > button { height: 40px; min-width: 52px; }
  .mk-tools .live { height: 40px; margin-left: auto; }
  /* 概览三卡改成一行横滑（每张 84% 宽，右缘露出下一张提示还能滑） */
  .mk-hl { display: flex; gap: 12px; margin: 0 calc(var(--pad) * -1) 12px; padding: 0 var(--pad) 4px; overflow-x: auto;
    scroll-snap-type: x mandatory; scroll-padding: 0 var(--pad); scrollbar-width: none; }
  .mk-hl::-webkit-scrollbar { display: none; }
  .hl { flex: none; width: 84%; scroll-snap-align: start; }
  .blk { padding: 4px 14px 14px; }
    .duo-in .tm-page { height: 300px; }
  .all-q { width: 100%; }
  .all-q input { width: 100%; height: 40px; font-size: 16px; }
  .cat-seg { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; scrollbar-width: none; }
  .cat-seg::-webkit-scrollbar { display: none; }
  .mv-all th { top: var(--top-h); }
  .mv-all td { height: 50px; }
  .pager button { min-width: 40px; height: 40px; }
  .pg-t { width: 100%; margin: 4px 0 0; text-align: center; }
  .blk-hd { gap: 6px 10px; }
  .blk-tools { width: 100%; margin-left: 0; gap: 8px; }
  .blk-tools .seg > button, .blk-tools .chk { height: 40px; }
  .blk-ft { flex-direction: column; }
  .mv-tabs button { height: 40px; }
  .mv td { height: 46px; font-size: 13.5px; }
  .mv .co .sym { position: relative; }
  .mv .co .sym::after { content: ""; position: absolute; inset: -14px -6px; }
  .fw { grid-template-columns: 68px minmax(0, 1fr); }
  .fw.is-fresh::before { left: -10px; }
  .fw-c { position: relative; height: 32px; }
  .fw-c::after { content: ""; position: absolute; inset: -4px 0; }   /* 点击区 ≥ 40px */
  .fw-h { padding: 4px 0; }
  .flow-all { display: inline-flex; align-items: center; min-height: 40px; }
  .cd-panel { top: auto; left: 0; right: 0; width: auto; max-height: 88vh; padding: 0 16px calc(20px + env(safe-area-inset-bottom)); border-radius: var(--eq-radius-xl) var(--eq-radius-xl) 0 0; }
  .cd-px .num { font-size: 30px; }
  .cd-news li a { padding: 12px 0; }
  .mk-live { height: 40px; }
  .mk-rail-ft { margin-top: 10px; }
}
.live .ring { width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid currentColor; }
/* 行情页两栏时：异动列与矩阵等高，列表在栏内滚动（--heat-h 由 page-markets.js 量出） */
@media (min-width: 1024px) {
  .blk-flow { display: flex; flex-direction: column; max-height: var(--heat-h, none); }
  .blk-flow .flow-list { flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: thin; }
  .blk-flow .newbar-wrap { position: static; }
}

/* =========================================================================
   18. 「历史」弹层 hist.js（总市值 / 恐惧与贪婪 / 清算）：桌面居中，手机从底部升起占满
   ========================================================================= */
html.hx-open { overflow: hidden; }
.hx { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; padding: 24px; }
.hx[hidden] { display: none; }
.hx-bg { position: absolute; inset: 0; background: rgba(11, 14, 20, .45); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
.hx-panel { position: relative; width: min(1040px, 100%); max-height: calc(100vh - 48px); overflow: auto; overscroll-behavior: contain; padding: 0 28px 24px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--eq-radius-xl); box-shadow: var(--sh-3); }
.hx-hd { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; gap: 12px; min-height: 60px; background: var(--bg); }
.hx-hd h2 { font: 600 20px/1.3 var(--eq-font-display); white-space: nowrap; }
.hx-src { display: inline-flex; align-items: center; gap: 4px; min-width: 0; font-size: 12.5px; color: var(--fg-3); white-space: nowrap; }
.hx-src:hover { color: var(--ac-text); }
.hx-src svg { width: 11px; height: 11px; }
.hx-x { margin-left: auto; }
.hx-kinds { display: flex; border-bottom: 1px solid var(--line); }
.hx-kinds button { height: 40px; padding: 0 16px; margin-bottom: -1px; border-bottom: 2px solid transparent; font-size: 14px; color: var(--fg-2); white-space: nowrap; }
.hx-kinds button:hover { color: var(--fg); }
.hx-kinds button[aria-selected="true"] { border-bottom-color: var(--ac); font-weight: 600; color: var(--ac-text); }
.hx-top { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; padding: 18px 0 14px; }
.hx-now { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; min-width: 0; }
.hx-now b { font: 400 34px/1.1 var(--eq-font-display); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.hx-now > span { font: 600 14px/1.3 var(--eq-font-mono); }
.hx-now > span.ink { font: 600 14px/1.3 var(--eq-font-sans); }
.hx-now small { font-size: 12.5px; color: var(--fg-3); }
.hx-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; }
.hx-chart { position: relative; height: 320px; touch-action: pan-y; user-select: none; -webkit-user-select: none; outline: none; }
.hx-chart:focus-visible { box-shadow: 0 0 0 2px var(--ac); border-radius: 4px; }
.hx-svg { display: block; overflow: visible; }
.hx-svg text { font: 11.5px var(--eq-font-mono); fill: var(--fg-3); }
.hx-svg .ya-l { text-anchor: end; }
.hx-svg .g { stroke: var(--line); }
.hx-svg .ax { stroke: var(--fg-3); }
.hx-svg .l { fill: none; stroke: var(--ac); stroke-width: 1.6; stroke-linejoin: round; }
.hx-svg .l.up { stroke: var(--eq-up); } .hx-svg .l.down { stroke: var(--eq-down); }
.hx-svg .a { fill: color-mix(in srgb, var(--ac) 10%, transparent); }
.hx-svg .a.up { fill: color-mix(in srgb, var(--eq-up) 12%, transparent); } .hx-svg .a.down { fill: color-mix(in srgb, var(--eq-down) 12%, transparent); }
.hx-svg .vb { fill: color-mix(in srgb, var(--ac) 24%, var(--bg)); }
.hx-svg .ov { fill: none; stroke: var(--fg-3); stroke-width: 1.2; stroke-dasharray: 4 3; }
.hx-svg .lq-l { fill: var(--eq-down); } .hx-svg .lq-s { fill: var(--eq-up); }
.hx-svg .z0 { fill: color-mix(in srgb, var(--fng-0) 12%, var(--bg)); } .hx-svg .z1 { fill: color-mix(in srgb, var(--fng-1) 10%, var(--bg)); }
.hx-svg .z2 { fill: color-mix(in srgb, var(--fng-2) 8%, var(--bg)); } .hx-svg .z3 { fill: color-mix(in srgb, var(--fng-3) 10%, var(--bg)); }
.hx-svg .z4 { fill: color-mix(in srgb, var(--fng-4) 12%, var(--bg)); }
.hx-svg .zt { font: 11px var(--eq-font-sans); fill: var(--fg-3); }
.hx-cur { position: absolute; width: 1px; background: var(--fg-3); pointer-events: none; }
.hx-cur.bar { background: color-mix(in srgb, var(--ac) 12%, transparent); }
.hx-dot { position: absolute; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border: 2px solid var(--bg); border-radius: 50%; background: var(--ac); pointer-events: none; }
.hx-dot2 { background: var(--fg-3); }
.hx-tip { position: absolute; z-index: 2; min-width: 176px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); box-shadow: var(--sh-2); font-size: 12.5px; pointer-events: none; }
.hx-tip time { display: block; margin-bottom: 3px; font: 600 12px/1.5 var(--eq-font-mono); color: var(--fg); }
.hx-tip > div { display: flex; justify-content: space-between; gap: 16px; line-height: 1.7; color: var(--fg-2); white-space: nowrap; }
.hx-tip > div b { font: 500 12.5px/1.7 var(--eq-font-mono); color: var(--fg); }
.hx-tip > div.on b { font-weight: 700; }
.hx-tip > div.lq-l span::before, .hx-tip > div.lq-s span::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 6px; }
.hx-tip > div.lq-l span::before { background: var(--eq-down); } .hx-tip > div.lq-s span::before { background: var(--eq-up); }
.hx-tip .tx { display: block; margin-top: 4px; padding-top: 4px; border-top: 1px solid var(--line); font: 11.5px/1.6 var(--eq-font-mono); color: var(--fg-3); }
.hx-tip .tx span { display: block; }
.hx-key { display: flex; flex-wrap: wrap; gap: 4px 16px; padding-top: 8px; font-size: 12px; color: var(--fg-3); }
.hx-key i.ink { width: 12px; height: 2px; vertical-align: 3px; background: var(--ac); }
.hx-key i.ov { width: 14px; height: 0; vertical-align: 3px; border-top: 1.5px dashed var(--fg-3); }
.hx-stats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0 18px; margin-top: 14px; border-top: 1px solid var(--line); }
.hx-stats div { min-width: 0; padding: 10px 0; }
.hx-stats dt { font-size: 12px; color: var(--fg-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hx-stats dd { margin: 3px 0 0; font: 600 15px/1.3 var(--eq-font-mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hx-stats dd b { font-weight: 600; }
.hx-stats dd .cl { margin-left: 6px; font: 600 13px/1.3 var(--eq-font-sans); }
.hx-stats dd small { display: block; margin-top: 2px; font: 12px/1.3 var(--eq-font-mono); color: var(--fg-3); white-space: normal; }
.hx-sec { margin-top: 24px; }
.hx-sec h3 { display: flex; align-items: baseline; gap: 10px; padding-bottom: 8px; border-bottom: 1px solid var(--line); font: 600 15px/1.3 var(--eq-font-display); }
.hx-sec h3 small { font: 12px var(--eq-font-sans); color: var(--fg-3); }
.hx-dist { display: flex; height: 10px; margin-top: 12px; }
.hx-dist i { display: block; height: 100%; box-shadow: inset -1px 0 0 var(--bg); }
.hx-dist .z0, .hx-leg .z0 { background: var(--fng-0); } .hx-dist .z1, .hx-leg .z1 { background: var(--fng-1); }
.hx-dist .z2, .hx-leg .z2 { background: var(--fng-2); } .hx-dist .z3, .hx-leg .z3 { background: var(--fng-3); }
.hx-dist .z4, .hx-leg .z4 { background: var(--fng-4); }
.hx-leg { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 10px; font-size: 12.5px; color: var(--fg-2); }
.hx-leg b { margin-left: 6px; font: 600 12.5px var(--eq-font-mono); color: var(--fg); }
.hx-tbl { width: 100%; border-collapse: collapse; }
.hx-tbl th { height: 32px; padding: 0 8px; font-size: 12px; font-weight: 500; color: var(--fg-3); text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.hx-tbl td { height: 36px; padding: 0 8px; border-bottom: 1px solid var(--line); font-size: 13px; white-space: nowrap; }
.hx-tbl th:first-child, .hx-tbl td:first-child { padding-left: 0; }
.hx-tbl th:last-child, .hx-tbl td:last-child { padding-right: 0; }
.hx-tbl .r { text-align: right; }
.hx-tbl .num { font-family: var(--eq-font-mono); font-variant-numeric: tabular-nums; }
.hx-sh { display: inline-block; width: 64px; height: 4px; margin-right: 10px; vertical-align: 2px; border-radius: 2px; background: var(--surface-3); overflow: hidden; }
.hx-sh i { display: block; height: 100%; background: var(--ac); }
.hx-ev li { display: grid; grid-template-columns: 22px 92px 76px minmax(0, 1fr); align-items: baseline; gap: 0 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.hx-ev .rk { font: 600 12.5px var(--eq-font-mono); color: var(--fg-3); }
.hx-ev li:nth-child(-n+3) .rk { color: var(--hot-text); }
.hx-ev time { font: 12.5px var(--eq-font-mono); color: var(--fg-2); }
.hx-ev b { font: 600 13px var(--eq-font-mono); text-align: right; }
.hx-ev .ds { color: var(--fg-2); line-height: 1.5; }
.hx-note { margin-top: 18px; font-size: 12px; line-height: 1.6; color: var(--fg-3); }
.hx-load { padding: 96px 0; text-align: center; color: var(--fg-3); }
.hx-load .btn { margin-left: 8px; }
@media (max-width: 1023px) { .hx-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .hx { padding: 0; align-items: flex-end; }
  .hx-panel { width: 100%; max-height: 94vh; padding: 0 16px calc(20px + env(safe-area-inset-bottom)); border-radius: var(--eq-radius-xl) var(--eq-radius-xl) 0 0; }
  .hx-hd { min-height: 56px; }
  .hx-hd h2 { font-size: 18px; }
  .hx-kinds button { flex: 1; height: 44px; padding: 0 6px; font-size: 13.5px; }
  .hx-now b { font-size: 28px; }
  .hx-tools { width: 100%; }
  .hx-tools .seg > button, .hx-tools .chk { height: 40px; }
  .hx-chart { height: 240px; }
  .hx-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hx-sh { display: none; }
  .hx-ev li { grid-template-columns: 20px 86px minmax(0, 1fr); }
  .hx-ev .ds { grid-column: 2 / -1; margin-top: 2px; }
  .hl-hx { position: relative; }
  .hl-hx::after { content: ""; position: absolute; inset: -9px -6px; }
}

/* =========================================================================
   币种图标：放在代码前面，尺寸跟代码字号走（em）。图标来自后端 /api/v1/icons/（优先 CoinMarketCap、没有用 CoinGecko），
   HTML 由 _shared/market-feed.js 的 EQM.ico / icoSym / icoFile 生成。
   没有图标的币显示首字母灰圆标 .ci-0（字号缩到 0.64，宽高按比例放大，外形和图标一样大）
   ========================================================================= */
.ci { display: inline-block; flex: none; width: 1.2em; height: 1.2em; margin-right: .35em; border-radius: 50%; object-fit: contain; vertical-align: -.22em; }
.ci-0 { width: 1.875em; height: 1.875em; margin-right: .547em; vertical-align: -.34em; font-size: .64em; font-weight: 600; line-height: 1.875em;
  text-align: center; color: var(--fg-2); background: var(--surface-3); }
.tl .ci { width: .9em; height: .9em; margin-right: .25em; vertical-align: -.06em; }
.tl .ci-0 { display: none; }                             /* 矩阵格子里没有图标就不占位 */
.chip .ci { width: 16px; height: 16px; margin: 0 -2px 0 -1px; vertical-align: 0; }
.chip .ci-0 { width: 16px; height: 16px; line-height: 16px; font-size: 10px; }
.cd-hd h2 .ci { width: 1.1em; height: 1.1em; vertical-align: -.17em; }
