:root {
  color-scheme: light dark;
  --bg: #f7faf8;
  --surface: rgba(255, 255, 255, 0.86);
  --surface-strong: #ffffff;
  --text: #15231b;
  --muted: #66736c;
  --line: #dce7e0;
  --accent: #0fa958;
  --accent-dark: #08773d;
  --accent-soft: #e7f7ee;
  --shadow: 0 22px 60px rgba(24, 54, 37, 0.09);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1210;
    --surface: rgba(24, 31, 27, 0.88);
    --surface-strong: #181f1b;
    --text: #f2f7f4;
    --muted: #a2afa7;
    --line: #2a3730;
    --accent: #26cf72;
    --accent-dark: #74e9a7;
    --accent-soft: #173526;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.26);
  }
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 0%, rgba(38, 207, 114, 0.13), transparent 30rem),
    radial-gradient(circle at 88% 8%, rgba(94, 154, 255, 0.10), transparent 28rem),
    var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC",
    "Helvetica Neue", Arial, sans-serif;
  line-height: 1.72;
}

a { color: var(--accent-dark); }

a:hover { text-decoration-thickness: 2px; }

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

.nav {
  width: min(1040px, calc(100% - 40px));
  min-height: 66px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  text-decoration: none;
  font-weight: 760;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(145deg, #25d477, #079e4d);
  box-shadow: 0 8px 22px rgba(15, 169, 88, 0.22);
}

.brand-mark svg { width: 20px; height: 20px; }

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

.nav-link,
.lang-button {
  border: 0;
  border-radius: 9px;
  padding: 7px 10px;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
}

.nav-link:hover,
.lang-button:hover { color: var(--text); background: var(--accent-soft); }

.lang-button {
  border: 1px solid var(--line);
  color: var(--text);
  background: var(--surface);
}

.page {
  width: min(920px, calc(100% - 40px));
  margin: 0 auto;
  padding: 76px 0 96px;
}

.hero { margin-bottom: 36px; }

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  max-width: 800px;
  margin: 0;
  font-size: clamp(40px, 7vw, 68px);
  line-height: 1.08;
  letter-spacing: -0.055em;
}

.lede {
  max-width: 720px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 2.4vw, 20px);
  line-height: 1.72;
}

.meta {
  display: flex;
  gap: 8px 22px;
  flex-wrap: wrap;
  margin-top: 20px;
  color: var(--muted);
  font-size: 14px;
}

.notice {
  margin: 30px 0;
  padding: 18px 20px;
  border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--line));
  border-radius: 14px;
  background: var(--accent-soft);
}

.notice strong { display: block; margin-bottom: 4px; }

.card,
.legal-section {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.legal-section {
  margin-top: 18px;
  padding: clamp(24px, 5vw, 40px);
}

h2 {
  margin: 0 0 14px;
  font-size: clamp(23px, 3vw, 29px);
  line-height: 1.28;
  letter-spacing: -0.025em;
}

h3 {
  margin: 25px 0 8px;
  font-size: 17px;
  line-height: 1.4;
}

p { margin: 10px 0; }

ul, ol { margin: 12px 0 0; padding-left: 1.35em; }

li + li { margin-top: 8px; }

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

.summary-card,
.support-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}

.summary-card strong,
.support-card h2 {
  display: block;
  margin: 0 0 8px;
  font-size: 18px;
}

.summary-card p,
.support-card p { margin: 0; color: var(--muted); }

.support-card a { display: inline-block; margin-top: 14px; font-weight: 700; }

.faq { margin-top: 18px; }

details {
  border-top: 1px solid var(--line);
  padding: 18px 0;
}

details:last-child { border-bottom: 1px solid var(--line); }

summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  font-weight: 720;
  cursor: pointer;
  list-style: none;
}

summary::-webkit-details-marker { display: none; }

summary::after {
  content: "+";
  color: var(--accent-dark);
  font-size: 24px;
  line-height: 1;
}

details[open] summary::after { content: "−"; }

details > div { padding: 12px 34px 0 0; color: var(--muted); }

.contact-box {
  margin-top: 28px;
  padding: clamp(24px, 5vw, 38px);
  border-radius: 20px;
  color: #fff;
  background: linear-gradient(145deg, #0d9e50, #08743e);
  box-shadow: 0 20px 54px rgba(8, 116, 62, 0.20);
}

.contact-box h2 { margin-bottom: 8px; }

.contact-box p { color: rgba(255, 255, 255, 0.82); }

.contact-box a { color: #fff; font-weight: 760; }

.home-page { width: min(1080px, calc(100% - 40px)); }

.home-hero {
  min-height: 620px;
  padding: 86px 0 72px;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  align-items: center;
  gap: clamp(42px, 7vw, 88px);
}

.home-hero h1 { font-size: clamp(48px, 7vw, 76px); }

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.button-primary,
.button-secondary {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 20px;
  border-radius: 12px;
  font-weight: 730;
  text-decoration: none;
}

.button-primary {
  color: #fff;
  background: linear-gradient(145deg, #20cb6c, #0b9d50);
  box-shadow: 0 12px 30px rgba(15, 169, 88, 0.24);
}

.button-primary:hover { color: #fff; transform: translateY(-1px); }

.button-secondary {
  color: var(--text);
  border: 1px solid var(--line);
  background: var(--surface);
}

.app-preview {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: color-mix(in srgb, var(--surface-strong) 92%, transparent);
  box-shadow: 0 34px 90px rgba(17, 44, 29, 0.18);
  transform: perspective(1200px) rotateY(-3deg) rotateX(1deg);
}

.preview-window {
  overflow: hidden;
  min-height: 430px;
  border: 1px solid #29332d;
  border-radius: 16px;
  color: #f4f7f5;
  background:
    radial-gradient(circle at 20% 15%, rgba(18, 189, 91, 0.12), transparent 38%),
    #101511;
}

.preview-titlebar {
  height: 46px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 16px;
  border-bottom: 1px solid #27302a;
  color: #9ca8a0;
  font-size: 12px;
  font-weight: 650;
}

.preview-dot { width: 10px; height: 10px; border-radius: 50%; }
.preview-dot.red { background: #ff5f57; }
.preview-dot.yellow { background: #febc2e; }
.preview-dot.green { background: #28c840; margin-right: 6px; }

.preview-content { padding: 28px; }

.preview-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 28px;
}

.preview-brand strong { font-size: 21px; }
.preview-brand span { color: #849088; font-size: 12px; }

.preview-progress {
  display: grid;
  grid-template-columns: 84px 1fr;
  align-items: center;
  gap: 24px;
  padding: 22px;
  border: 1px solid #27352d;
  border-radius: 16px;
  background: #152019;
}

.preview-ring {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  border: 8px solid #27352d;
  border-top-color: #1dcd6b;
  border-radius: 50%;
  color: #1dcd6b;
  font-size: 20px;
  font-weight: 760;
}

.preview-input {
  height: 44px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  border: 1px solid #2b3430;
  border-radius: 11px;
  color: #7f8a83;
  background: #111512;
  font-size: 13px;
}

.preview-current { margin-top: 20px; }
.preview-label { margin-bottom: 8px; color: #849088; font-size: 11px; }

.preview-task {
  padding: 20px;
  border-top: 3px solid #18c965;
  border-radius: 14px;
  background: #191e1a;
}

.preview-task-head { display: flex; justify-content: space-between; gap: 18px; }
.preview-task-head strong { font-size: 17px; }
.preview-timer { color: #20d171; font: 700 22px ui-monospace, SFMono-Regular, Menlo, monospace; }

.preview-actions { display: grid; grid-template-columns: 1fr 0.55fr; gap: 10px; margin-top: 22px; }
.preview-action { height: 40px; display: grid; place-items: center; border-radius: 10px; color: #aab4ad; background: #242a26; font-size: 12px; font-weight: 700; }
.preview-action.primary { color: #fff; background: #13ad58; }

.home-section { padding: 78px 0; }
.home-section-head { max-width: 680px; margin-bottom: 30px; }
.home-section-head p { color: var(--muted); font-size: 17px; }

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

.feature-card {
  min-height: 210px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
}

.feature-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  border-radius: 12px;
  color: var(--accent-dark);
  background: var(--accent-soft);
  font-size: 19px;
  font-weight: 800;
}

.feature-card h3 { margin: 0 0 9px; font-size: 19px; }
.feature-card p { margin: 0; color: var(--muted); font-size: 15px; }

.privacy-banner {
  padding: clamp(30px, 6vw, 54px);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 30px;
  border: 1px solid color-mix(in srgb, var(--accent) 26%, var(--line));
  border-radius: 24px;
  background: var(--accent-soft);
}

.privacy-banner h2 { margin-bottom: 8px; }
.privacy-banner p { max-width: 680px; margin: 0; color: var(--muted); }

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer-inner {
  width: min(920px, calc(100% - 40px));
  margin: 0 auto;
  padding: 26px 0 40px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 13px;
}

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

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

@media (max-width: 700px) {
  .nav { width: min(100% - 28px, 1040px); min-height: 60px; }
  .brand-subtitle, .nav-link { display: none; }
  .page { width: min(100% - 28px, 920px); padding: 52px 0 72px; }
  .summary-grid, .support-grid { grid-template-columns: 1fr; }
  .legal-section { border-radius: 16px; }
  .footer-inner { width: min(100% - 28px, 920px); }
  .home-page { width: min(100% - 28px, 1080px); }
  .home-hero { min-height: auto; padding: 58px 0 40px; grid-template-columns: 1fr; gap: 46px; }
  .home-hero h1 { font-size: clamp(43px, 14vw, 62px); }
  .app-preview { transform: none; padding: 8px; border-radius: 18px; }
  .preview-window { min-height: 370px; }
  .preview-content { padding: 20px; }
  .preview-progress { grid-template-columns: 1fr; }
  .preview-ring { display: none; }
  .feature-grid { grid-template-columns: 1fr; }
  .home-section { padding: 54px 0; }
  .privacy-banner { grid-template-columns: 1fr; }
}

@media print {
  .site-header { position: static; }
  .lang-button { display: none; }
  body { background: #fff; color: #111; }
  .page { width: 100%; padding: 30px; }
  .legal-section, .summary-card, .support-card { box-shadow: none; }
}
