* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  background: var(--color-canvas);
  color: var(--color-text-primary);
  font-family: var(--font-sans), "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.serif { font-family: var(--font-serif), "Songti SC", serif; }
.muted { color: var(--color-text-muted); }
.numeric { font-family: var(--font-numeric), "Inter Tight", sans-serif; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 32px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 26px;
  border: 0;
  border-radius: var(--scale-radius-button);
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  transition: transform .15s ease, opacity .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--color-accent); color: var(--color-text-primary); box-shadow: 0 8px 20px rgba(255, 200, 87, .35); }
.btn-ghost { background: var(--color-surface); color: var(--color-text-primary); border: 2px solid var(--color-track-bg); }
.btn-soft { background: var(--color-accent-soft); color: var(--color-text-primary); }
.btn-danger { background: var(--color-coral-soft); color: var(--color-danger-text); }

.card {
  background: var(--color-surface);
  border-radius: var(--scale-radius-card);
  padding: 32px;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 14px;
  border-radius: var(--scale-radius-pill);
  background: var(--color-accent-soft);
  font-size: 13px;
  color: var(--color-text-primary);
}
.tag-sky { background: #E6F2FA; }
.tag-growth { background: #EAF3E4; }
.tag-coral { background: var(--color-coral-soft); }
.tag-muted { background: var(--color-input-bg); color: var(--color-text-muted); }

/* ---------- 官网首页 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 250, 240, .9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(176, 122, 22, .1);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 74px;
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 19px; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 11px;
  background: var(--color-accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 19px;
}
.site-nav { display: flex; gap: 56px; margin: 0 auto; font-size: 15px; color: var(--color-text-muted); }
.site-nav a { transition: color .15s ease; }
.site-nav a:hover { color: var(--color-text-primary); }
.header-cta { flex: none; }

/* Hero */
.hero { padding: 84px 0 68px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
}
.hero h1 {
  font-size: 52px;
  line-height: 1.24;
  margin: 0 0 24px;
  font-weight: 700;
  letter-spacing: .5px;
}
.hero-lead {
  font-size: 18px;
  color: var(--color-text-muted);
  max-width: 470px;
  margin: 0 0 34px;
  line-height: 1.75;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-art { display: flex; align-items: center; justify-content: center; }
.phone-art {
  width: 300px;
  height: auto;
  filter: drop-shadow(0 26px 46px rgba(176, 122, 22, .16));
}

/* Features */
.section { padding: 56px 0; }
.features { padding: 8px 0 40px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature { padding: 30px 32px; border-radius: 26px; box-shadow: 0 10px 28px rgba(176, 122, 22, .06); }
.feature h3 { margin: 0 0 12px; font-size: 21px; }
.feature p { margin: 0; color: var(--color-text-muted); font-size: 15px; line-height: 1.8; }

/* Two ways */
.ways { padding: 24px 0 72px; }
.ways-grid {
  display: grid;
  grid-template-columns: 190px 1fr 360px;
  gap: 44px;
  align-items: center;
}
.qr-art svg { width: 100%; height: auto; filter: drop-shadow(0 14px 30px rgba(176, 122, 22, .1)); }
.ways-copy h2 { margin: 0 0 14px; font-size: 30px; }
.ways-copy p { margin: 0; color: var(--color-text-muted); font-size: 15px; line-height: 1.8; max-width: 340px; }
.download-card {
  background: var(--color-accent-soft);
  border-radius: 26px;
  padding: 26px 30px;
}
.dl-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 0;
  font-size: 15px;
  font-weight: 600;
  border-bottom: 1px solid rgba(176, 122, 22, .12);
  transition: color .15s ease;
}
.dl-row:hover { color: var(--color-bronze); }
.dl-row:last-of-type { border-bottom: 0; }
.dl-row .chev { color: var(--color-text-subtle); font-size: 18px; }
.dl-ver { margin: 14px 0 0; font-size: 12px; color: var(--color-text-subtle); }

/* Footer */
.site-footer {
  border-top: 1px solid rgba(176, 122, 22, .12);
  padding: 26px 0 30px;
}
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.foot-brand { margin: 0; font-size: 13px; color: var(--color-text-subtle); }
.foot-links { display: flex; align-items: center; gap: 26px; font-size: 13px; color: var(--color-text-subtle); }
.foot-links a { transition: color .15s ease; }
.foot-links a:hover { color: var(--color-text-primary); }
.foot-admin { color: var(--color-bronze) !important; }

/* Legal modal */
.legal-mask {
  position: fixed; inset: 0; z-index: 120;
  background: rgba(45, 42, 38, .36);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.legal-mask[hidden] { display: none; }
.legal-panel {
  position: relative;
  width: min(560px, 100%);
  max-height: 80vh;
  overflow: auto;
  padding: 34px 36px;
}
.legal-panel h2 { margin: 0 0 18px; font-size: 24px; }
.legal-body { color: var(--color-text-muted); font-size: 14px; line-height: 1.9; }
.legal-body p { margin: 0 0 14px; }
.legal-close {
  position: absolute; top: 16px; right: 18px;
  width: 34px; height: 34px; border-radius: 50%;
  border: 0; background: var(--color-input-bg);
  font-size: 20px; color: var(--color-text-muted); cursor: pointer; line-height: 1;
}
.legal-close:hover { background: var(--color-track-bg); }

.toast {
  position: fixed; right: 24px; bottom: 24px; z-index: 100;
  max-width: 420px; padding: 14px 20px;
  border-radius: 16px; background: var(--color-text-primary); color: #fff;
  font-size: 14px; line-height: 1.6; box-shadow: 0 12px 32px rgba(45,42,38,.18);
}
.toast.is-error { background: var(--color-danger-text); }

@media (max-width: 1000px) {
  .ways-grid { grid-template-columns: 160px 1fr; }
  .download-card { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .hero { padding: 48px 0 40px; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero h1 { font-size: 38px; }
  .hero-art { order: -1; }
  .phone-art { width: 230px; }
  .feature-grid { grid-template-columns: 1fr; }
  .site-nav { display: none; }
  .ways-grid { grid-template-columns: 1fr; gap: 28px; }
  .qr-art { width: 150px; }
  .container { padding: 0 20px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .foot-links { flex-wrap: wrap; gap: 16px; }
}
