:root {
  --bg: #FBF8F1;
  --bg-alt: #F3EEE3;
  --surface: #FFFFFF;
  --ink: #23211E;
  --muted: #6F695F;
  --line: #E6DFD0;
  --accent: #16A34A;
  --accent-ink: #FFFFFF;
  --accent-soft: #DCFCE7;
  --radius: 16px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #14130F;
    --bg-alt: #1C1A16;
    --surface: #23211C;
    --ink: #F6F1E6;
    --muted: #A9A294;
    --line: #36322A;
    --accent: #22C55E;
    --accent-ink: #0B1A10;
    --accent-soft: #143322;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #14130F; --bg-alt: #1C1A16; --surface: #23211C; --ink: #F6F1E6; --muted: #A9A294;
  --line: #36322A; --accent: #22C55E; --accent-ink: #0B1A10; --accent-soft: #143322; color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Noto Sans SC", system-ui, -apple-system, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
html[lang="en"] body { font-family: "Nunito", system-ui, -apple-system, sans-serif; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.25; margin: 0; }
h2 { font-size: clamp(24px, 3.2vw, 32px); margin-bottom: 28px; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 720px; }

/* logo 明暗切换（基础样式必须写在前面，否则会盖掉下面的隐藏规则） */
.logo { display: block; width: auto; }
.logo.logo-dark { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo.logo-light { display: none; }
  :root:not([data-theme="light"]) .logo.logo-dark { display: block; }
}

/* 导航 */
.nav { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 12px; }
.brand { display: flex; align-items: center; }
.brand .logo { height: 36px; }
.nav-links { display: flex; align-items: center; gap: 20px; font-size: 15px; }
.nav-links > a:not(.btn) { text-decoration: none; color: var(--muted); }
.nav-links > a:not(.btn):hover { color: var(--ink); }
.lang { background: none; border: 1px solid var(--line); color: var(--ink); border-radius: 8px; padding: 4px 10px; font: inherit; font-size: 13px; cursor: pointer; }
@media (max-width: 720px) {
  .nav-links > a:not(.btn) { display: none; }
  .nav-links { gap: 10px; }
  .brand .logo { height: 30px; }
}

/* 按钮 */
.btn { display: inline-block; background: var(--accent); color: var(--accent-ink); text-decoration: none; font-weight: 700; padding: 12px 22px; border-radius: 12px; border: 0; cursor: pointer; font: inherit; font-weight: 700; transition: transform .15s, filter .15s; }
.btn:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn-sm { padding: 7px 14px; font-size: 14px; border-radius: 10px; }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-block { display: block; width: 100%; text-align: center; }
.btn[disabled] { opacity: .6; cursor: default; transform: none; }

/* 首屏 */
.hero { padding: 72px 0 56px; }
.hero-inner { display: grid; grid-template-columns: 1.3fr 1fr; align-items: center; gap: 40px; }
.pill { display: inline-flex; align-items: center; gap: 8px; background: var(--accent-soft); color: var(--ink); font-size: 14px; padding: 6px 14px; border-radius: 999px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 var(--accent); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 60%, transparent); } 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
@media (prefers-reduced-motion: reduce) { .dot { animation: none; } html { scroll-behavior: auto; } }
.hero h1 { font-size: clamp(34px, 5.6vw, 56px); margin: 20px 0 16px; letter-spacing: -0.5px; }
.sub { font-size: 18px; color: var(--muted); margin: 0 0 28px; max-width: 34em; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-art { display: flex; justify-content: center; }
.hero-art img { width: min(320px, 70vw); filter: drop-shadow(0 24px 40px rgba(60, 45, 20, .18)); }
@media (max-width: 760px) {
  .hero { padding: 40px 0; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .hero-art img { width: 160px; }
}

/* 区块 */
.section { padding: 72px 0; }
.section.alt { background: var(--bg-alt); }
.cards { display: grid; gap: 16px; }
.cards.four { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card h3 { font-size: 18px; margin: 12px 0 8px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.ico { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-size: 18px; }

.uses { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.uses li { display: flex; flex-direction: column; gap: 4px; border-left: 3px solid var(--accent); padding: 4px 0 4px 16px; }
.uses span { color: var(--muted); font-size: 15px; }

/* 价格 */
.price-card { max-width: 480px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 32px; }
.price-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.spec { font-weight: 700; font-size: 20px; }
.spec-sub { color: var(--muted); font-size: 15px; }
.price { text-align: right; white-space: nowrap; }
.amount { font-family: "Nunito", sans-serif; font-weight: 800; font-size: 40px; line-height: 1; }
.per { color: var(--muted); font-size: 15px; margin-left: 2px; }
.checks { list-style: none; padding: 0; margin: 20px 0 24px; display: grid; gap: 10px; }
.checks li { padding-left: 28px; position: relative; }
.checks li::before { content: ""; position: absolute; left: 0; top: .35em; width: 16px; height: 16px; border-radius: 50%; background: var(--accent-soft); }
.checks li::after { content: ""; position: absolute; left: 5px; top: calc(.35em + 4px); width: 6px; height: 4px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.fine { font-size: 13px; color: var(--muted); margin: 14px 0 0; text-align: center; }

/* 步骤 */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 4px; }
.steps .n { width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-weight: 800; font-size: 14px; margin-bottom: 8px; }
.steps span:not(.n) { color: var(--muted); font-size: 15px; }

/* FAQ */
details { border-bottom: 1px solid var(--line); padding: 16px 0; }
summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--muted); font-weight: 400; font-size: 20px; line-height: 1; }
details[open] summary::after { content: "−"; }
details p { color: var(--muted); margin: 10px 0 0; }

/* 表单 */
.lead { color: var(--muted); margin: -12px 0 24px; }
.form { display: grid; gap: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 28px; }
.form label { display: grid; gap: 6px; font-size: 14px; font-weight: 500; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form .row { grid-template-columns: 1fr; } .form { padding: 20px; } .price-card { padding: 24px; } }
input, select, textarea { font: inherit; font-size: 16px; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; width: 100%; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-msg { margin: 0; min-height: 1.5em; font-size: 15px; text-align: center; }
.form-msg.ok { color: var(--accent); font-weight: 700; }
.form-msg.err { color: #DC2626; }

/* 页脚 */
.footer { border-top: 1px solid var(--line); padding: 40px 0; font-size: 14px; color: var(--muted); }
.footer-inner { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-meta { text-align: right; }
.footer-meta p { margin: 4px 0 0; }
@media (max-width: 560px) { .footer-meta { text-align: left; } }
