/* WL07 購物網站。GoziShop 品牌色：果紅 #D73F3A、梗綠 #3F8F5B、深色 #1D1F23（brand/README.md）。
   商家店面用 --accent（商家選的主題色，伺服器以帶 nonce 的 <style> 設定）。沒有行內 style、沒有外部字型。 */
:root {
  --red: #D73F3A; --red-dark: #B8322E; --green: #3F8F5B; --ink: #1D1F23; --ink-2: #3A3D44;
  --bg: #F7F5F1; --surface: #FFFFFF; --line: #E7E2DA; --line-2: #F0ECE6; --muted: #6B6F76;
  --accent: #D73F3A; --accent-soft: #FBEDEC;
  --warn: #A86A12; --warn-soft: #FAF1E2; --ok: #2F7D4D; --ok-soft: #E8F3EC; --danger: #B8322E; --danger-soft: #FBEDEC;
  --radius: 16px; --radius-sm: 10px; --shadow: 0 1px 2px rgba(29,31,35,.04), 0 8px 24px rgba(29,31,35,.06);
  --font: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, -apple-system, "Segoe UI", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.65 var(--font); color: var(--ink); background: var(--bg); }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.3; margin: 0 0 .5em; letter-spacing: .01em; }
p { margin: 0 0 .8em; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { width: min(1180px, 100%); margin: 0 auto; padding: 0 20px; }
.narrow { width: min(760px, 100%); }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.mono { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; letter-spacing: .02em; }
.eyebrow { font-size: .78rem; font-weight: 700; letter-spacing: .14em; color: var(--accent); margin: 0 0 .4em; text-transform: uppercase; }
.link { color: var(--accent); text-decoration: none; font-weight: 600; background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
.link:hover { text-decoration: underline; }

/* ── 按鈕 ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4em; min-height: 42px; padding: .5em 1.1em; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: 600 .95rem/1.2 var(--font); text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, transform .05s; white-space: nowrap; }
.btn:hover { border-color: #CFC8BE; background: #FCFBF9; }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--red); border-color: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); border-color: var(--red-dark); }
.btn-dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; border-color: #000; }
.btn-accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-accent:hover { filter: brightness(.92); background: var(--accent); }
.btn-light { background: rgba(255,255,255,.95); border-color: transparent; color: var(--ink); }
.btn-danger { color: var(--danger); border-color: #EBC9C7; }
.btn-ghost { border-color: transparent; background: transparent; }
.btn-ghost:empty { display: none; }
.btn-sm { min-height: 34px; padding: .3em .8em; font-size: .85rem; }
.btn-lg { min-height: 50px; padding: .7em 1.5em; font-size: 1.02rem; }
.btn-xl { min-height: 60px; padding: .8em 2.2em; font-size: 1.15rem; }
.btn-block { width: 100%; }
.actions { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }

/* ── 平台頁首／頁尾 ── */
.site-header { background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.site-header-inner { display: flex; align-items: center; gap: 14px; min-height: 68px; }
.site-home .brand-logo { height: 40px; width: auto; }
.site-product { font-weight: 700; color: var(--ink-2); padding-left: 14px; border-left: 1px solid var(--line); }
.site-nav { margin-left: auto; display: flex; gap: 6px; }
.site-nav a { text-decoration: none; font-weight: 600; font-size: .92rem; padding: .45em .8em; border-radius: 999px; color: var(--ink-2); }
.site-nav a:hover { background: var(--line-2); }
.site-footer { border-top: 1px solid var(--line); background: var(--surface); padding: 36px 0; margin-top: 64px; color: var(--muted); font-size: .9rem; }
.footer-logo { height: 32px; width: auto; margin-bottom: 10px; }
.site-footer a { color: var(--ink-2); }

/* ── 銷售頁 ── */
.hero { padding: 64px 0 56px; background: radial-gradient(1100px 420px at 85% -10%, #FBE3E1 0, transparent 60%), radial-gradient(800px 380px at -10% 110%, #E3F1E8 0, transparent 60%); }
.hero-inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(1.9rem, 3.6vw, 3rem); font-weight: 800; letter-spacing: .01em; }
.hero .hl { color: var(--red); }
.hero .lead { font-size: 1.12rem; color: var(--ink-2); max-width: 34em; }
.hero .actions { margin: 26px 0 14px; }
.hero-note { color: var(--muted); font-size: .9rem; }
.hero-note a { color: var(--ink-2); }
.hero-mock { position: relative; padding: 0 40px 40px 0; }
.mock-browser { background: var(--surface); border-radius: 18px; box-shadow: 0 30px 60px rgba(29,31,35,.14), 0 2px 6px rgba(29,31,35,.06); overflow: hidden; border: 1px solid var(--line); }
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #F3F0EB; font-size: .72rem; color: var(--muted); }
.mock-bar i { width: 9px; height: 9px; border-radius: 50%; background: #D9D3CA; }
.mock-bar span { margin-left: 8px; background: #fff; border-radius: 999px; padding: 2px 10px; }
.mock-store { padding: 16px; }
.mock-head { display: flex; align-items: center; gap: 8px; font-size: .9rem; }
.mock-logo { width: 28px; height: 28px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; font-size: .8rem; font-weight: 700; }
.mock-cart { margin-left: auto; font-size: .8rem; background: var(--line-2); border-radius: 999px; padding: 2px 10px; }
.mock-banner { margin: 12px 0; border-radius: 12px; background: linear-gradient(120deg, #2F7D4D, #3F8F5B); color: #fff; padding: 14px 16px; display: flex; flex-direction: column; }
.mock-banner b { font-size: 1.05rem; }
.mock-banner span { font-size: .78rem; opacity: .9; }
.mock-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mock-tile { font-size: .72rem; display: flex; flex-direction: column; gap: 2px; }
.mock-tile span { color: var(--red); font-weight: 700; }
.mock-img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 10px; margin-bottom: 4px; background: #F1EDE6; }
.mock-phone { position: absolute; right: 0; bottom: 0; width: 170px; border-radius: 26px; background: var(--ink); padding: 10px; box-shadow: 0 24px 48px rgba(29,31,35,.25); }
.mock-phone-screen { background: #fff; border-radius: 18px; padding: 16px 12px; display: flex; flex-direction: column; gap: 4px; font-size: .74rem; }
.mock-phone-screen b { font-size: .85rem; }
.mock-amount { font-size: 1rem; font-weight: 800; color: var(--ink); }
.mock-status { color: var(--green); font-weight: 700; }
.features { padding: 64px 0 24px; }
.features h2, .plans h2, .faq h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.feature-grid { margin-top: 28px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.feature-icon { font-size: 1.6rem; display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--line-2); margin-bottom: 12px; }
.feature h3 { font-size: 1.12rem; }
.feature p { color: var(--muted); margin: 0; font-size: .95rem; }
.plans { padding: 64px 0 24px; }
.period-toggle { display: flex; justify-content: center; gap: 4px; margin: 22px auto 26px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 4px; width: max-content; }
.period-toggle button { border: 0; background: transparent; font: 600 .95rem/1.2 var(--font); padding: .6em 1.3em; border-radius: 999px; cursor: pointer; color: var(--ink-2); display: flex; flex-direction: column; align-items: center; }
.period-toggle button small { font-size: .7rem; font-weight: 600; color: var(--green); }
.period-toggle button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.period-toggle button[aria-pressed="true"] small { color: #9FD7B1; }
.plan-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 400px)); justify-content: center; gap: 22px; }
.plan-card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 30px 28px; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.plan-card.is-featured { border: 2px solid var(--red); }
.plan-ribbon { position: absolute; top: -13px; left: 28px; background: var(--red); color: #fff; font-size: .78rem; font-weight: 700; padding: 3px 12px; border-radius: 999px; }
.plan-card h3 { font-size: 1.4rem; margin: 0; }
.plan-tagline { color: var(--muted); }
.plan-price { margin: 8px 0 0; display: flex; align-items: baseline; gap: 4px; }
.plan-price small { font-weight: 700; color: var(--ink-2); }
.plan-price strong { font-size: 2.8rem; font-weight: 800; line-height: 1; }
.plan-price span { color: var(--muted); }
.plan-sub { color: var(--green); font-weight: 600; font-size: .9rem; min-height: 1.5em; }
.checks { list-style: none; padding: 0; margin: 16px 0 24px; display: grid; gap: 10px; flex: 1; }
.checks li { padding-left: 28px; position: relative; color: var(--ink-2); }
.checks li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); font-size: .75rem; font-weight: 800; display: grid; place-items: center; margin-top: 3px; }
.redeem { margin: 36px auto 0; max-width: 820px; background: var(--surface); border: 1px dashed #D3CBC0; border-radius: var(--radius); padding: 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: center; }
.redeem h3 { font-size: 1.15rem; margin: 0 0 .3em; }
.redeem p { color: var(--muted); font-size: .92rem; margin: 0; }
.redeem-form { display: flex; gap: 8px; }
.redeem-form input { flex: 1; }
.redeem .form-message { grid-column: 1 / -1; }
.already { margin-top: 22px; color: var(--muted); }
.already a { color: var(--ink-2); font-weight: 600; }
.faq { padding: 64px 0 0; }
.faq-list { margin-top: 24px; display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 0 20px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--red); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq-answer { color: var(--ink-2); padding-bottom: 14px; }

/* ── 開始頁 ── */
.start { padding: 48px 0; }
.start-card { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 40px 32px; text-align: center; box-shadow: var(--shadow); }
.start-card h1 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.start-card .lead { color: var(--ink-2); }
.start-go { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 22px; }
.paid-banner { background: var(--ok-soft); color: var(--ok); font-weight: 700; border-radius: 999px; padding: .5em 1.2em; margin: 0; }
.start-orders { margin-top: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; }
.start-orders h2 { font-size: 1.05rem; }
.start-orders ul { list-style: none; margin: 0; padding: 0; }
.start-orders li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding: 10px 0; border-top: 1px solid var(--line-2); }
.start-orders li small { display: block; color: var(--muted); font-size: .78rem; }
.start-orders li a { flex-basis: 100%; color: var(--red); font-weight: 600; }

/* ── 表單 ── */
input, select, textarea { font: inherit; color: inherit; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field > span, .field-label { font-weight: 600; font-size: .9rem; color: var(--ink-2); }
.field small, .logo-field small { color: var(--muted); font-size: .8rem; }
.field input, .field select, .field textarea, .inline-form input, .redeem-form input, .list-toolbar input, .list-toolbar select, .opt-row input, .cat-list input, .fee input, .last5 input {
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .62em .8em; background: #fff; min-height: 44px; width: 100%; transition: border-color .15s, box-shadow .15s; }
.field textarea { resize: vertical; min-height: 88px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
input[readonly] { background: var(--line-2); color: var(--muted); }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0 14px; }
.group { border: 1px solid var(--line-2); border-radius: 12px; padding: 14px 16px 4px; margin: 0 0 16px; }
.group legend { font-weight: 700; padding: 0 6px; font-size: .95rem; }
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 600; margin-bottom: 12px; }
.switch input { appearance: none; width: 42px; height: 24px; border-radius: 999px; background: #D6D0C7; position: relative; cursor: pointer; transition: background .15s; flex: none; margin: 0; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: transform .15s; }
.switch input:checked { background: var(--green); }
.switch input:checked::after { transform: translateX(18px); }
.switch input:disabled { opacity: .5; cursor: not-allowed; }
.form-message { padding: .6em .9em; border-radius: var(--radius-sm); background: var(--ok-soft); color: var(--ok); font-weight: 600; font-size: .92rem; margin: 10px 0; }
.form-message.is-error { background: var(--danger-soft); color: var(--danger); }
.form-message a { color: inherit; }
.inline-form { display: flex; gap: 8px; flex-wrap: wrap; }
.inline-form input { flex: 1; min-width: 180px; }
.theme-picker { border: 0; padding: 0; margin: 0 0 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.theme-picker legend { font-weight: 600; font-size: .9rem; color: var(--ink-2); margin-bottom: 6px; padding: 0; }
.swatch input { position: absolute; opacity: 0; }
.swatch span { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 999px; padding: .4em .9em .4em .45em; cursor: pointer; font-weight: 600; font-size: .9rem; background: #fff; }
.swatch i { width: 22px; height: 22px; border-radius: 50%; display: block; }
.swatch input:checked + span { border-color: var(--ink); box-shadow: 0 0 0 2px var(--ink) inset; }
.swatch input:focus-visible + span { box-shadow: 0 0 0 3px var(--accent-soft); }
.swatch-red i { background: #D73F3A; } .swatch-green i { background: #3F8F5B; } .swatch-ocean i { background: #2E6A9E; }
.swatch-amber i { background: #A86A12; } .swatch-plum i { background: #7B4B94; } .swatch-ink i { background: #1D1F23; }
.logo-field { margin-bottom: 16px; display: flex; flex-direction: column; gap: 6px; }
.logo-row { display: flex; align-items: center; gap: 12px; }
.logo-preview { width: 64px; height: 64px; border-radius: 16px; background: var(--line-2); overflow: hidden; display: grid; place-items: center; font-size: 1.5rem; font-weight: 800; color: var(--muted); border: 1px solid var(--line); }
.logo-preview img { width: 100%; height: 100%; object-fit: cover; }

/* ── 後台 ── */
.is-admin { background: #F4F2EE; }
.admin { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; background: linear-gradient(90deg, var(--surface) 239px, var(--line) 239px, var(--line) 240px, transparent 240px); }
.admin-side { background: var(--surface); border-right: 1px solid var(--line); padding: 22px 16px; display: flex; flex-direction: column; gap: 6px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.admin-brand .brand-logo { height: 38px; width: auto; margin: 0 6px 14px; }
.admin-store { padding: 10px 10px 14px; border-bottom: 1px solid var(--line-2); margin-bottom: 8px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.plan-chip { font-size: .72rem; font-weight: 700; border-radius: 999px; padding: 2px 9px; background: var(--line-2); color: var(--ink-2); }
.plan-chip.plan-sync { background: #FBE3E1; color: var(--red-dark); }
.admin-nav { display: flex; flex-direction: column; gap: 2px; }
.admin-nav a { display: flex; align-items: center; justify-content: space-between; padding: .6em .8em; border-radius: 10px; text-decoration: none; font-weight: 600; color: var(--ink-2); }
.admin-nav a:hover { background: var(--line-2); }
.admin-nav a[aria-current="page"] { background: var(--ink); color: #fff; }
.admin-view-store { margin-top: 14px; padding: .6em .8em; border-radius: 10px; background: #FBE3E1; color: var(--red-dark); font-weight: 700; text-decoration: none; text-align: center; }
.admin-side-link { margin-top: auto; padding: .6em .8em; color: var(--muted); font-size: .88rem; }
.badge { background: var(--red); color: #fff; border-radius: 999px; font-size: .72rem; font-weight: 800; min-width: 20px; height: 20px; padding: 0 6px; display: inline-grid; place-items: center; }
.admin-main { min-width: 0; }
.admin-top { display: flex; align-items: center; gap: 12px; padding: 18px 28px; background: rgba(244,242,238,.9); backdrop-filter: blur(6px); position: sticky; top: 0; z-index: 10; }
.admin-top h1 { font-size: 1.35rem; margin: 0; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-top-brand { display: none; }
.admin-top-brand .brand-mark { width: 34px; height: 34px; }
.admin-content { padding: 4px 28px 120px; max-width: 1180px; }
.admin > .admin-main > .notice { margin: 0 28px 18px; }
.bell { position: relative; }
.bell summary { list-style: none; cursor: pointer; width: 42px; height: 42px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line); display: grid; place-items: center; position: relative; font-size: 1.05rem; }
.bell summary::-webkit-details-marker { display: none; }
.bell summary .badge { position: absolute; top: -6px; right: -6px; }
.bell-panel { position: absolute; right: 0; top: 50px; width: 320px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 40px rgba(29,31,35,.14); padding: 14px; z-index: 30; }
.bell-title { font-weight: 700; margin-bottom: 8px; }
.bell-panel ul { list-style: none; margin: 0 0 8px; padding: 0; max-height: 320px; overflow-y: auto; }
.bell-panel li a { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; padding: 8px; border-radius: 8px; text-decoration: none; font-size: .9rem; }
.bell-panel li a:hover { background: var(--line-2); }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; margin-bottom: 18px; }
.panel h2 { font-size: 1.1rem; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; }
.panel-head h2 { margin: 0; }
.muted-panel { background: #FAF9F7; }
.onboarding { max-width: 760px; }
.onboarding h2 { font-size: 1.5rem; }
.form-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; text-decoration: none; display: flex; flex-direction: column; }
.stat span { color: var(--muted); font-size: .88rem; font-weight: 600; }
.stat strong { font-size: 1.9rem; font-weight: 800; }
.ok { color: var(--ok); font-weight: 700; }
.ok a { color: inherit; }
.qr-row { display: flex; flex-wrap: wrap; align-items: center; gap: .4em .8em; margin: .4em 0 0; }
.qr-row small { flex: 1 1 12em; }
.open-box { background: var(--warn-soft); border-radius: 12px; padding: 16px 18px; }
.warn-list { margin: 0 0 12px; padding-left: 1.2em; color: var(--warn); font-weight: 600; font-size: .92rem; }
.meter-head { display: flex; justify-content: space-between; font-weight: 600; margin-bottom: 6px; }
.meter progress { width: 100%; height: 10px; appearance: none; border: 0; border-radius: 999px; overflow: hidden; background: var(--line-2); }
.meter progress::-webkit-progress-bar { background: var(--line-2); border-radius: 999px; }
.meter progress::-webkit-progress-value { background: var(--green); border-radius: 999px; }
.meter progress::-moz-progress-bar { background: var(--green); border-radius: 999px; }
.meter small { display: block; margin-top: 6px; color: var(--muted); }
.meter small a { color: var(--red); font-weight: 600; }
.mini-list { list-style: none; margin: 0; padding: 0; }
.mini-list a { display: grid; grid-template-columns: 90px 1fr auto auto; gap: 12px; padding: 10px 6px; border-top: 1px solid var(--line-2); text-decoration: none; align-items: center; }
.mini-list time { color: var(--muted); font-size: .85rem; }
.quick-links { display: flex; flex-wrap: wrap; gap: 10px; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.tabs a { text-decoration: none; padding: .45em .9em; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-weight: 600; font-size: .9rem; display: inline-flex; gap: 6px; align-items: center; }
.tabs a small { color: var(--muted); font-weight: 700; }
.tabs a[aria-current="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.tabs a[aria-current="true"] small { color: #C9CCD1; }
.plist { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.prow { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto auto; gap: 14px; align-items: center; padding: 12px 16px; border-top: 1px solid var(--line-2); }
.prow:first-child { border-top: 0; }
.prow-img { width: 64px; height: 64px; border-radius: 12px; overflow: hidden; background: var(--line-2); display: grid; place-items: center; }
.prow-img img { width: 100%; height: 100%; object-fit: cover; }
.prow-img, .prow-img .ph { text-decoration: none; }
.prow-img .ph { font-size: 1.4rem; }
.prow-main a { text-decoration: none; }
.prow-main small { display: block; color: var(--muted); font-size: .84rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prow-actions { display: flex; gap: 6px; }
.status { display: inline-flex; align-items: center; font-size: .78rem; font-weight: 700; border-radius: 999px; padding: .2em .75em; white-space: nowrap; background: var(--line-2); color: var(--ink-2); }
.status-published, .status-paid { background: var(--ok-soft); color: var(--ok); }
.status-draft { background: #EEF0F3; color: #555B66; }
.status-hidden, .status-cancelled { background: #F1EFEC; color: #8A8580; }
.status-pending_payment { background: var(--warn-soft); color: var(--warn); }
.status-shipped { background: #EAF1F8; color: #2E6A9E; }
.status-completed { background: var(--ink); color: #fff; }
.thumbs { list-style: none; margin: 0 0 12px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.thumb { position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 1; background: var(--line-2); border: 1px solid var(--line); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb:first-child::before { content: "主圖"; position: absolute; top: 6px; left: 6px; background: var(--ink); color: #fff; font-size: .7rem; font-weight: 700; padding: 1px 7px; border-radius: 999px; z-index: 1; }
.thumb.is-pending { opacity: .55; }
.thumb-actions { position: absolute; inset: auto 0 0 0; display: flex; justify-content: space-between; padding: 4px; background: linear-gradient(transparent, rgba(0,0,0,.5)); }
.thumb-actions button { border: 0; background: rgba(255,255,255,.92); border-radius: 8px; width: 28px; height: 26px; cursor: pointer; font-weight: 700; }
.upload-row { display: flex; gap: 8px; flex-wrap: wrap; }
.camera-only { display: none; }
.opt-head, .opt-row { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, .8fr) 40px; gap: 8px; align-items: center; }
.opt-head { font-size: .8rem; color: var(--muted); font-weight: 600; margin-bottom: 4px; }
.opt-list { list-style: none; padding: 0; margin: 0 0 10px; display: grid; gap: 8px; }
.sticky-actions { position: sticky; bottom: 0; z-index: 5; display: flex; flex-wrap: wrap; gap: 10px; background: rgba(255,255,255,.96); backdrop-filter: blur(6px); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; box-shadow: 0 -6px 24px rgba(29,31,35,.06); margin-top: 6px; }
.cat-list { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 8px; }
.cat-list li { display: flex; gap: 6px; align-items: center; }
.cat-list li input { flex: 1; }
.table-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow-x: auto; }
table.orders { width: 100%; border-collapse: collapse; font-size: .92rem; }
.orders th { text-align: left; font-size: .8rem; color: var(--muted); font-weight: 700; padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.orders td { padding: 12px 14px; border-top: 1px solid var(--line-2); vertical-align: top; }
.orders td small { display: block; color: var(--muted); font-size: .8rem; }
.orders td a { text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.orders tr.is-new td { background: #FFF9F2; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); display: inline-block; }
.order-lines { list-style: none; margin: 10px 0; padding: 0; }
.order-lines li { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line-2); align-items: baseline; }
.order-lines li small { display: block; color: var(--muted); font-size: .82rem; }
.totals { margin: 0; display: grid; gap: 4px; }
.totals div { display: flex; justify-content: space-between; color: var(--ink-2); }
.totals dt, .totals dd { margin: 0; }
.totals .total { font-size: 1.15rem; font-weight: 800; color: var(--ink); border-top: 1px solid var(--line); padding-top: 8px; margin-top: 4px; }
.kv { margin: 0; display: grid; gap: 8px; }
.kv div { display: grid; grid-template-columns: 90px 1fr; gap: 10px; }
.kv dt { color: var(--muted); font-size: .9rem; }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 14px; border-left: 2px solid var(--line); display: grid; gap: 10px; font-size: .9rem; }
.timeline li { position: relative; display: flex; flex-direction: column; }
.timeline li::before { content: ""; position: absolute; left: -20px; top: 7px; width: 10px; height: 10px; border-radius: 50%; background: var(--green); }
.timeline time { color: var(--muted); font-size: .8rem; }
.ship-list { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 4px; }
.ship-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line-2); }
.ship-row .switch { margin: 0; }
.fee { display: flex; align-items: center; gap: 8px; font-size: .9rem; color: var(--muted); }
.fee input { width: 110px; text-align: right; }
.preview-table { width: 100%; border-collapse: collapse; font-size: .88rem; margin: 12px 0; }
.preview-table th, .preview-table td { text-align: left; padding: 6px 8px; border-top: 1px solid var(--line-2); }
.preview-table td.err { color: var(--danger); font-weight: 600; }
.notice { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; margin-bottom: 18px; }
.notice h2 { font-size: 1.1rem; margin-bottom: .2em; }
.notice p { margin: 0 0 .3em; color: var(--ink-2); }
.notice-warn { background: var(--warn-soft); border-color: #EBD7B5; }
.notice-danger { background: var(--danger-soft); border-color: #EBC9C7; }
.empty { text-align: center; background: var(--surface); border: 1px dashed #D3CBC0; border-radius: var(--radius); padding: 40px 20px; }
.empty h2 { font-size: 1.15rem; }
.empty p { color: var(--muted); }
.pager { display: flex; justify-content: center; align-items: center; gap: 16px; margin: 24px 0; }
.pager a { font-weight: 600; color: var(--accent); text-decoration: none; }
.mobile-gate { padding: 12px 20px 0; }
.mobile-gate-card { background: var(--surface); border: 2px solid var(--red); border-radius: 18px; padding: 24px 20px; text-align: center; }
.mobile-gate-card h2 { font-size: 1.25rem; }
.mobile-gate-card p { color: var(--ink-2); }
.mobile-gate-card .actions { justify-content: center; margin: 14px 0 10px; }
.is-gated .admin-content[data-gated="1"] { display: none; }

/* ── 商家店面 ── */
.is-store { background: #FBFAF8; }
.demo-ribbon { background: var(--ink); color: #fff; text-align: center; font-size: .86rem; padding: 8px 16px; }
.demo-ribbon a { color: #FFD9D6; font-weight: 700; margin-left: 6px; }
.store-header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.store-header-inner { display: flex; align-items: center; gap: 18px; min-height: 72px; }
.store-id { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
.store-id strong { display: block; font-size: 1.12rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.store-id small { display: block; color: var(--muted); font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.store-logo { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; flex: none; }
.store-logo-text { background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 1.15rem; }
.store-search { flex: 1; max-width: 420px; margin-left: auto; display: flex; background: var(--line-2); border-radius: 999px; padding: 3px; border: 1px solid transparent; }
.store-search:focus-within { border-color: var(--accent); background: #fff; }
.store-search input { flex: 1; border: 0; background: transparent; padding: .5em 1em; min-width: 0; }
.store-search input:focus { box-shadow: none; }
.store-search button { border: 0; background: var(--accent); color: #fff; border-radius: 999px; width: 38px; font-size: 1.1rem; cursor: pointer; }
.store-cart { position: relative; display: inline-flex; align-items: center; gap: 6px; text-decoration: none; font-weight: 700; padding: .5em .9em; border-radius: 999px; border: 1px solid var(--line); }
.store-cart:hover { border-color: var(--accent); }
.cart-count { background: var(--accent); color: #fff; border-radius: 999px; min-width: 22px; height: 22px; padding: 0 6px; display: inline-grid; place-items: center; font-size: .78rem; }
.store-main { padding-top: 24px; padding-bottom: 24px; min-height: 60vh; }
.store-main > h1 { margin-top: 4px; font-size: clamp(1.5rem, 3vw, 1.9rem); }
.store-layout { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 32px; align-items: start; }
.cat-nav { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 2px; }
.cat-title { font-size: .78rem; font-weight: 800; letter-spacing: .12em; color: var(--muted); margin: 0 0 8px 10px; }
.cat-nav a { display: flex; justify-content: space-between; padding: .55em .8em; border-radius: 10px; text-decoration: none; font-weight: 600; color: var(--ink-2); }
.cat-nav a small { color: var(--muted); font-weight: 600; }
.cat-nav a:hover { background: var(--line-2); }
.cat-nav a[aria-current="true"] { background: var(--accent-soft); color: var(--accent); }
.announce { background: linear-gradient(120deg, var(--accent), color-mix(in srgb, var(--accent) 70%, #000)); color: #fff; border-radius: 22px; padding: 32px 34px; display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 30px; flex-wrap: wrap; }
.announce .eyebrow { color: rgba(255,255,255,.8); }
.announce h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 800; margin-bottom: .25em; }
.announce p { margin: 0; opacity: .92; max-width: 36em; }
.shelf { margin-bottom: 38px; }
.shelf-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 14px; }
.shelf-head h2 { font-size: 1.45rem; margin: 0; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 18px; }
.product-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
.product-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.product-media { position: relative; display: block; aspect-ratio: 1; background: var(--accent-soft); overflow: hidden; }
.product-media img { width: 100%; height: 100%; object-fit: cover; }
.product-card.is-large .product-media { aspect-ratio: 4 / 3; }
.product-card.is-soldout .product-media img, .product-card.is-soldout .ph { opacity: .55; }
.ph { width: 100%; height: 100%; display: grid; place-items: center; font-size: 2.6rem; font-weight: 800; color: var(--accent); background: radial-gradient(circle at 30% 25%, #fff 0, var(--accent-soft) 70%); }
.ph-lg { font-size: 5rem; aspect-ratio: 1; border-radius: var(--radius); }
.tag { position: absolute; top: 10px; left: 10px; font-size: .74rem; font-weight: 700; padding: 2px 10px; border-radius: 999px; }
.tag-muted { background: rgba(29,31,35,.78); color: #fff; }
.tag-warn { background: var(--warn-soft); color: var(--warn); }
.product-body { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.product-cat { color: var(--muted); font-size: .78rem; margin: 0 0 2px; }
.product-body h3 { font-size: 1.02rem; margin: 0 0 4px; }
.product-body h3 a { text-decoration: none; }
.product-short { color: var(--muted); font-size: .86rem; margin: 0 0 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.price { font-weight: 800; font-size: 1.08rem; color: var(--ink); }
.price-was { color: var(--muted); font-size: .85rem; margin-left: 6px; }
.quick { border: 1px solid var(--accent); color: var(--accent); background: #fff; border-radius: 999px; font: 700 .82rem/1 var(--font); padding: .5em .8em; cursor: pointer; text-decoration: none; white-space: nowrap; }
.quick:hover, .quick.is-added { background: var(--accent); color: #fff; }
.list-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.list-head h1 { font-size: 1.6rem; margin: 0; }
.list-toolbar { display: flex; gap: 8px; margin: 12px 0 18px; flex-wrap: wrap; }
.list-toolbar input { flex: 1; min-width: 160px; }
.list-toolbar select { width: auto; }
.crumbs { display: flex; gap: 8px; color: var(--muted); font-size: .86rem; margin-bottom: 16px; flex-wrap: wrap; }
.crumbs a { text-decoration: none; }
.pdp { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.gallery-main { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); background: var(--accent-soft); }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.gallery-thumbs button { width: 72px; height: 72px; border-radius: 12px; overflow: hidden; border: 2px solid transparent; padding: 0; cursor: pointer; background: var(--line-2); }
.gallery-thumbs button[aria-current="true"] { border-color: var(--accent); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pdp-info h1 { font-size: clamp(1.5rem, 3vw, 2rem); }
.pdp-price { font-size: 1.7rem; font-weight: 800; color: var(--accent); margin-bottom: .4em; }
.pdp-short { color: var(--ink-2); }
.buy { border-top: 1px solid var(--line); padding-top: 18px; margin-top: 10px; }
.options { border: 0; padding: 0; margin: 0 0 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.options legend { font-weight: 700; margin-bottom: 8px; padding: 0; }
.chip input { position: absolute; opacity: 0; }
.chip span { display: inline-flex; flex-direction: column; align-items: center; border: 1px solid var(--line); border-radius: 12px; padding: .5em 1em; cursor: pointer; font-weight: 600; background: #fff; min-width: 72px; }
.chip span small { color: var(--muted); font-weight: 600; font-size: .75rem; }
.chip input:checked + span { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; color: var(--accent); }
.chip input:focus-visible + span { box-shadow: 0 0 0 3px var(--accent-soft); }
.chip.is-disabled span { opacity: .45; cursor: not-allowed; text-decoration: line-through; }
.qty-row { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; font-weight: 700; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: #fff; }
.stepper button { border: 0; background: transparent; width: 40px; height: 40px; font-size: 1.15rem; cursor: pointer; }
.stepper input { width: 52px; border: 0; text-align: center; font-weight: 700; min-height: 40px; appearance: textfield; -moz-appearance: textfield; }
.stepper input::-webkit-inner-spin-button { appearance: none; }
.stock { font-size: .9rem; color: var(--muted); margin-bottom: 12px; }
.stock.is-low { color: var(--warn); font-weight: 700; }
.stock.is-out { color: var(--danger); font-weight: 700; }
.pdp-points { list-style: none; padding: 16px 0 0; margin: 18px 0 0; border-top: 1px solid var(--line); display: grid; gap: 6px; color: var(--ink-2); font-size: .92rem; }
.pdp-points li::before { content: "•"; color: var(--accent); margin-right: 8px; }
.pdp-desc { margin-top: 44px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 30px; max-width: 860px; }
.pdp-desc h2 { font-size: 1.25rem; }
.pdp-desc p { color: var(--ink-2); line-height: 1.85; }
.narrow-cart { max-width: 880px; }
.cart-lines { list-style: none; margin: 0 0 18px; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.cart-line { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto auto; gap: 14px; align-items: center; padding: 14px 16px; border-top: 1px solid var(--line-2); }
.cart-line:first-child { border-top: 0; }
.cart-thumb { width: 76px; height: 76px; border-radius: 12px; overflow: hidden; background: var(--accent-soft); display: grid; place-items: center; font-weight: 800; color: var(--accent); font-size: 1.4rem; }
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-line small { display: block; color: var(--muted); font-size: .84rem; }
.cart-line .problem { color: var(--danger); font-weight: 700; }
.cart-line .remove { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: .85rem; text-decoration: underline; padding: 0; }
.cart-summary { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.free-hint { background: var(--accent-soft); color: var(--accent); border-radius: 10px; padding: .5em .9em; font-weight: 600; font-size: .9rem; margin: 0 0 12px; }
.checkout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.co-step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px 8px; margin-bottom: 16px; }
.co-step h2 { font-size: 1.08rem; display: flex; align-items: center; gap: 10px; }
.co-step h2 b { width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: #fff; display: inline-grid; place-items: center; font-size: .82rem; }
.choice-list { display: grid; gap: 8px; margin-bottom: 14px; }
.choice { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; cursor: pointer; }
.choice:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; background: var(--accent-soft); }
.choice input { accent-color: var(--accent); width: 18px; height: 18px; margin: 0; }
.choice small { display: block; color: var(--muted); font-size: .82rem; }
.choice em { font-style: normal; font-weight: 700; }
.ship-fields { border-top: 1px dashed var(--line); padding-top: 14px; margin-bottom: 8px; }
.co-summary { position: sticky; top: 96px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.co-summary h2 { font-size: 1.1rem; }
.sum-lines { list-style: none; padding: 0; margin: 0 0 12px; }
.sum-lines li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line-2); font-size: .92rem; }
.sum-lines li small { display: block; color: var(--muted); }
.price-change { background: var(--warn-soft); border: 1px solid #EBD7B5; border-radius: 12px; padding: 14px 16px; margin-bottom: 12px; }
.price-change h3 { font-size: 1rem; color: var(--warn); }
.order-done { text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 36px 24px; margin-bottom: 18px; }
.order-done h1 { font-size: 1.9rem; }
.order-ref { font-size: 1.15rem; }
.order-ref strong { font-size: 1.4rem; color: var(--accent); }
.bank-box { background: var(--surface); border: 2px solid var(--accent); border-radius: var(--radius); padding: 22px 24px; margin-bottom: 18px; }
.bank-box h2 { font-size: 1.15rem; }
.bank-box dl { margin: 0 0 12px; display: grid; gap: 8px; }
.bank-box dl div { display: grid; grid-template-columns: 90px 1fr; gap: 10px; }
.bank-box dt { color: var(--muted); }
.bank-box dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.bank-box dd.strong { font-size: 1.25rem; font-weight: 800; color: var(--accent); }
.last5 { border-top: 1px dashed var(--line); padding-top: 14px; display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.last5 .field { flex: 1; min-width: 220px; margin: 0; }
.last5 .form-message { flex-basis: 100%; }
.order-lines h2 { font-size: 1.1rem; }
section.order-lines { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; margin-bottom: 18px; }
section.order-lines ul { list-style: none; margin: 0 0 12px; padding: 0; }
section.order-lines li { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line-2); }
section.order-lines li small { display: block; color: var(--muted); font-size: .82rem; }
.state-card { text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 56px 24px; margin: 24px 0; }
.state-card h1 { font-size: 1.7rem; }
.state-card p { color: var(--muted); }
.store-footer { border-top: 1px solid var(--line); background: var(--surface); padding: 28px 0; margin-top: 48px; font-size: .9rem; }
.store-footer .wrap { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.store-footer p { margin: 4px 0 0; color: var(--ink-2); }
.powered { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); text-decoration: none; font-size: .82rem; }
.powered-mark { width: 26px; height: 26px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: .7em 1.2em; border-radius: 999px; font-weight: 600; z-index: 50; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.toast a { color: #FFD9D6; margin-left: 8px; }

/* ── 平板 ── */
@media (max-width: 1024px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .form-grid, .checkout { grid-template-columns: 1fr; }
  .co-summary { position: static; order: -1; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
/* ── 手機（後台手機版面、店面單欄） ── */
@media (max-width: 768px) {
  body { font-size: 15px; }
  .wrap { padding: 0 16px; }
  .site-product { display: none; }
  .site-home .brand-logo { height: 32px; }
  .site-nav a { padding: .4em .55em; font-size: .85rem; }
  .hero { padding: 36px 0 32px; }
  .hero-inner { grid-template-columns: 1fr; gap: 28px; }
  .hero-mock { padding: 0 24px 24px 0; }
  .mock-phone { width: 130px; }
  .feature-grid { grid-template-columns: 1fr; }
  .plan-grid { grid-template-columns: 1fr; }
  .redeem { grid-template-columns: 1fr; }
  .redeem-form { flex-direction: column; }
  .admin { grid-template-columns: 1fr; grid-template-rows: auto 1fr; background: none; }
  .admin-side { position: sticky; top: 0; z-index: 15; height: auto; flex-direction: row; align-items: center; overflow-x: auto; padding: 8px 12px; gap: 4px; border-right: 0; border-bottom: 1px solid var(--line); }
  .admin-brand, .admin-store, .admin-side-link { display: none; }
  .admin-nav { flex-direction: row; gap: 4px; }
  .admin-nav a { white-space: nowrap; padding: .45em .75em; font-size: .9rem; gap: 6px; }
  .admin-view-store { margin: 0; white-space: nowrap; padding: .45em .75em; font-size: .85rem; }
  .admin-top { padding: 12px 16px; position: static; }
  .admin-top-brand { display: block; }
  .admin-top h1 { font-size: 1.1rem; }
  .admin-content { padding: 4px 12px 120px; }
  .admin > .admin-main > .notice { margin: 0 12px 14px; }
  .bell-panel { position: fixed; left: 12px; right: 12px; top: 120px; width: auto; }
  .panel { padding: 18px 16px; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .stat strong { font-size: 1.5rem; }
  .prow { grid-template-columns: 56px minmax(0, 1fr) auto; }
  .prow-img { width: 56px; height: 56px; }
  .prow-actions { grid-column: 1 / -1; justify-content: flex-end; }
  .mini-list a { grid-template-columns: 70px 1fr auto; }
  .mini-list time { display: none; }
  .camera-only { display: inline-flex; }
  .opt-head, .opt-row { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, .8fr) 36px; gap: 6px; }
  .table-wrap { background: transparent; border: 0; }
  table.orders, .orders tbody, .orders tr, .orders td { display: block; width: 100%; }
  .orders thead { display: none; }
  .orders tr { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 10px; padding: 8px 4px; display: grid; grid-template-columns: 1fr auto; }
  .orders td { border: 0; padding: 4px 12px; }
  .orders td:nth-child(6) { grid-column: 2; grid-row: 1; text-align: right; }
  .orders tr.is-new td { background: transparent; }
  .orders tr.is-new { border-color: #F1C3BF; background: #FFF9F2; }
  .store-main { padding-top: 18px; }
  .store-header-inner { flex-wrap: wrap; gap: 10px; padding: 10px 16px; min-height: 0; }
  .store-search { order: 3; flex-basis: 100%; max-width: none; }
  .store-cart { margin-left: auto; }
  .store-cart-label { display: none; }
  .store-layout { grid-template-columns: 1fr; gap: 16px; }
  .cat-nav { position: static; flex-direction: row; overflow-x: auto; gap: 6px; padding-bottom: 4px; scrollbar-width: none; }
  .cat-title { display: none; }
  .cat-nav a { white-space: nowrap; border: 1px solid var(--line); border-radius: 999px; background: #fff; gap: 6px; padding: .4em .9em; }
  .announce { padding: 22px; border-radius: 18px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .product-body { padding: 10px 12px 12px; }
  .product-short { display: none; }
  .product-foot { flex-direction: column; align-items: stretch; gap: 8px; }
  .quick { text-align: center; }
  .pdp { grid-template-columns: 1fr; gap: 20px; }
  .pdp-desc { padding: 20px; }
  .cart-line { grid-template-columns: 64px minmax(0, 1fr) auto; }
  .cart-thumb { width: 64px; height: 64px; }
  .cart-line .line-total { grid-column: 2 / -1; text-align: right; }
  .bank-box dl div, .kv div { grid-template-columns: 80px 1fr; }
}
/* 「仍要使用電腦版網頁」：用桌面版面（mobile.js 會把 viewport 改成 1200 寬） */
.force-desktop .admin { grid-template-columns: 240px 1fr; }
@media print { .admin-side, .admin-top, .sticky-actions, .store-header, .store-footer { display: none; } }

/* 方案與升級（補差價） */
.plan-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin: 8px 0 12px; }
.plan-facts dt { color: var(--muted); font-size: .85rem; }
.plan-facts dd { margin: 2px 0 0; font-weight: 600; }
.upgrade-card { border-color: var(--green); }
.upgrade-line { font-size: 1.15rem; font-weight: 700; color: var(--green); margin: 6px 0 10px; }
.mobile-gate .upgrade-line { font-size: 1rem; }
.renew-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin-top: 10px; }
.renew-option { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.renew-option h3 { margin: 0 0 4px; font-size: 1.05rem; }
.renew-option .actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.meter .meter-over { color: var(--red); }
.notice-ok { border-color: var(--green); }

/* 窄螢幕＋放大字級（320px、130%）：長訂單編號換行、總覽新訂單列不撐出畫面 */
.start-orders small, .start-orders span, .notice small { overflow-wrap: anywhere; }
.mini-list a > * { min-width: 0; overflow-wrap: anywhere; }
.admin-top .admin-help-link { flex: none; }
