/* ==========================================================================
   轻语机场 (QingYu Network) - 浅色系现代化仪表盘样式表
   Domain: https://qingyu-jc.homes
   ========================================================================== */

:root {
  --bg-page: #f5f8fc;
  --bg-surface: #ffffff;
  --bg-subtle: #eef3f9;
  --bg-mint-soft: #ecfdf5;
  --bg-cyan-soft: #ecfeff;
  --bg-violet-soft: #f5f3ff;

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;

  --border-light: #e2e8f0;
  --border-strong: #cbd5e1;

  /* 呼应图1遥测亮色系点缀（适配浅色背景高对比度） */
  --accent-emerald: #10b981;
  --accent-emerald-dark: #059669;
  --accent-cyan: #0ea5e9;
  --accent-violet: #7c3aed;
  --accent-rose: #f43f5e;
  --accent-amber: #f59e0b;

  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.05), 0 1px 2px rgba(15, 23, 42, 0.03);
  --shadow-md: 0 10px 25px -5px rgba(15, 23, 42, 0.06), 0 8px 10px -6px rgba(15, 23, 42, 0.03);
  --shadow-lg: 0 20px 40px -12px rgba(14, 165, 233, 0.14), 0 8px 20px -8px rgba(15, 23, 42, 0.06);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

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

  --header-height: 70px;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text-primary);
  background-color: var(--bg-page);
  /* 极淡浅色网格 + 图1风格微扫描线纹理 */
  background-image:
    linear-gradient(to right, rgba(148, 163, 184, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(148, 163, 184, 0.06) 1px, transparent 1px);
  background-size: 32px 32px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

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

button {
  font-family: inherit;
  cursor: pointer;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ==========================================================================
   顶部导航栏 & 下拉菜单 & 搜索触发器
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  flex-shrink: 0;
}

.brand-badge {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent-emerald), var(--accent-cyan));
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.28);
  position: relative;
}

.brand-badge::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 12px;
  border: 1px solid rgba(16, 185, 129, 0.35);
  pointer-events: none;
}

.brand-sub {
  font-size: 0.72rem;
  font-weight: 600;
  font-family: var(--font-mono);
  color: var(--accent-emerald-dark);
  background: var(--bg-mint-soft);
  padding: 2px 7px;
  border-radius: 6px;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 13px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-secondary);
}

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

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

.nav-item:hover .nav-link svg.chevron,
.nav-item.open .nav-link svg.chevron {
  transform: rotate(180deg);
}

/* 下拉菜单 */
.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 250px;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s ease;
  z-index: 1050;
}

.nav-item:hover .dropdown-menu,
.nav-item:focus-within .dropdown-menu,
.nav-item.open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-link {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
}

.dropdown-link:hover {
  background: var(--bg-page);
}

.dropdown-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--bg-mint-soft);
  color: var(--accent-emerald-dark);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 0.9rem;
}

.dropdown-title {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
}

.dropdown-desc {
  display: block;
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-light);
  background: var(--bg-page);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.search-trigger:hover {
  border-color: var(--accent-cyan);
  background: #fff;
  color: var(--text-primary);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.12);
}

.search-kbd {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 5px;
  padding: 1px 5px;
  color: var(--text-muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.9rem;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-emerald), #0d9488);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.38);
}

.btn-outline {
  background: var(--bg-surface);
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.btn-outline:hover {
  border-color: var(--accent-cyan);
  background: var(--bg-cyan-soft);
  color: #0369a1;
}

.btn-sm {
  padding: 7px 13px;
  font-size: 0.82rem;
  border-radius: 8px;
}

.mobile-menu-btn {
  display: none;
  background: var(--bg-page);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 8px;
  color: var(--text-primary);
}

/* ==========================================================================
   Hero & 图1风格浅色遥测仪表盘
   ========================================================================== */
.hero-section {
  padding: 36px 0 48px;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.02fr 1.18fr;
  gap: 28px;
  align-items: stretch;
}

.hero-intro {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 34px 32px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

/* 呼应图1 角落准星HUD点缀（浅色化） */
.hud-corners {
  position: relative;
}

.hud-corners::before,
.hud-corners::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border-color: var(--accent-emerald);
  border-style: solid;
  pointer-events: none;
  opacity: 0.7;
}

.hud-corners::before {
  top: 12px;
  left: 12px;
  border-width: 2px 0 0 2px;
}

.hud-corners::after {
  bottom: 12px;
  right: 12px;
  border-width: 0 2px 2px 0;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  background: var(--bg-mint-soft);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: var(--accent-emerald-dark);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  width: fit-content;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6);
  animation: pulseRing 2s infinite;
}

@keyframes pulseRing {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.55); }
  70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.hero-title {
  margin: 18px 0 12px;
  font-size: clamp(1.85rem, 3vw, 2.55rem);
  line-height: 1.2;
  font-weight: 850;
  letter-spacing: -0.025em;
  color: var(--text-primary);
}

.hero-title .highlight {
  background: linear-gradient(120deg, var(--accent-emerald-dark), var(--accent-cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-desc {
  color: var(--text-secondary);
  font-size: 0.98rem;
  margin: 0 0 22px;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.metric-box {
  background: var(--bg-page);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 12px 14px;
}

.metric-value {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
}

.metric-label {
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.sector-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px dashed var(--border-light);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.sector-bar .tag-online {
  color: var(--accent-cyan);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.sector-bar .tag-online::before {
  content: "";
  display: inline-block;
  width: 3px;
  height: 12px;
  background: var(--accent-rose);
  border-radius: 2px;
}

/* 右侧数据概览仪表盘（图表 + 遥测条 + 快速订阅） */
.dashboard-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
}

/* 图1底部色块点缀条 */
.dashboard-panel::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 24px;
  right: 24px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--accent-violet) 0 28%, transparent 28% 48%, var(--accent-emerald) 48% 76%, var(--accent-rose) 76% 100%);
  opacity: 0.85;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

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

.panel-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
}

.link-established-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent-emerald-dark);
  background: var(--bg-mint-soft);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 4px 10px;
  border-radius: 6px;
}

.chart-controls {
  display: inline-flex;
  background: var(--bg-page);
  padding: 3px;
  border-radius: 8px;
  border: 1px solid var(--border-light);
}

.chart-tab {
  border: none;
  background: transparent;
  padding: 5px 10px;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-muted);
  border-radius: 6px;
}

.chart-tab.active {
  background: #fff;
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}

.telemetry-row {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 16px;
  align-items: stretch;
}

.chart-box {
  background: var(--bg-page);
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 14px;
  position: relative;
  min-height: 195px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.chart-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
}

.chart-meta strong {
  font-size: 0.85rem;
  color: var(--text-primary);
}

.chart-meta span {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-emerald-dark);
  font-weight: 700;
}

canvas#trafficChart {
  width: 100% !important;
  height: 142px !important;
  display: block;
}

/* 图1风格 SYNC / PWR / NAV 遥测框（浅色版） */
.hud-telemetry-card {
  background: linear-gradient(180deg, #fafbff 0%, #f3f6fc 100%);
  border: 1px solid rgba(124, 58, 237, 0.25);
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hud-telemetry-head {
  font-family: var(--font-mono);
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--accent-emerald-dark);
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 10px;
}

.hud-square {
  width: 9px;
  height: 9px;
  background: var(--accent-emerald);
  border-radius: 2px;
  display: inline-block;
}

.telemetry-bar-item {
  margin-bottom: 10px;
}

.telemetry-bar-item:last-child {
  margin-bottom: 0;
}

.telemetry-bar-label {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.telemetry-track {
  height: 7px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
}

.telemetry-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.fill-sync { background: var(--accent-cyan); }
.fill-pwr { background: var(--accent-rose); }
.fill-nav { background: var(--accent-emerald); }

/* 快速订阅条 */
.quick-sub-bar {
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.sub-url-preview {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-secondary);
  background: #fff;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid var(--border-light);
  flex: 1;
  min-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sub-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* ==========================================================================
   通用板块头
   ========================================================================== */
.section {
  padding: 56px 0;
}

.section-alt {
  background: rgba(255, 255, 255, 0.65);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.section-eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.section-title {
  margin: 0;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 850;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.section-subtitle {
  margin: 6px 0 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
  max-width: 660px;
}

/* ==========================================================================
   节点列表模块 (地区旗帜 / 延迟测速 / 倍率 / 一键操作)
   ========================================================================== */
.node-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-pill {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-light);
  background: var(--bg-surface);
  color: var(--text-secondary);
  font-size: 0.84rem;
  font-weight: 600;
}

.filter-pill.active,
.filter-pill:hover {
  background: var(--text-primary);
  color: #fff;
  border-color: var(--text-primary);
}

.nodes-table-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

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

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

.nodes-table th {
  background: var(--bg-page);
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 13px 18px;
  border-bottom: 1px solid var(--border-light);
}

.nodes-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-light);
  vertical-align: middle;
}

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

.nodes-table tbody tr:hover {
  background: #f8fbff;
}

.node-name-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--text-primary);
}

.flag-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 24px;
  border-radius: 6px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  font-size: 0.85rem;
  padding: 0 6px;
}

.proto-tag {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--bg-cyan-soft);
  color: #0369a1;
  border: 1px solid rgba(14, 165, 233, 0.2);
}

.proto-tag.iepl {
  background: var(--bg-violet-soft);
  color: #6d28d9;
  border-color: rgba(124, 58, 237, 0.22);
}

.latency-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
}

.latency-fast {
  background: var(--bg-mint-soft);
  color: var(--accent-emerald-dark);
}

.latency-mid {
  background: #fffbeb;
  color: #b45309;
}

.rate-badge {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-secondary);
  background: var(--bg-page);
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid var(--border-light);
}

.unlock-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.unlock-chip {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 5px;
  background: var(--bg-subtle);
  color: var(--text-secondary);
}

/* ==========================================================================
   套餐购买板块 (严格对应图2价格，浅色适配)
   ========================================================================== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

.pricing-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 30px 28px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(16, 185, 129, 0.45);
}

.pricing-card.featured {
  border: 2px solid var(--accent-emerald);
  background: linear-gradient(180deg, #f3fcf8 0%, #ffffff 38%);
  box-shadow: 0 18px 36px -12px rgba(16, 185, 129, 0.2);
}

.official-pick-badge {
  position: absolute;
  top: 22px;
  right: 22px;
  background: linear-gradient(135deg, #0ea5e9, #2563eb);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(14, 165, 233, 0.3);
}

.plan-code {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.plan-name {
  margin: 8px 0 4px;
  font-size: 1.45rem;
  font-weight: 850;
  color: var(--text-primary);
}

.plan-tagline {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
  padding-bottom: 18px;
  border-bottom: 1px dashed var(--border-light);
}

.plan-features {
  list-style: none;
  margin: 20px 0 26px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.plan-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.94rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.plan-features li strong {
  color: var(--text-primary);
}

.check-icon {
  color: var(--accent-emerald);
  font-weight: 800;
  flex-shrink: 0;
}

.plan-price-row {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 20px;
}

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

.price-num {
  font-family: var(--font-mono);
  font-size: 2.35rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.price-unit {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.plan-btn {
  width: 100%;
  padding: 13px 18px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 0.95rem;
  text-align: center;
}

.plan-btn-secondary {
  background: var(--bg-mint-soft);
  color: var(--accent-emerald-dark);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.plan-btn-secondary:hover {
  background: var(--accent-emerald);
  color: #fff;
}

/* ==========================================================================
   快捷配置 & 使用教程 & 下载中心
   ========================================================================== */
.tutorial-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.tutorial-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 12px;
  border: 1px solid var(--border-light);
  background: var(--bg-surface);
  color: var(--text-secondary);
  font-weight: 700;
  font-size: 0.9rem;
}

.tutorial-tab-btn.active {
  background: var(--text-primary);
  color: #fff;
  border-color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}

.tutorial-panel {
  display: none;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.tutorial-panel.active {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  align-items: start;
}

.steps-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.step-item {
  display: flex;
  gap: 14px;
  padding: 16px;
  border-radius: 12px;
  background: var(--bg-page);
  border: 1px solid var(--border-light);
}

.step-num {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--accent-emerald);
  color: #fff;
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 0.85rem;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.step-body h4 {
  margin: 0 0 4px;
  font-size: 0.98rem;
}

.step-body p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.client-side-card {
  background: linear-gradient(160deg, var(--bg-mint-soft), var(--bg-cyan-soft));
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 16px;
  padding: 24px;
}

.client-side-card h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
}

.client-side-card p {
  margin: 0 0 18px;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 28px;
}

.download-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
}

.download-card:hover {
  border-color: var(--accent-cyan);
  transform: translateY(-2px);
}

.download-os {
  font-size: 0.76rem;
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--accent-cyan);
  text-transform: uppercase;
}

.download-card h4 {
  margin: 4px 0 6px;
  font-size: 1.05rem;
}

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

/* ==========================================================================
   科普教程站（12篇文章卡片区）
   ========================================================================== */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.article-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.article-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(14, 165, 233, 0.45);
}

.article-cat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.cat-badge {
  font-size: 0.74rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 6px;
  background: var(--bg-subtle);
  color: var(--text-secondary);
}

.cat-badge.proto { background: var(--bg-violet-soft); color: #6d28d9; }
.cat-badge.ai { background: var(--bg-mint-soft); color: var(--accent-emerald-dark); }
.cat-badge.guide { background: var(--bg-cyan-soft); color: #0369a1; }

.read-time {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-muted);
}

.article-card h3 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.42;
  color: var(--text-primary);
}

.article-card p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.article-tag {
  font-size: 0.72rem;
  padding: 2px 7px;
  border-radius: 4px;
  background: var(--bg-page);
  color: var(--text-muted);
  border: 1px solid var(--border-light);
}

.article-read-more {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-emerald-dark);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* ==========================================================================
   常见问题板块 & 用户评价 & 页脚 FAQ
   ========================================================================== */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  padding: 18px 20px;
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

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

.faq-icon {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: var(--accent-emerald-dark);
  transition: transform 0.2s ease;
}

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

.faq-answer {
  display: none;
  padding: 0 20px 18px;
  font-size: 0.89rem;
  color: var(--text-secondary);
  border-top: 1px dashed var(--border-light);
  padding-top: 14px;
}

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

/* 用户评价 */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.review-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}

.review-stars {
  color: var(--accent-amber);
  font-size: 0.95rem;
  margin-bottom: 10px;
  letter-spacing: 2px;
}

.review-text {
  margin: 0 0 16px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.review-author {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-light);
  padding-top: 12px;
}

.review-author strong {
  color: var(--text-primary);
}

/* 页脚 + 页脚 FAQ 精选 */
.site-footer {
  background: #ffffff;
  border-top: 1px solid var(--border-light);
  padding: 52px 0 28px;
}

.footer-faq-strip {
  background: var(--bg-page);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  margin-bottom: 36px;
}

.footer-faq-strip h3 {
  margin: 0 0 14px;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-faq-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.footer-faq-mini h4 {
  margin: 0 0 5px;
  font-size: 0.88rem;
  color: var(--text-primary);
}

.footer-faq-mini p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-main {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 28px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--border-light);
}

.footer-col h4 {
  margin: 0 0 12px;
  font-size: 0.9rem;
  font-weight: 800;
}

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

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

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

.footer-bottom {
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ==========================================================================
   全局搜索模态框 & 热门搜索词条弹窗
   ========================================================================== */
.search-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(6px);
  z-index: 2000;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 72px 16px 24px;
}

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

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

@keyframes modalFadeIn {
  from { opacity: 0; transform: translateY(-10px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

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

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

.search-close-btn {
  background: var(--bg-page);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 5px 10px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
}

.search-modal-body {
  padding: 18px 20px 22px;
  max-height: 68vh;
  overflow-y: auto;
}

.hot-terms-label {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}

.hot-terms-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.hot-term-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  background: var(--bg-page);
  border: 1px solid var(--border-light);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.hot-term-chip:hover {
  background: var(--bg-mint-soft);
  border-color: var(--accent-emerald);
  color: var(--accent-emerald-dark);
}

.search-results-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.search-result-item {
  display: block;
  padding: 13px 15px;
  border-radius: 12px;
  border: 1px solid var(--border-light);
  background: var(--bg-page);
}

.search-result-item:hover {
  background: #fff;
  border-color: var(--accent-cyan);
  box-shadow: var(--shadow-sm);
}

.search-result-item h4 {
  margin: 0 0 4px;
  font-size: 0.95rem;
  color: var(--text-primary);
}

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

/* ==========================================================================
   独立文章页样式
   ========================================================================== */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 28px;
  padding: 32px 0 60px;
  align-items: start;
}

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

.breadcrumb a:hover {
  color: var(--accent-emerald-dark);
}

.article-main {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  box-shadow: var(--shadow-sm);
}

.article-header {
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 22px;
  margin-bottom: 26px;
}

.article-header h1 {
  margin: 12px 0 12px;
  font-size: clamp(1.55rem, 2.5vw, 2.15rem);
  line-height: 1.3;
  font-weight: 850;
}

.article-meta-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.article-prose h2 {
  font-size: 1.32rem;
  font-weight: 800;
  margin: 30px 0 12px;
  padding-left: 12px;
  border-left: 4px solid var(--accent-emerald);
  color: var(--text-primary);
}

.article-prose h3 {
  font-size: 1.08rem;
  font-weight: 700;
  margin: 22px 0 10px;
  color: var(--text-primary);
}

.article-prose p {
  margin: 0 0 16px;
  color: var(--text-secondary);
  font-size: 0.98rem;
  line-height: 1.82;
}

.article-prose ul,
.article-prose ol {
  margin: 0 0 18px;
  padding-left: 22px;
  color: var(--text-secondary);
}

.article-prose li {
  margin-bottom: 8px;
  line-height: 1.75;
}

.article-prose a.inline-link {
  color: var(--accent-emerald-dark);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.info-callout {
  background: var(--bg-mint-soft);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 12px;
  padding: 16px 20px;
  margin: 22px 0;
  font-size: 0.92rem;
  color: #065f46;
}

.article-table-wrap {
  overflow-x: auto;
  margin: 20px 0;
  border: 1px solid var(--border-light);
  border-radius: 12px;
}

.article-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.article-table th {
  background: var(--bg-page);
  padding: 11px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border-light);
}

.article-table td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-secondary);
}

.article-sidebar {
  position: sticky;
  top: 90px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.sidebar-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.sidebar-card h3 {
  margin: 0 0 12px;
  font-size: 1rem;
  font-weight: 800;
}

.related-articles-nav {
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid var(--border-light);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 14px;
}

.related-link-card {
  display: block;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--border-light);
  background: var(--bg-page);
}

.related-link-card:hover {
  border-color: var(--accent-emerald);
  background: #fff;
}

.related-link-card span {
  display: block;
  font-size: 0.74rem;
  color: var(--accent-emerald-dark);
  font-weight: 700;
  margin-bottom: 4px;
}

.related-link-card strong {
  font-size: 0.9rem;
  color: var(--text-primary);
}

/* Toast 提示 */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 3000;
  background: var(--text-primary);
  color: #fff;
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: all 0.25s ease;
}

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

/* ==========================================================================
   响应式适配
   ========================================================================== */
@media (max-width: 1080px) {
  .hero-grid,
  .tutorial-panel.active,
  .article-layout {
    grid-template-columns: 1fr;
  }
  .pricing-grid,
  .articles-grid,
  .reviews-grid,
  .footer-faq-cols {
    grid-template-columns: repeat(2, 1fr);
  }
  .download-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-main {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 820px) {
  .nav-menu {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border-light);
    padding: 16px 20px;
    flex-direction: column;
    align-items: stretch;
    box-shadow: var(--shadow-lg);
    max-height: 75vh;
    overflow-y: auto;
  }
  .nav-menu.mobile-open {
    display: flex;
  }
  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    padding-left: 14px;
    display: none;
  }
  .nav-item.open .dropdown-menu {
    display: block;
  }
  .mobile-menu-btn {
    display: inline-flex;
  }
  .telemetry-row,
  .pricing-grid,
  .articles-grid,
  .faq-grid,
  .reviews-grid,
  .footer-faq-cols,
  .related-grid,
  .download-grid,
  .footer-main {
    grid-template-columns: 1fr;
  }
  .article-main {
    padding: 24px 20px;
  }
  .search-kbd {
    display: none;
  }
}

