:root {
  color-scheme: light;
  --paper: #f7f7f4;
  --surface: #ffffff;
  --surface-soft: #f3f5f4;
  --ink: #1c2624;
  --ink-soft: #34413d;
  --muted: #62706a;
  --line: #d7dfdb;
  --line-strong: #c7d1cc;
  --shadow-shell: 0 16px 40px rgba(28, 38, 36, 0.06);
  --shadow-card: 0 10px 24px rgba(28, 38, 36, 0.05);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --content-width: min(1120px, calc(100vw - clamp(20px, 4vw, 56px)));
  --font-body: "Avenir Next", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-display: "Avenir Next Condensed", "Avenir Next", "PingFang SC", "Hiragino Sans GB", sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

.privacy-page {
  --accent: #2f6f61;
  --accent-soft: #edf4f1;
}

.support-page {
  --accent: #355d86;
  --accent-soft: #eef3f8;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
}

a {
  color: inherit;
}

button {
  font: inherit;
}

.page {
  min-height: 100vh;
}

.shell {
  width: var(--content-width);
  margin: 0 auto;
  padding: clamp(16px, 3vw, 28px) 0 56px;
}

.topbar {
  position: sticky;
  top: 12px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-shell);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: block;
  flex: none;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(28, 38, 36, 0.08);
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-copy strong {
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-copy small {
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.topbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.page-nav,
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
}

.page-nav a,
.lang-switch button {
  appearance: none;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  padding: 10px 16px;
  text-decoration: none;
  cursor: pointer;
  transition:
    background 180ms var(--ease-out),
    color 180ms var(--ease-out),
    transform 180ms var(--ease-out);
}

.page-nav a:hover,
.page-nav a:focus-visible,
.lang-switch button:hover,
.lang-switch button:focus-visible {
  background: var(--surface);
  color: var(--ink);
  outline: none;
  transform: translateY(-1px);
}

.page-nav a[aria-current="page"],
.lang-switch button.is-active {
  background: var(--surface);
  color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--line);
}

.page-main {
  display: grid;
  gap: clamp(22px, 4vw, 40px);
  margin-top: clamp(18px, 3vw, 28px);
}

.page-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.8fr);
  gap: clamp(20px, 3vw, 30px);
  padding: clamp(26px, 4vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow-shell);
}

.hero-copy {
  display: grid;
  align-content: start;
  gap: 16px;
}

.hero-kicker,
.section-kicker,
.panel-label,
.tile-label {
  margin: 0;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 0;
  max-width: 12ch;
  font-family: var(--font-display);
  font-size: clamp(2.35rem, 4.8vw, 4.35rem);
  font-weight: 700;
  line-height: 1.03;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.hero-lede {
  margin: 0;
  max-width: 48rem;
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.5vw, 1.14rem);
  line-height: 1.8;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 600;
}

.hero-card,
.info-tile,
.panel,
.callout,
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.hero-card,
.info-tile,
.panel,
.callout {
  padding: 22px;
}

.hero-card {
  display: grid;
  gap: 16px;
  align-content: start;
}

.path-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.path-list li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.step-badge {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.92rem;
  font-weight: 700;
}

.path-body {
  display: grid;
  gap: 6px;
}

.path-body h2,
.path-body h3 {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.3;
}

.path-body p,
.panel-note,
.info-tile p,
.panel p,
.faq-answer,
.section-head p,
.footer {
  color: var(--muted);
}

.path-body p,
.panel-note,
.info-tile p,
.panel p,
.section-head p,
.faq-answer {
  margin: 0;
  line-height: 1.75;
}

.panel-note {
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
}

.section-shell {
  display: grid;
  grid-template-columns: minmax(220px, 0.38fr) minmax(0, 1fr);
  gap: clamp(18px, 3vw, 34px);
  align-items: start;
}

.section-head {
  display: grid;
  align-content: start;
  gap: 12px;
}

.section-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 2.7vw, 2.55rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.summary-grid,
.panel-grid,
.faq-list {
  display: grid;
  gap: 16px;
}

.summary-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.panel-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.info-tile,
.panel,
.callout,
.faq-item,
.page-hero {
  animation: rise 360ms var(--ease-out) both;
}

.tile-label {
  color: var(--muted);
}

.info-tile h3,
.panel h3,
.callout strong {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.info-tile h3,
.panel h3 {
  margin-top: 10px;
  margin-bottom: 10px;
  font-size: 1.2rem;
  line-height: 1.18;
}

.clean-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.clean-list li {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  color: var(--ink-soft);
  line-height: 1.75;
}

.clean-list li::before {
  content: "";
  width: 10px;
  height: 10px;
  margin-top: 0.48rem;
  border-radius: 999px;
  background: var(--accent);
}

.panel-emphasis {
  background: var(--surface-soft);
}

.callout {
  display: grid;
  gap: 14px;
  background: var(--surface-soft);
}

.callout strong {
  display: block;
  font-size: clamp(1.28rem, 1.8vw, 1.56rem);
  line-height: 1.14;
}

.callout p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.8;
}

.faq-item {
  overflow: hidden;
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  list-style: none;
  cursor: pointer;
  padding: 20px 22px;
  font-weight: 700;
  font-size: 1rem;
}

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

.faq-item summary::after {
  content: "+";
  display: grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 1.2rem;
  line-height: 1;
  transition: transform 180ms var(--ease-out);
}

.faq-item[open] summary {
  background: var(--surface-soft);
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-answer {
  display: grid;
  gap: 12px;
  padding: 0 22px 22px;
}

.faq-answer p {
  margin: 0;
}

.footer {
  padding: 0 4px;
  font-size: 0.92rem;
}

[data-lang="en"] {
  display: none;
}

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

html[lang="en"] [data-lang="en"] {
  display: revert;
}

@media (min-width: 1021px) {
  .section-head {
    position: sticky;
    top: 106px;
  }
}

@media (max-width: 1020px) {
  .section-shell {
    grid-template-columns: 1fr;
  }

  .summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .topbar {
    flex-direction: column;
    align-items: stretch;
    border-radius: 28px;
  }

  .topbar-actions {
    justify-content: space-between;
  }

  .page-nav,
  .lang-switch {
    width: 100%;
    justify-content: space-between;
  }

  .page-nav a,
  .lang-switch button {
    flex: 1;
    text-align: center;
  }

  .page-hero {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .shell {
    width: min(100vw - 18px, 1120px);
  }

  .brand-copy small {
    display: none;
  }

  .page-main {
    gap: 24px;
  }

  .page-hero,
  .hero-card,
  .info-tile,
  .panel,
  .callout {
    padding: 20px;
  }

  .hero-copy h1 {
    max-width: none;
    font-size: clamp(2.05rem, 8.6vw, 3.25rem);
  }

  .summary-grid,
  .panel-grid {
    grid-template-columns: 1fr;
  }

  .faq-item summary,
  .faq-answer {
    padding-left: 18px;
    padding-right: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}
