* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: #F6F3EC; color: #1C1915; font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", sans-serif; }
.page { max-width: 480px; margin: 0 auto; padding: max(10px, env(safe-area-inset-top)) 12px max(24px, env(safe-area-inset-bottom)); }
.card { background: #FFFCF7; border: 1px solid #E4DDD0; border-radius: 16px; padding: 14px; line-height: 1.6; font-size: 15px; }
button { font: inherit; cursor: pointer; border: 1px solid #dc712e; border-radius: 12px; background: #FF8A3D; color: #372012; min-height: 46px; padding: 10px 14px; font-weight: 650; touch-action: manipulation; }
button:disabled { opacity: .45; cursor: default; }
button:focus-visible { outline: 3px solid #a14f20; outline-offset: 2px; }
.secondary { background: #fff6e9; border-color: #e4d4bd; font-size: 13px; }
.stats { display: flex; gap: 8px; padding: 10px 0 14px; border-bottom: 1px solid #eadfcf; }
.stats>span { flex: 1; color: #8a7664; font-size: 12px; }
.stats b { display: block; color: #6e3c21; font-size: 24px; line-height: 1.3; }
.shopline { display: flex; align-items: center; justify-content: space-between; margin: 14px 0 10px; }
#clock { font-size: 13px; color: #a3572b; }
.actions { display: flex; gap: 8px; }.actions button { flex: 1; }
.help, small { color: #8E877A; font-size: 12px; font-weight: normal; }
.help { margin: 10px 0; }
.queue { display: flex; gap: 8px; margin: 12px 0; }
.customer { flex: 1; min-width: 0; padding: 10px 5px; background: #f7f0e3; border: 1px solid #e4ddd0; display: flex; flex-direction: column; align-items: center; font-size: 12px; gap: 5px; }
.customer .mp-icon { font-size: 28px; color: #a47556; }
.customer.selected { border: 2px solid #FF8A3D; padding: 9px 4px; background: #fff1df; }
.meter { display: block; height: 6px; width: 100%; background: #e7dfd1; border-radius: 8px; overflow: hidden; }
.meter span { display: block; height: 100%; }
.customer small { font-size: 10px; }
.order { white-space: pre-line; border: 1px solid #ebcaa5; border-radius: 12px; padding: 12px; background: #fff4df; font-size: 14px; line-height: 1.9; min-height: 78px; }
#tipHint { font-size: 13px; color: #955122; min-height: 44px; padding: 10px 0; }
.workbench { border-top: 1px solid #e4ddd0; padding-top: 12px; }
.section-label { font-size: 18px; font-weight: 750; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.section-label small { font-size: 11px; }
.group-label { margin: 12px 0 7px; font-size: 13px; font-weight: 650; color: #76523b; }
.choices { display: flex; flex-wrap: wrap; gap: 6px; }
.choice { background: #faf5ec; border-color: #e5d8c7; font-size: 13px; font-weight: normal; padding: 8px 10px; flex: 1 0 auto; min-height: 44px; }
.choice.chosen { background: #ffe0bf; border-color: #f18b42; color: #743812; font-weight: 650; }
.choice[aria-disabled=true] { background: #ece8e1; color: #aaa196; border-style: dashed; }
.compare { font-size: 12px; color: #88735f; margin: 14px 0 10px; padding: 10px; background: #f5efe4; border-radius: 8px; }
#serveBtn { width: 100%; min-height: 50px; }
.inventory { margin-top: 20px; border-top: 1px solid #e4ddd0; padding-top: 12px; }
#lowStockAlert { font-size: 12px; color: #a95d32; }
#stockBar { display: flex; flex-wrap: wrap; gap: 7px; }
#stockBar span { border: 1px solid #e1daca; border-radius: 8px; font-size: 12px; padding: 6px 9px; color: #6e705a; }
#stockBar .low { color: #9d5b16; border-color: #e9b75f; background: #fff3d5; }
#stockBar .empty { color: #b34030; border-color: #df9c91; background: #fce5df; }
dialog { width: calc(100% - 32px); max-width: 420px; max-height: 88dvh; overflow-y: auto; padding: 24px; border: 1px solid #e4c7a8; border-radius: 20px; color: #553925; background: #FFFCF7; }
dialog::backdrop { background: #302316a8; }
.summary-grid { display: flex; gap: 16px; margin: 20px 0; }.summary-grid>div { flex: 1; font-size: 13px; color: #8a7664; background: #fff1df; padding: 14px; border-radius: 12px; }.summary-grid strong { display: block; font-size: 28px; color: #a45a24; }
#summaryComplaints { font-size: 14px; border-top: 1px solid #e4ddd0; border-bottom: 1px solid #e4ddd0; }
#summaryComplaints p { margin: 8px 0; }#closeSummaryBtn { width: 100%; margin-top: 16px; }

/* 首页场景外观层：沿用原有订单、制作、库存与结算节点。 */
html, body { background: #ead7bc; color: #503625; }
.page { max-width: 480px; padding: 0 0 env(safe-area-inset-bottom); }
.card { padding: 0; border: 0; border-radius: 0; overflow: hidden; background: #fff8ec; }
.shop-scene { position: relative; width: 100%; min-height: 600px; height: 100svh; max-height: 960px; overflow: hidden; background: #e8d1ad; isolation: isolate; }
.scene-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; z-index: -1; }
.scene-sign { position: absolute; top: max(14px, env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); white-space: nowrap; background: #fff3d8f5; border: 2px solid #b37d4d; border-radius: 14px; box-shadow: 0 3px 0 #80543455; color: #754525; padding: 7px 20px; font-size: 20px; font-weight: 800; letter-spacing: 1px; }
.shop-scene .stats { position: absolute; top: calc(max(14px, env(safe-area-inset-top)) + 64px); left: 12px; right: 12px; margin: 0; padding: 9px 12px; border: 1px solid #dfb77c; border-radius: 16px; background: #fff8e9ef; box-shadow: 0 3px 10px #68432422; text-align: center; gap: 4px; }
.shop-scene .stats > span { color: #886347; }
.shop-scene .stats > span + span { border-left: 1px solid #e7cfb0; }
.shop-scene .stats b { color: #744327; font-size: 22px; }
.stats .mp-icon { color: #d87931; font-size: 15px; vertical-align: middle; }
.scene-controls { position: absolute; bottom: 14px; left: 12px; right: 12px; border: 1px solid #d1ac7a; border-radius: 18px; background: #fff7e8f5; box-shadow: 0 4px 18px #6d452e26; padding: 12px; }
.scene-controls .shopline { margin: 0 0 10px; }
.scene-controls .actions button { min-height: 48px; box-shadow: 0 3px 0 #b7602b; }
.scene-controls .actions .secondary { box-shadow: 0 3px 0 #d0b690; }
.scene-entries { display: flex; gap: 8px; margin-top: 12px; }
.scene-entries a { flex: 1; display: flex; align-items: center; justify-content: center; gap: 5px; min-height: 46px; background: #e5edda; color: #526346; text-decoration: none; border: 1px solid #b4c29c; border-radius: 10px; font-size: 13px; font-weight: 650; }
.scene-entries .mp-icon { font-size: 20px; }
.scene-entries a:hover, .scene-entries a:focus-visible { background: #fbe0bf; outline: 2px solid #ff8a3d; outline-offset: 1px; }
.clerk-hit { position: absolute; top: 36%; left: 36%; width: 28%; height: 24%; padding: 0; background: transparent; border: 0; box-shadow: none; border-radius: 30px; }
.clerk-hit:hover { background: #fff7d51a; }
.clerk-hit span { position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); width: 200px; padding: 10px; border: 1px solid #be9568; border-radius: 16px; color: #714526; background: #fff8e9; box-shadow: 0 3px 10px #69402222; font-size: 13px; }
.clerk-hit.greet span { animation: greeting-in .25s ease-out; }
@keyframes greeting-in { from { opacity: 0; translate: 0 5px; } to { opacity: 1; translate: 0 0; } }
.shop-content { padding: 14px 16px 24px; }
.shop-content > .help:first-child { margin-top: 0; }
.workbench, .inventory, .order { scroll-margin-top: 14px; }
.section-label { color: #754a2c; }
.customer { background: #f5eddb; border-radius: 14px; }
.customer.selected { background: #ffecd2; }
button:not(:disabled):hover { filter: brightness(1.04); }
button:not(:disabled):active { filter: brightness(.96); }
@media (prefers-reduced-motion: reduce) { .clerk-hit.greet span { animation: none; } }
