/* 最骚SSL — 全站主题 + 高端 UI */
:root {
  --bg: #f4f6fb;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --ink: #0f172a;
  --ink-2: #334155;
  --ink-3: #64748b;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --hero: #070b14;
  --hero-2: #0b1220;
  --accent: #059669;
  --accent-strong: #047857;
  --accent-soft: #ecfdf5;
  --accent-line: #a7f3d0;
  --warn: #d97706;
  --warn-soft: #fffbeb;
  --danger: #dc2626;
  --danger-soft: #fef2f2;
  --info: #2563eb;
  --info-soft: #eff6ff;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 16px 48px rgba(15, 23, 42, 0.14);
  --font: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Cascadia Code", "SF Mono", Consolas, "Courier New", monospace;
  --nav-h: 64px;
  --max: 1120px;
  --header-bg: rgba(8, 12, 22, 0.94);
  --header-border: rgba(255, 255, 255, 0.06);
  --nav-link: #cbd5e1;
  --nav-link-hover: #ffffff;
}

html[data-theme="dark"] {
  --bg: #0b101c;
  --surface: #121a2b;
  --surface-2: #0f172a;
  --ink: #e8eef9;
  --ink-2: #cbd5e1;
  --ink-3: #94a3b8;
  --line: #1e293b;
  --line-strong: #334155;
  --accent-soft: rgba(5, 150, 105, 0.15);
  --info-soft: rgba(37, 99, 235, 0.15);
  --warn-soft: rgba(217, 119, 6, 0.15);
  --danger-soft: rgba(220, 38, 38, 0.15);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.45);
  --header-bg: rgba(7, 11, 20, 0.96);
}

html[data-theme="light"] {
  color-scheme: light;
}

html[data-theme="dark"] {
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--accent-strong); text-decoration: none; }
a:hover { text-decoration: underline; }
code, .mono { font-family: var(--mono); font-size: 0.92em; }
.container { width: min(100% - 40px, var(--max)); margin-inline: auto; }
.hidden { display: none !important; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  background: var(--header-bg);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--header-border);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 700;
  font-size: 17px;
  text-decoration: none;
  flex-shrink: 0;
}
.logo:hover { text-decoration: none; }
.logo em { font-style: normal; color: #34d399; }
.logo-mark { width: 32px; height: 32px; border-radius: 8px; }
.logo-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6ee7b7;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.3);
  padding: 2px 8px;
  border-radius: 999px;
}

.nav { display: flex; align-items: center; gap: 4px; }
.nav a.nav-link {
  color: var(--nav-link);
  font-size: 14px;
  padding: 8px 11px;
  border-radius: 8px;
  text-decoration: none;
  transition: 0.15s;
}
.nav a.nav-link:hover, .nav a.nav-link.active {
  color: var(--nav-link-hover);
  background: rgba(255, 255, 255, 0.07);
  text-decoration: none;
}

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

.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #e2e8f0;
  cursor: pointer;
  font-size: 16px;
  display: grid;
  place-items: center;
  transition: 0.15s;
}
.icon-btn:hover { background: rgba(255, 255, 255, 0.1); }

.user-chip {
  display: none;
  align-items: center;
  gap: 8px;
  color: #e2e8f0;
  font-size: 13px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-decoration: none;
}
.user-chip.show { display: inline-flex; }
.user-chip:hover { text-decoration: none; background: rgba(255, 255, 255, 0.1); color: #fff; }
.user-chip .avatar {
  width: 24px; height: 24px; border-radius: 50%;
  background: linear-gradient(135deg, #059669, #2563eb);
  display: grid; place-items: center; font-size: 11px; font-weight: 700; color: #fff;
}
.user-menu {
  position: relative;
  display: none;
}
.user-menu.show { display: block; }
.user-dropdown {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  min-width: 176px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  padding: 8px;
  z-index: 60;
  color: var(--ink);
}
/* 隐形桥：覆盖头像到菜单之间的空隙，避免 hover 中断 */
.user-dropdown::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -16px;
  height: 16px;
  background: transparent;
}
.user-dropdown a {
  display: block;
  padding: 11px 12px;
  border-radius: 8px;
  color: var(--ink-2);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
}
.user-dropdown a:hover {
  background: var(--accent-soft);
  color: var(--accent-strong);
  text-decoration: none;
}
.user-menu:hover .user-dropdown,
.user-menu:focus-within .user-dropdown,
.user-menu.is-open .user-dropdown {
  display: block;
}
.user-chip::after {
  content: "▾";
  font-size: 10px;
  opacity: 0.7;
  margin-left: 2px;
}
@media (max-width: 720px) {
  .user-menu.is-open .user-dropdown { display: block; }
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  border-radius: 8px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  font-size: 18px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 9px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: 0.15s;
  text-decoration: none;
  line-height: 1.3;
}
.btn:hover { text-decoration: none; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.35);
}
.btn-primary:hover:not(:disabled) { background: var(--accent-strong); color: #fff; }
.btn-ghost {
  background: transparent;
  color: #e2e8f0;
  border-color: rgba(255, 255, 255, 0.16);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.07); color: #fff; }
.btn-outline {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-outline:hover { border-color: #94a3b8; background: var(--surface-2); color: var(--ink); }
.btn-lg { padding: 13px 22px; font-size: 15px; border-radius: 10px; }
.btn-block { width: 100%; }
.btn-sm { padding: 7px 12px; font-size: 13px; }
.btn-danger { background: var(--danger); color: #fff; }
.nav-cta { margin-left: 4px; }

/* Hero + canvas */
.hero {
  position: relative;
  background: radial-gradient(ellipse 70% 50% at 75% -10%, rgba(16,185,129,0.18), transparent 55%),
    radial-gradient(ellipse 45% 40% at 5% 100%, rgba(37,99,235,0.14), transparent 50%),
    linear-gradient(180deg, #070b14 0%, #0b1220 100%);
  color: #e2e8f0;
  padding: 80px 0 90px;
  overflow: hidden;
  min-height: 520px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
#heroCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.9;
  z-index: 0;
}
.hero .container { position: relative; z-index: 2; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 40px; align-items: center; }
/* 确保正文区块始终可见 */
main > .section,
main > .section-alt {
  position: relative;
  z-index: 1;
  display: block;
  opacity: 1;
  visibility: visible;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.35);
  color: #6ee7b7;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 18px;
  box-shadow: 0 0 24px rgba(52, 211, 153, 0.2);
}
.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(32px, 4.8vw, 50px);
  line-height: 1.12;
  font-weight: 750;
  letter-spacing: -0.03em;
  color: #fff;
}
.gradient-text {
  background: linear-gradient(90deg, #34d399 0%, #2dd4bf 50%, #60a5fa 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-lead {
  margin: 0 0 28px;
  color: #94a3b8;
  font-size: 17px;
  max-width: 34em;
  line-height: 1.75;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 36px; }
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.hero-stats div strong { display: block; color: #f1f5f9; font-size: 20px; font-weight: 700; }
.hero-stats div span { color: #64748b; font-size: 12px; }

/* 亮色主题下的 Banner 适配 */
html[data-theme="light"] .hero {
  background:
    radial-gradient(ellipse 70% 50% at 75% -10%, rgba(16, 185, 129, 0.16), transparent 55%),
    radial-gradient(ellipse 45% 40% at 5% 100%, rgba(37, 99, 235, 0.10), transparent 50%),
    linear-gradient(180deg, #eef6f2 0%, #f4f6fb 100%);
  color: var(--ink);
  border-bottom-color: var(--line);
}
html[data-theme="light"] .hero h1 { color: #0f172a; }
html[data-theme="light"] .hero .badge {
  color: #047857;
  background: rgba(5, 150, 105, 0.1);
  border-color: rgba(5, 150, 105, 0.28);
  box-shadow: none;
}
html[data-theme="light"] .hero-lead { color: #475569; }
html[data-theme="light"] .hero-lead strong { color: #047857 !important; }
html[data-theme="light"] .hero-stats { border-top-color: rgba(15, 23, 42, 0.08); }
html[data-theme="light"] .hero-stats div strong { color: #0f172a; }
html[data-theme="light"] .hero-stats div span { color: #64748b; }
html[data-theme="light"] .hero .btn-ghost {
  color: #0f172a;
  border-color: #cbd5e1;
  background: rgba(255, 255, 255, 0.7);
}
html[data-theme="light"] .hero .btn-ghost:hover {
  background: #fff;
  border-color: #94a3b8;
}
html[data-theme="light"] .cert-card {
  background: linear-gradient(160deg, rgb(255 255 255 / 0%), rgb(248 250 252 / 0%));
  border-color: rgba(15, 23, 42, 0.08);
  box-shadow: none;
}
html[data-theme="light"] .cert-row .k { color: #64748b; }
html[data-theme="light"] .cert-row .v { color: #0f172a; }
html[data-theme="light"] .cert-row { border-bottom-color: #e2e8f0; }
html[data-theme="light"] .cert-flow { border-top-color: #e2e8f0; color: #64748b; }
html[data-theme="light"] .status-pill {
  color: #047857;
  background: #ecfdf5;
  border-color: #a7f3d0;
}
html[data-theme="light"] .cert-card-head .lock {
  background: #ecfdf5;
  border-color: #a7f3d0;
}
html[data-theme="light"] #heroCanvas { opacity: 0.55; }

.cert-card {
  background: linear-gradient(160deg, rgb(18 26 46 / 0%), rgb(13 21 38 / 0%));
  backdrop-filter: blur(2px);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 18px;
  padding: 28px;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.cert-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.cert-card-head .lock {
  width: 44px; height: 44px; border-radius: 12px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(52, 211, 153, 0.35);
  display: grid; place-items: center; font-size: 20px;
}
.status-pill {
  font-size: 11px; font-weight: 700; color: #6ee7b7;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.3);
  padding: 4px 10px; border-radius: 999px; letter-spacing: 0.04em;
}
.cert-row {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 10px 0; border-bottom: 1px dashed rgba(148, 163, 184, 0.15);
  font-size: 13px;
}
.cert-row:last-child { border-bottom: 0; }
.cert-row .k { color: #64748b; }
.cert-row .v { color: #e2e8f0; font-family: var(--mono); text-align: right; word-break: break-all; }
.cert-flow {
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
  margin-top: 18px; padding-top: 14px;
  border-top: 1px dashed rgba(148, 163, 184, 0.2);
  font-size: 11px; color: #94a3b8;
}
.cert-flow span {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.25);
  color: #6ee7b7; padding: 3px 8px; border-radius: 999px;
}
.cert-flow i { font-style: normal; opacity: 0.5; }

/* Sections */
.section { padding: 72px 0; }
.section-alt { background: var(--surface); border-block: 1px solid var(--line); }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head.center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-block; font-size: 12px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent-strong); margin-bottom: 10px;
}
.section-head h2 {
  margin: 0 0 12px;
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.section-head p { margin: 0; color: var(--ink-3); font-size: 15.5px; }

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

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  transition: 0.18s ease;
}
.card:hover { border-color: var(--accent-line); transform: translateY(-2px); }
.card h3 { margin: 0 0 8px; font-size: 16px; font-weight: 700; color: var(--ink); }
.card p { margin: 0; color: var(--ink-3); font-size: 14px; line-height: 1.7; }
.card-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--accent-soft); border: 1px solid var(--accent-line);
  display: grid; place-items: center; margin-bottom: 16px; font-size: 18px;
}

.feature-list { list-style: none; padding: 0; margin: 16px 0 0; }
.feature-list li {
  position: relative; padding-left: 22px; margin-bottom: 8px;
  color: var(--ink-2); font-size: 14px;
}
.feature-list li::before {
  content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700;
}

.solution-grid { margin-bottom: 16px; }
.solution-card { position: relative; padding-top: 28px; }
.solution-primary {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1), var(--shadow);
}
.solution-tag {
  position: absolute; top: -11px; left: 20px;
  background: var(--accent); color: #fff;
  font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 999px;
}
.solution-tag-alt { background: #2563eb; }
.solution-tag-warn { background: #d97706; position: static; display: inline-block; }
.solution-card .btn { margin-top: 16px; }
.backup-card { background: var(--warn-soft); border-color: #fde68a; }
.backup-inner {
  display: flex; justify-content: space-between; align-items: center;
  gap: 20px; flex-wrap: wrap;
}

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: step; }
.step {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px; position: relative;
}
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: 16px; right: 16px;
  width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(145deg, #059669, #0d9488);
  color: #fff; font-weight: 700; font-size: 13px;
  display: grid; place-items: center;
}
.step h4 { margin: 0 0 8px; font-size: 14px; font-weight: 700; color: var(--ink); }
.step p { margin: 0; font-size: 13px; color: var(--ink-3); line-height: 1.65; }

.cta-band {
  background: linear-gradient(135deg, #064e3b 0%, #0f766e 45%, #1d4ed8 100%);
  border-radius: 18px; padding: 48px 40px; color: #fff;
  text-align: center; box-shadow: var(--shadow-lg);
}
.cta-band h2 { margin: 0 0 10px; font-size: clamp(22px, 3vw, 28px); }
.cta-band p { margin: 0 auto 24px; color: #a7f3d0; max-width: 36em; font-size: 15px; }
.cta-band .btn-primary { background: #fff; color: #065f46; }
.cta-band .btn-primary:hover { background: #ecfdf5; color: #064e3b; }

/* Tables / forms shared */
.table-wrap {
  overflow-x: auto; border: 1px solid var(--line);
  border-radius: var(--radius); background: var(--surface);
}
table.data { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 560px; }
table.data th, table.data td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; }
table.data th { background: var(--surface-2); font-weight: 700; color: var(--ink-2); font-size: 12px; }
table.data tr:last-child td { border-bottom: 0; }
table.data tr:hover td { background: var(--surface-2); }

.badge-status {
  display: inline-block; padding: 2px 8px; border-radius: 999px;
  font-size: 12px; font-weight: 600; background: var(--surface-2); color: var(--ink-3);
  border: 1px solid var(--line);
}
.badge-status.ok { background: var(--accent-soft); color: var(--accent-strong); border-color: var(--accent-line); }
.badge-status.err { background: var(--danger-soft); color: var(--danger); border-color: #fecaca; }
.badge-status.run { background: var(--info-soft); color: var(--info); border-color: #bfdbfe; }
.badge-status.warn { background: var(--warn-soft); color: var(--warn); border-color: #fde68a; }

.form-row { display: grid; gap: 6px; margin-bottom: 14px; }
.form-row.two { grid-template-columns: 1fr 1fr; gap: 12px; }
.form-row label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.form-row .req { color: var(--danger); }
.form-row input, .form-row select, .form-row textarea {
  width: 100%; padding: 10px 12px;
  border: 1px solid var(--line-strong); border-radius: 8px;
  font-size: 14px; font-family: inherit; color: var(--ink);
  background: var(--surface); outline: none;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  border-color: var(--accent); box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.15);
}
.hint { font-size: 12px; color: var(--ink-3); margin-top: 4px; }

.alert { padding: 12px 14px; border-radius: 10px; font-size: 13.5px; border: 1px solid transparent; margin-bottom: 14px; }
.alert-info { background: var(--info-soft); border-color: #bfdbfe; color: #1e40af; }
.alert-ok { background: var(--accent-soft); border-color: var(--accent-line); color: #065f46; }
.alert-warn { background: var(--warn-soft); border-color: #fde68a; color: #92400e; }
.alert-err { background: var(--danger-soft); border-color: #fecaca; color: #991b1b; }
html[data-theme="dark"] .alert-info { color: #93c5fd; }
html[data-theme="dark"] .alert-ok { color: #6ee7b7; }
html[data-theme="dark"] .alert-warn { color: #fcd34d; }
html[data-theme="dark"] .alert-err { color: #fca5a5; }

/* Footer */
.site-footer {
  background: #070b14;
  color: #94a3b8;
  padding: 56px 0 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px; margin-bottom: 40px;
}
.footer-brand .logo { margin-bottom: 14px; }
.footer-brand p { font-size: 13.5px; line-height: 1.7; margin: 0; max-width: 28em; }
.footer-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.footer-badges span {
  font-size: 11px; color: #6ee7b7;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.25);
  padding: 3px 8px; border-radius: 6px;
}
.footer-col h4 {
  color: #e2e8f0; font-size: 13px; font-weight: 700;
  margin: 0 0 14px; letter-spacing: 0.04em; text-transform: uppercase;
}
.footer-col a {
  display: block; color: #94a3b8; font-size: 14px;
  padding: 5px 0; text-decoration: none;
}
.footer-col a:hover { color: #34d399; }
.footer-links-bar {
  display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center;
  padding: 16px 0; border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 13px;
}
.footer-links-label { color: #64748b; }
.footer-links-bar a { color: #94a3b8; text-decoration: none; }
.footer-links-bar a:hover { color: #34d399; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06); padding-top: 16px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px;
  font-size: 12.5px; color: #64748b;
}
.footer-beian a { color: #94a3b8; text-decoration: none; }
.footer-beian a:hover { color: #34d399; }
.footer-beian .sep { margin: 0 8px; opacity: 0.4; }
.footer-note { margin-top: 12px; font-size: 11.5px; color: #475569; line-height: 1.6; }

/* Utility */
.muted { color: var(--ink-3); font-size: 13px; }
.kv-list { display: grid; gap: 8px; }
.kv {
  display: flex; justify-content: space-between; gap: 12px;
  font-size: 13.5px; padding: 10px 12px;
  background: var(--surface-2); border-radius: 8px; border: 1px solid var(--line);
}
.kv .k { color: var(--ink-3); }
.kv .v { font-family: var(--mono); color: var(--ink); font-weight: 600; word-break: break-all; text-align: right; }
.small { font-size: 13px; }
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }

/* Auth modal */
.modal-mask {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(0, 0, 0, 0.55);
  display: none; align-items: center; justify-content: center;
  padding: 20px; backdrop-filter: blur(4px);
}
.modal-mask.show { display: flex; }
.modal {
  background: var(--surface); color: var(--ink);
  width: min(420px, 100%); border-radius: 16px;
  padding: 28px; box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
}
.modal h3 { margin: 0 0 6px; font-size: 20px; }
.modal .sub { color: var(--ink-3); font-size: 13px; margin-bottom: 18px; }
.tabs {
  display: flex; gap: 4px; background: var(--surface-2);
  padding: 4px; border-radius: 10px; margin-bottom: 16px;
}
.tab {
  flex: 1; border: 0; background: transparent; padding: 10px;
  border-radius: 8px; font-weight: 600; font-family: inherit;
  color: var(--ink-3); cursor: pointer; font-size: 13.5px;
}
.tab.active { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,0.08); }
.tab-pane { display: none; }
.tab-pane.active { display: block; }

/* Responsive */
@media (max-width: 960px) {
  .hero-grid, .grid-3, .grid-2, .footer-grid, .steps {
    grid-template-columns: 1fr;
  }
  .steps { grid-template-columns: 1fr 1fr; }
  .nav {
    display: none;
    position: absolute;
    top: var(--nav-h); left: 0; right: 0;
    background: var(--header-bg);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 20px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .nav.open { display: flex; }
  .nav a.nav-link { padding: 12px; }
  .nav-cta { margin-left: 0; margin-top: 8px; width: 100%; }
  .nav-toggle { display: grid; place-items: center; }
  .header-actions .btn-outline-header { display: none; }
  .form-row.two { grid-template-columns: 1fr; }
  .backup-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
  .steps { grid-template-columns: 1fr; }
  .section { padding: 48px 0; }
  .hero { padding: 52px 0 60px; }
  .cta-band { padding: 36px 22px; }
  .logo-tag { display: none; }
}

/* 内页 page-hero 亮色 */
.page-hero {
  background: linear-gradient(180deg, #0b1220, #111a2e);
  color: #e2e8f0;
  padding: 48px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.page-hero h1 { color: #fff; }
.page-hero p { color: #94a3b8; }
.page-hero .breadcrumb a { color: #94a3b8; }
html[data-theme="light"] .page-hero {
  background: linear-gradient(180deg, #eef6f2, #f4f6fb);
  border-bottom-color: #e2e8f0;
}
html[data-theme="light"] .page-hero h1 { color: #0f172a; }
html[data-theme="light"] .page-hero p { color: #64748b; }
html[data-theme="light"] .page-hero .breadcrumb,
html[data-theme="light"] .page-hero .breadcrumb a { color: #64748b; }
html[data-theme="light"] .site-header {
  background: rgba(255,255,255,0.92);
  border-bottom-color: #e2e8f0;
}
html[data-theme="light"] .site-header .logo { color: #0f172a; }
html[data-theme="light"] .site-header .logo em { color: #059669; }
html[data-theme="light"] .site-header .nav a.nav-link { color: #475569; }
html[data-theme="light"] .site-header .nav a.nav-link:hover,
html[data-theme="light"] .site-header .nav a.nav-link.active {
  color: #0f172a;
  background: rgba(15,23,42,0.06);
}
html[data-theme="light"] .icon-btn {
  color: #0f172a;
  border-color: #cbd5e1;
  background: #fff;
}
html[data-theme="light"] .btn-ghost {
  color: #0f172a;
  border-color: #cbd5e1;
}
html[data-theme="light"] .btn-ghost:hover {
  background: #f1f5f9;
  color: #0f172a;
}
html[data-theme="light"] .nav-toggle {
  color: #0f172a;
  border-color: #cbd5e1;
}
html[data-theme="light"] .user-chip {
  color: #0f172a;
  background: #f1f5f9;
  border-color: #e2e8f0;
}
html[data-theme="light"] .site-header .logo-tag {
  color: #047857;
  background: #ecfdf5;
  border-color: #a7f3d0;
}
/* 地球不被右侧卡片完全挡住：卡片半透明 + 文案层级 */
.cert-card {
  background: linear-gradient(160deg, rgb(18 26 46 / 0%), rgb(13 21 38 / 0%));
  backdrop-filter: blur(2px);
}
html[data-theme="light"] .cert-card {
  background: linear-gradient(160deg, rgb(255 255 255 / 0%), rgb(248 250 252 / 0%));
}
/* 同步覆盖早期定义，保证透明生效 */
.cert-card {
  background: linear-gradient(160deg, rgb(18 26 46 / 0%), rgb(13 21 38 / 0%)) !important;
  backdrop-filter: blur(2px);
}
html[data-theme="light"] .cert-card {
  background: linear-gradient(160deg, rgb(255 255 255 / 0%), rgb(248 250 252 / 0%)) !important;
}
.hero .container { z-index: 2; }
/* 桌面端让出中间偏左给地球 */
@media (min-width: 961px) {
  .hero-grid { grid-template-columns: 1fr 0.85fr; }
  .hero-grid > div:first-child { max-width: 520px; }
}