:root {
  color-scheme: light dark;
  --bg: #f6f8fc;
  --surface: #ffffff;
  --surface-muted: #edf2f8;
  --surface-accent: #eaf1ff;
  --border: #d9e2ef;
  --text: #182230;
  --text-secondary: #4a5a70;
  --brand: #4479fb;
  --brand-deep: #2456aa;
  --brand-text: #ffffff;
  --success-bg: #e7f6ee;
  --success-text: #126b46;
  --warn-bg: #fff5e8;
  --warn-text: #8c4d0f;
  --shadow: 0 8px 24px rgba(24, 34, 48, 0.06);
  --radius: 14px;
  --radius-sm: 10px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f141c;
    --surface: #171e29;
    --surface-muted: #1e2736;
    --surface-accent: #1a2944;
    --border: #2a364a;
    --text: #eef3fb;
    --text-secondary: #a8b7cc;
    --brand: #5b8bff;
    --brand-deep: #3d6ee6;
    --brand-text: #ffffff;
    --success-bg: #133125;
    --success-text: #6de0aa;
    --warn-bg: #352714;
    --warn-text: #f6b96b;
    --shadow: 0 10px 28px rgba(0, 0, 0, 0.32);
  }
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI Variable Text", "Segoe UI", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei UI", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

code {
  font-family: "Cascadia Code", "SFMono-Regular", Consolas, Menlo, monospace;
  font-size: 0.9em;
  padding: 0.14em 0.4em;
  border-radius: 6px;
  background: var(--surface-muted);
  border: 1px solid var(--border);
}

.container {
  width: min(1040px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  flex-wrap: wrap;
  padding: 10px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-weight: 700;
  font-size: 1.05rem;
}

.brand:hover {
  text-decoration: none;
}

.brand svg {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  box-shadow: 0 2px 8px rgba(24, 34, 48, 0.12);
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.94rem;
}

.nav-links a {
  color: var(--text-secondary);
  font-weight: 500;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--text);
  text-decoration: none;
}

.lang-toggle {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  background: var(--surface-muted);
  border: 1px solid var(--border);
}

.lang-btn {
  border: 0;
  background: transparent;
  color: var(--text-secondary);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
  cursor: pointer;
}

.lang-btn[aria-pressed="true"] {
  background: var(--brand);
  color: var(--brand-text);
}

.hero {
  padding: 44px 0 28px;
}

.hero-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(240px, 1fr);
  gap: 28px;
  align-items: center;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--surface-accent);
  color: var(--brand-deep);
}

@media (prefers-color-scheme: dark) {
  .badge {
    color: #b7ceff;
  }
}

.badge.success {
  background: var(--success-bg);
  color: var(--success-text);
}

.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(1.7rem, 3vw, 2.25rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.hero p {
  margin: 0 0 20px;
  color: var(--text-secondary);
  font-size: 1.02rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.94rem;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: transform 0.12s ease, border-color 0.12s ease, background 0.12s ease;
}

.btn:hover {
  text-decoration: none;
  border-color: var(--brand);
  transform: translateY(-1px);
}

.btn.primary {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--brand-text);
}

.btn.primary:hover {
  background: var(--brand-deep);
  border-color: var(--brand-deep);
}

.hero-summary {
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.hero-summary h2 {
  margin: 0 0 12px;
  font-size: 0.96rem;
}

.spec-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  font-size: 0.91rem;
}

.spec-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px dashed var(--border);
  padding-bottom: 8px;
}

.spec-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.spec-label {
  color: var(--text-secondary);
}

.spec-value {
  font-weight: 600;
  text-align: right;
}

section {
  padding: 20px 0;
}

.section-head {
  margin-bottom: 16px;
}

.section-head h2 {
  margin: 0 0 6px;
  font-size: 1.4rem;
  letter-spacing: -0.01em;
}

.section-head p {
  margin: 0;
  color: var(--text-secondary);
}

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

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

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

.card h3 {
  margin: 0 0 10px;
  font-size: 1.06rem;
}

.card p,
.card li {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.card ul,
.card ol {
  margin: 0;
  padding-left: 1.25rem;
  display: grid;
  gap: 8px;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--surface-accent);
  color: var(--brand-deep);
  font-weight: 700;
  font-size: 0.88rem;
  margin-bottom: 10px;
}

@media (prefers-color-scheme: dark) {
  .step-num {
    color: #b7ceff;
  }
}

.notice {
  background: var(--warn-bg);
  color: var(--warn-text);
  border: 1px solid color-mix(in srgb, var(--warn-text) 28%, transparent);
  border-radius: var(--radius);
  padding: 16px 20px;
  font-size: 0.94rem;
}

.notice strong {
  color: inherit;
}

.faq-controls {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.faq-search {
  flex: 1 1 260px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font: inherit;
}

.faq-list {
  display: grid;
  gap: 10px;
}

details.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
}

details.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

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

details.faq-item summary::after {
  content: "+";
  font-size: 1.15rem;
  color: var(--brand);
  font-weight: 700;
}

details.faq-item[open] summary::after {
  content: "−";
}

details.faq-item .faq-body {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.94rem;
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.hidden {
  display: none !important;
}

html[data-active-lang="zh"] [data-lang="en"],
html[data-active-lang="en"] [data-lang="zh"] {
  display: none !important;
}

.site-footer {
  margin-top: 32px;
  border-top: 1px solid var(--border);
  padding: 24px 0 40px;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

@media (max-width: 820px) {
  .hero-card,
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .hero-card {
    padding: 22px;
  }
}
