*,
*::before,
*::after {
  box-sizing: border-box;
}

:root,
html[data-style="light"] {
  color-scheme: light;
  --bg: #fefefe;
  --text: #111827;
  --muted: #4b5563;
  --heading: #111827;
  --card-heading: #111827;
  --card: #ffffff;
  --plan: #ffffff;
  --border: #e5e7eb;
  --header: #f6f6f8;
  --footer: #f6f6f8;
  --accent: #2563eb;
  --accent-strong: #1d4ed8;
  --accent-fg: #ffffff;
  --link: #2563eb;
  --link-hover: #1e40af;
  --shadow: 0 1px 3px rgba(17, 24, 39, 0.08), 0 10px 28px rgba(17, 24, 39, 0.12);
  --btn-bg: #2563eb;
  --glow: radial-gradient(1600px 520px at 50% -20px, #d7dce6 0%, transparent 65%);
  --featured-glow: 0 8px 28px rgba(37, 99, 235, 0.16);
}

html[data-style="forest"] {
  color-scheme: dark;
  --bg: #070b0a;
  --text: #f3fbf7;
  --muted: #c5ddd4;
  --heading: #ffffff;
  --card-heading: #8ef0c0;
  --card: rgba(19, 36, 30, 0.92);
  --plan: rgba(36, 64, 54, 0.96);
  --border: #3a5c4e;
  --header: rgba(11, 18, 16, 0.86);
  --footer: #0b1210;
  --accent: #3dd68c;
  --accent-strong: #8ef0c0;
  --accent-fg: #04110c;
  --link: #8ef0c0;
  --link-hover: #c8f5dc;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  --btn-bg: linear-gradient(135deg, #3dd68c, #1f4a3c);
  --glow: radial-gradient(1100px 520px at 18% -8%, #1f4a3c 0%, transparent 58%);
  --featured-glow: 0 0 28px rgba(61, 214, 140, 0.22);
}

html[data-style="midnight"] {
  color-scheme: dark;
  --bg: #0b1120;
  --text: #f8fafc;
  --muted: #94a3b8;
  --heading: #f8fafc;
  --card-heading: #38bdf8;
  --card: #1e293b;
  --plan: #1e293b;
  --border: #334155;
  --header: rgba(11, 17, 32, 0.9);
  --footer: #0b1120;
  --accent: #38bdf8;
  --accent-strong: #7dd3fc;
  --accent-fg: #0b1120;
  --link: #38bdf8;
  --link-hover: #7dd3fc;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  --btn-bg: #38bdf8;
  --glow: radial-gradient(1100px 520px at 18% -8%, #1e3a5f 0%, transparent 58%);
  --featured-glow: 0 0 28px rgba(56, 189, 248, 0.18);
}

html {
  font-size: 16px;
}

body {
  margin: 0;
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: var(--glow);
  z-index: 0;
}

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--link);
}

a:hover {
  color: var(--link-hover);
}

.wrap {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--header);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding: 14px 0;
}

.brand {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--heading);
}

.brand-zh {
  font-size: 19px;
  font-weight: 600;
  line-height: 1.2;
}

.brand-en {
  font-size: 12px;
  line-height: 1.3;
  color: var(--muted);
}

nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
}

nav a {
  text-decoration: none;
  color: var(--text);
}

nav a:hover,
nav a[aria-current="page"] {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.style-switch,
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
  padding-left: 12px;
  border-left: 1px solid var(--border);
}

.nav-account {
  position: relative;
  margin-left: 8px;
}

.nav-login,
.nav-logout,
.nav-menu a {
  font: inherit;
  font-size: 0.95rem;
}

.nav-user {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 220px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.nav-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-fg, #fff);
  font-weight: 600;
  line-height: 1;
}

.nav-user-text {
  display: grid;
  min-width: 0;
  line-height: 1.2;
}

.nav-user-name {
  overflow: hidden;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-user-plan {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.75rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-user-plan:empty {
  display: none;
}

.nav-menu {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 160px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
  z-index: 6;
}

.nav-account.is-open .nav-menu {
  display: grid;
  gap: 8px;
}

.nav-menu-name {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
  word-break: break-all;
}

.nav-logout {
  justify-self: start;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.style-switch select {
  font: inherit;
  font-size: 0.85rem;
  color: var(--text);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 10px;
  cursor: pointer;
}

.vh {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.lang-switch button {
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  padding: 4px 8px;
  border-radius: 999px;
}

.lang-switch button[aria-pressed="true"] {
  background: var(--accent);
  color: var(--accent-fg);
}

main {
  padding: 40px 0 64px;
}

h1 {
  margin: 0 0 14px;
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--heading);
  letter-spacing: -0.02em;
}

h2 {
  margin: 28px 0 10px;
  font-size: 1.15rem;
  color: var(--heading);
}

h3 {
  color: var(--heading);
}

.lede {
  color: var(--muted);
  font-size: 1.05rem;
}

.muted,
.plan-for,
.plan-year,
.plan-note {
  color: var(--muted);
}

.privacy-pledges {
  margin: 8px 0 18px;
  padding-left: 1.25rem;
  line-height: 1.9;
}

.privacy-pledges li + li {
  margin-top: 6px;
}

.privacy-never {
  font-weight: 700;
  color: var(--accent);
}

.eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  padding: 4px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--accent);
  font-size: 0.8rem;
  white-space: nowrap;
  max-width: 100%;
}

.hero {
  border-radius: 16px;
  padding: 48px 42px;
  margin-bottom: 28px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.btn {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--accent-fg);
  text-decoration: none;
  font-weight: 700;
}

.btn:hover {
  color: var(--accent-fg);
  filter: brightness(1.08);
}

.btn-secondary {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
  font-weight: 600;
}

.btn-secondary:hover {
  color: var(--link-hover);
}

.cards,
.plans {
  display: grid;
  gap: 22px;
}

.cards {
  grid-template-columns: repeat(2, 1fr);
}

.cards-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.plans {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  margin: 24px 0;
}

.card,
.plan,
.panel,
.hero {
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.card,
.plan,
.panel {
  border-radius: 12px;
  padding: 28px 24px;
}

.plan {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--plan);
  padding: 32px 28px;
}

.card h2,
.plan h2 {
  margin-top: 0;
  margin-bottom: 8px;
}

.card h2,
.card h3 {
  font-weight: 700;
  line-height: 1.4;
  color: var(--card-heading);
}

.card h3 {
  margin: 8px 0;
  font-size: 1.05rem;
}

.card p:last-child,
.plan p:last-child {
  margin-bottom: 0;
}

.plan-featured {
  border-color: var(--accent);
  box-shadow: var(--shadow), var(--featured-glow);
}

.plan-badge {
  display: inline-block;
  align-self: flex-start;
  margin: 0 0 10px;
  padding: 3px 10px;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  border-radius: 999px;
  font-weight: 600;
  color: var(--accent-fg);
  background: var(--accent);
}

.price {
  font-size: 2.15rem;
  font-weight: 700;
  line-height: 1.2;
  margin: 8px 0 10px;
  color: var(--heading);
}

.plan-for {
  margin: 0 0 6px;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}

.plan-slogan {
  margin: 0 0 10px;
  font-weight: 600;
  line-height: 1.45;
}

.plan-quota {
  margin: 0 0 8px;
  font-weight: 600;
}

.plan-year {
  margin: -4px 0 10px;
  font-size: 0.92rem;
}

.plan-pace {
  margin: 0 0 12px;
}

.plan-scenes {
  margin: 0;
  padding-left: 1.1rem;
}

.plan-scenes li + li {
  margin-top: 8px;
}

.plan-note {
  margin: 14px 0 0;
  font-size: 0.9rem;
}

.plan .plan-note {
  margin-top: auto;
  padding-top: 14px;
}

.panel {
  margin-bottom: 20px;
}

.panel > :first-child {
  margin-top: 0;
}

ul,
ol {
  padding-left: 1.25rem;
}

.contact-list {
  margin: 0;
}

.contact-list dt {
  font-weight: 600;
  margin-top: 12px;
}

.contact-list dt:first-child {
  margin-top: 0;
}

.contact-list dd {
  margin: 4px 0 0;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  list-style: none;
  margin: 18px 0 8px;
  padding: 0;
}

.steps li {
  margin: 0;
}

.steps p {
  margin: 10px 0 0;
}

.step-n {
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-fg);
  font-size: 0.85rem;
  font-weight: 700;
}

.convert .actions {
  margin-top: 8px;
}

.convert-wait {
  margin: 12px 0 0;
  font-weight: 600;
}

.convert-note {
  margin: 8px 0 0;
  font-size: 0.9rem;
}

.convert-specs {
  list-style: none;
  margin: 18px 0 0;
  padding: 16px 0 0;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--muted);
}

.convert-specs li + li {
  margin-top: 6px;
}

.site-footer {
  padding: 24px 0 32px;
  font-size: 0.95rem;
  background: var(--footer);
  border-top: 1px solid var(--border);
  color: var(--muted);
}

.site-footer p {
  margin: 0 0 6px;
}

.site-footer-quiet {
  font-size: 0.82rem;
}

.section-h {
  margin: 8px 0 14px;
}

.about-page .panel {
  margin-bottom: 28px;
}

.about-page .cards {
  margin-bottom: 28px;
}

.about-icon {
  display: inline-flex;
  color: var(--accent);
}

.about-icon svg {
  display: block;
  width: 28px;
  height: 28px;
}

#reach {
  scroll-margin-top: 84px;
}

.hero-plain {
  background: transparent;
  border: 0;
  box-shadow: none;
  text-align: center;
  padding: 72px 12px 28px;
  margin-bottom: 0;
}

.hero-plain h1 {
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.08;
  max-width: 16ch;
  margin: 0 auto 18px;
}

.hero-plain .lede,
.hero-follow .lede {
  max-width: 38rem;
  margin-left: auto;
  margin-right: auto;
}

.hero-plain .actions {
  justify-content: center;
}

.hero-follow {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto 8px;
  padding-bottom: 36px;
}

.hero-second {
  margin: 18px 0 10px;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.section-block {
  scroll-margin-top: 84px;
  padding: 36px 0 48px;
}

.end-cta {
  text-align: center;
  padding-bottom: 72px;
}

.end-cta .actions {
  justify-content: center;
}

.chapter-title {
  margin-top: 0;
}

.dot-nav {
  position: fixed;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 6;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.dot-nav a {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 2px solid var(--muted);
  background: transparent;
  display: block;
  position: relative;
}

.dot-nav a.is-active,
.dot-nav a[aria-current="true"] {
  background: var(--accent);
  border-color: var(--accent);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero,
.card,
.plan,
.panel {
  animation: rise 0.55s ease both;
}

@media (prefers-reduced-motion: reduce) {
  .hero,
  .card,
  .plan,
  .panel {
    animation: none;
  }

  .btn:hover {
    filter: none;
  }
}

@media (max-width: 900px) {
  .plans,
  .cards-3 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .cards,
  .plans,
  .steps {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 1.7rem;
  }

  .hero-plain {
    padding: 40px 8px 16px;
  }

  .hero-plain h1 {
    font-size: clamp(2rem, 9vw, 3rem);
  }

  .dot-nav {
    right: 8px;
    gap: 10px;
  }

  .eyebrow {
    white-space: normal;
  }

  .hero,
  .panel,
  .card,
  .plan {
    padding: 24px 20px;
  }

  .hero-plain {
    padding: 40px 8px 16px;
  }

  .style-switch,
  .lang-switch {
    margin-left: 0;
    padding-left: 0;
    border-left: 0;
  }
}

.account-form {
  display: grid;
  gap: 10px;
  max-width: 360px;
}

.account-form[hidden] {
  display: none;
}

.account-form input,
.pay-channel {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--card);
  color: var(--text);
}

.pay-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.pay-actions button,
.icon-button,
.account-form button {
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
}

.dialog {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  background: rgba(17, 24, 39, 0.45);
}

.dialog[hidden] {
  display: none;
}

.dialog-card {
  width: min(420px, calc(100% - 32px));
  padding: 24px;
  border-radius: 16px;
  background: var(--card);
  color: var(--text);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
}

.dialog-card h2 {
  margin: 0 0 8px;
  font-size: 20px;
}

.dialog-card p {
  margin: 0 0 20px;
  line-height: 1.6;
}

.dialog-card button {
  border: 0;
  border-radius: 10px;
  padding: 10px 18px;
  background: var(--accent);
  color: var(--accent-fg);
  cursor: pointer;
}

#payQr,
#loginQr {
  width: 220px;
  margin-top: 16px;
}

.auth-screen {
  display: grid;
  place-items: center;
  min-height: calc(100vh - 220px);
  padding: 36px 16px 56px;
}

.auth-card {
  width: min(440px, 100%);
  margin: 0;
  padding: 32px 28px 24px;
}

.auth-kicker {
  margin: 0 0 6px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.auth-card h1 {
  margin: 0 0 10px;
  font-size: 1.7rem;
}

.auth-legal,
.auth-message {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.65;
}

.auth-legal a {
  color: var(--accent);
}

.auth-message:empty {
  display: none;
}

.auth-message {
  min-height: 1.4em;
  margin-top: 12px;
}

.auth-tabs {
  display: flex;
  gap: 22px;
  margin: 18px 0 16px;
  border-bottom: 1px solid var(--border);
}

.auth-tabs button {
  margin: 0;
  padding: 8px 0 10px;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  cursor: pointer;
}

.auth-tabs button.is-active {
  border-bottom-color: var(--accent);
  color: var(--accent);
  font-weight: 600;
}

.auth-card .account-form,
.account-screen .account-form {
  max-width: none;
}

.auth-field {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
}

.account-form .auth-field input {
  flex: 1;
  width: auto;
  min-width: 0;
  border: 0;
  border-radius: 0;
  padding: 12px 0;
  background: transparent;
  color: var(--text);
  box-shadow: none;
}

.account-form .auth-field input:-webkit-autofill,
.account-form .auth-field input:-webkit-autofill:hover,
.account-form .auth-field input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--text);
  caret-color: var(--text);
  box-shadow: 0 0 0 1000px var(--bg) inset;
  transition: background-color 9999s ease-out;
}

.auth-prefix {
  color: var(--text);
  font-size: 0.95rem;
}

.account-form .auth-inline {
  flex: 0 0 auto;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  color: var(--accent);
  font-weight: 600;
}

.account-form .auth-inline:disabled {
  color: var(--muted);
  cursor: default;
}

.account-form .auth-forgot {
  justify-self: end;
  margin: -4px 0 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--accent);
  font-size: 0.85rem;
  cursor: pointer;
}

.account-form .auth-submit {
  width: 100%;
  margin-top: 4px;
  border: 0;
  border-radius: 12px;
  padding: 12px 16px;
  background: var(--accent);
  color: var(--accent-fg, #fff);
  font-size: 1rem;
  font-weight: 600;
}

.auth-other {
  margin-top: 8px;
}

.auth-other-label {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.82rem;
}

.auth-back {
  border: 0;
  background: transparent;
  color: var(--accent);
  cursor: pointer;
  padding: 0;
}

.account-screen {
  display: grid;
  gap: 16px;
  padding-top: 28px;
  padding-bottom: 48px;
}

.account-hero {
  display: flex;
  align-items: center;
  gap: 16px;
}

.account-hero h1 {
  margin: 0;
  font-size: 1.45rem;
  word-break: break-all;
}

.account-plan-line {
  margin: 6px 0 0;
  color: var(--muted);
}

.account-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-fg, #fff);
  font-size: 1.15rem;
  font-weight: 600;
}

.account-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.account-grid h2 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

@media (max-width: 720px) {
  .account-grid {
    grid-template-columns: 1fr;
  }
}
