:root {
  --brand: #4a7057;
  --brand-dark: #356a50;
  --brand-mid: #7e9d8b;
  --brand-light: #edf5f0;
  --brand-lighter: #f6f9f7;
  --gold: #cfa957;
  --gold-dark: #9c7f3c;
  --gold-light: #fbf3e2;
  --ink: #1d221f;
  --muted: #777b78;
  --line: #dedbd3;
  --paper: #faf9f6;
  --white: #fff;
  --shadow: 0 18px 48px rgba(47, 55, 51, .09);
  --radius: 18px;
  --wrap: 1180px;
  --font: "Songti SC", "STSong", "Noto Serif CJK SC", "Source Han Serif SC", serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3 { font-family: var(--font); font-weight: 700; line-height: 1.35; margin: 0; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.wrap { width: min(var(--wrap), calc(100% - 48px)); margin-inline: auto; }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 999; background: var(--brand); color: #fff; padding: 10px 16px; }
.skip-link:focus { left: 12px; top: 12px; }

/* header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 249, 246, .92);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(74, 112, 87, .1);
}
.header-inner { height: 76px; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 11px; flex: none; }
.brand img { width: 44px; height: 44px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text strong { font-family: var(--font); font-size: 20px; letter-spacing: 1px; }
.brand-text small { font-size: 11px; color: var(--muted); letter-spacing: .5px; }
.nav { display: flex; gap: 30px; margin-left: auto; font-size: 14px; color: #4c514d; }
.nav a { position: relative; padding: 6px 0; transition: color .2s ease; }
.nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px; background: var(--brand); transition: right .2s ease; }
.nav a:hover { color: var(--brand); }
.nav a:hover::after { right: 0; }
.header-cta {
  flex: none; padding: 9px 20px; border-radius: 999px;
  background: var(--brand); color: #fff; font-size: 14px;
  box-shadow: 0 6px 16px rgba(74, 112, 87, .18);
  transition: transform .2s ease, background .2s ease;
}
.header-cta:hover { background: var(--brand-dark); transform: translateY(-1px); }
.nav-toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 12px; background: #fff; padding: 10px; }
.nav-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; margin: 4px 0; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 0 26px; border: 1px solid transparent; border-radius: 999px;
  font-size: 15px; font-weight: 600; letter-spacing: .3px;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 10px 24px rgba(74, 112, 87, .22); }
.btn-primary:hover { background: var(--brand-dark); box-shadow: 0 14px 28px rgba(74, 112, 87, .28); }
.btn-ghost { background: rgba(255, 255, 255, .7); color: var(--brand-dark); border-color: rgba(74, 112, 87, .28); }
.btn-outline { background: transparent; color: var(--brand-dark); border-color: var(--brand-mid); }
.link-btn { border: 0; background: none; color: var(--brand); font-size: 14px; font-weight: 600; padding: 4px 0; border-bottom: 1px solid currentColor; }

/* hero */
.hero { position: relative; overflow: hidden; min-height: 610px; }
.hero-bg {
  position: absolute; inset: 0;
  background: url("assets/header-bg.jpg") center center / cover no-repeat;
  opacity: .9;
}
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(250,249,246,.96) 0%, rgba(250,249,246,.82) 42%, rgba(250,249,246,.18) 100%); pointer-events: none; }
.hero-inner { position: relative; z-index: 2; min-height: 610px; display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: 40px; padding-block: 72px; }
.hero-copy { max-width: 620px; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; color: var(--brand-dark); font-size: 13px; font-weight: 700; letter-spacing: 1.5px; background: rgba(255,255,255,.72); border: 1px solid rgba(74,112,87,.18); border-radius: 999px; padding: 7px 15px; }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(207,169,87,.18); }
.hero h1 { margin-top: 22px; font-size: clamp(48px, 6vw, 76px); letter-spacing: 8px; color: var(--ink); }
.hero-lead { margin-top: 14px; font-family: var(--font); font-size: clamp(22px, 2.4vw, 30px); color: var(--brand-dark); letter-spacing: 2px; }
.hero-desc { margin-top: 18px; max-width: 540px; color: #5c625d; font-size: 16px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-hint { margin-top: 16px; font-size: 12px; color: var(--muted); }

.hero-visual { position: relative; display: flex; justify-content: center; align-items: center; min-height: 430px; }
.phone {
  position: relative; width: 268px; height: 500px; padding: 10px;
  border-radius: 38px; background: #23372c;
  box-shadow: 0 30px 70px rgba(31, 49, 38, .26), inset 0 0 0 2px rgba(255,255,255,.14);
  transform: rotate(-2deg);
}
.phone-notch { position: absolute; top: 9px; left: 50%; transform: translateX(-50%); width: 84px; height: 18px; border-radius: 0 0 12px 12px; background: #23372c; z-index: 3; }
.phone-screen { height: 100%; border-radius: 30px; background: #f8f4f1; overflow: hidden; padding: 34px 14px 0; display: flex; flex-direction: column; }
.app-topbar { display: flex; align-items: center; justify-content: center; gap: 6px; font-family: var(--font); font-size: 14px; color: var(--brand-dark); }
.app-topbar img { width: 22px; height: 22px; }
.app-greeting { margin: 16px 2px 12px; font-size: 12px; color: var(--muted); }
.app-card { background: #fff; border: 1px solid #e8e2da; border-radius: 14px; padding: 14px; box-shadow: 0 6px 16px rgba(47,55,51,.06); margin-bottom: 10px; }
.app-card-head { display: flex; justify-content: space-between; align-items: center; font-size: 11px; }
.app-tag { color: var(--brand-dark); background: var(--brand-light); border-radius: 5px; padding: 2px 7px; }
.app-tag-gold { color: var(--gold-dark); background: var(--gold-light); }
.app-more { color: var(--muted); }
.app-progress-title { font-family: var(--font); font-size: 16px; margin-top: 12px; }
.app-progress-bar { height: 6px; border-radius: 6px; background: #eee9e2; margin-top: 12px; overflow: hidden; }
.app-progress-bar i { display: block; width: 67%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--brand-mid), var(--brand)); }
.app-progress-foot { display: flex; justify-content: space-between; font-size: 10px; color: var(--muted); margin-top: 6px; }
.app-btn { margin-top: 13px; text-align: center; padding: 8px; border-radius: 8px; color: #fff; background: var(--brand); font-size: 12px; }
.app-mini-row { display: flex; gap: 6px; margin-top: 12px; }
.app-mini-row span { flex: 1; text-align: center; padding: 7px 0; border: 1px solid #eee7dd; border-radius: 7px; font-size: 10px; color: #6b706c; }
.app-tabbar { margin-top: auto; display: flex; justify-content: space-around; align-items: center; height: 58px; border-top: 1px solid #eae5dd; background: #fff; }
.app-tabbar span { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 9px; color: #8c908c; }
.app-tabbar img { width: 18px; height: 18px; opacity: .45; }
.app-tabbar .on { color: var(--brand); }
.app-tabbar .on img { opacity: 1; }
.mascot { position: absolute; right: -6px; bottom: 8px; width: 132px; filter: drop-shadow(0 16px 24px rgba(31,49,38,.16)); }

/* strip */
.strip { background: var(--brand); color: #fff; }
.strip-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.strip-grid > div { padding: 26px 24px; border-right: 1px solid rgba(255,255,255,.16); }
.strip-grid > div:last-child { border-right: 0; }
.strip-grid strong { display: block; font-family: var(--font); font-size: 20px; letter-spacing: 1px; }
.strip-grid span { display: block; margin-top: 4px; font-size: 12px; color: rgba(255,255,255,.76); }

/* sections */
section[id] { scroll-margin-top: 90px; }
.section { padding: 92px 0; }
.section-tint { background: var(--brand-lighter); }
.section-head { max-width: 720px; margin: 0 auto 46px; text-align: center; }
.kicker { display: inline-block; color: var(--gold-dark); font-size: 12px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; }
.section-head h2, .download-copy h2, .about-grid h2 { margin-top: 10px; font-size: clamp(28px, 3.4vw, 42px); letter-spacing: 2px; }
.section-sub { margin-top: 14px; color: var(--muted); font-size: 15px; }

/* features */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px; box-shadow: var(--shadow); transition: transform .2s ease, border-color .2s ease; }
.feature-card:hover { transform: translateY(-4px); border-color: var(--brand-mid); }
.feature-icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; background: var(--brand-light); }
.feature-icon img { width: 26px; height: 26px; }
.feature-icon-gold { color: var(--gold-dark); background: var(--gold-light); font-size: 22px; font-family: var(--font); }
.feature-card h3 { margin-top: 18px; font-size: 22px; letter-spacing: 1px; }
.feature-card p { margin-top: 10px; color: #606660; font-size: 14px; }
.feature-card ul { margin-top: 14px; display: grid; gap: 6px; }
.feature-card li { position: relative; padding-left: 16px; color: var(--muted); font-size: 13px; }
.feature-card li::before { content: ""; position: absolute; left: 0; top: 10px; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }
.feature-card-accent { background: linear-gradient(160deg, #fff, var(--brand-lighter)); }

/* flow */
.flow-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: flow; }
.flow-list li { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 24px; box-shadow: var(--shadow); }
.flow-list li:not(:last-child)::after { content: "→"; position: absolute; right: -17px; top: 50%; transform: translateY(-50%); z-index: 2; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--brand); color: #fff; font-size: 14px; }
.flow-no { font-family: var(--font); font-size: 14px; color: var(--gold-dark); letter-spacing: 2px; }
.flow-list h3 { margin-top: 8px; font-size: 21px; }
.flow-list p { margin-top: 8px; color: var(--muted); font-size: 13px; }

/* download */
.download-grid { display: grid; grid-template-columns: 1.35fr .65fr; gap: 56px; align-items: start; }
.download-copy h2 { max-width: 620px; }
.steps { margin-top: 28px; display: grid; gap: 18px; }
.steps li { display: flex; gap: 16px; align-items: flex-start; }
.steps li > span { flex: none; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--brand-light); color: var(--brand-dark); font-family: var(--font); font-weight: 700; }
.steps strong { font-family: var(--font); font-size: 17px; }
.steps p { margin-top: 3px; color: var(--muted); font-size: 14px; }

/* 多端下载入口 */
.platform-list { margin-top: 28px; display: grid; gap: 12px; }
.platform-item {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 18px; background: #fff; border: 1px solid var(--line);
  border-radius: 14px; box-shadow: 0 6px 18px rgba(47,55,51,.05);
}
.platform-badge {
  flex: none; width: 46px; height: 46px; display: grid; place-items: center;
  border-radius: 13px; font-family: var(--font); font-size: 15px; font-weight: 700;
  color: var(--brand-dark); background: var(--brand-light);
}
.badge-android { color: #3d6b4f; background: #eaf4ec; }
.badge-ios { color: #4a4f53; background: #eef0f2; }
.platform-body { flex: 1; min-width: 0; }
.platform-body h3 { font-size: 17px; }
.platform-body p { margin-top: 3px; color: var(--muted); font-size: 13px; }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 13px; white-space: nowrap; }
.download-note {
  margin-top: 14px; padding: 12px 16px; border-left: 3px solid var(--gold);
  background: var(--gold-light); color: var(--gold-dark); font-size: 12px;
}
.download-note strong { color: var(--ink); }
.download-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.app-meta { margin: 32px 0 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 24px; border-top: 1px solid var(--line); }
.app-meta > div { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.app-meta dt { flex: none; width: 68px; color: var(--muted); }
.app-meta dd { margin: 0; color: var(--ink); }
.qr-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; text-align: center; box-shadow: var(--shadow); }
.qr-frame { width: 100%; max-width: 420px; margin: 0 auto; padding: 8px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.qr-frame img { display: block; width: 100%; height: auto; border-radius: 10px; }
.qr-card h3 { margin-top: 20px; font-size: 20px; }
.qr-card p { margin-top: 8px; color: var(--muted); font-size: 13px; }
.qr-card .link-btn { margin-top: 16px; }
.qr-note { font-size: 11px !important; color: #9a9e9a !important; margin-top: 14px !important; }

/* about */
.about-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 60px; align-items: center; }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.contact-card h3 { font-size: 21px; margin-bottom: 16px; }
.contact-card dl { display: grid; gap: 14px; }
.contact-card dl > div { display: grid; grid-template-columns: 72px 1fr; gap: 12px; font-size: 13px; }
.contact-card dt { color: var(--muted); }
.contact-card dd { margin: 0; }
.contact-card a { color: var(--brand); }
.text-link { display: inline-block; margin-top: 20px; color: var(--brand); font-size: 14px; font-weight: 600; border-bottom: 1px solid var(--brand-mid); padding-bottom: 3px; }

/* footer */
.site-footer { background: #23372c; color: rgba(255,255,255,.78); padding: 38px 0; font-size: 13px; }
.footer-inner { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-right: auto; }
.footer-brand img { width: 38px; height: 38px; border-radius: 50%; background: #fff; }
.footer-brand span { display: flex; flex-direction: column; line-height: 1.25; }
.footer-brand strong { color: #fff; font-family: var(--font); font-size: 17px; }
.footer-brand small { font-size: 11px; color: rgba(255,255,255,.55); }
.site-footer nav { display: flex; gap: 20px; }
.site-footer a:hover { color: #fff; }

/* toast */
.toast {
  position: fixed; left: 50%; bottom: 40px; transform: translate(-50%, 20px);
  z-index: 100; max-width: calc(100% - 40px); padding: 12px 22px;
  border-radius: 999px; background: rgba(29,34,31,.92); color: #fff; font-size: 14px;
  opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease;
  box-shadow: 0 12px 32px rgba(0,0,0,.2);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* privacy page */
.legal { padding: 58px 0 96px; }
.legal-head { max-width: 820px; margin: 0 auto 40px; text-align: center; }
.legal-head h1 { margin-top: 12px; font-size: 34px; letter-spacing: 2px; }
.legal-head p { margin-top: 10px; color: var(--muted); font-size: 14px; }
.legal-body { max-width: 860px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 44px 52px; box-shadow: var(--shadow); }
.legal-body h2 { margin-top: 38px; padding-bottom: 10px; border-bottom: 1px solid var(--line); font-size: 22px; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body h3 { margin-top: 24px; font-size: 17px; color: var(--brand-dark); }
.legal-body p { margin: 12px 0; color: #4f554f; font-size: 14px; }
.legal-body ul, .legal-body ol { margin: 12px 0; padding-left: 22px; color: #4f554f; font-size: 14px; }
.legal-body ul { list-style: disc; }
.legal-body ol { list-style: decimal; }
.legal-body li { margin: 5px 0; }
.legal-body table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 13px; }
.legal-body th, .legal-body td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.legal-body th { background: var(--brand-lighter); color: var(--brand-dark); font-weight: 700; }
.legal-body strong { color: var(--ink); }
.legal-back { display: inline-block; margin-bottom: 22px; color: var(--brand); font-size: 14px; }

@media (max-width: 980px) {
  .nav { display: none; position: absolute; top: 76px; left: 0; right: 0; flex-direction: column; gap: 0; padding: 10px 24px 18px; background: var(--paper); border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav-toggle { display: block; margin-left: auto; }
  .header-cta { display: none; }
  .hero-inner { grid-template-columns: 1fr; gap: 20px; padding-bottom: 56px; }
  .hero-copy { max-width: 680px; }
  .hero-visual { min-height: 460px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .flow-list { grid-template-columns: repeat(2, 1fr); }
  .flow-list li:nth-child(2)::after { display: none; }
  .download-grid, .about-grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 680px) {
  .wrap { width: min(100% - 32px, var(--wrap)); }
  .header-inner { height: 66px; }
  .nav { top: 66px; }
  .hero, .hero-inner { min-height: auto; }
  .hero-inner { padding-top: 48px; }
  .hero h1 { letter-spacing: 4px; }
  .hero-desc { font-size: 14px; }
  .hero-visual { min-height: 420px; }
  .phone { width: 238px; height: 440px; transform: rotate(-1deg); }
  .mascot { width: 104px; right: 0; }
  .strip-grid { grid-template-columns: repeat(2, 1fr); }
  .strip-grid > div:nth-child(2) { border-right: 0; }
  .strip-grid > div:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.16); }
  .section { padding: 68px 0; }
  .feature-grid, .flow-list { grid-template-columns: 1fr; }
  .flow-list li:not(:last-child)::after { display: none; }
  .app-meta { grid-template-columns: 1fr; }
  .platform-item { flex-wrap: wrap; }
  .platform-body { flex-basis: calc(100% - 62px); }
  .platform-item .btn-sm { margin-left: 62px; }
  .qr-card { max-width: 360px; margin: 0 auto; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
  .site-footer nav { flex-wrap: wrap; }
  .legal-body { padding: 24px 20px; }
  .legal-body table { display: block; overflow-x: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
