/* ===================================================================
   jichangji.world - 机场集 全球网络加速与评测知识库
   Aesthetic Forest Green & Modern Tech Slate Design System
   =================================================================== */

:root {
  --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;

  /* Colors - Light Theme (Forest Fresh & Clean Obsidian) */
  --bg-body: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-alt: #f1f5f9;
  --bg-card: #ffffff;
  --bg-card-hover: #f0fdf4;
  --border: #e2e8f0;
  --border-focus: #10b981;
  --border-subtle: #edf2f7;

  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-dim: #94a3b8;

  --primary: #059669;
  --primary-light: #10b981;
  --primary-dark: #047857;
  --primary-bg: #ecfdf5;
  --primary-glow: rgba(16, 185, 129, 0.15);

  --accent-blue: #2563eb;
  --accent-blue-bg: #eff6ff;
  --accent-amber: #d97706;
  --accent-amber-bg: #fffbeb;
  --accent-rose: #e11d48;
  --accent-rose-bg: #fff1f2;
  --accent-purple: #7c3aed;
  --accent-purple-bg: #f5f3ff;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.09), 0 8px 10px -6px rgba(0, 0, 0, 0.04);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 22px;
  --radius-full: 9999px;

  --header-height: 64px;
  --sidebar-left-width: 260px;
  --sidebar-right-width: 230px;
  --transition-fast: 0.18s ease;
  --transition-normal: 0.28s ease;
}

/* Dark Theme */
[data-theme="dark"] {
  --bg-body: #0b1120;
  --bg-surface: #0f172a;
  --bg-surface-alt: #1e293b;
  --bg-card: #131c31;
  --bg-card-hover: #16243d;
  --border: #223049;
  --border-focus: #10b981;
  --border-subtle: #1a253a;

  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --primary: #10b981;
  --primary-light: #34d399;
  --primary-dark: #059669;
  --primary-bg: rgba(16, 185, 129, 0.12);
  --primary-glow: rgba(16, 185, 129, 0.25);

  --accent-blue: #60a5fa;
  --accent-blue-bg: rgba(59, 130, 246, 0.15);
  --accent-amber: #fbbf24;
  --accent-amber-bg: rgba(245, 158, 11, 0.15);
  --accent-rose: #fb7185;
  --accent-rose-bg: rgba(244, 63, 94, 0.15);
  --accent-purple: #c084fc;
  --accent-purple-bg: rgba(168, 85, 247, 0.15);

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.5);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
}

/* ================= Base Styles ================= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 20px);
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--primary-dark);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background-color: var(--bg-surface-alt);
  padding: 0.15em 0.45em;
  border-radius: var(--radius-sm);
  color: var(--accent-rose);
  border: 1px solid var(--border);
}

/* ================= Header & Nav ================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-height);
  background-color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background-color var(--transition-fast), border-color var(--transition-fast);
}

[data-theme="dark"] .site-header {
  background-color: rgba(11, 17, 32, 0.9);
}

.header-container {
  max-width: 1560px;
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--text-main);
  text-decoration: none;
  flex-shrink: 0;
}

.brand-icon {
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, #10b981, #047857);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.15rem;
  box-shadow: 0 4px 10px var(--primary-glow);
}

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

.brand-title {
  letter-spacing: -0.02em;
  line-height: 1.1;
  background: linear-gradient(135deg, var(--text-main) 60%, var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-domain {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--primary);
  opacity: 0.9;
  letter-spacing: 0.02em;
}

/* Nav Menu */
.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.main-nav::-webkit-scrollbar {
  display: none;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: var(--radius-md);
  white-space: nowrap;
  transition: all var(--transition-fast);
}

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

.nav-link.active {
  color: var(--primary);
  font-weight: 700;
  background-color: var(--primary-bg);
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.search-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  background-color: var(--bg-surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-size: 0.86rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.search-trigger:hover {
  border-color: var(--primary-light);
  color: var(--text-main);
  background-color: var(--bg-surface);
}

.kbd {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 2px 6px;
  border-radius: 4px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.btn-icon {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.1rem;
  transition: all var(--transition-fast);
}

.btn-icon:hover {
  background-color: var(--bg-surface-alt);
  color: var(--primary);
  border-color: var(--primary-light);
}

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

/* ================= 3-Column Page Layout ================= */
.page-layout {
  max-width: 1560px;
  margin: 0 auto;
  padding: 28px 24px 60px;
  display: grid;
  grid-template-columns: var(--sidebar-left-width) minmax(0, 1fr) var(--sidebar-right-width);
  gap: 36px;
  width: 100%;
  flex: 1;
  position: relative;
}

/* Page Banner/Hero on top of Layout (optional) */
.page-hero-banner {
  margin-bottom: 24px;
  padding: 24px 28px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), rgba(37, 99, 235, 0.05));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}

.page-hero-banner::after {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

/* ================= Column 1: Left Sidebar (目录) ================= */
.sidebar-left {
  position: sticky;
  top: calc(var(--header-height) + 24px);
  height: calc(100vh - var(--header-height) - 48px);
  overflow-y: auto;
  padding-right: 12px;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

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

.sidebar-box {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 16px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
}

.sidebar-title {
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  padding: 0 10px 12px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sidebar-title span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.sidebar-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar-nav-item a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  color: var(--text-main);
  transition: all var(--transition-fast);
}

.sidebar-nav-item a:hover {
  background-color: var(--bg-surface-alt);
  color: var(--primary);
  transform: translateX(3px);
}

.sidebar-nav-item.active a {
  background-color: var(--primary-bg);
  color: var(--primary);
  font-weight: 700;
  border-left: 3px solid var(--primary);
}

.sidebar-badge {
  font-size: 0.72rem;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  background-color: var(--bg-surface-alt);
  color: var(--text-muted);
  font-weight: 600;
}

.sidebar-nav-item.active .sidebar-badge {
  background-color: var(--primary);
  color: #ffffff;
}

.sidebar-quick-card {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), rgba(37, 99, 235, 0.06));
  border: 1px dashed var(--primary-light);
  border-radius: var(--radius-md);
  padding: 14px;
  font-size: 0.82rem;
  margin-top: 16px;
}
.sidebar-quick-card h4 {
  font-size: 0.88rem;
  color: var(--primary-dark);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}
[data-theme="dark"] .sidebar-quick-card h4 {
  color: var(--primary-light);
}

/* ================= Column 2: Center Main Content (内容) ================= */
.main-content {
  min-width: 0; /* avoid grid overflow */
}

.content-header {
  margin-bottom: 28px;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.breadcrumbs a {
  color: var(--text-muted);
}
.breadcrumbs a:hover {
  color: var(--primary);
}
.breadcrumbs span.separator {
  color: var(--text-dim);
}

.content-title {
  font-size: 2.1rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.025em;
  margin-bottom: 14px;
  color: var(--text-main);
}

.content-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Content Typography */
.content-body h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 40px 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-main);
  scroll-margin-top: calc(var(--header-height) + 24px);
  display: flex;
  align-items: center;
  gap: 8px;
}

.content-body h2::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 1.2em;
  background: var(--primary);
  border-radius: 2px;
}

.content-body h3 {
  font-size: 1.22rem;
  font-weight: 600;
  margin: 28px 0 12px;
  color: var(--text-main);
  scroll-margin-top: calc(var(--header-height) + 24px);
}

.content-body p {
  margin-bottom: 16px;
  color: var(--text-main);
  font-size: 1.02rem;
  line-height: 1.75;
}

.content-body ul, .content-body ol {
  margin: 14px 0 20px 24px;
  color: var(--text-main);
}

.content-body li {
  margin-bottom: 8px;
  line-height: 1.68;
}

/* Callout Blocks */
.callout {
  padding: 16px 20px;
  border-radius: var(--radius-md);
  margin: 22px 0;
  border-left: 4px solid var(--primary);
  background-color: var(--bg-surface-alt);
}

.callout-title {
  font-weight: 700;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.callout.tip {
  border-left-color: var(--primary);
  background-color: var(--primary-bg);
}
.callout.tip .callout-title {
  color: var(--primary-dark);
}
[data-theme="dark"] .callout.tip .callout-title {
  color: var(--primary-light);
}

.callout.warning {
  border-left-color: var(--accent-amber);
  background-color: var(--accent-amber-bg);
}
.callout.warning .callout-title {
  color: var(--accent-amber);
}

.callout.info {
  border-left-color: var(--accent-blue);
  background-color: var(--accent-blue-bg);
}
.callout.info .callout-title {
  color: var(--accent-blue);
}

/* ================= Cards & Matrix Grid ================= */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 20px;
  margin: 24px 0 32px;
}

.airport-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  position: relative;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
}

.airport-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary-light);
  box-shadow: var(--shadow-lg), 0 0 20px var(--primary-glow);
}

.card-top-tag {
  position: absolute;
  top: -11px;
  left: 18px;
  padding: 3px 12px;
  font-size: 0.72rem;
  font-weight: 800;
  border-radius: var(--radius-full);
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  box-shadow: 0 2px 6px rgba(217, 119, 6, 0.3);
}

.card-top-tag.tag-emerald {
  background: linear-gradient(135deg, #10b981, #047857);
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.3);
}

.card-top-tag.tag-blue {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  box-shadow: 0 2px 6px rgba(59, 130, 246, 0.3);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
  margin-bottom: 14px;
}

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

.airport-logo {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background-color: var(--bg-surface-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  border: 1px solid var(--border);
}

.airport-name-wrap h3 {
  font-size: 1.15rem;
  margin: 0;
  font-weight: 700;
}

.airport-tagline {
  font-size: 0.76rem;
  color: var(--text-muted);
}

.airport-rating {
  text-align: right;
}

.rating-score {
  font-family: var(--font-mono);
  font-weight: 900;
  color: #f59e0b;
  font-size: 1.15rem;
}

.rating-label {
  font-size: 0.7rem;
  color: var(--text-dim);
}

.card-params {
  background-color: var(--bg-surface-alt);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border: 1px solid var(--border-subtle);
}

.param-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
}

.param-key {
  color: var(--text-muted);
}

.param-val {
  font-weight: 600;
  color: var(--text-main);
}

.param-val.price {
  color: var(--primary);
  font-weight: 800;
  font-size: 0.95rem;
}

.param-val.coupon {
  font-family: var(--font-mono);
  background: var(--accent-amber-bg);
  color: var(--accent-amber);
  border: 1px solid rgba(217, 119, 6, 0.25);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.75rem;
}

.card-highlights {
  list-style: none;
  margin: 0 0 16px 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.card-highlights li {
  font-size: 0.82rem;
  color: var(--text-muted);
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin: 0;
}

.check-icon {
  color: var(--primary);
  font-weight: bold;
}

.card-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: none;
  text-decoration: none;
  text-align: center;
}

.btn-primary {
  background: var(--primary);
  color: #ffffff !important;
  box-shadow: 0 2px 8px var(--primary-glow);
}
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.btn-outline {
  background: var(--bg-surface);
  color: var(--text-main);
  border: 1px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background-color: var(--primary-bg);
}

.btn-sm {
  padding: 5px 10px;
  font-size: 0.78rem;
}

.btn-full {
  width: 100%;
}

/* ================= Tables ================= */
.table-wrapper {
  width: 100%;
  overflow-x: auto;
  margin: 24px 0 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  box-shadow: var(--shadow-sm);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.88rem;
}

.comparison-table th {
  background: var(--bg-surface-alt);
  padding: 14px 16px;
  font-weight: 700;
  color: var(--text-main);
  border-bottom: 2px solid var(--border);
  white-space: nowrap;
}

.comparison-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-main);
  vertical-align: middle;
}

.comparison-table tr:hover td {
  background-color: var(--bg-card-hover);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  font-size: 0.74rem;
  font-weight: 600;
}

.badge-green {
  background-color: var(--primary-bg);
  color: var(--primary-dark);
  border: 1px solid rgba(16, 185, 129, 0.25);
}
[data-theme="dark"] .badge-green {
  color: var(--primary-light);
}

.badge-amber {
  background-color: var(--accent-amber-bg);
  color: var(--accent-amber);
  border: 1px solid rgba(217, 119, 6, 0.25);
}

.badge-blue {
  background-color: var(--accent-blue-bg);
  color: var(--accent-blue);
  border: 1px solid rgba(37, 99, 235, 0.25);
}

/* ================= Column 3: Right Sidebar (大纲 TOC) ================= */
.sidebar-right {
  position: sticky;
  top: calc(var(--header-height) + 24px);
  height: calc(100vh - var(--header-height) - 48px);
  overflow-y: auto;
  padding-left: 6px;
}

.toc-container {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 16px;
  box-shadow: var(--shadow-sm);
}

.toc-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 6px;
}

.toc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-left: 2px solid var(--border);
  padding-left: 10px;
  position: relative;
}

.toc-item a {
  display: block;
  font-size: 0.84rem;
  color: var(--text-muted);
  padding: 4px 6px;
  border-radius: 4px;
  line-height: 1.4;
  transition: all var(--transition-fast);
}

.toc-item a:hover {
  color: var(--primary);
  background-color: var(--bg-surface-alt);
}

.toc-item.active a {
  color: var(--primary);
  font-weight: 700;
  background-color: var(--primary-bg);
}

.toc-item.toc-sub {
  padding-left: 14px;
  font-size: 0.78rem;
}

.toc-actions {
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.back-to-top {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--text-muted);
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px 0;
  transition: color var(--transition-fast);
}
.back-to-top:hover {
  color: var(--primary);
}

/* ================= Coupon Specific ================= */
.coupon-box {
  background: var(--bg-card);
  border: 1px dashed var(--accent-amber);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.coupon-box:hover {
  border-color: var(--primary);
  background-color: var(--bg-card-hover);
}

.coupon-code-pill {
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--accent-amber);
  background: var(--accent-amber-bg);
  padding: 6px 14px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(217, 119, 6, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* ================= Comparison & Coupon Tables ================= */
.table-wrapper {
  overflow-x: auto;
  margin: 20px 0 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  box-shadow: var(--shadow-sm);
  -webkit-overflow-scrolling: touch;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  text-align: left;
  line-height: 1.5;
}

.comparison-table thead th {
  background: var(--bg-surface-alt);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.82rem;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.comparison-table tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-main);
  vertical-align: middle;
}

.comparison-table tbody tr:hover {
  background: var(--bg-card-hover);
}

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

.coupon-table-code {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-amber-bg);
  color: var(--accent-amber);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.92rem;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(217, 119, 6, 0.25);
}

.btn-copy-sm {
  background: var(--primary-bg);
  color: var(--primary-dark);
  border: 1px solid rgba(5, 150, 105, 0.25);
  font-size: 0.76rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

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

/* ================= FAQ Accordion ================= */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 20px 0 32px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.faq-item:hover {
  border-color: var(--primary-light);
}

.faq-question {
  padding: 18px 20px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
  color: var(--text-main);
}

.faq-icon {
  font-size: 1.1rem;
  transition: transform var(--transition-fast);
  color: var(--primary);
}

.faq-item.open .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  display: none;
  padding: 0 20px 20px;
  font-size: 0.94rem;
  color: var(--text-muted);
  line-height: 1.7;
  border-top: 1px solid var(--border-subtle);
  margin-top: 4px;
  padding-top: 14px;
}

.faq-item.open .faq-answer {
  display: block;
}

/* ================= Footer ================= */
.site-footer {
  margin-top: auto;
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border);
  padding: 40px 24px 30px;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.footer-container {
  max-width: 1560px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 30px;
}

.footer-brand h4 {
  font-size: 1.1rem;
  color: var(--text-main);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-brand p {
  line-height: 1.6;
  font-size: 0.85rem;
  max-width: 380px;
}

.footer-col h5 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 14px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.85rem;
}
.footer-links a:hover {
  color: var(--primary);
}

.footer-bottom {
  max-width: 1560px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  flex-wrap: wrap;
  gap: 12px;
}

/* ================= Search Modal ================= */
.search-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 12vh;
  padding-inline: 16px;
}

.search-modal-backdrop.active {
  display: flex;
}

.search-modal {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 620px;
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  animation: modalSlide 0.2s ease-out;
}

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

.search-input-wrap {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  gap: 12px;
}

.search-input-wrap input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-size: 1.05rem;
  color: var(--text-main);
  font-family: inherit;
}

.search-results {
  max-height: 420px;
  overflow-y: auto;
  padding: 12px;
}

.search-result-item {
  padding: 12px 14px;
  border-radius: var(--radius-md);
  display: block;
  color: var(--text-main);
  transition: background-color var(--transition-fast);
}

.search-result-item:hover {
  background-color: var(--primary-bg);
  color: var(--primary);
}

.search-result-item h4 {
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.search-result-item p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
}

.search-footer {
  padding: 10px 16px;
  background: var(--bg-surface-alt);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.76rem;
  color: var(--text-muted);
}

/* ================= Review Article Specific Components ================= */
.review-hero-header {
  background: linear-gradient(135deg, var(--bg-surface) 0%, var(--bg-surface-alt) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.review-hero-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent-blue) 50%, var(--accent-purple) 100%);
}

.review-brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.review-brand-identity {
  display: flex;
  align-items: center;
  gap: 16px;
}

.review-avatar {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 800;
  color: #ffffff;
  box-shadow: var(--shadow-md);
  flex-shrink: 0;
}

.avatar-violet { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }
.avatar-blue { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.avatar-coral { background: linear-gradient(135deg, #f97316, #ea580c); }
.avatar-green { background: linear-gradient(135deg, #10b981, #047857); }

.review-title-group h1 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.25;
  margin: 0;
}

.review-english-name {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
  font-family: var(--font-mono);
}

.review-status-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.review-lead-text {
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--text-main);
  margin-bottom: 16px;
}

.review-metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
  margin: 16px 0;
}

.review-metric-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
}

.metric-label {
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-bottom: 4px;
  font-weight: 600;
  text-transform: uppercase;
}

.metric-value {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary-dark);
}

[data-theme="dark"] .metric-value {
  color: var(--primary-light);
}

.review-action-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px dashed var(--border);
}

/* Network Topology Diagram */
.network-topology {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 14px;
  margin: 18px 0;
  overflow-x: auto;
}

.topology-node {
  flex: 1;
  min-width: 100px;
  text-align: center;
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 8px;
  position: relative;
  transition: all var(--transition-fast);
}

.topology-node:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.topology-step-num {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: var(--primary);
  font-weight: 700;
  display: block;
  margin-bottom: 2px;
}

.topology-node strong {
  font-size: 0.85rem;
  color: var(--text-main);
  display: block;
  white-space: nowrap;
}

.topology-arrow {
  color: var(--text-dim);
  font-size: 1rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* Step Guides */
.guide-steps-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 16px 0;
}

.guide-step-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
}

.guide-step-idx {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary-bg);
  color: var(--primary);
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid var(--border-focus);
}

.guide-step-content {
  font-size: 0.92rem;
  color: var(--text-main);
  line-height: 1.5;
}

/* Article Pagination Nav */
.article-pagination-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 14px;
  align-items: center;
  margin: 32px 0 16px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.pagination-btn {
  display: flex;
  flex-direction: column;
  padding: 14px 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.pagination-btn:hover {
  border-color: var(--primary);
  background: var(--primary-bg);
  transform: translateY(-2px);
}

.pagination-btn.prev {
  text-align: left;
}

.pagination-btn.next {
  text-align: right;
}

.pagination-label {
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.pagination-target-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-main);
}

.pagination-directory-btn {
  padding: 10px 16px;
  border-radius: var(--radius-md);
  background: var(--bg-surface-alt);
  color: var(--text-main);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition-fast);
}

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

/* Reviews index cards */
.reviews-grid-15 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin: 20px 0;
}

.review-item-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all var(--transition-normal);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

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

.review-item-card.unverified {
  border-style: dashed;
  opacity: 0.9;
}

.review-card-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.review-card-avatar {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.3rem;
  color: #fff;
  flex-shrink: 0;
}

.review-card-title h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 2px;
}

.review-card-title .card-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.review-card-desc {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 14px;
  flex-grow: 1;
}

.review-card-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.review-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-subtle);
  padding-top: 12px;
  font-size: 0.82rem;
  color: var(--primary);
  font-weight: 600;
}

@media (max-width: 640px) {
  .article-pagination-nav {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .pagination-btn.prev, .pagination-btn.next {
    text-align: center;
  }
}

/* ================= Toast ================= */
.toast-msg {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--primary-dark);
  color: #ffffff;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  z-index: 3000;
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  transform: translateY(12px);
  transition: all 0.25s ease;
  pointer-events: none;
}

.toast-msg.show {
  opacity: 1;
  transform: translateY(0);
}

/* ================= Responsive Breakpoints ================= */
@media (max-width: 1280px) {
  .page-layout {
    grid-template-columns: var(--sidebar-left-width) minmax(0, 1fr);
  }
  .sidebar-right {
    display: none;
  }
}

@media (max-width: 880px) {
  .site-header .main-nav {
    display: none;
  }
  .mobile-menu-btn {
    display: inline-flex;
  }
  .page-layout {
    grid-template-columns: 1fr;
    padding: 16px 14px 40px;
  }
  .sidebar-left {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background: var(--bg-surface);
    z-index: 1500;
    padding: 20px;
  }
  .sidebar-left.mobile-open {
    display: block;
  }
  .footer-container {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .content-title {
    font-size: 1.6rem;
  }
}

/* ================= Code & Technical Elements ================= */
code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: var(--bg-surface-alt);
  color: var(--accent-rose);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

[data-theme="dark"] code {
  color: #f43f5e;
  background: rgba(244, 63, 94, 0.1);
  border-color: rgba(244, 63, 94, 0.2);
}

pre {
  background: #0f172a;
  color: #e2e8f0;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.6;
  margin: 16px 0 20px;
  border: 1px solid #1e293b;
  box-shadow: var(--shadow-sm);
}

pre code {
  background: transparent;
  color: inherit;
  padding: 0;
  border: none;
  font-size: inherit;
}

/* Download / Resource Action Box */
.download-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin: 16px 0;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.download-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

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

.download-icon {
  font-size: 1.6rem;
  line-height: 1;
}

.download-meta h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 2px;
}

.download-meta p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
}

/* Steps Block */
.step-container {
  margin: 18px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.step-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.step-badge {
  background: var(--primary-bg);
  color: var(--primary-dark);
  font-weight: 800;
  font-size: 0.85rem;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

[data-theme="dark"] .step-badge {
  color: var(--primary-light);
}

.step-content {
  flex-grow: 1;
}

.step-content h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
}

.step-content p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

/* Additional Badges */
.badge-blue {
  background-color: var(--accent-blue-bg);
  color: var(--accent-blue);
  border: 1px solid rgba(37, 99, 235, 0.25);
}

.badge-amber {
  background-color: var(--accent-amber-bg);
  color: var(--accent-amber);
  border: 1px solid rgba(217, 119, 6, 0.25);
}

.badge-purple {
  background-color: var(--accent-purple-bg);
  color: var(--accent-purple);
  border: 1px solid rgba(124, 58, 237, 0.25);
}

.badge-gray {
  background-color: var(--bg-surface-alt);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

/* Comparison Subtable & Checklist */
.check-list {
  list-style: none;
  margin: 12px 0;
  padding: 0;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.check-list li::before {
  content: "✓";
  color: var(--primary);
  font-weight: 800;
}

/* ================= FAQ Accordion & Knowledge Base ================= */
.faq-group-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 28px 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border-subtle);
}

.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 16px 0 24px;
}

.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.faq-item:hover {
  border-color: var(--primary-light);
}

.faq-item.open {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.faq-question {
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-main);
  background: var(--bg-surface);
  transition: background-color var(--transition-fast);
}

.faq-question:hover {
  background: var(--bg-card-hover);
}

.faq-q-text {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-grow: 1;
}

.faq-q-num {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--primary);
  background: var(--primary-bg);
  padding: 2px 7px;
  border-radius: var(--radius-full);
  flex-shrink: 0;
}

.faq-toggle-icon {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: transform 0.25s ease;
  flex-shrink: 0;
  margin-left: 12px;
}

.faq-item.open .faq-toggle-icon {
  transform: rotate(180deg);
  color: var(--primary);
}

.faq-answer {
  display: none;
  padding: 14px 18px 18px;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-surface-alt);
}

.faq-item.open .faq-answer {
  display: block;
}

/* Also support HTML5 details/summary gracefully */
details.faq-item summary.faq-question {
  list-style: none;
}
details.faq-item summary::-webkit-details-marker {
  display: none;
}
details.faq-item[open] summary .faq-toggle-icon {
  transform: rotate(180deg);
  color: var(--primary);
}
details.faq-item[open] .faq-answer {
  display: block;
}

