:root {
  --bg-page: #faf9f5;
  --bg-surface: #ffffff;
  --bg-soft: #f3f1ea;
  --ink-main: #18181b;
  --ink-muted: #52525b;
  --ink-soft: #71717a;
  --line: #e6e4dd;
  --accent: #2563eb;
  --accent-tint: #eff4ff;
  --radius-lg: 20px;
  --radius-md: 14px;
  --shadow-card: 0 8px 30px rgba(24, 24, 27, 0.04);
  --max-w: 1120px;
}

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

html {
  scroll-behavior: smooth;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink-main);
  background: var(--bg-page);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body { margin: 0; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.container {
  width: min(100% - 2rem, var(--max-w));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(250, 249, 245, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 68px;
  flex-wrap: wrap;
  padding-block: 0.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, #ffffff 0%, #e0ebff 55%, #bfdbfe 100%);
  border: 1px solid #cbd5e1;
  display: inline-flex;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.12);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.9375rem;
  color: var(--ink-muted);
  flex-wrap: wrap;
}
.nav-links a:hover, .nav-links a[aria-current="page"] {
  color: var(--ink-main);
  font-weight: 600;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.lang-pill {
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.375rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg-surface);
  color: var(--ink-muted);
}
.lang-pill:hover { border-color: #cbd5e1; color: var(--ink-main); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9375rem;
  transition: background-color 0.18s ease, transform 0.18s ease;
  cursor: pointer;
}

.btn-primary {
  background: var(--ink-main);
  color: #ffffff;
  border: 1px solid var(--ink-main);
}
.btn-primary:hover { background: #27272a; transform: translateY(-1px); }

.btn-secondary {
  background: var(--bg-surface);
  color: var(--ink-main);
  border: 1px solid var(--line);
}
.btn-secondary:hover { background: var(--bg-soft); }

.btn-sm { padding: 0.5rem 1rem; font-size: 0.875rem; }

section { padding-block: clamp(2.75rem, 5.5vw, 4.75rem); }

.page-head { padding-block: clamp(2.25rem, 4.5vw, 3.5rem) 1.5rem; }

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-size: 0.8125rem;
  color: var(--ink-soft);
  margin: 0 0 1rem;
}
.breadcrumb a:hover { color: var(--ink-main); text-decoration: underline; }

.section-kicker {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.5rem;
}

.section-title {
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  line-height: 1.24;
  letter-spacing: -0.025em;
  margin: 0 0 0.75rem;
}

.section-lead {
  font-size: 1.0625rem;
  color: var(--ink-muted);
  max-width: 68ch;
  margin: 0 0 2rem;
}

.hero { padding-top: clamp(2.5rem, 6vw, 4.5rem); }

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: center;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg-surface);
  color: var(--ink-muted);
}

.badge-accent {
  background: var(--accent-tint);
  border-color: #dbeafe;
  color: var(--accent);
}

.hero h1, .page-head h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.16;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
}

.hero-sub {
  font-size: 1.0625rem;
  color: var(--ink-muted);
  margin: 0 0 1.75rem;
  max-width: 58ch;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  align-items: center;
  margin-bottom: 1rem;
}

.hero-note {
  font-size: 0.8125rem;
  color: var(--ink-soft);
  margin: 0;
}

.visual-stage {
  background: linear-gradient(145deg, #f3f0e6 0%, #e7effb 50%, #f8f7f2 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-card);
}

.stage-window {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(24, 24, 27, 0.08);
  border-radius: 14px;
  overflow: hidden;
  transition: background-color 0.25s ease, backdrop-filter 0.25s ease;
}

.stage-window[data-finish="transparent"] { background: rgba(255, 255, 255, 0.48); }
.stage-window[data-finish="frosted"] {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.window-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(24, 24, 27, 0.07);
  font-size: 0.8125rem;
  color: var(--ink-soft);
}

.dots { display: inline-flex; gap: 6px; }
.dots span { width: 10px; height: 10px; border-radius: 50%; background: #e4e4e7; }

.window-body { padding: 1.25rem; }

.placeholder-frame {
  min-height: 220px;
  border: 1.5px dashed #cbd5e1;
  border-radius: 12px;
  background: rgba(250, 249, 245, 0.68);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
  color: var(--ink-muted);
  font-size: 0.9375rem;
}

.stage-tabs {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.stage-tab {
  border: 1px solid var(--line);
  background: var(--bg-surface);
  color: var(--ink-muted);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
}

.stage-tab[aria-pressed="true"] {
  background: var(--ink-main);
  color: #ffffff;
  border-color: var(--ink-main);
}

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

.card {
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.card h2, .card h3 { font-size: 1.125rem; margin: 0; letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--ink-muted); font-size: 0.9375rem; }
.card-link {
  margin-top: auto;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
}
.card-link:hover { text-decoration: underline; }

.swatch {
  height: 112px;
  border-radius: 10px;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  color: var(--ink-muted);
  padding: 0.75rem;
  text-align: center;
}

.swatch-default { background: #ffffff; }
.swatch-transparent {
  background:
    linear-gradient(135deg, rgba(219, 234, 254, 0.45), rgba(254, 243, 199, 0.35)),
    repeating-linear-gradient(45deg, #f8fafc 0 12px, #f1f5f9 12px 24px);
}
.swatch-frosted {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(226, 232, 240, 0.65));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.tag-row { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; flex-wrap: wrap; }

.pill-free {
  font-size: 0.75rem; font-weight: 600; padding: 0.2rem 0.6rem; border-radius: 999px;
  background: #ecfdf5; color: #047857; border: 1px solid #d1fae5;
}
.pill-soon {
  font-size: 0.75rem; font-weight: 600; padding: 0.2rem 0.6rem; border-radius: 999px;
  background: #fef3c7; color: #92400e; border: 1px solid #fde68a;
}

.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--accent-tint); color: var(--accent);
  font-weight: 700; font-size: 0.875rem;
}

.faq-list { display: grid; gap: 0.875rem; max-width: 860px; }

.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
}

.faq-item summary {
  font-weight: 600; cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq-item summary::after { content: "+"; font-size: 1.25rem; color: var(--ink-soft); font-weight: 400; }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { margin: 0.75rem 0 0; color: var(--ink-muted); font-size: 0.9375rem; }

.prose { max-width: 78ch; }
.prose h2 { margin-top: 2rem; font-size: 1.375rem; letter-spacing: -0.015em; }
.prose p, .prose li { color: var(--ink-muted); font-size: 0.975rem; }
.prose ul, .prose ol { padding-left: 1.25rem; }

table.data-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-block: 1.25rem;
  font-size: 0.9rem;
}
table.data-table th, table.data-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
table.data-table th { background: var(--bg-soft); font-weight: 600; color: var(--ink-main); }

.cta-banner {
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 4vw, 3.25rem);
  text-align: center;
  box-shadow: var(--shadow-card);
}
.cta-banner p { color: var(--ink-muted); max-width: 58ch; margin: 0.5rem auto 1.5rem; }

.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 2.5rem;
  font-size: 0.875rem;
  color: var(--ink-muted);
}

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

.footer-links { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.footer-links a:hover { color: var(--ink-main); text-decoration: underline; }

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