/**
 * [INPUT]: 依赖首页、结算、结果、在线计划与法律页的语义 class
 * [OUTPUT]: 提供精简的移动端优先视觉、表单、状态和合规页面布局
 * [POS]: assets 的唯一手写视觉系统，强调单一购买路径和真实服务界面
 * [PROTOCOL]: 变更时更新此头部，然后检查 CLAUDE.md
 */

:root {
  --paper: #f5f1e8;
  --surface: #fffdf8;
  --ink: #1f291f;
  --muted: #697167;
  --line: #d8d2c4;
  --green: #285b40;
  --green-soft: #dce9df;
  --orange: #c85122;
  --orange-soft: #f4dfd0;
  --danger: #a83b32;
  --radius: 18px;
  --max: 1080px;
  --font: "MiSans", "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font);
  line-height: 1.65;
}
a { color: inherit; text-underline-offset: 3px; }
button, input, select { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #e69b75; outline-offset: 3px; }

.shell { width: min(var(--max), calc(100% - 40px)); margin-inline: auto; }
.site-header { border-bottom: 1px solid var(--line); background: rgba(245, 241, 232, 0.96); }
.nav { display: flex; min-height: 68px; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 900; text-decoration: none; }
.brand-mark { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 50%; color: #fff; background: var(--green); }
.nav-actions, .nav-links { display: flex; align-items: center; gap: 22px; font-size: 14px; font-weight: 750; }
.nav-actions a, .nav-links a { text-decoration: none; }

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 850;
  line-height: 1;
  text-decoration: none;
}
.button-primary { color: #fff; background: var(--orange); }
.button-secondary { border-color: var(--line); background: var(--surface); }
.button-quiet { min-height: 38px; padding: 9px 14px; color: var(--green); background: var(--green-soft); }
.button:disabled { cursor: not-allowed; opacity: 0.45; }
.button[data-loading="true"]::before { width: 14px; height: 14px; margin-right: 8px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; content: ""; animation: spin 700ms linear infinite; }

.hero { padding: clamp(64px, 10vw, 120px) 0; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: clamp(42px, 8vw, 94px); }
.eyebrow { margin-bottom: 14px; color: var(--green); font-size: 13px; font-weight: 900; letter-spacing: 0.13em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 680px; margin-bottom: 22px; font-size: clamp(48px, 7.2vw, 82px); line-height: 1.02; letter-spacing: -0.065em; }
h2 { margin-bottom: 16px; font-size: clamp(32px, 4.5vw, 52px); line-height: 1.12; letter-spacing: -0.045em; }
h3 { margin-bottom: 8px; font-size: 22px; line-height: 1.3; }
.hero-text { max-width: 560px; margin-bottom: 28px; color: var(--muted); font-size: 19px; }
.hero-price { display: flex; align-items: end; gap: 12px; margin: 24px 0; }
.hero-price strong { color: var(--orange); font-size: 48px; line-height: 1; }
.hero-price span { color: var(--muted); font-size: 14px; }
.microcopy { margin-top: 12px; color: var(--muted); font-size: 13px; }

.day-card { padding: 28px; border-radius: 32px; color: #f8f4e9; background: var(--green); transform: rotate(1.5deg); }
.day-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.day-card-head span { color: #cfe0d3; font-size: 13px; }
.window { padding: 22px 0; border-block: 1px solid #4f775f; }
.window strong { display: block; margin-top: 5px; font-size: 34px; }
.day-list { display: grid; gap: 12px; margin-top: 22px; }
.day-list div { display: flex; justify-content: space-between; gap: 20px; color: #dce8df; }

.section { padding: clamp(68px, 9vw, 104px) 0; }
.section-white { background: var(--surface); }
.section-head { max-width: 640px; margin-bottom: 38px; }
.section-head p { color: var(--muted); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.step { padding: 28px 28px 28px 0; }
.step + .step { padding-left: 28px; border-left: 1px solid var(--line); }
.step b { display: block; margin-bottom: 18px; color: var(--orange); font-size: 13px; }
.step p { margin-bottom: 0; color: var(--muted); }

.offer { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 36px; padding: clamp(28px, 5vw, 52px); border-radius: 28px; color: #f8f4e9; background: var(--ink); }
.offer p { max-width: 560px; color: #cbd1c8; }
.offer-list { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 20px 0 0; padding: 0; list-style: none; }
.offer-list li::before { margin-right: 7px; color: #8fc49f; content: "✓"; }
.offer-action { min-width: 220px; text-align: center; }
.offer-price { margin-bottom: 14px; font-size: 42px; font-weight: 900; line-height: 1; }

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { padding: 20px 0; font-weight: 850; cursor: pointer; }
.faq p { max-width: 720px; padding-bottom: 18px; color: var(--muted); }

.site-footer { padding: 34px 0; color: #cbd1c8; background: #18241b; }
.footer-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; margin: 0; padding: 0; border: 0; font-size: 13px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 16px; }

.checkout-page, .result-page { min-height: calc(100vh - 68px); padding: clamp(38px, 8vw, 84px) 0; }
.checkout-box { display: grid; grid-template-columns: 1fr 360px; gap: clamp(36px, 8vw, 90px); }
.back-link { display: inline-block; margin-bottom: 34px; color: var(--muted); font-size: 14px; }
.checkout-copy h1 { font-size: clamp(40px, 6vw, 66px); }
.feature-list { display: grid; gap: 12px; margin: 28px 0; padding: 0; list-style: none; }
.feature-list li::before { margin-right: 9px; color: var(--green); content: "✓"; }
.order-panel { align-self: start; padding: 28px; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); }
.summary-row { display: flex; justify-content: space-between; gap: 20px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.summary-total { align-items: end; border-bottom: 0; }
.summary-total strong { color: var(--orange); font-size: 34px; }
.agreement { display: grid; grid-template-columns: 20px 1fr; gap: 10px; margin: 22px 0; font-size: 13px; }
.agreement input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--green); }
.order-panel .button { width: 100%; }
.message { margin: 14px 0 0; padding: 11px 13px; border-radius: 12px; color: var(--green); background: var(--green-soft); font-size: 13px; }
.message[data-tone="error"] { color: var(--danger); background: #f2d9d5; }

.app-shell { width: min(760px, calc(100% - 28px)); margin: 28px auto 72px; }
.service-top { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 26px; }
.service-top h1 { margin: 0; font-size: clamp(34px, 7vw, 52px); }
.preview-badge { padding: 6px 10px; border-radius: 999px; color: var(--green); background: var(--green-soft); font-size: 12px; font-weight: 850; }
.progress-track { height: 8px; overflow: hidden; margin-bottom: 30px; border-radius: 999px; background: #e1dbcf; }
.progress-track span { display: block; width: 14%; height: 100%; background: var(--orange); }
.service-block { padding: 26px 0; border-top: 1px solid var(--line); }
.settings { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.field label { display: block; margin-bottom: 6px; color: var(--muted); font-size: 12px; font-weight: 800; }
.field input, .field select { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); background: var(--surface); }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; }
.stat { padding: 18px; border-radius: 16px; background: var(--surface); }
.stat span { display: block; color: var(--muted); font-size: 12px; }
.stat strong { font-size: 20px; }
.plan-note { margin: 14px 0 0; color: var(--muted); font-size: 13px; }
.water-meter { --progress: 0%; overflow: hidden; border-radius: 18px; background: linear-gradient(90deg, var(--green-soft) var(--progress), var(--surface) var(--progress)); }
.water-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px; }
.water-inner strong { display: block; font-size: 28px; }
.water-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.habit-list { display: grid; gap: 10px; }
.habit { display: flex; align-items: center; gap: 10px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.service-cta { display: flex; align-items: center; justify-content: space-between; gap: 22px; padding: 22px; border-radius: 18px; background: var(--orange-soft); }
.service-cta p { margin: 0; }

.result-box { max-width: 560px; margin: 0 auto; padding: 36px; border-radius: 26px; text-align: center; background: var(--surface); }
.result-mark { display: grid; width: 66px; height: 66px; margin: 0 auto 20px; place-items: center; border-radius: 50%; color: #fff; background: var(--green); font-size: 28px; }
.result-box h1 { margin-bottom: 12px; font-size: clamp(36px, 7vw, 52px); }
.result-box p { color: var(--muted); }
.order-code { overflow-wrap: anywhere; font-size: 12px; }

.page-hero { padding: 58px 0 28px; }
.page-hero h1 { font-size: clamp(38px, 6vw, 58px); }
.breadcrumbs { margin-bottom: 18px; color: var(--muted); font-size: 13px; }
.content-grid { display: grid; grid-template-columns: 1fr 250px; gap: 28px; padding-bottom: 72px; }
.legal-card { padding: 28px; border-radius: 20px; background: var(--surface); }
.legal-card h2 { margin-top: 34px; font-size: 22px; letter-spacing: 0; }
.legal-card h2:first-child { margin-top: 0; }
.legal-nav { position: sticky; top: 20px; align-self: start; }
.legal-nav a { display: block; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; font-weight: 750; }
.config-warning { display: none; }

@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 760px) {
  .shell { width: min(100% - 24px, var(--max)); }
  .nav-actions a:not(.button), .nav-links { display: none; }
  .hero { padding-top: 52px; }
  .hero-grid, .checkout-box, .content-grid { grid-template-columns: 1fr; }
  h1 { font-size: clamp(44px, 13vw, 66px); }
  .day-card { transform: none; }
  .steps { grid-template-columns: 1fr; }
  .step, .step + .step { padding: 22px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .offer { grid-template-columns: 1fr; }
  .offer-action { min-width: 0; text-align: left; }
  .offer-action .button { width: 100%; }
  .settings { grid-template-columns: 1fr; }
  .water-inner, .service-cta { align-items: flex-start; flex-direction: column; }
  .service-cta .button { width: 100%; }
  .legal-nav { position: static; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; }
}
