/* ============================================================
   AUTO HOT — PC COCKPIT · "Automotive Instrument Cluster" Design
   Professional dashboard · Light theme · Precision data viz
   ============================================================ */

/* ---------- Design Tokens ---------- */
:root {
  /* 色彩系统 — 汽车展厅质感 */
  --bg-primary: #F7F7F5;
  --bg-secondary: #FFFFFF;
  --bg-tertiary: #EFEFED;
  --bg-panel: #FFFFFF;
  --bg-elevated: #FFFFFF;

  --text-primary: #1A1A1A;
  --text-secondary: #4A4A4A;
  --text-tertiary: #7A7A7A;
  --text-quaternary: #A0A0A0;

  --accent-red: #C8102E;
  --accent-red-light: rgba(200, 16, 46, 0.08);
  --accent-red-medium: rgba(200, 16, 46, 0.15);

  --accent-gold: #D4A843;
  --accent-blue: #4A90D9;
  --accent-purple: #7B68AE;
  --accent-green: #5BA888;

  --line-primary: rgba(0, 0, 0, 0.06);
  --line-secondary: rgba(0, 0, 0, 0.1);
  --line-tertiary: rgba(0, 0, 0, 0.15);

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-xl: 0 12px 40px rgba(0, 0, 0, 0.1);

  /* 字体系统：纯系统栈（不引外部字体服务）。display 族以 Arial Narrow 顶替原型 Bebas Neue，
     字重/字距/大写保留原值；行高与字号数值一律未动。 */
  --font-display: "Arial Narrow", "Helvetica Neue", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Consolas, "Courier New", monospace;
  --font-body: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  --font-serif: "Songti SC", "SimSun", serif;

  /* 间距系统 */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;

  /* 圆角系统 */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  /* 布局尺寸 */
  --sidebar-width: 200px;
  --right-panel-width: 320px;
  --max-content-width: 1400px;
  --header-height: 56px;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-primary);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-red); }
ul, ol { list-style: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
time { font-family: var(--font-mono); font-size: 12px; }

::selection { background: var(--accent-red); color: #fff; }
:focus-visible { outline: 2px solid var(--accent-red); outline-offset: 2px; }

/* ---------- Utility ---------- */
.wrap { max-width: var(--max-content-width); margin: 0 auto; padding: 0 var(--space-lg); }

/* ============================================================
   COCKPIT BAR — 驾驶舱式全局状态栏
   ============================================================ */
.cockpit-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(1.6) blur(12px);
  -webkit-backdrop-filter: saturate(1.6) blur(12px);
  border-bottom: 1px solid var(--line-secondary);
  box-shadow: var(--shadow-sm);
  height: var(--header-height);
}
.cockpit-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-content-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}
.cockpit-bar__left {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-shrink: 0;
}
.cockpit-bar__brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0.05em;
  color: var(--text-primary);
}
.brand-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-red);
}
.brand-text--accent {
  color: var(--accent-red);
}
.cockpit-bar__divider {
  width: 1px;
  height: 20px;
  background: var(--line-tertiary);
}

.cockpit-bar__center {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-width: 0;
  padding: 0 var(--space-md);
}
.cockpit-bar__datetime {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-secondary);
  letter-spacing: 0.03em;
  white-space: nowrap;
}
.datetime__sep { color: var(--text-quaternary); }

.cockpit-bar__right {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  flex-shrink: 0;
}
.cockpit-metrics {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}
.cockpit-metric {
  display: flex;
  flex-direction: column;
  /* 读数居中于下方标签：右对齐时「2」压在「覆盖信源」的最后一个字上，
     三个读数各占一列，读者要横着对位才知道哪个数是哪项（2026-11-01 需求方点名）。 */
  align-items: center;
  gap: 2px;
}
.cockpit-metric__value {
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1;
  color: var(--text-primary);
  letter-spacing: 0.02em;
}
.cockpit-metric__label {
  font-size: 10px;
  color: var(--text-quaternary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: var(--font-mono);
}
.cockpit-actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}
.search-box {
  position: relative;
  display: flex;
  align-items: center;
}
.search-box__icon {
  position: absolute;
  left: 10px;
  color: var(--text-quaternary);
  pointer-events: none;
}
.search-box__input {
  width: 220px;
  padding: 7px 12px 7px 34px;
  border-radius: var(--radius-full);
  border: 1px solid var(--line-secondary);
  background: var(--bg-primary);
  font-size: 13px;
  color: var(--text-primary);
  transition: all 0.2s;
}
.search-box__input::placeholder { color: var(--text-quaternary); }
.search-box__input:focus {
  outline: none;
  border-color: var(--accent-red);
  box-shadow: 0 0 0 3px var(--accent-red-light);
  width: 260px;
}
.btn-login {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  background: var(--accent-red);
  border: 1px solid transparent;
  transition: all 0.2s;
}
.btn-login:hover {
  background: #a50d24;
  border-color: rgba(200, 16, 46, 0.3);
}

/* ============================================================
   COCKPIT LAYOUT — 三栏指挥舱布局
   ============================================================ */
.cockpit-layout {
  display: grid;
  grid-template-columns: var(--sidebar-width) 1fr var(--right-panel-width);
  gap: var(--space-lg);
  max-width: var(--max-content-width);
  margin: 0 auto;
  padding: var(--space-lg);
  min-height: calc(100vh - var(--header-height));
}

/* ============================================================
   LEFT PANEL — 分类导航
   ============================================================ */
.panel-left {
  position: sticky;
  top: calc(var(--header-height) + var(--space-lg));
  height: fit-content;
}
.category-nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  background: var(--bg-panel);
  border-radius: var(--radius-lg);
  padding: var(--space-sm);
  border: 1px solid var(--line-primary);
  box-shadow: var(--shadow-sm);
}
.cat-nav__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  transition: all 0.2s;
  position: relative;
}
.cat-nav__item:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}
.cat-nav__item--active {
  background: var(--accent-red-light);
  color: var(--accent-red);
  font-weight: 600;
}
.cat-nav__item--active::before {
  content: '';
  position: absolute;
  left: -8px;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 18px;
  border-radius: 0 2px 2px 0;
  background: var(--accent-red);
}
.cat-nav__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}
.cat-nav__icon svg { width: 18px; height: 18px; }
.cat-nav__label { flex: 1; white-space: nowrap; }
.cat-nav__badge {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 10px;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: var(--bg-tertiary);
  color: var(--text-tertiary);
  font-weight: 500;
}
.cat-nav__item--active .cat-nav__badge {
  background: var(--accent-red-medium);
  color: var(--accent-red);
}

.panel-left__footer {
  margin-top: var(--space-md);
  padding: var(--space-sm) var(--space-sm) var(--space-xs);
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: var(--bg-panel);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-primary);
  box-shadow: var(--shadow-sm);
}
.panel-left__caption {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md) 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-quaternary);
  font-family: var(--font-mono);
}
.panel-left__caption-tick {
  width: 3px;
  height: 11px;
  border-radius: 2px;
  background: var(--accent-red);
  flex-shrink: 0;
}
.side-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px var(--space-md);
  border-radius: var(--radius-md);
  color: var(--text-tertiary);
  font-size: 12px;
  font-weight: 500;
  transition: all 0.2s;
}
.side-link:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}
.side-link svg {
  color: var(--text-quaternary);
  transition: color 0.2s;
}
.side-link:hover svg {
  color: var(--accent-red);
}

/* ============================================================
   CENTER PANEL — 主视图区
   ============================================================ */
.panel-center {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  min-width: 0;
}

/* ---------- FOCUS STAGE — 焦点新闻展示台 ---------- */
.focus-stage {
  position: relative;
}
.focus-stage__card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: var(--space-xl);
  align-items: center;
  background: linear-gradient(135deg, #1A1A1A 0%, #2D2D2D 100%);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  min-height: 240px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.focus-stage__overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(110% 130% at 86% 8%, rgba(200, 16, 46, 0.22) 0%, transparent 58%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.028) 0 1px, transparent 1px 46px);
  pointer-events: none;
}
.focus-stage__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}
.focus-meta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
}
.focus-meta__label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-red);
  padding: 4px 12px;
  border: 1px solid rgba(200, 16, 46, 0.3);
  border-radius: var(--radius-full);
  background: rgba(200, 16, 46, 0.1);
}
.focus-meta__time {
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}
.focus-stage__title {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.35;
  color: #FFFFFF;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.focus-stage__title a {
  background: linear-gradient(90deg, #FFFFFF 0%, rgba(255,255,255,0.8) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: all 0.3s;
}
.focus-stage__title a:hover {
  background: linear-gradient(90deg, var(--accent-red) 0%, rgba(200, 16, 46, 0.8) 100%);
  -webkit-background-clip: text;
  background-clip: text;
}
.focus-stage__excerpt {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.7);
  max-width: 560px;
}
.focus-stage__footer {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-top: var(--space-sm);
}
.focus-stage__source {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}
.focus-stage__heat {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent-red);
  font-weight: 600;
}
.focus-stage__visual {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.9;
}
.focus-stage__visual svg {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.35));
}

/* ---------- GAUGE ROW — 五维仪表指标（一体化仪表条） ---------- */
.gauge-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  background: var(--bg-panel);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-primary);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.gauge-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 8px 13px;
  border-left: 1px solid var(--line-primary);
  transition: background 0.25s ease;
  cursor: pointer;
}
.gauge-card:first-child { border-left: none; }
.gauge-card::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 2px;
  border-radius: 2px 2px 0 0;
  background: var(--gauge-color, var(--accent-red));
  transform: translateX(-50%);
  transition: width 0.3s ease;
}
.gauge-card:hover {
  background: var(--bg-secondary);
}
.gauge-card:hover::after { width: 44%; }
.gauge-visual {
  position: relative;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gauge-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.gauge-svg circle:first-child {
  stroke: var(--bg-tertiary);
  stroke-width: 5;
  fill: none;
}
.gauge-svg circle:last-child {
  stroke-width: 5;
  fill: none;
  stroke-linecap: round;
  transition: stroke-dashoffset 1s ease-out;
}
.gauge-value {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}
.gauge-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  text-align: center;
}
.gauge-label {
  font-size: 12px;
  color: var(--text-tertiary);
  font-weight: 500;
  letter-spacing: 0.02em;
}
.gauge-number {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 11px;
  color: var(--text-quaternary);
  font-weight: 500;
}

/* Gauge colors */
.gauge-card--newcar { --gauge-color: var(--accent-red); }
.gauge-card--industry { --gauge-color: var(--accent-gold); }
.gauge-card--tech { --gauge-color: var(--accent-blue); }
.gauge-card--review { --gauge-color: var(--accent-purple); }
.gauge-card--policy { --gauge-color: var(--accent-green); }
.gauge-card .gauge-svg circle:last-child { stroke: var(--gauge-color, var(--accent-red)); }

/* ---------- FEED SECTION — 新闻流 ---------- */
.feed-section {
  background: var(--bg-panel);
  border-radius: var(--radius-xl);
  border: 1px solid var(--line-primary);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.feed-section__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-sm) var(--space-lg);
  padding: var(--space-lg) var(--space-xl);
  border-bottom: 1px solid var(--line-primary);
  background: linear-gradient(180deg, #FBFBFA 0%, var(--bg-primary) 100%);
}
.feed-section__title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 0.04em;
  color: var(--text-primary);
  white-space: nowrap;
}
.feed-section__title::before {
  content: '';
  width: 3px;
  height: 16px;
  border-radius: 2px;
  background: var(--accent-red);
}
.feed-chips {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: var(--space-xs);
}
.feed-chip {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-tertiary);
  background: transparent;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: all 0.2s;
}
.feed-chip:hover {
  color: var(--text-primary);
  background: var(--bg-tertiary);
}
.feed-chip--active {
  color: var(--accent-red);
  background: var(--accent-red-light);
  border-color: rgba(200, 16, 46, 0.2);
  font-weight: 600;
}

.feed-stream {
  padding: var(--space-md) var(--space-xl) var(--space-xl);
}

.feed-group {
  margin-bottom: var(--space-lg);
}
.feed-group:last-child { margin-bottom: 0; }

.feed-group__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) 0;
  margin-bottom: var(--space-sm);
  border-bottom: 1px solid var(--line-primary);
}
.feed-group__date {
  display: inline-flex;
  align-items: baseline;
  gap: var(--space-sm);
}
.feed-group__day {
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 0.03em;
  color: var(--text-primary);
}
.feed-group__weekday {
  font-size: 12px;
  color: var(--text-quaternary);
  font-family: var(--font-mono);
}
.feed-group__count {
  font-size: 12px;
  color: var(--text-quaternary);
  font-family: var(--font-mono);
}

.feed-item {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--space-lg);
  padding: var(--space-lg) 0;
  border-bottom: 1px solid var(--line-primary);
  transition: background 0.25s;
}
.feed-item:last-child { border-bottom: none; }
.feed-item::before {
  content: '';
  position: absolute;
  left: calc(-1 * var(--space-lg));
  top: 18px;
  bottom: 18px;
  width: 2px;
  border-radius: 2px;
  background: var(--accent-red);
  opacity: 0;
  transform: scaleY(0.35);
  transition: opacity 0.25s, transform 0.25s;
}
.feed-item:hover {
  background: linear-gradient(90deg, var(--bg-primary) 0%, rgba(247, 247, 245, 0) 100%);
}
.feed-item:hover::before { opacity: 1; transform: scaleY(1); }

.feed-item__core {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  min-width: 0;
}
.feed-item__meta {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}
.feed-item__time {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-quaternary);
  letter-spacing: 0.02em;
}
.feed-item__source {
  font-size: 12px;
  color: var(--text-quaternary);
}
.feed-item__title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.feed-item__title a {
  transition: color 0.2s;
}
.feed-item__title a:hover {
  color: var(--accent-red);
}
.feed-item__summary {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-tertiary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.feed-item__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-sm);
}
.feed-item__category {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-quaternary);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background: var(--bg-tertiary);
  white-space: nowrap;
}
.news-card__heat {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}
.news-card__heat--burst {
  color: var(--accent-red);
  background: var(--accent-red-light);
  border: 1px solid rgba(200, 16, 46, 0.2);
}
.news-card__heat--ferment {
  color: var(--accent-gold);
  background: rgba(212, 168, 67, 0.1);
  border: 1px solid rgba(212, 168, 67, 0.2);
}
/* 第三态：原型只有爆/发酵两态，本站三态口径的 --fresh 按同构补齐
   （同一几何、色族降为蓝＝信息性标记，强度次序 红 > 金 > 蓝；蓝取 index-v4.css 覆盖后的 --accent-blue） */
.news-card__heat--fresh {
  color: var(--accent-blue);
  background: rgba(60, 110, 151, 0.08);
  border: 1px solid rgba(60, 110, 151, 0.22);
}

.feed-more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  width: max-content;
  margin: var(--space-lg) auto 0;
  padding: 10px 24px;
  border: 1px solid var(--line-secondary);
  border-radius: var(--radius-full);
  color: var(--text-tertiary);
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s;
}
.feed-more:hover {
  color: var(--accent-red);
  border-color: rgba(200, 16, 46, 0.35);
  background: var(--accent-red-light);
}

/* ============================================================
   RIGHT PANEL — 辅助信息面板
   ============================================================ */
.panel-right {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

/* Widget base */
.widget {
  background: var(--bg-panel);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-primary);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.widget__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--line-primary);
  background: linear-gradient(180deg, #FBFBFA 0%, var(--bg-primary) 100%);
}
.widget__title {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}
.widget__badge {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--accent-red);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background: var(--accent-red-light);
  border: 1px solid rgba(200, 16, 46, 0.2);
  animation: pulse-badge 2s ease-in-out infinite;
}
@keyframes pulse-badge {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}
.widget__more {
  font-size: 12px;
  color: var(--text-quaternary);
  transition: color 0.2s;
}
.widget__more:hover { color: var(--accent-red); }
.widget__period {
  font-size: 11px;
  color: var(--text-quaternary);
  font-family: var(--font-mono);
}

/* ---------- RANKING LIST ---------- */
.ranking-list {
  padding: var(--space-sm) var(--space-lg) var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}
.ranking-list__item {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  gap: var(--space-sm);
  align-items: center;
  padding: var(--space-sm);
  border-radius: var(--radius-md);
  transition: background 0.2s;
}
.ranking-list__item:hover { background: var(--bg-primary); }
.ranking-list__item:nth-child(1) .ranking-list__rank { background: var(--accent-red); color: #fff; }
.ranking-list__item:nth-child(2) .ranking-list__rank { background: rgba(200, 16, 46, 0.72); color: #fff; }
.ranking-list__item:nth-child(3) .ranking-list__rank { background: rgba(200, 16, 46, 0.42); color: #fff; }
.ranking-list__rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  background: var(--bg-tertiary);
  color: var(--text-tertiary);
  transition: transform 0.2s;
}
.ranking-list__item:hover .ranking-list__rank { transform: scale(1.08); }
.ranking-list__title {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ranking-list__title:hover { color: var(--accent-red); }
.ranking-list__heat {
  font-size: 11px;
  color: var(--text-quaternary);
  font-family: var(--font-mono);
  white-space: nowrap;
}

/* ---------- TIMELINE ---------- */
.timeline {
  padding: var(--space-md) var(--space-lg) var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  position: relative;
}
.timeline::before {
  content: '';
  position: absolute;
  left: calc(var(--space-lg) + 10px);
  top: 14px;
  bottom: 14px;
  width: 1px;
  background: linear-gradient(180deg, var(--line-secondary), transparent);
}
.timeline__item {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 10px;
  position: relative;
}
.timeline__marker {
  grid-column: 1;
  grid-row: 1 / span 2;
  align-self: start;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  border: 2px solid var(--text-quaternary);
  margin-top: 5px;
  justify-self: center;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.timeline__item--highlight .timeline__marker {
  background: var(--accent-red);
  border-color: rgba(200, 16, 46, 0.25);
  box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.12);
}
.timeline__date {
  grid-column: 2;
  grid-row: 1;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--text-quaternary);
  display: block;
  margin-bottom: 3px;
}
.timeline__content {
  grid-column: 2;
  grid-row: 2;
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.timeline__title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.45;
}
.timeline__title:hover { color: var(--accent-red); }

/* ---------- SALES SNAPSHOT ---------- */
.sales-list {
  padding: var(--space-sm) var(--space-lg) var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}
.sales-list__item {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 46px;
  gap: var(--space-md);
  align-items: center;
  margin: 0 -6px;
  padding: 5px 6px;
  border-radius: var(--radius-sm);
  transition: background 0.2s;
}
.sales-list__item:hover { background: var(--bg-primary); }
.sales-list__brand {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}
.sales-list__bar {
  height: 5px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-full);
  overflow: hidden;
}
.sales-list__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-red) 0%, rgba(200, 16, 46, 0.55) 100%);
  border-radius: var(--radius-full);
  width: var(--w);
  transition: width 1s ease-out;
}
.sales-list__value {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  text-align: right;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  margin-top: var(--space-3xl);
  padding: var(--space-xl) var(--space-lg);
  border-top: 1px solid var(--line-primary);
  background: var(--bg-secondary);
}
.site-footer__inner {
  max-width: var(--max-content-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  text-align: center;
}
.site-footer__logo {
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 0.05em;
  color: var(--text-primary);
}
.site-footer__logo span { color: var(--accent-red); }
.site-footer__desc {
  font-size: 12px;
  color: var(--text-quaternary);
  margin-top: var(--space-xs);
}
.site-footer__links {
  display: flex;
  gap: var(--space-lg);
}
.site-footer__links a {
  font-size: 12px;
  color: var(--text-tertiary);
  transition: color 0.2s;
}
.site-footer__links a:hover { color: var(--accent-red); }
.site-footer__copy {
  font-size: 11px;
  color: var(--text-quaternary);
  font-family: var(--font-mono);
}

/* ============================================================
   MOBILE TAB BAR
   ============================================================ */
.mobile-tabbar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--bg-secondary);
  border-top: 1px solid var(--line-secondary);
  padding: var(--space-sm) 0;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}
.mobile-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: var(--space-sm) var(--space-md);
  color: var(--text-quaternary);
  font-size: 10px;
  transition: color 0.2s;
}
.mobile-tab--active,
.mobile-tab:hover { color: var(--accent-red); }
.mobile-tab svg { transition: transform 0.2s; }
.mobile-tab:hover svg { transform: translateY(-2px); }

/* ============================================================
   RESPONSIVE — 平板
   ============================================================ */
@media (max-width: 1200px) {
  .cockpit-layout {
    grid-template-columns: 180px 1fr 280px;
    gap: var(--space-md);
    padding: var(--space-md);
  }
  .gauge-row {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  .gauge-visual { width: 48px; height: 48px; }
  .gauge-value { font-size: 14px; }
  .gauge-label { font-size: 11px; }
  .focus-stage__card {
    grid-template-columns: minmax(0, 1fr);
  }
  .focus-stage__visual {
    position: absolute;
    right: var(--space-lg);
    bottom: 0;
    width: 300px;
    z-index: 1;
    opacity: 0.22;
    pointer-events: none;
  }
  .focus-stage__title { font-size: 22px; }
}

/* ============================================================
   RESPONSIVE — 小平板
   ============================================================ */
@media (max-width: 992px) {
  .cockpit-layout {
    grid-template-columns: 1fr 260px;
  }
  .panel-left { display: none; }
  .cockpit-bar__center { display: none; }
  .search-box__input { width: 170px; }
  .search-box__input:focus { width: 170px; }
  .gauge-visual { width: 56px; height: 56px; }
  .gauge-value { font-size: 15px; }
  .gauge-label { font-size: 12px; }
}

/* ============================================================
   RESPONSIVE — 移动端
   ============================================================ */
@media (max-width: 768px) {
  .cockpit-layout {
    display: flex;
    flex-direction: column;
    padding: var(--space-md);
    padding-bottom: 80px;
  }
  .panel-right { display: none; }
  .gauge-card { padding: 12px 4px 11px; }
  .gauge-visual { width: 42px; height: 42px; }
  .gauge-value { font-size: 12px; }
  .gauge-label { font-size: 10px; }
  .gauge-number { font-size: 10px; }

  .cockpit-bar__center { display: none; }
  .cockpit-metric__label { display: none; }

  .feed-section__header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-md);
  }
  .feed-chips {
    width: 100%;
    overflow-x: auto;
    padding-bottom: var(--space-sm);
    -webkit-overflow-scrolling: touch;
  }
  .feed-chips::-webkit-scrollbar { display: none; }

  .feed-stream { padding: var(--space-md); }
  .feed-item {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
  }
  .feed-item:hover { background: none; }
  .feed-item::before { display: none; }
  .feed-item__actions {
    flex-direction: row;
    align-items: center;
  }

  .mobile-tabbar {
    display: flex;
    justify-content: space-around;
  }
}

@media (max-width: 480px) {
  .gauge-card { gap: 4px; }
  .cockpit-metrics { gap: var(--space-md); }
  .cockpit-metric__value { font-size: 16px; }
}

/* ============================================================
   ANIMATIONS & TRANSITIONS
   ============================================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cockpit-bar { animation: fadeInUp 0.5s ease-out; }
.panel-left { animation: fadeInUp 0.5s ease-out 0.1s both; }
.panel-center { animation: fadeInUp 0.5s ease-out 0.2s both; }
.panel-right { animation: fadeInUp 0.5s ease-out 0.3s both; }

.focus-stage__card {
  animation: fadeInUp 0.6s ease-out;
}
.gauge-card {
  animation: fadeInUp 0.5s ease-out both;
}
.gauge-card:nth-child(1) { animation-delay: 0.1s; }
.gauge-card:nth-child(2) { animation-delay: 0.15s; }
.gauge-card:nth-child(3) { animation-delay: 0.2s; }
.gauge-card:nth-child(4) { animation-delay: 0.25s; }
.gauge-card:nth-child(5) { animation-delay: 0.3s; }

.feed-item {
  animation: fadeInUp 0.4s ease-out both;
}
.feed-item:nth-child(1) { animation-delay: 0.05s; }
.feed-item:nth-child(2) { animation-delay: 0.1s; }
.feed-item:nth-child(3) { animation-delay: 0.15s; }
.feed-item:nth-child(4) { animation-delay: 0.2s; }
.feed-item:nth-child(5) { animation-delay: 0.25s; }
.feed-item:nth-child(6) { animation-delay: 0.3s; }

.widget { animation: fadeInUp 0.5s ease-out both; }
.widget:nth-child(1) { animation-delay: 0.2s; }
.widget:nth-child(2) { animation-delay: 0.3s; }
.widget:nth-child(3) { animation-delay: 0.4s; }

/* 数字计数动画 */
@keyframes countUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.cockpit-metric__value,
.gauge-value {
  animation: countUp 0.6s ease-out both;
}

/* ============================================================
   REFINEMENTS — 细节质感
   ============================================================ */
/* 数值等宽对齐 */
time,
.cockpit-metric__value,
.feed-group__count,
.feed-group__weekday,
.ranking-list__heat,
.widget__period {
  font-variant-numeric: tabular-nums;
}

/* 细滚动条 */
* { scrollbar-width: thin; scrollbar-color: var(--line-tertiary) transparent; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.14);
  border-radius: var(--radius-full);
  border: 2px solid transparent;
  background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover { background-color: rgba(0, 0, 0, 0.26); }

/* 尊重系统减弱动效偏好 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================================
   PRINT STYLES
   ============================================================ */
@media print {
  .cockpit-bar,
  .panel-left,
  .panel-right,
  .mobile-tabbar,
  .feed-more { display: none; }
  .cockpit-layout {
    display: block;
  }
  .focus-stage__card {
    background: #fff;
    color: #000;
    box-shadow: none;
    border: 1px solid #ddd;
  }
  .focus-stage__title a {
    -webkit-text-fill-color: #000;
    color: #000;
  }
}

/* ---------- 图标 sprite（本站新增；原型把图标内联在页面里，改版后统一走 static/img/icons.svg）
   尺寸阶梯按原型实际用值取整：12/14/16/18/22/26/40（原型 17px、13px 两档各差 1px）。
   stroke/fill/stroke-width 由 symbol 自带，模板不写数值——模板里出现 1.8 会被禁数守卫拦下。 ---------- */
.p-icon { display: inline-block; width: 22px; height: 22px; vertical-align: -0.15em; flex-shrink: 0; }
.p-icon--xxs { width: 12px; height: 12px; }
.p-icon--xs { width: 14px; height: 14px; }
.p-icon--sm { width: 16px; height: 16px; }
.p-icon--md { width: 18px; height: 18px; }
.p-icon--lg { width: 26px; height: 26px; }
.p-icon--xl { width: 40px; height: 40px; }
