/* 亚马逊美英德三站运营早报 · 站点样式
   ------------------------------------------------------------------
   这是被扫读和操作的运营工具，不是通读的文档：先给结论再给明细，
   状态同时用形状（色条、圆点、标签）和数字表达，只在真正独立的对象上花边框和阴影。

   中性色统一偏向强调蓝，而不是纯灰；序列色沿用经过色盲区分度校验的
   三个色槽（蓝 / 橙 / 青），并已对本文件的浅色 #ffffff 与深色 #141a23
   两种卡片底重新验证通过。语义色（好 / 警告 / 严重）与序列色互不复用。

   字体刻意不用 Google Fonts：站点部署在国内服务器、读者也在国内，
   fonts.googleapis.com 不可靠，会拖慢甚至阻塞首屏。改用系统字族 +
   明确的字号与字重层级来建立秩序。
   ------------------------------------------------------------------ */

:root {
  color-scheme: light;

  /* 面与墨 */
  --plane: #eef2f7;
  --surface: #ffffff;
  --surface-sunken: #f6f8fb;
  --surface-raised: #ffffff;
  --ink: #0f172a;
  --ink-2: #475569;
  --ink-muted: #58677b;
  --grid: #e4e9f0;
  --axis: #cbd5e1;
  --hairline: #e4e9f0;
  --hairline-strong: #cbd5e1;

  /* 品牌：毛线帽工作台的深海军蓝、纱线橙与信号绿 */
  --brand-ink: #102b46;
  --brand-sky: #3d86cf;
  --brand-orange: #f2a43a;
  --brand-mint: #27a47a;
  --brand-paper: #f9fbfd;
  --brand-on-ink: #f7fbff;
  --nav-active-ink: #102b46;
  --link: #1f67bd;
  --mast-muted: #b9cbe0;
  --mast-control: rgba(255, 255, 255, .10);
  --mast-control-hover: rgba(255, 255, 255, .17);
  --mast-border: rgba(255, 255, 255, .24);
  --mast-shadow: 0 10px 28px -18px rgba(11, 29, 46, .72);

  /* 序列色（数据身份，勿改） */
  --series-1: #2a78d6;
  --series-2: #eb6834;
  --series-3: #1baf7a;
  --series-neutral: #aebacb;

  /* 语义色（状态，与序列色分开） */
  --good: #0ca30c;
  --warning: #fab219;
  --serious: #ec835a;
  --critical: #d03b3b;
  --good-text: #056b05;
  --critical-text: #b32b2b;
  --warning-text: #8a6100;

  /* 形状与阴影：按角色分配，不是全站统一 */
  --r-sm: 5px;
  --r-md: 8px;
  --r-lg: 12px;
  --r-pill: 999px;
  --lift-1: 0 1px 2px rgba(15, 23, 42, .05);
  --lift-2: 0 1px 3px rgba(15, 23, 42, .06), 0 8px 24px -8px rgba(15, 23, 42, .10);

  --sans: system-ui, -apple-system, "Segoe UI", "PingFang SC", "Hiragino Sans GB",
          "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --gutter: 20px;
}

@media (prefers-color-scheme: dark) {
  :root:where(:not([data-theme="light"])) {
    color-scheme: dark;
    --plane: #0a0e14;
    --surface: #141a23;
    --surface-sunken: #10161e;
    --surface-raised: #1b222d;
    --ink: #f1f5f9;
    --ink-2: #b4c0d0;
    --ink-muted: #94a3b8;
    --grid: #222b37;
    --axis: #323f4f;
    --hairline: #222b37;
    --hairline-strong: #323f4f;
    --brand-ink: #0b1d2e;
    --brand-paper: #f2f7fb;
    --brand-on-ink: #f7fbff;
    --nav-active-ink: #f1f5f9;
    --link: #74b4ff;
    --mast-muted: #a9bfd6;
    --mast-control: rgba(255, 255, 255, .09);
    --mast-control-hover: rgba(255, 255, 255, .16);
    --mast-border: rgba(255, 255, 255, .21);
    --mast-shadow: 0 12px 32px -18px rgba(0, 0, 0, .86);
    --series-1: #3987e5;
    --series-2: #d95926;
    --series-3: #199e70;
    --series-neutral: #4b5768;
    --good-text: #35c035;
    --critical-text: #f08a8a;
    --warning-text: #fab219;
    --lift-1: 0 1px 2px rgba(0, 0, 0, .45);
    --lift-2: 0 1px 3px rgba(0, 0, 0, .5), 0 8px 24px -8px rgba(0, 0, 0, .6);
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --plane: #0a0e14;
  --surface: #141a23;
  --surface-sunken: #10161e;
  --surface-raised: #1b222d;
  --ink: #f1f5f9;
  --ink-2: #b4c0d0;
  --ink-muted: #94a3b8;
  --grid: #222b37;
  --axis: #323f4f;
  --hairline: #222b37;
  --hairline-strong: #323f4f;
  --brand-ink: #0b1d2e;
  --brand-paper: #f2f7fb;
  --brand-on-ink: #f7fbff;
  --nav-active-ink: #f1f5f9;
  --link: #74b4ff;
  --mast-muted: #a9bfd6;
  --mast-control: rgba(255, 255, 255, .09);
  --mast-control-hover: rgba(255, 255, 255, .16);
  --mast-border: rgba(255, 255, 255, .21);
  --mast-shadow: 0 12px 32px -18px rgba(0, 0, 0, .86);
  --series-1: #3987e5;
  --series-2: #d95926;
  --series-3: #199e70;
  --series-neutral: #4b5768;
  --good-text: #35c035;
  --critical-text: #f08a8a;
  --warning-text: #fab219;
  --lift-1: 0 1px 2px rgba(0, 0, 0, .45);
  --lift-2: 0 1px 3px rgba(0, 0, 0, .5), 0 8px 24px -8px rgba(0, 0, 0, .6);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--plane);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--series-1); outline-offset: 2px; border-radius: 3px; }

.shell { width: min(1240px, 100%); margin: 0 auto; padding-inline: var(--gutter); }

/* ============ 顶栏 ============ */
.mast {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40;
  background: var(--brand-ink);
  border-bottom: 1px solid var(--hairline);
  box-shadow: var(--mast-shadow);
}
.mast-row { display: flex; align-items: center; gap: 16px; min-height: 74px; padding-block: 9px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; min-width: 0; color: var(--brand-on-ink); }
.brand-mark {
  flex: 0 0 auto; display: grid; place-items: center; width: 48px; height: 48px;
  border: 1px solid var(--mast-border); border-radius: 14px; background: var(--brand-paper);
  box-shadow: 0 5px 13px -7px rgba(0, 0, 0, .72); transform: rotate(-2deg);
  transition: transform .18s ease-out;
}
.brand:hover .brand-mark { transform: rotate(1deg) translateY(-1px); }
.brand-mascot { display: block; width: 43px; height: 43px; }
.mascot-crown { fill: var(--brand-sky); stroke: var(--brand-ink); stroke-width: 2.6; }
.mascot-stitch { fill: none; stroke: color-mix(in srgb, var(--brand-paper) 62%, transparent); stroke-width: 1.5; stroke-linecap: round; }
.mascot-cuff { fill: var(--brand-orange); stroke: var(--brand-ink); stroke-width: 2.6; }
.mascot-eye { fill: var(--brand-ink); }
.mascot-smile { fill: none; stroke: var(--brand-ink); stroke-width: 2; stroke-linecap: round; }
.mascot-lens { fill: var(--brand-mint); stroke: var(--brand-ink); stroke-width: 2.6; }
.mascot-handle { fill: none; stroke: var(--brand-ink); stroke-width: 3.6; stroke-linecap: round; }
.mascot-signal { fill: var(--brand-mint); stroke: var(--brand-paper); stroke-width: 2; }
.mascot-check { fill: none; stroke: var(--brand-paper); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.brand-copy { min-width: 0; display: grid; gap: 2px; }
.brand-title-line { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.brand b {
  font-family: ui-rounded, "SF Pro Rounded", "Arial Rounded MT Bold", var(--sans);
  font-size: 21px; line-height: 1.08; font-weight: 760; letter-spacing: -.035em;
  white-space: nowrap; color: var(--brand-on-ink);
}
.brand-kicker {
  color: var(--brand-orange); font-size: 10px; font-weight: 760; letter-spacing: .075em;
  white-space: nowrap;
}
.brand-meta {
  max-width: min(44vw, 420px); color: var(--mast-muted); font-size: 11px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums;
}
.mast-tools { display: flex; align-items: center; gap: 7px; margin-left: auto; }
.mast-tools .control {
  min-height: 44px; color: var(--brand-on-ink); background: var(--mast-control);
  border-color: var(--mast-border); border-radius: var(--r-md);
}
.mast-tools .control:hover { color: var(--brand-on-ink); background: var(--mast-control-hover); border-color: var(--brand-on-ink); }
.mast .visually-hidden { color: var(--brand-on-ink); }
.date-control { min-width: 148px; padding-inline: 11px 30px; color-scheme: dark; }
.icon-control { width: 44px; padding: 0; display: inline-flex; align-items: center; justify-content: center; }
.ui-icon { width: 19px; height: 19px; flex: 0 0 auto; }
.downloads { position: relative; }
.downloads > summary { list-style: none; }
.downloads > summary::-webkit-details-marker { display: none; }
.downloads[open] > summary { background: var(--mast-control-hover); border-color: var(--brand-on-ink); }
.download-links {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 50;
  min-width: 230px; display: grid; gap: 4px; padding: 8px;
  border: 1px solid var(--hairline-strong); border-radius: var(--r-md);
  background: var(--surface-raised); box-shadow: var(--lift-2); font-size: 13px;
}
.download-links a, .download-links > span { padding: 9px 10px; border-radius: var(--r-sm); }
.download-links a:hover { background: var(--surface-sunken); text-decoration: none; }

.control {
  appearance: none; font: inherit; font-size: 13px; line-height: 1.2;
  background: var(--surface); color: var(--ink-2);
  border: 1px solid var(--hairline-strong); border-radius: var(--r-sm);
  padding: 8px 11px; cursor: pointer; min-height: 44px;
  transition: border-color .12s ease, color .12s ease, background .12s ease;
}
.control:hover { border-color: var(--ink-muted); color: var(--ink); }

/* 导航：调度台式图标入口，当前页由底部“纱线”短划线标记 */
.nav { border-bottom: 1px solid var(--hairline); background: var(--surface); overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav-inner { display: flex; gap: 4px; padding-block: 6px; }
.nav a, .nav button {
  position: relative; display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
  min-height: 44px; padding: 8px 11px; font-size: 13px; color: var(--ink-2);
  border: 1px solid transparent; border-radius: var(--r-md); background: transparent; font-family: inherit; cursor: pointer;
  transition: color .15s ease, background .15s ease, border-color .15s ease;
}
.nav a::after, .nav button::after {
  content: ""; position: absolute; left: 50%; bottom: 3px; width: 18px; height: 2px;
  background: var(--brand-orange); border-radius: 2px;
  transform: translateX(-50%) scaleX(0); transition: transform .16s ease;
}
.nav a:hover, .nav button:hover { color: var(--ink); background: var(--surface-sunken); text-decoration: none; }
.nav a[aria-current="page"], .nav button[aria-current="page"] {
  color: var(--nav-active-ink); font-weight: 670;
  border-color: color-mix(in srgb, var(--series-1) 18%, var(--hairline));
  background: color-mix(in srgb, var(--series-1) 8%, var(--surface));
}
.nav a[aria-current="page"]::after, .nav button[aria-current="page"]::after { transform: translateX(-50%) scaleX(1); }
.nav-icon { width: 17px; height: 17px; color: var(--series-1); }
.nav-site {
  display: inline-grid; place-items: center; width: 24px; height: 20px; border-radius: 5px;
  color: var(--nav-active-ink); background: color-mix(in srgb, var(--series-1) 18%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--series-1) 40%, var(--hairline));
  font: 800 9px/1 var(--sans); letter-spacing: .02em;
}
.nav-site.uk {
  background: color-mix(in srgb, var(--series-2) 18%, var(--surface));
  border-color: color-mix(in srgb, var(--series-2) 42%, var(--hairline));
}
.nav-site.de {
  background: color-mix(in srgb, var(--series-3) 18%, var(--surface));
  border-color: color-mix(in srgb, var(--series-3) 42%, var(--hairline));
}
.nav-label { line-height: 1; }
.nav .pip {
  font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums;
  padding: 1px 7px; border-radius: var(--r-pill);
  background: var(--surface-sunken); color: var(--ink-2); border: 1px solid var(--hairline);
}
.nav .pip.alert {
  background: color-mix(in srgb, var(--critical) 14%, transparent);
  color: var(--critical-text); border-color: color-mix(in srgb, var(--critical) 32%, transparent);
}
.nav-more-hint { display: none; }
.nav-more-hint .visually-hidden { color: var(--ink); }

/* ============ 结构 ============ */
main { padding-block: 24px 72px; }
section { margin-bottom: 30px; }

.sec-head { display: flex; align-items: flex-end; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.sec-head h2 {
  margin: 0; font-size: 19px; font-weight: 650; letter-spacing: -.012em; text-wrap: balance;
  display: flex; align-items: center; gap: 8px;
}
.sec-head p { margin: 0; font-size: 13px; color: var(--ink-muted); }
.sec-head .spacer { margin-left: auto; }
.site-heading { align-items: baseline; }
.site-clock {
  display: inline-flex; align-items: center; gap: 8px;
  margin-inline: auto; color: var(--ink-muted); font-size: 13px;
}
.site-clock .ui-icon { width: 16px; height: 16px; flex: none; }
.site-clock time { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.site-verification { font-size: 12px; }

.eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-muted); display: block; margin-bottom: 3px;
}

.card {
  background: var(--surface); border: 1px solid var(--hairline);
  border-radius: var(--r-lg); padding: 20px;
}
.card.raised { box-shadow: var(--lift-2); }

/* ============ 指标 ============ */
.hero-wrap { display: grid; grid-template-columns: minmax(250px, .85fr) 2fr; gap: 16px; align-items: stretch; }
.hero { display: flex; flex-direction: column; justify-content: center; }
.hero .label {
  font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-muted);
}
.hero .value {
  font-size: clamp(38px, 5vw, 46px); font-weight: 680; line-height: 1.02;
  letter-spacing: -.035em; margin: 8px 0 4px;
}
.hero .sub { font-size: 12px; color: var(--ink-muted); font-variant-numeric: tabular-nums; }

.hero-split { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--grid); display: grid; gap: 9px; }
.hero-split > div { display: flex; align-items: center; gap: 9px; font-size: 13px; }
.hero-split > div b { margin-left: auto; font-size: 16px; font-weight: 650; font-variant-numeric: tabular-nums; }
.hero-split > div .muted { min-width: 76px; text-align: right; font-size: 12px; font-variant-numeric: tabular-nums; }
/* 与右侧图表卡等高时，把脚注推到卡片底部，避免下方留一块空白 */
.hero-foot {
  margin-top: auto; padding-top: 14px;
  font-size: 12px; color: var(--ink-muted); font-variant-numeric: tabular-nums;
}
.hero { justify-content: flex-start; }
.hero > .label { margin-top: auto; }
.hero > .label:first-child { margin-top: 0; }

/* 指标卡：状态靠左侧色条表达，不只是红字 */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(158px, 1fr)); gap: 10px; }
.tile {
  position: relative; overflow: hidden;
  background: var(--surface); border: 1px solid var(--hairline);
  border-radius: var(--r-md); padding: 13px 15px;
  box-shadow: var(--lift-1);
}
.tile::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: transparent; }
.tile .label { font-size: 12px; color: var(--ink-2); display: flex; align-items: center; gap: 6px; }
.tile .value {
  font-size: 27px; font-weight: 650; line-height: 1.15; letter-spacing: -.025em; margin-top: 3px;
}
.tile .sub { font-size: 12px; color: var(--ink-muted); font-variant-numeric: tabular-nums; margin-top: 1px; }
.tile.alert::before { background: var(--critical); }
.tile.alert .value { color: var(--critical-text); }
.tile.warn::before { background: var(--warning); }

/* ============ 站点卡 ============ */
.site-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(292px, 1fr)); gap: 12px; }
.site-card {
  position: relative; overflow: hidden;
  background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-lg);
  padding: 16px 18px 15px; display: flex; flex-direction: column; gap: 12px;
  font: inherit; color: inherit; text-align: left; width: 100%;
  box-shadow: var(--lift-1);
  transition: border-color .14s ease, box-shadow .14s ease, transform .14s ease;
}
/* 站点身份：顶部一条自己的序列色，而不是整卡描边 */
.site-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 2px; background: var(--axis); }
.site-card.site-us::before { background: var(--series-1); }
.site-card.site-uk::before { background: var(--series-2); }
.site-card.site-de::before { background: var(--series-3); }
.site-card.clickable { cursor: pointer; }
.site-card.clickable:hover { border-color: var(--hairline-strong); box-shadow: var(--lift-2); transform: translateY(-1px); }
.site-card header { display: flex; align-items: center; gap: 8px; }
.site-card header b { font-size: 15px; font-weight: 650; }
.site-card header .shop { font-size: 11px; color: var(--ink-muted); margin-left: auto; font-family: var(--mono); }
.site-card .grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.site-card .grid div span {
  display: block; font-size: 11px; color: var(--ink-muted); letter-spacing: .02em;
}
.site-card .grid div b { font-size: 19px; font-weight: 650; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.site-card footer { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-2); flex-wrap: wrap; }
.site-card svg { border-radius: var(--r-sm); }

.dot { width: 9px; height: 9px; border-radius: 50%; flex: none; display: inline-block; }
.dot.us { background: var(--series-1); }
.dot.uk { background: var(--series-2); }
.dot.de { background: var(--series-3); }

/* ============ 状态标记 ============ */
.badge {
  display: inline-flex; align-items: center; gap: 5px; white-space: nowrap;
  font-size: 12px; font-weight: 500; line-height: 1.5; padding: 2px 9px; border-radius: var(--r-pill);
  border: 1px solid var(--hairline-strong); color: var(--ink-2); background: var(--surface-sunken);
}
.badge .mark { font-weight: 700; font-size: 10px; }
.badge.critical {
  border-color: color-mix(in srgb, var(--critical) 42%, transparent);
  color: var(--critical-text); background: color-mix(in srgb, var(--critical) 11%, transparent);
}
.badge.warning {
  border-color: color-mix(in srgb, var(--warning) 48%, transparent);
  color: var(--warning-text); background: color-mix(in srgb, var(--warning) 15%, transparent);
}
.badge.good {
  border-color: color-mix(in srgb, var(--good) 38%, transparent);
  color: var(--good-text); background: color-mix(in srgb, var(--good) 11%, transparent);
}
.badge.muted { color: var(--ink-muted); background: transparent; }

.banner {
  display: flex; gap: 11px; align-items: flex-start; font-size: 13px;
  border-radius: var(--r-md); padding: 13px 16px;
  border: 1px solid var(--hairline); border-left-width: 3px; background: var(--surface);
  box-shadow: var(--lift-1);
}
.banner > span:first-child { font-weight: 700; line-height: 1.5; }
.banner.critical { border-left-color: var(--critical); background: color-mix(in srgb, var(--critical) 5%, var(--surface)); }
.banner.critical > span:first-child { color: var(--critical-text); }
.banner.warning { border-left-color: var(--warning); background: color-mix(in srgb, var(--warning) 7%, var(--surface)); }
.banner.warning > span:first-child { color: var(--warning-text); }
.banner.good { border-left-color: var(--good); background: color-mix(in srgb, var(--good) 5%, var(--surface)); }
.banner.good > span:first-child { color: var(--good-text); }
.banner b { display: block; font-weight: 650; margin-bottom: 2px; }
.banner ul { margin: 6px 0 0; padding-left: 18px; color: var(--ink-2); }
.banner li { margin-bottom: 2px; }
.banner.compact { margin-bottom: 12px; padding-block: 10px; }
.mapping-ok {
  display: flex; align-items: center; gap: 7px; margin: -2px 0 12px;
  color: var(--good-text); font-size: 12px; font-weight: 550;
}

/* ============ 图表 ============ */
.chart-card {
  background: var(--surface); border: 1px solid var(--hairline);
  border-radius: var(--r-lg); padding: 16px 18px 12px; box-shadow: var(--lift-1);
}
.chart-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.chart-head h3 { margin: 0; font-size: 16px; font-weight: 650; letter-spacing: -.01em; }
.chart-head .note { font-size: 12px; color: var(--ink-muted); }
.chart-head .spacer { margin-left: auto; }
.chart-plot { position: relative; width: 100%; }
.chart-plot svg { display: block; width: 100%; }

.legend { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.legend button {
  display: inline-flex; align-items: center; gap: 7px; min-height: 44px; font: inherit; font-size: 12px;
  background: transparent; border: 1px solid var(--hairline); border-radius: var(--r-pill);
  padding: 4px 11px 4px 8px; color: var(--ink-2); cursor: pointer;
  transition: border-color .12s ease, color .12s ease, opacity .12s ease;
}
.legend button:hover { border-color: var(--hairline-strong); color: var(--ink); }
.legend button[aria-pressed="true"] {
  border-color: var(--hairline-strong); color: var(--ink); font-weight: 600; background: var(--surface-sunken);
}
.legend button.dim { opacity: .4; }
.legend .key { width: 15px; height: 3px; border-radius: 2px; flex: none; }

.chart-table summary {
  min-height: 44px; display: flex; align-items: center;
  cursor: pointer; font-size: 12px; color: var(--ink-muted); padding: 8px 0 4px; list-style: none;
}
.chart-table summary::-webkit-details-marker { display: none; }
.chart-table summary::before { content: "▸ "; }
.chart-table[open] summary::before { content: "▾ "; }

.tooltip {
  position: absolute; pointer-events: none; z-index: 5; min-width: 140px;
  background: var(--surface-raised); border: 1px solid var(--hairline-strong);
  border-radius: var(--r-md); box-shadow: var(--lift-2);
  padding: 9px 11px; font-size: 12px; opacity: 0; transition: opacity .08s linear;
}
.tooltip[data-open="true"] { opacity: 1; }
.tooltip .t-date { font-weight: 650; margin-bottom: 5px; font-variant-numeric: tabular-nums; }
.tooltip .t-row { display: flex; align-items: center; gap: 7px; }
.tooltip .t-row .key { width: 11px; height: 3px; border-radius: 2px; flex: none; }
.tooltip .t-row .name { color: var(--ink-2); }
.tooltip .t-row .val { margin-left: auto; font-variant-numeric: tabular-nums; font-weight: 650; }

/* ============ 小倍数 ============ */
.sparks { display: grid; grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); gap: 9px; }
.spark {
  text-align: left; font: inherit; cursor: pointer;
  background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-md);
  padding: 11px 13px 9px; display: flex; flex-direction: column; gap: 3px;
  transition: border-color .12s ease, box-shadow .12s ease;
}
.spark:hover { border-color: var(--hairline-strong); box-shadow: var(--lift-1); }
.spark[aria-pressed="true"] { border-color: currentColor; box-shadow: inset 0 0 0 1px currentColor; }
.spark .top { display: flex; align-items: baseline; gap: 6px; }
.spark .code { font-weight: 650; font-size: 13px; font-family: var(--mono); letter-spacing: -.01em; }
.spark .month { margin-left: auto; font-size: 15px; font-variant-numeric: tabular-nums; font-weight: 650; letter-spacing: -.02em; }
.spark .meta { font-size: 11px; color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.spark svg { display: block; width: 100%; height: 36px; margin-top: 4px; }

/* ============ 表格：不再包一层卡片，靠留白和细线分组 ============ */
.table-wrap {
  overflow-x: auto; background: var(--surface);
  border: 1px solid var(--hairline); border-radius: var(--r-md);
}
table { border-collapse: collapse; width: 100%; font-size: 13px; }
.resizable-table {
  width: max-content;
  min-width: 100%;
  table-layout: fixed;
}
thead th {
  position: sticky; top: 0; z-index: 2; background: var(--surface);
  text-align: left; font-weight: 600; color: var(--ink-muted); white-space: nowrap;
  padding: 10px 12px; border-bottom: 1px solid var(--axis);
  font-size: 11px; letter-spacing: .055em; text-transform: uppercase;
}
thead th.sortable { cursor: pointer; user-select: none; }
thead th.sortable:hover { color: var(--ink); }
thead th .arrow { color: var(--series-1); font-size: 9px; }
.resizable-header { position: sticky; }
.column-resizer {
  position: absolute; inset: 0 -6px 0 auto; z-index: 4;
  width: 12px; cursor: col-resize; touch-action: none;
}
.column-resizer::after {
  content: ""; position: absolute; top: 5px; bottom: 5px; left: 5px; width: 1px;
  background: transparent; transition: background .12s ease, box-shadow .12s ease;
}
.column-resizer:hover::after,
.column-resizer:focus-visible::after {
  background: var(--series-1); box-shadow: 0 0 0 1px color-mix(in srgb, var(--series-1) 18%, transparent);
}
body.resizing-columns { cursor: col-resize; user-select: none; }
.resizable-table tbody td { white-space: normal; overflow-wrap: anywhere; }
tbody td {
  padding: 9px 12px; border-bottom: 1px solid var(--grid); vertical-align: top;
}
tbody tr:last-child td { border-bottom: none; }
tbody tr { transition: background .1s ease; }
tbody tr:hover td { background: var(--surface-sunken); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
td.mono { font-family: var(--mono); font-size: 12px; }
.quantity-input,
.table-input {
  width: 100%; height: 32px; padding: 4px 7px;
  border: 1px solid var(--hairline-strong); border-radius: var(--r-sm);
  background: var(--surface); color: var(--ink); font: 500 13px/1 var(--sans);
}
.quantity-input { min-width: 62px; font-family: var(--mono); font-weight: 650; text-align: right; font-variant-numeric: tabular-nums; }
.shipping-date-input { min-width: 152px; font-family: var(--mono); font-size: 12px; font-variant-numeric: tabular-nums; }
.logistics-input { min-width: 116px; }
.quantity-input:hover,
.table-input:hover { border-color: var(--ink-muted); }
.quantity-input:focus,
.table-input:focus { border-color: var(--series-1); box-shadow: 0 0 0 2px color-mix(in srgb, var(--series-1) 16%, transparent); outline: none; }
.quantity-input.changed { color: var(--series-1); border-color: color-mix(in srgb, var(--series-1) 55%, var(--hairline)); }
.logistics-quantity { display: inline-flex; flex-direction: column; align-items: flex-end; line-height: 1.05; }
.logistics-quantity b { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.logistics-quantity small { margin-top: 3px; color: var(--ink-muted); font-size: 10px; font-weight: 500; }
.logistics-guide {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 5px 12px;
  margin: 10px 0 12px; padding: 10px 13px;
  border: 1px solid var(--hairline); border-left: 3px solid var(--series-1);
  border-radius: var(--r-sm); background: var(--surface-sunken); color: var(--ink-2); font-size: 12px;
}
.logistics-guide b { color: var(--ink); white-space: nowrap; }
.logistics-guide span { min-width: 0; overflow-wrap: anywhere; }

/* 行级状态：左侧 3px 色条，扫一眼就知道哪几行要动 */
tbody tr.row-critical td:first-child { box-shadow: inset 3px 0 0 var(--critical); }
tbody tr.row-warning td:first-child { box-shadow: inset 3px 0 0 var(--warning); }

.muted { color: var(--ink-muted); }
.nowrap { white-space: nowrap; }
.clip { max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 11px; }
.filters input[type="search"] { min-width: 210px; flex: 1 1 230px; }
.filters .count { font-size: 12px; color: var(--ink-muted); margin-left: auto; font-variant-numeric: tabular-nums; }
.more { display: flex; justify-content: center; padding: 12px 0 0; }

/* ============ 站点页全局筛选 ============ */
.filter-bar {
  display: flex; align-items: center; gap: 13px; flex-wrap: wrap;
  margin: 14px 0 16px; padding: 11px 13px;
  background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-md);
  box-shadow: var(--lift-1);
}
.segmented {
  display: inline-flex; gap: 2px; padding: 3px; border-radius: var(--r-sm);
  background: var(--surface-sunken); border: 1px solid var(--hairline);
}
.segmented button {
  display: inline-flex; align-items: center; gap: 7px;
  font: inherit; font-size: 13px; color: var(--ink-2);
  background: transparent; border: none; border-radius: calc(var(--r-sm) - 1px);
  padding: 6px 13px; cursor: pointer; white-space: nowrap;
  transition: background .12s ease, color .12s ease;
}
.segmented button:hover:not([disabled]) { color: var(--ink); }
.segmented button[aria-pressed="true"] {
  background: var(--surface); color: var(--ink); font-weight: 650; box-shadow: var(--lift-1);
}
.segmented button[disabled] { opacity: .4; cursor: not-allowed; }
.seg-count { font-size: 11px; font-variant-numeric: tabular-nums; color: var(--ink-muted); }
.segmented button[aria-pressed="true"] .seg-count { color: var(--ink-2); }

.tag-new {
  display: inline-block; margin-left: 6px; padding: 1px 5px; border-radius: 3px;
  font-size: 10px; font-weight: 700; letter-spacing: .04em; vertical-align: 1px;
  background: color-mix(in srgb, var(--series-1) 14%, transparent);
  color: var(--series-1); font-family: var(--sans);
}
.alias {
  display: inline-block; margin-left: 6px; font-size: 11px; color: var(--ink-muted);
  font-family: var(--sans); white-space: nowrap;
}

/* ============ 差评 ============ */
.reviews { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 11px; }
.review {
  background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-md);
  border-left: 3px solid var(--warning);
  padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; box-shadow: var(--lift-1);
}
.review.r-s1 { border-left-color: var(--critical); }
.review .head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.review .stars { font-size: 12px; letter-spacing: .5px; }
.review .stars.s1 { color: var(--critical); }
.review .stars.s2 { color: var(--warning-text); }
.review .sku { font-family: var(--mono); font-size: 12px; color: var(--ink-2); }
.review .title { font-weight: 650; font-size: 14px; text-wrap: balance; }
.review .body {
  font-size: 13px; color: var(--ink-2); cursor: pointer;
  display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical;
  line-clamp: 5; overflow: hidden;
}
.review.open .body { display: block; -webkit-line-clamp: none; line-clamp: none; }
.review .foot { display: flex; align-items: center; gap: 9px; font-size: 12px; color: var(--ink-muted); flex-wrap: wrap; }
.review .foot a { min-height: 44px; display: inline-flex; align-items: center; }
.review .action {
  font-size: 12px; color: var(--ink-2); background: var(--surface-sunken);
  border-radius: var(--r-sm); padding: 8px 10px;
}

/* ============ 增长机会：需求雷达 + 可执行判断 ============ */
.opportunities-page { min-width: 0; }
.opp-hero {
  display: grid; grid-template-columns: minmax(260px, .72fr) minmax(0, 1.8fr);
  gap: 16px; align-items: stretch;
}
.opp-hero-copy {
  position: relative; overflow: hidden; min-height: 176px;
  padding: 23px 24px; border: 1px solid var(--hairline); border-radius: var(--r-lg);
  background: var(--surface); box-shadow: var(--lift-2);
}
.opp-hero-copy::after {
  content: ""; position: absolute; width: 146px; height: 146px; right: -65px; bottom: -73px;
  border: 22px solid color-mix(in srgb, var(--series-1) 10%, transparent); border-radius: 50%;
}
.opp-hero-copy h1 {
  position: relative; z-index: 1; margin: 4px 0 10px; max-width: 9em;
  font-size: clamp(27px, 3.5vw, 38px); line-height: 1.07; font-weight: 690;
  letter-spacing: -.035em; text-wrap: balance;
}
.opp-warning-details { margin-top: 5px; color: var(--ink-2); }
.opp-warning-details summary { min-height: 32px; display: flex; align-items: center; cursor: pointer; font-size: 12px; font-weight: 600; }
.opp-warning-details ul { margin-top: 2px; }
.opp-hero-copy p { position: relative; z-index: 1; margin: 0; max-width: 38em; color: var(--ink-2); font-size: 13px; }
.opp-kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 9px; }
.opp-kpis .tile { grid-column: span 2; min-width: 0; }
.opp-kpis .tile:nth-child(4), .opp-kpis .tile:nth-child(5) { grid-column: span 3; }

.opp-tabs {
  display: flex; align-items: stretch; gap: 0; overflow-x: auto; scrollbar-width: none;
  margin-bottom: 10px; border-bottom: 1px solid var(--hairline);
}
.opp-tabs::-webkit-scrollbar { display: none; }
.opp-tabs button {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  flex: 0 0 auto; min-height: 44px; padding: 8px 14px;
  border: 0; background: transparent; color: var(--ink-2); font: 500 13px/1.2 var(--sans); cursor: pointer;
}
.opp-tabs button::after {
  content: ""; position: absolute; left: 11px; right: 11px; bottom: -1px; height: 2px;
  background: var(--series-1); transform: scaleX(0); transition: transform .16s ease;
}
.opp-tabs button:hover { color: var(--ink); }
.opp-tabs button[aria-selected="true"] { color: var(--ink); font-weight: 650; }
.opp-tabs button[aria-selected="true"]::after { transform: scaleX(1); }
.opp-tabs button span {
  min-width: 20px; padding: 2px 6px; border: 1px solid var(--hairline); border-radius: var(--r-pill);
  background: var(--surface-sunken); color: var(--ink-muted); font-size: 10px; font-variant-numeric: tabular-nums;
}
.opp-filters { padding: 10px; border: 1px solid var(--hairline); border-radius: var(--r-md); background: var(--surface); }
.opp-filters .control { min-height: 44px; }
.opp-filters input[type="search"] { min-width: min(270px, 100%); }

.opp-list { display: grid; gap: 11px; }
.opp-card {
  position: relative; overflow: hidden; display: grid; gap: 14px;
  padding: 17px 18px 16px; border: 1px solid var(--hairline); border-left: 3px solid var(--warning);
  border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--lift-1);
}
.opp-card.confirmed { border-left-color: var(--good); }
.opp-card.blocked { border-left-color: var(--critical); }
.opp-card.weak { border-left-color: var(--ink-muted); }
.opp-card > header { display: flex; align-items: flex-start; gap: 14px; flex-wrap: wrap; }
.opp-identity { display: flex; align-items: flex-start; gap: 9px; min-width: 0; }
.opp-identity .dot { margin-top: 6px; }
.opp-code { font: 680 16px/1.3 var(--mono); letter-spacing: -.02em; overflow-wrap: anywhere; }
.opp-code .tag-new { font-family: var(--sans); }
.opp-sub { margin-top: 2px; color: var(--ink-muted); font-size: 12px; overflow-wrap: anywhere; }
.opp-tags { display: flex; align-items: center; justify-content: flex-end; gap: 6px; flex-wrap: wrap; margin-left: auto; }

.opp-score-grid {
  display: grid; grid-template-columns: minmax(160px, 1fr) minmax(160px, 1fr) minmax(110px, .55fr);
  gap: 10px; padding: 11px 12px; background: var(--surface-sunken); border: 1px solid var(--hairline); border-radius: var(--r-md);
}
.opp-score > div:first-child, .opp-priority { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.opp-score span, .opp-priority span { color: var(--ink-muted); font-size: 11px; }
.opp-score b, .opp-priority b { font-size: 18px; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -.025em; }
.opp-score-track { height: 4px; margin-top: 7px; overflow: hidden; background: var(--axis); border-radius: 2px; }
.opp-score-track i { display: block; height: 100%; border-radius: inherit; background: var(--series-1); }
.opp-score.execution .opp-score-track i { background: var(--good); }
.opp-priority { align-items: center; padding-left: 10px; border-left: 1px solid var(--hairline-strong); }
.opp-priority b { font-size: 25px; color: var(--ink); }

.opp-metrics { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1px; background: var(--hairline); border: 1px solid var(--hairline); border-radius: var(--r-md); overflow: hidden; }
.opp-metrics > div { min-width: 0; padding: 9px 10px; background: var(--surface); }
.opp-metrics span { display: block; color: var(--ink-muted); font-size: 10px; white-space: nowrap; }
.opp-metrics b { display: block; margin-top: 2px; font-size: 13px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.up { color: var(--good-text); }
.down { color: var(--critical-text); }

.opp-verdict {
  display: flex; align-items: baseline; gap: 7px; flex-wrap: wrap;
  padding: 10px 12px; border-left: 3px solid var(--series-1); border-radius: var(--r-sm);
  background: color-mix(in srgb, var(--series-1) 6%, var(--surface)); color: var(--ink-2); font-size: 13px;
}
.opp-verdict-label { color: var(--ink-muted); font-size: 11px; font-weight: 650; letter-spacing: .05em; text-transform: uppercase; }
.opp-verdict b { color: var(--ink); font-weight: 650; }
.opp-review-date { margin-left: auto; color: var(--ink-muted); font-size: 12px; font-variant-numeric: tabular-nums; }

.opp-evidence { border-top: 1px solid var(--grid); padding-top: 10px; }
.opp-evidence summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; color: var(--ink-2); font-size: 12px; list-style: none; }
.opp-evidence summary::-webkit-details-marker { display: none; }
.opp-evidence summary::before { content: "＋"; margin-right: 7px; color: var(--series-1); font-weight: 700; }
.opp-evidence[open] summary::before { content: "−"; }
.opp-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; padding: 2px 0 8px; }
.opp-detail-grid h4 { margin: 0 0 5px; font-size: 12px; font-weight: 650; }
.opp-detail-grid ul { margin: 0; padding-left: 17px; color: var(--ink-2); font-size: 12px; }
.opp-detail-grid p { margin: 0; font-size: 12px; }
.opp-keyword-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.opp-keyword-chips span { padding: 3px 8px; border: 1px solid var(--hairline); border-radius: var(--r-pill); background: var(--surface-sunken); font-size: 11px; }
.opp-meta { display: flex; gap: 8px 16px; flex-wrap: wrap; margin-top: 9px; color: var(--ink-muted); font-size: 11px; }
.opp-action-form { margin-top: 12px; padding: 11px; border: 1px solid var(--hairline); border-radius: var(--r-md); background: var(--surface-sunken); }
.opp-action-head { display: flex; align-items: baseline; gap: 8px 14px; flex-wrap: wrap; margin-bottom: 8px; }
.opp-action-head b { font-size: 12px; }
.opp-action-head span { color: var(--ink-muted); font-size: 11px; }
.opp-action-fields { display: grid; grid-template-columns: minmax(140px, .75fr) minmax(136px, .65fr) minmax(180px, 1.5fr) auto; gap: 7px; }
.opp-action-fields .control { min-width: 0; width: 100%; min-height: 44px; }
.opp-action-save { color: var(--surface); background: var(--series-1); border-color: var(--series-1); font-weight: 620; white-space: nowrap; }
.opp-action-save:hover:not([disabled]) { color: var(--surface); background: color-mix(in srgb, var(--series-1) 88%, var(--ink)); border-color: color-mix(in srgb, var(--series-1) 88%, var(--ink)); }
.opp-action-save[disabled] { opacity: .55; cursor: not-allowed; }
.opp-action-status { display: block; min-height: 18px; margin-top: 6px; color: var(--ink-muted); font-size: 11px; overflow-wrap: anywhere; }

.opp-keyword-panel { min-width: 0; }
.opp-keyword-table td:nth-child(2) { min-width: 210px; }
.opp-keyword-table td:nth-child(2) b { font-weight: 620; }
.opp-keyword-table td:nth-child(2) .muted { font-size: 11px; }
.opp-keyword-mobile { display: none; }

/* 帽型热搜雷达：一级帽型集中，功能系列作为二级标签。 */
.keyword-radar { min-width: 0; }
.radar-head { align-items: end; }
.radar-source {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  margin-bottom: 10px; padding: 11px 13px; border: 1px solid var(--hairline);
  border-left: 3px solid var(--good); border-radius: var(--r-md); background: var(--surface);
}
.radar-source.warning { border-left-color: var(--warning); }
.radar-source > div { display: grid; gap: 2px; min-width: 0; }
.radar-source b { font-size: 12px; }
.radar-source span { color: var(--ink-muted); font-size: 11px; overflow-wrap: anywhere; }
.radar-source details { flex: 0 0 auto; max-width: min(480px, 55%); }
.radar-source summary { min-height: 34px; display: flex; align-items: center; cursor: pointer; color: var(--ink-2); font-size: 11px; }
.radar-source ul { margin: 3px 0 0; padding-left: 17px; color: var(--ink-2); font-size: 11px; }
.radar-site-tabs {
  display: inline-flex; flex-wrap: wrap; gap: 4px; margin-bottom: 11px; padding: 4px;
  border: 1px solid var(--hairline); border-radius: var(--r-md); background: var(--surface-sunken);
}
.radar-site-tabs button {
  min-height: 36px; padding: 6px 12px; border: 0; border-radius: calc(var(--r-sm) - 1px);
  color: var(--ink-2); background: transparent; font: 560 12px/1 var(--sans); cursor: pointer;
}
.radar-site-tabs button[aria-pressed="true"] { color: var(--ink); background: var(--surface); box-shadow: var(--lift-1); font-weight: 680; }
.radar-groups { display: grid; gap: 9px; }
.radar-group { overflow: hidden; border: 1px solid var(--hairline); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--lift-1); }
.radar-group > summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 66px;
  padding: 10px 14px; cursor: pointer; list-style: none;
}
.radar-group > summary::-webkit-details-marker { display: none; }
.radar-group[open] > summary { border-bottom: 1px solid var(--grid); }
.radar-group-title { display: flex; align-items: center; gap: 10px; min-width: 0; }
.radar-type-mark {
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 38px; width: 38px; height: 38px;
  border-radius: 12px; color: var(--series-1); background: color-mix(in srgb, var(--series-1) 10%, var(--surface));
  font-size: 15px; font-weight: 760;
}
.radar-group-title h3 { margin: 0; font-size: 15px; letter-spacing: -.01em; }
.radar-group-title span { color: var(--ink-muted); font-size: 11px; }
.radar-group-meta { display: flex; align-items: center; justify-content: flex-end; gap: 9px; flex: 0 0 auto; }
.radar-disclosure { color: var(--ink-muted); font-size: 24px; line-height: 1; transform: rotate(90deg); transition: transform .15s ease; }
.radar-group[open] .radar-disclosure { transform: rotate(-90deg); }
.radar-series { display: flex; gap: 5px; flex-wrap: wrap; padding: 9px 14px 2px; }
.radar-series span { padding: 3px 7px; border: 1px solid var(--hairline); border-radius: var(--r-pill); color: var(--ink-2); background: var(--surface-sunken); font-size: 10px; }
.radar-table { margin-top: 5px; }
.radar-table td:nth-child(2) { min-width: 220px; }
.radar-table td:nth-child(2) b { font-weight: 640; }
.radar-mobile-meta { display: none; }
.radar-method { margin-top: 9px; padding: 0 2px; color: var(--ink-2); font-size: 11px; }
.radar-method summary { min-height: 36px; display: flex; align-items: center; cursor: pointer; font-weight: 650; }
.radar-method p { margin: 0 0 5px; line-height: 1.55; }

.opp-empty {
  min-height: 180px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 28px; border: 1px dashed var(--hairline-strong); border-radius: var(--r-lg); background: var(--surface);
}
.opp-empty.compact { min-height: 110px; }
.opp-empty b { font-size: 15px; }
.opp-empty p { max-width: 42em; margin: 5px 0 0; color: var(--ink-muted); font-size: 13px; }

.opp-method { display: grid; grid-template-columns: minmax(260px, .8fr) minmax(280px, 1.25fr); gap: 18px 26px; align-items: center; }
.opp-equation {
  grid-row: 1 / span 2; display: flex; align-items: baseline; justify-content: center; flex-wrap: wrap;
  padding: 22px 15px; border: 1px solid var(--hairline); border-radius: var(--r-md); background: var(--surface-sunken);
  font: 600 clamp(20px, 3vw, 30px)/1.3 Georgia, "Times New Roman", serif; letter-spacing: -.02em; text-align: center;
}
.opp-equation span { color: var(--series-1); font-style: italic; }
.opp-symbols { display: grid; gap: 4px; }
.opp-symbols p, .opp-rules p { margin: 0; color: var(--ink-2); font-size: 13px; }
.opp-symbols b { display: inline-block; min-width: 17px; color: var(--series-1); font: italic 650 14px/1 Georgia, serif; }
.opp-rules { display: grid; gap: 5px; padding-top: 10px; border-top: 1px solid var(--hairline); }
.opp-rules b { color: var(--ink); }

/* ============ 历史 ============ */
.history-list { display: grid; gap: 7px; }
.history-row {
  display: grid; grid-template-columns: 140px repeat(4, minmax(72px, 1fr)) auto; gap: 12px; align-items: center;
  background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-md);
  padding: 11px 15px; font-size: 13px; text-decoration: none; color: inherit;
  font-family: inherit; text-align: left; width: 100%; cursor: pointer;
  transition: border-color .12s ease, box-shadow .12s ease;
}
.history-row:hover { border-color: var(--hairline-strong); box-shadow: var(--lift-1); text-decoration: none; }
.history-row[aria-current="true"] { border-color: var(--series-1); box-shadow: inset 0 0 0 1px var(--series-1); }
.history-row .d { font-weight: 650; font-variant-numeric: tabular-nums; }
.history-row .m span { display: block; font-size: 11px; color: var(--ink-muted); }
.history-row .m b { font-variant-numeric: tabular-nums; font-weight: 650; }

/* ============ 脚注 ============ */
.method { display: grid; grid-template-columns: repeat(auto-fit, minmax(236px, 1fr)); gap: 9px; font-size: 12px; }
.method div {
  background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-sm);
  padding: 11px 13px;
}
.method span {
  display: block; color: var(--ink-muted); font-size: 11px;
  letter-spacing: .06em; text-transform: uppercase; font-weight: 600; margin-bottom: 2px;
}
.method b { font-weight: 500; word-break: break-word; color: var(--ink-2); }

.skeleton { color: var(--ink-muted); padding: 56px 0; text-align: center; font-size: 14px; }
.stale { opacity: .45; transition: opacity .15s linear; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; color: var(--ink);
}

/* ============ 响应式 ============ */
@media (max-width: 900px) {
  .hero-wrap { grid-template-columns: 1fr; }
  .history-row { grid-template-columns: 1fr 1fr; row-gap: 8px; }
  .history-row .d { grid-column: 1 / -1; }
  .opp-hero { grid-template-columns: 1fr; }
  .opp-hero-copy { min-height: 150px; }
  .opp-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  :root { --gutter: 16px; }
  .mast-row { min-height: 64px; gap: 9px; padding-block: 7px; }
  .brand { gap: 8px; }
  .brand-mark { width: 40px; height: 40px; border-radius: 12px; }
  .brand-mascot { width: 36px; height: 36px; }
  .brand b { font-size: 18px; }
  .brand-kicker, .brand-meta { display: none; }
  .mast-tools { gap: 6px; }
  .date-control { width: 114px; min-width: 114px; padding-inline: 8px 24px; font-size: 12px; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .tile .value { font-size: 23px; }
  .sparks { grid-template-columns: repeat(2, 1fr); }
  .reviews { grid-template-columns: 1fr; }
  .clip { max-width: 170px; }
  .filter-bar { gap: 9px; padding: 9px 11px; }
  .segmented { width: 100%; }
  .segmented button { flex: 1; justify-content: center; padding: 8px; }
  .sec-head h2 { font-size: 17px; }
  .site-clock { order: 1; flex-basis: 100%; margin-inline: 0; }
  .nav { margin-right: 54px; padding-right: 0; }
  .nav-inner { padding-block: 4px; }
  .nav a, .nav button { padding-inline: 10px; }
  .nav-more-hint {
    position: absolute; right: 0; bottom: 0; z-index: 3;
    display: inline-flex; align-items: center; justify-content: center;
    width: 54px; height: 53px; padding: 0;
    border: 0; border-left: 1px solid var(--hairline); color: var(--series-1); background: var(--surface);
    cursor: pointer;
  }
  .nav-more-hint .ui-icon { width: 21px; height: 21px; }
  .opp-hero-copy { min-height: 0; padding: 16px 17px; }
  .opp-hero-copy::after { width: 100px; height: 100px; border-width: 16px; right: -50px; bottom: -55px; }
  .opp-hero-copy h1 { max-width: none; margin: 2px 0 6px; font-size: 24px; }
  .opp-warning-details summary { min-height: 40px; }
  .opp-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .opp-kpis .tile, .opp-kpis .tile:nth-child(4), .opp-kpis .tile:nth-child(5) { grid-column: span 1; }
  .opp-kpis .tile:last-child { grid-column: 1 / -1; }
  .opp-tabs { margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
  .opp-filters { display: grid; grid-template-columns: 1fr 1fr; }
  .opp-filters input[type="search"] { grid-column: 1 / -1; min-width: 0; width: 100%; }
  .opp-card { padding: 14px 13px; }
  .opp-tags { width: 100%; justify-content: flex-start; margin-left: 18px; }
  .opp-score-grid { grid-template-columns: 1fr 1fr; }
  .opp-priority { grid-column: 1 / -1; padding: 8px 0 0; border-left: 0; border-top: 1px solid var(--hairline-strong); }
  .opp-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .opp-review-date { width: 100%; margin-left: 0; }
  .opp-detail-grid, .opp-method { grid-template-columns: 1fr; }
  .opp-equation { grid-row: auto; min-width: 0; font-size: 21px; }
  .opp-symbols p, .opp-rules p { font-size: 14px; line-height: 1.55; }
  .opp-action-fields { grid-template-columns: 1fr 1fr; }
  .opp-action-fields input[type="text"] { grid-column: 1 / -1; }
  .opp-action-save { grid-column: 1 / -1; min-height: 44px; }
  .opp-keyword-mobile { display: flex; gap: 5px 10px; flex-wrap: wrap; margin-top: 4px; color: var(--ink-2); font-size: 10px; }
  .opp-keyword-mobile b { font-size: inherit; }
  .opp-keyword-table th:nth-child(n+4), .opp-keyword-table td:nth-child(n+4) { display: none; }
  .radar-head { align-items: start; }
  .radar-source { display: grid; }
  .radar-source details { max-width: none; }
  .radar-site-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  .radar-group > summary { min-height: 62px; padding: 9px 11px; }
  .radar-group-meta .badge { display: none; }
  .radar-series { padding-inline: 11px; }
  .radar-table th:nth-child(n+3), .radar-table td:nth-child(n+3) { display: none; }
  .radar-table td:nth-child(2) { min-width: 0; }
  .radar-mobile-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 4px; color: var(--ink-muted); font-size: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

@media print {
  .mast, .nav, .more, .legend button, .filter-bar { display: none; }
  body { background: #fff; }
  .card, .tile, .chart-card, .site-card { box-shadow: none; }
}
/* 秋冬对照：自然高度、整表展开；窄屏按站点分段，不产生嵌套滚动。 */
.shell.overview-wide { width: min(1280px, 100%); padding-inline: 24px; }
.is-overview .mast .shell { width: min(1280px, 100%); padding-inline: 24px; }
.aw-description { color: var(--ink-muted); font-size: 13px; margin: -4px 0 14px; line-height: 1.6; }
.aw-table-wrap { width: 100%; overflow: visible; max-height: none; border: 1px solid var(--hairline); border-radius: 8px; background: var(--surface); }
.aw-table { width: 100%; table-layout: fixed; border-collapse: collapse; }
.aw-table th, .aw-table td { padding: 8px 6px; height: auto; white-space: normal; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.aw-table thead { position: static; }
.aw-table thead th { position: static; font-size: 12px; line-height: 1.5; text-transform: none; letter-spacing: 0; }
.aw-table thead small { display: block; font-size: 11px; font-weight: 400; color: var(--ink-muted); }
.aw-table .aw-year-col { width: 60px; }
.aw-table .aw-code-col { width: 100px; text-align: left; font-size: 13px; font-weight: 600; }
.aw-table tbody th { color: var(--ink); border-bottom: 1px solid var(--hairline); }
.aw-table .aw-site-head { text-align: left; border-bottom: 2px solid; font-size: 14px; padding-block: 11px; }
.aw-table .aw-site-head.aw-us { border-color: var(--series-1); }
.aw-table .aw-site-head.aw-uk { border-color: var(--series-2); }
.aw-table .aw-site-head.aw-de { border-color: var(--series-3); }
.aw-site-start { border-left: 1px solid var(--hairline); }
.aw-table .aw-inactive { background: var(--surface); }
.aw-year { color: var(--ink-muted); font-size: 10px; white-space: nowrap; }
.aw-year.aw-new { color: var(--series-1); font-weight: 700; }
.aw-current.aw-us { background: color-mix(in srgb, var(--series-1) 7%, transparent); }
.aw-current.aw-uk { background: color-mix(in srgb, var(--series-2) 7%, transparent); }
.aw-current.aw-de { background: color-mix(in srgb, var(--series-3) 7%, transparent); }
.aw-table .aw-negative { color: var(--critical-text); }
.aw-table .aw-history { appearance: none; border: 0; border-bottom: 1px dotted var(--ink-muted); padding: 2px 0; background: transparent; color: inherit; font: inherit; cursor: pointer; }
.aw-history:focus-visible { outline: 2px solid var(--series-1); outline-offset: 4px; }
.aw-history-popover { position: fixed; inset: auto; margin: 0; width: 240px; max-width: calc(100vw - 24px); padding: 16px; border: 1px solid var(--hairline); border-radius: 8px; background: var(--surface); color: var(--ink); box-shadow: 0 8px 30px #0002; font-size: 13px; }
.aw-history-popover > b { display: block; margin-bottom: 10px; }
.aw-month-line { display: flex; justify-content: space-between; gap: 20px; padding-block: 5px; }
.aw-footnote { color: var(--ink-muted); font-size: 12px; line-height: 1.7; display: grid; gap: 2px; margin-top: 12px; }
.aw-stacked { display: none; }
.aw-desktop.aw-long-season { display: none; }
.aw-stacked.aw-long-season { display: grid; gap: 20px; }
@media (max-width: 1119px) {
  .aw-desktop { display: none; }
  .aw-stacked { display: grid; gap: 20px; }
  .aw-table .aw-year-col { width: 70px; }
  .aw-table .aw-code-col { width: 112px; }
}
@media (max-width: 599px) {
  .shell.overview-wide { padding-inline: 16px; }
  .is-overview .mast .shell { padding-inline: 16px; }
  #autumn-winter-comparison .sec-head { align-items: flex-start; gap: 6px; }
  #autumn-winter-comparison .sec-head h2 { font-size: 19px; }
  .aw-description, .aw-footnote { font-size: 11px; }
  .aw-table th, .aw-table td { padding: 8px 5px; font-size: 12px; }
  .aw-table .aw-year-col { width: 48px; }
  .aw-table .aw-code-col { width: 80px; font-size: 11px; }
  .aw-table thead th { font-size: 10px; }
  .aw-table .aw-site-head { font-size: 13px; }
  .aw-table thead small, .aw-year { font-size: 9px; }
}
