/* ==========================================================================
   网际快车 (wjkcvip.cyou) - Deep-Sapphire Low-Poly Night-Express UI
   纯原生 CSS，零外部依赖，支持昼夜平滑过渡、光标边缘微光与全端响应式适配
   ========================================================================== */

:root,
[data-theme="light"] {
  --bg-page: #f0f5fc;
  --bg-surface: rgba(255, 255, 255, 0.88);
  --bg-surface-solid: #ffffff;
  --bg-surface-alt: #e6eef9;
  --bg-glass: rgba(248, 251, 255, 0.8);
  --bg-glass-btn: rgba(255, 255, 255, 0.22);
  --bg-glass-btn-hover: rgba(255, 255, 255, 0.38);
  --header-bg: rgba(13, 59, 142, 0.92);
  --header-text: #f8fafc;
  --header-text-muted: rgba(226, 232, 240, 0.85);
  --border-subtle: rgba(13, 59, 142, 0.12);
  --border-ice: rgba(37, 99, 235, 0.22);
  --border-strong: rgba(13, 59, 142, 0.26);
  --text-primary: #0b162c;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --accent: #2563eb;
  --accent-vivid: #3b82f6;
  --accent-cyan: #0891b2;
  --accent-soft: rgba(37, 99, 235, 0.1);
  --accent-glow: rgba(59, 130, 246, 0.28);
  --emerald-bg: rgba(6, 78, 59, 0.09);
  --emerald-border: rgba(5, 150, 105, 0.28);
  --emerald-text: #065f46;
  --terminal-bg: rgba(15, 23, 42, 0.05);
  --terminal-border: rgba(37, 99, 235, 0.22);
  --success: #059669;
  --success-soft: rgba(5, 150, 105, 0.12);
  --shadow-sm: 0 2px 6px rgba(11, 22, 44, 0.05);
  --shadow-md: 0 12px 32px -10px rgba(13, 59, 142, 0.12), 0 2px 8px -2px rgba(11, 22, 44, 0.05);
  --shadow-lg: 0 24px 54px -16px rgba(37, 99, 235, 0.22), 0 6px 18px -6px rgba(11, 22, 44, 0.08);
  --card-highlight-bg: linear-gradient(180deg, rgba(59, 130, 246, 0.08) 0%, #ffffff 48%);
  --pill-bg: rgba(8, 145, 178, 0.1);
  --pill-border: rgba(8, 145, 178, 0.3);
  --pill-text: #0e7490;
  --facet-glow: rgba(56, 189, 248, 0.2);
  color-scheme: light;
}

[data-theme="dark"] {
  --bg-page: #060d1f;
  --bg-surface: rgba(15, 23, 42, 0.84);
  --bg-surface-solid: #0f172a;
  --bg-surface-alt: #0b1429;
  --bg-glass: rgba(10, 22, 48, 0.82);
  --bg-glass-btn: rgba(15, 23, 42, 0.42);
  --bg-glass-btn-hover: rgba(30, 58, 138, 0.55);
  --header-bg: rgba(9, 32, 82, 0.86);
  --header-text: #f8fafc;
  --header-text-muted: rgba(203, 213, 225, 0.86);
  --border-subtle: rgba(56, 189, 248, 0.13);
  --border-ice: rgba(125, 211, 252, 0.22);
  --border-strong: rgba(56, 189, 248, 0.32);
  --text-primary: #f1f5f9;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --accent: #3b82f6;
  --accent-vivid: #3b82f6;
  --accent-cyan: #38bdf8;
  --accent-soft: rgba(59, 130, 246, 0.16);
  --accent-glow: rgba(59, 130, 246, 0.38);
  --emerald-bg: linear-gradient(135deg, rgba(6, 78, 59, 0.72), rgba(6, 95, 70, 0.42));
  --emerald-border: rgba(52, 211, 153, 0.32);
  --emerald-text: #a7f3d0;
  --terminal-bg: linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(13, 59, 142, 0.32));
  --terminal-border: rgba(56, 189, 248, 0.28);
  --success: #34d399;
  --success-soft: rgba(52, 211, 153, 0.15);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 14px 36px -12px rgba(0, 0, 0, 0.65);
  --shadow-lg: 0 26px 60px -16px rgba(59, 130, 246, 0.32);
  --card-highlight-bg: linear-gradient(180deg, rgba(59, 130, 246, 0.18) 0%, rgba(15, 23, 42, 0.94) 50%);
  --pill-bg: rgba(56, 189, 248, 0.12);
  --pill-border: rgba(56, 189, 248, 0.36);
  --pill-text: #7dd3fc;
  --facet-glow: rgba(56, 189, 248, 0.3);
  color-scheme: dark;
}

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

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.65;
  overflow-x: hidden;
  transition: background-color 0.45s cubic-bezier(0.4, 0, 0.2, 1),
              color 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

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

/* 锚点跳转动态聚焦高亮动画 */
@keyframes anchorPulse {
  0% { box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.45); }
  50% { box-shadow: 0 0 0 12px rgba(56, 189, 248, 0); }
  100% { box-shadow: 0 0 0 0 rgba(56, 189, 248, 0); }
}

.anchor-focus .section-title,
.anchor-focus .welcome-card {
  animation: anchorPulse 0.9s ease-out;
  border-radius: 12px;
}

/* ==========================================================================
   深钴蓝低多边形顶部导航栏 (Cobalt Low-Poly Header)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(125, 211, 252, 0.2);
  color: var(--header-text);
  transition: background-color 0.45s ease, border-color 0.45s ease;
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: #ffffff;
  flex-shrink: 0;
}

.brand-logo {
  height: 34px;
  width: auto;
  display: block;
  border-radius: 6px;
  object-fit: contain;
  transition: transform 0.25s ease, filter 0.25s ease;
}

.brand:hover .brand-logo {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, #3b82f6, #06b6d4);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.42);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  list-style: none;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--header-text-muted);
  padding: 6px 8px;
  border-radius: 8px;
  transition: color 0.2s ease, background-color 0.2s ease;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: #ffffff;
  background: rgba(56, 189, 248, 0.16);
}

.nav-links a.nav-news {
  color: #7dd3fc;
  border: 1px solid rgba(125, 211, 252, 0.28);
  background: rgba(56, 189, 248, 0.1);
}

.nav-links a.nav-news:hover {
  background: rgba(56, 189, 248, 0.22);
  color: #ffffff;
}

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

/* 精致透明化昼夜模式切换按钮 */
.theme-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(186, 230, 253, 0.34);
  background: var(--bg-glass-btn);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #f8fafc;
  cursor: pointer;
  overflow: hidden;
  transition: background-color 0.35s ease,
              border-color 0.35s ease,
              transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.35s ease;
}

.theme-toggle:hover {
  background: var(--bg-glass-btn-hover);
  border-color: #7dd3fc;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.25);
  transform: translateY(-1px);
}

.theme-toggle:active {
  transform: scale(0.93);
}

.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
  position: absolute;
  width: 18px;
  height: 18px;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.4s ease;
}

[data-theme="light"] .theme-toggle .icon-sun {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

[data-theme="light"] .theme-toggle .icon-moon {
  opacity: 0;
  transform: rotate(90deg) scale(0.5);
}

[data-theme="dark"] .theme-toggle .icon-sun {
  opacity: 0;
  transform: rotate(-90deg) scale(0.5);
}

[data-theme="dark"] .theme-toggle .icon-moon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

/* 按钮系统 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  min-height: 46px;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.25s ease,
              background-color 0.25s ease,
              border-color 0.25s ease,
              color 0.25s ease;
  text-align: center;
  white-space: nowrap;
}

.btn-sm {
  padding: 8px 16px;
  min-height: 40px;
  font-size: 0.86rem;
  border-radius: 10px;
}

.btn-lg {
  padding: 14px 28px;
  min-height: 50px;
  font-size: 0.98rem;
  border-radius: 12px;
}

.btn-primary {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: #ffffff;
  box-shadow: 0 8px 22px -6px rgba(59, 130, 246, 0.55);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -6px rgba(59, 130, 246, 0.7);
  filter: brightness(1.08);
}

.btn-outline-ice {
  background: rgba(59, 130, 246, 0.1);
  color: var(--text-primary);
  border-color: var(--border-ice);
}

.btn-outline-ice:hover {
  border-color: var(--accent-vivid);
  background: rgba(59, 130, 246, 0.18);
  color: var(--accent-vivid);
  transform: translateY(-2px);
}

.btn-block {
  width: 100%;
}

/* ==========================================================================
   低多边形深钴蓝主视觉区 + 夜间门户控制中心 (Low-Poly Portal-Hub Hero)
   ========================================================================== */
.hero-portal {
  position: relative;
  padding: 56px 0 68px;
  overflow: hidden;
  --mx: 50%;
  --my: 25%;
}

/* 低多边形深钴蓝几何背景层 */
.lowpoly-backdrop {
  position: absolute;
  inset: 0 0 auto 0;
  height: 460px;
  background-color: #0d3b8e;
  overflow: hidden;
  z-index: 0;
  mask-image: linear-gradient(to bottom, #000 62%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, #000 62%, transparent 100%);
}

.lowpoly-svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.95;
}

/* 光标微光棱面反射层 */
.lowpoly-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(520px circle at var(--mx) var(--my), rgba(56, 189, 248, 0.28), transparent 65%);
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.hero-portal .container {
  position: relative;
  z-index: 1;
}

/* 悬浮暗蓝宝石欢迎主卡片 */
.welcome-card {
  position: relative;
  background: var(--bg-surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-ice);
  border-radius: 22px;
  padding: 36px 40px;
  box-shadow: var(--shadow-lg);
  margin-bottom: 20px;
  overflow: hidden;
  transition: border-color 0.35s ease, background-color 0.45s ease;
}

.welcome-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(460px circle at var(--mx) var(--my), var(--facet-glow), transparent 60%);
  opacity: 0.55;
  pointer-events: none;
}

.welcome-top {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}

.welcome-main {
  flex: 1 1 560px;
}

.welcome-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent-cyan);
  margin-bottom: 12px;
  letter-spacing: 0.04em;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 10px #34d399;
}

.welcome-main h1 {
  font-size: clamp(1.9rem, 3.8vw, 2.85rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.025em;
  margin-bottom: 14px;
}

.text-gradient {
  background: linear-gradient(135deg, #3b82f6 0%, #38bdf8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.welcome-desc {
  font-size: 1.02rem;
  color: var(--text-secondary);
  max-width: 680px;
  line-height: 1.75;
  margin-bottom: 22px;
}

/* 发光青色特性胶囊 (流量不过期 / 40+国家 / 理论不限速) */
.perk-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.perk-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--pill-bg);
  border: 1px solid var(--pill-border);
  color: var(--pill-text);
  font-size: 0.86rem;
  font-weight: 600;
  box-shadow: 0 0 16px -4px rgba(56, 189, 248, 0.28);
}

.welcome-actions {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 220px;
  justify-content: center;
  align-self: center;
}

/* 翡翠青「自定义分流」+ 终端「AI 编程工具教程」双功能横幅 */
.utility-strips {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

.strip-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  border-radius: 16px;
  border: 1px solid transparent;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.strip-banner:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.strip-emerald {
  background: var(--emerald-bg);
  border-color: var(--emerald-border);
}

.strip-terminal {
  background: var(--terminal-bg);
  border-color: var(--terminal-border);
}

.strip-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.strip-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-weight: 800;
}

.strip-emerald .strip-icon {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(52, 211, 153, 0.32);
}

.strip-terminal .strip-icon {
  background: rgba(59, 130, 246, 0.2);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.35);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 1.05rem;
}

.strip-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.strip-emerald .strip-sub {
  font-size: 0.84rem;
  color: var(--emerald-text);
}

.strip-terminal .strip-sub {
  font-size: 0.84rem;
  color: var(--text-secondary);
}

.strip-arrow {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-cyan);
  white-space: nowrap;
}

/* 6 列全平台 OS 客户端选择器 + FLClash / Hiddify 快速导入面板 */
.client-hub {
  background: var(--bg-surface);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--border-ice);
  border-radius: 20px;
  padding: 24px 26px;
  box-shadow: var(--shadow-md);
}

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

.client-hub-title {
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--text-primary);
}

.client-hub-hint {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.os-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}

.os-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 14px 10px;
  border-radius: 14px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface-alt);
  color: var(--text-secondary);
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1),
              background-color 0.25s ease,
              border-color 0.25s ease,
              color 0.25s ease,
              box-shadow 0.25s ease;
}

.os-btn:hover {
  border-color: var(--accent-vivid);
  color: var(--text-primary);
  transform: translateY(-2px);
}

.os-btn.active {
  background: #3b82f6;
  border-color: #60a5fa;
  color: #ffffff;
  transform: scale(1.03);
  box-shadow: 0 10px 24px -6px rgba(59, 130, 246, 0.65);
}

.os-btn svg {
  width: 22px;
  height: 22px;
}

/* 快速导入行 (FLClash / Hiddify) */
.import-rows {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.import-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-subtle);
  transition: border-color 0.25s ease;
}

.import-row:hover {
  border-color: var(--border-ice);
}

.import-info strong {
  display: block;
  font-size: 0.94rem;
  color: var(--text-primary);
}

.import-info span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ==========================================================================
   通用区块与卡片系统（带光标冰蓝微光反射）
   ========================================================================== */
.section {
  padding: 78px 0;
}

.section-alt {
  background-color: var(--bg-surface-alt);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  transition: background-color 0.45s ease, border-color 0.45s ease;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 48px;
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: 8px;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.25;
  margin-bottom: 12px;
}

.section-desc {
  color: var(--text-secondary);
  font-size: 0.98rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

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

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

.card {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border-ice);
  border-radius: 18px;
  padding: 26px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.3s ease, border-color 0.3s ease, background-color 0.45s ease;
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(320px circle at var(--cx, 50%) var(--cy, 0%), var(--facet-glow), transparent 60%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

.card:hover::after {
  opacity: 0.65;
}

/* 核心优势图文卡片 */
.feature-visual {
  height: 124px;
  border-radius: 14px;
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}

.feature-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(56, 189, 248, 0.16), transparent 72%);
}

.feature-card h3 {
  font-size: 1.14rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  margin-bottom: 16px;
}

.feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  background: var(--accent-soft);
  color: var(--accent-cyan);
}

.tag-success {
  background: var(--success-soft);
  color: var(--success);
}

/* 流媒体 & AI 图卡 */
.media-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px;
}

.media-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.media-logo {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.96rem;
  color: #ffffff;
  flex-shrink: 0;
  letter-spacing: -0.02em;
}

.logo-netflix { background: linear-gradient(135deg, #e50914, #991b1b); }
.logo-disney  { background: linear-gradient(135deg, #1d4ed8, #0ea5e9); }
.logo-youtube { background: linear-gradient(135deg, #ef4444, #b91c1c); }
.logo-spotify { background: linear-gradient(135deg, #16a34a, #047857); }
.logo-gpt     { background: linear-gradient(135deg, #0d9488, #0f766e); }
.logo-claude  { background: linear-gradient(135deg, #d97706, #92400e); }
.logo-gemini  { background: linear-gradient(135deg, #2563eb, #4f46e5); }
.logo-code    { background: linear-gradient(135deg, #0284c7, #1d4ed8); font-family: ui-monospace, monospace; }

.media-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
}

.media-card p {
  font-size: 0.87rem;
  color: var(--text-secondary);
  line-height: 1.62;
}

.media-meta {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px dashed var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.79rem;
  color: var(--text-muted);
}

.status-dot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--success);
  font-weight: 600;
}

.status-dot::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
}

/* 套餐价格区（4 档真实市场套餐：3 档月付 + 1 档流量不过期不限时包） */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  align-items: stretch;
  margin-bottom: 40px;
}

.pricing-card {
  display: flex;
  flex-direction: column;
  padding: 28px 22px;
}

.pricing-card.featured {
  background: var(--card-highlight-bg);
  border: 2px solid #3b82f6;
  box-shadow: var(--shadow-lg);
}

.pricing-badge {
  position: absolute;
  top: 14px;
  right: 16px;
  background: linear-gradient(135deg, #3b82f6, #06b6d4);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}

.pricing-badge-emerald {
  background: linear-gradient(135deg, #059669, #0d9488);
}

.pricing-name {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.pricing-desc {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-bottom: 18px;
  min-height: 40px;
}

.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 3px;
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-subtle);
}

.price-currency {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.price-amount {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}

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

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
  flex: 1;
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.pricing-features li svg {
  width: 16px;
  height: 16px;
  color: var(--success);
  flex-shrink: 0;
  margin-top: 3px;
}

/* 参数对比表 */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  border-radius: 16px;
  border: 1px solid var(--border-ice);
  background: var(--bg-surface);
  box-shadow: var(--shadow-sm);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
  font-size: 0.9rem;
}

.compare-table th,
.compare-table td {
  padding: 14px 16px;
  text-align: center;
  border-bottom: 1px solid var(--border-subtle);
}

.compare-table th:first-child,
.compare-table td:first-child {
  text-align: left;
  font-weight: 600;
  color: var(--text-primary);
}

.compare-table thead th {
  background: var(--bg-surface-alt);
  font-weight: 700;
}

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

.compare-table .col-featured {
  background: var(--accent-soft);
  font-weight: 600;
  color: var(--accent-cyan);
}

/* 用户评价 */
.review-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.stars {
  display: inline-flex;
  gap: 3px;
  color: #f59e0b;
}

.review-text {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.75;
  flex: 1;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
}

.avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.author-name {
  font-weight: 700;
  font-size: 0.92rem;
}

.author-role {
  font-size: 0.79rem;
  color: var(--text-muted);
}

/* FAQ */
.faq-list {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-ice);
  border-radius: 15px;
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.faq-item[open] {
  border-color: #3b82f6;
  box-shadow: var(--shadow-md);
}

.faq-item summary {
  list-style: none;
  padding: 18px 22px;
  font-weight: 600;
  font-size: 0.98rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  user-select: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-chevron {
  width: 19px;
  height: 19px;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform 0.3s ease, color 0.3s ease;
}

.faq-item[open] .faq-chevron {
  transform: rotate(180deg);
  color: var(--accent-cyan);
}

.faq-answer {
  padding: 0 22px 18px;
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.75;
}

/* 底部行动召唤 */
.cta-banner {
  border-radius: 22px;
  padding: 48px 32px;
  text-align: center;
  background: linear-gradient(135deg, rgba(13, 59, 142, 0.22), rgba(6, 78, 59, 0.18));
  border: 1px solid var(--border-ice);
  box-shadow: var(--shadow-md);
}

.cta-banner h2 {
  font-size: clamp(1.45rem, 2.8vw, 2rem);
  font-weight: 800;
  margin-bottom: 12px;
}

.cta-banner p {
  color: var(--text-secondary);
  max-width: 580px;
  margin: 0 auto 26px;
}

/* 页脚 - 仅保留四个指定标题链接 */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-surface-solid);
  padding: 36px 0;
  transition: background-color 0.45s ease, border-color 0.45s ease;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.footer-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 32px;
  list-style: none;
}

.footer-nav a {
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 6px 4px;
  transition: color 0.2s ease;
}

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

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

/* 子页面文档样式 */
.page-hero {
  position: relative;
  padding: 60px 0 44px;
  background: linear-gradient(135deg, #0d3b8e 0%, #092458 55%, #060d1f 100%);
  color: #f8fafc;
  border-bottom: 1px solid rgba(125, 211, 252, 0.2);
}

.page-hero .section-eyebrow {
  color: #7dd3fc;
}

.page-hero h1 {
  font-size: clamp(1.8rem, 3.6vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 10px;
}

.page-hero p {
  color: rgba(226, 232, 240, 0.88);
  max-width: 680px;
}

.doc-section {
  padding: 52px 0 76px;
}

.doc-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-ice);
  border-radius: 18px;
  padding: 32px;
  margin-bottom: 22px;
  box-shadow: var(--shadow-sm);
}

.doc-card h2 {
  font-size: 1.28rem;
  font-weight: 700;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.doc-card h2::before {
  content: "";
  width: 4px;
  height: 20px;
  border-radius: 4px;
  background: linear-gradient(180deg, #3b82f6, #38bdf8);
  flex-shrink: 0;
}

.doc-card p {
  color: var(--text-secondary);
  margin-bottom: 12px;
  line-height: 1.8;
}

.doc-card p:last-child {
  margin-bottom: 0;
}

.doc-list {
  padding-left: 20px;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

.doc-list li {
  line-height: 1.75;
}

.code-block {
  margin-top: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  background: #060d1f;
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: #bae6fd;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.85rem;
  overflow-x: auto;
  line-height: 1.6;
}

.sitemap-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.sitemap-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

.sitemap-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-subtle);
  font-weight: 500;
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.sitemap-links a:hover {
  border-color: #3b82f6;
  color: var(--accent-cyan);
  transform: translateX(4px);
}

/* 资讯卡片标签 */
.news-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ==========================================================================
   推荐资讯列表 & 长篇深度 SEO 文章排版系统
   ========================================================================== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.news-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 26px;
}

.news-card.featured-article {
  grid-column: 1 / -1;
  background: var(--card-highlight-bg);
  border: 1px solid #3b82f6;
}

.news-card h2 {
  font-size: 1.22rem;
  font-weight: 700;
  line-height: 1.38;
}

.news-card h2 a:hover {
  color: var(--accent-cyan);
}

.news-excerpt {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.72;
  flex: 1;
}

.news-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px dashed var(--border-subtle);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--accent-cyan);
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.84rem;
  color: rgba(203, 213, 225, 0.82);
  margin-bottom: 14px;
}

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

.article-layout {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.toc-sidebar {
  position: sticky;
  top: 88px;
  background: var(--bg-surface);
  border: 1px solid var(--border-ice);
  border-radius: 18px;
  padding: 22px;
  box-shadow: var(--shadow-sm);
}

.toc-title {
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-subtle);
}

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

.toc-list a {
  display: block;
  font-size: 0.85rem;
  color: var(--text-secondary);
  padding: 5px 8px;
  border-radius: 8px;
  line-height: 1.45;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.toc-list a:hover {
  color: var(--accent-cyan);
  background: var(--accent-soft);
}

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

.article-body h2 {
  font-size: 1.42rem;
  font-weight: 800;
  margin: 34px 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-subtle);
  scroll-margin-top: 90px;
}

.article-body h2:first-child {
  margin-top: 0;
}

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

.article-body p {
  color: var(--text-secondary);
  font-size: 0.97rem;
  line-height: 1.85;
  margin-bottom: 15px;
}

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

.article-body a.inline-link:hover {
  color: var(--accent-vivid);
}

.article-callout {
  margin: 22px 0;
  padding: 18px 22px;
  border-radius: 14px;
  background: var(--accent-soft);
  border-left: 4px solid #3b82f6;
  color: var(--text-secondary);
  font-size: 0.93rem;
  line-height: 1.75;
}

.article-callout strong {
  color: var(--text-primary);
}

.article-faq {
  margin-top: 36px;
}

.related-reading {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--border-subtle);
}

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

.related-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  border-radius: 14px;
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-subtle);
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.related-item:hover {
  border-color: #3b82f6;
  transform: translateY(-2px);
}

.related-item strong {
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--text-primary);
}

.related-item span {
  font-size: 0.8rem;
  color: var(--accent-cyan);
}

/* ==========================================================================
   响应式适配 (@media)
   ========================================================================== */
@media (max-width: 1120px) {
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .nav-links {
    gap: 10px;
  }
  .nav-links a {
    font-size: 0.84rem;
    padding: 5px 6px;
  }
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }
  .os-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .article-layout {
    grid-template-columns: 1fr;
  }
  .toc-sidebar {
    position: static;
  }
  .related-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }

  .header-inner {
    height: 62px;
  }

  .hero-portal {
    padding: 36px 0 48px;
  }

  .welcome-card {
    padding: 24px 20px;
  }

  .welcome-actions {
    width: 100%;
    min-width: 0;
  }

  .welcome-actions .btn {
    width: 100%;
  }

  .utility-strips,
  .import-rows,
  .grid-3,
  .grid-4,
  .grid-2,
  .pricing-grid,
  .sitemap-grid,
  .news-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .article-body {
    padding: 24px 18px;
  }

  .os-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .section {
    padding: 54px 0;
  }

  .section-header {
    margin-bottom: 34px;
  }

  .card,
  .pricing-card,
  .doc-card,
  .client-hub {
    padding: 20px 18px;
  }

  .btn {
    min-height: 48px;
  }

  .header-actions .btn-sm {
    min-height: 40px;
    padding: 8px 13px;
    font-size: 0.84rem;
  }

  .cta-banner {
    padding: 34px 18px;
  }

  .cta-banner .btn {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .os-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .welcome-main h1 {
    font-size: 1.65rem;
  }
}
