/* ==========================================================================
   梯子go (TIZI GO) - 官方独立设计系统规范 (Design System & Stylesheet)
   ==========================================================================
   架构定位：专为科学上网导航、技术规格归档与新手选型打造的现代化、高可读性深色科技主题
   核心理念：内容优先 · 层次分明 · 严谨克制 · 极致易读 · 无障碍兼顾
   ========================================================================== */

/* ==========================================================================
   梯子go (TIZI GO) - 官方独立设计系统规范 (Dual-Theme Design System)
   ==========================================================================
   架构定位：专为科学上网导航、技术规格归档与选型指南打造的现代化、高可读性双色彩主题系统
   核心理念：内容优先 · 极简优雅 · 严谨克制 · 极致易读 · 100% 兼顾 WCAG AA 4.5:1+ 无障碍标准
   ========================================================================== */

/* 1. 默认主题 (Dark Theme - 深色科技蓝黑基调) */
:root {
  --theme-mode: "dark";
  color-scheme: dark;

  /* 背景色阶 */
  --bg-base: #0a0f1d;
  --bg-surface: #111827;
  --bg-card: #162032;
  --bg-card-hover: #1c283e;
  --bg-card-alt: #131d2e;
  --bg-muted: #1e293b;
  --bg-input: #0d1526;
  --bg-overlay: rgba(10, 15, 29, 0.75);

  /* 边框色阶 */
  --border-subtle: #1e293b;
  --border-card: #27354f;
  --border-focus: #38bdf8;
  --border-strong: #334155;

  /* 文字色阶 (WCAG AA 4.5:1+) */
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --text-inverse: #0f172a;

  /* 品牌与功能色 */
  --color-primary: #0284c7;
  --color-primary-hover: #0369a1;
  --color-accent: #38bdf8;
  --color-accent-hover: #7dd3fc;
  --color-cyan: #06b6d4;
  --color-emerald: #10b981;
  --color-amber: #f59e0b;
  --color-rose: #fb7185;
  --color-price: #fb7185;

  /* 组件专用色彩变量 */
  --table-th-bg: #111a2e;
  --table-th-color: #f8fafc;
  --table-td-border: #1e293b;
  --table-td-color: #e2e8f0;
  --table-stripe-bg: rgba(255, 255, 255, 0.02);
  --table-hover-bg: rgba(56, 189, 248, 0.08);
  --table-featured-bg: rgba(0, 210, 255, 0.05);

  --card-header-bg: #121c2d;
  --card-header-border: #1e293b;
  --code-bg: #1e293b;
  --code-color: #38bdf8;
  --code-border: #334155;

  --notice-bg: rgba(2, 132, 199, 0.1);
  --notice-border: rgba(56, 189, 248, 0.35);
  --notice-text: #e0f2fe;

  --tag-bg: #1e293b;
  --tag-color: #94a3b8;
  --tag-border: #27354f;

  /* 阴影色阶 */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.35);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.45), 0 2px 4px -2px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.55), 0 4px 6px -4px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 20px -3px rgba(14, 165, 233, 0.25);

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;

  --sidebar-width: 280px;
  --header-height: 60px;
}

/* 2. 浅色日间主题 (Light Theme - 洁净优雅、高对比度明亮风格) */
[data-theme="light"] {
  --theme-mode: "light";
  color-scheme: light;

  /* 背景色阶 */
  --bg-base: #f1f5f9;
  --bg-surface: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #f8fafc;
  --bg-card-alt: #f8fafc;
  --bg-muted: #e2e8f0;
  --bg-input: #ffffff;
  --bg-overlay: rgba(15, 23, 42, 0.5);

  /* 边框色阶 */
  --border-subtle: #e2e8f0;
  --border-card: #cbd5e1;
  --border-focus: #0284c7;
  --border-strong: #94a3b8;

  /* 文字色阶 (WCAG AA 4.5:1+) */
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #475569;
  --text-inverse: #f8fafc;

  /* 品牌与功能色 */
  --color-primary: #0284c7;
  --color-primary-hover: #0369a1;
  --color-accent: #0284c7;
  --color-accent-hover: #0369a1;
  --color-cyan: #0891b2;
  --color-emerald: #059669;
  --color-amber: #d97706;
  --color-rose: #e11d48;
  --color-price: #dc2626;

  /* 组件专用色彩变量 */
  --table-th-bg: #f8fafc;
  --table-th-color: #0f172a;
  --table-td-border: #e2e8f0;
  --table-td-color: #1e293b;
  --table-stripe-bg: #f8fafc;
  --table-hover-bg: #f0f9ff;
  --table-featured-bg: #f0fdf4;

  --card-header-bg: #f8fafc;
  --card-header-border: #e2e8f0;
  --code-bg: #f1f5f9;
  --code-color: #0369a1;
  --code-border: #cbd5e1;

  --notice-bg: #f0f9ff;
  --notice-border: #7dd3fc;
  --notice-text: #0369a1;

  --tag-bg: #f1f5f9;
  --tag-color: #334155;
  --tag-border: #cbd5e1;

  /* 阴影色阶 */
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-glow: 0 0 20px -3px rgba(2, 132, 199, 0.12);
}

/* 3. 系统浅色偏好在无 JS 时的自然应用 (No-JS Fallback) */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --theme-mode: "light";
    color-scheme: light;
    --bg-base: #f1f5f9;
    --bg-surface: #ffffff;
    --bg-card: #ffffff;
    --bg-card-hover: #f8fafc;
    --bg-card-alt: #f8fafc;
    --bg-muted: #e2e8f0;
    --bg-input: #ffffff;
    --bg-overlay: rgba(15, 23, 42, 0.5);
    --border-subtle: #e2e8f0;
    --border-card: #cbd5e1;
    --border-focus: #0284c7;
    --border-strong: #94a3b8;
    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-muted: #475569;
    --text-inverse: #f8fafc;
    --color-primary: #0284c7;
    --color-primary-hover: #0369a1;
    --color-accent: #0284c7;
    --color-accent-hover: #0369a1;
    --color-cyan: #0891b2;
    --color-emerald: #059669;
    --color-amber: #d97706;
    --color-rose: #e11d48;
    --color-price: #dc2626;
    --table-th-bg: #f8fafc;
    --table-th-color: #0f172a;
    --table-td-border: #e2e8f0;
    --table-td-color: #1e293b;
    --table-stripe-bg: #f8fafc;
    --table-hover-bg: #f0f9ff;
    --table-featured-bg: #f0fdf4;
    --card-header-bg: #f8fafc;
    --card-header-border: #e2e8f0;
    --code-bg: #f1f5f9;
    --code-color: #0369a1;
    --code-border: #cbd5e1;
    --notice-bg: #f0f9ff;
    --notice-border: #7dd3fc;
    --notice-text: #0369a1;
    --tag-bg: #f1f5f9;
    --tag-color: #334155;
    --tag-border: #cbd5e1;
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
    --shadow-glow: 0 0 20px -3px rgba(2, 132, 199, 0.12);
  }
}


/* 2. 基础重置与全局排版 */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.7;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease;
}

a:hover {
  color: #7dd3fc;
}

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--border-focus);
  outline-offset: 2px;
}

img, svg {
  vertical-align: middle;
  max-width: 100%;
}

/* 3. 布局架构 (App Layout) */
.mobile-header {
  display: none;
}

.app-container {
  display: flex;
  min-height: 100vh;
  width: 100%;
}

/* 左侧固定侧边栏 (Sidebar) */
.sidebar {
  width: var(--sidebar-width);
  min-width: var(--sidebar-width);
  background-color: var(--bg-surface);
  border-right: 1px solid var(--border-subtle);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border-card) transparent;
  z-index: 50;
}

.sidebar::-webkit-scrollbar {
  width: 5px;
}
.sidebar::-webkit-scrollbar-thumb {
  background: var(--border-card);
  border-radius: 4px;
}

.sidebar-mobile-close {
  display: none;
}

.sidebar-brand {
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.sidebar-title {
  margin-top: 0.75rem;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.sidebar-title a {
  color: var(--text-primary);
}

.sidebar-tagline {
  color: var(--text-secondary);
  font-size: 0.8rem;
  margin-top: 0.35rem;
  font-weight: 500;
}

/* 侧边栏导航分类 */
.sidebar-nav {
  flex: 1;
}

.nav-heading {
  color: var(--text-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 0.65rem;
  padding-left: 0.75rem;
  font-weight: 700;
}

.nav-list {
  list-style: none;
  margin-bottom: 1.75rem;
}

.nav-item {
  margin-bottom: 0.25rem;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.85rem;
  color: var(--text-secondary);
  font-size: 0.92rem;
  font-weight: 500;
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
}

.nav-link:hover {
  background-color: var(--bg-card);
  color: var(--text-primary);
  transform: translateX(3px);
}

.nav-link.active {
  background-color: rgba(2, 132, 199, 0.15);
  color: var(--color-accent);
  border: 1px solid rgba(56, 189, 248, 0.25);
  font-weight: 600;
}

.nav-icon {
  font-size: 1.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
}

/* 侧边栏推广卡片 (Sidebar Promo) */
.sidebar-promo {
  background: linear-gradient(145deg, #162032 0%, #0d1526 100%);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1rem;
  text-align: center;
  margin-top: auto;
  position: relative;
  box-shadow: var(--shadow-sm);
}

.sidebar-promo-badge {
  display: inline-block;
  background-color: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.35);
  font-size: 0.72rem;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.sidebar-promo h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
}

.sidebar-promo p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.4;
  margin-bottom: 0.85rem;
}

.sidebar-promo .btn-cta {
  display: block;
  background: linear-gradient(135deg, #0369a1 0%, #075985 100%);
  color: #ffffff !important;
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  font-weight: 700;
  transition: all var(--transition-fast);
  box-shadow: 0 2px 4px rgba(3, 105, 161, 0.35);
  text-decoration: none;
  text-align: center;
}

.sidebar-promo .btn-cta:hover {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff !important;
  box-shadow: 0 4px 8px rgba(3, 105, 161, 0.45);
  transform: translateY(-1px);
}

.sidebar-promo .btn-cta:focus-visible {
  outline: 2px solid var(--border-focus);
  outline-offset: 2px;
}

/* 4. 主内容区域 (Main Wrapper) */
.main-wrapper {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.content-container {
  flex: 1;
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  padding: 2.5rem 2.5rem 4rem;
}

/* 面包屑导航 (Breadcrumbs) */
.breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
}

.breadcrumbs a {
  color: var(--text-secondary);
}

.breadcrumbs a:hover {
  color: var(--color-accent);
}

.breadcrumbs .current {
  color: var(--text-primary);
  font-weight: 600;
}

/* 5. 首页 Hero 区域与公告栏 */
.hero-section {
  background: linear-gradient(160deg, #131d2e 0%, #0d1526 100%);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  padding: 2.75rem 2.25rem;
  margin-bottom: 2.75rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.hero-section::before {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background-color: rgba(56, 189, 248, 0.12);
  color: var(--color-accent);
  border: 1px solid rgba(56, 189, 248, 0.25);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.3rem 0.85rem;
  border-radius: 9999px;
  margin-bottom: 1.25rem;
}

.hero-title {
  font-size: 2.15rem;
  font-weight: 900;
  line-height: 1.3;
  color: var(--text-primary);
  margin-bottom: 1rem;
  letter-spacing: -0.5px;
}

.hero-description {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 860px;
  margin-bottom: 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, #0369a1 0%, #075985 100%);
  color: #ffffff;
  box-shadow: 0 2px 4px rgba(3, 105, 161, 0.35);
  font-weight: 700;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(3, 105, 161, 0.45);
}

.btn-primary:focus-visible {
  outline: 2px solid var(--border-focus);
  outline-offset: 2px;
}

.btn-secondary {
  background-color: var(--bg-muted);
  color: var(--text-primary);
  border-color: var(--border-card);
}

.btn-secondary:hover {
  background-color: var(--bg-card-hover);
  border-color: var(--border-focus);
  color: var(--color-accent);
}

/* 6. 服务商对比模块与卡片系统 (Provider Cards) */
.provider-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.provider-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  transition: all 0.25s ease;
  position: relative;
  box-shadow: var(--shadow-sm);
}

.provider-card:hover {
  border-color: rgba(56, 189, 248, 0.4);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.provider-card.featured {
  border: 1.5px solid var(--color-primary);
  background: linear-gradient(175deg, #182438 0%, #131c2d 100%);
}

.provider-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.1rem;
}

.provider-title-group {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 800;
  border-radius: var(--radius-sm);
  letter-spacing: 0.5px;
}

.rank-badge.rank-1 {
  background-color: #dc2626;
  color: #ffffff;
}

.rank-badge.rank-2 {
  background-color: #c2410c;
  color: #ffffff;
}

.rank-badge.rank-3 {
  background-color: #b45309;
  color: #ffffff;
}

.rank-badge.rank-5 {
  background-color: #fbbf24;
  color: #0c1524;
  font-weight: 800;
}

.comparison-grid-table td.col-rank {
  background: transparent !important;
}

.rank-default {
  background-color: var(--bg-muted);
  color: var(--text-secondary);
  border: 1px solid var(--border-card);
}

.provider-name {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0;
}

.provider-price {
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--color-accent);
}

.provider-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.feature-tag {
  background-color: rgba(2, 132, 199, 0.1);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  font-size: 0.8rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
}

.provider-summary {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.provider-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--border-subtle);
}

.coupon-box {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.35rem 0.75rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.coupon-code {
  font-family: var(--font-mono);
  font-weight: 700;
  color: #fbbf24;
  letter-spacing: 0.5px;
}

.btn-copy {
  background: var(--bg-muted);
  border: 1px solid var(--border-card);
  color: var(--text-primary);
  font-size: 0.75rem;
  padding: 0.25rem 0.55rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-copy:hover {
  background: var(--color-primary);
  color: #ffffff;
}

/* 7. 表格系统 (Structured Tables & Comparison Tables) */
.comparison-table-wrapper,
.table-wrapper,
.table-responsive {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  position: relative;
  margin: 1.5rem 0 2rem;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  background-color: var(--bg-card);
  box-shadow: var(--shadow-sm);
}

.comparison-table-wrapper:focus,
.comparison-table-wrapper:focus-visible,
.table-wrapper:focus,
.table-wrapper:focus-visible,
.table-responsive:focus,
.table-responsive:focus-visible {
  outline: 2px solid var(--border-focus);
  outline-offset: 2px;
}

table,
.comparison-grid-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 15px; /* 表格正文至少 15px */
}

.comparison-grid-table {
  min-width: 780px;
}

thead {
  background-color: #121c2d;
  border-bottom: 2px solid var(--border-card);
}

th {
  padding: 1rem 1.15rem;
  font-weight: 700;
  color: #f1f5f9;
  letter-spacing: 0.5px;
  white-space: nowrap;
  font-size: 14.5px;
}

td {
  padding: 0.95rem 1.15rem;
  border-bottom: 1px solid var(--border-subtle);
  color: #cbd5e1; /* 提高亮度，对比度 10.99:1 */
  line-height: 1.6; /* 行高不低于 1.6 */
}

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

/* 隔行斑马纹 */
.comparison-grid-table tbody tr:nth-child(even) {
  background-color: rgba(255, 255, 255, 0.02);
}

/* 悬停状态：高亮同时确保文字始终清晰 */
.comparison-grid-table tbody tr:hover {
  background-color: rgba(2, 132, 199, 0.08);
}

/* 特色行背景柔和微调 */
.comparison-grid-table tr.row-featured {
  background: rgba(0, 210, 255, 0.06);
}
.comparison-grid-table tr.row-featured:hover {
  background: rgba(0, 210, 255, 0.1);
}

.comparison-grid-table tr.row-highlight-blue {
  background: rgba(2, 132, 199, 0.05);
}
.comparison-grid-table tr.row-highlight-blue:hover {
  background: rgba(2, 132, 199, 0.09);
}

.comparison-grid-table tr.row-highlight-amber {
  background: rgba(245, 158, 11, 0.05);
}
.comparison-grid-table tr.row-highlight-amber:hover {
  background: rgba(245, 158, 11, 0.09);
}

.comparison-grid-table tr.row-highlight-green {
  background: rgba(16, 185, 129, 0.05);
}
.comparison-grid-table tr.row-highlight-green:hover {
  background: rgba(16, 185, 129, 0.09);
}

/* 表格单元格统一内边距与边框 */
.comparison-grid-table th,
.comparison-grid-table td {
  padding: 0.95rem 1.15rem;
  border: 1px solid var(--border-subtle);
  vertical-align: middle;
  line-height: 1.6;
}

.comparison-grid-table td.col-center,
.comparison-grid-table th.col-center {
  text-align: center;
}

.comparison-grid-table td.col-nowrap,
.comparison-grid-table th.col-nowrap {
  white-space: nowrap;
}

/* 1. 排名列样式 */
.comparison-grid-table .col-rank {
  font-weight: 700;
  color: #cbd5e1;
  font-size: 15px;
}

.comparison-grid-table .col-rank.rank-1 {
  color: #38bdf8;
  font-weight: 800;
  font-size: 16px;
}

.comparison-grid-table .col-rank.rank-2 {
  color: #f1f5f9;
  font-weight: 800;
}

.comparison-grid-table .col-rank.rank-3 {
  color: #38bdf8;
  font-weight: 800;
}

.comparison-grid-table .col-rank.rank-5 {
  color: #fbbf24;
  font-weight: 800;
}

.comparison-grid-table .col-rank.rank-green {
  color: #34d399;
  font-weight: 700;
}

/* 2. 服务商名称列：清晰浅色、适当加粗、保留层级 */
.comparison-grid-table .col-provider {
  font-size: 15px;
  font-weight: 700;
  color: #f8fafc; /* 高对比度冰白 15.6:1 */
}

.comparison-grid-table .provider-name-text {
  font-weight: 700;
  color: #f8fafc;
}

.comparison-grid-table .col-provider.provider-featured .provider-name-text {
  color: #ffffff;
  font-weight: 800;
}

.comparison-grid-table .col-provider.provider-blue .provider-name-text {
  color: #38bdf8;
}

.comparison-grid-table .col-provider.provider-amber .provider-name-text {
  color: #fbbf24;
}

.comparison-grid-table .col-provider.provider-green .provider-name-text {
  color: #34d399;
}

/* 主推标签 */
.comparison-grid-table .badge-featured {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  background-color: #00d2ff;
  color: #0c1524;
  padding: 1px 5px;
  border-radius: 3px;
  margin-left: 5px;
  vertical-align: 1px;
  letter-spacing: 0.5px;
}

/* 3. 线路架构列与流量规格列 */
.comparison-grid-table .col-arch {
  color: #e2e8f0;
  font-size: 15px;
}

.comparison-grid-table .col-traffic {
  color: #cbd5e1;
  font-size: 15px;
  font-weight: 600;
}

/* 4. 起步价格列：高对比度强调色 */
.comparison-grid-table .col-price {
  font-weight: 700;
  font-size: 15px;
  color: #fb7185; /* 明亮鲜活 Coral Rose，对比度 6.06:1 (AA标准) */
}

.comparison-grid-table .col-price.price-featured {
  color: #38bdf8; /* Sky-400，7.62:1 */
  font-weight: 800;
}

.comparison-grid-table .col-price.price-budget {
  color: #34d399; /* Emerald-400，8.49:1 */
  font-weight: 700;
}

.comparison-grid-table .price-discount {
  font-size: 0.84rem;
  color: #94a3b8;
  font-weight: 500;
  margin-left: 2px;
}

/* 5. 优惠码列：清晰字体、避免过细过暗 */
.comparison-grid-table .col-coupon {
  font-size: 14.5px;
  color: #cbd5e1;
}

.comparison-grid-table .col-coupon code {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.92rem;
  color: #fbbf24; /* 温暖明亮金色 9.78:1 对比度 */
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(251, 191, 36, 0.35);
  border-radius: var(--radius-sm);
  padding: 0.2rem 0.5rem;
  letter-spacing: 0.5px;
  display: inline-block;
}

.comparison-grid-table .coupon-note {
  font-size: 0.82rem;
  color: #94a3b8;
  margin-left: 4px;
}

.comparison-grid-table .coupon-none {
  color: #94a3b8;
  font-size: 0.88rem;
}

/* 6. 按钮组件与无障碍焦点 */
.comparison-grid-table .btn-detail {
  display: inline-block;
  background: var(--bg-muted);
  color: #f1f5f9;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  padding: 0.35rem 0.7rem;
  font-size: 0.85rem;
  white-space: nowrap;
  text-decoration: none;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.comparison-grid-table .btn-detail:hover {
  background: var(--color-primary);
  color: #ffffff;
  border-color: var(--color-primary);
}

.comparison-grid-table .btn-detail:focus-visible {
  outline: 2px solid var(--border-focus);
  outline-offset: 2px;
}

.comparison-grid-table .btn-register {
  display: inline-block;
  background: linear-gradient(135deg, #0369a1 0%, #075985 100%);
  color: #ffffff !important;
  border-radius: var(--radius-sm);
  padding: 0.35rem 0.8rem;
  font-size: 0.85rem;
  white-space: nowrap;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 1px 3px rgba(3, 105, 161, 0.4);
  transition: all var(--transition-fast);
}

.comparison-grid-table .btn-register:hover {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  transform: translateY(-1px);
}

.comparison-grid-table .btn-register:focus-visible {
  outline: 2px solid var(--border-focus);
  outline-offset: 2px;
}

.comparison-grid-table .btn-register-featured {
  background: #00d2ff !important;
  color: #0c1524 !important;
  font-weight: 800;
  box-shadow: 0 1px 4px rgba(0, 210, 255, 0.4);
}

.comparison-grid-table .btn-register-featured:hover {
  background: #38bdf8 !important;
  color: #0c1524 !important;
}

.mobile-table-hint {
  display: none;
  padding: 0.65rem 1rem;
  background: rgba(2, 132, 199, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  font-size: 0.85rem;
  color: #38bdf8;
  font-weight: 600;
  text-align: center;
}
/* 8. 文章内容与排版 (Article Typography) */
.article-post {
  background-color: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  padding: 3rem 3rem 4rem;
  box-shadow: var(--shadow-sm);
}

.page-title {
  font-size: 2.1rem;
  font-weight: 900;
  color: var(--text-primary);
  line-height: 1.35;
  margin-bottom: 1rem;
  letter-spacing: -0.5px;
}

.article-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border-subtle);
}

.article-body {
  color: var(--text-secondary);
  font-size: 1.02rem;
  line-height: 1.8;
}

.article-body p {
  margin-bottom: 1.35rem;
}

.article-body h2 {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-top: 2.75rem;
  margin-bottom: 1.1rem;
  padding-left: 0.85rem;
  border-left: 4px solid var(--color-accent);
}

.article-body h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 2rem;
  margin-bottom: 0.85rem;
}

.article-body ul, .article-body ol {
  margin-bottom: 1.5rem;
  padding-left: 1.75rem;
}

.article-body li {
  margin-bottom: 0.6rem;
}

.article-body strong {
  color: var(--text-primary);
  font-weight: 700;
}

.article-body code {
  font-family: var(--font-mono);
  background-color: var(--bg-input);
  color: #38bdf8;
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
  font-size: 0.9em;
  border: 1px solid rgba(56, 189, 248, 0.2);
}

.article-body pre {
  background-color: var(--bg-input);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}

.article-body pre code {
  background: none;
  border: none;
  padding: 0;
  color: #e2e8f0;
  font-size: 0.9rem;
}

.article-body blockquote {
  background: rgba(2, 132, 199, 0.08);
  border-left: 4px solid var(--color-primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  color: var(--text-secondary);
}

/* 9. 分类文章卡片列表 (Category Post Cards) */
.post-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.post-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
}

.post-card:hover {
  border-color: var(--border-focus);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.post-card-title {
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.45;
  margin-bottom: 0.75rem;
}

.post-card-title a {
  color: var(--text-primary);
}

.post-card-title a:hover {
  color: var(--color-accent);
}

.post-card-summary {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
  flex: 1;
  margin-bottom: 1.25rem;
}

.post-card-meta {
  color: var(--text-muted);
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-subtle);
  padding-top: 0.85rem;
}

/* 10. FAQ 交互折叠系统 */
.faq-section {
  margin: 3rem 0;
}

.faq-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.faq-controls {
  display: flex;
  gap: 0.5rem;
}

.faq-btn {
  background: var(--bg-muted);
  border: 1px solid var(--border-card);
  color: var(--text-secondary);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.faq-btn:hover, .faq-btn.active {
  background: var(--color-primary);
  color: #ffffff;
  border-color: var(--color-primary);
}

.faq-item {
  background-color: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  overflow: hidden;
  transition: all 0.2s ease;
}

.faq-item:hover {
  border-color: rgba(56, 189, 248, 0.3);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.15rem 1.35rem;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.faq-badge-expanded {
  font-size: 0.78rem;
  color: var(--color-accent);
  font-weight: 600;
  white-space: nowrap;
  margin-left: 0.75rem;
}

.faq-answer {
  padding: 0 1.35rem 1.25rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  border-top: 1px solid transparent;
}

.faq-item.collapsed .faq-answer {
  display: none;
}

/* 11. 站点页脚 (Site Footer) */
.site-footer {
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  padding: 3.5rem 2rem 2.5rem;
  margin-top: auto;
}

.footer-content {
  max-width: 1100px;
  margin: 0 auto;
}

.footer-narrative {
  margin-bottom: 2rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.75;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  margin-bottom: 2rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--border-subtle);
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.88rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--color-accent);
}

.footer-copy {
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.6;
}

/* 12. 响应式布局 (Mobile & Tablet) */
@media (max-width: 960px) {
  .mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
    background-color: var(--bg-surface);
    border-bottom: 1px solid var(--border-subtle);
    padding: 0 1.25rem;
    position: sticky;
    top: 0;
    z-index: 100;
  }

  .mobile-brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    color: var(--text-primary);
    font-size: 1.15rem;
    font-weight: 800;
  }

  .mobile-menu-btn {
    background: var(--bg-muted);
    border: 1px solid var(--border-card);
    color: var(--text-primary);
    padding: 0.45rem 0.85rem;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    cursor: pointer;
  }

  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 290px;
    height: 100vh;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 200;
    box-shadow: 2px 0 12px rgba(0, 0, 0, 0.5);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .sidebar-mobile-close {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-subtle);
  }

  .mobile-close-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
  }

  .btn-close-sidebar {
    background: var(--bg-muted);
    border: none;
    color: var(--text-primary);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 1rem;
    cursor: pointer;
  }

  .mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    z-index: 150;
  }

  .mobile-overlay.active {
    display: block;
  }

  .app-container {
    flex-direction: column;
    width: 100%;
    min-width: 0;
  }

  .main-wrapper {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .content-container {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 1.5rem 1rem 3rem;
  }

  .mobile-table-hint {
  display: none;
  padding: 0.65rem 1rem;
  background: rgba(2, 132, 199, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  font-size: 0.85rem;
  color: #38bdf8;
  font-weight: 600;
  text-align: center;
}

  .comparison-grid-table {
    min-width: 720px;
  }

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

  .hero-actions .btn {
    width: 100%;
    max-width: 100%;
    justify-content: center;
  }

  .provider-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .provider-actions .coupon-box {
    justify-content: space-between;
    width: 100%;
  }

  .provider-actions .btn {
    width: 100%;
    max-width: 100%;
    justify-content: center;
  }

  .hero-section {
    padding: 2rem 1.25rem;
  }

  .hero-title {
    font-size: 1.65rem;
  }

  .provider-card {
    padding: 1.25rem;
  }

  .provider-name {
    font-size: 1.2rem;
  }

  .article-post {
    padding: 1.75rem 1.25rem 2.5rem;
    border-radius: var(--radius-lg);
  }

  .page-title {
    font-size: 1.5rem;
  }

  .post-list {
    grid-template-columns: 1fr;
  }
}

/* 13. 联系方式原生折叠组件 (Contact Details & Summary) */
.contact-details {
  margin: 1.5rem 0 2rem;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  background-color: var(--bg-surface);
  max-width: 620px;
}

.contact-summary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.15rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  background-color: var(--bg-muted);
  cursor: pointer;
  user-select: none;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  outline: none;
}

.contact-summary:hover {
  color: var(--text-primary);
  background-color: rgba(2, 132, 199, 0.15);
}

.contact-summary:focus-visible {
  outline: 2px solid var(--border-focus);
  outline-offset: 2px;
}

.contact-details[open] {
  box-shadow: var(--shadow-sm);
}

.contact-details[open] .contact-summary {
  border-bottom: 1px solid var(--border-subtle);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  margin-bottom: 0.5rem;
}

.contact-card {
  padding: 1rem 1.25rem 1.25rem;
}

.contact-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.contact-label {
  font-size: 0.92rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.contact-value {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  background: var(--bg-input);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-card);
}

.btn-copy-contact {
  background: var(--bg-muted);
  border: 1px solid var(--border-card);
  color: var(--text-primary);
  font-size: 0.82rem;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.btn-copy-contact:hover {
  background: var(--color-primary);
  color: #ffffff;
  border-color: var(--color-primary);
}

.btn-copy-contact:focus-visible {
  outline: 2px solid var(--border-focus);
  outline-offset: 2px;
}

.btn-contact-link {
  display: inline-flex;
  align-items: center;
  font-size: 0.88rem;
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 600;
  padding: 0.35rem 0.5rem;
  transition: color var(--transition-fast);
}

.btn-contact-link:hover {
  color: #7dd3fc;
  text-decoration: underline;
}

.btn-contact-link:focus-visible {
  outline: 2px solid var(--border-focus);
  outline-offset: 2px;
}

.contact-tip {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

/* ==========================================================================
   全站文字可读性与无障碍对比度规范扩展 (WCAG 2.1 AA/AAA Compliance)
   ========================================================================== */

/* 1. 链接与正文区分强化：正文段落内链接自带高辨识度下划线，避免仅依赖微弱色差 */
.article-content p a:not(.btn):not(.btn-primary):not(.btn-secondary):not(.btn-detail):not(.btn-register):not(.nav-link),
.prose p a:not(.btn):not(.btn-primary):not(.btn-secondary):not(.btn-detail):not(.btn-register):not(.nav-link),
main p a:not(.btn):not(.btn-primary):not(.btn-secondary):not(.btn-detail):not(.btn-register):not(.nav-link) {
  text-decoration: underline;
  text-decoration-color: rgba(56, 189, 248, 0.5);
  text-underline-offset: 3px;
  color: var(--color-accent);
  transition: all var(--transition-fast);
}

.article-content p a:not(.btn):not(.btn-primary):not(.btn-secondary):not(.btn-detail):not(.btn-register):not(.nav-link):hover,
.prose p a:not(.btn):not(.btn-primary):not(.btn-secondary):not(.btn-detail):not(.btn-register):not(.nav-link):hover,
main p a:not(.btn):not(.btn-primary):not(.btn-secondary):not(.btn-detail):not(.btn-register):not(.nav-link):hover {
  text-decoration-color: var(--color-accent);
  color: #7dd3fc;
}

/* 2. FAQ 元信息区域 */
.faq-meta {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.faq-meta a {
  color: var(--color-accent);
  text-decoration: none;
}

.faq-meta a:hover {
  color: #7dd3fc;
  text-decoration: underline;
}

/* 3. 分类页导言样式 */
.category-lead {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 2rem;
}

/* 4. 服务商聚合卡片规范 (.provider-card-hub) */
.provider-card-hub {
  border: 1px solid var(--border-card);
  background-color: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.provider-card-hub:hover {
  border-color: var(--border-focus);
  box-shadow: var(--shadow-md);
}

.provider-card-hub.featured {
  border: 2px solid var(--color-primary);
  box-shadow: 0 0 15px rgba(2, 132, 199, 0.15);
}

.provider-hub-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.75rem;
}

.provider-hub-title-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.provider-hub-rank {
  display: inline-block;
  width: 28px;
  height: 28px;
  line-height: 28px;
  text-align: center;
  background: var(--bg-muted);
  color: #ffffff;
  font-weight: 800;
  border-radius: 50%;
  font-size: 0.85rem;
  border: 1px solid var(--border-card);
}

.provider-card-hub.featured .provider-hub-rank {
  background: #0369a1;
  color: #ffffff;
}

.provider-hub-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
}

.provider-hub-title a {
  color: var(--text-primary);
  text-decoration: none;
}

.provider-hub-title a:hover {
  color: var(--color-accent);
}

.provider-hub-badge {
  background: linear-gradient(135deg, #0369a1, #075985);
  color: #ffffff;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
}

.provider-hub-badge-secondary {
  background: var(--bg-muted);
  color: var(--text-secondary);
  border: 1px solid var(--border-card);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
}

.provider-hub-price {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fb7185;
}

.provider-hub-desc {
  font-size: 15px;
  color: #cbd5e1;
  line-height: 1.6;
  margin: 0.75rem 0 0;
}

.provider-hub-desc strong {
  color: var(--text-primary);
}

.provider-hub-coupon {
  margin-top: 0.6rem;
  font-size: 0.88rem;
  color: #38bdf8;
  background: rgba(15, 23, 42, 0.75);
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px dashed rgba(56, 189, 248, 0.35);
  display: inline-block;
}

.provider-hub-coupon code {
  color: #fbbf24;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.95rem;
  margin: 0 4px;
}

.provider-hub-coupon .coupon-note {
  color: var(--text-secondary);
  font-size: 0.82rem;
  margin-left: 4px;
}

.provider-hub-packages {
  margin-top: 0.5rem;
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.provider-hub-packages strong {
  color: #e2e8f0;
}

.provider-hub-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
  align-items: center;
  justify-content: flex-end;
}

/* 5. 榜单与评测卡片规范 (.airport-card) */
.airport-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-card);
  border-left: 6px solid var(--color-primary);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  margin-bottom: 1rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.airport-card:hover {
  box-shadow: var(--shadow-md);
}

.airport-card-header {
  background-color: #121c2d;
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.airport-card-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.airport-badge {
  background: var(--bg-muted);
  color: var(--text-primary);
  border: 1px solid var(--border-card);
  font-weight: 800;
  font-size: 0.85rem;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
}

.airport-badge.badge-top1 {
  background: rgba(251, 191, 36, 0.15);
  color: #fbbf24;
  border-color: rgba(251, 191, 36, 0.4);
}

.airport-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
}

.airport-price-tag {
  font-size: 0.92rem;
  font-weight: 700;
  color: #fb7185;
  background: rgba(251, 113, 133, 0.12);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(251, 113, 133, 0.35);
  white-space: nowrap;
}

.airport-card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  flex-grow: 1;
}

.airport-field {
  display: flex;
  align-items: flex-start;
  font-size: 14.5px;
  line-height: 1.6;
  color: #cbd5e1;
}

.airport-field-label {
  font-weight: 700;
  color: var(--text-secondary);
  white-space: nowrap;
  flex-shrink: 0;
  margin-right: 0.4rem;
}

.airport-field-val {
  color: var(--text-primary);
  word-break: break-word;
}

.airport-card-footer {
  padding: 0.85rem 1.25rem;
  background-color: #121c2d;
  border-top: 1px dashed var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: auto;
}



/* ==========================================================================
   主题切换器组件 (Theme Switcher Components)
   ========================================================================== */

/* 1. 桌面侧边栏主题控制卡片 (.sidebar-theme-toggle) */
.sidebar-theme-toggle {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 0.85rem 0.75rem;
  margin: 1.25rem 0 1rem 0;
  box-shadow: var(--shadow-sm);
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.theme-toggle-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.6rem;
  padding: 0 0.25rem;
}

.theme-toggle-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.theme-current-badge {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--color-accent);
  background: var(--bg-muted);
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
  border: 1px solid var(--border-subtle);
  transition: all 0.2s ease;
}

.theme-segmented-control {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  background: var(--bg-muted);
  padding: 3px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

.theme-segment-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0.4rem 0.25rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
  min-height: 32px;
}

.theme-segment-btn:hover {
  color: var(--text-primary);
  background: var(--bg-card-hover);
}

.theme-segment-btn:focus-visible {
  outline: 2px solid var(--border-focus);
  outline-offset: 1px;
}

.theme-segment-btn.active,
.theme-segment-btn[aria-checked="true"] {
  background: var(--color-primary);
  color: #ffffff !important;
  font-weight: 700;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  border-color: rgba(255, 255, 255, 0.15);
}

.theme-segment-btn .theme-icon {
  font-size: 0.9rem;
  line-height: 1;
}

/* 2. 手机顶部导航主题切换胶囊 (.mobile-theme-control) */
.mobile-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mobile-theme-control {
  display: inline-flex;
  align-items: center;
  background: var(--bg-muted);
  border: 1px solid var(--border-card);
  border-radius: 20px;
  padding: 2px;
  gap: 2px;
}

.mobile-theme-btn {
  width: 32px;
  height: 32px;
  border-radius: 16px;
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13.5px;
  cursor: pointer;
  color: var(--text-secondary);
  transition: background 0.15s ease, color 0.15s ease, transform 0.1s ease;
  padding: 0;
  line-height: 1;
}

.mobile-theme-btn:hover {
  color: var(--text-primary);
  background: var(--bg-card-hover);
}

.mobile-theme-btn:focus-visible {
  outline: 2px solid var(--border-focus);
  outline-offset: 1px;
}

.mobile-theme-btn.active,
.mobile-theme-btn[aria-checked="true"] {
  background: var(--color-primary);
  color: #ffffff !important;
  font-weight: 700;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

/* 3. 尊重系统的减弱动效偏好 (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;
  }
}



/* ==========================================================================
   浅色日间主题组件专项适配 (Light Theme Specific Component Overrides)
   ========================================================================== */

[data-theme="light"] .sidebar {
  background-color: var(--bg-surface);
  border-right-color: var(--border-subtle);
  scrollbar-color: var(--border-card) transparent;
}

[data-theme="light"] .sidebar-brand {
  border-bottom-color: var(--border-subtle);
}

[data-theme="light"] .sidebar-title a {
  color: var(--text-primary) !important;
}

[data-theme="light"] .nav-link {
  color: var(--text-secondary);
}

[data-theme="light"] .nav-link:hover {
  background-color: #f1f5f9;
  color: var(--text-primary);
}

[data-theme="light"] .nav-link.active {
  background-color: #e0f2fe;
  color: var(--color-primary);
  border-color: #bae6fd;
}

[data-theme="light"] .sidebar-promo {
  background: linear-gradient(145deg, #ffffff 0%, #f1f5f9 100%);
  border-color: var(--border-card);
  box-shadow: var(--shadow-sm);
}

[data-theme="light"] .sidebar-promo-badge {
  background-color: rgba(2, 132, 199, 0.1);
  color: var(--color-primary);
  border-color: rgba(2, 132, 199, 0.3);
}

[data-theme="light"] .hero-section {
  background: linear-gradient(160deg, #ffffff 0%, #f8fafc 100%);
  border-color: var(--border-subtle);
  box-shadow: var(--shadow-sm);
}

[data-theme="light"] .hero-badge {
  background-color: #e0f2fe;
  color: var(--color-primary);
  border-color: #bae6fd;
}

[data-theme="light"] .hero-notice {
  background: var(--notice-bg);
  border-color: var(--notice-border);
  color: var(--notice-text);
}

[data-theme="light"] .provider-card {
  background-color: var(--bg-card);
  border-color: var(--border-card);
  box-shadow: var(--shadow-sm);
}

[data-theme="light"] .provider-card.featured {
  background: #ffffff;
  border-color: var(--color-primary);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.12);
}

[data-theme="light"] .feature-tag {
  background-color: #f1f5f9;
  color: #334155;
  border-color: #cbd5e1;
}

[data-theme="light"] .coupon-box {
  background-color: #f8fafc;
  border-color: #cbd5e1;
  color: #475569;
}

[data-theme="light"] .coupon-code {
  color: #b45309;
}

[data-theme="light"] .btn-copy {
  background-color: #e2e8f0;
  color: #0f172a;
  border-color: #cbd5e1;
}

[data-theme="light"] .btn-copy:hover {
  background-color: #cbd5e1;
  color: #0f172a;
}

[data-theme="light"] .comparison-table-wrapper {
  background: #ffffff;
  border-color: var(--border-card);
  box-shadow: var(--shadow-sm);
}

[data-theme="light"] .comparison-grid-table thead th {
  background-color: var(--table-th-bg);
  color: var(--table-th-color);
  border-bottom: 2px solid var(--border-card);
}

[data-theme="light"] .comparison-grid-table td {
  border-bottom-color: var(--table-td-border);
  color: var(--table-td-color);
}

[data-theme="light"] .comparison-grid-table tbody tr:nth-child(even) {
  background-color: var(--table-stripe-bg);
}

[data-theme="light"] .comparison-grid-table tbody tr:hover {
  background-color: var(--table-hover-bg);
}

[data-theme="light"] .comparison-grid-table tr.row-featured {
  background-color: var(--table-featured-bg);
}

[data-theme="light"] .comparison-grid-table .col-rank {
  color: var(--text-secondary);
}

[data-theme="light"] .comparison-grid-table .col-rank.rank-1 {
  color: #b45309;
}

[data-theme="light"] .comparison-grid-table .col-rank.rank-2 {
  color: #c2410c;
}

[data-theme="light"] .comparison-grid-table .col-rank.rank-3 {
  color: #0284c7;
}

[data-theme="light"] .comparison-grid-table .provider-name-text {
  color: var(--text-primary);
}

[data-theme="light"] .comparison-grid-table .col-provider.provider-featured .provider-name-text {
  color: #0f172a;
}

[data-theme="light"] .comparison-grid-table .col-provider.provider-blue .provider-name-text {
  color: #0284c7;
}

[data-theme="light"] .comparison-grid-table .col-provider.provider-amber .provider-name-text {
  color: #b45309;
}

[data-theme="light"] .comparison-grid-table .col-provider.provider-green .provider-name-text {
  color: #047857;
}

[data-theme="light"] .comparison-grid-table .badge-featured {
  background-color: #0284c7;
  color: #ffffff;
}

[data-theme="light"] .comparison-grid-table .col-arch {
  color: var(--text-primary);
}

[data-theme="light"] .comparison-grid-table .col-traffic {
  color: var(--text-secondary);
}

[data-theme="light"] .comparison-grid-table .col-price {
  color: var(--color-price);
}

[data-theme="light"] .comparison-grid-table .col-price.price-featured {
  color: #0284c7;
}

[data-theme="light"] .comparison-grid-table .col-price.price-budget {
  color: #059669;
}

[data-theme="light"] .comparison-grid-table .price-discount {
  color: #64748b;
}

[data-theme="light"] .comparison-grid-table .col-coupon {
  color: var(--text-secondary);
}

[data-theme="light"] .comparison-grid-table .col-coupon code {
  color: #0284c7;
  background-color: #f1f5f9;
  border-color: #cbd5e1;
}

[data-theme="light"] .comparison-grid-table .coupon-note {
  color: #64748b;
}

[data-theme="light"] .comparison-grid-table .coupon-none {
  color: #94a3b8;
}

[data-theme="light"] .comparison-grid-table .btn-detail {
  background: #f1f5f9;
  color: #0284c7;
  border-color: #cbd5e1;
}

[data-theme="light"] .comparison-grid-table .btn-detail:hover {
  background: #e0f2fe;
  color: #0369a1;
  border-color: #bae6fd;
}

[data-theme="light"] .provider-card-hub {
  background-color: var(--bg-card);
  border-color: var(--border-card);
  box-shadow: var(--shadow-sm);
}

[data-theme="light"] .provider-card-hub.featured {
  background-color: #ffffff;
  border-color: var(--color-primary);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.1);
}

[data-theme="light"] .provider-hub-badge-secondary {
  background-color: #e2e8f0;
  color: #334155;
  border-color: #cbd5e1;
}

[data-theme="light"] .provider-hub-price {
  color: var(--color-price);
}

[data-theme="light"] .provider-hub-desc {
  color: var(--text-secondary);
}

[data-theme="light"] .provider-hub-desc strong {
  color: var(--text-primary);
}

[data-theme="light"] .provider-hub-packages strong {
  color: var(--text-primary);
}

[data-theme="light"] .provider-hub-coupon {
  color: #0284c7;
}

[data-theme="light"] .provider-hub-coupon code {
  color: #b45309;
  background-color: #fef3c7;
  border-color: #fde68a;
}

[data-theme="light"] .provider-hub-actions .btn-detail {
  background-color: #f1f5f9;
  color: #0284c7;
  border-color: #cbd5e1;
}

[data-theme="light"] .provider-hub-actions .btn-detail:hover {
  background-color: #e0f2fe;
  color: #0369a1;
  border-color: #bae6fd;
}

[data-theme="light"] .airport-card {
  background-color: var(--bg-card);
  border-color: var(--border-card);
  box-shadow: var(--shadow-sm);
}

[data-theme="light"] .airport-card-header {
  background-color: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

[data-theme="light"] .airport-card-footer {
  background-color: #f8fafc;
  border-top: 1px solid #e2e8f0;
}

[data-theme="light"] .airport-name {
  color: var(--text-primary);
}

[data-theme="light"] .airport-badge {
  background: #e2e8f0;
  color: #0f172a;
  border-color: #cbd5e1;
}

[data-theme="light"] .airport-badge.badge-top1 {
  background: #fef3c7;
  color: #b45309;
  border-color: #fcd34d;
}

[data-theme="light"] .airport-badge.badge-top2 {
  background: #fed7aa;
  color: #c2410c;
  border-color: #fdba74;
}

[data-theme="light"] .airport-badge.badge-top3 {
  background: #fed7aa;
  color: #b45309;
  border-color: #fdba74;
}

[data-theme="light"] .airport-badge.badge-top4 {
  background: #e0f2fe;
  color: #0284c7;
  border-color: #bae6fd;
}

[data-theme="light"] .airport-price-tag {
  color: #dc2626;
  background: #fee2e2;
  border-color: #fca5a5;
}

[data-theme="light"] .airport-field {
  color: var(--text-secondary);
}

[data-theme="light"] .airport-field-label {
  color: var(--text-muted);
}

[data-theme="light"] .airport-field-val {
  color: var(--text-primary);
}

[data-theme="light"] .airport-card-footer .btn-detail {
  background-color: #f1f5f9;
  color: #0284c7;
  border-color: #cbd5e1;
}

[data-theme="light"] .airport-card-footer .btn-detail:hover {
  background-color: #e0f2fe;
  color: #0369a1;
  border-color: #bae6fd;
}

[data-theme="light"] .faq-item {
  background-color: var(--bg-card);
  border-color: var(--border-card);
  box-shadow: var(--shadow-sm);
}

[data-theme="light"] .faq-question {
  color: var(--text-primary);
}

[data-theme="light"] .faq-question:hover {
  background-color: #f8fafc;
}

[data-theme="light"] .faq-answer {
  color: var(--text-secondary);
  border-top-color: #e2e8f0;
}

[data-theme="light"] .faq-meta {
  background-color: #f8fafc;
  border-top-color: #e2e8f0;
  color: #475569;
}

[data-theme="light"] .faq-meta a {
  color: #0284c7;
}

[data-theme="light"] .faq-btn {
  background: #e2e8f0;
  color: #334155;
  border-color: #cbd5e1;
}

[data-theme="light"] .faq-btn:hover,
[data-theme="light"] .faq-btn.active {
  background: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
}

[data-theme="light"] .contact-details {
  background-color: var(--bg-card);
  border-color: var(--border-card);
  box-shadow: var(--shadow-sm);
}

[data-theme="light"] .contact-details summary {
  background-color: #f8fafc;
  color: var(--text-primary);
}

[data-theme="light"] .contact-field-value {
  background-color: #f1f5f9;
  color: var(--text-primary);
  border-color: #cbd5e1;
}

[data-theme="light"] .btn-copy-contact {
  background: #e2e8f0;
  color: var(--text-primary);
  border-color: #cbd5e1;
}

[data-theme="light"] .btn-copy-contact:hover {
  background: #cbd5e1;
  color: #0f172a;
}

[data-theme="light"] .btn-contact-link {
  color: #0284c7;
}

[data-theme="light"] .btn-contact-link:hover {
  color: #0369a1;
}

[data-theme="light"] .site-footer {
  background-color: var(--bg-surface);
  border-top-color: var(--border-subtle);
}

[data-theme="light"] .footer-nav-title {
  color: var(--text-primary);
}

[data-theme="light"] .footer-nav-link {
  color: var(--text-secondary);
}

[data-theme="light"] .footer-nav-link:hover {
  color: var(--color-primary);
}

[data-theme="light"] .footer-desc,
[data-theme="light"] .footer-copyright,
[data-theme="light"] .footer-disclaimer {
  color: var(--text-muted);
}

[data-theme="light"] .post-card {
  background-color: var(--bg-card);
  border-color: var(--border-card);
  box-shadow: var(--shadow-sm);
}

[data-theme="light"] .post-card:hover {
  border-color: var(--color-primary);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.1);
}

[data-theme="light"] .post-title {
  color: var(--text-primary);
}

[data-theme="light"] .post-summary {
  color: var(--text-secondary);
}

[data-theme="light"] .post-date {
  color: var(--text-muted);
}

[data-theme="light"] .mobile-header {
  background-color: var(--bg-surface);
  border-bottom-color: var(--border-subtle);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .mobile-brand span:first-of-type {
  color: var(--text-primary) !important;
}

[data-theme="light"] .mobile-menu-btn {
  background-color: var(--bg-muted);
  color: var(--text-primary);
  border-color: var(--border-card);
}

[data-theme="light"] .mobile-overlay {
  background: var(--bg-overlay);
}

[data-theme="light"] .sidebar-mobile-close {
  background-color: #f8fafc;
  border-bottom-color: #e2e8f0;
}

[data-theme="light"] .mobile-close-title {
  color: var(--text-primary);
}

[data-theme="light"] .btn-close-sidebar {
  background: #e2e8f0;
  color: var(--text-primary);
}

[data-theme="light"] .article-content p a:not(.btn):not(.btn-primary):not(.btn-secondary):not(.btn-detail):not(.btn-register):not(.nav-link),
[data-theme="light"] .prose p a:not(.btn):not(.btn-primary):not(.btn-secondary):not(.btn-detail):not(.btn-register):not(.nav-link),
[data-theme="light"] main p a:not(.btn):not(.btn-primary):not(.btn-secondary):not(.btn-detail):not(.btn-register):not(.nav-link) {
  color: #0284c7;
  border-bottom: 1.5px solid #0284c7;
}

[data-theme="light"] .article-content p a:not(.btn):not(.btn-primary):not(.btn-secondary):not(.btn-detail):not(.btn-register):not(.nav-link):hover,
[data-theme="light"] .prose p a:not(.btn):not(.btn-primary):not(.btn-secondary):not(.btn-detail):not(.btn-register):not(.nav-link):hover,
[data-theme="light"] main p a:not(.btn):not(.btn-primary):not(.btn-secondary):not(.btn-detail):not(.btn-register):not(.nav-link):hover {
  color: #0369a1;
  border-bottom-color: #0369a1;
}

[data-theme="light"] code {
  background-color: var(--code-bg);
  color: var(--code-color);
  border-color: var(--code-border);
}

[data-theme="light"] pre {
  background-color: #f8fafc;
  border-color: #cbd5e1;
}

[data-theme="light"] pre code {
  color: #0f172a;
}

/* Price and Tag Semantic Enhancements for Dual Theme */
.provider-price {
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--color-price);
}

.provider-price.price-featured {
  color: var(--color-accent);
}

[data-theme="light"] .provider-price.price-featured {
  color: #0369a1;
}

.provider-price.price-budget {
  color: #34d399;
}

[data-theme="light"] .provider-price.price-budget {
  color: #047857;
}

.feature-tag.tag-verified {
  color: #34d399;
  font-weight: 700;
}

[data-theme="light"] .feature-tag.tag-verified {
  color: #047857;
  background-color: #ecfdf5;
  border-color: #a7f3d0;
}
