:root {
  color-scheme: light;
  --bg:#f8f5ee; --paper:#fffefa; --ink:#241d19; --muted:#645a50;
  --line:#ded5c7; --accent:#9c3122; --accent-dark:#782618; --tint:#fff0e9;
  --gold:#f5d688; --radius:20px;
  font-family:"PingFang SC","Microsoft YaHei","Noto Sans SC",system-ui,sans-serif;
  color:var(--ink); background:var(--bg); font-size:16px; line-height:1.55;
}
* { box-sizing:border-box }
body { margin:0; min-width:300px }
button { font:inherit; cursor:pointer }
button:disabled { cursor:default; opacity:.58 }
button:focus-visible, a:focus-visible, input:focus-visible + span { outline:3px solid var(--accent); outline-offset:3px }
h1,h2,p { margin:0 }
h1 { font-size:clamp(1.85rem,5vw,2.75rem); line-height:1.22; letter-spacing:-.035em }
h2 { font-size:1.12rem; line-height:1.4 }
.site-head { background:var(--paper); border-bottom:1px solid var(--line) }
.head-inner { margin:auto; width:min(100% - 32px, 920px); height:64px; display:flex; align-items:center; justify-content:space-between }
.brand { display:flex; align-items:center; gap:12px }
.brand strong { color:var(--accent); letter-spacing:-.05em; font-size:1.33rem; font-weight:900 }
.brand span { border-left:1px solid var(--line); padding-left:12px; color:var(--muted); font-size:.85rem; font-weight:700; letter-spacing:.04em }
.preview-tag { color:#683119; background:#f9e6b7; padding:4px 10px; border-radius:999px; font-size:.82rem; font-weight:700 }
#app { width:min(100% - 32px, 720px); margin:30px auto 0; min-height:55vh }
#app:has(.welcome) { width:min(100% - 32px, 920px) }
.site-foot { color:var(--muted); font-size:.84rem; text-align:center; padding:24px 16px calc(24px + env(safe-area-inset-bottom)); }
.welcome, .card { background:var(--paper); border:1px solid var(--line); border-radius:var(--radius); box-shadow:0 12px 34px #4931180d; overflow:hidden }
.welcome { display:grid; grid-template-columns:1fr .92fr }
.welcome-copy { padding:clamp(22px,4.5vw,44px); display:grid; align-content:start; gap:16px }
.eyebrow { font-size:.84rem; font-weight:800; color:var(--accent); letter-spacing:.03em }
.welcome-media { background:#eec85f; min-height:250px; overflow:hidden; position:relative }
.welcome-media img { width:100%; height:100%; object-fit:cover; display:block; position:absolute; inset:0 }
.media-label { position:absolute; right:12px; bottom:12px; background:var(--paper); color:var(--muted); border-radius:999px; padding:3px 9px; font-size:.8rem }
.muted,.help { color:var(--muted) }
.help { font-size:.9rem }
.stack { display:grid; gap:14px }
.rule { padding-top:14px; border-top:1px solid var(--line) }
.notice { color:#65351f; border:1px solid #ead3ae; background:#fff5e1; padding:10px 13px; border-radius:12px; font-size:.9rem }
.actions { display:grid; gap:10px; padding-top:5px }
.primary,.secondary,.plain { min-height:46px; border-radius:12px; padding:10px 16px; font-weight:750; width:100% }
.primary { background:var(--accent); color:#fff; border:1px solid var(--accent); }
.primary:hover:not(:disabled) { background:var(--accent-dark); }
.secondary { color:var(--ink); border:1px solid var(--line); background:var(--paper) }
.secondary:hover,.plain:hover { background:#f4eadd }
.plain { color:var(--muted); border:0; background:transparent }
.progress-meta { display:flex; justify-content:space-between; align-items:center; gap:12px; color:var(--muted); font-size:.88rem; font-weight:700 }
.track { height:6px; background:#e9dfcf; border-radius:999px; overflow:hidden; margin:8px 0 16px }
.track span { display:block; height:100%; background:var(--accent); border-radius:999px; transition:width .24s ease }
.card { padding:clamp(16px,4.5vw,30px); display:grid; gap:16px; animation:appear .22s ease-out }
@keyframes appear { from { opacity:.65; transform:translateY(4px) } to { opacity:1; transform:translateY(0) } }
.title-block { display:grid; gap:8px }
.title-block h1 { font-size:clamp(1.6rem,4vw,2.2rem) }
.form-shell { display:grid; gap:18px }
fieldset { min-width:0; margin:0; padding:0; border:0 }
legend { font-weight:760; margin-bottom:8px; padding:0; line-height:1.45 }
.option-list { display:grid; gap:8px; }
.choice { cursor:pointer; display:block; position:relative }
.choice input { position:absolute; opacity:0; width:1px; height:1px; top:10px; left:10px }
.choice span { display:flex; min-height:47px; align-items:center; gap:10px; padding:10px 12px; border:1px solid var(--line); border-radius:11px; background:var(--paper); overflow-wrap:anywhere }
.choice span::before { content:""; width:15px; height:15px; border:1px solid #8b7b6b; border-radius:50%; flex:none }
.choice:hover span { border-color:#ad8d79 }
.choice input:checked + span { background:var(--tint); border-color:var(--accent); }
.choice input:checked + span::before { border:5px solid var(--accent) }
.meal { display:grid; grid-template-columns:104px 1fr; align-items:center; gap:13px; padding:10px; background:#f5eddb; border-radius:14px }
.meal img { display:block; width:104px; height:74px; object-fit:cover; border-radius:9px; background:var(--gold) }
.meal strong { display:block; margin-bottom:2px }
.money { white-space:nowrap; font-variant-numeric:tabular-nums }
.invoice { width:100%; border-collapse:separate; border-spacing:0; table-layout:fixed; border:1px solid var(--line); border-radius:13px; overflow:hidden }
.invoice th,.invoice td { text-align:center; vertical-align:middle; padding:8px 6px; font-size:.89rem; border-bottom:1px solid var(--line); overflow-wrap:anywhere }
.invoice th:first-child { width:28%; text-align:left; padding-left:10px; }
.invoice thead th { background:#f3ecde; font-weight:800 }
.invoice tr:last-child th,.invoice tr:last-child td { border-bottom:none; font-weight:800; background:#f3ecde }
.discount-caption { display:block; color:var(--muted); font-size:.81rem; line-height:1.3 }
.summary { display:flex; justify-content:space-between; align-items:center; gap:9px; border-top:1px dashed #bcae9a; padding-top:12px }
.summary strong { font-size:1.25rem }
.receipt { background:#fbf6e8; border:1px dashed #c2a67c; border-radius:14px; padding:13px; display:grid; gap:8px }
.receipt dl { display:grid; gap:6px; margin:0 }
.receipt dl div { display:flex; justify-content:space-between; gap:12px }
.receipt dd { margin:0; font-weight:650; text-align:right }
.scale-row { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:5px }
.scale-row .choice span { min-height:44px; justify-content:center; padding:5px 0; font-weight:800 }
.scale-row .choice span::before { display:none }
.scale-extra { display:flex; gap:6px; flex-wrap:wrap; margin-top:6px }
.scale-extra .choice span { min-height:40px; padding:5px 9px; font-size:.88rem }
.scale-extra .choice span::before { width:12px; height:12px }
.anchors { font-size:.88rem; padding:9px 11px; border-radius:10px; background:#f3ecde; }
.item { padding-top:13px; border-top:1px solid var(--line) }
.exit { margin-top:8px; }
.exit .plain { padding-inline:4px; }
@media (max-width:620px) {
  #app { margin-top:18px }
  .welcome { grid-template-columns:1fr }
  .welcome-media { min-height:185px; grid-row:1 }
  .head-inner { height:56px }
  .invoice th,.invoice td { padding:7px 4px; font-size:.84rem }
  .invoice th:first-child { padding-left:6px }
}
@media (prefers-reduced-motion:reduce) { *,*::before,*::after { animation:none!important; transition:none!important } }
