/* ============================================================
   Chrome 版本检测 - style.css
   极简高精度浅色数据控制台设计系统 (Swiss Light Precision UI) · Plus Jakarta Sans + JetBrains Mono
   ============================================================ */

:root {
  /* 主体画布与卡片系统 */
  --bg-canvas: #F8FAFC;
  --bg-canvas-subtle: #F1F5F9;
  --bg-card: #FFFFFF;
  --bg-card-glass: rgba(255, 255, 255, 0.88);
  --bg-hover: #F8FAFC;
  --bg-active: #F1F5F9;
  
  /* 文字与层级 */
  --ink-primary: #0F172A;
  --ink-secondary: #334155;
  --ink-muted: #64748B;
  --ink-faint: #94A3B8;
  
  /* 边框与分割线 */
  --border-card: rgba(226, 232, 240, 0.85);
  --border-light: #E2E8F0;
  --border-subtle: #F1F5F9;
  --border-focus: #3B82F6;
  
  /* Chrome 官方经典 4 色 */
  --c-blue: #2563EB;
  --c-blue-hover: #1D4ED8;
  --c-blue-tint: #EFF6FF;
  --c-blue-border: #BFDBFE;
  
  --c-red: #EF4444;
  --c-red-tint: #FEF2F2;
  --c-red-border: #FECACA;
  
  --c-yellow: #F59E0B;
  --c-yellow-tint: #FFFBEB;
  --c-yellow-border: #FDE68A;
  
  --c-green: #10B981;
  --c-green-tint: #ECFDF5;
  --c-green-border: #A7F3D0;
  
  /* 字体族 */
  --font-sans: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-mono: 'JetBrains Mono', 'IBM Plex Mono', SFMono-Regular, Consolas, monospace;
  
  /* 圆角 */
  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;
  
  /* 阴影系统 */
  --shadow-xs: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
  --shadow-sm: 0 1px 3px 0 rgba(15, 23, 42, 0.04), 0 1px 2px -1px rgba(15, 23, 42, 0.04);
  --shadow-card: 0 1px 3px 0 rgba(15, 23, 42, 0.03), 0 10px 25px -5px rgba(15, 23, 42, 0.04);
  --shadow-float: 0 20px 35px -10px rgba(15, 23, 42, 0.08), 0 1px 3px rgba(15, 23, 42, 0.05);
  --shadow-glow-blue: 0 0 24px -4px rgba(37, 99, 235, 0.25);
  --shadow-glow-green: 0 0 24px -4px rgba(16, 185, 129, 0.25);
  
  /* 转场 */
  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

/* 基础重置 */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  background-color: var(--bg-canvas);
  color: var(--ink-secondary);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

input {
  font-family: inherit;
}

/* ---------- 背景环境辉光 ---------- */
.ambient-glow {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 600px;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.45;
}

.glow-blue {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #BFDBFE 0%, rgba(191, 219, 254, 0) 70%);
  top: -200px;
  left: 10%;
}

.glow-green {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, #A7F3D0 0%, rgba(167, 243, 208, 0) 70%);
  top: -150px;
  right: 15%;
}

.glow-yellow {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, #FDE68A 0%, rgba(253, 230, 138, 0) 70%);
  top: 100px;
  left: 45%;
  opacity: 0.3;
}

/* ---------- 顶栏导航 ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-card);
  transition: all 0.2s var(--ease-smooth);
}

.topbar-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-badge-ring {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: linear-gradient(135deg, #FFFFFF, #F1F5F9);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-xs);
  position: relative;
}

.brand-dot {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: conic-gradient(from 210deg, var(--c-red) 0 25%, var(--c-yellow) 0 50%, var(--c-green) 0 75%, var(--c-blue) 0);
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
}

.brand-dot.small {
  width: 10px;
  height: 10px;
  border-radius: 3px;
}

.brand-logo-img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-weight: 800;
  font-size: 15px;
  color: var(--ink-primary);
  letter-spacing: -0.2px;
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  color: var(--ink-muted);
  letter-spacing: 0.8px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
  background: rgba(241, 245, 249, 0.85);
  padding: 3px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(226, 232, 240, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-muted);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  transition: color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease, font-weight 0.15s ease;
  white-space: nowrap;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nav-link:hover:not(.active) {
  color: var(--ink-primary);
  background: rgba(255, 255, 255, 0.5);
}

.nav-link.active {
  color: var(--c-blue);
  background: #FFFFFF;
  font-weight: 700;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.1), 0 0 1px rgba(15, 23, 42, 0.08);
}

.topbar-live {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-secondary);
  box-shadow: var(--shadow-xs);
}

.live-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-green);
  box-shadow: 0 0 0 2px var(--c-green-border);
  animation: pulseLive 2s infinite;
}

@keyframes pulseLive {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6); }
  70% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* ---------- 页面容器 & 通用卡片 ---------- */
main {
  max-width: 1240px;
  margin: 0 auto;
  padding: 24px 24px 64px;
  position: relative;
  z-index: 1;
}

.section {
  margin-top: 56px;
  scroll-margin-top: 80px;
}

.section-head {
  margin-bottom: 18px;
}

.sec-title-group {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.sec-badge {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
  color: var(--c-blue);
  background: var(--c-blue-tint);
  border: 1px solid var(--c-blue-border);
  padding: 4px 9px;
  border-radius: var(--radius-sm);
  flex: none;
  margin-top: 2px;
}

.sec-icon-wrap {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-xs);
  flex: none;
}

.sec-ico {
  width: 20px;
  height: 20px;
  opacity: 0.9;
}

.section-head h2 {
  font-size: 21px;
  font-weight: 800;
  color: var(--ink-primary);
  letter-spacing: -0.4px;
  line-height: 1.3;
}

.sec-sub {
  color: var(--ink-muted);
  font-size: 13.5px;
  margin-top: 4px;
  line-height: 1.5;
}

/* 通用 Glass Card */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.glass-card {
  background: var(--bg-card-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.card:hover {
  border-color: rgba(203, 213, 225, 0.9);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.card-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink-muted);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.eyebrow-icon {
  width: 15px;
  height: 15px;
  opacity: 0.8;
}

.card-badge-status {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--c-green-tint);
  border: 1px solid var(--c-green-border);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 11.5px;
  font-weight: 700;
  color: #065F46;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-green);
}

.card-meta-date {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-muted);
  font-weight: 500;
}

/* ---------- HERO GRID ---------- */
.hero-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 20px;
}

/* 卡片 1: 浏览器核心诊断 */
.browser-hero-view {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 20px;
}

.browser-avatar-wrap {
  position: relative;
  flex: none;
}

.browser-badge {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 800;
  color: #FFFFFF;
  background: conic-gradient(from 210deg, var(--c-red) 0 25%, var(--c-yellow) 0 50%, var(--c-green) 0 75%, var(--c-blue) 0);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.22);
  position: relative;
  z-index: 1;
}

.hero-brand-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.avatar-ring {
  position: absolute;
  inset: -3px;
  border-radius: 19px;
  border: 2px solid rgba(37, 99, 235, 0.15);
  pointer-events: none;
}

.browser-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.browser-name {
  font-size: 24px;
  font-weight: 800;
  color: var(--ink-primary);
  letter-spacing: -0.5px;
}

.browser-pill-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--c-blue);
  background: var(--c-blue-tint);
  border: 1px solid var(--c-blue-border);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
}

.browser-submeta {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--ink-muted);
  margin-top: 3px;
}

/* 规格网格 */
.spec-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}

.spec-item {
  background: var(--bg-canvas-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: all 0.15s ease;
}

.spec-item:hover {
  background: #FFFFFF;
  border-color: var(--border-focus);
}

.spec-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: var(--ink-muted);
  font-weight: 600;
}

.spec-icon {
  width: 14px;
  height: 14px;
  opacity: 0.7;
}

.spec-value {
  font-family: var(--font-mono);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink-primary);
  word-break: break-word;
}

.spec-value.highlight-blue {
  color: var(--c-blue);
}

.spec-value.highlight-green {
  color: #059669;
}

/* UA Box */
.ua-box {
  background: var(--bg-canvas-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 12px 14px;
}

.ua-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.ua-title {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  color: var(--ink-muted);
  letter-spacing: 0.5px;
}

.btn-copy {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  padding: 3px 9px;
  border-radius: var(--radius-sm);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-secondary);
  box-shadow: var(--shadow-xs);
  transition: all 0.15s ease;
}

.btn-copy:hover {
  color: var(--c-blue);
  border-color: var(--c-blue-border);
  background: var(--c-blue-tint);
}

.btn-icon {
  width: 13px;
  height: 13px;
}

.ua-content {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-muted);
  line-height: 1.5;
  word-break: break-all;
}

/* 卡片 2: 稳定代差与生命周期 */
.delta-display {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-canvas-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  margin-bottom: 20px;
}

.delta-node {
  display: flex;
  flex-direction: column;
}

.delta-node.latest-node {
  text-align: right;
}

.delta-label {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-muted);
  margin-bottom: 2px;
}

.delta-number {
  font-family: var(--font-mono);
  font-size: 32px;
  font-weight: 800;
  color: var(--ink-primary);
  line-height: 1.1;
  letter-spacing: -1px;
}

.delta-number.highlight-green {
  color: var(--c-green);
}

.delta-sub {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-muted);
  margin-top: 3px;
}

.delta-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.delta-pill {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: var(--radius-full);
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  color: var(--ink-secondary);
  box-shadow: var(--shadow-xs);
  white-space: nowrap;
}

.delta-pill.behind {
  background: var(--c-red-tint);
  border-color: var(--c-red-border);
  color: #DC2626;
}

.delta-arrow {
  color: var(--ink-faint);
}

/* 进度刻度条 */
.track-container {
  margin-bottom: 20px;
}

.track-bar {
  position: relative;
  height: 12px;
  background: var(--bg-canvas-subtle);
  border-radius: var(--radius-full);
  border: 1px solid var(--border-light);
  overflow: visible;
}

.track-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, #93C5FD 0%, var(--c-blue) 100%);
  width: 0%;
  transition: width 1.2s var(--ease-spring);
}

.track-pin {
  position: absolute;
  top: -8px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: left 1.2s var(--ease-spring);
  z-index: 5;
}

.pin-pulse {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--c-blue);
  border: 3px solid #FFFFFF;
  box-shadow: 0 0 0 2px var(--c-blue), 0 2px 8px rgba(37, 99, 235, 0.4);
}

.pin-tip {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 800;
  color: #FFFFFF;
  background: var(--c-blue);
  padding: 1px 5px;
  border-radius: 4px;
  margin-top: 2px;
}

.track-scale {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--ink-muted);
  margin-top: 6px;
}

/* 状态矩阵行 */
.status-matrix {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.status-card-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-canvas-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  font-size: 13px;
}

.row-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-muted);
  width: 80px;
  flex: none;
}

.pill {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: var(--radius-full);
  flex: none;
}

.pill.ok {
  background: var(--c-green-tint);
  border: 1px solid var(--c-green-border);
  color: #065F46;
}

.pill.mid {
  background: var(--c-yellow-tint);
  border: 1px solid var(--c-yellow-border);
  color: #92400E;
}

.pill.bad {
  background: var(--c-red-tint);
  border: 1px solid var(--c-red-border);
  color: #991B1B;
}

.row-desc {
  font-size: 12.5px;
  color: var(--ink-secondary);
  margin-left: auto;
  text-align: right;
}

/* ---------- 标志组件：全景光谱条 ---------- */
.spectrum-card {
  padding: 20px 24px;
}

.spectrum-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}

.spectrum-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.spectrum-icon {
  width: 18px;
  height: 18px;
  color: var(--c-blue);
}

.spectrum-title {
  font-weight: 800;
  font-size: 15px;
  color: var(--ink-primary);
  letter-spacing: -0.2px;
}

.spectrum-legend-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.legend-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-secondary);
  background: var(--bg-canvas-subtle);
  border: 1px solid var(--border-light);
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.chip-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.era-1 .chip-dot { background: #94A3B8; }
.era-2 .chip-dot { background: #3B82F6; }
.era-3 .chip-dot { background: #10B981; }

.spectrum-bar-wrap {
  position: relative;
  margin: 8px 0 14px;
  cursor: crosshair;
}

.spectrum {
  position: relative;
  height: 64px;
  border-radius: var(--radius-lg);
  overflow: visible;
  background: var(--bg-canvas-subtle);
  border: 1px solid var(--border-light);
  box-shadow: inset 0 2px 4px rgba(15, 23, 42, 0.04);
}

.spectrum-fill {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
}

.spectrum-hover-line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #0F172A;
  box-shadow: 0 0 8px rgba(15, 23, 42, 0.4);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
  z-index: 15;
  transform: translateX(-50%);
}

.spectrum-hover-line::after {
  content: "";
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #0F172A;
  border: 2px solid #FFFFFF;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.spectrum-hover-tip {
  position: absolute;
  top: -12px;
  transform: translate(-50%, -100%);
  min-width: 240px;
  max-width: 320px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  box-shadow: 0 12px 28px -4px rgba(15, 23, 42, 0.18), 0 4px 8px -2px rgba(15, 23, 42, 0.06);
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease, visibility 0.15s ease;
  z-index: 30;
}

.spectrum-hover-tip[data-align="left"] {
  transform: translate(-12%, -100%);
}

.spectrum-hover-tip[data-align="right"] {
  transform: translate(-88%, -100%);
}

.spectrum-hover-tip::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 10px;
  height: 10px;
  background: #FFFFFF;
  border-right: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.spectrum-hover-tip[data-align="left"]::after {
  left: 15%;
}

.spectrum-hover-tip[data-align="right"]::after {
  left: 85%;
}

.spectrum-hover-tip .tip-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.spectrum-hover-tip .tip-ver-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.spectrum-hover-tip .tip-ver {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 800;
  color: var(--ink-primary);
}

.spectrum-hover-tip .tip-tag {
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
}

.spectrum-hover-tip .tip-tag.you {
  background: var(--c-blue-subtle);
  color: var(--c-blue);
  border: 1px solid rgba(26, 115, 232, 0.3);
}

.spectrum-hover-tip .tip-tag.lat {
  background: var(--c-green-subtle);
  color: var(--c-green);
  border: 1px solid rgba(30, 142, 62, 0.3);
}

.spectrum-hover-tip .tip-era {
  font-size: 9.5px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
}

.spectrum-hover-tip .tip-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.spectrum-hover-tip .tip-date {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-secondary);
}

.spectrum-hover-tip .tip-note {
  font-size: 11px;
  color: var(--ink-muted);
  line-height: 1.45;
  margin-top: 2px;
}

.spectrum-ticks {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  pointer-events: none;
}

.spectrum-tick {
  flex: 1;
  display: flex;
  justify-content: center;
  position: relative;
}

.spectrum-tick::after {
  content: "";
  position: absolute;
  bottom: 0;
  width: 1px;
  height: 35%;
  background: rgba(15, 23, 42, 0.12);
}

.spectrum-tick.major::after {
  height: 55%;
  background: rgba(15, 23, 42, 0.25);
}

.spectrum-tick.major::before {
  content: attr(data-v);
  position: absolute;
  bottom: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: rgba(15, 23, 42, 0.6);
}

.spectrum-flag {
  position: absolute;
  bottom: 8px;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
  white-space: nowrap;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 4px;
}

.spectrum-flag.your {
  background: #FFFFFF;
  color: var(--c-blue);
  border: 2px solid var(--c-blue);
  box-shadow: var(--shadow-glow-blue);
}

.spectrum-flag.latest {
  left: auto;
  right: 8px;
  transform: none;
  background: var(--c-green);
  color: #FFFFFF;
  box-shadow: var(--shadow-glow-green);
}

.spectrum-flag.left-anchored {
  transform: translateX(-100%);
}

.spectrum-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 4px;
  font-family: var(--font-mono);
}

.scale-point {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink-primary);
}

.scale-desc {
  display: block;
  font-size: 10px;
  color: var(--ink-muted);
}

.spectrum-scale-mid {
  text-align: center;
}

.spectrum-scale-right {
  text-align: right;
}

/* ---------- 筛选工具栏 (SEARCH & TABS) ---------- */
.filter-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 320px;
  flex: 1;
  max-width: 440px;
}

.search-icon {
  position: absolute;
  left: 14px;
  width: 16px;
  height: 16px;
  color: var(--ink-muted);
  pointer-events: none;
}

.search-box input {
  width: 100%;
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  padding: 9px 36px 9px 38px;
  font-size: 13px;
  color: var(--ink-primary);
  box-shadow: var(--shadow-xs);
  transition: all 0.2s ease;
  outline: none;
}

.search-box input:focus {
  border-color: var(--c-blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.btn-clear-search {
  position: absolute;
  right: 12px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--bg-canvas-subtle);
  color: var(--ink-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
}

.year-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.y-tab {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-secondary);
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  padding: 6px 14px;
  box-shadow: var(--shadow-xs);
  transition: all 0.15s ease;
}

.y-tab:hover {
  border-color: var(--c-blue-border);
  color: var(--c-blue);
  background: var(--c-blue-tint);
}

.y-tab.active {
  background: var(--c-blue);
  border-color: var(--c-blue);
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

/* ---------- 现代数据表格系统 ---------- */
.table-card {
  padding: 10px 14px;
  overflow: hidden;
}

.table-wrap {
  overflow-x: auto;
}

.modern-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13.5px;
}

.modern-table th {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--ink-muted);
  letter-spacing: 0.5px;
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-light);
  background: rgba(248, 250, 252, 0.6);
  white-space: nowrap;
}

.modern-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: middle;
  color: var(--ink-secondary);
  transition: background 0.15s ease;
}

.modern-table tbody tr:last-child td {
  border-bottom: none;
}

.modern-table tbody tr.log-row {
  cursor: pointer;
}

.modern-table tbody tr.log-row:hover td {
  background: var(--bg-canvas-subtle);
}

.modern-table tbody tr.log-row.expanded td {
  background: var(--c-blue-tint);
}

.major-cell {
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 15px;
  color: var(--ink-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.badge-tag {
  font-family: var(--font-sans);
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-sm);
  vertical-align: middle;
}

.badge-tag.new {
  background: var(--c-green-tint);
  border: 1px solid var(--c-green-border);
  color: #065F46;
}

.badge-tag.you {
  background: var(--c-blue-tint);
  border: 1px solid var(--c-blue-border);
  color: var(--c-blue);
}

.date-cell {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--ink-muted);
  white-space: nowrap;
}

.note-cell {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-primary);
}

.btn-expand-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--c-blue);
  background: var(--c-blue-tint);
  border: 1px solid var(--c-blue-border);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  transition: all 0.15s ease;
}

.btn-expand-pill:hover {
  background: #DBEAFE;
}

.expand-chevron {
  width: 14px;
  height: 14px;
  transition: transform 0.2s ease;
}

tr.expanded .expand-chevron {
  transform: rotate(180deg);
}

/* 行内展开 Accordion 抽屉卡片 */
.detail-row td {
  background: var(--bg-canvas-subtle) !important;
  padding: 0 !important;
  border-bottom: 1px solid var(--border-light) !important;
}

.detail-drawer {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-left: 4px solid var(--c-blue);
  border-radius: var(--radius-lg);
  margin: 8px 12px 14px;
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
  animation: drawerSlide 0.25s var(--ease-spring);
}

@keyframes drawerSlide {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.detail-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-subtle);
}

.detail-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--ink-primary);
  letter-spacing: -0.2px;
}

.detail-meta-text {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-muted);
  margin-top: 2px;
}

.btn-close-detail {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-muted);
  background: var(--bg-canvas-subtle);
  border: 1px solid var(--border-light);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  transition: all 0.15s ease;
}

.btn-close-detail:hover {
  color: var(--ink-primary);
  background: #FFFFFF;
}

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}

.feature-item {
  position: relative;
  padding-left: 24px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-secondary);
}

.feature-bullet {
  position: absolute;
  left: 4px;
  top: 7px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--c-blue);
}

.detail-links-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 10px;
  border-top: 1px dashed var(--border-light);
}

.btn-ext-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--c-blue);
  background: var(--c-blue-tint);
  border: 1px solid var(--c-blue-border);
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  transition: all 0.15s ease;
}

.btn-ext-link:hover {
  background: #DBEAFE;
  color: var(--c-blue-hover);
}

.ext-icon {
  width: 13px;
  height: 13px;
}

.table-footer-hint {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px 6px;
  font-size: 12px;
  color: var(--ink-muted);
}

.hint-icon {
  width: 15px;
  height: 15px;
  color: var(--c-blue);
}

/* ---------- SECTION 03: 性能锚点与加速图表 ---------- */
.perf-card {
  padding: 24px;
}

.perf-chart-wrap {
  width: 100%;
  overflow-x: auto;
  background: var(--bg-canvas-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 20px;
}

.perf-chart-wrap svg {
  display: block;
  min-width: 760px;
  width: 100%;
  height: auto;
}

.perf-metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}

.metric-card {
  background: var(--bg-canvas-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.metric-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.metric-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-sm);
}

.tag-blue { background: var(--c-blue-tint); border: 1px solid var(--c-blue-border); color: var(--c-blue); }
.tag-green { background: var(--c-green-tint); border: 1px solid var(--c-green-border); color: #065F46; }
.tag-yellow { background: var(--c-yellow-tint); border: 1px solid var(--c-yellow-border); color: #92400E; }

.metric-date {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--ink-muted);
}

.metric-val {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 800;
  color: var(--ink-primary);
  letter-spacing: -0.5px;
}

.metric-desc {
  font-size: 12px;
  color: var(--ink-muted);
  line-height: 1.45;
}

.perf-legend-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
  font-size: 12px;
}

.perf-chips-group {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.chips-title {
  font-weight: 700;
  font-size: 11.5px;
  color: var(--ink-muted);
  flex: none;
}

.perf-anchor-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-secondary);
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  padding: 3px 10px;
  box-shadow: var(--shadow-xs);
  transition: all 0.15s ease;
}

.perf-anchor-pill:hover {
  border-color: var(--c-blue-border);
  color: var(--c-blue);
  background: var(--c-blue-tint);
}

/* ---------- SECTION 04: 里程碑时间画卷 ---------- */
.milestone-card {
  padding: 16px 20px;
}

.milestone-scroll-container {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 10px 4px 18px;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: #CBD5E1 transparent;
}

.milestone-scroll-container::-webkit-scrollbar {
  height: 6px;
}

.milestone-scroll-container::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 4px;
}

.m-card-node {
  flex: 0 0 200px;
  background: var(--bg-canvas-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: all 0.2s var(--ease-spring);
  position: relative;
}

.m-card-node:hover {
  transform: translateY(-3px);
  background: #FFFFFF;
  border-color: var(--c-blue-border);
  box-shadow: var(--shadow-sm);
}

.m-card-ver {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 800;
  color: var(--ink-primary);
}

.m-card-date {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--c-blue);
}

.m-card-note {
  font-size: 12.5px;
  color: var(--ink-secondary);
  line-height: 1.45;
  margin-top: 4px;
}

/* ---------- SECTION 05: 国内浏览器内核矩阵 ---------- */
.brand-favicon {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  object-fit: contain;
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  padding: 2px;
  box-shadow: var(--shadow-xs);
  flex: none;
}

.brand-cell-content {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--ink-primary);
}

.core-note-sub {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-muted);
  margin-top: 2px;
}

/* ---------- SECTION 06: 停用时间线 ---------- */
.timeline-card {
  padding: 20px 24px;
}

.timeline-list {
  position: relative;
  padding-left: 28px;
}

.timeline-list::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--border-light);
}

.tl-item {
  position: relative;
  padding: 14px 0 16px;
  border-bottom: 1px dashed var(--border-light);
}

.tl-item:last-child {
  border-bottom: none;
}

.tl-node-dot {
  position: absolute;
  left: -27px;
  top: 18px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 3px solid var(--ink-faint);
  box-shadow: 0 0 0 2px #FFFFFF;
}

.tl-item.tl-r .tl-node-dot { border-color: var(--c-red); }
.tl-item.tl-g .tl-node-dot { border-color: var(--c-green); }
.tl-item.tl-b .tl-node-dot { border-color: var(--c-blue); }
.tl-item.tl-y .tl-node-dot { border-color: var(--c-yellow); }

.tl-date {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-muted);
}

.tl-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 3px;
  flex-wrap: wrap;
}

.tl-title {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--ink-primary);
}

.tl-tag-pill {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: var(--radius-sm);
}

.tl-tag-pill.r { background: var(--c-red-tint); border: 1px solid var(--c-red-border); color: #DC2626; }
.tl-tag-pill.g { background: var(--c-green-tint); border: 1px solid var(--c-green-border); color: #059669; }
.tl-tag-pill.b { background: var(--c-blue-tint); border: 1px solid var(--c-blue-border); color: var(--c-blue); }
.tl-tag-pill.y { background: var(--c-yellow-tint); border: 1px solid var(--c-yellow-border); color: #D97706; }

.tl-desc {
  font-size: 13px;
  color: var(--ink-secondary);
  line-height: 1.55;
  margin-top: 4px;
  max-width: 960px;
}

/* ---------- 页脚 ---------- */
.footer {
  background: #FFFFFF;
  border-top: 1px solid var(--border-light);
  margin-top: 64px;
}

.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 32px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 15px;
  color: var(--ink-primary);
}

.footer-desc {
  font-size: 12.5px;
  color: var(--ink-muted);
  margin-top: 6px;
  max-width: 600px;
}

.footer-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-muted);
  text-align: right;
}

.footer-meta b {
  color: var(--ink-primary);
}

/* 复制 Toast */
.copy-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--ink-primary);
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-float);
  opacity: 0;
  transition: all 0.3s var(--ease-spring);
  pointer-events: none;
  z-index: 1000;
}

.copy-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ---------- 响应式优化 ---------- */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .perf-metrics-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .nav {
    display: none;
  }
  .brand-sub {
    display: none;
  }
}

@media (max-width: 640px) {
  main {
    padding: 16px 14px 48px;
  }
  .card {
    padding: 18px 14px;
    border-radius: var(--radius-lg);
  }
  .spec-grid {
    grid-template-columns: 1fr;
  }
  .delta-display {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }
  .delta-node.latest-node {
    text-align: left;
  }
  .delta-center {
    align-items: flex-start;
  }
  .status-card-row {
    flex-wrap: wrap;
  }
  .row-desc {
    width: 100%;
    text-align: left;
    margin-left: 0;
  }
  .spectrum-footer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 14px;
  }
  .spectrum-scale-left, .spectrum-scale-mid {
    text-align: left;
  }
  .spectrum-scale-right {
    text-align: right;
  }
  .hide-sm {
    display: none;
  }
  .search-box {
    min-width: 100%;
  }
  .footer-meta {
    text-align: left;
  }
  #historyTable .note-cell {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .btn-expand-pill {
    padding: 3px 8px;
    font-size: 11px;
  }
  .copy-toast {
    bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  }
}

@media (max-width: 520px) {
  .hide-xs {
    display: none;
  }
}

@media (max-width: 940px) {
  .hide-md {
    display: none;
  }
}

@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;
  }
}
