:root {
  --bg: #080b18;
  --bg-soft: #0e1428;
  --surface: rgba(255, 255, 255, 0.055);
  --surface-strong: rgba(255, 255, 255, 0.09);
  --border: rgba(255, 255, 255, 0.12);
  --text: #eef1ff;
  --muted: #9ba5c8;
  --accent: #7c5cff;
  --accent-2: #25d0ee;
  --ok: #37d39b;
  --warn: #ffb84d;
  --radius: 18px;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(900px 520px at 12% -10%, rgba(124, 92, 255, 0.24), transparent 60%),
    radial-gradient(760px 460px at 92% 8%, rgba(37, 208, 238, 0.16), transparent 62%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
p { margin: 0 0 12px; }
h1, h2, h3 { margin: 0 0 14px; line-height: 1.25; }
strong { font-weight: 650; }
.muted { color: var(--muted); }
.small-text { font-size: 13px; }
.mono { font-family: "JetBrains Mono", "Cascadia Mono", Consolas, monospace; letter-spacing: 0.04em; }
.hidden { display: none !important; }
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 28px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 16px 24px;
  backdrop-filter: blur(18px);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: 0.02em; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 8px 24px rgba(124, 92, 255, 0.45);
}
.brand-mark.small { width: 30px; height: 30px; font-size: 11px; }
.brand-name { font-size: 17px; }
.nav { display: flex; gap: 24px; margin-left: auto; color: var(--muted); font-size: 14px; }
.nav a:hover { color: var(--text); }
.header-cta { padding: 9px 16px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), #5b45d6);
  box-shadow: 0 12px 30px rgba(124, 92, 255, 0.35);
}
.btn-primary:hover { box-shadow: 0 16px 38px rgba(124, 92, 255, 0.5); }
.btn-ghost { color: var(--text); background: var(--surface); border-color: var(--border); }
.btn-ghost:hover { background: var(--surface-strong); }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

.hero { position: relative; overflow: hidden; padding: 72px 24px 96px; }
.hero-glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.5; pointer-events: none; }
.hero-glow.one { width: 320px; height: 320px; background: var(--accent); top: 40px; left: -120px; }
.hero-glow.two { width: 280px; height: 280px; background: var(--accent-2); bottom: 0; right: -100px; }
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}
.eyebrow {
  display: inline-block;
  margin-bottom: 16px;
  padding: 5px 12px;
  border: 1px solid rgba(124, 92, 255, 0.45);
  border-radius: 999px;
  background: rgba(124, 92, 255, 0.12);
  color: #c9bcff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.hero h1 { font-size: clamp(38px, 5.2vw, 64px); letter-spacing: -0.03em; }
.gradient-text {
  background: linear-gradient(100deg, #a78bfa, #67e8f9);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-lead { max-width: 570px; color: #b6bfdd; font-size: 17px; }
.hero-actions { display: flex; gap: 14px; margin: 28px 0 24px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 18px; color: var(--muted); font-size: 13px; }
.hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
.hero-meta .icon { width: 16px; height: 16px; color: var(--accent-2); }

.hero-visual { position: relative; }
.mock-window {
  border: 1px solid var(--border);
  border-radius: 20px;
  background: linear-gradient(160deg, rgba(20, 27, 52, 0.95), rgba(11, 15, 31, 0.95));
  box-shadow: var(--shadow);
  overflow: hidden;
  transform: perspective(900px) rotateY(-6deg) rotateX(3deg);
}
.mock-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--border); color: var(--muted); font-size: 12px; }
.mock-bar i { width: 9px; height: 9px; border-radius: 50%; background: #4b5578; }
.mock-bar span { margin-left: 12px; }
.mock-body { display: grid; grid-template-columns: 116px 1fr; min-height: 310px; }
.mock-sidebar { display: flex; flex-direction: column; gap: 12px; padding: 20px 14px; border-right: 1px solid var(--border); color: var(--muted); font-size: 13px; }
.mock-sidebar .active { color: var(--text); background: var(--surface); padding: 6px 10px; border-radius: 8px; }
.mock-content { padding: 24px; }
.mock-line { height: 12px; width: 72%; margin-bottom: 14px; border-radius: 6px; background: linear-gradient(90deg, rgba(124,92,255,.35), rgba(37,208,238,.2)); }
.mock-line.wide { width: 92%; height: 18px; }
.mock-line.short { width: 40%; }
.mock-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 26px 0; }
.mock-card { aspect-ratio: 3 / 4; border: 1px solid var(--border); border-radius: 10px; background: linear-gradient(150deg, rgba(124,92,255,.25), rgba(37,208,238,.08)); }
.float-badge {
  position: absolute;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(12, 17, 34, 0.9);
  box-shadow: var(--shadow);
  font-size: 12px;
  color: var(--text);
}
.float-badge.top { top: 26px; right: -12px; }
.float-badge.bottom { bottom: 26px; left: -14px; color: var(--ok); }

.section { max-width: 1180px; margin: 0 auto; padding: 84px 24px; }
.section-alt { max-width: none; background: rgba(255,255,255,.025); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-alt > * { max-width: 1180px; margin-left: auto; margin-right: auto; }
.section-head { max-width: 640px; margin-bottom: 42px; }
.section-head h2 { font-size: clamp(28px, 3.2vw, 40px); }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature-card, .module-card, .price-card, .panel, .step {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 12px 40px rgba(0,0,0,.18);
}
.feature-card { padding: 26px; transition: transform .2s ease, border-color .2s ease; }
.feature-card:hover { transform: translateY(-4px); border-color: rgba(124,92,255,.5); }
.feature-icon { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 18px; border-radius: 12px; color: #d7cdff; background: rgba(124,92,255,.18); }
.feature-card h3, .module-card h3 { font-size: 18px; }
.feature-card p, .module-card p { color: var(--muted); font-size: 14px; min-height: 46px; }
.coming { display: inline-block; margin-top: 6px; color: #7f8ab0; font-size: 12px; }

.module-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.module-card { position: relative; padding: 28px; overflow: hidden; }
.module-card::after { content: ""; position: absolute; right: -30px; top: -30px; width: 110px; height: 110px; border-radius: 50%; background: rgba(124,92,255,.14); filter: blur(10px); }
.module-card.accent::after { background: rgba(37,208,238,.18); }
.module-tag { display: inline-block; margin-bottom: 14px; color: var(--accent-2); font-size: 11px; font-weight: 800; letter-spacing: .16em; }
.included { display: inline-block; margin-top: 8px; padding: 4px 10px; border-radius: 999px; background: rgba(55,211,155,.14); color: var(--ok); font-size: 12px; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.step { position: relative; padding: 24px 20px; }
.step span { display: block; margin-bottom: 12px; color: var(--accent-2); font-size: 13px; font-weight: 800; letter-spacing: .1em; }
.step p { color: var(--muted); font-size: 13px; margin: 0; }

.pricing-wrap { display: grid; grid-template-columns: 1fr 420px; gap: 56px; align-items: center; }
.check-list { list-style: none; padding: 0; margin: 22px 0 0; color: #c6cee8; }
.check-list li { position: relative; padding-left: 26px; margin-bottom: 10px; font-size: 14px; }
.check-list li::before { content: ""; position: absolute; left: 0; top: 8px; width: 10px; height: 10px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(55,211,155,.14); }
.price-card { padding: 30px; background: linear-gradient(160deg, rgba(124,92,255,.14), var(--surface)); }
.price-label { color: #c9bcff; font-size: 13px; font-weight: 700; }
.price { margin: 10px 0 2px; font-size: 52px; font-weight: 800; letter-spacing: -.04em; }
.price small { font-size: 22px; margin-right: 4px; color: var(--muted); }
.field-label { display: block; margin: 18px 0 7px; color: #c7cfe8; font-size: 13px; font-weight: 600; }
.input {
  width: 100%;
  min-height: 44px;
  padding: 10px 13px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: rgba(8,11,24,.6);
  color: var(--text);
  font: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(124,92,255,.18); }
.price-card .btn { margin-top: 20px; }
.fine-print { margin-top: 14px; color: #7883a8; font-size: 12px; }

.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--border); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 650; }
.faq p { margin: 12px 0 0; color: var(--muted); font-size: 14px; }

.panel-section { max-width: 760px; margin: 0 auto; padding: 72px 24px 96px; }
.panel { padding: 40px; }
.panel.center { text-align: center; }
.panel h1 { font-size: 32px; }
.panel-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.pay-box { display: grid; grid-template-columns: 210px 1fr; gap: 30px; align-items: center; margin-top: 28px; }
.qr-placeholder { padding: 16px; border: 1px solid var(--border); border-radius: 14px; background: #fff; text-align: center; }
.qr-grid { width: 160px; height: 160px; margin: 0 auto 10px; background: repeating-linear-gradient(45deg, #111 0 6px, #fff 6px 12px); border-radius: 6px; }
.pay-row { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.pay-row span { color: var(--muted); }
.status-pill { padding: 3px 10px; border-radius: 999px; font-size: 12px; }
.status-pill.pending { background: rgba(255,184,77,.16); color: var(--warn); }
.status-pill.paid, .status-pill.active { background: rgba(55,211,155,.16); color: var(--ok); }
.status-pill.revoked { background: rgba(255,90,90,.18); color: #ff8a8a; font-weight: 600; }
.status-pill.expired { background: rgba(255,255,255,.08); color: var(--muted); }
.status-pill.closed { background: rgba(255,255,255,.08); color: var(--muted); }
tr.license-revoked td { background: rgba(255,90,90,.035); }

.license-download-card { margin-top: 24px; padding: 22px; border: 1px solid rgba(124,92,255,.35); border-radius: 16px; background: rgba(124,92,255,.06); text-align: center; }
.license-key-box { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; margin: 12px 0 18px; padding: 16px; border: 1px dashed rgba(124,92,255,.45); border-radius: 12px; background: rgba(8,11,24,.55); }
.license-key-box strong { font-size: 20px; letter-spacing: 1px; word-break: break-all; color: #fff; }
.result-card { margin-top: 26px; padding: 20px; border: 1px solid var(--border); border-radius: 14px; background: rgba(8,11,24,.4); }
.result-row { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.result-row:last-child { border-bottom: 0; }
.result-row span { color: var(--muted); flex-shrink: 0; }
.result-row strong { text-align: right; word-break: break-all; }
.success-mark { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 18px; border-radius: 16px; color: var(--ok); background: rgba(55,211,155,.14); }
.success-mark .icon { width: 28px; height: 28px; }

.stepper { display: flex; gap: 10px; margin: 24px 0; flex-wrap: wrap; }
.stepper span { padding: 6px 12px; border: 1px solid var(--border); border-radius: 999px; color: var(--muted); font-size: 12px; }
.stepper span.active { border-color: rgba(124,92,255,.6); color: #d7cdff; background: rgba(124,92,255,.14); }
.form-stack { display: flex; flex-direction: column; margin-top: 12px; }
.form-stack .btn { margin-top: 20px; align-self: flex-start; }
.error-code { font-size: 72px; font-weight: 800; letter-spacing: -.05em; background: linear-gradient(100deg, #a78bfa, #67e8f9); -webkit-background-clip: text; background-clip: text; color: transparent; }

.site-footer { margin-top: 40px; border-top: 1px solid var(--border); background: rgba(0,0,0,.18); }
.footer-inner { max-width: 1180px; margin: 0 auto; padding: 42px 24px; display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: start; }
.footer-title { margin: 10px 0 0; font-weight: 700; }
.footer-links { display: flex; gap: 20px; color: var(--muted); font-size: 13px; }
.footer-note { grid-column: 1 / -1; margin: 0; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 20px);
  z-index: 50;
  max-width: min(520px, calc(100% - 40px));
  padding: 12px 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(14,20,40,.96);
  box-shadow: var(--shadow);
  color: var(--text);
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.error { border-color: rgba(255,120,120,.6); }

@media (max-width: 980px) {
  .nav { display: none; }
  .hero-inner { grid-template-columns: 1fr; gap: 44px; }
  .hero-visual { transform: none; }
  .feature-grid, .module-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .pricing-wrap { grid-template-columns: 1fr; gap: 32px; }
  .pay-box { grid-template-columns: 1fr; justify-items: center; }
}
@media (max-width: 620px) {
  .site-header { padding: 12px 16px; }
  .header-cta { margin-left: auto; }
  .hero { padding: 48px 18px 64px; }
  .section { padding: 56px 18px; }
  .feature-grid, .module-grid, .steps { grid-template-columns: 1fr; }
  .panel { padding: 26px 20px; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-links { flex-wrap: wrap; }
  .mock-body { grid-template-columns: 1fr; }
  .mock-sidebar { display: none; }
}

body.admin-page { background: #070a14; }
.admin-shell { display: grid; grid-template-columns: 236px 1fr; min-height: 100vh; }
.admin-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 22px 14px;
  border-right: 1px solid var(--border);
  background: rgba(8, 11, 24, 0.86);
  display: flex;
  flex-direction: column;
}
.admin-sidebar .brand { padding: 0 10px 18px; }
.admin-section-label { margin: 8px 10px 12px; color: #6f7aa1; font-size: 11px; font-weight: 700; letter-spacing: .14em; }
.admin-nav { display: flex; flex-direction: column; gap: 4px; }
.admin-nav a, .admin-exit {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 13px;
}
.admin-nav a:hover, .admin-exit:hover { color: var(--text); background: var(--surface); }
.admin-nav a.active { color: #ddd4ff; background: rgba(124, 92, 255, 0.16); }
.admin-nav .icon, .admin-exit .icon { width: 17px; height: 17px; }
.admin-exit { margin-top: auto; }
.admin-main { min-width: 0; }
.admin-topbar {
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px;
  border-bottom: 1px solid var(--border);
  background: rgba(8, 11, 24, 0.6);
}
.admin-topbar h1 { margin: 0; font-size: 20px; }
.admin-topbar p { margin: 2px 0 0; }
.admin-user { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; }
.admin-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(55,211,155,.14); }
.admin-content { padding: 28px 30px 48px; }
.admin-notice {
  margin-bottom: 24px;
  padding: 12px 16px;
  border: 1px solid rgba(255,184,77,.28);
  border-radius: 12px;
  background: rgba(255,184,77,.08);
  color: #f3d59b;
  font-size: 13px;
}
.admin-block { margin-bottom: 24px; scroll-margin-top: 18px; }
.admin-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat-card {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
}
.stat-card span { display: block; color: var(--muted); font-size: 12px; }
.stat-card strong { display: block; margin: 8px 0 2px; font-size: 30px; letter-spacing: -.03em; }
.stat-card small { font-size: 11px; }
.admin-panel {
  margin-bottom: 24px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  scroll-margin-top: 18px;
}
.admin-panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.admin-panel-head h2 { margin: 0; font-size: 16px; }
.btn-sm { min-height: 32px; padding: 0 12px; font-size: 12px; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.admin-table th, .admin-table td { padding: 11px 12px; text-align: left; border-bottom: 1px solid var(--border); }
.admin-table th { color: var(--muted); font-weight: 600; }
.admin-table tr:last-child td { border-bottom: 0; }
.admin-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.config-row { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.config-row:last-child { border-bottom: 0; }
.config-row span { color: var(--muted); }

@media (max-width: 900px) {
  .admin-shell { grid-template-columns: 1fr; }
  .admin-sidebar { position: static; height: auto; }
  .admin-nav { flex-direction: row; flex-wrap: wrap; }
  .admin-exit { margin-top: 12px; }
  .admin-grid, .admin-two-col { grid-template-columns: repeat(2, 1fr); }
  .admin-topbar { padding: 0 18px; }
  .admin-content { padding: 20px 18px 40px; }
}
@media (max-width: 560px) {
  .admin-grid, .admin-two-col { grid-template-columns: 1fr; }
}

/* 套餐选择 */
.plan-options { display: grid; gap: 8px; margin: 12px 0 14px; }
.plan-option {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; padding: 10px 12px; border-radius: 10px; cursor: pointer;
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
  font-size: 13px; text-align: left; transition: border-color .15s, background .15s;
}
.plan-option:hover { border-color: rgba(124,92,255,.45); }
.plan-option.active { border-color: rgba(124,92,255,.7); background: rgba(124,92,255,.12); }
.plan-option strong { font-size: 13px; }
.plan-option em { font-style: normal; color: var(--muted); font-size: 11px; }
.plan-option b { color: #c9bfff; font-weight: 700; }

/* ══════════════════════════════════════════════
   首页 v2：黑底 / 浅灰分类卡 / APP 蓝
   ══════════════════════════════════════════════ */

body[data-page="home"] {
  --bg: #050607;
  --bg-soft: #08090b;
  --surface: #0d0f12;
  --surface-strong: #14171c;
  --border: #1d2127;
  --text: #f4f5f7;
  --muted: #9aa1ac;
  --accent: #3b82f6;
  --accent-2: #3b82f6;
  --ok: #3b82f6;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
  background: #050607;
  color: var(--text);
}

body[data-page="home"] .site-header {
  max-width: none;
  padding: 16px max(24px, calc((100vw - 1180px) / 2));
  background: rgba(5, 6, 7, 0.78);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(18px);
}
body[data-page="home"] .brand-mark,
body[data-page="home"] .brand-mark.small {
  background: #3b82f6;
  box-shadow: none;
  border-radius: 10px;
}
body[data-page="home"] .brand-name { color: #f4f5f7; }
body[data-page="home"] .nav { color: #8b93a1; }
body[data-page="home"] .nav a:hover { color: #f4f5f7; }
body[data-page="home"] .btn { border-radius: 999px; }
body[data-page="home"] .header-cta {
  background: #3b82f6;
  border-color: #3b82f6;
  color: #fff;
  box-shadow: none;
}
body[data-page="home"] .header-cta:hover { background: #2563eb; border-color: #2563eb; }
body[data-page="home"] .btn-primary {
  background: #3b82f6;
  box-shadow: 0 12px 28px rgba(59, 130, 246, 0.22);
}
body[data-page="home"] .btn-primary:hover { background: #2563eb; }

.home-hero {
  position: relative;
  overflow: hidden;
  padding: 112px 24px 96px;
  text-align: center;
}
.home-dots {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.55;
  background-image: radial-gradient(rgba(59, 130, 246, 0.22) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 62% 62% at 50% 38%, #000 8%, transparent 72%);
  mask-image: radial-gradient(ellipse 62% 62% at 50% 38%, #000 8%, transparent 72%);
}
.home-hero-inner { position: relative; z-index: 1; max-width: 980px; margin: 0 auto; }
.home-kicker {
  display: inline-block;
  color: #3b82f6;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
}
.home-brand {
  margin: 18px 0 4px;
  color: #3b82f6;
  font-size: clamp(52px, 6vw, 76px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.045em;
}
.home-tagline {
  margin: 0;
  color: #c9cdd4;
  font-family: "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(44px, 7vw, 88px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.055em;
}
.home-lead {
  max-width: 640px;
  white-space: pre-line;
  margin: 28px auto 0;
  color: #9ca3af;
  font-size: 16px;
  line-height: 1.85;
}
.home-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}
.home-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
.home-btn:hover { transform: translateY(-1px); }
.home-btn-primary { background: #3b82f6; color: #fff; }
.home-btn-primary:hover { background: #2563eb; }
.home-btn-ghost { background: transparent; border-color: #2a2f37; color: #d1d5db; }
.home-btn-ghost:hover { border-color: #3b82f6; color: #fff; }
.home-btn-block { width: 100%; margin-top: 20px; }
.home-micro { margin-top: 18px; color: #6b7280; font-size: 12px; }
.home-micro span { margin: 0 8px; color: #3b82f6; }

.home-section { max-width: 1180px; margin: 0 auto; padding: 88px 24px; }
.home-section-head { max-width: 660px; margin-bottom: 40px; }
.home-section-head h2 {
  margin: 12px 0 10px;
  color: #f4f5f7;
  font-size: clamp(28px, 3.2vw, 40px);
  letter-spacing: -0.03em;
}
.home-section-head p { margin: 0; color: #8b93a1; font-size: 15px; line-height: 1.75; }

.home-feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: home-feature; }
.home-feature-card {
  counter-increment: home-feature;
  display: flex;
  flex-direction: column;
  min-height: 280px;
  padding: 24px;
  border: 1px solid #1d2127;
  border-radius: 18px;
  background: #0d0f12;
  color: #f4f5f7;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.home-feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(59, 130, 246, 0.5);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}
.home-feature-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 26px; }
.home-feature-no { color: #6b7280; font-size: 12px; font-weight: 700; letter-spacing: 0.12em; }
.home-feature-no::before { content: counter(home-feature, decimal-leading-zero); }
.home-feature-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #161a20;
  color: #3b82f6;
}
.home-feature-icon .icon { width: 22px; height: 22px; }
.home-feature-card h3 { margin: 0 0 14px; color: #f4f5f7; font-size: 19px; letter-spacing: -0.01em; }
.home-feature-card ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.home-feature-card li { position: relative; padding-left: 15px; color: #8b93a1; font-size: 13px; line-height: 1.7; }
.home-feature-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #3b82f6;
}
.home-card-note { margin-top: auto; padding-top: 18px; color: #6b7280; font-size: 11px; letter-spacing: 0.06em; }

.home-compute-section { border-top: 1px solid #14171c; }
.home-compute-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.home-compute-card { padding: 28px; border: 1px solid #1d2127; border-radius: 16px; background: #0d0f12; }
.home-compute-card.is-accent { border-color: rgba(59, 130, 246, 0.5); background: #0b1220; }
.home-compute-label { color: #3b82f6; font-size: 11px; font-weight: 700; letter-spacing: 0.14em; }
.home-compute-card h3 { margin: 14px 0 8px; color: #f4f5f7; font-size: 18px; }
.home-compute-card p { margin: 0; color: #8b93a1; font-size: 13px; line-height: 1.75; }

.home-module-row { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid #1d2127; }
.home-module { padding: 26px 30px; border-right: 1px solid #1d2127; }
.home-module:last-child { border-right: 0; }
.home-module span { color: #3b82f6; font-size: 11px; font-weight: 700; letter-spacing: 0.16em; }
.home-module h3 { margin: 10px 0 8px; color: #f4f5f7; font-size: 18px; }
.home-module p { margin: 0; color: #8b93a1; font-size: 13px; line-height: 1.7; }

.home-pricing { display: grid; grid-template-columns: 1fr 460px; gap: 56px; align-items: start; }
.home-pricing-copy h2 {
  margin: 12px 0 12px;
  color: #f4f5f7;
  font-size: clamp(28px, 3.2vw, 40px);
  letter-spacing: -0.03em;
}
.home-pricing-lead { max-width: 520px; margin: 0; color: #8b93a1; font-size: 15px; line-height: 1.8; }
.home-check-list { display: grid; gap: 12px; margin: 24px 0 0; padding: 0; list-style: none; }
.home-check-list li { position: relative; padding-left: 22px; color: #c3c8d0; font-size: 14px; }
.home-check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3b82f6;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
}
.home-price-card {
  padding: 30px;
  border: 1px solid #dde1e7;
  border-radius: 20px;
  background: #e9ebef;
  color: #0b0d10;
}
.home-price-label { color: #1d4ed8; font-size: 13px; font-weight: 700; }
.home-price { margin: 10px 0 2px; color: #0b0d10; font-size: 56px; font-weight: 800; letter-spacing: -0.05em; }
.home-price small { margin-right: 4px; color: #4b5563; font-size: 22px; }
.home-price-period { margin: 0 0 14px; color: #6b7280; font-size: 13px; }
.home-field-label { display: block; margin: 18px 0 7px; color: #374151; font-size: 13px; font-weight: 600; }
.home-input {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #cbd1da;
  border-radius: 10px;
  background: #f7f8fa;
  color: #0b0d10;
  font: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.home-input:focus { border-color: #3b82f6; box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.16); }
.home-fine-print { margin: 14px 0 0; color: #6b7280; font-size: 12px; }
.home-muted { color: #6b7280; font-size: 13px; }
.home-price-card .plan-option {
  border-color: #d5dae2;
  background: #f7f8fa;
  color: #0b0d10;
}
.home-price-card .plan-option:hover { border-color: #3b82f6; }
.home-price-card .plan-option.active { border-color: #2563eb; background: #e3ecff; }
.home-price-card .plan-option em { color: #6b7280; }
.home-price-card .plan-option b { color: #1d4ed8; }

.home-faq-section { max-width: 980px; }
.home-faq-list { border-top: 1px solid #1d2127; }
.home-faq-list details { padding: 18px 0; border-bottom: 1px solid #1d2127; }
.home-faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: #e5e7eb;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.home-faq-list summary::-webkit-details-marker { display: none; }
.home-faq-list summary::after { content: "+"; color: #3b82f6; font-size: 18px; font-weight: 400; }
.home-faq-list details[open] summary::after { content: "−"; }
.home-faq-list p { margin: 12px 0 0; color: #8b93a1; font-size: 14px; line-height: 1.8; }

body[data-page="home"] .site-footer { border-top: 1px solid #171a1f; background: #050607; }
body[data-page="home"] .footer-title { color: #f4f5f7; }
body[data-page="home"] .footer-links { color: #8b93a1; }
body[data-page="home"] .footer-links a:hover { color: #fff; }

@media (max-width: 1040px) {
  .home-feature-grid { grid-template-columns: repeat(2, 1fr); }
  .home-pricing { grid-template-columns: 1fr; gap: 32px; }
  .home-price-card { max-width: 520px; }
}
@media (max-width: 760px) {
  .home-compute-grid { grid-template-columns: 1fr; }
  .home-module-row { grid-template-columns: 1fr; }
  .home-module { padding: 22px 0; border-right: 0; border-bottom: 1px solid #1d2127; }
  .home-module:last-child { border-bottom: 0; }
}
@media (max-width: 620px) {
  .home-hero { padding: 72px 18px 64px; }
  .home-brand { font-size: 56px; }
  .home-tagline { font-size: 44px; }
  .home-lead { font-size: 15px; }
  .home-section { padding: 64px 18px; }
  .home-feature-grid { grid-template-columns: 1fr; }
}


/* ── 后台导航分组 ── */
.admin-nav-top {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 13px;
}
.admin-nav-top:hover { color: var(--text); background: var(--surface); }
.admin-nav-top.active { color: #ddd4ff; background: rgba(124, 92, 255, 0.16); }
.admin-nav-group { display: flex; flex-direction: column; margin-top: 4px; }
.admin-nav-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 9px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #7f8ab0;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
}
.admin-nav-group-head:hover { color: var(--text); background: var(--surface); }
.admin-nav-group-head::after {
  content: "";
  width: 6px;
  height: 6px;
  margin-right: 3px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.15s ease;
}
.admin-nav-group.open .admin-nav-group-head::after { transform: rotate(-135deg); }
.admin-nav-group-body { display: none; flex-direction: column; gap: 2px; padding-left: 8px; }
.admin-nav-group.open .admin-nav-group-body { display: flex; }
.admin-nav-group-body a {
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 13px;
}
.admin-nav-group-body a:hover { color: var(--text); background: var(--surface); }
.admin-nav-group-body a.active { color: #ddd4ff; background: rgba(124, 92, 255, 0.16); }

/* ── 页面装修 ── */
.admin-appearance {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(480px, 46%);
  gap: 20px;
  align-items: start;
}
.admin-appearance-editor { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.admin-appearance .admin-panel { margin-bottom: 0; }
.admin-appearance-preview {
  position: sticky;
  top: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #0b0d14;
}
.admin-appearance-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-size: 12px;
}
.admin-appearance-preview-head > div { display: flex; gap: 6px; }
.admin-appearance-preview iframe { display: block; width: 100%; height: calc(100vh - 170px); min-height: 620px; border: 0; background: #050607; }

.ap-color-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.ap-color-grid label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--muted);
  font-size: 12px;
}
.ap-color-grid input[type="color"] {
  width: 34px;
  height: 26px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.ap-three-col { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 12px; }
.ap-four-col { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 8px; }
.ap-textarea { min-height: 72px; resize: vertical; }
.ap-list { display: flex; flex-direction: column; gap: 12px; }
.ap-item { padding: 14px; border: 1px solid var(--border); border-radius: 12px; background: rgba(255, 255, 255, 0.02); }
.ap-item-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.ap-item-head strong { font-size: 13px; }
.ap-item-actions { display: flex; align-items: center; gap: 6px; }
.ap-item-actions button {
  min-height: 28px;
  padding: 0 9px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.ap-item-actions button:hover { border-color: rgba(124, 92, 255, 0.5); }
.ap-item-actions button.danger:hover { border-color: rgba(255, 120, 120, 0.6); color: #ff8a8a; }
.ap-item .admin-two-col { gap: 12px; }
.ap-inline { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; }
.ap-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ap-actions .fine-print { margin: 0; }
.ap-empty { padding: 14px; border: 1px dashed var(--border); border-radius: 10px; color: var(--muted); font-size: 12px; }

@media (max-width: 1200px) {
  .admin-appearance { grid-template-columns: 1fr; }
  .admin-appearance-preview { position: static; }
  .admin-appearance-preview iframe { height: 70vh; }
}
@media (max-width: 620px) {
  .ap-color-grid, .ap-three-col, .ap-four-col { grid-template-columns: 1fr; }
}

/* ── 可上传 LOGO ── */
.brand-logo {
  display: block;
  width: auto;
  height: auto;
  max-width: 168px;
  object-fit: contain;
}
.brand-logo.footer { margin: 10px 0 0; }
.footer-inner.no-brand { grid-template-columns: 1fr; }
.footer-inner.no-brand .footer-links { justify-self: start; }

/* ── 后台 LOGO 设置 ── */
.ap-check-row { display: flex; flex-wrap: wrap; gap: 10px 16px; margin-top: 14px; }
.ap-logo-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.ap-logo-preview {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  margin-top: 14px;
  padding: 10px 14px;
  border: 1px dashed var(--border);
  border-radius: 10px;
  color: var(--muted);
  font-size: 12px;
}
.ap-logo-preview img { display: none; max-width: 180px; max-height: 64px; object-fit: contain; }

/* ── 隐私政策页 ── */
body[data-page="privacy"] { background: #050607; color: #f4f5f7; }
body[data-page="privacy"] .site-header {
  max-width: none;
  padding: 16px max(24px, calc((100vw - 1180px) / 2));
  background: rgba(5, 6, 7, 0.78);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(18px);
}
body[data-page="privacy"] .brand-mark { background: #3b82f6; box-shadow: none; border-radius: 10px; }
body[data-page="privacy"] .brand-name { color: #f4f5f7; }
body[data-page="privacy"] .nav { color: #8b93a1; }
body[data-page="privacy"] .nav a:hover { color: #f4f5f7; }
body[data-page="privacy"] .btn { border-radius: 999px; }
body[data-page="privacy"] .header-cta { background: #3b82f6; border-color: #3b82f6; color: #fff; box-shadow: none; }
body[data-page="privacy"] .header-cta:hover { background: #2563eb; border-color: #2563eb; }
body[data-page="privacy"] .site-footer { border-top: 1px solid #171a1f; background: #050607; }
body[data-page="privacy"] .footer-title { color: #f4f5f7; }
body[data-page="privacy"] .footer-links { color: #8b93a1; }
body[data-page="privacy"] .footer-links a:hover { color: #fff; }

.legal-page { padding: 72px 24px 96px; }
.legal-inner { max-width: 860px; margin: 0 auto; }
.legal-inner h1 {
  margin: 14px 0 10px;
  color: #f4f5f7;
  font-size: clamp(36px, 5vw, 52px);
  letter-spacing: -0.03em;
}
.legal-updated { margin: 0; color: #6b7280; font-size: 13px; }
.legal-lead { margin: 18px 0 30px; color: #9ca3af; font-size: 15px; line-height: 1.85; }
.legal-highlight {
  margin-bottom: 32px;
  padding: 20px 22px;
  border: 1px solid rgba(59, 130, 246, 0.45);
  border-radius: 14px;
  background: rgba(59, 130, 246, 0.08);
}
.legal-highlight strong { color: #3b82f6; font-size: 13px; letter-spacing: 0.08em; }
.legal-highlight p { margin: 10px 0 0; color: #d1d5db; font-size: 14px; line-height: 1.8; }
.legal-card { padding: 30px 32px; border: 1px solid #1d2127; border-radius: 18px; background: #0d0f12; }
.legal-card h2 { margin: 28px 0 10px; color: #f4f5f7; font-size: 17px; }
.legal-card h2:first-child { margin-top: 0; }
.legal-card p, .legal-card li { color: #9aa1ac; font-size: 14px; line-height: 1.85; }
.legal-card ul { margin: 10px 0 0; padding-left: 20px; }
.legal-card li { margin-bottom: 7px; }
.legal-card strong { color: #e5e7eb; }
.legal-note {
  margin-top: 16px;
  padding: 12px 14px;
  border-left: 2px solid #3b82f6;
  background: rgba(59, 130, 246, 0.07);
  color: #c3c8d0;
  font-size: 13px;
  line-height: 1.8;
}

@media (max-width: 620px) {
  .legal-page { padding: 52px 18px 72px; }
  .legal-card { padding: 22px 18px; }
}

/* ── 页面装修：中/英内容编辑 ── */
.ap-lang-tabs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
}
.ap-lang-tabs .fine-print { margin: 0 0 0 auto; }
.ap-lang-tab {
  min-height: 32px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.ap-lang-tab:hover { color: var(--text); }
.ap-lang-tab.active { border-color: rgba(59, 130, 246, 0.6); background: rgba(59, 130, 246, 0.16); color: #93c5fd; }
