/* ============================================================
   方寸AI美学智能平台 · 设计系统
   ============================================================ */
:root {
  --ink: #2b2620;
  --ink-soft: #6b6259;
  --ink-faint: #9a9088;
  --gold: #a8843c;
  --gold-deep: #8a6a2e;
  --gold-light: #c9a86a;
  --cream: #fbf9f6;
  --paper: #ffffff;
  --line: #ece5da;
  --line-soft: #f2ede4;
  --danger: #b3472f;
  --ok: #3d7a5a;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 6px 24px rgba(43, 38, 32, 0.07);
  --shadow-lg: 0 14px 44px rgba(43, 38, 32, 0.13);
  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --sans: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", system-ui, sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.75;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
button { font-family: var(--sans); cursor: pointer; }
input, select, textarea { font-family: var(--sans); font-size: 14px; }

/* ---------- 布局 ---------- */
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.section { padding: 72px 0; }
.section.tight { padding: 48px 0; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 44px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; letter-spacing: 0.35em; color: var(--gold);
  text-transform: uppercase; margin-bottom: 14px;
}
.eyebrow::before, .eyebrow::after { content: ""; width: 26px; height: 1px; background: var(--gold-light); }
h1, h2, h3, .serif { font-family: var(--serif); font-weight: 600; }
.section-head h2 { font-size: 30px; letter-spacing: 0.04em; }
.section-head p { color: var(--ink-soft); margin-top: 12px; }
.muted { color: var(--ink-soft); }
.small { font-size: 13px; }

/* ---------- 顶部导航 ---------- */
.topbar {
  position: sticky; top: 0; z-index: 90;
  background: rgba(251, 249, 246, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-seal {
  width: 40px; height: 40px; border-radius: 9px;
  background: linear-gradient(135deg, var(--ink) 0%, #463f34 100%);
  color: #f0e2c8; font-family: var(--serif); font-size: 15px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  letter-spacing: 1px; box-shadow: inset 0 0 0 1px rgba(201, 168, 106, 0.5);
}
.brand-name { font-family: var(--serif); font-size: 19px; font-weight: 700; letter-spacing: 0.06em; }
.brand-sub { font-size: 10px; letter-spacing: 0.28em; color: var(--gold); margin-top: 1px; }
.nav-links { display: flex; gap: 4px; align-items: center; }
.nav-links a {
  padding: 8px 14px; border-radius: 999px; font-size: 14px; color: var(--ink-soft);
  transition: all 0.2s;
}
.nav-links a:hover { color: var(--ink); background: var(--line-soft); }
.nav-links a.active { color: var(--gold-deep); background: rgba(168, 132, 60, 0.1); font-weight: 600; }
.nav-cta {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-deep) 100%);
  color: #fff !important; padding: 8px 18px !important; border-radius: 999px;
  box-shadow: 0 4px 14px rgba(168, 132, 60, 0.35);
}
.nav-admin {
  border: 1px solid var(--line); color: var(--ink-soft) !important;
  padding: 7px 16px !important; border-radius: 999px; font-size: 13px !important;
}
.nav-admin:hover { border-color: var(--gold); color: var(--gold-deep) !important; background: rgba(168,132,60,.06); }
.nav-badge {
  display: none; font-size: 11px; background: var(--ink); color: var(--gold-light);
  border-radius: 999px; padding: 1px 8px; margin-left: 2px;
}
.nav-badge.show { display: inline-block; }
.menu-btn { display: none; background: none; border: none; font-size: 22px; color: var(--ink); padding: 6px 10px; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: none; border-radius: 999px; padding: 12px 30px; font-size: 15px;
  transition: all 0.22s; letter-spacing: 0.04em;
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-deep) 100%);
  color: #fff; box-shadow: 0 6px 20px rgba(168, 132, 60, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(168, 132, 60, 0.45); }
.btn-dark { background: var(--ink); color: #f0e2c8; }
.btn-dark:hover { background: #3d372e; }
.btn-ghost { background: transparent; border: 1px solid var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-deep); }
.btn-sm { padding: 8px 18px; font-size: 13px; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none !important; }

/* ---------- 卡片与网格 ---------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card h3 { font-size: 18px; margin-bottom: 10px; letter-spacing: 0.03em; }

/* ---------- 标签 ---------- */
.tag {
  display: inline-block; font-size: 11.5px; padding: 2px 10px; border-radius: 999px;
  background: var(--line-soft); color: var(--ink-soft); margin: 2px 4px 2px 0;
  border: 1px solid var(--line);
}
.tag.gold { background: rgba(168, 132, 60, 0.1); color: var(--gold-deep); border-color: rgba(168, 132, 60, 0.25); }
.tag.dark { background: var(--ink); color: var(--gold-light); border-color: var(--ink); }
.tag.heat { background: rgba(179, 71, 47, 0.08); color: var(--danger); border-color: rgba(179, 71, 47, 0.2); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(201, 168, 106, 0.22), transparent 60%),
    radial-gradient(700px 500px at -10% 110%, rgba(168, 132, 60, 0.14), transparent 60%),
    linear-gradient(180deg, #fbf9f6 0%, #f6f1e8 100%);
  border-bottom: 1px solid var(--line);
  padding: 96px 0 84px;
}
.hero .wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; }
.hero h1 { font-size: 44px; line-height: 1.3; letter-spacing: 0.05em; margin: 18px 0 20px; }
.hero h1 em { font-style: normal; color: var(--gold-deep); }
.hero p.lead { font-size: 16.5px; color: var(--ink-soft); max-width: 520px; }
.hero-actions { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 36px; margin-top: 44px; }
.hero-stats b { display: block; font-family: var(--serif); font-size: 26px; color: var(--gold-deep); }
.hero-stats span { font-size: 12.5px; color: var(--ink-faint); }
/* hero 视觉：季型色轮 */
.wheel {
  position: relative; width: 400px; height: 400px; margin: 0 auto;
  border-radius: 50%;
  background: conic-gradient(from 0deg,
    #FBE7C6, #F2A65A, #C46A2B, #5C3A21, #2F4A3C, #7FB069, #A6E1FA, #1D3FBB,
    #7B2CBF, #C99BA6, #C1121F, #F9CDA4, #FBE7C6);
  box-shadow: var(--shadow-lg), inset 0 0 0 14px rgba(251, 249, 246, 0.9);
  animation: spin 60s linear infinite;
}
.wheel::after {
  content: "方寸\A十二季型"; white-space: pre; position: absolute; inset: 0; margin: auto;
  width: 132px; height: 132px; border-radius: 50%;
  background: var(--paper); box-shadow: var(--shadow);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 19px; line-height: 1.5; text-align: center;
  color: var(--ink); letter-spacing: 2px;
  animation: spin 60s linear infinite reverse;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 步骤条（O2O 闭环） ---------- */
.flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; counter-reset: step; }
.flow .step {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 20px; text-align: center; position: relative; counter-increment: step;
}
.flow .step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--serif); font-size: 24px; color: var(--gold-light); display: block;
}
.flow .step b { display: block; font-size: 15px; margin: 8px 0 6px; }
.flow .step p { font-size: 12.5px; color: var(--ink-soft); line-height: 1.6; }
.flow .step::after {
  content: "→"; position: absolute; right: -14px; top: 50%; transform: translateY(-50%);
  color: var(--gold); font-size: 16px; z-index: 2;
}
.flow .step:last-child::after { display: none; }

/* ---------- 时间线 ---------- */
.timeline { position: relative; padding-left: 26px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--gold-light), var(--line)); }
.timeline .tl-item { position: relative; padding: 0 0 30px 18px; }
.timeline .tl-item::before {
  content: ""; position: absolute; left: -25px; top: 7px; width: 12px; height: 12px;
  border-radius: 50%; background: var(--paper); border: 3px solid var(--gold);
}
.timeline .tl-item b { font-family: var(--serif); font-size: 17px; }
.timeline .tl-item .tl-day { font-size: 12px; color: var(--gold-deep); letter-spacing: 0.15em; margin-bottom: 4px; }

/* ---------- 对比表 ---------- */
.compare { width: 100%; border-collapse: collapse; background: var(--paper); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); font-size: 14px; }
.compare th, .compare td { padding: 15px 20px; border-bottom: 1px solid var(--line-soft); text-align: left; vertical-align: top; }
.compare th { background: var(--ink); color: #f0e2c8; font-weight: 600; letter-spacing: 0.06em; }
.compare tr:last-child td { border-bottom: none; }
.compare td:first-child { color: var(--ink-faint); width: 22%; }
.compare .win { color: var(--gold-deep); font-weight: 600; }
.compare .lose { color: var(--ink-faint); }

/* ---------- 页脚 ---------- */
.footer { background: var(--ink); color: #b9b0a4; padding: 56px 0 32px; margin-top: 40px; }
.footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
.footer h4 { color: #f0e2c8; font-size: 14px; letter-spacing: 0.2em; margin-bottom: 16px; font-family: var(--serif); }
.footer a { display: block; font-size: 13px; padding: 4px 0; color: #b9b0a4; }
.footer a:hover { color: var(--gold-light); }
.footer .fine { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,0.08); margin-top: 12px; padding-top: 22px; font-size: 12px; color: #7d7468; }

/* ---------- 测评页 ---------- */
.assess-shell { max-width: 860px; margin: 40px auto 80px; padding: 0 24px; }
.assess-card { background: var(--paper); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-lg); padding: 44px 48px; }
.assess-steps { display: flex; gap: 0; margin-bottom: 38px; }
.assess-steps .as-item { flex: 1; text-align: center; position: relative; font-size: 13px; color: var(--ink-faint); }
.assess-steps .as-item b { display: block; font-size: 12px; letter-spacing: 0.2em; color: var(--gold); margin-bottom: 4px; }
.assess-steps .as-item::after { content: ""; height: 2px; background: var(--line); position: absolute; top: 8px; left: 50%; right: -50%; }
.assess-steps .as-item:last-child::after { display: none; }
.assess-steps .as-item.on { color: var(--ink); font-weight: 600; }
.assess-steps .as-item.on b { color: var(--gold-deep); }
.assess-steps .as-item.done { color: var(--ok); }
.assess-steps .dot { width: 18px; height: 18px; border-radius: 50%; background: var(--paper); border: 2px solid var(--line); display: inline-block; margin-bottom: 6px; }
.assess-steps .as-item.on .dot { border-color: var(--gold); background: var(--gold-light); }
.assess-steps .as-item.done .dot { border-color: var(--ok); background: var(--ok); }

.q-progress { height: 5px; background: var(--line-soft); border-radius: 999px; overflow: hidden; margin-bottom: 30px; }
.q-progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold-light), var(--gold-deep)); border-radius: 999px; transition: width 0.35s; }

.q-text { font-family: var(--serif); font-size: 21px; margin-bottom: 6px; }
.q-sub { font-size: 13px; color: var(--ink-faint); margin-bottom: 22px; }
.q-opts { display: grid; gap: 12px; }
.q-opt {
  text-align: left; padding: 16px 20px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--line); background: var(--paper); font-size: 14.5px;
  transition: all 0.18s; display: flex; align-items: center; gap: 12px;
}
.q-opt:hover { border-color: var(--gold-light); background: #fdfaf3; }
.q-opt.sel { border-color: var(--gold); background: rgba(168, 132, 60, 0.07); box-shadow: 0 3px 12px rgba(168,132,60,0.12); }
.q-opt .opt-key { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; color: var(--ink-faint); flex: none; }
.q-opt.sel .opt-key { background: var(--gold); border-color: var(--gold); color: #fff; }

/* 上传区 */
.upload-zone {
  border: 1.5px dashed #d8cdbb; border-radius: var(--radius); padding: 44px 24px;
  text-align: center; background: #fdfbf7; transition: all 0.2s; cursor: pointer;
}
.upload-zone:hover { border-color: var(--gold); background: #fbf6ec; }
.upload-zone .ic { font-size: 34px; }
.photo-preview { display: flex; gap: 24px; align-items: center; margin-top: 20px; flex-wrap: wrap; }
.photo-preview canvas { border-radius: 12px; box-shadow: var(--shadow); max-width: 220px; }
.ai-scan {
  flex: 1; min-width: 220px; background: var(--ink); color: #d9cba9; border-radius: var(--radius);
  padding: 20px 24px; font-size: 13px; line-height: 2;
}
.ai-scan .bar { height: 6px; background: rgba(255,255,255,0.12); border-radius: 999px; overflow: hidden; margin: 8px 0; }
.ai-scan .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold-light), #f0e2c8); transition: width 0.3s; }
.ai-scan .kv { display: flex; justify-content: space-between; border-bottom: 1px dashed rgba(255,255,255,0.12); padding: 3px 0; }

/* ---------- 报告 ---------- */
.report-head { display: flex; align-items: center; gap: 22px; margin-bottom: 26px; flex-wrap: wrap; }
.season-badge {
  width: 92px; height: 92px; border-radius: 50%; flex: none;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-family: var(--serif); color: #fff; box-shadow: var(--shadow-lg); position: relative;
}
.season-badge b { font-size: 24px; letter-spacing: 2px; }
.season-badge span { font-size: 10px; letter-spacing: 0.2em; opacity: 0.85; }
.report-head h2 { font-size: 27px; }
.report-head .en { font-size: 12px; letter-spacing: 0.25em; color: var(--gold); }
.swatches { display: grid; grid-template-columns: repeat(8, 1fr); gap: 10px; margin: 14px 0 6px; }
.swatch { aspect-ratio: 1; border-radius: 9px; box-shadow: inset 0 0 0 1px rgba(0,0,0,0.06), 0 2px 8px rgba(43,38,32,0.1); position: relative; }
.swatch span {
  position: absolute; bottom: -20px; left: 0; right: 0; text-align: center; font-size: 10.5px; color: var(--ink-faint);
}
.swatches.wrap-labels { margin-bottom: 34px; }
.avoid-row { display: flex; gap: 10px; align-items: center; margin-top: 8px; }
.avoid-row .swatch { width: 40px; height: 40px; border-radius: 8px; position: relative; }
.avoid-row .swatch::after { content: "✕"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 15px; text-shadow: 0 1px 3px rgba(0,0,0,0.5); }
.locked {
  position: relative; overflow: hidden; border-radius: var(--radius);
}
.locked .blur { filter: blur(7px); pointer-events: none; user-select: none; opacity: 0.65; }
.lock-cover {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  background: rgba(251, 249, 246, 0.55); text-align: center; padding: 20px;
}
.lock-cover .lock-ic { font-size: 30px; }
.lock-cover p { font-size: 13.5px; color: var(--ink-soft); max-width: 320px; }

/* ---------- 商城 ---------- */
.mall-banner {
  background: linear-gradient(120deg, var(--ink) 0%, #463f34 100%);
  border-radius: 18px; color: #efe6d2; padding: 26px 30px; display: flex;
  align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 30px;
}
.mall-banner .mb-info b { font-family: var(--serif); font-size: 19px; color: #f5ead0; }
.mall-banner .mb-info p { font-size: 12.5px; color: #b9ad94; margin-top: 4px; }
.filter-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 26px; }
.chip {
  border: 1px solid var(--line); background: var(--paper); color: var(--ink-soft);
  border-radius: 999px; padding: 7px 18px; font-size: 13px; transition: all 0.18s;
}
.chip:hover { border-color: var(--gold-light); color: var(--gold-deep); }
.chip.on { background: var(--ink); color: var(--gold-light); border-color: var(--ink); }
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.p-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; transition: all 0.22s;
}
.p-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.p-visual { height: 128px; display: flex; align-items: flex-end; padding: 14px; gap: 8px; }
.p-visual i { flex: 1; border-radius: 6px; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.25); height: 60%; }
.p-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.p-body h4 { font-size: 14.5px; line-height: 1.45; }
.p-body .p-desc { font-size: 12.5px; color: var(--ink-soft); line-height: 1.6; flex: 1; }
.p-row { display: flex; align-items: baseline; justify-content: space-between; }
.p-price { font-family: var(--serif); font-size: 19px; color: var(--danger); font-weight: 700; }
.p-price small { font-size: 12px; font-weight: 400; }
.p-sales { font-size: 11.5px; color: var(--ink-faint); }
.match-flag {
  position: absolute; top: 10px; left: 10px; background: rgba(168, 132, 60, 0.92); color: #fff;
  font-size: 11px; border-radius: 999px; padding: 2px 10px; letter-spacing: 0.05em;
}
.p-visual { position: relative; }

/* ---------- 门店 ---------- */
.store-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.st-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px; position: relative; }
.st-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.st-head h4 { font-family: var(--serif); font-size: 18px; }
.st-rate { color: var(--gold-deep); font-size: 14px; white-space: nowrap; }
.st-addr { font-size: 12.5px; color: var(--ink-faint); margin: 6px 0 10px; }
.st-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; }
.st-price { color: var(--danger); font-weight: 700; font-size: 14px; }

/* ---------- 会员/定价 ---------- */
.price-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.price-card { background: var(--paper); border: 1.5px solid var(--line); border-radius: 16px; padding: 26px 22px; text-align: center; position: relative; }
.price-card.hot { border-color: var(--gold); box-shadow: 0 10px 30px rgba(168, 132, 60, 0.16); }
.price-card .hot-flag { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--gold); color: #fff; font-size: 11px; padding: 3px 14px; border-radius: 999px; letter-spacing: 0.1em; }
.price-card h4 { font-family: var(--serif); font-size: 17px; }
.price-card .pr { font-family: var(--serif); font-size: 34px; color: var(--ink); margin: 12px 0 4px; }
.price-card .pr small { font-size: 13px; color: var(--ink-faint); font-weight: 400; }
.price-card ul { list-style: none; text-align: left; font-size: 12.5px; color: var(--ink-soft); margin: 14px 0 18px; }
.price-card ul li { padding: 5px 0 5px 20px; position: relative; border-bottom: 1px dashed var(--line-soft); }
.price-card ul li::before { content: "✓"; position: absolute; left: 2px; color: var(--gold); }

/* ---------- 表单 ---------- */
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.f-field label { display: block; font-size: 13px; color: var(--ink-soft); margin-bottom: 6px; }
.f-field input, .f-field select, .f-field textarea {
  width: 100%; padding: 11px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--paper); outline: none; transition: border 0.2s; color: var(--ink);
}
.f-field input:focus, .f-field select:focus, .f-field textarea:focus { border-color: var(--gold); }
.f-field textarea { min-height: 92px; resize: vertical; }

/* ---------- 弹窗 / 抽屉 / 提示 ---------- */
.modal-mask {
  position: fixed; inset: 0; background: rgba(30, 26, 20, 0.45); z-index: 200;
  display: none; align-items: center; justify-content: center; padding: 24px;
  backdrop-filter: blur(3px);
}
.modal-mask.show { display: flex; }
.modal {
  background: var(--paper); border-radius: 18px; max-width: 460px; width: 100%;
  padding: 34px 34px 28px; box-shadow: var(--shadow-lg); position: relative;
  max-height: 86vh; overflow: auto; animation: pop 0.28s cubic-bezier(0.34, 1.4, 0.64, 1);
}
@keyframes pop { from { transform: scale(0.92); opacity: 0; } }
.modal h3 { font-size: 19px; margin-bottom: 6px; }
.modal .m-sub { font-size: 13px; color: var(--ink-soft); margin-bottom: 20px; }
.modal .m-close { position: absolute; top: 14px; right: 16px; background: none; border: none; font-size: 19px; color: var(--ink-faint); }
.modal .m-actions { display: flex; gap: 12px; margin-top: 22px; }
.modal .m-actions .btn { flex: 1; padding: 11px 0; }
.code-row { display: flex; gap: 10px; }
.code-row input { flex: 1; }
.code-row button { white-space: nowrap; }

.drawer-mask { position: fixed; inset: 0; background: rgba(30, 26, 20, 0.4); z-index: 190; display: none; }
.drawer-mask.show { display: block; }
.drawer {
  position: fixed; top: 0; right: -420px; width: 400px; max-width: 92vw; height: 100%; z-index: 195;
  background: var(--paper); box-shadow: -12px 0 40px rgba(43,38,32,0.18); transition: right 0.3s;
  display: flex; flex-direction: column;
}
.drawer.show { right: 0; }
.drawer-head { padding: 22px 26px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.drawer-head b { font-family: var(--serif); font-size: 17px; }
.drawer-body { flex: 1; overflow: auto; padding: 20px 26px; }
.drawer-foot { padding: 20px 26px; border-top: 1px solid var(--line); }
.cart-item { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px dashed var(--line-soft); }
.cart-item .ci-swatch { width: 52px; height: 52px; border-radius: 10px; flex: none; box-shadow: inset 0 0 0 1px rgba(0,0,0,0.06); }
.cart-item h5 { font-size: 13.5px; line-height: 1.5; }
.cart-item .ci-price { color: var(--danger); font-size: 13px; margin-top: 3px; }
.cart-item .ci-del { background: none; border: none; color: var(--ink-faint); font-size: 12px; padding: 0; }
.cart-item .ci-del:hover { color: var(--danger); }

.toast-wrap { position: fixed; top: 80px; left: 50%; transform: translateX(-50%); z-index: 300; display: flex; flex-direction: column; gap: 10px; align-items: center; pointer-events: none; }
.toast {
  background: var(--ink); color: #f0e2c8; font-size: 13.5px; padding: 11px 24px; border-radius: 999px;
  box-shadow: var(--shadow-lg); animation: toastIn 0.3s; letter-spacing: 0.03em;
}
@keyframes toastIn { from { transform: translateY(-12px); opacity: 0; } }

/* 核销码 */
.vcode-box {
  background: linear-gradient(135deg, var(--ink), #463f34); border-radius: var(--radius);
  color: #f0e2c8; padding: 22px 26px; text-align: center; margin-top: 16px;
}
.vcode-box .vc { font-family: "Consolas", monospace; font-size: 27px; letter-spacing: 4px; color: #fff; margin: 6px 0; }
.vcode-box p { font-size: 11.5px; color: #b9ad94; }

/* 助力进度 */
.boost-row { display: flex; gap: 8px; margin: 14px 0; }
.boost-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--line-soft); display: flex; align-items: center; justify-content: center; color: var(--ink-faint); border: 2px dashed var(--line); font-size: 12px; }
.boost-avatar.filled { background: linear-gradient(135deg, var(--gold-light), var(--gold-deep)); color: #fff; border-style: solid; border-color: var(--gold); }

/* 响应式 */
@media (max-width: 980px) {
  .hero .wrap { grid-template-columns: 1fr; text-align: center; }
  .hero p.lead { margin: 0 auto; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .wheel { width: 290px; height: 290px; }
  .grid-3, .grid-4, .price-cards, .product-grid { grid-template-columns: repeat(2, 1fr); }
  .flow { grid-template-columns: repeat(2, 1fr); }
  .flow .step::after { display: none; }
  .footer .wrap { grid-template-columns: 1fr 1fr; }
  .nav-links {
    display: none; position: absolute; top: 66px; left: 0; right: 0;
    background: var(--paper); border-bottom: 1px solid var(--line); flex-direction: column;
    padding: 14px 24px 20px; gap: 2px; box-shadow: var(--shadow-lg);
  }
  .nav-links.open { display: flex; }
  .menu-btn { display: block; }
  .assess-card { padding: 30px 22px; }
  .form-grid, .grid-2, .store-grid { grid-template-columns: 1fr; }
  .swatches { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 560px) {
  .grid-3, .grid-4, .price-cards, .product-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 32px; }
}
