/* =========================================================
   TokenHub · screen.css
   运营大屏（演示）：始终深色，1920×1080 设计画布，JS 等比缩放
   品牌：Logo 绿 #34D399 作为强调 / 发光色，底色取 Logo 深色 #151A21 系
   中英双语：html[lang="en"] 下放宽部分列宽 / 字距
   ========================================================= */

html.screen-html, html.screen-html body { height: 100%; }
html.screen-html { color-scheme: dark; scroll-behavior: auto; }
.screen-body {
  margin: 0; overflow: hidden;
  background: #07090c; color: #e9f1ee;
  font-family: var(--font-sans);
  line-height: 1.5;
}

/* ---------- 画布与令牌 ---------- */
.stage {
  /* 系列色：s1 为品牌绿，其余为色相分离的分类色（对 #121a21 表面均可辨识） */
  --s1: #34d399;      /* 品牌绿：云端 / 主系列 */
  --s2: #e8743b;      /* 橙 */
  --s3: #4c8df6;      /* 蓝：本地模型 */
  --s4: #d9a520;      /* 黄 */
  --s-other: #66737f; /* 其他：弱化灰 */
  --s-muted: #2e3b44; /* 弱化（非当期柱） */
  /* 状态色（固定，不与系列混用；均配图标 + 文字） */
  --st-good: #0ca30c;
  --st-warn: #fab219;
  --st-serious: #ec835a;
  --st-crit: #d03b3b;
  --st-info: #4c8df6;
  /* 墨色 */
  --ink-1: #e9f1ee;
  --ink-2: #b2c0bd;
  --ink-3: #85948f;
  --delta-good: #34c46a;
  --delta-bad: #f07a7a;
  /* 结构 */
  --surface: #111920;       /* 图表表面（间隙与描环用） */
  --grid: rgba(150,200,180,.09);
  --axis: rgba(150,200,180,.24);
  --edge: rgba(52,211,153,.20);
  --glow: #34d399;

  position: absolute; left: 0; top: 0;
  width: 1920px; height: 1080px;
  transform-origin: 0 0;
  display: grid; grid-template-rows: 80px 112px 1fr 30px;
  padding: 0 24px;
  background:
    radial-gradient(900px 420px at 50% -6%, rgba(52,211,153,.16), transparent 70%),
    radial-gradient(700px 500px at 0% 100%, rgba(45,212,191,.06), transparent 70%),
    radial-gradient(700px 500px at 100% 100%, rgba(52,211,153,.07), transparent 70%),
    linear-gradient(rgba(150,200,180,.03) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(90deg, rgba(150,200,180,.03) 1px, transparent 1px) 0 0 / 40px 40px,
    #0b0f14;
  overflow: hidden;
  font-size: 15px;
  color: var(--ink-1);
}
.stage *:focus-visible { outline: 2px solid var(--glow); outline-offset: 2px; box-shadow: none; }

/* ---------- 顶栏 ---------- */
.sc-top { position: relative; display: grid; grid-template-columns: 1fr 760px 1fr; align-items: center; }
.sc-top::after {
  content: ""; position: absolute; left: -24px; right: -24px; bottom: 6px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(52,211,153,.25) 20%, rgba(52,211,153,.65) 50%, rgba(52,211,153,.25) 80%, transparent);
}
.sc-top-side { display: flex; align-items: center; gap: 22px; }
.sc-top-right { justify-content: flex-end; gap: 12px; }
.sc-clock { display: flex; align-items: baseline; gap: 14px; }
.sc-time { font-size: 30px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: .02em; color: var(--ink-1); }
.sc-date { display: flex; gap: 10px; font-size: 15px; color: var(--ink-2); }
.sc-live { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-3); }
.sc-live i, .pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--st-good); box-shadow: 0 0 0 0 rgba(12,163,12,.6); animation: sc-pulse 2s ease-out infinite; display: inline-block; }
@keyframes sc-pulse { 0% { box-shadow: 0 0 0 0 rgba(12,163,12,.55); } 100% { box-shadow: 0 0 0 9px rgba(12,163,12,0); } }

.sc-title { position: relative; text-align: center; height: 100%; display: flex; flex-direction: column; justify-content: center; }
.sc-title::before {
  content: ""; position: absolute; inset: 0 0 6px;
  background: linear-gradient(180deg, rgba(52,211,153,.16), rgba(52,211,153,0));
  clip-path: polygon(0 0, 100% 0, 92% 100%, 8% 100%);
  border-top: 2px solid rgba(52,211,153,.75);
}
.sc-title h1 {
  position: relative; margin: 0; font-size: 34px; font-weight: 800; letter-spacing: .16em; line-height: 1.2;
  background: linear-gradient(180deg, #ffffff 30%, #a7f3d0 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: none;
}
.sc-title p { position: relative; margin: 4px 0 0; font-size: 13px; letter-spacing: .3em; color: var(--ink-3); }

.sc-demo-tag {
  display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px;
  border-radius: 6px; font-size: 14px; font-weight: 600; color: #ffd78a;
  background: rgba(250,178,25,.10); border: 1px solid rgba(250,178,25,.40);
}
.sc-demo-tag svg { width: 16px; height: 16px; }
.sc-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px;
  border-radius: 6px; border: 1px solid var(--edge); background: rgba(52,211,153,.08);
  color: var(--ink-1); font-size: 14px; font-weight: 600; text-decoration: none; cursor: pointer;
  transition: background .15s, border-color .15s;
}
.sc-btn:hover { background: rgba(52,211,153,.18); border-color: rgba(52,211,153,.55); text-decoration: none; color: #fff; }
.sc-btn svg { width: 16px; height: 16px; }
.sc-btn kbd { font-family: var(--font-mono); font-size: 11px; line-height: 1; padding: 3px 5px; border-radius: 4px; border: 1px solid rgba(178,192,189,.35); color: var(--ink-2); }
.is-embed .sc-btn { display: none; }

/* ---------- 面板通用 ---------- */
.panel {
  position: relative; min-height: 0;
  display: flex; flex-direction: column;
  padding: 12px 18px;
  background: linear-gradient(180deg, rgba(24,33,40,.92) 0%, rgba(16,23,29,.92) 100%);
  border: 1px solid var(--edge);
  border-radius: 6px;
  box-shadow: inset 0 0 28px rgba(52,211,153,.04), 0 0 0 1px rgba(0,0,0,.2);
}
/* 角标描边：纯 CSS 发光角 */
.panel::before, .panel::after {
  content: ""; position: absolute; width: 14px; height: 14px; pointer-events: none;
  border-color: var(--glow); border-style: solid; opacity: .85;
}
.panel::before { left: -1px; top: -1px; border-width: 2px 0 0 2px; border-top-left-radius: 6px; }
.panel::after { right: -1px; bottom: -1px; border-width: 0 2px 2px 0; border-bottom-right-radius: 6px; }
.panel-hd { flex: none; height: 32px; display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.panel-hd h2 {
  position: relative; margin: 0; padding-left: 12px;
  font-size: 18px; font-weight: 700; letter-spacing: .04em; color: var(--ink-1); line-height: 1;
}
.panel-hd h2::before { content: ""; position: absolute; left: 0; top: -1px; bottom: -1px; width: 4px; border-radius: 2px; background: linear-gradient(180deg, #6ee7b7, var(--glow)); }
.panel-sub { font-size: 13px; color: var(--ink-3); white-space: nowrap; }
.panel-sub b { color: var(--ink-1); font-weight: 600; font-variant-numeric: tabular-nums; }
.panel-meta { margin-left: auto; font-size: 13px; color: var(--ink-2); display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.panel-bd { position: relative; flex: 1; min-height: 0; }
.chart-fill { position: absolute; inset: 0; }

/* ---------- KPI ---------- */
.kpi-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding-top: 12px; }
.kpi {
  position: relative; display: flex; align-items: center; gap: 16px; padding: 0 20px;
  border-radius: 6px; border: 1px solid var(--edge);
  background: linear-gradient(120deg, rgba(52,211,153,.14), rgba(16,23,29,.8) 60%);
  box-shadow: inset 0 0 24px rgba(52,211,153,.05);
  overflow: hidden;
}
.kpi::before { content: ""; position: absolute; left: 0; top: 18%; bottom: 18%; width: 3px; border-radius: 0 2px 2px 0; background: var(--glow); }
.kpi-ico { flex: none; width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center; color: #a7f3d0; background: rgba(52,211,153,.14); border: 1px solid rgba(52,211,153,.35); }
.kpi-ico svg { width: 26px; height: 26px; }
.kpi-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.kpi-label { font-size: 15px; color: var(--ink-2); }
.kpi-val { display: flex; align-items: baseline; gap: 6px; line-height: 1.1; margin: 2px 0 4px; }
.kpi-num { display: inline-flex; font-size: 38px; font-weight: 700; color: #fff; letter-spacing: .01em; font-variant-numeric: tabular-nums; }
.kpi-unit { font-size: 16px; color: var(--ink-2); font-weight: 600; }
.kpi-delta { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--ink-3); }
.kpi-delta svg { width: 12px; height: 12px; fill: var(--delta-good); }
.kpi-delta b { color: var(--delta-good); font-weight: 600; font-variant-numeric: tabular-nums; }
.kpi-delta.is-down svg { transform: rotate(180deg); fill: var(--delta-bad); }
.kpi-delta.is-down b { color: var(--delta-bad); }
.kpi-spark { flex: none; width: 140px; height: 54px; }

/* 滚动数字 */
.rd { display: inline-block; height: 1.1em; overflow: hidden; vertical-align: top; }
.rd-col { display: flex; flex-direction: column; transition: transform .9s cubic-bezier(.2,.7,.2,1); }
.rd-col > span { height: 1.1em; line-height: 1.1em; text-align: center; }
.rc { display: inline-block; height: 1.1em; line-height: 1.1em; }

/* ---------- 三栏 ---------- */
.sc-grid { display: grid; grid-template-columns: 500px 1fr 500px; gap: 20px; padding-top: 16px; min-height: 0; }
.sc-col { display: grid; gap: 16px; min-height: 0; }
.sc-grid > .sc-col:nth-child(1) { grid-template-rows: 270px 300px 1fr; }
.sc-grid > .sc-col:nth-child(2) { grid-template-rows: 424px 1fr; }
.sc-grid > .sc-col:nth-child(3) { grid-template-rows: 262px 300px 1fr; }

.sc-foot { display: flex; align-items: center; justify-content: center; font-size: 12px; color: #6b7a76; letter-spacing: .06em; }

/* ---------- 图表通用 ---------- */
.ch { display: block; overflow: visible; font-family: var(--font-sans); text-rendering: geometricPrecision; }
.ch text { fill: var(--ink-3); font-size: 13px; }
.ch-grid line { stroke: var(--grid); stroke-width: 1; }
.ch-grid text, .ch-xaxis text { font-variant-numeric: tabular-nums; }
.ch-xaxis line { stroke: var(--axis); }
.ch-base { stroke: var(--axis); stroke-width: 1; }
.ch-path { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.ch-area { opacity: .12; stroke: none; }
.ch-dot { stroke: var(--surface); stroke-width: 2; }
.ch-endlabel { fill: var(--ink-1) !important; font-size: 14px !important; font-weight: 600; font-variant-numeric: tabular-nums; }
.ch-hair { stroke: rgba(210,235,225,.45); stroke-width: 1; pointer-events: none; }
.ch-hdot { pointer-events: none; }
.ch-hit { fill: transparent; cursor: crosshair; }

/* 环形图 */
.donut-wrap { display: flex; align-items: center; gap: 18px; }
.donut-host { flex: none; width: 180px; height: 180px; }
.ch-donut-track { fill: none; stroke: rgba(150,200,180,.06); }
.ch-seg { stroke: none; cursor: pointer; transition: opacity .15s; }
.ch-seg:hover { opacity: .82; }
.ch-donut-val { fill: #fff !important; font-size: 26px !important; font-weight: 700; }
.ch-donut-lab { fill: var(--ink-3) !important; font-size: 13px !important; }
.legend-list { list-style: none; flex: 1; min-width: 0; display: grid; gap: 7px; }
.legend-list li { display: grid; grid-template-columns: 12px minmax(0,1fr) 46px 54px; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ink-2); height: 30px; padding: 0 8px; border-radius: 4px; background: rgba(150,200,180,.05); }
.lg-sw { width: 12px; height: 12px; border-radius: 3px; }
.lg-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink-1); }
.lg-pct { text-align: right; font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; }
.lg-cnt { text-align: right; font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* 内联图例（折线：线形键） */
.legend-inline { list-style: none; display: flex; gap: 16px; margin-left: 8px; }
.legend-inline li { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-2); }
.lg-line { width: 18px; height: 3px; border-radius: 2px; background: var(--c); }

/* 排行 */
.ch-rank { position: relative; }
.rk-row {
  position: absolute; left: 0; right: 0; top: 0;
  display: grid; grid-template-columns: 26px 78px 1fr 76px; align-items: center; gap: 12px;
  transition: transform .8s cubic-bezier(.2,.7,.2,1);
  font-size: 14px; color: var(--ink-2);
}
.rk-no { width: 22px; height: 20px; border-radius: 4px; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: var(--ink-3); background: rgba(150,200,180,.08); font-variant-numeric: tabular-nums; }
.rk-row.is-top .rk-no { color: #06281c; background: rgba(52,211,153,.85); box-shadow: 0 0 10px rgba(52,211,153,.4); }
.rk-name { color: var(--ink-1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rk-track { position: relative; height: 10px; background: rgba(52,211,153,.10); border-radius: 0 4px 4px 0; overflow: hidden; }
.rk-bar { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 0 4px 4px 0; transition: width .9s cubic-bezier(.2,.7,.2,1); }
.rk-val { text-align: right; color: var(--ink-1); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* 成本 */
.cost-wrap { display: flex; flex-direction: column; gap: 6px; }
.budget-top { display: flex; align-items: baseline; gap: 8px; font-size: 13px; color: var(--ink-3); }
.budget-top b { font-size: 22px; color: #fff; font-weight: 700; }
.budget-top .st { margin-left: auto; align-self: center; }
.meter { position: relative; height: 10px; margin: 8px 0 6px; border-radius: 5px; background: rgba(52,211,153,.14); }
.meter-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 5px; background: var(--s1); transition: width .9s cubic-bezier(.2,.7,.2,1), background .3s; }
.meter.is-warn { background: rgba(250,178,25,.16); }
.meter.is-warn .meter-fill { background: var(--st-warn); }
.meter-mark { position: absolute; top: -4px; bottom: -4px; width: 2px; margin-left: -1px; background: var(--ink-1); border-radius: 1px; box-shadow: 0 0 0 2px var(--surface); }
.budget-foot { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--ink-3); }
.budget-foot b { color: var(--ink-1); font-weight: 600; }
.cost-host { flex: 1; min-height: 0; position: relative; }
.ch-col { cursor: pointer; }
.ch-col:hover { opacity: .85; }
.ch-capval { fill: var(--ink-1) !important; font-size: 12.5px !important; font-weight: 600; }
.ch-cols .ch-xaxis text { font-size: 11.5px; }

/* 仪表盘 */
.latency-wrap { display: flex; align-items: center; gap: 14px; }
.gauge-host { flex: none; width: 200px; }
.ch-zone { fill: none; stroke-width: 3; opacity: .55; }
.ch-gtrack { fill: none; stroke-opacity: .16; stroke-linecap: round; }
.ch-gfill { fill: none; stroke-linecap: round; transition: stroke .3s; }
.ch-gtick { font-size: 11.5px !important; }
.ch-gval { fill: #fff !important; font-size: 36px !important; font-weight: 700; }
.ch-gunit { fill: var(--ink-3) !important; font-size: 13px !important; }
.ch-gcap { fill: var(--ink-2) !important; font-size: 13.5px !important; }
.lat-side { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.lat-side > .st { align-self: flex-start; }
.mini-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0; }
.mini-stats div { padding: 6px 10px; border-radius: 4px; background: rgba(150,200,180,.06); }
.mini-stats dt { font-size: 12.5px; color: var(--ink-3); }
.mini-stats dd { margin: 0; font-size: 17px; font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; white-space: nowrap; }
.err-box { padding: 8px 10px 4px; border-radius: 4px; background: rgba(150,200,180,.06); }
.err-top { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-3); }
.err-top b { font-size: 20px; color: #fff; font-variant-numeric: tabular-nums; }
.err-top .st { margin-left: auto; }
.err-spark { height: 44px; margin-top: 2px; }
.ch-sline { fill: none; stroke: #7f938d; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.ch-sarea { opacity: .12; }

/* 知识库 */
.kb-wrap { display: flex; gap: 16px; }
.kb-left { flex: none; width: 160px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.kb-left .mini-stats { width: 100%; grid-template-columns: 1fr; gap: 6px; }
.kb-left .mini-stats div { display: flex; justify-content: space-between; align-items: baseline; padding: 4px 10px; }
.kb-left .mini-stats dd { font-size: 15px; }
.ch-rtrack { fill: none; stroke-opacity: .16; }
.ch-rfill { fill: none; stroke-linecap: round; transition: none; }
.ch-rval { fill: #fff !important; font-size: 28px !important; font-weight: 700; }
.ch-rlab { fill: var(--ink-3) !important; font-size: 12.5px !important; }
.kb-hot { flex: 1; min-width: 0; }
.kb-hot .rk-row { grid-template-columns: 22px 1fr auto; grid-template-rows: 22px 8px; row-gap: 5px; column-gap: 10px; align-content: center; }
.kb-hot .rk-no { grid-row: 1 / 3; align-self: center; }
.kb-hot .rk-name { grid-column: 2; grid-row: 1; font-size: 14px; }
.kb-hot .rk-val { grid-column: 3; grid-row: 1; font-size: 13px; }
.kb-hot .rk-track { grid-column: 2 / 4; grid-row: 2; height: 6px; }

/* ---------- 状态标记（图标 + 文字，颜色不单独承载含义） ---------- */
.st { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink-1); white-space: nowrap; }
.st-ico {
  flex: none; width: 15px; height: 15px; background: var(--c, var(--st-good));
  -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat;
}
.st-good { --c: var(--st-good); --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1.5a10.5 10.5 0 100 21 10.5 10.5 0 000-21zm-1.4 15.1L6 12l1.6-1.6 3 3 6-6L18.2 9z'/%3E%3C/svg%3E"); }
.st-warn { --c: var(--st-warn); --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1.8L.8 21.5h22.4zM11 9h2v6.5h-2zm0 8.2h2v2h-2z'/%3E%3C/svg%3E"); }
.st-serious { --c: var(--st-serious); --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 1.5h8L22.5 8v8L16 22.5H8L1.5 16V8zM11 6.5h2v7.5h-2zm0 9.3h2v2.2h-2z'/%3E%3C/svg%3E"); }
.st-crit { --c: var(--st-crit); --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1.5a10.5 10.5 0 100 21 10.5 10.5 0 000-21zm4.2 13.3l-1.4 1.4L12 13.4l-2.8 2.8-1.4-1.4 2.8-2.8-2.8-2.8 1.4-1.4 2.8 2.8 2.8-2.8 1.4 1.4-2.8 2.8z'/%3E%3C/svg%3E"); }
.st-info { --c: var(--st-info); --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1.5a10.5 10.5 0 100 21 10.5 10.5 0 000-21zM11 10h2v7.5h-2zm0-4h2v2.2h-2z'/%3E%3C/svg%3E"); }

/* ---------- 滚动列表 ---------- */
.feed { position: relative; overflow: hidden; }
.feed-list { transition: transform .6s cubic-bezier(.2,.7,.2,1); will-change: transform; }
.flow-head, .flow-row { display: grid; grid-template-columns: 82px 150px minmax(0,1fr) 72px 84px 74px; column-gap: 12px; align-items: center; padding: 0 12px; }
.flow-head { height: 30px; font-size: 13px; color: var(--ink-3); background: rgba(52,211,153,.08); border-radius: 4px; }
.flow-body { position: absolute; top: 34px; left: 0; right: 0; bottom: 0;
  -webkit-mask-image: linear-gradient(180deg, #000 82%, transparent); mask-image: linear-gradient(180deg, #000 82%, transparent); }
.flow-row { font-size: 14px; color: var(--ink-2); border-bottom: 1px solid rgba(150,200,180,.07); }
.flow-row:nth-child(even) { background: rgba(150,200,180,.03); }
.flow-row > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c-time { font-variant-numeric: tabular-nums; color: var(--ink-3); }
.c-user b { font-weight: 600; color: var(--ink-1); margin-right: 8px; }
.c-user em { font-style: normal; }
.c-model { font-family: var(--font-mono); font-size: 13px; color: var(--ink-1); }
.m-tag { display: inline-block; margin-right: 8px; padding: 1px 6px; border-radius: 3px; font-family: var(--font-sans); font-style: normal; font-size: 11.5px; color: #c9f3e3; background: rgba(52,211,153,.14); border: 1px solid rgba(52,211,153,.45); vertical-align: 1px; }
.m-tag.is-local { color: #d4e4ff; background: rgba(76,141,246,.18); border-color: rgba(76,141,246,.5); }
.c-num { text-align: right; font-variant-numeric: tabular-nums; }
.flow-row .c-num { color: var(--ink-1); }
.is-new { animation: row-flash 1.6s ease-out; }
@keyframes row-flash { 0% { background: rgba(52,211,153,.16); } 100% { background: transparent; } }

.alert-body { position: absolute; inset: 0;
  -webkit-mask-image: linear-gradient(180deg, #000 80%, transparent); mask-image: linear-gradient(180deg, #000 80%, transparent); }
.alert-row { display: grid; grid-template-columns: 64px minmax(0,1fr) 46px; column-gap: 10px; align-items: center; padding: 0 4px; border-bottom: 1px solid rgba(150,200,180,.07); font-size: 14px; }
.a-text { color: var(--ink-1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.a-time { text-align: right; color: var(--ink-3); font-size: 13px; font-variant-numeric: tabular-nums; }

/* ---------- Tooltip ---------- */
.ch-tip {
  position: absolute; left: 0; top: 0; z-index: 50; pointer-events: none;
  min-width: 140px; padding: 10px 12px; border-radius: 6px;
  background: rgba(12,17,22,.96); border: 1px solid rgba(52,211,153,.4);
  box-shadow: 0 8px 24px rgba(0,0,0,.45);
  font-size: 13px; color: var(--ink-2);
}
.ch-tip[hidden] { display: none; }
.ch-tip-title { font-size: 12.5px; color: var(--ink-3); margin-bottom: 6px; }
.ch-tip-row { display: flex; align-items: center; gap: 8px; line-height: 1.7; }
.ch-tip-row b { color: #fff; font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }
.ch-key { flex: none; display: inline-block; }
.ch-key.is-line { width: 14px; height: 3px; border-radius: 2px; }
.ch-key.is-rect { width: 10px; height: 10px; border-radius: 2px; }

/* ---------- 竖屏提示 ---------- */
.rotate-hint {
  display: none; position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%);
  margin: 0; padding: 8px 14px; border-radius: 999px; white-space: nowrap;
  align-items: center; gap: 8px; font-size: 13px; color: #b2c0bd;
  background: rgba(21,26,33,.92); border: 1px solid rgba(52,211,153,.35);
}
.rotate-hint svg { width: 16px; height: 16px; }
.is-portrait .rotate-hint { display: inline-flex; }
.is-embed .rotate-hint { display: none !important; }

/* ---------- 英文：放宽字距与列宽 ---------- */
html[lang="en"] .sc-title h1 { letter-spacing: .06em; }
html[lang="en"] .sc-title p { letter-spacing: .14em; text-transform: uppercase; font-size: 12px; }
html[lang="en"] .panel-hd h2 { letter-spacing: 0; }
html[lang="en"] .flow-head, html[lang="en"] .flow-row { grid-template-columns: 76px 160px minmax(0,1fr) 66px 78px 96px; }
html[lang="en"] .alert-row { grid-template-columns: 92px minmax(0,1fr) 46px; }
html[lang="en"] .rk-row { grid-template-columns: 26px 84px 1fr 76px; }
html[lang="en"] .kb-hot .rk-row { grid-template-columns: 22px 1fr auto; }
html[lang="en"] .rotate-hint { white-space: normal; text-align: center; width: max-content; max-width: calc(100vw - 32px); }

/* ---------- 减少动态效果：关闭动画，但数据照常刷新 ---------- */
@media (prefers-reduced-motion: reduce) {
  .sc-live i, .pulse-dot { animation: none; }
  .rd-col, .rk-row, .rk-bar, .meter-fill, .feed-list { transition: none !important; }
  .is-new { animation: none; }
}
