/* 顧客前台樣式（照原型）。手機全螢幕；桌機置中顯示成手機寬度 */
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: #E7E5E4; }
body { font-family: 'Noto Sans TC', system-ui, -apple-system, 'PingFang TC', 'Microsoft JhengHei', sans-serif; color: #1C1917; -webkit-text-size-adjust: 100%; }
button, input, select, textarea { font-family: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
button:disabled { cursor: default; }
a { color: #C2410C; }
img { display: block; }
:focus-visible { outline: 3px solid #2563EB; outline-offset: 2px; }

.phone { position: relative; max-width: 480px; height: 100%; height: 100dvh; margin: 0 auto; background: #FFFFFF; display: flex; flex-direction: column; overflow: hidden; }
@media (min-width: 520px) { .phone { box-shadow: 0 0 0 1px #D6D3D1; } }
.screen { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.scroll { flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; display: flex; flex-direction: column; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ell { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hdr { flex: none; display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid #E7E5E4; background: #FFFFFF; }
.hdr-t { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.hdr-t .t1 { font-size: 18px; font-weight: 700; }
.hdr-t .t2 { font-size: 12px; color: #57534E; }
.ib { flex: none; width: 44px; height: 44px; border: none; background: transparent; color: #1C1917; display: flex; align-items: center; justify-content: center; padding: 0; }
.plain { min-height: 44px; display: flex; align-items: center; gap: 6px; padding: 0; border: none; background: transparent; color: #1C1917; }
.thumb { flex: none; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-weight: 700; overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.cat { min-height: 76px; border: none; background: transparent; color: #1C1917; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 13px; padding: 0; }
.rank { display: flex; flex-direction: column; gap: 8px; padding: 10px; border: 1px solid #F5F5F4; border-radius: 14px; color: #1C1917; text-align: left; min-width: 0; }
.entry { min-height: 72px; border: none; background: transparent; color: #1C1917; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 13px; }
.card { display: flex; flex-direction: column; padding: 0; border: none; border-radius: 14px; overflow: hidden; background: #FFFFFF; color: #1C1917; text-align: left; width: 100%; }
.row { display: flex; gap: 12px; align-items: center; padding: 12px 0; border: none; border-bottom: 1px solid #F5F5F4; background: #FFFFFF; color: #1C1917; text-align: left; width: 100%; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pill { min-height: 44px; border-radius: 12px; font-size: 15px; }
.empty { padding: 40px 16px; text-align: center; font-size: 14px; color: #57534E; line-height: 1.6; }
.inp { min-height: 46px; padding: 0 14px; border: 1px solid #D6D3D1; border-radius: 12px; font-size: 16px; width: 100%; color: #1C1917; background: #FFFFFF; }
.inp:focus { border-color: #C2410C; outline: none; box-shadow: 0 0 0 3px rgba(194, 65, 12, 0.15); }
.stepper { display: flex; align-items: center; border: 1px solid #D6D3D1; border-radius: 14px; }
.stepper button { width: 44px; height: 44px; border: none; background: transparent; color: #1C1917; display: flex; align-items: center; justify-content: center; }
.foot { flex: none; padding: 10px 16px 20px; border-top: 1px solid #E7E5E4; display: flex; flex-direction: column; gap: 8px; background: #FFFFFF; }
.err { font-size: 13px; font-weight: 700; color: #B91C1C; text-align: center; }
.btn-main { width: 100%; min-height: 54px; border: none; border-radius: 16px; background: #C2410C; color: #FFFFFF; font-size: 17px; font-weight: 700; }
.btn-main:disabled { opacity: 0.6; }
.btn-dark, .btn-outline { min-height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 700; text-decoration: none; }
.btn-dark { background: #1C1917; color: #FFFFFF; }
.btn-outline { border: 1.5px solid #1C1917; color: #1C1917; background: #FFFFFF; }
.btn-line { min-height: 44px; padding: 0 20px; border: 1px solid #1C1917; border-radius: 22px; background: #FFFFFF; color: #1C1917; font-size: 15px; }
.sec { background: #FFFFFF; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.sec-t { font-size: 13px; font-weight: 700; color: #57534E; }

.toast { position: fixed; left: 50%; bottom: 96px; transform: translate(-50%, 20px); max-width: 86vw; padding: 10px 16px; border-radius: 12px; background: #1C1917; color: #FFFFFF; font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 50; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.error { background: #B91C1C; }
@media (prefers-reduced-motion: reduce) { .toast { transition: none; } }
