@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Noto+Sans+SC:wght@400;500;700;900&display=swap');

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:          #000000;
  --bg-alt:      #0a0a0a;
  --bg-card:     #0f0f0f;
  --border:      rgba(255, 255, 255, 0.06);
  --border-hover:rgba(168, 85, 247, 0.35);
  --text:        #F5F5F5;
  --text-muted:  #6b7280;
  --text-faint:  #2a2a2a;

  /* Cyber neon */
  --neon-purple: #a855f7;
  --neon-cyan:   #06b6d4;
  --neon-blue:   #6366f1;
  --neon-green:  #4ade80;

  /* Hero gradient: fluorescent purple → cyan → blue-violet */
  --gradient-hero: linear-gradient(90deg, #c026d3 0%,  #818cf8 100%);
  /* UI gradient (buttons, logo) */
  --gradient:    linear-gradient(135deg, #a855f7, #6366f1);

  --radius:    12px;
  --radius-sm: 8px;
}

[data-theme="light"] {
  --bg:          #ffffff;
  --bg-alt:      #f5f5f7;
  --bg-card:     #ebebeb;
  --border:      rgba(0, 0, 0, 0.10);
  --border-hover:rgba(168, 85, 247, 0.40);
  --text:        #212121;
  --text-muted:  #333333;
  --text-faint:  #d0d0d0;
}

[data-theme="light"] body::before {
  background-image:
    linear-gradient(rgba(0,0,0,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.04) 1px, transparent 1px);
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ===== GLOBAL GRID OVERLAY ===== */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 48px 48px;
}

/* Ensure all sections sit above the grid */
.announce-bar, .nav, .hero, .section, footer { position: relative; z-index: 1; }

.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== ANNOUNCE BAR ===== */
.announce-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 101;
  height: 36px;
  background: linear-gradient(90deg, rgba(168,85,247,0.12), rgba(99,102,241,0.12));
  border-bottom: 1px solid rgba(168,85,247,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.announce-bar strong { color: var(--neon-cyan); }
.announce-bar a { color: var(--neon-cyan); text-decoration: underline; text-underline-offset: 3px; }
.announce-bar a:hover { color: #fff; }

/* ===== NAV ===== */
.nav {
  position: fixed;
  top: 14px; left: 0; right: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  background: transparent;
  transition: border-color 0.3s;
}

.nav-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  position: relative;
}

.logo {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.5px;
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  flex-shrink: 0;
}

.logo-img {
  height: 25px;
  width: auto;
  display: block;
}

[data-theme="light"] .logo-img {
  content: url('images/logo2.png');
}

/* ── Pill capsule ── */
.nav-links {
  display: flex;
  gap: 2px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 6px;
}

.nav-links a {
  padding: 7px 18px;
  border-radius: 999px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.82);
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}

.nav-links a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
}

/* Light mode pill */
[data-theme="light"] .nav-links {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .nav-links a {
  color: rgba(20, 20, 20, 0.80);
}

[data-theme="light"] .nav-links a:hover {
  color: #000;
  background: rgba(0, 0, 0, 0.06);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.btn-icon {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}

.btn-icon:hover { color: var(--text); border-color: rgba(255,255,255,0.18); }

[data-theme="light"] .btn-icon:hover { border-color: rgba(0,0,0,0.22); }

/* Language & theme toggles — circular */
#langToggle, #themeToggle {
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* 充值中心 nav button — matches pill style */
.nav-contact {
  border-radius: 999px !important;
  padding: 7px 18px;
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: rgba(255, 255, 255, 0.18) !important;
  color: rgba(255, 255, 255, 0.82) !important;
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
}
.nav-contact:hover {
  background: rgba(255, 255, 255, 0.20) !important;
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.25) !important;
}

[data-theme="light"] .nav-contact {
  background: rgba(255, 255, 255, 0.72) !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
  color: rgba(20, 20, 20, 0.80) !important;
}
[data-theme="light"] .nav-contact:hover {
  background: rgba(255, 255, 255, 0.90) !important;
  color: #000 !important;
}

.btn-console {
  background: linear-gradient(135deg, #f97316, #e879f9, #a855f7);
  color: #fff;
  border: none;
  padding: 7px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  transition: opacity 0.2s, transform 0.2s, box-shadow 0.2s;
  display: inline-block;
}

.btn-console:hover {
  opacity: 0.88;
  transform: translateY(-1px);
  box-shadow: 0 0 20px rgba(249, 115, 22, 0.35), 0 0 8px rgba(232, 121, 249, 0.2);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  padding: 168px 0 108px;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 90% 55% at 50%  -5%, rgba(168, 85,247,0.18) 0%, transparent 65%),
    radial-gradient(ellipse 55% 40% at 85%  25%, rgba(249,115, 22,0.11) 0%, transparent 55%),
    radial-gradient(ellipse 45% 35% at 15%  35%, rgba(  6,182,212,0.08) 0%, transparent 55%);
  animation: hero-breathe 8s ease-in-out infinite;
}

@keyframes hero-breathe {
  0%,100% { opacity: 1; }
  50%      { opacity: .72; }
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 18px;
  border: 1px solid rgba(6,182,212,0.40);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  color: var(--neon-cyan);
  margin-bottom: 28px;
  background: rgba(6,182,212,0.08);
  letter-spacing: 0.05em;
  box-shadow: 0 0 18px rgba(6,182,212,0.10) inset;
}

.hero-title {
  font-size: clamp(40px, 6.5vw, 76px);
  font-weight: 900;
  letter-spacing: -3px;
  line-height: 1.08;
  margin-bottom: 22px;
  color: var(--text);
}

/* Hero gradient text: fluorescent purple → cyan → blue-violet */
.gradient-text {
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Warm orange → pink-purple gradient text */
.gradient-text-orange {
  background: linear-gradient(90deg, #f97316 0%, #e879f9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Bold weight */
.hero-bold {
  font-weight: 900;
  color: var(--text);
}

/* ===== TYPEWRITER ===== */
.typewriter-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  margin: 8px 0 20px;
  font-size: clamp(28px, 4.5vw, 52px);
}

.typewriter-text {
  font-weight: 700;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, #f97316 0%, #e879f9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.typewriter-cursor {
  display: inline-block;
  width: 2.5px;
  height: 1em;
  background: linear-gradient(180deg, #f97316 0%, #e879f9 100%);
  border-radius: 2px;
  margin-left: 4px;
  vertical-align: middle;
  animation: tw-blink 0.75s ease-in-out infinite;
}

@keyframes tw-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

.hero-desc {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto 36px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 60px;
}

.btn-primary {
  background: linear-gradient(135deg, #f97316, #e879f9, #a855f7);
  color: #fff;
  padding: 13px 30px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: opacity 0.2s, transform 0.2s, box-shadow 0.2s;
  display: inline-block;
  box-shadow: 0 0 22px rgba(249,115,22,0.22), 0 4px 14px rgba(0,0,0,0.25);
}

.btn-primary:hover {
  opacity: 0.90;
  transform: translateY(-2px);
  box-shadow: 0 0 36px rgba(249, 115, 22, 0.45), 0 8px 24px rgba(0,0,0,0.3);
}

/* Ghost button — gradient border + gradient text */
.btn-ghost {
  border: 1px solid transparent;
  background:
    linear-gradient(var(--bg), var(--bg)) padding-box,
    linear-gradient(90deg, #f97316, #e879f9, #a855f7) border-box;
  color: #f97316;
  padding: 13px 30px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
  display: inline-block;
}

.btn-ghost:hover {
  background:
    linear-gradient(rgba(249,115,22,0.07), rgba(249,115,22,0.07)) padding-box,
    linear-gradient(90deg, #f97316, #e879f9, #a855f7) border-box;
  box-shadow: 0 0 24px rgba(249, 115, 22, 0.22), 0 0 10px rgba(232, 121, 249, 0.15);
  transform: translateY(-2px);
}

/* ===== STAT GRID (8 items, 4×2) ===== */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  max-width: 860px;
  margin: 56px auto 0;
}

.stat-row-sep {
  grid-column: 1 / -1;
  height: 1px;
  background: var(--border);
  margin: 28px 0;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 0 8px;
  border-right: 1px solid var(--border);
}

/* Remove border-right from 4th item in each visual row */
.stat-item:nth-child(4),
.stat-item:last-child {
  border-right: none;
}

.stat-val {
  font-size: 38px;
  font-weight: 900;
  letter-spacing: -1.5px;
  line-height: 1;
  color: #F5F5F5;
  white-space: nowrap;
}

[data-theme="light"] .stat-val { color: #212121; }

.stat-suffix {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0;
}

.stat-lbl {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.03em;
  white-space: nowrap;
}

@media (max-width: 600px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); max-width: 340px; }
  .stat-item { border-right: none; }
  .stat-row-sep { margin: 20px 0; }
}

/* ===== SECTIONS ===== */
.section { padding: 96px 0; }
.section-alt { background: transparent; }

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: clamp(30px, 3.5vw, 44px);
  font-weight: 800;
  letter-spacing: -1.5px;
  margin-bottom: 12px;
  color: var(--text);
  line-height: 1.15;
}

.section-header p {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.65;
}

/* ===== WHY FRANKAI — two-panel layout ===== */
.why-duo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch;
}

/* Outer card */
.why-duo-card {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid transparent;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s, box-shadow 0.3s;
}
.why-duo-card:hover { transform: translateY(-5px); }

.why-duo-orange {
  border-color: rgba(249,115,22,0.22);
  background: linear-gradient(160deg, rgba(249,115,22,0.07) 0%, rgba(232,121,249,0.04) 100%);
}
.why-duo-orange:hover {
  border-color: rgba(249,115,22,0.44);
  box-shadow: 0 0 48px rgba(249,115,22,0.11), 0 20px 56px rgba(0,0,0,0.28);
}
.why-duo-purple {
  border-color: rgba(168,85,247,0.22);
  background: linear-gradient(160deg, rgba(168,85,247,0.07) 0%, rgba(99,102,241,0.04) 100%);
}
.why-duo-purple:hover {
  border-color: rgba(168,85,247,0.44);
  box-shadow: 0 0 48px rgba(168,85,247,0.11), 0 20px 56px rgba(0,0,0,0.28);
}

/* Card header */
.why-duo-header {
  padding: 32px 32px 24px;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.why-duo-header::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.why-duo-orange .why-duo-header::before {
  background: radial-gradient(ellipse 80% 80% at 90% -10%, rgba(249,115,22,0.14) 0%, transparent 70%);
}
.why-duo-purple .why-duo-header::before {
  background: radial-gradient(ellipse 80% 80% at 90% -10%, rgba(168,85,247,0.14) 0%, transparent 70%);
}

.why-duo-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.why-duo-orange .why-duo-badge {
  background: rgba(249,115,22,0.13);
  color: #f97316;
  border: 1px solid rgba(249,115,22,0.28);
}
.why-duo-purple .why-duo-badge {
  background: rgba(168,85,247,0.13);
  color: #a855f7;
  border: 1px solid rgba(168,85,247,0.28);
}

.why-duo-title {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.2;
  margin-bottom: 8px;
  position: relative;
}
.why-duo-orange .why-duo-title { color: var(--text); }
.why-duo-purple .why-duo-title { color: var(--text); }

.why-duo-tagline {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  position: relative;
}

/* Feature list */
.why-duo-features {
  padding: 24px 32px 32px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  flex: 1;
}

.why-feat {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.why-feat-icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  margin-top: 1px;
}
.why-duo-orange .why-feat-icon-wrap {
  background: rgba(249,115,22,0.10);
  border: 1px solid rgba(249,115,22,0.20);
}
.why-duo-purple .why-feat-icon-wrap {
  background: rgba(168,85,247,0.10);
  border: 1px solid rgba(168,85,247,0.20);
}

.why-feat-body { flex: 1; }

.why-feat-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
  letter-spacing: -0.1px;
}

.why-feat-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.75;
}

/* Divider between features */
.why-feat + .why-feat {
  padding-top: 22px;
  border-top: 1px solid var(--border);
  margin-top: -22px; /* cancel gap, use padding so border shows */
}

@media (max-width: 768px) {
  .why-duo-grid { grid-template-columns: 1fr; }
}

/* ===== MODELS ===== */
.models-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.model-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  background: var(--bg-card);
  position: relative;
  transition: border-color 0.25s, transform 0.2s, box-shadow 0.25s;
  cursor: pointer;
}

.model-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: 0 0 24px rgba(168,85,247,0.08);
}

.model-card.active {
  border-color: transparent;
  background-clip: padding-box;
  box-shadow: 0 0 0 1.5px transparent, 0 0 24px rgba(168,85,247,0.15);
  position: relative;
}

.model-card.active::before {
  content: '';
  position: absolute;
  inset: -1.5px;
  border-radius: calc(var(--radius) + 1.5px);
  background: linear-gradient(135deg, #a855f7, #06b6d4, #a855f7);
  z-index: -1;
}

.model-icon { font-size: 24px; margin-bottom: 12px; color: var(--neon-cyan); }
.model-name { font-size: 15px; font-weight: 600; margin-bottom: 4px; color: var(--text); }
.model-provider { font-size: 13px; color: var(--text-muted); }

.model-tag {
  position: absolute;
  top: 16px; right: 16px;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(168,85,247,0.12);
  color: var(--neon-purple);
  border: 1px solid rgba(168,85,247,0.3);
}

.model-card-more {
  display: flex;
  align-items: center;
  justify-content: center;
  border-style: dashed;
}

.model-more-text { color: var(--text-muted); font-size: 14px; }
.model-card-more:hover .model-more-text { color: var(--neon-cyan); }

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

.price-compare-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  background: var(--bg-card);
  display: flex;
  align-items: center;
  gap: 16px;
}

.price-compare-icon {
  flex-shrink: 0;
}

.price-compare-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.price-compare-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.price-compare-value {
  margin-left: auto;
  font-size: 22px;
  font-weight: 700;
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== STATUS ===== */
.status-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 640px;
  margin: 0 auto;
}

.status-item {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 20px;
  background: var(--bg-card);
  transition: border-color 0.2s;
}

.status-item:hover { border-color: var(--border-hover); }

.status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-dot.green  { background: #22c55e; box-shadow: 0 0 8px #22c55e; }
.status-dot.yellow { background: #eab308; box-shadow: 0 0 8px #eab308; }
.status-dot.red    { background: #ef4444; box-shadow: 0 0 8px #ef4444; }

.status-name { flex: 1; font-size: 14px; font-weight: 500; color: var(--text); }
.status-label { font-size: 13px; }
.status-ok   { color: #22c55e; }
.status-warn { color: #eab308; }
.status-latency { font-size: 13px; color: var(--text-muted); margin-left: 16px; font-variant-numeric: tabular-nums; }

/* ===== PRICING ===== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: start;
}

.pricing-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  background: var(--bg-card);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.pricing-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 0 24px rgba(168,85,247,0.08);
}

.pricing-card-featured {
  border-color: rgba(168,85,247,0.4);
  background: linear-gradient(180deg, rgba(168,85,247,0.07) 0%, var(--bg-card) 100%);
}

.pricing-badge {
  position: absolute;
  top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--gradient);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 12px;
  border-radius: 999px;
  white-space: nowrap;
}

.pricing-name  { font-size: 14px; color: var(--text-muted); font-weight: 500; }
.pricing-price { font-size: 40px; font-weight: 800; letter-spacing: -1px; margin: 4px 0; color: var(--text); }
.pricing-unit  { font-size: 13px; color: var(--neon-cyan); margin-bottom: 16px; }

.pricing-features {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
  flex: 1;
}

.pricing-features li {
  font-size: 14px;
  color: var(--text-muted);
  padding-left: 16px;
  position: relative;
}

.pricing-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--neon-green);
  font-size: 12px;
}

/* ===== CODE BLOCK ===== */
.code-block {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  max-width: 680px;
  margin: 0 auto;
}

.code-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}

.code-lang { font-size: 12px; color: var(--text-muted); }

.code-copy {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}

.code-copy:hover { color: var(--text); border-color: rgba(255,255,255,0.15); }

pre {
  padding: 20px;
  overflow-x: auto;
  background: var(--bg-card);
  font-family: 'Fira Code', 'Cascadia Code', 'Consolas', monospace;
  font-size: 13px;
  line-height: 1.7;
}

.c-keyword { color: var(--neon-purple); }
.c-string  { color: var(--neon-green); }
.c-num     { color: #fb923c; }

/* ===== CHANNELS ===== */
.channels-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.channel-card {
  border: 1px solid rgba(249,115,22,0.22);
  border-radius: 20px;
  padding: 28px;
  background: linear-gradient(160deg, rgba(249,115,22,0.07) 0%, rgba(232,121,249,0.04) 100%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}

/* 顶部渐变亮线 */
.channel-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, #f97316, #e879f9, #a855f7);
  opacity: 0.22;
  transition: opacity 0.3s;
}

.channel-card:hover {
  border-color: rgba(249,115,22,0.44);
  box-shadow: 0 0 48px rgba(249,115,22,0.11), 0 20px 56px rgba(0,0,0,0.28);
  transform: translateY(-5px);
}

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

.channel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.channel-badge {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 3px 10px;
  border-radius: 999px;
}

.badge-purple { background: rgba(168,85,247,0.15); color: #fff; border: 1px solid rgba(168,85,247,0.3); }
.badge-orange { background: rgba(249,115,22,0.12);  color: #fff; border: 1px solid rgba(249,115,22,0.3); }
.badge-pink   { background: rgba(232,121,249,0.12); color: #fff; border: 1px solid rgba(232,121,249,0.3); }

[data-theme="light"] .badge-purple { color: #6d28d9; }
[data-theme="light"] .badge-orange { color: #c2410c; }
[data-theme="light"] .badge-pink   { color: #a21caf; }

.channel-rate { font-size: 12px; color: var(--text-muted); display: flex; align-items: baseline; gap: 5px; }
.channel-rate span {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1;
  background: linear-gradient(90deg, #f97316, #e879f9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.channel-name {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.3px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(90deg, #f97316, #e879f9, #a855f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.channel-logo {
  width: 24px;
  height: 24px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 6px;
}

.channel-version {
  font-size: 12px;
  color: var(--text-muted);
  font-family: 'Fira Code', 'Cascadia Code', monospace;
}

.channel-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
  flex: 1;
}

/* ===== MODEL LIST ===== */
.model-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.model-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.model-group-title {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.38);
  font-weight: 500;
  letter-spacing: 0.03em;
}

[data-theme="light"] .model-group-title { color: rgba(0, 0, 0, 0.45); }

.model-group-desc {
  font-size: 10px;
  color: rgba(249, 115, 22, 0.6);
  letter-spacing: 0.02em;
  margin-top: 1px;
}

.model-id-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.model-id {
  font-size: 11px;
  font-family: 'Fira Code', 'Cascadia Code', 'Consolas', monospace;
  color: rgba(255, 255, 255, 0.65);
  background: rgba(249, 115, 22, 0.06);
  border: 1px solid rgba(249, 115, 22, 0.18);
  border-radius: 5px;
  padding: 3px 8px;
  transition: border-color 0.2s, color 0.2s;
}

[data-theme="light"] .model-id { color: rgba(0, 0, 0, 0.65); }

.channel-card:hover .model-id {
  border-color: rgba(232, 121, 249, 0.3);
  color: rgba(255, 255, 255, 0.85);
}

[data-theme="light"] .channel-card:hover .model-id { color: rgba(0, 0, 0, 0.85); }

.channel-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.channel-tag {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

[data-theme="light"] .channel-tag { background: rgba(0,0,0,0.04); }

/* ===== REGISTER CTA ===== */
.register-cta {
  text-align: center;
  padding: 72px 48px;
  border-radius: 24px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(249,115,22,0.07) 0%, rgba(168,85,247,0.07) 100%);
  border: 1px solid rgba(249,115,22,0.15);
}

.register-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 50% 100%, rgba(168,85,247,0.12) 0%, transparent 65%),
    radial-gradient(ellipse 50% 40% at 10%  50%, rgba(249,115,22,0.08) 0%, transparent 60%);
  pointer-events: none;
}

.register-cta h2 {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 900;
  letter-spacing: -1.5px;
  margin-bottom: 18px;
  color: var(--text);
  line-height: 1.1;
  position: relative;
}

.register-cta p {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 36px;
  position: relative;
}

.register-cta .btn-primary {
  padding: 15px 40px;
  font-size: 15px;
  font-weight: 700;
  position: relative;
}

.register-cta-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}

/* ===== WECHAT RECHARGE CONTACTS ===== */
.wechat-contacts {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 40px auto 0;
  max-width: 560px;
  background: var(--bg-card);
  border: 1px solid rgba(7,193,96,0.20);
  border-radius: 20px;
  overflow: hidden;
}

.wechat-contact-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 36px 28px;
  position: relative;
  transition: background 0.25s;
}
.wechat-contact-card:hover {
  background: rgba(7,193,96,0.05);
}

.wechat-contact-sep {
  width: 1px;
  height: 140px;
  background: rgba(7,193,96,0.18);
  flex-shrink: 0;
}

.wechat-contact-svg {
  width: 36px;
  height: 36px;
  color: #07C160;
  flex-shrink: 0;
}

.wechat-contact-id {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.3px;
  color: var(--text);
  background: rgba(7,193,96,0.08);
  border: 1px solid rgba(7,193,96,0.20);
  border-radius: 8px;
  padding: 8px 20px;
  font-family: 'Fira Code', 'Cascadia Code', 'Consolas', monospace;
}

.wechat-copy-btn {
  padding: 8px 22px;
  border-radius: 999px;
  background: rgba(7,193,96,0.10);
  border: 1px solid rgba(7,193,96,0.28);
  color: #07C160;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s, color 0.2s;
  letter-spacing: 0.02em;
}
.wechat-copy-btn:hover {
  background: rgba(7,193,96,0.18);
  box-shadow: 0 0 16px rgba(7,193,96,0.20);
}
.wechat-copy-btn.wechat-copy-done {
  color: #4ade80;
  border-color: rgba(74,222,128,0.35);
  background: rgba(74,222,128,0.08);
}

.register-cta-hint {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 12px;
  position: relative;
}

[data-theme="light"] .wechat-contact-card:hover {
  background: rgba(7,193,96,0.04);
}

@media (max-width: 480px) {
  .wechat-contacts { flex-direction: column; max-width: 280px; }
  .wechat-contact-sep { width: 200px; height: 1px; }
}

/* ===== CONTACT ===== */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 720px;
  margin: 0 auto;
}

.contact-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  background: var(--bg-card);
  text-align: center;
  transition: border-color 0.25s, transform 0.2s, box-shadow 0.25s;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(168,85,247,0.08);
}

.contact-icon  { font-size: 24px; margin-bottom: 4px; }
.contact-label { font-size: 13px; color: var(--text-muted); }
.contact-value { font-size: 14px; font-weight: 500; color: var(--text); }

/* ===== FOOTER ===== */
.footer {
  border-top: 1px solid var(--border);
  padding: 60px 0 0;
  background: var(--bg-alt);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 48px;
}

.footer-brand .logo-img {
  height: 32px;
  margin-bottom: 14px;
}

.footer-brand-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 200px;
}

.footer-col-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.04em;
  margin-bottom: 16px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 13px;
  color: var(--text-muted);
  transition: color 0.2s;
}

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

.footer-social {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-social-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer-social-item:hover { color: var(--text); }

.footer-social-item svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 20px 0;
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  background: var(--bg-alt);
  width: 100%;
  margin-top: 0;
}

/* ===== STATUS PREVIEW ===== */
/* 外层居中容器 */
.sp-list-outer {
  width: 75%;
  margin: 0 auto;
  margin-bottom: 0;
}

.sp-overall {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(74,222,128,0.06);
  border: 1px solid rgba(74,222,128,0.18);
  border-radius: var(--radius);
  padding: 14px 32px;
  margin-bottom: 12px;
}

.sp-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--neon-green);
  box-shadow: 0 0 8px rgba(74,222,128,0.6);
  flex-shrink: 0;
  animation: opPulse 2s infinite;
}

@keyframes opPulse {
  0%,100% { opacity:1; }
  50%      { opacity:0.4; }
}

.sp-overall-text {
  font-size: 14px;
  font-weight: 600;
  color: var(--neon-green);
  flex: 1;
}

.sp-check {
  font-size: 12px;
  color: var(--text-muted);
}

.sp-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.sp-list-wrap {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.sp-row {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 16px 32px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
}

.sp-row:last-child { border-bottom: none; }
.sp-row:hover { background: rgba(255,255,255,0.02); }

.sp-row-left {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 280px;
  flex-shrink: 0;
}

.sp-logo {
  width: 28px; height: 28px;
  object-fit: contain;
  border-radius: 6px;
  flex-shrink: 0;
}

.sp-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 6px;
}

.sp-tag {
  font-size: 10px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(168,85,247,0.15);
  color: var(--neon-purple);
  letter-spacing: 0.03em;
}

.sp-tag-blue {
  background: rgba(99,102,241,0.15);
  color: #818cf8;
}

.sp-sub {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.sp-bars {
  display: flex;
  gap: 3px;
  flex: 1;
  align-items: flex-end;
  height: 32px;
}

.sp-bar {
  flex: 1;
  min-width: 3px;
  border-radius: 2px 2px 1px 1px;
}

.sp-green  { background: rgba(74,222,128,0.75); }
.sp-yellow { background: rgba(234,179,8,0.8); }
.sp-red    { background: rgba(239,68,68,0.7); }

.sp-uptime {
  font-size: 13px;
  font-weight: 600;
  color: var(--neon-green);
  min-width: 44px;
  text-align: right;
}

.sp-status {
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  min-width: 48px;
  text-align: center;
}

.sp-status-ok {
  background: rgba(74,222,128,0.1);
  color: var(--neon-green);
  border: 1px solid rgba(74,222,128,0.2);
}

.sp-footer {
  text-align: center;
  margin-top: 16px;
  width: 100%;
}

.sp-more {
  font-size: 13px;
  color: var(--text-muted);
  transition: color 0.2s;
}

.sp-more:hover { color: var(--text); }

/* ===== REGISTER CTA ACTIONS ===== */
.register-cta-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-ghost-cta {
  position: relative;
  background: transparent;
  color: var(--text);
  border: none;
  padding: 15px 40px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: color 0.2s, background 0.2s, transform 0.2s;
}

.btn-ghost-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  padding: 1px;
  background: linear-gradient(135deg, #f97316, #e879f9, #a855f7);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.btn-ghost-cta:hover {
  background: rgba(249,115,22,0.07);
  transform: translateY(-2px);
}

/* ===== WECHAT MODAL ===== */
.wechat-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
}

.wechat-modal.open { display: flex; }

.wechat-modal-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 36px;
  text-align: center;
  position: relative;
  max-width: 320px;
  width: 90%;
}

.wechat-modal-close {
  position: absolute;
  top: 12px; right: 14px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 16px;
  cursor: pointer;
  transition: color 0.2s;
}

.wechat-modal-close:hover { color: var(--text); }

.wechat-modal-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 20px;
}

.wechat-qr-wrap {
  background: #fff;
  border-radius: 10px;
  padding: 12px;
  display: inline-block;
  margin-bottom: 14px;
}

.wechat-qr {
  width: 180px;
  height: 180px;
  object-fit: contain;
  display: block;
}

.wechat-modal-tip {
  font-size: 12px;
  color: var(--text-muted);
}

/* ===== HAMBURGER BUTTON ===== */
.nav-hamburger {
  display: none;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s;
  flex-shrink: 0;
}
.nav-hamburger:hover { background: rgba(255,255,255,0.18); }
[data-theme="light"] .nav-hamburger {
  background: rgba(255,255,255,0.72);
  border-color: rgba(0,0,0,0.10);
  color: #212121;
}
[data-theme="light"] .nav-hamburger:hover { background: rgba(255,255,255,0.92); }

/* ===== MOBILE DRAWER ===== */
.nav-mobile-drawer {
  display: none;
  position: fixed;
  top: 82px;
  left: 12px;
  right: 12px;
  background: rgba(10,10,10,0.96);
  backdrop-filter: blur(32px) saturate(180%);
  -webkit-backdrop-filter: blur(32px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  padding: 10px;
  z-index: 98;
  animation: drawerIn 0.18s ease;
}
[data-theme="light"] .nav-mobile-drawer {
  background: rgba(255,255,255,0.97);
  border-color: rgba(0,0,0,0.08);
}
@keyframes drawerIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.nav-mobile-drawer.open { display: block; }

.nav-mobile-links {
  display: flex !important;
  flex-direction: column;
  gap: 2px;
  background: none !important;
  border: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  position: static !important;
  transform: none !important;
}
.nav-mobile-links a {
  padding: 11px 14px !important;
  border-radius: 10px !important;
  font-size: 15px !important;
  color: var(--text) !important;
  background: none !important;
  display: block;
  white-space: normal !important;
}
.nav-mobile-links a:hover {
  background: rgba(255,255,255,0.08) !important;
  color: #fff !important;
}
[data-theme="light"] .nav-mobile-links a { color: #212121 !important; }
[data-theme="light"] .nav-mobile-links a:hover {
  background: rgba(0,0,0,0.05) !important;
  color: #000 !important;
}

.nav-mobile-actions {
  display: flex;
  gap: 10px;
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}
.nav-mobile-actions a {
  flex: 1;
  text-align: center;
  padding: 10px 12px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-contact { display: none; }
  .btn-console { display: none; }
  .nav-hamburger { display: flex; }
  .models-grid, .pricing-grid, .contact-grid, .channels-grid { grid-template-columns: 1fr 1fr; }
  .hero-stats { flex-direction: column; gap: 16px; padding: 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .stat-divider { width: 40px; height: 1px; }
}

@media (max-width: 480px) {
  .models-grid, .pricing-grid, .contact-grid, .channels-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: center; }
}
