/* ============================================================
   TensorFare GPU 比价平台 - 全局样式系统
   设计哲学：Modern Dark SaaS / Neon Green Theme
   ============================================================ */

/* ========== 1. 设计令牌（Design Tokens） ========== */
:root {
  /* 1.1 颜色系统 - 语义化命名 */
  --bg-primary: #0a0f0c;
  --bg-secondary: #111a15;
  --bg-tertiary: #1a251e;
  --bg-elevated: #1c2a22;
  --bg-hover: #24352b;

  --border-subtle: #1e2c24;
  --border-default: #2a3a2f;
  --border-strong: #3d4f42;

  --text-primary: #f0f4f2;
  --text-secondary: #a8b5ac;
  /* 对比度达标值（页面底 #111a15 / 卡片底 #1d2521）：
     tertiary 6.7:1 / 5.8:1，muted 5.4:1 / 4.8:1，均 >= WCAG AA 4.5:1 */
  --text-tertiary: #93a396;
  --text-muted: #859285;

  /* 品牌色 - Emerald */
  --brand-50: #ecfdf5;
  --brand-100: #d1fae5;
  --brand-200: #a7f3d0;
  --brand-300: #6ee7b7;
  --brand-400: #34d399;
  --brand-500: #10b981;
  --brand-600: #059669;
  --brand-700: #047857;

  /* 辅助色 */
  --accent-blue: #3b82f6;
  --accent-purple: #8b5cf6;
  --accent-orange: #f97316;
  --accent-yellow: #fbbf24;

  /* 状态色 */
  --success: #10b981;
  --success-bg: rgba(16, 185, 129, 0.12);
  --success-border: rgba(16, 185, 129, 0.3);

  --warning: #f59e0b;
  --warning-bg: rgba(245, 158, 11, 0.12);
  --warning-border: rgba(245, 158, 11, 0.3);

  --danger: #ef4444;
  /* 2026-12-03 axe：dark 主题 danger 文字用浅红（压深底 ≥4.5:1） */
  --danger-text: #f87171;
  /* axe：avail 圆点文字深色主题用浅色系（压深底达标） */
  --avail-available: #34d399;
  --avail-limited: #fbbf24;
  --avail-contact: #60a5fa;
  --avail-unknown: #94a3b8;
  --danger-bg: rgba(239, 68, 68, 0.12);
  --danger-border: rgba(239, 68, 68, 0.3);
  --danger-on: #ffffff; /* §12 裁定 #61：危险实心按钮前景（白字，≥3:1 UI 态），替代误用的 --on-brand（深绿压红） */
  /* hover 增强底（P0：订阅中心 .sub-btn--danger:hover 硬编码 rgba 迁入令牌） */
  --danger-bg-hover: rgba(239, 68, 68, 0.22);

  --info: #3b82f6;
  --info-bg: rgba(59, 130, 246, 0.12);
  --info-border: rgba(59, 130, 246, 0.3);

  /* 价格变化颜色 */
  --price-drop: #10b981;
  --price-drop-bg: rgba(16, 185, 129, 0.15);
  --price-rise: #ef4444;
  --price-rise-bg: rgba(239, 68, 68, 0.15);

  /* 品牌底/危险底上的前景色（单一真源，随主题切换） */
  --on-brand: #052e21;
  --danger-text: #fa5a5d;

  /* 品牌浅底 / 描边（替代已停用的 gradient-brand-soft） */
  --brand-subtle-bg: rgba(16, 185, 129, 0.12);
  --brand-border: rgba(16, 185, 129, 0.3);
  /* 品牌文字（附录 A #161：深色 #6ee7b7 = brand-300，保证浅底/深底均 ≥4.5:1） */
  --brand-text: #6ee7b7;
  /* 品牌交互态 + 焦点环（附录 A #159/#161/#165）：primary hover/active 与统一焦点环 */
  --brand-hover: #34d399;
  --brand-active: #059669;
  --focus-ring-color: #10b981;
  --focus-ring: 0 0 0 2px var(--bg-primary), 0 0 0 4px var(--focus-ring-color);
  --focus-ring-float: 0 0 0 2px var(--bg-elevated), 0 0 0 4px var(--focus-ring-color);

  /* 控件轮廓（非文本 UI ≥3:1） */
  --border-control: #5a7060;

  /* Hero 专用阶（仅 Hero h1；组件层只写 var(--fs-hero)） */
  --fs-hero-l: 3rem;
  --fs-hero-s: 1.75rem;
  --fs-hero: var(--fs-5xl);

  /* 渐变 - 已停用 gradient-brand-soft / gradient-glow / gradient-bg-animated */
  --gradient-brand: linear-gradient(135deg, #10b981 0%, #059669 100%);
  --gradient-card: linear-gradient(145deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
  --gradient-card-hover: linear-gradient(145deg, #142019 0%, #1f2e25 100%);
  --gradient-hero: radial-gradient(ellipse at top, rgba(16, 185, 129, 0.18) 0%, transparent 50%);

  /* 1.2 排版系统 */
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB',
    'Microsoft YaHei', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'SF Mono', Menlo, Monaco, 'Cascadia Code', 'Courier New', monospace;

  --fs-xs: 0.75rem;      /* 12px */
  --fs-sm: 0.875rem;     /* 14px */
  --fs-base: 1rem;       /* 16px */
  --fs-lg: 1.125rem;     /* 18px */
  --fs-xl: 1.25rem;      /* 20px */
  --fs-2xl: 1.5rem;      /* 24px */
  --fs-3xl: 2rem;        /* 32px */
  --fs-4xl: 2.5rem;      /* 40px */
  --fs-5xl: 3.5rem;      /* 56px */

  --lh-tight: 1.2;
  --lh-normal: 1.5;
  --lh-relaxed: 1.75;

  --fw-normal: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;

  /* 1.3 间距系统 (4px base) */
  --space-1: 0.25rem;    /* 4px */
  --space-2: 0.5rem;     /* 8px */
  --space-3: 0.75rem;    /* 12px */
  --space-4: 1rem;       /* 16px */
  --space-5: 1.25rem;    /* 20px */
  --space-6: 1.5rem;     /* 24px */
  --space-8: 2rem;       /* 32px */
  --space-10: 2.5rem;    /* 40px */
  --space-12: 3rem;      /* 48px */
  --space-16: 4rem;      /* 64px */

  /* 1.4 圆角系统 */
  --radius-sm: 0.375rem;  /* 6px */
  --radius-md: 0.5rem;    /* 8px */
  --radius-lg: 0.75rem;   /* 12px */
  --radius-xl: 1rem;      /* 16px */
  --radius-2xl: 1.5rem;   /* 24px */
  --radius-full: 9999px;

  /* 1.5 阴影系统 - 加强 */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.28);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.35);
  --shadow-xl: 0 24px 64px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 24px rgba(16, 185, 129, 0.35);
  --shadow-glow-lg: 0 0 48px rgba(16, 185, 129, 0.25);
  --shadow-hover: 0 16px 48px rgba(16, 185, 129, 0.2);
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.25), 0 1px 2px rgba(0, 0, 0, 0.2);

  /* 1.6 动画时间 */
  --duration-fast: 150ms;
  --duration-base: 250ms;
  --duration-slow: 400ms;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  /* 1.7 布局 */
  --container-max: 1280px;
  --nav-height: 72px;
  --z-sticky: 100;

  /* ===== 旧设计令牌别名（向后兼容旧模板） ===== */
  --primary: var(--brand-500);
  --primary-hover: var(--brand-600);
  --bg-dark: var(--bg-primary);
  --card-dark: var(--bg-secondary);
  --text: var(--text-primary);
  --border: var(--border-default);
  --border-light: var(--border-strong);

  /* --error 三件套：别名对齐 --danger（§10.2 P0-C）。
     marketplace 表单 4 处 var(--error) 此前未定义、静默失去颜色；
     用 var() 别名与 --danger（含未来浅色覆盖）自动同步 */
  --error: var(--danger);
  --error-bg: var(--danger-bg);
  --error-border: var(--danger-border);
}

/* 浅色模式（手动切换） */
body.theme-light {
  --bg-primary: #f8faf9;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f0f4f1;
  --bg-elevated: #ffffff;
  --bg-hover: #e8f0ec;

  --border-subtle: #d8e3db;
  --border-default: #c5d4c9;
  --border-strong: #9ab0a0;

  --text-primary: #1a2520;
  --text-secondary: #4a564d;
  /* 对比度达标值（浅色底 #f8faf9）：tertiary 5.6:1 / muted 4.7:1 */
  --text-tertiary: #5a675e;
  --text-muted: #64736a;
  --danger-text: #b91c1c;
  /* axe：avail 圆点文字浅色主题用深色系（压白底达标） */
  --avail-available: #047857;
  --avail-limited: #b45309;
  --avail-contact: #1d4ed8;
  --avail-unknown: #64748b;
  --danger-on: #ffffff;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 24px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 24px 48px rgba(0, 0, 0, 0.12);
  --shadow-glow: 0 0 20px rgba(16, 185, 129, 0.2);
  --shadow-glow-lg: 0 0 40px rgba(16, 185, 129, 0.15);
  --shadow-hover: 0 8px 32px rgba(16, 185, 129, 0.12);
  --shadow-card: 0 2px 12px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);

  --gradient-card: linear-gradient(145deg, #ffffff 0%, #f8faf9 100%);
  --gradient-card-hover: linear-gradient(145deg, #f0faf5 0%, #e8f4ed 100%);
  --gradient-hero: radial-gradient(ellipse at top, rgba(16, 185, 129, 0.08) 0%, transparent 50%);

  --brand-subtle-bg: rgba(5, 150, 105, 0.1);
  --brand-border: rgba(5, 150, 105, 0.3);
  --brand-text: #047857;
  /* 浅色：品牌交互态 + 焦点环外圈（附录 A #159/#161；--focus-ring 组合令牌自动套用） */
  --brand-hover: #059669;
  --brand-active: #047857;
  --focus-ring-color: #047857;
  --border-control: #7d9083;

  --bg-dark: var(--bg-primary);
  --card-dark: var(--bg-secondary);
  --text: var(--text-primary);
  --border: var(--border-default);
  --border-light: var(--border-strong);
}

/* ========== 2. 基础重置 ========== */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
  color: var(--text-secondary);
  background-color: var(--bg-primary);
  background-image: var(--gradient-hero);
  background-attachment: fixed;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* §6.12（2026-12-03 axe 实测）：overflow-x:clip 挂哪都会把 overflow-y 计算为 auto、建立滚动容器，
   废掉 sticky 表头（body/html 两次实测均失败）。390px 横向溢出为存量已接受问题，
   索性移除 clip——sticky 相对视口正常吸顶。 */

/* 标题文字优化 */
h1, h2, h3, h4 {
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

/* 平滑滚动焦点 */
html { scroll-behavior: smooth; }
html:focus-within { scroll-behavior: smooth; }

a {
  /* 2026-12-03 axe 实测：--brand-400 浅色主题压浅底不达标（全局链接色根因），走 --brand-text 回退链。 */
  color: var(--brand-text, var(--brand-400));
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
}
a:hover { color: var(--brand-300); }

img, svg { display: block; max-width: 100%; }

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

/* ========== 3. 工具类（Utility Classes） ========== */

/* 容器 */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

/* 文字对齐 */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

/* 显示 */
.hidden { display: none !important; }
.flex { display: flex; }
.grid { display: grid; }
.block { display: block; }
.inline-block { display: inline-block; }

/* Flex 工具 */
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }

/* 边距工具类 */
.mt-2 { margin-top: var(--space-2); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }

/* 背景工具 */
.bg-card { background: var(--bg-secondary); }
.bg-elevated { background: var(--bg-elevated); }

/* ========== 4. 导航栏（顶部） ========== */
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.nav-link {
  padding: var(--space-2) var(--space-4);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: var(--radius-md);
  transition: all var(--duration-fast) var(--ease-out);
  white-space: nowrap;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--gradient-brand);
  border-radius: var(--radius-full);
  transform: translateX(-50%);
  transition: width var(--duration-base) var(--ease-out);
}

.nav-link:hover {
  color: var(--text-primary);
  background: var(--bg-hover);
}

.nav-link.active {
  color: var(--brand-300);
  background: var(--success-bg);
}
.nav-link.active::after { width: 60%; }

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

/* 导航下拉菜单 */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: var(--space-2) var(--space-4);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--text-secondary);
  background: none;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--duration-fast) var(--ease-out);
}

.nav-dropdown-toggle:hover {
  color: var(--text-primary);
  background: var(--bg-hover);
}

.nav-dropdown-toggle i {
  font-size: var(--fs-xs);
  transition: transform var(--duration-fast) var(--ease-out);
}

.nav-dropdown.open .nav-dropdown-toggle i {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 160px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: 6px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  display: none;
  z-index: 110;
}

.nav-dropdown.open .nav-dropdown-menu {
  display: block;
}

.nav-dropdown-menu a {
  display: block;
  padding: 10px 12px;
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: var(--radius-md);
  transition: all var(--duration-fast) var(--ease-out);
}

.nav-dropdown-menu a:hover {
  color: var(--text-primary);
  background: var(--bg-hover);
}

/* 语言切换按钮 */
.lang-switcher {
  display: flex;
  background: var(--bg-secondary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-full);
  padding: 3px;
  transition: all var(--duration-fast) var(--ease-out);
}
.lang-switcher:hover {
  border-color: var(--border-strong);
}

.lang-btn {
  padding: 5px 14px;
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  color: var(--text-tertiary);
  border-radius: var(--radius-full);
  transition: all var(--duration-fast) var(--ease-out);
  cursor: pointer;
}

.lang-btn.active {
  background: var(--gradient-brand);
  color: var(--bg-primary);
  box-shadow: var(--shadow-glow);
}
.lang-btn:not(.active):hover {
  color: var(--text-primary);
}

/* 主题切换按钮 */
.theme-toggle {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-secondary);
  border: 1px solid var(--border-control);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  transition: all var(--duration-fast) var(--ease-out);
  cursor: pointer;
}
.theme-toggle:hover {
  background: var(--bg-hover);
  /* 2026-12-03 axe：hover 品牌色浅色主题不达标，走 --brand-text 回退链。 */
  color: var(--brand-text, var(--brand-400));
  border-color: var(--brand-600);
  transform: rotate(20deg);
}

/* CTA 按钮 */
.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 10px 22px;
  background: var(--gradient-brand);
  color: var(--bg-primary);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all var(--duration-base) var(--ease-out);
  box-shadow: var(--shadow-md);
}
.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

/* 移动端菜单按钮 */
.mobile-menu-btn {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  background: var(--bg-secondary);
  border: 1px solid var(--border-control);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
}
.mobile-menu-btn:hover {
  background: var(--bg-hover);
  /* axe 修复同上 */
  color: var(--brand-text, var(--brand-400));
}
.mobile-menu-btn.open {
  background: var(--success-bg);
  /* axe 修复同上 */
  color: var(--brand-text, var(--brand-400));
  border-color: var(--brand-600);
}

/* ========== 5. Hero 区域 - 现代 SaaS 风格 ========== */
.hero {
  position: relative;
  /* C5（2026-11-01）：底部 padding 96→64px——与市场概览顶部 60px 叠加曾叠出 150px+ 纯渐变空带 */
  padding: var(--space-16) 0 var(--space-8);
  text-align: center;
  overflow: hidden;
}

/* Hero 背景装饰 - 流动的光晕 */
.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.18) 0%, transparent 50%);
  border-radius: 50%;
  pointer-events: none;
  animation: hero-glow 8s ease-in-out infinite alternate;
}

.hero::after {
  content: '';
  position: absolute;
  top: 100px;
  right: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, transparent 60%);
  border-radius: 50%;
  pointer-events: none;
  animation: hero-glow 10s ease-in-out infinite alternate-reverse;
}

@keyframes hero-glow {
  0% { opacity: 0.6; transform: translateX(-50%) scale(1); }
  100% { opacity: 1; transform: translateX(-50%) scale(1.1); }
}

/* Hero 徽章 - 更新颖 */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 8px 18px;
  background: var(--brand-subtle-bg);
  border: 1px solid var(--success-border);
  border-radius: var(--radius-full);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--brand-300);
  margin-bottom: var(--space-6);
  position: relative;
  z-index: 1;
  backdrop-filter: blur(8px);
  animation: fade-in-up 0.6s var(--ease-out) both;
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-400);
  box-shadow: 0 0 8px var(--brand-400);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px var(--brand-400); }
  50% { opacity: 0.6; box-shadow: 0 0 16px var(--brand-400); }
}

/* Hero 标题 - 渐变文字 + 动画 */
.hero-title {
  font-size: var(--fs-hero);
  font-weight: var(--fw-bold);
  line-height: 1.1;
  color: var(--text-primary);
  margin: 0 0 var(--space-5);
  letter-spacing: -0.03em;
  position: relative;
  z-index: 1;
  animation: fade-in-up 0.6s var(--ease-out) 0.1s both;
}

.hero-title .highlight {
  background: linear-gradient(135deg, #34d399 0%, #10b981 50%, #059669 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: relative;
  white-space: nowrap;
}

/* Hero 副标题 */
.hero-subtitle {
  font-size: var(--fs-xl);
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto var(--space-8);
  line-height: var(--lh-relaxed);
  position: relative;
  z-index: 1;
  animation: fade-in-up 0.6s var(--ease-out) 0.2s both;
}

@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Hero CTA 按钮组 */
.hero-actions {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--space-10);
  position: relative;
  z-index: 1;
  animation: fade-in-up 0.6s var(--ease-out) 0.3s both;
}

/* ===== §6.1 / §6.10 按钮六态（含默认）=====
   primary 按规范收敛为实底 --brand-500：原渐变底 + ::before 白色光泽叠层 +
   hover 位移 -3px / 30px 辉光全部下线（§2.7 按钮文字底禁渐变、§6.11 阴影层级）。
   前景用代码真源 --on-brand #052e21（附录 A 勘误，design-rules #11 钉死），
   修掉 #10b981 上白字 2.54:1 的对比度问题。 */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 14px 30px;
  background: var(--brand-500);
  color: var(--on-brand);
  font-size: var(--fs-base);
  font-weight: var(--fw-semibold);
  border: 1px solid var(--brand-500);
  border-radius: var(--radius-lg);
  transition: background-color var(--duration-fast) var(--ease-out),
              border-color var(--duration-fast) var(--ease-out),
              box-shadow var(--duration-fast) var(--ease-out),
              transform var(--duration-fast) var(--ease-out);
  text-decoration: none;
  cursor: pointer;
  position: relative;
}
/* §12 P0 根因：全局 a:hover { color: var(--brand-300) } 特异性 0,1,1 高于
   .btn-primary 的 0,1,0；首页主 CTA 是 <a class="btn-primary">，hover 时深字会被
   浅绿 --brand-300 顶掉（#34d399 底上仅 1.26:1）。按钮各交互态 MUST 显式锁定前景。 */
.btn-primary:hover { background: var(--brand-hover); border-color: var(--brand-hover); color: var(--on-brand); }
.btn-primary:active { background: var(--brand-active); border-color: var(--brand-active); color: var(--on-brand); transform: translateY(1px); }
.btn-primary:focus-visible { outline: none; box-shadow: var(--focus-ring); color: var(--on-brand); }
.btn-primary:disabled,
.btn-primary[aria-disabled="true"] { opacity: 0.45; pointer-events: none; cursor: not-allowed; }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 14px 28px;
  background: var(--bg-elevated);
  color: var(--text-primary);
  font-size: var(--fs-base);
  font-weight: var(--fw-semibold);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  transition: background-color var(--duration-fast) var(--ease-out),
              border-color var(--duration-fast) var(--ease-out),
              box-shadow var(--duration-fast) var(--ease-out),
              transform var(--duration-fast) var(--ease-out);
  text-decoration: none;
  cursor: pointer;
  position: relative;
}
.btn-outline:hover { background: var(--bg-hover); border-color: var(--border-strong); color: var(--text-primary); }
.btn-outline:active { background: var(--bg-hover); color: var(--text-primary); transform: translateY(1px); }
.btn-outline:focus-visible { outline: none; box-shadow: var(--focus-ring); color: var(--text-primary); }
.btn-outline:disabled,
.btn-outline[aria-disabled="true"] { opacity: 0.45; pointer-events: none; cursor: not-allowed; }

/* §6.10 六态收尾第二片：.btn-ghost 幽灵按钮（最低强调级：透明底 + 透明边框，用于取消/次要操作）。
   排版对齐 .btn-outline；前景全程取中性色（不占唯一强调色 --brand-500 的主 CTA 位），
   hover/active/focus-visible 显式锁 color，规避全局 a:hover 0,1,1 覆盖 0,1,0（#59 教训）。 */
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 14px 28px;
  background: transparent;
  color: var(--text-secondary);
  font-size: var(--fs-base);
  font-weight: var(--fw-semibold);
  border: 1px solid transparent;
  border-radius: var(--radius-lg);
  transition: background-color var(--duration-fast) var(--ease-out),
              color var(--duration-fast) var(--ease-out),
              border-color var(--duration-fast) var(--ease-out),
              box-shadow var(--duration-fast) var(--ease-out),
              transform var(--duration-fast) var(--ease-out);
  text-decoration: none;
  cursor: pointer;
  position: relative;
}
.btn-ghost:hover { background: var(--bg-hover); border-color: var(--border-control); color: var(--text-primary); }
.btn-ghost:active { background: var(--bg-tertiary); color: var(--text-primary); transform: translateY(1px); }
.btn-ghost:focus-visible { outline: none; box-shadow: var(--focus-ring); color: var(--text-primary); }
.btn-ghost:disabled,
.btn-ghost[aria-disabled="true"] { opacity: 0.45; pointer-events: none; cursor: not-allowed; }

/* §6.1 / §12 裁定 #61：危险操作 MUST NOT 用品牌绿。前景改用 --danger-on 白字
   （原误用 --on-brand 深绿压红是语义错误）；hover/active 只用阴影层级与 1px 位移，不引入新色值。 */
.btn-danger {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 14px 28px;
  background: var(--danger);
  color: var(--danger-on);
  font-size: var(--fs-base);
  font-weight: var(--fw-semibold);
  border: 1px solid var(--danger);
  border-radius: var(--radius-lg);
  transition: background-color var(--duration-fast) var(--ease-out),
              box-shadow var(--duration-fast) var(--ease-out),
              transform var(--duration-fast) var(--ease-out);
  text-decoration: none;
  cursor: pointer;
  position: relative;
}
.btn-danger:hover { box-shadow: var(--shadow-md); color: var(--danger-on); }
.btn-danger:active { transform: translateY(1px); box-shadow: var(--shadow-sm); color: var(--danger-on); }
.btn-danger:focus-visible { outline: none; box-shadow: var(--focus-ring); color: var(--danger-on); }
.btn-danger:disabled,
.btn-danger[aria-disabled="true"] { opacity: 0.45; pointer-events: none; cursor: not-allowed; }

/* §6.1 / §6.10 loading：aria-busy 时文案透明（纯 CSS 保留布局宽度，MUST NOT 改变按钮宽度），
   14px 环形 spinner 由 ::after 居中绘制；pointer-events:none 防重复提交。
   注：.plan-btn 自 20261111s 起接入本通用组（定价页 upgrade 待付态）；
   .sub-btn 保留 is-busy 独立实现——支付防重复扣款契约被 subscription-ui 守卫锁定，勿并入本组（#68）。 */
.btn-primary[aria-busy="true"],
.btn-outline[aria-busy="true"],
.btn-danger[aria-busy="true"],
.btn-secondary[aria-busy="true"],
.btn-ghost[aria-busy="true"],
.submit-btn[aria-busy="true"],
.plan-btn[aria-busy="true"] {
  pointer-events: none;
  color: transparent;
}
.btn-primary[aria-busy="true"]::after,
.btn-outline[aria-busy="true"]::after,
.btn-danger[aria-busy="true"]::after,
.btn-secondary[aria-busy="true"]::after,
.btn-ghost[aria-busy="true"]::after,
.submit-btn[aria-busy="true"]::after,
.plan-btn[aria-busy="true"]::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  border-radius: 50%;
  border: 2px solid var(--text-secondary);
  border-top-color: transparent;
  animation: btn-spin 700ms linear infinite;
}
.btn-primary[aria-busy="true"]::after,
.btn-danger[aria-busy="true"]::after,
.submit-btn[aria-busy="true"]::after,
.plan-btn[aria-busy="true"]::after {
  border-color: var(--on-brand);
  border-top-color: transparent;
}
/* 定价页 .pricing-plans .plan-btn（0,2,0）与 :hover（0,3,0）的 color 声明更靠后，
   通用组的 .plan-btn[aria-busy]（0,2,0）压不住 → 实测文案仍是深绿。此处按作用域提权锁死。 */
.pricing-plans .plan-btn[aria-busy="true"],
.pricing-plans .plan-btn[aria-busy="true"]:hover {
  color: transparent;
}
/* §12 裁定 #61：danger 按钮 spinner 改白（--danger-on），否则深绿 spinner 压红底不可见 */
.btn-danger[aria-busy="true"]::after {
  border-color: var(--danger-on);
  border-top-color: transparent;
}
@keyframes btn-spin {
  to { transform: rotate(360deg); }
}

/* Hero 搜索框 - 现代化 */
.hero-search {
  max-width: 620px;
  margin: 0 auto var(--space-8);
  position: relative;
  z-index: 1;
  animation: fade-in-up 0.6s var(--ease-out) 0.4s both;
}

.search-box {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: 8px 8px 8px 22px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-2xl);
  transition: all var(--duration-base) var(--ease-out);
  box-shadow: var(--shadow-lg);
}

.search-box:focus-within {
  border-color: var(--brand-500);
  box-shadow: 0 0 0 4px var(--success-bg), var(--shadow-lg);
  transform: translateY(-1px);
}

.search-icon {
  color: var(--text-tertiary);
  font-size: var(--fs-base);
  flex-shrink: 0;
  /* CLS 防抖：FA 字体到达前预留 1em 图标宽度，避免字体加载后推挤 input */
  width: 1em;
  text-align: center;
}

.search-input {
  flex: 1;
  padding: 14px 10px;
  background: transparent;
  border: none;
  font-size: var(--fs-base);
  color: var(--text-primary);
  font-family: inherit;
  outline: none;
  min-width: 0;
}

.search-input::placeholder { color: var(--text-tertiary); transition: color var(--duration-fast); }
.search-input:focus::placeholder { color: var(--text-tertiary); }

.search-btn {
  padding: 12px 24px;
  background: var(--gradient-brand);
  color: var(--bg-primary);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  border-radius: var(--radius-lg);
  border: none;
  transition: all var(--duration-fast) var(--ease-out);
  cursor: pointer;
  white-space: nowrap;
}
.search-btn:hover {
  filter: brightness(1.1);
  transform: scale(1.02);
}
.search-btn:active { transform: scale(0.98); }

.advanced-search-btn {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-tertiary);
  border-radius: var(--radius-lg);
  color: var(--text-tertiary);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
  flex-shrink: 0;
}
.advanced-search-btn:hover {
  /* axe 修复同上 */
  color: var(--brand-text, var(--brand-400));
  background: var(--success-bg);
  transform: rotate(15deg);
}

/* Hero 数据点 - 卡片式展示 */
.hero-stats {
  display: flex;
  justify-content: center;
  gap: var(--space-4);
  margin-top: var(--space-12);
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
  animation: fade-in-up 0.6s var(--ease-out) 0.5s both;
}

/* C9（2026-11-01）：统计条下的新鲜度小字注脚（for-providers） */
.hero-stats-caption {
  margin-top: var(--space-3);
  text-align: center;
  font-size: var(--fs-xs, 0.75rem);
  color: var(--text-tertiary);
}

.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-5) var(--space-6);
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  min-width: 140px;
  transition: all var(--duration-base) var(--ease-out);
}

.hero-stat:hover {
  transform: translateY(-4px);
  border-color: var(--brand-500);
  box-shadow: var(--shadow-md);
  background: var(--bg-elevated);
}

.hero-stat-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--fs-sm);
  color: var(--text-secondary);
}
.hero-stat-item i {
  /* axe 修复同上（图标色同口径） */
  color: var(--brand-text, var(--brand-400));
  background: var(--success-bg);
  padding: 6px;
  border-radius: var(--radius-md);
}

.hero-stat-value {
  font-size: var(--fs-3xl);
  font-weight: var(--fw-bold);
  color: var(--text-primary);
  letter-spacing: -0.02em;
  line-height: 1;
}

.hero-stat-value .plus {
  color: var(--brand-400);
}

.hero-stat-label {
  font-size: var(--fs-sm);
  color: var(--text-tertiary);
}

/* ========== 6. 统计卡片区域 - Bento Grid 风格 ========== */
.stats-section, .market-overview {
  padding: var(--space-16) 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-12);
}

.section-eyebrow {
  display: inline-block;
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--brand-400);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: var(--space-4);
}

.section-title {
  font-size: var(--fs-4xl);
  font-weight: var(--fw-bold);
  color: var(--text-primary);
  margin: 0 0 var(--space-4);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.section-description {
  font-size: var(--fs-lg);
  color: var(--text-secondary);
  max-width: 620px;
  margin: 0 auto;
  line-height: var(--lh-relaxed);
}

/* 统计数据卡片网格 - 响应式 Bento 风格 */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
  margin-top: var(--space-10);
}

.stat-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-2xl);
  padding: var(--space-8) var(--space-6);
  text-align: center;
  transition: all var(--duration-base) var(--ease-out);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(8px);
}

/* 动态背景装饰 */
.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: radial-gradient(circle at 50% 0%, rgba(16, 185, 129, 0.08) 0%, transparent 70%);
  opacity: 0;
  transition: opacity var(--duration-base) var(--ease-out);
}

.stat-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--duration-base) var(--ease-out);
}

.stat-card:hover {
  border-color: var(--brand-500);
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  background: var(--gradient-card-hover);
}

.stat-card:hover::before { opacity: 1; }
.stat-card:hover::after { transform: scaleX(1); }

.stat-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto var(--space-4);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-subtle-bg);
  border-radius: var(--radius-xl);
  color: var(--brand-400);
  font-size: var(--fs-2xl);
  border: 1px solid var(--success-border);
  transition: all var(--duration-base) var(--ease-out);
}

.stat-card:hover .stat-icon {
  transform: scale(1.1) rotate(-5deg);
  background: var(--success-bg);
}

.stat-value {
  font-size: var(--fs-4xl);
  font-weight: var(--fw-bold);
  color: var(--text-primary);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: var(--space-2);
  font-variant-numeric: tabular-nums;
}

.stat-value .unit {
  font-size: var(--fs-lg);
  font-weight: var(--fw-medium);
  color: var(--brand-400);
  margin-left: 4px;
}

.stat-label {
  font-size: var(--fs-base);
  color: var(--text-tertiary);
  font-weight: var(--fw-medium);
}

.stat-trend {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-top: var(--space-4);
}

.stat-trend.up {
  background: var(--success-bg);
  color: var(--brand-400);
  border: 1px solid var(--success-border);
}
.stat-trend.down {
  background: var(--danger-bg);
  color: var(--danger);
  border: 1px solid var(--danger-border);
}

/* ========== 7. 价格趋势图表 ========== */
.trend-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-lg);
}

.trend-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--space-8);
  flex-wrap: wrap;
  gap: var(--space-4);
}

.trend-title {
  font-size: var(--fs-2xl);
  font-weight: var(--fw-bold);
  color: var(--text-primary);
  margin: 0 0 var(--space-2);
}

.price-trend-title {
  font-size: var(--fs-2xl);
  font-weight: var(--fw-bold);
  color: var(--text-primary);
  text-align: center;
  margin-bottom: var(--space-4);
}

.trend-subtitle, .price-trend-subtitle {
  color: var(--text-tertiary);
  font-size: var(--fs-base);
  text-align: center;
  margin-bottom: var(--space-6);
}

.price-trend-basis {
  color: var(--text-tertiary);
  font-size: var(--fs-xs);
  line-height: 1.6;
  text-align: center;
  margin-top: var(--space-3);
}

.trend-timeframes {
  display: flex;
  gap: var(--space-1);
  background: var(--bg-secondary);
  border-radius: var(--radius-full);
  padding: 4px;
}

.timeframe-btn {
  padding: 8px 16px;
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--text-tertiary);
  border-radius: var(--radius-full);
  transition: all var(--duration-fast) var(--ease-out);
  cursor: pointer;
}

.timeframe-btn.active {
  background: var(--gradient-brand);
  color: var(--bg-primary);
}

.timeframe-btn:not(.active):hover {
  color: var(--text-primary);
  background: var(--bg-hover);
}

.trend-summary {
  display: flex;
  gap: var(--space-8);
  margin-bottom: var(--space-6);
  flex-wrap: wrap;
}

.trend-summary-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.trend-summary-label {
  font-size: var(--fs-xs);
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.trend-summary-value {
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
  color: var(--text-primary);
}

.trend-summary-change {
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
}

.trend-summary-change.positive { color: var(--brand-400); }
.trend-summary-change.negative { color: var(--danger); }

#price-trend-chart {
  width: 100%;
  height: 350px;
  display: block;
}

/* ========== 7. 价格趋势图表 - 玻璃态卡片 ========== */
.trend-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-2xl);
  padding: var(--space-10);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(10px);
  transition: all var(--duration-base) var(--ease-out);
  position: relative;
  overflow: hidden;
}

.trend-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--brand-500) 50%, transparent 100%);
  opacity: 0.4;
}

.trend-card:hover {
  border-color: var(--brand-500);
  transform: translateY(-2px);
}

.trend-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--space-8);
  flex-wrap: wrap;
  gap: var(--space-4);
}

.trend-title {
  font-size: var(--fs-2xl);
  font-weight: var(--fw-bold);
  color: var(--text-primary);
  margin: 0 0 var(--space-2);
  letter-spacing: -0.02em;
}

.price-trend-title {
  font-size: var(--fs-2xl);
  font-weight: var(--fw-bold);
  color: var(--text-primary);
  text-align: center;
  margin-bottom: var(--space-3);
  letter-spacing: -0.02em;
}

.trend-subtitle, .price-trend-subtitle {
  color: var(--text-tertiary);
  font-size: var(--fs-base);
  text-align: center;
  margin-bottom: var(--space-8);
}

.timeframe-tabs {
  display: flex;
  gap: var(--space-1);
  background: var(--bg-primary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-full);
  padding: 4px;
}

.timeframe-btn {
  padding: 8px 18px;
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--text-tertiary);
  border-radius: var(--radius-full);
  transition: all var(--duration-fast) var(--ease-out);
  cursor: pointer;
  border: none;
  background: transparent;
}

.timeframe-btn.active {
  background: var(--gradient-brand);
  color: var(--bg-primary);
  box-shadow: var(--shadow-sm);
}

.timeframe-btn:not(.active):hover {
  color: var(--text-primary);
  background: var(--bg-hover);
}

.trend-summary {
  display: flex;
  gap: var(--space-10);
  margin-bottom: var(--space-6);
  flex-wrap: wrap;
}

.trend-summary-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.trend-summary-label {
  font-size: var(--fs-xs);
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.trend-summary-value {
  font-size: var(--fs-2xl);
  font-weight: var(--fw-bold);
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

.trend-summary-change {
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.trend-summary-change.positive { color: var(--brand-400); }
.trend-summary-change.negative { color: var(--danger); }

#price-trend-chart {
  width: 100%;
  height: 350px;
  display: block;
  border-radius: var(--radius-lg);
}

/* ========== 8. 推荐卡片区域 - 现代产品卡风格 ========== */
.recommendations-section, .recommendations {
  padding: var(--space-16) 0;
}

.section-tabs {
  display: flex;
  justify-content: center;
  gap: var(--space-2);
  margin: var(--space-8) 0;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 10px 24px;
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--text-secondary);
  background: var(--bg-secondary);
  border: 1px solid var(--border-control);
  border-radius: var(--radius-full);
  transition: all var(--duration-base) var(--ease-out);
  cursor: pointer;
}

.tab-btn.active {
  background: var(--gradient-brand);
  color: var(--bg-primary);
  border-color: transparent;
  box-shadow: var(--shadow-sm);
}

.tab-btn:not(.active):hover {
  background: var(--bg-hover);
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.view-all {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  color: var(--brand-400);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  transition: all var(--duration-fast) var(--ease-out);
  text-decoration: none;
}
.view-all:hover {
  color: var(--brand-300);
  gap: var(--space-2);
}

/* 推荐卡片网格 */
.recommendations-grid, .recommendation-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
  margin-top: var(--space-8);
}

.recommendation-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-2xl);
  padding: var(--space-6);
  transition: all var(--duration-base) var(--ease-out);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.recommendation-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--duration-base) var(--ease-out);
  pointer-events: none;
}

.recommendation-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gradient-brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--duration-base) var(--ease-out);
}

.recommendation-card:hover {
  border-color: var(--brand-500);
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.recommendation-card:hover::before { opacity: 1; }
.recommendation-card:hover::after { transform: scaleX(1); }

.rec-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--space-5);
  gap: var(--space-3);
}

.rec-model {
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
  color: var(--text-primary);
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.rec-platform {
  font-size: var(--fs-sm);
  color: var(--text-tertiary);
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* B8：标签/值对齐与分隔——此前 .rec-row 系列无样式，中文标签直接黏英文值（如「平台Nebius」）。
   徽章容器允许换行，避免双徽章挤压左侧标题（B300 卡观察到的换行挤压） */
.rec-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.recommendation-card .rec-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}

.recommendation-card .rec-row + .rec-row { margin-top: 4px; }

.recommendation-card .rec-label {
  color: var(--text-tertiary);
  font-size: var(--fs-xs, 0.75rem);
  flex-shrink: 0;
}

.recommendation-card .rec-label::after { content: ': '; }

.recommendation-card .rec-val {
  color: var(--text-primary);
  font-weight: var(--fw-semibold, 600);
  text-align: right;
  overflow-wrap: anywhere;
}

.rec-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  border-radius: var(--radius-full);
  white-space: nowrap;
  flex-shrink: 0;
}

.rec-badge.best-price,
.rec-badge.best {
  background: var(--success-bg);
  color: var(--brand-400);
  border: 1px solid var(--success-border);
}

.rec-badge.spot {
  background: var(--warning-bg);
  color: var(--warning);
  border: 1px solid var(--warning-border);
}

.rec-specs {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-5);
  border-bottom: 1px solid var(--border-subtle);
}

.rec-spec-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--fs-sm);
  padding: 4px 0;
}

.rec-spec-label {
  color: var(--text-tertiary);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.rec-spec-label i {
  font-size: var(--fs-xs);
  width: 16px;
  text-align: center;
  color: var(--brand-400);
}

.rec-spec-value {
  font-weight: var(--fw-semibold);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
}

.rec-price {
  text-align: center;
  margin-bottom: var(--space-4);
  padding: var(--space-4);
  background: var(--bg-primary);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-subtle);
  transition: all var(--duration-base) var(--ease-out);
}

.recommendation-card:hover .rec-price {
  background: var(--success-bg);
  border-color: var(--success-border);
}

.rec-price-label {
  font-size: var(--fs-xs);
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 6px;
}

.rec-price-value {
  font-size: var(--fs-3xl);
  font-weight: var(--fw-bold);
  color: var(--text-primary);
  font-family: var(--font-mono);
  letter-spacing: -0.02em;
  line-height: 1.1;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
}

.rec-price-value .currency {
  color: var(--brand-400);
  font-size: var(--fs-xl);
  font-weight: var(--fw-semibold);
}

.rec-price-value .per-unit {
  font-size: var(--fs-sm);
  color: var(--text-tertiary);
  font-weight: var(--fw-normal);
}

.rec-cta {
  width: 100%;
  padding: 14px;
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  transition: all var(--duration-base) var(--ease-out);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  cursor: pointer;
}

.rec-cta:hover {
  background: var(--gradient-brand);
  color: var(--bg-primary);
  border-color: transparent;
  transform: scale(1.02);
  box-shadow: var(--shadow-sm);
}

/* ========== 9. GPU 价格表格 ========== */
.table-section {
  padding: var(--space-16) 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
}

.table-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-6);
  flex-wrap: wrap;
  gap: var(--space-4);
}

.table-filters {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.filter-select {
  padding: 10px 14px;
  background: var(--bg-primary);
  border: 1px solid var(--border-control);
  border-radius: var(--radius-md);
  font-size: var(--fs-sm);
  color: var(--text-primary);
  font-family: inherit;
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
}

.filter-select:hover { border-color: var(--border-strong); }
.filter-select:focus,
.filter-select:focus-visible {
  outline: none;
  border-color: var(--brand-500);
  box-shadow: var(--focus-ring);
}
.filter-select[aria-invalid="true"] { border-color: var(--danger); box-shadow: 0 0 0 3px var(--danger-bg); }
.filter-select:disabled { background: var(--bg-tertiary); opacity: 0.45; cursor: not-allowed; }

.table-wrapper {
  background: var(--bg-primary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.gpu-table {
  width: 100%;
  border-collapse: collapse;
}

.gpu-table thead {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-default);
}

.gpu-table th {
  padding: 0 var(--space-4);
  height: 40px;
  text-align: left;
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border-default);
  white-space: nowrap;
}

.gpu-table th.sortable {
  cursor: pointer;
  user-select: none;
  transition: color var(--duration-fast) var(--ease-out);
}

.gpu-table th.sortable:hover { color: var(--brand-400); }

.gpu-table th.sortable.asc::after,
.gpu-table th.sortable.desc::after {
  content: '';
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 6px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
}

.gpu-table th.sortable.asc::after { border-bottom: 5px solid var(--brand-400); }
.gpu-table th.sortable.desc::after { border-top: 5px solid var(--brand-400); }

.gpu-table tbody tr {
  height: 48px;
  border-bottom: 1px solid var(--border-subtle);
  transition: background var(--duration-fast) var(--ease-out);
}

.gpu-table tbody tr:last-child { border-bottom: none; }
/* hover / focus-visible / aria-current / aria-disabled 六态统一在 §6.10「表格数据行六态」区块定义
   （与 .table 同段共用一条真源），此处不重复声明，避免两套背景叠加（§6.4 状态优先级）。 */

.gpu-table td {
  padding: 0 var(--space-4);
  font-size: var(--fs-sm);
  color: var(--text-secondary);
}

.gpu-table td.model-cell {
  font-weight: var(--fw-semibold);
  color: var(--text-primary);
}

.gpu-table td.platform-cell {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
}

.gpu-table td.price-cell {
  font-family: var(--font-mono);
  font-weight: var(--fw-semibold);
  color: var(--text-primary);
  font-size: var(--fs-sm);
}

.price-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.price-change-tag {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px 8px;
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  border-radius: var(--radius-full);
  margin-left: 6px;
}

.price-change-tag.drop {
  background: var(--success-bg);
  color: var(--brand-400);
}

.price-change-tag.rise {
  background: var(--danger-bg);
  color: var(--danger);
}

.min-price-row {
  background: var(--success-bg) !important;
}

.min-price-row td.price-cell { color: var(--brand-400); }

tr.price-drop {
  background: linear-gradient(90deg, var(--success-bg) 0%, transparent 30%);
  border-left: 3px solid var(--brand-500);
}

tr.price-rise {
  background: linear-gradient(90deg, var(--danger-bg) 0%, transparent 30%);
  border-left: 3px solid var(--danger);
}

.action-btn {
  padding: 8px 14px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-control);
  border-radius: var(--radius-md);
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  color: var(--text-primary);
  transition: all var(--duration-fast) var(--ease-out);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.action-btn:hover {
  background: var(--gradient-brand);
  border-color: transparent;
  color: var(--bg-primary);
}

/* 表格分页 */
.table-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-6) 0 0;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.pagination-info {
  font-size: var(--fs-sm);
  color: var(--text-tertiary);
}

.pagination-controls {
  display: flex;
  gap: var(--space-1);
}

.page-btn {
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  background: var(--bg-primary);
  border: 1px solid var(--border-control);
  border-radius: var(--radius-md);
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  transition: all var(--duration-fast) var(--ease-out);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.page-btn:hover:not(:disabled) {
  background: var(--bg-hover);
  border-color: var(--border-strong);
  color: var(--text-primary);
}

.page-btn.active {
  background: var(--gradient-brand);
  border-color: transparent;
  color: var(--bg-primary);
}

.page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.page-size-select {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.page-size-select label {
  font-size: var(--fs-sm);
  color: var(--text-tertiary);
}

.page-size-select select {
  padding: 8px 12px;
  background: var(--bg-primary);
  border: 1px solid var(--border-control);
  border-radius: var(--radius-md);
  font-size: var(--fs-sm);
  color: var(--text-primary);
  cursor: pointer;
}

/* ========== 9. 功能特性区域 - Bento 风格 ========== */
.features-section {
  padding: var(--space-16) 0;
  position: relative;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
  margin-top: var(--space-10);
}

.feature-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  transition: all var(--duration-base) var(--ease-out);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 0% 0%, rgba(16, 185, 129, 0.08) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--duration-base) var(--ease-out);
  pointer-events: none;
}

.feature-card:hover {
  border-color: var(--brand-500);
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.feature-card:hover::before { opacity: 1; }

.feature-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-subtle-bg);
  border: 1px solid var(--success-border);
  border-radius: var(--radius-xl);
  color: var(--brand-400);
  font-size: 1.75rem;
  margin-bottom: var(--space-5);
  transition: all var(--duration-base) var(--ease-out);
}

.feature-card:hover .feature-icon {
  transform: scale(1.1) rotate(8deg);
  background: var(--success-bg);
  box-shadow: var(--shadow-glow);
}

.feature-title {
  font-size: var(--fs-xl);
  font-weight: var(--fw-semibold);
  color: var(--text-primary);
  margin: 0 0 var(--space-3);
  letter-spacing: -0.01em;
}

.feature-description {
  font-size: var(--fs-base);
  color: var(--text-secondary);
  line-height: var(--lh-relaxed);
  position: relative;
  z-index: 1;
}

/* ========== Featured Providers 赞助位 ========== */
.featured-providers-section {
  padding: var(--space-12) 0;
  position: relative;
}

.featured-providers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--space-5);
  margin-top: var(--space-6);
}

.fp-title-star {
  color: var(--brand-400);
  margin-right: 6px;
}

.featured-provider-card {
  /* B7（2026-11-01）：赞助位用浅绿底色区分——付费位与自然内容在视觉上可辨识，
     配合诚实命名（区块标题「赞助商」），对齐 computeprices 的克制做法 */
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.07), rgba(16, 185, 129, 0.02)), var(--gradient-card);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  text-align: center;
  text-decoration: none;
  transition: all var(--duration-base) var(--ease-out);
  position: relative;
  overflow: hidden;
}

/* §6.10 可点卡片六态：hover 走 --border-strong + --shadow-md + 2px；active 回 shadow-sm/0 位移；
   focus-visible 统一焦点环；disabled .45。原 20px 品牌辉光违反 §6.11（glow 仅 Hero），已收敛为层级阴影；
   赞助卡的浅绿底色属 B7 既有裁定，保持不变。 */
.featured-provider-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}

.featured-provider-card:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

.featured-provider-card:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.featured-provider-card[aria-disabled="true"] {
  opacity: 0.45;
  pointer-events: none;
  cursor: not-allowed;
}

.featured-provider-card .fp-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto var(--space-4);
  background: rgba(16, 185, 129, 0.1);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-2xl);
  color: var(--brand-400);
}

.featured-provider-card .fp-name {
  font-size: var(--fs-base);
  font-weight: var(--fw-semibold);
  color: var(--text-primary);
  margin-bottom: var(--space-3);
}

.featured-provider-card .fp-stats {
  display: flex;
  justify-content: center;
  gap: var(--space-4);
  font-size: var(--fs-xs);
  color: var(--text-secondary);
}

.featured-provider-card .fp-badge {
  display: inline-block;
  margin-top: var(--space-3);
  padding: 2px 10px;
  background: rgba(16, 185, 129, 0.15);
  color: var(--brand-400);
  border-radius: 20px;
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ========== 10. CTA 底部区域 ========== */
.cta-section {
  padding: var(--space-16) 0;
}

.cta-card {
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-2xl);
  padding: var(--space-16);
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: all var(--duration-base) var(--ease-out);
}

.cta-card:hover {
  border-color: var(--brand-500);
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.cta-card::before {
  content: '';
  position: absolute;
  top: -80%;
  left: -20%;
  width: 140%;
  height: 260%;
  background: radial-gradient(circle at center, rgba(16, 185, 129, 0.12) 0%, transparent 40%);
  pointer-events: none;
  animation: cta-pulse 8s ease-in-out infinite;
}

@keyframes cta-pulse {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.1); opacity: 1; }
}

.cta-title {
  font-size: var(--fs-4xl);
  font-weight: var(--fw-bold);
  color: var(--text-primary);
  margin: 0 0 var(--space-4);
  letter-spacing: -0.03em;
  line-height: 1.15;
  position: relative;
  z-index: 1;
}

.cta-description {
  font-size: var(--fs-lg);
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto var(--space-8);
  line-height: var(--lh-relaxed);
  position: relative;
  z-index: 1;
}

.cta-actions {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

/* ========== 11. Footer - 现代化版本 ========== */
.site-footer, footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  padding: var(--space-12) 0 var(--space-6);
  margin-top: var(--space-16);
  position: relative;
}

.site-footer::before, footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--brand-500) 50%, transparent 100%);
  opacity: 0.3;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-10);
  margin-bottom: var(--space-10);
}

.footer-section {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-logo-section {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-brand-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding-right: var(--space-8);
  border-right: 1px solid rgba(42, 58, 38, 0.3);
}

.footer-brand-inner {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.footer-logo-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(16, 185, 129, 0.05));
  border: 1px solid rgba(16, 185, 129, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--duration-base);
}

.footer-logo-icon i {
  font-size: 1.2rem;
  color: var(--brand-400);
  transition: transform var(--duration-base);
}

.footer-brand:hover .footer-logo-icon {
  border-color: rgba(16, 185, 129, 0.5);
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.1);
}

.footer-brand:hover .footer-logo-icon i {
  transform: rotate(-15deg) scale(1.1);
}

.footer-brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer-logo-link {
  font-size: 1.3rem;
  font-weight: var(--fw-bold);
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -0.02em;
  line-height: 1.2;
  transition: color var(--duration-fast);
}

.footer-logo-link:hover {
  color: var(--brand-400);
}

.footer-brand .slogan {
  color: var(--text-tertiary);
  font-size: 0.8rem;
  line-height: 1.4;
  margin: 0;
}

.footer-brand .footer-description {
  color: var(--text-muted);
  font-size: 0.78rem;
  line-height: 1.5;
  max-width: 280px;
  margin: 0;
  padding-top: 2px;
}

.slogan {
  color: var(--text-tertiary);
  font-size: var(--fs-sm);
  line-height: var(--lh-relaxed);
}

.footer-description {
  color: var(--text-tertiary);
  font-size: var(--fs-sm);
  line-height: var(--lh-relaxed);
  max-width: 340px;
}

.footer-section-title, .footer-section h4 {
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--text-primary);
  margin: 0 0 var(--space-4);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.footer-links, .footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-links a, .footer-section a {
  font-size: var(--fs-sm);
  color: var(--text-tertiary);
  text-decoration: none;
  transition: all var(--duration-fast) var(--ease-out);
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
}

.footer-links a:hover, .footer-section a:hover {
  color: var(--brand-400);
  transform: translateX(4px);
}

.footer-bottom {
  padding-top: var(--space-6);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.footer-copyright {
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

.footer-social-links {
  display: flex;
  gap: var(--space-3);
}

.footer-social-link {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-primary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  color: var(--text-tertiary);
  transition: all var(--duration-fast) var(--ease-out);
}

.footer-social-link:hover {
  color: var(--brand-400);
  border-color: var(--brand-500);
  background: var(--success-bg);
}

/* ========== 13. 加载和状态样式 ========== */

/* 骨架屏 */
.skeleton {
  background: linear-gradient(90deg, var(--bg-secondary) 25%, var(--bg-hover) 50%, var(--bg-secondary) 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: var(--radius-md);
}

@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.skeleton-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
}

.skeleton-title {
  height: 24px;
  width: 60%;
  margin-bottom: var(--space-4);
}

.skeleton-line {
  height: 14px;
  margin-bottom: var(--space-2);
}

.skeleton-line.short { width: 40%; }
.skeleton-line.medium { width: 70%; }

/* Loading spinner */
.loading-container, .loading {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: var(--space-12) 0;
  min-height: 200px;
  gap: var(--space-3);
  color: var(--text-tertiary);
  font-size: var(--fs-sm);
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border-default);
  border-top-color: var(--brand-500);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* 空状态 */
.no-results {
  text-align: center;
  padding: var(--space-16) var(--space-6);
  color: var(--text-muted);
}

.empty-state {
  text-align: center;
  padding: var(--space-16) var(--space-6);
}

.empty-state-icon, .no-results i:first-child {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--space-5);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-secondary);
  border: 1px solid var(--border-default);
  border-radius: 50%;
  color: var(--text-muted);
  font-size: var(--fs-3xl);
}

.empty-state-title, .no-results h3 {
  font-size: var(--fs-xl);
  color: var(--text-primary);
  font-weight: var(--fw-semibold);
  margin: 0 0 var(--space-2);
}

.empty-state-description, .no-results p {
  color: var(--text-tertiary);
  font-size: var(--fs-base);
}

/* 错误状态 */
.error-state, .error-message {
  background: var(--danger-bg);
  border: 1px solid var(--danger-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  text-align: center;
  color: var(--text-primary);
}

.error-state-icon {
  color: var(--danger);
  font-size: var(--fs-3xl);
  margin-bottom: var(--space-3);
}

.error-state-title, .error-message {
  color: var(--danger);
  font-weight: var(--fw-semibold);
  margin: 0 0 var(--space-2);
}

.error-state-message {
  color: var(--text-secondary);
  font-size: var(--fs-sm);
}

/* 更新提示 */
.update-notice {
  background: var(--success-bg);
  border: 1px solid var(--success-border);
  border-radius: var(--radius-lg);
  padding: 12px 16px;
  margin-bottom: 16px;
  /* 2026-12-03 axe：--brand-300 浅色压浅底不达标，走 --brand-text 回退链。 */
  color: var(--brand-text, var(--brand-300));
  font-size: var(--fs-sm);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.update-time {
  color: var(--text-tertiary);
  font-size: var(--fs-xs);
}

/* ========== 14. 滚动动画 ========== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ========== 15. 滚动条样式 ========== */
::-webkit-scrollbar { width: 10px; height: 10px; }

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--border-default);
  border-radius: var(--radius-full);
  border: 2px solid var(--bg-primary);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--border-strong);
}

/* Selection */
::selection {
  background: var(--brand-500);
  color: var(--bg-primary);
}

/* Focus visibility */
:focus-visible {
  outline: 2px solid var(--brand-500);
  outline-offset: 2px;
  border-radius: var(--radius-md);
}

/* ========== 16. 响应式设计 - 桌面端优先 ========== */

/* 桌面端断点已收敛：原 >=1280 容器扩边 与 <1280 标题缩放 并入下方 <1024 块（§5.1 阶段②） */

/* 平板/小桌面 < 1024px */
@media (max-width: 1024px) {
  /* @bp L 小桌面 · ≤1024 */
  :root {
    --fs-5xl: 3rem;
    --fs-4xl: 2.25rem;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .recommendations-grid,
  .recommendation-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-content {
    grid-template-columns: 1fr 1fr;
  }
}

/* 平板横屏 < 900px */
/* 桌面端隐藏移动端抽屉与遮罩（滑出布局仅存在于下方 <=900px 媒体查询内） */
.mobile-nav-drawer,
.mobile-nav-backdrop {
  display: none;
}

@media (max-width: 900px) {

  /* @bp M 导航切换 · ≤900 */
  /* 提升优先级以覆盖 header .nav-links { display:flex }（2636 行）*/
  header .nav-links {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  /* 移动端导航抽屉 */
  .mobile-nav-open {
    overflow: hidden;
  }

  .mobile-nav-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--bg-secondary);
    border-left: 1px solid var(--border-default);
    padding: var(--space-6);
    transition: right var(--duration-base) var(--ease-out);
    z-index: 200;
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
  }

  .mobile-nav-drawer.open { right: 0; }

  .mobile-nav-backdrop {
    position: fixed;
    inset: 0;
    display: block;
    background: rgba(0, 0, 0, 0.5);
    z-index: 150;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--duration-base) var(--ease-out);
  }

  .mobile-nav-backdrop.open {
    opacity: 1;
    pointer-events: auto;
  }

  .mobile-nav-close {
    align-self: flex-end;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
  }

  .mobile-nav-link {
    padding: var(--space-3) var(--space-4);
    font-size: var(--fs-base);
    font-weight: var(--fw-medium);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: var(--radius-md);
    background: var(--bg-tertiary);
  }
}

/* 移动端 < 768px */
@media (max-width: 768px) {
  /* @bp S 移动 · ≤768 */
  :root {
    --fs-5xl: 2.25rem;
    --fs-4xl: 1.875rem;
    --fs-3xl: 1.5rem;
    --fs-2xl: 1.375rem;
    --fs-xl: 1.25rem;
  }

  .container { padding: 0 var(--space-4); }

  .hero {
    padding: var(--space-12) 0 var(--space-8);
  }

  .hero-stats {
    gap: var(--space-6);
  }

  .stats-section,
  .trend-section,
  .price-trend-section,
  .recommendations-section,
  .recommendations,
  .features-section,
  .cta-section,
  .market-overview {
    padding: var(--space-12) 0;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-3);
  }

  .stat-card { padding: var(--space-4); }
  .stat-value { font-size: 1.75rem; }

  .recommendations-grid,
  .recommendation-grid {
    grid-template-columns: 1fr;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .feature-card { padding: var(--space-6); }

  .trend-card { padding: var(--space-6); }
  .trend-summary { gap: var(--space-6); }

  .cta-card { padding: var(--space-8) var(--space-6); }

  .footer-content {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .table-wrapper { overflow-x: auto; }
  .gpu-table { min-width: 700px; }
  .gpu-table th,
  .gpu-table td { padding: 0 var(--space-3); font-size: var(--fs-xs); }

  .table-pagination {
    flex-direction: column;
    align-items: stretch;
  }

  .pagination-controls { justify-content: center; }

  .section-tabs { overflow-x: auto; scrollbar-width: none; }
  .section-tabs::-webkit-scrollbar { display: none; }

  .table-filters { width: 100%; }
  .filter-select { flex: 1; min-width: 0; }

  /* CLS 防抖：小屏缩小 padding/字号后同步调整 min-width（fs-xs 下英文最长 label ≈150px） */
  .hero-stat-item { padding: var(--space-2) var(--space-3); font-size: var(--fs-xs); min-width: 150px; }
}

/* 小手机 < 480px */
@media (max-width: 480px) {
  /* @bp XS 窄移动 · ≤480 */
  .stats-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn-primary,
  .hero-actions .btn-outline { width: 100%; justify-content: center; }
  .cta-actions { flex-direction: column; width: 100%; }
  .cta-actions .btn-primary,
  .cta-actions .btn-outline { width: 100%; justify-content: center; }
}

/* ========== 17. 减少动效（用户偏好） ========== */
@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;
  }

  .skeleton { animation: none; background: var(--bg-hover); }
  /* §6.8 骨架降级为静态底色，不因降级丢失状态可见性 */
  .skeleton-block { animation: none; background: var(--bg-tertiary); }
  /* §6.1 / §6.10 按钮 spinner 降级为静态环、Toast 计时条保持满格可见
     （规范要求的「处理中…」静态文案涉及 i18n，留后续片，不在此写死中文） */
  .btn-primary[aria-busy="true"]::after,
  .btn-outline[aria-busy="true"]::after,
  .btn-danger[aria-busy="true"]::after,
  .btn-secondary[aria-busy="true"]::after,
  .btn-ghost[aria-busy="true"]::after,
  .submit-btn[aria-busy="true"]::after,
  .plan-btn[aria-busy="true"]::after { animation: none; }
  .sub-toast[aria-busy="true"]::after { animation: none; transform: scaleX(1); }
}

/* ========== 18. 旧样式兼容性（保留现有模板可工作） ========== */

/* 旧模板的 header/nav/logo 兼容 —— 强化玻璃态 */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 15, 12, 0.72);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid rgba(42, 58, 38, 0.6);
  box-shadow: 0 1px 24px rgba(0, 0, 0, 0.15);
  transition: all var(--duration-base) var(--ease-out);
}

/* 浅色主题：header 改为浅色半透明，保证深色导航文字可读 */
body.theme-light header {
  background: rgba(248, 250, 249, 0.82);
  border-bottom-color: var(--border-subtle);
  box-shadow: 0 1px 24px rgba(0, 0, 0, 0.06);
}

/* 2026-12-04 评审十二批：浅色主题下四处硬编码深色背景覆盖 */
body.theme-light .price-trend-section .container {
  background: rgba(255, 255, 255, 0.65);
  border-color: var(--border-subtle);
}
body.theme-light .consent-box {
  background: rgba(255, 255, 255, 0.6);
  border-color: var(--border-subtle);
}
body.theme-light .banner-carousel {
  background: rgba(255, 255, 255, 0.75);
  border-color: var(--border-subtle);
}
body.theme-light .trend-tooltip {
  background: rgba(255, 255, 255, 0.95);
}
body.theme-light .carousel-dot {
  background: rgba(0, 0, 0, 0.3);
}

header nav {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 16px var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  /* 导航精简的查询容器：按 nav 可用宽度（而非视口）决定是否隐藏次级入口，见下方 @container */
  container-type: inline-size;
}

/* 汉堡菜单按钮：桌面隐藏，≤900px 由媒体查询切换为 flex */
.mobile-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  background: transparent;
  border: 1px solid var(--border-control);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 1.1rem;
  cursor: pointer;
}

.mobile-menu-btn:hover {
  color: var(--brand-500);
  border-color: var(--brand-500);
}

/* 2026-11-13 用户截图反馈：访客态 header 比登录态多 Login/Register 两枚按钮，
   桌面端 nav 空间吃紧时 .logo 作为 flex item 被压缩（1280 实测 102px < 内容 122px）；
   内层 <a> 被块化为 display:block 且 white-space:normal，于是「图标 + TensorFare」
   放不下就折行，变成图标在上、字标在下。根因修复：字标整体不收缩、不折行，
   图标与文字显式横向成组（与工作台 .app-logo 既有实现对齐），颜色维持品牌绿字标不动。 */
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  white-space: nowrap;
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
  color: var(--text-primary);
  text-decoration: none;
}

.logo a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.logo i {
  color: var(--brand-500);
}

header .nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex: 1;
  justify-content: center;
}

header .nav-links a {
  padding: 8px 16px;
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: var(--radius-md);
  transition: all var(--duration-fast) var(--ease-out);
  /* 英文标签较长（Price Comparison 等），禁止折行以免导航栏变两行高 */
  white-space: nowrap;
}

header .nav-links a:hover {
  color: var(--text-primary);
  background: var(--bg-hover);
}

header .nav-links a.active {
  color: var(--brand-400);
  background: var(--success-bg);
}

/* 2026-11-13 导航精简（用户裁定「该档精简链接」）
   完整桌面导航单行需要 ≥1244px 视口，1025–1239 因此长期横向溢出（1025 实测 229px、1200 为 54px）。
   断点白名单 {1024,900,768,480} 不含 1240，故改用容器查询按 nav 可用宽度精简次级入口：
   隐藏「算力对接 / 价格对比」，并在「更多」菜单补回同入口（仅精简档显示，宽屏不重复）。
   nav 内容宽 ≤1140 等价于视口约 ≤1246；不支持 @container 的旧浏览器退回现状（链接仍可见），无功能缺失。 */
header .nav-links .nav-more-compact { display: none; }

@container (max-width: 1140px) {
  header .nav-links > a[data-nav-optional] { display: none; }
  header .nav-links .nav-more-compact { display: block; }
}

header .nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.language-selector {
  position: relative;
  display: flex;
  align-items: center;
}

/* 触发按钮：紧凑单按钮（ globe + 当前语言 + chevron ），适配任意语言数量 */
.lang-trigger {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  font-size: var(--fs-xs);
  background: var(--bg-secondary);
  border: 1px solid var(--border-control);
  border-radius: var(--radius-md);
  color: var(--text-tertiary);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
  font-family: inherit;
  white-space: nowrap;
  flex-shrink: 0;
}

.lang-trigger:hover {
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.lang-trigger[aria-expanded="true"] {
  border-color: var(--border-strong);
}

.lang-chevron {
  font-size: 9px;
  transition: transform var(--duration-fast) var(--ease-out);
}

.lang-trigger[aria-expanded="true"] .lang-chevron {
  transform: rotate(180deg);
}

/* 下拉菜单 */
.lang-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 120px;
  padding: 4px;
  background: var(--bg-elevated, var(--bg-secondary));
  border: 1px solid var(--border-control);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md, 0 4px 12px rgba(0,0,0,0.12));
  z-index: 100;
}

/* hidden 属性压过 display:flex（[hidden] 特异性 0,2,0 > .lang-menu 0,1,0） */
.lang-menu[hidden] {
  display: none;
}

.lang-menu button {
  padding: 7px 12px;
  font-size: var(--fs-xs);
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
  font-family: inherit;
  text-align: left;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
}

.lang-menu button:hover {
  background: var(--bg-hover, rgba(255,255,255,0.06));
  color: var(--text-primary);
}

.lang-menu button.active {
  color: var(--bg-primary);
  background: var(--accent-primary, #10b981);
  font-weight: 600;
}

/* 首页 Hero 区域增强 */
.hero {
  position: relative;
  padding: 60px 0 50px;
  text-align: center;
  overflow: hidden;
}

.hero h1 {
  font-size: var(--fs-hero);
  font-weight: var(--fw-bold);
  color: var(--text-primary);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
  /* 中文长标题在 390px 下折行时尾行易只剩 3 个字（如「接平台」），强制均分 */
  text-wrap: balance;
}

.hero h1 i {
  color: var(--brand-500);
}

.hero p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto 30px;
  line-height: 1.7;
}

.hero .search-box {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 8px 8px 20px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  transition: all var(--duration-base) var(--ease-out);
}

.hero .search-box:focus-within {
  border-color: var(--brand-500);
  box-shadow: 0 0 0 4px var(--success-bg);
}

.hero .search-box i {
  color: var(--text-tertiary);
}

.hero .search-input {
  flex: 1;
  padding: 10px 8px;
  background: transparent;
  border: none;
  font-size: var(--fs-base);
  color: var(--text-primary);
  font-family: inherit;
  outline: none;
}

.hero .search-btn {
  padding: 10px 20px;
  background: var(--gradient-brand);
  color: var(--bg-primary);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  border-radius: var(--radius-lg);
  border: none;
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
}

.hero .search-btn:hover { filter: brightness(1.1); }

.hero-cta-row {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 28px;
  flex-wrap: wrap;
}

.hero-stats-section {
  padding: 0 0 40px;
  border-bottom: 1px solid var(--border-subtle);
}

.hero-stats-section .hero-stats {
  margin-top: 0;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: var(--space-6);
  margin-top: 40px;
  flex-wrap: wrap;
}

.hero-stat-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  transition: all var(--duration-base) var(--ease-out);
  /* CLS 防抖：min-width 覆盖中英文两种状态的最长内容（英文 "Cloud Providers" ≈198px），
     i18n 文本替换与统计数字填充前后 item 宽度不变，flex-wrap 布局不重排 */
  min-width: 200px;
  box-sizing: border-box;
}

.hero-stat-item:hover {
  border-color: var(--brand-500);
  background: var(--success-bg);
}

.hero-stat-item i { color: var(--brand-400); }

/* 市场概览卡片 */
.market-overview {
  /* C5：顶部 60→40px，配合 hero 底部收紧，消除区块间纯渐变空带 */
  padding: 40px 0 60px;
}

.market-overview h2,
.price-trend-section h2,
.recommendations h2 {
  font-size: var(--fs-3xl);
  font-weight: var(--fw-bold);
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 30px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.stat-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  padding: 24px;
  text-align: center;
  transition: all var(--duration-base) var(--ease-out);
  position: relative;
  overflow: hidden;
}

.stat-card:hover {
  border-color: var(--brand-500);
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.stat-card .stat-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--success-bg);
  border-radius: var(--radius-lg);
  color: var(--brand-400);
  font-size: var(--fs-xl);
}

.stat-card.stat-min .stat-icon { background: rgba(16, 185, 129, 0.18); color: var(--brand-600); }
.stat-card.stat-avg .stat-icon { background: rgba(16, 185, 129, 0.12); color: var(--brand-400); }
.stat-card.stat-max .stat-icon { background: rgba(16, 185, 129, 0.08); color: var(--brand-300); }
.stat-card.stat-gpu .stat-icon { background: rgba(16, 185, 129, 0.15); color: var(--brand-500); }
.stat-card.stat-provider .stat-icon { background: rgba(16, 185, 129, 0.12); color: var(--brand-400); }

.stat-card .stat-label {
  font-size: var(--fs-sm);
  color: var(--text-tertiary);
  margin-bottom: 8px;
}

.stat-card .stat-value {
  font-size: var(--fs-3xl);
  font-weight: var(--fw-bold);
  color: var(--text-primary);
  line-height: 1.1;
}

.stat-card .stat-unit {
  font-size: var(--fs-sm);
  color: var(--text-tertiary);
  margin-top: 4px;
}

/* 价格趋势区域 —— 玻璃态卡片容器 */
.price-trend-section {
  padding: 60px 0;
  background: transparent;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
}

.price-trend-section .container {
  background: rgba(26, 36, 22, 0.65);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  border: 1px solid rgba(42, 58, 38, 0.6);
  border-radius: var(--radius-2xl);
  padding: 48px 40px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(16, 185, 129, 0.05);
}

.price-trend-title {
  font-size: var(--fs-3xl);
  font-weight: var(--fw-bold);
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.price-trend-subtitle {
  font-size: 1.1rem;
  color: var(--text-tertiary);
  text-align: center;
  margin-bottom: 32px;
}

#price-trend-chart {
  width: 100%;
  max-width: 1000px;
  height: 350px;
  margin: 0 auto;
  display: block;
}

/* 推荐区域 */
.recommendations {
  padding: 60px 0;
}

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

.section-header > div:first-child h2 {
  margin: 0 0 8px;
  text-align: left;
  font-size: 1.75rem;
}

.section-header > div:first-child p {
  margin: 0;
  color: var(--text-tertiary);
  font-size: var(--fs-sm);
}

.view-all {
  color: var(--brand-400);
  font-weight: var(--fw-medium);
  font-size: var(--fs-sm);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
}

.view-all:hover { color: var(--brand-300); }

.recommendation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

/* 通用 Card/Table 容器 */
.card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  padding: 24px;
  margin-bottom: 24px;
}

.card-title {
  font-size: var(--fs-xl);
  font-weight: var(--fw-semibold);
  color: var(--text-primary);
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

/* 过滤和排序区 */
.filter-section,
.sort-section {
  background: var(--bg-secondary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  padding: 20px 24px;
  margin-bottom: 20px;
}

.filter-title,
.sort-title {
  font-size: var(--fs-base);
  font-weight: var(--fw-semibold);
  color: var(--text-primary);
  margin-bottom: 12px;
}

.filter-controls,
.sort-controls {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.filter-group,
.sort-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.filter-group label,
.sort-group label {
  font-size: var(--fs-xs);
  color: var(--text-tertiary);
  font-weight: var(--fw-medium);
}

.filter-group select,
.filter-group input[type="number"],
.sort-group select {
  padding: 10px 14px;
  background: var(--bg-primary);
  border: 1px solid var(--border-control);
  border-radius: var(--radius-md);
  font-size: var(--fs-sm);
  color: var(--text-primary);
  font-family: inherit;
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
}

.filter-group select:hover,
.sort-group select:hover {
  border-color: var(--border-strong);
}

.filter-group input:focus,
.filter-group select:focus,
.sort-group select:focus,
.filter-group input:focus-visible,
.filter-group select:focus-visible,
.sort-group select:focus-visible {
  outline: none;
  border-color: var(--brand-500);
  box-shadow: var(--focus-ring);
}

.filter-group input[aria-invalid="true"],
.filter-group select[aria-invalid="true"],
.sort-group select[aria-invalid="true"] {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px var(--danger-bg);
}

.filter-group input:disabled,
.filter-group select:disabled,
.sort-group select:disabled,
.filter-group input[aria-disabled="true"],
.filter-group select[aria-disabled="true"],
.sort-group select[aria-disabled="true"] {
  background: var(--bg-tertiary);
  opacity: 0.45;
  cursor: not-allowed;
}

.filter-group input[aria-busy="true"],
.filter-group select[aria-busy="true"],
.sort-group select[aria-busy="true"] { pointer-events: none; }

.apply-filter-btn {
  padding: 10px 20px;
  background: var(--gradient-brand);
  color: var(--bg-primary);
  font-weight: var(--fw-semibold);
  border: none;
  border-radius: var(--radius-md);
  font-size: var(--fs-sm);
  cursor: pointer;
  align-self: flex-end;
  transition: all var(--duration-base) var(--ease-out);
}

.apply-filter-btn:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

/* 表格容器 */
.table-container {
  overflow-x: auto;
  border-radius: var(--radius-xl);
}

.table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-secondary);
}

/* ========== §6.12 sticky 表头分层 ==========
   不变量：sticky 的最近滚动祖先必须是视口；.table-region 不设 overflow；
   .table-head 在 .table-scroll 外部；top/高度/z-index 三值锁定。 */
.table-region {
  position: relative;
}
.table-region__fade {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 24px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--bg-secondary) 24px);
  z-index: calc(var(--z-sticky) - 1);
}
.table-head {
  position: sticky;
  top: 72px;
  z-index: var(--z-sticky);
  height: 40px;
  overflow: hidden;
  background: var(--bg-tertiary);
}
.table-head .table {
  width: 100%;
  border-collapse: collapse;
}
.table-head th {
  height: 40px;
  border-bottom: 1px solid var(--border-default);
}
.table-scroll {
  overflow-x: auto;
  scrollbar-color: var(--border-strong) transparent;
}

/* ============================================================
   供应商入驻页面 /for-providers
   ============================================================ */
.provider-hero {
  text-align: center;
  padding: 80px 0 60px;
  background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.provider-hero h1 {
  font-size: var(--fs-hero);
  font-weight: 700;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--brand-300), var(--brand-600));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.provider-hero .hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 32px;
  line-height: 1.6;
}

.provider-hero .hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 48px;
}

.provider-hero .hero-cta .btn-primary {
  padding: 14px 32px;
  background: var(--brand-500);
  color: var(--on-brand);
  border-radius: var(--radius-md);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}

.provider-hero .hero-cta .btn-primary:hover {
  background: var(--brand-600);
  transform: translateY(-2px);
}

.provider-hero .hero-cta .btn-secondary {
  padding: 14px 32px;
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-control);
  border-radius: var(--radius-md);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}

.provider-hero .hero-cta .btn-secondary:hover {
  border-color: var(--brand-400);
  color: var(--brand-400);
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.hero-stats .stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 32px;
  text-align: center;
  min-width: 140px;
  transition: transform 0.2s;
}

.hero-stats .stat-card:hover {
  transform: translateY(-4px);
}

.hero-stats .stat-number {
  display: block;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--brand-400);
  margin-bottom: 4px;
}

.hero-stats .stat-label {
  font-size: 0.85rem;
  color: var(--text-tertiary);
}

/* 平台数据 */
.platform-data {
  padding: 60px 0;
}

.platform-data h2,
.plans h2,
.apply-section h2 {
  text-align: center;
  font-size: 1.75rem;
  margin-bottom: 40px;
  color: var(--text-primary);
}

.data-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.data-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  transition: transform 0.2s;
}

.data-item:hover {
  transform: translateY(-4px);
}

.data-item i {
  font-size: var(--fs-3xl);
  color: var(--brand-400);
  margin-bottom: 16px;
}

.data-item h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.data-item p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* 套餐对比 */
.plans {
  padding: 60px 0;
  background: var(--bg-secondary);
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 960px;
  margin: 0 auto;
}

.plan-card {
  /* 2026-12-03 axe：--bg-card 经 :root 间接层在浅色主题解析为深色（Chrome 定义处替换 var），直接用 --bg-secondary 两主题均正确。 */
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px 24px;
  position: relative;
  transition: transform 0.2s, border-color 0.2s;
}

.plan-card:hover {
  transform: translateY(-4px);
}

.plan-card.recommended {
  border-color: var(--brand-400);
  border-width: 2px;
}

.plan-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--brand-500);
  color: var(--on-brand);
  padding: 4px 20px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.plan-header {
  text-align: center;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.plan-header h3 {
  font-size: var(--fs-xl);
  margin-bottom: 8px;
  color: var(--text-primary);
}

.plan-price {
  font-size: var(--fs-3xl);
  font-weight: 700;
  /* 2026-12-03 axe：品牌大字浅色主题不达标，走 --brand-text 回退链。 */
  color: var(--brand-text, var(--brand-400));
}

.plan-price span {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-tertiary);
}

.plan-desc {
  font-size: 0.85rem;
  color: var(--text-tertiary);
  margin-top: 4px;
}

.plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}

.plan-features li {
  padding: 8px 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.plan-features li i.fa-check {
  color: var(--brand-400);
  font-size: 0.8rem;
}

.plan-features li i.fa-times {
  color: var(--text-tertiary);
  font-size: 0.8rem;
}

.plan-features li.disabled {
  color: var(--text-tertiary);
}

.plan-btn {
  display: block;
  text-align: center;
  position: relative; /* §6.10 loading：::after spinner 的定位基准 */
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  background: var(--brand-500);
  /* 品牌绿上白字仅 2.5:1，改深色前景 -> 约 8:1 */
  color: var(--on-brand);
  transition: all 0.2s;
}

/* §12 P0：免费注册按钮是 <a class="plan-btn">，同样受全局 a:hover 覆盖，须显式锁前景 */
.plan-btn:hover {
  background: var(--brand-hover);
  color: var(--on-brand);
}

/* §6.10 六态矩阵：primary 按钮 active 回深 + 1px 下压；focus-visible 统一焦点环；disabled .45 */
.plan-btn:active {
  background: var(--brand-active);
  color: var(--on-brand);
  transform: translateY(1px);
}

.plan-btn:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  color: var(--on-brand);
}

.plan-btn[disabled],
.plan-btn[aria-disabled="true"] {
  opacity: 0.45;
  pointer-events: none;
  cursor: not-allowed;
}

.plan-card.recommended .plan-btn {
  background: var(--brand-500);
}

/* Business 卡片次级入口「联系获取试用」（<a class="plan-btn plan-btn--ghost">，20261125a）。
   对齐规范 §6.1 ghost：hover = bg-hover 实底 + text-primary，不用品牌绿描边（强调色收敛）；
   <a> 按钮交互态显式锁前景色（§教训②）；双主题靠变量，不加 !important。 */
.plan-btn--ghost {
  margin-top: var(--space-3);
  background: transparent;
  border: 1px solid var(--border-control);
  color: var(--text-secondary);
}
.plan-btn--ghost:hover {
  background: var(--bg-hover);
  border-color: var(--border-strong);
  color: var(--text-primary);
}
.plan-btn--ghost:active {
  background: var(--bg-hover);
  color: var(--text-primary);
  transform: translateY(1px);
}
.plan-btn--ghost:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  color: var(--text-primary);
}

/* .sponsor-btn 曾是 plan-btn 上的渐变装饰（135deg brand-300→brand-600 + !important 压层）。
   §2.7 禁按钮文字底渐变 + §12 P0 清零两处 !important 后整体删除；
   .plan-btn 基础样式（实底 --brand-500 + var(--on-brand) 深色前景 ≈8:1）已覆盖该类，
   markup 中 plan-btn sponsor-btn 组合类无需改动。 */

/* 入驻表单 */
.apply-section {
  padding: 60px 0;
}

.apply-subtitle {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 32px;
  margin-top: -24px;
}

.provider-form {
  max-width: 640px;
  margin: 0 auto;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ===== §6.5 / §6.10 表单控件六态统一能力 =====
   真源见 docs/界面设计规范.md §6.5；.field 是后续组件迁移目标。
   焦点环用 --focus-ring（外双环）：表单控件位于正常流，不受 .table-scroll 的 overflow-x 裁剪；
   表格数据行改用 inset 内环，两者分工见下方「表格数据行六态」区块。 */
.field {
  height: 36px;
  padding: 0 var(--space-3);
  background: var(--bg-elevated);
  border: 1px solid var(--border-control);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: var(--fs-sm);
  transition: border-color var(--duration-fast) var(--ease-out),
              box-shadow var(--duration-fast) var(--ease-out);
}
.field::placeholder { color: var(--text-muted); }
.field:hover { border-color: var(--border-strong); }
.field:focus,
.field:focus-visible {
  outline: none;
  border-color: var(--brand-500);
  box-shadow: var(--focus-ring);
}
/* active 等价 focus：只改边框，MUST NOT 加位移 / 缩放（§6.5） */
.field:active { border-color: var(--brand-500); }
.field[aria-invalid="true"] { border-color: var(--danger); box-shadow: 0 0 0 3px var(--danger-bg); }
.field:disabled,
.field[aria-disabled="true"] {
  background: var(--bg-tertiary);
  opacity: 0.45;
  cursor: not-allowed;
}
.field[aria-busy="true"] { pointer-events: none; }
.field-error-text { color: var(--danger-text); font-size: var(--fs-xs); margin-top: var(--space-1); }

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary);
}

.form-group .required {
  color: #ef4444;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-control);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.form-group input:hover,
.form-group textarea:hover,
.form-group select:hover { border-color: var(--border-strong); }

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus,
.form-group input:focus-visible,
.form-group textarea:focus-visible,
.form-group select:focus-visible {
  outline: none;
  border-color: var(--brand-500);
  box-shadow: var(--focus-ring);
}

.form-group input[aria-invalid="true"],
.form-group textarea[aria-invalid="true"],
.form-group select[aria-invalid="true"] {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px var(--danger-bg);
}

.form-group input:disabled,
.form-group textarea:disabled,
.form-group select:disabled,
.form-group input[aria-disabled="true"],
.form-group textarea[aria-disabled="true"],
.form-group select[aria-disabled="true"] {
  background: var(--bg-tertiary);
  opacity: 0.45;
  cursor: not-allowed;
}

.form-group input[aria-busy="true"],
.form-group textarea[aria-busy="true"],
.form-group select[aria-busy="true"] { pointer-events: none; }

/* 修复：深色主题下原生下拉弹层选项不可读（2026-10-24，/for-providers 选择套餐）
   现象：Windows Chrome 的 <select> 弹层默认白底，但 option 文字会继承
   select 的浅色（--text-primary: #f0f4f2），浅字落在白底上看起来像被禁用，
   用户以为「选择套餐里只有 Basic 可选」，实际 Pro/Sponsor 都能点。
   方案：给 option 显式配对背景色+文字色，走主题变量，深/浅色模式自动适配；
   Safari 不支持 option 着色，但其弹层本就跟随系统渲染，无此问题。
   全局作用于本站所有 select（套餐表单、计算器、筛选器等），同一处病根一次修完。 */
select option {
  background-color: var(--bg-secondary);
  color: var(--text-primary);
}

.submit-btn {
  width: 100%;
  padding: 14px;
  background: var(--brand-500);
  color: var(--on-brand);
  border: 1px solid var(--brand-500);
  border-radius: var(--radius-md);
  font-size: var(--fs-base);
  font-weight: 600;
  cursor: pointer;
  position: relative;
  transition: background-color var(--duration-fast) var(--ease-out),
              border-color var(--duration-fast) var(--ease-out),
              box-shadow var(--duration-fast) var(--ease-out),
              transform var(--duration-fast) var(--ease-out);
}
/* §6.1：主 CTA 六态与 .btn-primary 对齐（templates/alerts.html 内联版本由既有 C6 守卫锁定，不受影响） */
.submit-btn:hover { background: var(--brand-hover); border-color: var(--brand-hover); color: var(--on-brand); }
.submit-btn:active { background: var(--brand-active); color: var(--on-brand); transform: translateY(1px); }
.submit-btn:focus-visible { outline: none; box-shadow: var(--focus-ring); color: var(--on-brand); }
.submit-btn:disabled,
.submit-btn[aria-disabled="true"] { opacity: 0.45; pointer-events: none; cursor: not-allowed; }

.form-message {
  max-width: 640px;
  margin: 16px auto 0;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  text-align: center;
  font-size: 0.9rem;
}

.form-message.success {
  background: var(--success-bg);
  color: var(--brand-400);
  border: 1px solid var(--brand-400);
}

.form-message.error {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

@media (max-width: 768px) {

  /* @bp S 移动 · ≤768 */
  .form-row {
    grid-template-columns: 1fr;
  }
  .provider-hero h1 {
    font-size: var(--fs-hero-s);
  }
  .hero-stats {
    gap: 12px;
  }
  .hero-stats .stat-card {
    min-width: 120px;
    padding: 16px 20px;
  }
}

/* ============================================================
   首页信任背书
   ============================================================ */
.trust-section {
  padding: 60px 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
}

.trust-section h2 {
  text-align: center;
  font-size: 1.75rem;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.trust-subtitle {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 40px;
  font-size: var(--fs-base);
}

.trust-grid {
  display: flex;
  align-items: stretch;
  gap: 0;
}

.trust-item {
  flex: 1;
  text-align: center;
  padding: 24px 20px;
  border-right: 1px solid var(--border-subtle);
  transition: transform 0.2s var(--ease-out);
}

.trust-item:last-child {
  border-right: none;
}

.trust-item:hover {
  transform: translateY(-4px);
}

.trust-item i {
  font-size: 1.75rem;
  color: var(--brand-400);
  margin-bottom: 12px;
}

.trust-item h3 {
  font-size: var(--fs-base);
  margin-bottom: 6px;
  color: var(--text-primary);
}

.trust-item p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

@media (max-width: 768px) {

  /* @bp S 移动 · ≤768 */
  .trust-grid {
    flex-direction: column;
  }
  .trust-item {
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
  }
  .trust-item:last-child {
    border-bottom: none;
  }
}

/* Hero stats count display */
.hero-stat-count {
  display: block;
  font-size: var(--fs-2xl);
  font-weight: 700;
  /* 2026-12-03 axe 实测：浅色主题 --brand-400 压白底不达标，品牌大字走 --brand-text（深色回退 --brand-500）。 */
  color: var(--brand-text, var(--brand-500));
  margin-bottom: 2px;
  /* CLS 防抖：占位符 `--` 与真实数字（200+/500+）等宽占位，统计 API 填充后不推挤兄弟项 */
  font-variant-numeric: tabular-nums;
  min-width: 5ch;
}

.hero-stat-item {
  text-align: center;
  padding: 12px 20px;
}

.hero-stat-item i {
  font-size: 1.2rem;
  margin-bottom: 6px;
  color: var(--text-tertiary);
}

.hero-stat-item span:last-child {
  font-size: 0.8rem;
  color: var(--text-tertiary);
}

/* ============================================================
   定价页面 /pricing
   ============================================================ */
.pricing-hero {
  text-align: center;
  padding: 80px 0 40px;
}

.pricing-hero h1 {
  font-size: var(--fs-hero);
  font-weight: 700;
  margin-bottom: 12px;
  background: linear-gradient(135deg, var(--brand-300), var(--brand-600));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.pricing-hero .hero-subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.pricing-plans {
  padding: 40px 0 80px;
}

.pricing-plans .plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  max-width: 1020px;
  margin: 0 auto;
}

.pricing-plans .plan-card {
  /* 2026-12-03 axe：--bg-card 经 :root 间接层在浅色主题解析为深色（Chrome 定义处替换 var），直接用 --bg-secondary 两主题均正确。 */
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px 28px;
  position: relative;
  transition: transform 0.2s, border-color 0.2s;
}

.pricing-plans .plan-card:hover {
  transform: translateY(-6px);
}

.pricing-plans .plan-card.recommended {
  border-color: var(--brand-400);
  border-width: 2px;
}

.pricing-plans .plan-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--brand-500);
  color: var(--on-brand);
  padding: 6px 24px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

.pricing-plans .plan-header {
  text-align: center;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.pricing-plans .plan-header h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.pricing-plans .plan-price {
  font-size: var(--fs-4xl);
  font-weight: 700;
  /* axe 修复同上 */
  color: var(--brand-text, var(--brand-400));
}

.pricing-plans .plan-price span {
  font-size: var(--fs-base);
  font-weight: 400;
  color: var(--text-tertiary);
}

.pricing-plans .plan-desc {
  font-size: 0.85rem;
  color: var(--text-tertiary);
  margin-top: 6px;
}

.pricing-plans .plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
}

.pricing-plans .plan-features li {
  padding: 10px 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.pricing-plans .plan-features li i.fa-check {
  color: var(--brand-400);
  font-size: 0.85rem;
  flex-shrink: 0;
}

.pricing-plans .plan-features li i.fa-times {
  color: var(--text-tertiary);
  font-size: 0.85rem;
  flex-shrink: 0;
}

.pricing-plans .plan-features li.disabled {
  color: var(--text-tertiary);
}

.pricing-plans .plan-btn {
  display: block;
  text-align: center;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: var(--fs-base);
  text-decoration: none;
  background: var(--brand-500);
  /* 同上：深色前景保证对比度 */
  color: var(--on-brand);
  border: none;
  width: 100%;
  cursor: pointer;
  transition: all 0.2s;
}

.pricing-plans .plan-btn:hover {
  background: var(--brand-hover);
  color: var(--on-brand);
}

/* .pricing-plans .sponsor-btn 渐变副本已随 §12 P0 删除（同 .sponsor-btn 注释） */

/* ============================================================
   定价页隐私同意勾选框
   ============================================================ */
.pricing-consent {
  padding: 0 0 40px;
}

.pricing-consent .container {
  max-width: 800px;
}

.consent-box {
  background: rgba(26, 36, 22, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(42, 58, 38, 0.5);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  text-align: left;
}

.consent-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  user-select: none;
}

.consent-checkbox input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.consent-checkbox .checkmark {
  position: relative;
  width: 20px;
  height: 20px;
  min-width: 20px;
  min-height: 20px;
  border: 2px solid rgba(42, 58, 38, 0.8);
  border-radius: 4px;
  margin-top: 2px;
  transition: all var(--duration-base);
  background: rgba(15, 23, 10, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}

.consent-checkbox input:checked ~ .checkmark {
  background: var(--brand-500);
  border-color: var(--brand-500);
}

.consent-checkbox input:checked ~ .checkmark::after {
  content: '';
  position: absolute;
  width: 5px;
  height: 10px;
  border: solid #0a0f0c;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) translate(-1px, -1px);
}

.consent-text {
  font-size: 13px;
  color: var(--text-tertiary);
  line-height: 1.6;
}

.consent-text a {
  color: var(--brand-500);
  text-decoration: underline;
  font-weight: var(--fw-medium);
}

.consent-text a:hover {
  color: var(--brand-400);
}

/* ============================================================
   付费墙 UI（趋势图遮罩）
   ============================================================ */
.paywall-overlay {
  position: relative;
}

.paywall-overlay::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to top, var(--bg-card), transparent);
  pointer-events: none;
  z-index: 2;
}

.paywall-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px 20px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(6, 182, 212, 0.1));
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: var(--radius-md);
  margin-top: 16px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.paywall-banner a {
  color: var(--brand-400);
  font-weight: 600;
  text-decoration: none;
  padding: 6px 16px;
  border: 1px solid var(--brand-400);
  border-radius: var(--radius-md);
  transition: all 0.2s;
}

.paywall-banner a:hover {
  background: var(--brand-400);
  color: #fff;
}

/* 付费墙全屏遮罩模态框 */
.paywall-overlay-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fade-in 0.3s var(--ease-out);
}
.paywall-overlay-content {
  background: var(--bg-secondary);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  padding: 40px;
  text-align: center;
  max-width: 420px;
  width: 90%;
  box-shadow: var(--shadow-xl);
}
.paywall-overlay-content h3 {
  color: var(--text-primary);
  font-size: var(--fs-xl);
  margin-bottom: 8px;
  font-weight: var(--fw-bold);
}
.paywall-overlay-content p {
  color: var(--text-secondary);
  margin-bottom: 24px;
  font-size: var(--fs-base);
  line-height: var(--lh-relaxed);
}

/* ============================================================
   赞助商 Banner 轮播
   ============================================================ */
.sponsor-banner-section {
  padding: 30px 0 10px;
}
.banner-carousel {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: rgba(26, 36, 22, 0.75);
  border: 1px solid rgba(42, 58, 38, 0.6);
}
.carousel-track {
  display: flex;
  transition: transform 0.5s var(--ease-out);
  height: 200px;
}
.carousel-track .banner-slide {
  min-width: 100%;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  text-decoration: none;
  /* 绿->紫渐变两端都配不上同一种前景色（白字压绿 2.5:1、深色字压紫 2.6:1），
     改为深绿渐变 + 白字，对比度约 5.5:1 */
  background: linear-gradient(135deg, #047857, #059669);
  color: #fff;
}
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 2;
  transition: background var(--duration-base);
  display: flex;
  align-items: center;
  justify-content: center;
}
.carousel-btn:hover { background: var(--brand-500); }
.carousel-prev { left: 16px; }
.carousel-next { right: 16px; }
.carousel-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}
.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: background var(--duration-base);
}
.carousel-dot.active { background: var(--brand-500); }

@media (max-width: 768px) {

  /* @bp S 移动 · ≤768 */
  .carousel-track, .carousel-track .banner-slide { height: 140px; }
  .banner-slide h3 { font-size: var(--fs-lg); }
  .banner-slide p { font-size: var(--fs-sm); }
}

/* ============================================================
   Workload Cost Calculator
   ============================================================ */
.calculator-hero {
  text-align: center;
  padding: 60px 0 20px;
}

.calculator-hero h1 {
  font-size: var(--fs-hero);
  font-weight: 700;
  margin-bottom: 8px;
  background: linear-gradient(135deg, var(--brand-300), var(--brand-600));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.calculator-hero .hero-subtitle {
  color: var(--text-secondary);
  font-size: var(--fs-base);
}

.calculator-form-section {
  padding: 20px 0 40px;
}

.calculator-form {
  max-width: 640px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px;
}

.calculator-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.calculator-form .form-group {
  margin-bottom: 16px;
}

.calculator-form .form-group label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.calculator-form .form-group select,
.calculator-form .form-group input {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-control);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.95rem;
  box-sizing: border-box;
}

.calculator-form .form-group select:hover,
.calculator-form .form-group input:hover { border-color: var(--border-strong); }

.calculator-form .form-group select:focus,
.calculator-form .form-group input:focus,
.calculator-form .form-group select:focus-visible,
.calculator-form .form-group input:focus-visible {
  outline: none;
  border-color: var(--brand-500);
  box-shadow: var(--focus-ring);
}

.calculator-form .form-group select[aria-invalid="true"],
.calculator-form .form-group input[aria-invalid="true"] {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px var(--danger-bg);
}

.calculator-form .form-group select:disabled,
.calculator-form .form-group input:disabled {
  background: var(--bg-tertiary);
  opacity: 0.45;
  cursor: not-allowed;
}

.calc-submit-btn {
  display: block;
  width: 100%;
  padding: 14px;
  background: var(--brand-500);
  color: var(--on-brand);
  border: none;
  border-radius: var(--radius-md);
  font-size: var(--fs-base);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 8px;
}

.calc-submit-btn:hover {
  background: var(--brand-600);
}

.calc-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.calculator-results {
  padding: 40px 0 80px;
}

.calculator-results h2 {
  text-align: center;
  margin-bottom: 28px;
  font-size: var(--fs-2xl);
  color: var(--text-primary);
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.result-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: relative;
  transition: transform 0.2s;
}

.result-card:hover {
  transform: translateY(-4px);
}

.result-card.best {
  border-color: var(--brand-400);
  border-width: 2px;
}

.result-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--brand-500);
  color: var(--on-brand);
  padding: 4px 16px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.result-header {
  text-align: center;
  margin-bottom: 16px;
}

.result-header h3 {
  font-size: 1.1rem;
  margin-bottom: 4px;
  color: var(--text-primary);
}

.result-provider {
  font-size: 0.85rem;
  color: var(--text-tertiary);
}

.result-body {
  text-align: center;
  margin-bottom: 16px;
}

.result-price {
  font-size: var(--fs-3xl);
  font-weight: 700;
  color: var(--brand-400);
}

.result-detail {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 16px;
  margin-top: 8px;
  font-size: 0.8rem;
  color: var(--text-tertiary);
}

/* C2：标签项整词换行——避免「On-Demand」断词成「On-/Demand」 */
.result-detail > span { white-space: nowrap; }

/* A2：兼容性徽章——full 绿（可行）、partial 琥珀（需分片/显存紧张）；low 已不返回 */
.compat-badge {
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: var(--fs-xs);
  font-weight: 600;
}
.compat-badge.compat-full {
  background: var(--success-bg);
  color: var(--brand-400);
  border: 1px solid var(--success-border);
}
.compat-badge.compat-partial {
  background: var(--warning-bg);
  color: var(--warning);
  border: 1px solid var(--warning-border);
}

.result-link {
  display: block;
  text-align: center;
  padding: 10px;
  background: var(--brand-500);
  color: var(--on-brand);
  border-radius: var(--radius-md);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s;
}

/* ========== 价格趋势 Hover 弹窗 ========== */
.trend-tooltip {
  position: fixed;
  z-index: 9999;
  background: rgba(17, 26, 21, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: 14px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  pointer-events: none;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  min-width: 280px;
}
.trend-tooltip.visible {
  opacity: 1;
  transform: translateY(0);
}
.trend-tooltip-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.trend-tooltip-model {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}
.trend-tooltip-days {
  font-size: 12px;
  color: var(--text-tertiary);
  background: rgba(16, 185, 129, 0.1);
  padding: 2px 8px;
  border-radius: 10px;
}

.trend-tooltip-canvas {
  display: block;
  border-radius: 6px;
  background: rgba(10, 15, 12, 0.5);
}
.trend-tooltip-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-tertiary);
  font-family: var(--font-mono);
}
.trend-tooltip-footer span {
  white-space: nowrap;
}

.result-link:hover {
  background: var(--brand-600);
}

.no-results {
  text-align: center;
  padding: 40px;
  color: var(--text-secondary);
  font-size: var(--fs-base);
}

@media (max-width: 768px) {

  /* @bp S 移动 · ≤768 */
  .calculator-form .form-row {
    grid-template-columns: 1fr;
  }
}

.table th {
  padding: 0 var(--space-4);
  height: 40px;
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: left;
  border-bottom: 1px solid var(--border-default);
  white-space: nowrap;
}

.table th.sortable {
  cursor: pointer;
  user-select: none;
  transition: color var(--duration-fast) var(--ease-out);
}

.table th.sortable:hover {
  color: var(--brand-400);
}

.table td {
  padding: 0 var(--space-4);
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-subtle);
}

.table tbody tr { height: 48px; }

/* ===== §6.10 表格数据行六态（交互行，.table 与 .gpu-table 共用真源）=====
   · hover 仅 --bg-hover 行背景：8+ 列比价表横向追踪依赖，禁位移 / 阴影 / 色相变化（§6.4）。
   · focus 用 inset 内环而非 --focus-ring 外双环：.table-scroll 有 overflow-x: auto（§6.12），
     外环会被滚动容器裁剪；inset 环绘制在行自身盒内，横向滚到任意位置都完整可见。
   · 状态优先级 aria-current > hover > 斑马纹，故 current 规则后置且带 :hover 变体压过 hover。
   · 2026-11-25 裁定：原生 role="table" 下 aria-selected 语义不严格，改用 aria-current="true"。
   · markup 侧（tr 的 tabindex / aria-current / 48px 骨架行）由 §6.10 第三片落地。 */
.table tbody tr:hover,
.gpu-table tbody tr:hover {
  background: var(--bg-hover);
}

.table tbody tr:focus-visible,
.gpu-table tbody tr:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 2px var(--focus-ring-color);
}

.table tbody tr[aria-current="true"],
.gpu-table tbody tr[aria-current="true"],
.table tbody tr[aria-current="true"]:hover,
.gpu-table tbody tr[aria-current="true"]:hover {
  background: var(--brand-subtle-bg);
  box-shadow: inset 2px 0 0 var(--brand-500);
}

.table tbody tr[aria-disabled="true"],
.gpu-table tbody tr[aria-disabled="true"] {
  opacity: 0.45;
  pointer-events: none;
}

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

/* §6.10 / §6.8 表格 loading：3–5 行 48px 骨架行（行高复用上面的 tbody tr 规则），
   容器 aria-busy="true" 期间不可交互；容器尺寸与真实行一致，避免布局跳动。 */
.table tbody[aria-busy="true"] { pointer-events: none; }
.skeleton-block {
  display: block;
  width: 100%;
  height: 14px;
  border-radius: var(--radius-sm);
  background: linear-gradient(90deg, var(--bg-tertiary) 0%, var(--bg-hover) 50%, var(--bg-tertiary) 100%);
  background-size: 200% 100%;
  animation: table-skeleton-shimmer 1200ms linear infinite;
}
@keyframes table-skeleton-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.table td.price-cell {
  font-weight: var(--fw-bold);
  color: var(--text-primary);
  font-family: var(--font-mono);
}

/* P0: 可用性点标记 + 价格来源标注（首页价格表） */
.avail-dot {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font-base, inherit);
  white-space: nowrap;
}

.avail-dot i { font-size: 6px; }

.avail-dot.avail-available { background: rgba(16, 185, 129, 0.14); color: var(--avail-available); }
.avail-dot.avail-limited { background: rgba(251, 191, 36, 0.14); color: var(--avail-limited); }
.avail-dot.avail-unavailable { background: rgba(239, 68, 68, 0.14); color: var(--danger-text, #b91c1c); }
.avail-dot.avail-contact_sales { background: rgba(59, 130, 246, 0.14); color: var(--avail-contact); }
.avail-dot.avail-unknown { background: rgba(148, 163, 184, 0.12); color: var(--avail-unknown); }

.price-source {
  margin-top: 3px;
  font-size: 12px;
  font-weight: 400;
  font-family: var(--font-base, inherit);
  color: var(--text-tertiary);
}

/* C1：租用按钮与来源行整词不换行——此前租用列宽仅 6%，「租用」被竖排折成两字两行，
   「来源：官方API · 9小时前」也被折成两行（表格在窄视口下整体横向滚动，nowrap 安全） */
.rent-btn { white-space: nowrap; }
.price-source { white-space: nowrap; }

/* D1（2026-11-01）：空值（–）统一弱化样式——低对比度明示「无数据」，不再像正常数据 */
.empty-val { color: var(--text-tertiary); opacity: 0.55; }

.min-price-row {
  background: var(--success-bg) !important;
}

/* 分页 */
.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.pagination-info {
  font-size: var(--fs-sm);
  color: var(--text-tertiary);
}

.pagination-controls {
  display: flex;
  gap: 8px;
  align-items: center;
}

.pagination-controls button {
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-control);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: var(--fs-sm);
  font-family: inherit;
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
}

.pagination-controls button:hover:not(:disabled) {
  background: var(--bg-hover);
  border-color: var(--border-strong);
  color: var(--text-primary);
}

.pagination-controls button.active {
  background: var(--gradient-brand);
  border-color: transparent;
  color: var(--bg-primary);
  font-weight: var(--fw-semibold);
}

.pagination-controls button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.page-size-selector {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-sm);
  color: var(--text-tertiary);
}

.page-size-selector select {
  padding: 8px 12px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-control);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: var(--fs-sm);
  font-family: inherit;
  cursor: pointer;
}

/* 无结果状态 */
.no-results {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.no-results i {
  font-size: 3rem;
  margin-bottom: 20px;
  opacity: 0.3;
  display: block;
}

.no-results h3 {
  font-size: var(--fs-xl);
  color: var(--text-primary);
  margin-bottom: 8px;
}

/* Footer */
footer {
  /* 2026-11-02 修「页脚裂缝」（第二次）。第一次只把 margin-top:60px 换成 padding-top，横带没消失，
     因为根因不是间距而是「色差 + 硬边」：
       - body = var(--bg-primary) #0a0f0c，上面叠了 --gradient-hero 的 fixed 径向绿光，
         所以同一高度上屏幕中间偏绿、两端偏黑；
       - footer = 实色 var(--bg-secondary) #111a15，比页面底色整体亮一档。
     两者沿页脚上沿撞出一条横贯整屏的硬边，而且颜色对不上（中间段页脚更暗、两端页脚更亮）。
     再叠上各页 container 的 60px padding-bottom，就是肉眼看到的「一条带子」。
     现在让实色在前 72px 内淡入：透明段直接透出 body 的 fixed 渐变，颜色连续，边界自然消解。
     同时去掉 border-top 与 ::before 那根 1px 亮线 —— 有它们在，过渡区会被重新切出一条边。 */
  background: linear-gradient(180deg, transparent 0, var(--bg-secondary) 72px);
  border-top: 0;
  /* 间距从 100px 收到 72px：上面各页 container 自带的 60px 底部留白还在，
     两者相加原本有 160px 空地，页脚顶部那段渐变会显得像「一条没有内容的带子」。 */
  margin-top: 0;
  padding: 72px 0 24px;
  position: relative;
}

/* 淡入区里不再画分割线 */
footer::before {
  display: none;
}

/* ============================================================
   应用外壳（2026-11-02）：用户控制台 / 供应商后台 / 管理页
   营销外壳负责获客（横向导航、行情条、内链矩阵、CTA），应用外壳负责干活
   （面包屑、账号、极简页脚）。共用 tokens 与 i18n 字典，不共用导航与页脚。
   ============================================================ */
.app-header .app-bar {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  min-height: 64px;
  padding-top: 14px;
  padding-bottom: 14px;
  box-sizing: border-box;
}

.app-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  font-size: var(--fs-lg);
  font-weight: var(--fw-bold);
  color: var(--text-primary);
  text-decoration: none;
}

.app-logo i {
  color: var(--brand-500);
}

.app-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-size: var(--fs-sm);
  color: var(--text-tertiary);
}

.app-breadcrumb a {
  color: var(--text-tertiary);
  text-decoration: none;
  white-space: nowrap;
}

.app-breadcrumb a:hover {
  color: var(--text-primary);
}

.app-crumb-sep {
  font-size: var(--fs-xs);
  opacity: 0.55;
}

.app-breadcrumb [aria-current="page"] {
  color: var(--text-primary);
  font-weight: var(--fw-medium);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-left: auto;
  flex-shrink: 0;
}

.app-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  text-decoration: none;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  white-space: nowrap;
  transition: all var(--duration-fast) var(--ease-out);
}

.app-back:hover {
  color: var(--text-primary);
  border-color: var(--brand-500);
}

/* 极简页脚：必须覆盖全局 footer 的 72px 淡入渐变与 72px 上留白 */
footer.app-footer {
  background: transparent;
  border-top: 1px solid var(--border-subtle);
  margin-top: var(--space-8);
  padding: 20px 0;
}

.app-footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  font-size: var(--fs-sm);
  color: var(--text-tertiary);
}

.app-footer-inner p {
  margin: 0;
}

.app-footer-links {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.app-footer-links a,
.app-footer-links button {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: var(--text-tertiary);
  text-decoration: none;
  cursor: pointer;
}

.app-footer-links a:hover,
.app-footer-links button:hover {
  color: var(--text-primary);
}

@media (max-width: 768px) {

  /* @bp S 移动 · ≤768 */
  .app-breadcrumb {
    display: none;
  }

  .app-back span {
    display: none;
  }

  .app-header .user-name {
    display: none;
  }
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-logo-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-logo-section .logo {
  margin-bottom: 8px;
}

.footer-logo-section p {
  margin: 0;
  color: var(--text-tertiary);
  font-size: var(--fs-sm);
  line-height: 1.7;
}

.footer-section h4 {
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--text-primary);
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-section a {
  font-size: var(--fs-sm);
  color: var(--text-tertiary);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
}

.footer-section a:hover {
  color: var(--brand-400);
}

.footer-bottom {
  padding-top: 24px;
  text-align: center;
  position: relative;
}

.footer-bottom::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20%;
  right: 20%;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent 0%,
    rgba(42, 58, 38, 0.6) 30%,
    rgba(16, 185, 129, 0.3) 50%,
    rgba(42, 58, 38, 0.6) 70%,
    transparent 100%
  );
}

.footer-bottom p {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  margin: 0;
}

/* 价格口径声明（2026-11-02）：比价站必须说明「公开挂牌价 vs 实际账单」，
   否则用户会把聚合价当报价承诺 */
.footer-bottom .footer-disclaimer {
  font-size: var(--fs-xs);
  color: var(--text-quaternary);
  margin-top: 6px;
  line-height: 1.6;
}

/* 响应式：平板 < 1024px */
@media (max-width: 1024px) {
  /* @bp L 小桌面 · ≤1024 */
  .footer-content {
    grid-template-columns: 1fr 1fr;
  }

  header nav {
    gap: 16px;
  }

  header .nav-links {
    gap: 4px;
  }

  header .nav-links a {
    padding: 6px 10px;
    font-size: 0.8125rem;
  }
}

/* 响应式：移动端 < 768px */
@media (max-width: 768px) {
  /* @bp S 移动 · ≤768 */
  header nav {
    padding: 12px 16px;
    flex-wrap: wrap;
  }

  header .nav-links {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: none;
  }

  header .nav-links::-webkit-scrollbar {
    display: none;
  }

  header .nav-actions {
    gap: 8px;
  }

  .lang-trigger {
    padding: 4px 8px;
  }

  .hero {
    padding: 40px 0 30px;
  }

  .hero h1 {
    font-size: var(--fs-hero-s);
  }

  .hero p {
    font-size: var(--fs-base);
    margin-bottom: 24px;
  }

  .hero .search-box {
    padding: 6px 6px 6px 16px;
  }

  .hero-stats {
    gap: 8px;
    margin-top: 24px;
  }

  .hero-stat-item {
    padding: 6px 12px;
    font-size: var(--fs-xs);
  }

  .market-overview,
  .price-trend-section,
  .recommendations {
    padding: 40px 0;
  }

  .market-overview h2,
  .price-trend-title,
  .recommendations h2 {
    font-size: var(--fs-2xl);
    margin-bottom: 24px;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .stat-card {
    padding: 16px;
  }

  .stat-card .stat-value {
    font-size: var(--fs-2xl);
  }

  .recommendation-grid {
    grid-template-columns: 1fr;
  }

  .card {
    padding: 16px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-brand {
    padding-right: 0;
    border-right: none;
    border-bottom: 1px solid rgba(42, 58, 38, 0.3);
    padding-bottom: 20px;
  }

  .filter-section,
  .sort-section {
    padding: 16px;
  }

  .filter-controls,
  .sort-controls {
    gap: 8px;
  }

  .table th,
  .table td {
    padding: 10px 12px;
    font-size: 0.8125rem;
  }

  .pagination {
    flex-direction: column;
    align-items: stretch;
  }

  .pagination-controls {
    justify-content: center;
  }
}

/* 首页登录/注册按钮 */
.hero-login-btn {
  background: var(--brand-500);
  /* 2026-12-03 axe 实测：--bg-primary 在浅色主题是浅色（压绿底 2.3:1 违规），
     品牌绿底前景统一 --on-brand（#052e21，深色压绿，两主题均达标）。 */
  color: var(--on-brand);
  border-radius: var(--radius-md);
  padding: 8px 18px;
  font-weight: var(--fw-semibold);
  font-size: var(--fs-sm);
  text-decoration: none;
  transition: all var(--duration-base) var(--ease-out);
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.hero-login-btn:hover {
  background: var(--brand-600);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
  transform: translateY(-1px);
}

.hero-register-btn {
  background: var(--bg-secondary);
  color: var(--text-secondary);
  border: 1px solid var(--border-control);
  border-radius: var(--radius-md);
  padding: 8px 18px;
  font-weight: var(--fw-semibold);
  font-size: var(--fs-sm);
  text-decoration: none;
  transition: all var(--duration-base) var(--ease-out);
}

.hero-register-btn:hover {
  border-color: var(--brand-500);
  color: var(--brand-500);
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.15);
}

/* 小手机 < 480px */
@media (max-width: 480px) {
  /* @bp XS 窄移动 · ≤480 */
  .stats-grid {
    grid-template-columns: 1fr;
  }

  header .nav-actions a {
    padding: 6px 10px !important;
    font-size: 0.75rem !important;
  }

  .logo {
    font-size: 1.1rem;
  }
}
/* ============================================================
   已登录用户菜单 (user-menu)
   ============================================================ */
.user-menu {
  position: relative;
  display: inline-block;
}

.user-menu-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px 4px 4px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-control);
  border-radius: 999px;
  color: var(--text-primary);
  cursor: pointer;
  font-family: inherit;
  font-size: var(--fs-sm);
  transition: all var(--duration-fast) var(--ease-out);
}

.user-menu-toggle:hover,
.user-menu-toggle:focus {
  border-color: var(--brand-500);
  background: var(--bg-hover);
  outline: none;
}

.user-menu-toggle .fa-chevron-down {
  font-size: 10px;
  color: var(--text-tertiary);
  transition: transform var(--duration-fast) var(--ease-out);
}

.user-menu-dropdown.open + .user-menu-toggle .fa-chevron-down,
.user-menu[aria-expanded= true] .fa-chevron-down {
  transform: rotate(180deg);
}

.user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-500), var(--brand-400));
  color: var(--on-brand);
  font-weight: 700;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 1;
}

.user-name {
  font-weight: var(--fw-medium);
  color: var(--text-primary);
  max-width: 120px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-menu-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 200px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  padding: 6px;
  display: none;
  z-index: 200;
}

.user-menu-dropdown.open {
  display: block;
}

.user-menu-dropdown a,
.user-menu-dropdown button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  background: none;
  border: none;
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: inherit;
  font-size: var(--fs-sm);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--duration-fast) var(--ease-out);
}

.user-menu-dropdown a i,
.user-menu-dropdown button i {
  width: 16px;
  text-align: center;
  color: var(--text-tertiary);
}

.user-menu-dropdown a:hover,
.user-menu-dropdown button:hover {
  background: var(--bg-hover);
}

.user-menu-logout {
  color: var(--danger) !important;
  border-top: 1px solid var(--border-default);
  margin-top: 4px;
  padding-top: 12px !important;
}

.user-menu-logout i {
  color: var(--danger) !important;
}

/* 移动端：隐藏用户名，只显头像 */
@media (max-width: 768px) {
  /* @bp S 移动 · ≤768 */
  .user-name { display: none; }
  .user-menu-toggle { padding: 4px; }
  .user-menu-dropdown { right: 0; min-width: 180px; }
}

@media (max-width: 480px) {

  /* @bp XS 窄移动 · ≤480 */
  .user-menu-dropdown { min-width: 160px; }
}

/* ========== 无障碍：prefers-reduced-motion 降级 ========== */
@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;
  }
}

/* ========== 移动端导航显隐（最终覆盖，必须置于文件末尾） ==========
   2423 行的 @media (max-width:900px) 声明在基础规则
   .mobile-menu-btn{display:none}（2624 行）与
   header .nav-links{display:flex}（2658 行）之前，
   同优先级下后声明者胜出，导致汉堡按钮与导航隐藏均不生效。
   此块位于文件末尾，后置声明覆盖桌面基础规则。 */
@media (max-width: 900px) {
  /* @bp M 导航切换 · ≤900 */
  header .nav-links { display: none; }
  header .mobile-menu-btn { display: flex; }
}

/* ========== 移动端触控目标与 header 空间（必须置于文件末尾保证覆盖） ==========
   实测：390px 下 header 折成两行，语言按钮被压成竖排，登录/语言按钮高仅 26~31px，
   低于 Apple HIG 44px / Material 48px 的推荐下限。此处统一抬到 40px 并压缩间距。 */
@media (max-width: 900px) {
  /* @bp M 导航切换 · ≤900 */
  header .nav-actions { gap: 8px; }

  header .theme-toggle,
  header .lang-trigger,
  header .hero-login-btn,
  header .hero-register-btn,
  header .mobile-menu-btn,
  header .user-menu-toggle {
    min-height: 40px;
  }

  header .theme-toggle,
  header .mobile-menu-btn,
  header .user-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  /* 窄屏优先牺牲“注册”按钮，账号入口已补进移动端抽屉 */
  header .hero-register-btn { display: none; }

  /* 移动端抽屉：关闭按钮与账号入口分组 */
  .mobile-nav-close {
    width: 40px;
    height: 40px;
    min-height: 40px;
    flex-shrink: 0;
  }

  .mobile-nav-account {
    margin-top: auto;
    padding-top: var(--space-4);
    border-top: 1px solid var(--border-default);
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
  }

  /* 抽屉里的「退出登录」是 <button>，需复位浏览器默认外观才与链接同高同宽 */
  .mobile-nav-account button.mobile-nav-link {
    width: 100%;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
  }

  .mobile-nav-link-primary {
    background: var(--brand-500);
    /* 深色前景 -> 品牌绿底对比度约 8:1 */
    color: var(--bg-primary);
    font-weight: var(--fw-semibold);
    text-align: center;
  }
}

/* ========== 移动端首屏留白与统计条布局 ========== */
@media (max-width: 768px) {
  /* @bp S 移动 · ≤768 */
  /* 原 min-width:150px 使 390px 视口每行只能放 1 个，5 个统计项堆满首屏 */
  .hero-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-top: 24px;
  }

  .hero-stat-item {
    min-width: 0;
    width: 100%;
    justify-content: center;
    text-align: center;
    font-size: var(--fs-xs);
    padding: 6px 10px;
  }

  /* 2 列网格下 flex 子项会被压到比文字更窄，"云服务商" 被迫折成「云服/务商」。
     标签与数值都保持单行，超宽时由 grid 列宽吸收（两项总宽仍远小于列宽） */
  .hero-stat-item > span {
    white-space: nowrap;
  }

  /* 桌面 80px/60px 的 hero 留白在移动端把核心内容挤到第二屏 */
  .pricing-hero { padding: 32px 0 20px; }
  .pricing-plans { padding: 20px 0 48px; }
}

/* ========== SEO 内链横幅（首页/计算器/型号列表/marketplace → /providers） ========== */
/* 2026-10-30 SEO 优化：统一内链视觉，避免 4 个页面各写一套内联样式 */
/* 2026-10-30 UI 调整（视觉层级降级为「辅助提示」）：
   1) 去掉 3px 左竖线——竖线在 8px 圆角处断开，且在居中块上形成偏左的孤立重音；
   2) 宽度贴合文案并居中（上限 660px），避免铺满容器后长行折出「只剩两三个字」的尾行；
   3) 文字改为左对齐，图标锚定首行，长文案换行后不再出现居中孤行；
   4) 底色从实心 --bg-secondary 换成品牌色淡染，弱于上方两个主 CTA 按钮；
   5) 链接加弱下划线 + hover 提亮，强化「可点击」暗示。 */
.providers-cross-link {
  position: relative;
  /* 宽度贴合文案（多语言长短差异大），单行时两侧留白对称，超出 660px 才换行 */
  width: fit-content;
  max-width: 660px;
  margin: 20px auto 24px;
  padding: 12px 18px 12px 42px;
  border: 1px solid rgba(16, 185, 129, 0.22);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.09), rgba(16, 185, 129, 0.02));
  color: var(--text-secondary);
  font-size: var(--fs-sm);
  line-height: 1.65;
  text-align: left;
  /* 中英文文案长度差异大：两行时强制均分，避免尾行只剩两三个字的孤行 */
  text-wrap: balance;
}

/* 灯泡图标走伪元素：该段为 data-i18n 元素，innerHTML 会被字典整体替换，
   任何写在模板里的图标节点都会被覆盖掉 */
.providers-cross-link::before {
  content: "\f0eb";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: 16px;
  top: 12px;
  color: var(--brand-400);
  font-size: 0.95em;
  line-height: 1.65;
}

.providers-cross-link a {
  color: var(--brand-400);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(16, 185, 129, 0.35);
  transition: color var(--duration-fast) var(--ease-out),
    border-color var(--duration-fast) var(--ease-out);
}

.providers-cross-link a:hover {
  color: var(--brand-300);
  border-bottom-color: var(--brand-300);
}

.providers-cross-link a:focus-visible {
  outline: 2px solid var(--brand-500);
  outline-offset: 2px;
  border-radius: 2px;
}

/* 首页：.hero p 的 font-size / line-height / margin / text-align 特异性(0,1,1) 高于
   .providers-cross-link(0,1,0)，此处用 (0,2,0) 覆盖，否则间距被压成 0 紧贴按钮 */
.hero .providers-cross-link {
  max-width: 660px;
  margin: 22px auto 0;
  font-size: var(--fs-sm);
  line-height: 1.65;
}

/* 浅色模式：--brand-400 在浅底仅约 2.3:1，链接改用 --brand-700（≈5.5:1，达 WCAG AA） */
body.theme-light .providers-cross-link { border-color: rgba(16, 185, 129, 0.28); }
body.theme-light .providers-cross-link::before { color: var(--brand-600); }
body.theme-light .providers-cross-link a {
  color: var(--brand-700);
  border-bottom-color: rgba(4, 120, 87, 0.35);
}
body.theme-light .providers-cross-link a:hover {
  color: var(--brand-600);
  border-bottom-color: var(--brand-600);
}

@media (max-width: 768px) {

  /* @bp S 移动 · ≤768 */
  .providers-cross-link,
  .hero .providers-cross-link {
    margin: 16px auto 0;
    padding: 11px 14px 11px 38px;
    font-size: 0.8125rem;
  }

  .providers-cross-link::before {
    left: 14px;
    top: 11px;
  }
}
/* ============================================================
   2026-10-31 竞品设计对比报告 P0 四件套
   1. 全局市场行情 ticker 顶栏
   2. Hero 实时价格行
   3. 统计卡 7d sparkline + 涨跌
   4. 本周最大降价区块
   ============================================================ */

/* ---------- 1. 全局市场行情 ticker ---------- */
.market-ticker {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.8125rem;
  line-height: 1.2;
  overflow: hidden;
}

.market-ticker-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 34px;
  padding-top: 6px;
  padding-bottom: 6px;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}

.market-ticker-inner::-webkit-scrollbar {
  display: none;
}

.ticker-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  padding-right: 16px;
  border-right: 1px solid var(--border-subtle);
  /* 2026-12-03 axe 实测：浅色主题下 --brand-400/500 对白底均不达标（2.5/2.7:1 < 4.5），
     品牌文字浅色走 --brand-text（#047857，5.0:1），深色回退 --brand-500。 */
  color: var(--brand-text, var(--brand-500));
  font-weight: 600;
  font-size: var(--fs-xs);
  letter-spacing: 0.02em;
}

.ticker-badge .fa-circle-notch {
  font-size: var(--fs-xs);
}

.ticker-item {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--text-secondary);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s ease;
}

/* 行情项之间的细竖线分隔（第一个 item 前是 badge 的 border-right，不重复） */
.ticker-item + .ticker-item {
  padding-left: 16px;
  border-left: 1px solid var(--border-subtle);
}

.ticker-item:hover {
  color: var(--brand-300);
}

.ticker-item strong {
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-weight: 600;
}

/* Spot 是计费类型不是降价信号，不用价格语义色；中性描边胶囊 */
.ticker-spot {
  display: inline-block;
  padding: 0 5px;
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  color: var(--text-muted);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.5;
}

.ticker-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin-left: auto;
  color: var(--text-muted);
  font-size: var(--fs-xs);
  white-space: nowrap;
}

.ticker-sep {
  color: var(--border-strong);
}

@media (max-width: 768px) {

  /* @bp S 移动 · ≤768 */
  .market-ticker-inner {
    gap: 12px;
  }

  .ticker-meta {
    margin-left: 0;
  }

  .ticker-meta span:nth-child(n + 4) {
    display: none;
  }
}

/* ---------- 2. Hero 实时价格行 ---------- */
/* 胶囊化：首页核心信任锚要有「实时仪表」的存在感，纯文本一行太素。
   选择器用 .hero p.hero-price-line 压过全局 .hero p 的 max-width:640px（0,1,1） */
.hero p.hero-price-line {
  display: flex;
  width: fit-content;
  max-width: min(92%, 860px);
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px 6px;
  margin: 18px auto 0;
  padding: 10px 22px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

/* 左侧实时呼吸圆点，呼应 ticker 的 Live 语义 */
.hero-price-line::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-400);
  margin-right: 4px;
  flex-shrink: 0;
  animation: hero-live-pulse 2s ease-in-out infinite;
}

@keyframes hero-live-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-price-line::before {
    animation: none;
  }
}

.hero-price-line strong {
  color: var(--brand-300);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.0625rem;
}

.hero-price-line:empty {
  display: none;
}

@media (max-width: 768px) {

  /* @bp S 移动 · ≤768 */
  .hero p.hero-price-line {
    font-size: 0.8438rem;
    padding: 8px 14px;
    border-radius: 16px;
  }
}

/* ---------- 3. 统计卡 7d sparkline + 涨跌 ---------- */
/* spark/delta 由 JS 异步注入：预留高度防首屏 CLS（三卡始终等高） */
.stat-spark {
  margin-top: 10px;
  min-height: 34px;
  color: var(--text-tertiary);
  opacity: 0.9;
  line-height: 0;
}

.stat-spark svg {
  display: block;
  width: 120px;
  height: 34px;
  max-width: 100%;
}

.stat-delta {
  margin-top: 6px;
  min-height: 1.25em;
  font-size: var(--fs-xs);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.stat-delta.delta-up {
  color: var(--price-rise);
}

.stat-delta.delta-down {
  color: var(--price-drop);
}

/* ---------- 4. 本周最大降价区块 ---------- */
.price-drops-section {
  padding: 56px 0 32px;
}

.price-drops-basis {
  margin-top: 14px;
  color: var(--text-muted);
  font-size: var(--fs-xs);
  text-align: center;
}

.price-drops-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.price-drops-empty {
  grid-column: 1 / -1;
  padding: 32px 16px;
  text-align: center;
  color: var(--text-secondary);
}

.price-drop-card .rec-badge.drop {
  background: var(--price-drop-bg);
  color: var(--price-drop);
  border: 1px solid var(--success-border);
}

.price-drop-card .rec-price-value {
  color: var(--price-drop); /* 新价用降价语义色，与降幅徽章呼应 */
}

.price-drop-card .drop-old {
  margin-top: 4px;
  color: var(--text-muted);
  font-size: var(--fs-xs);
}

.price-drop-card .drop-old s {
  opacity: 0.75;
}

.stat-delta.delta-flat {
  color: var(--text-muted);
}

/* ============================================================
   P1-2：工作负载快速估算（/compare）
   ============================================================ */
.workload-card .workload-head h3 {
  display: flex;
  align-items: center;
  gap: 8px;
}

.workload-sub {
  margin: 0 0 16px;
  color: var(--text-muted);
  font-size: 0.8125rem;
}

.workload-controls {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.workload-controls select {
  flex: 1 1 160px;
  min-height: 40px;
  padding: 8px 12px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-control);
  border-radius: 10px;
  color: var(--text-primary);
  font-size: var(--fs-sm);
}

.workload-controls select:focus-visible {
  outline: 2px solid var(--brand-500);
  outline-offset: 1px;
}

.workload-result {
  margin-top: 14px;
}

.wl-hint {
  color: var(--text-muted);
  font-size: 0.8125rem;
}

.wl-summary {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 12px 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
}

.wl-main {
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--text-primary);
}

.wl-range {
  color: var(--text-secondary);
  font-size: var(--fs-sm);
}

.wl-range strong {
  color: var(--brand-300);
  font-family: var(--font-mono);
  font-weight: 700;
}

.wl-provider {
  color: var(--text-muted);
  font-size: 0.8125rem;
}

.wl-gap {
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--price-rise-bg, color-mix(in oklch, #ef4444 14%, transparent));
  color: var(--price-rise, #f87171);
  font-size: var(--fs-xs);
  font-weight: 700;
  white-space: nowrap;
}

.wl-count {
  margin-left: auto;
  color: var(--text-muted);
  font-size: var(--fs-xs);
  white-space: nowrap;
}

.wl-basis {
  margin: 8px 0 0;
  color: var(--text-muted);
  font-size: var(--fs-xs);
}

.wl-alert {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 7px 14px;
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  color: var(--text-secondary);
  font-size: 0.8125rem;
  text-decoration: none;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.wl-alert:hover {
  color: var(--brand-400);
  border-color: var(--brand-500);
}

@media (max-width: 768px) {

  /* @bp S 移动 · ≤768 */
  .wl-summary {
    gap: 8px;
  }
  .wl-count {
    margin-left: 0;
  }
}

/* ============================================================
   页脚 CTA 双轨 + 内链矩阵（2026-11-01，竞品设计对比报告 P2-11/P2-12）
   - .footer-cta-band：供应商入驻 / 开发者 API 两个并列入口
   - .footer-matrix：型号定价页 + 供应商页的 SEO 内链矩阵（SSR 注入）
   不新增配色，全部沿用现有 token，主题切换无需额外适配。
   ============================================================ */
.footer-cta-band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  padding: var(--space-6);
  margin-bottom: var(--space-8);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  background: var(--bg-primary);
}

.footer-cta-item h4 {
  margin: 0 0 var(--space-2);
  font-size: var(--fs-base);
  font-weight: var(--fw-semibold);
  color: var(--text-primary);
}

.footer-cta-item p {
  margin: 0 0 var(--space-3);
  font-size: var(--fs-sm);
  color: var(--text-tertiary);
  line-height: 1.6;
}

.footer-cta-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  /* 2026-12-03 axe 实测：浅色主题 --brand-400 压浅底不达标，走 --brand-text 回退链。 */
  color: var(--brand-text, var(--brand-400));
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color var(--duration-fast) var(--ease-out);
}

.footer-cta-link::after {
  content: "→";
  font-size: 0.9em;
}

.footer-cta-link:hover {
  border-bottom-color: var(--brand-400);
}

.footer-matrix {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  padding-bottom: var(--space-8);
  margin-bottom: var(--space-8);
  border-bottom: 1px solid var(--border-subtle);
}

.footer-matrix h4 {
  margin: 0 0 var(--space-3);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-matrix-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.footer-matrix-links a {
  display: inline-block;
  padding: 3px 9px;
  font-size: var(--fs-xs);
  color: var(--text-tertiary);
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out),
              border-color var(--duration-fast) var(--ease-out);
}

.footer-matrix-links a:hover {
  color: var(--brand-400);
  border-color: var(--brand-500);
}

.footer-matrix-links a.footer-matrix-more {
  color: var(--brand-400);
  background: transparent;
  border-style: dashed;
}

@media (max-width: 900px) {

  /* @bp M 导航切换 · ≤900 */
  .footer-cta-band,
  .footer-matrix {
    grid-template-columns: 1fr;
  }
  .footer-cta-band {
    padding: var(--space-4);
  }
}

/* ============================================================
   首页快速入口三卡（2026-11-01，竞品设计对比报告 Top Picks）
   三张卡全部指向 /gpu-list 的真实过滤参数，不做伪造维度。
   ============================================================ */
.top-picks-section {
  padding: var(--space-6) 0 var(--space-2);
}

.top-picks-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}

.top-pick-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: var(--space-4) var(--space-5);
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: border-color var(--duration-fast) var(--ease-out),
              box-shadow var(--duration-fast) var(--ease-out),
              transform var(--duration-fast) var(--ease-out);
}

/* §6.10 可点卡片六态：hover 提升一档描边 + shadow-md + 2px 上浮；active 回 shadow-sm 与 0 位移；
   focus-visible 用统一双层焦点环；disabled .45。仅限 <a> 卡片，MUST NOT 给静态卡加 hover。 */
.top-pick-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.top-pick-card:active {
  box-shadow: var(--shadow-sm);
  transform: translateY(0);
}

.top-pick-card:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.top-pick-card[aria-disabled="true"] {
  opacity: 0.45;
  pointer-events: none;
  cursor: not-allowed;
}

.top-pick-tag {
  font-size: var(--fs-xs);
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.top-pick-value {
  font-size: var(--fs-xl);
  font-weight: var(--fw-semibold);
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
  line-height: 1.25;
}

.top-pick-desc {
  font-size: var(--fs-sm);
  color: var(--text-tertiary);
  line-height: 1.5;
}

@media (max-width: 900px) {

  /* @bp M 导航切换 · ≤900 */
  .top-picks-grid {
    grid-template-columns: 1fr;
  }
  .top-pick-card:hover {
    transform: none;
  }
}

/* ==========================================================================
   订阅中心（pricing 页 · 站内订阅管理）
   设计约束：
   · 全部使用既有 design token，浅色主题（body.theme-light）手动切换
   · 按钮文字对比度 ≥ 4.5:1（正文）/ ≥ 3:1（大字），禁用 .plan-btn 的深绿前景色
   · 触控目标 ≥ 44px；所有交互元素具备 :focus-visible 焦点环（全局已定义）
   · 状态齐全：默认 / hover / focus / disabled / busy / 错误 / 空态 / 骨架屏
   ========================================================================== */

/* 卡片表面：此前 --bg-card 被 5 处引用却从未定义，导致卡片背景透明 */
:root {
  --bg-card: var(--bg-secondary);
}

/* 屏幕阅读器专用文本 */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- 区块骨架 ---------- */
.sub-center {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: left;
}

.sub-center__head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.sub-center__title {
  margin: 0;
  font-size: var(--fs-lg);
  font-weight: var(--fw-semibold);
  color: var(--text-primary);
  line-height: var(--lh-tight);
}

.sub-center__desc {
  margin: 0 0 20px;
  font-size: var(--fs-sm);
  color: var(--text-secondary);
}

/* ---------- 状态徽章 ---------- */
.sub-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 12px;
  border-radius: var(--radius-full);
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  line-height: 1.6;
  background: var(--success-bg);
  color: var(--success);
  border: 1px solid var(--success-border);
}

/* display:inline-flex/inline-block 会覆盖 [hidden] 的默认 display:none，需显式还原 */
.sub-badge[hidden],
.sub-btn[hidden] {
  display: none;
}

.sub-badge--warn {
  background: var(--warning-bg);
  color: var(--warning);
  border-color: var(--warning-border);
}

.sub-badge--info {
  background: var(--info-bg);
  color: var(--info);
  border-color: var(--info-border);
}

/* ---------- 关键信息（定义列表语义）---------- */
.sub-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px 28px;
  margin: 0 0 22px;
  padding: 16px 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.sub-facts[hidden] {
  display: none;
}

.sub-fact {
  margin: 0;
}

.sub-fact__label {
  font-size: var(--fs-xs);
  color: var(--text-tertiary);
  margin-bottom: 4px;
}

.sub-fact__value {
  margin: 0;
  font-size: var(--fs-base);
  font-weight: var(--fw-semibold);
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
  line-height: var(--lh-tight);
}

/* ---------- 按钮 ---------- */
.sub-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.sub-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  max-width: 100%;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  font-family: inherit;
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  line-height: 1.4;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--duration-fast) var(--ease-out),
    border-color var(--duration-fast) var(--ease-out),
    color var(--duration-fast) var(--ease-out),
    opacity var(--duration-fast) var(--ease-out);
}

.sub-btn--primary {
  background: var(--brand-500);
  color: var(--on-brand);
}

.sub-btn--primary:hover:not(:disabled) {
  background: var(--brand-400);
}

.sub-btn--secondary {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text-primary);
}

.sub-btn--secondary:hover:not(:disabled) {
  background: var(--bg-hover);
  border-color: var(--brand-500);
}

.sub-btn--danger {
  background: var(--danger-bg);
  border-color: var(--danger-border);
  color: var(--danger);
}

.sub-btn--danger:hover:not(:disabled) {
  background: var(--danger-bg-hover);
  border-color: var(--danger);
}

.sub-btn--quiet {
  background: transparent;
  border-color: transparent;
  color: var(--text-secondary);
}

.sub-btn--quiet:hover:not(:disabled) {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.sub-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* 忙碌态：禁止重复提交（支付场景防重复扣费） */
.sub-btn.is-busy {
  pointer-events: none;
  opacity: 0.75;
}

.sub-btn.is-busy::before {
  content: '';
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid currentColor;
  border-top-color: transparent;
  animation: sub-spin 700ms linear infinite;
}

@keyframes sub-spin {
  to { transform: rotate(360deg); }
}

/* ---------- 确认面板（换档 / 取消）---------- */
.sub-panel {
  margin: 0 0 18px;
  padding: 16px 18px;
  border: 1px solid var(--info-border);
  border-radius: var(--radius-md);
  background: var(--info-bg);
}

.sub-panel--danger {
  border-color: var(--danger-border);
  background: var(--danger-bg);
}

.sub-panel[hidden] {
  display: none;
}

.sub-panel__summary {
  font-size: var(--fs-sm);
  line-height: 1.7;
  color: var(--text-primary);
  margin-bottom: 14px;
}

.sub-panel__summary strong {
  font-weight: var(--fw-semibold);
}

.sub-panel__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* ---------- 账单历史 ---------- */
.sub-history {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--border-subtle);
}

.sub-history[hidden] {
  display: none;
}

.sub-history__title {
  margin: 0 0 12px;
  font-size: var(--fs-base);
  font-weight: var(--fw-semibold);
  color: var(--text-primary);
}

.sub-history__table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-sm);
}

.sub-history__table th {
  text-align: left;
  font-weight: var(--fw-medium);
  font-size: var(--fs-xs);
  color: var(--text-tertiary);
  padding: 0 12px 8px 0;
  border-bottom: 1px solid var(--border-subtle);
  white-space: nowrap;
}

.sub-history__table td {
  padding: 10px 12px 10px 0;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  vertical-align: middle;
}

.sub-history__table tr:last-child td {
  border-bottom: none;
}

.sub-history__table .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: var(--text-primary);
  white-space: nowrap;
}

.sub-history__link {
  color: var(--brand-400);
  text-decoration: none;
  font-weight: var(--fw-medium);
  white-space: nowrap;
}

.sub-history__link:hover {
  text-decoration: underline;
}

.sub-history__link:focus-visible {
  outline: 2px solid var(--brand-500);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* ---------- 空态 / 错误态 / 骨架屏 ---------- */
.sub-empty {
  font-size: var(--fs-sm);
  color: var(--text-tertiary);
  padding: 14px 0;
}

.sub-error {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: var(--fs-sm);
  color: var(--danger);
  padding: 10px 0;
}

.sub-skeleton {
  display: block;
  width: 100%;
  height: 14px;
  border-radius: var(--radius-sm);
  background: linear-gradient(90deg, var(--bg-tertiary) 25%, var(--bg-hover) 37%, var(--bg-tertiary) 63%);
  background-size: 400% 100%;
  animation: sub-shimmer 1.4s ease infinite;
}

.sub-skeleton + .sub-skeleton {
  margin-top: 10px;
}

@keyframes sub-shimmer {
  0% { background-position: 100% 50%; }
  100% { background-position: 0 50%; }
}

/* ---------- Toast（替代原生 alert，兼顾可访问性与观感）---------- */
.sub-toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1000;
  max-width: min(420px, calc(100vw - 40px));
  padding: 12px 18px;
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-left: 3px solid var(--brand-500);
  color: var(--text-primary);
  font-size: var(--fs-sm);
  line-height: 1.6;
  box-shadow: var(--shadow-md);
  transition: box-shadow var(--duration-fast) var(--ease-out),
              transform var(--duration-fast) var(--ease-out);
  animation: sub-toast-in var(--duration-base) var(--ease-out);
}
/* §6.10 Toast 六态：hover 仅加深阴影（不改色），active scale(.99) */
.sub-toast:hover { box-shadow: var(--shadow-xl); }
.sub-toast:active { transform: scale(0.99); }
/* §6.10 Toast loading：2px --brand-500 计时条（4000ms 对应成功/信息自动消失时长） */
.sub-toast[aria-busy="true"]::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--brand-500);
  transform-origin: left;
  animation: sub-toast-timer 4000ms linear forwards;
}
@keyframes sub-toast-timer {
  from { transform: scaleX(1); }
  to { transform: scaleX(0); }
}

/* 变体只改语义色；border-color 简写会重置左边条，故显式补 border-left-color */
.sub-toast--error {
  border-color: var(--danger-border);
  border-left-color: var(--danger);
  background: var(--danger-bg);
  color: var(--danger);
}

.sub-toast--success {
  border-color: var(--success-border);
  border-left-color: var(--success);
  background: var(--success-bg);
  color: var(--success);
}

.sub-toast[hidden] {
  display: none;
}

@keyframes sub-toast-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- 当前套餐标记（套餐卡）---------- */
.plan-card.is-current {
  border-color: var(--brand-400);
  border-width: 2px;
}

.plan-card.is-current .plan-btn {
  opacity: 0.55;
  cursor: default;
}

/* ---------- 响应式 ---------- */
@media (max-width: 768px) {
  /* @bp S 移动 · ≤768 */
  .sub-center {
    padding: 18px 16px;
  }

  .sub-facts {
    grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
    gap: 14px 16px;
  }

  .sub-actions .sub-btn {
    width: 100%;
  }

  .sub-toast {
    right: 12px;
    left: 12px;
    bottom: 12px;
    max-width: none;
  }

  .sub-history__table th:nth-child(2),
  .sub-history__table td:nth-child(2) {
    display: none; /* 窄屏隐藏"状态"列，保留日期/金额/发票 */
  }
}

/* ---------- 广告位（AdSense，2026-11-25）----------
   首屏 1 个 + 文章正文中部 1 个；容器由 Worker 按 __AD_SLOT_*__ 渲染，未配 slot ID 时不生成 DOM。
   规范对齐：中性底 + subtle 边框（§6.2 非交互卡片），内边距 --space-4（§4.1 卡片最小档），
   标签用 --text-tertiary 中性色不用强调色（§2.4），断点只用 1024/900/768/480（§5.1）。
   同意前 hidden；consent.js 在「接受全部」移除 hidden 并 push(adsbygoogle)，Basic 模式零外链。 */
.ad-slot {
  margin: var(--space-6) 0;
  padding: var(--space-4);
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  text-align: center;
}
.ad-slot[hidden] {
  display: none;
}
.ad-slot__label {
  display: block;
  margin-bottom: var(--space-2);
  color: var(--text-tertiary);
  font-size: var(--fs-xs);
  letter-spacing: 0.04em;
}
.ad-slot ins.adsbygoogle {
  display: block;
  width: 100%;
  min-height: 90px; /* 预留高度：广告未回填时不产生布局跳动（§6.2 loading 态容器尺寸不变） */
}

/* @bp L 小桌面 · ≤1024 */
@media (max-width: 1024px) {
  .ad-slot {
    margin: var(--space-5) 0;
  }
}

/* ---------- 动效偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
  .sub-skeleton,
  .sub-btn.is-busy::before,
  .sub-toast {
    animation: none;
  }

  .sub-btn {
    transition: none;
  }
}
