/* 商管通客人頁：手機優先、在 LINE 內建瀏覽器也要好看 */
:root {
  --bg: #f7f6f3;
  --card: #fff;
  --text: #1c1917;
  --muted: #78716c;
  --line: #e7e5e4;
  --accent: #e0531c;
  --accent-soft: #fdeee7;
  --ok: #16a34a;
  --ok-soft: #dcfce7;
  --warn: #b45309;
  --warn-soft: #fef3c7;
  --bad: #dc2626;
  --bad-soft: #fee2e2;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161514;
    --card: #23211f;
    --text: #ece9e4;
    --muted: #a39e96;
    --line: #36332f;
    --accent: #f06a35;
    --accent-soft: #3a2419;
    --ok: #4cc27a;
    --ok-soft: #173222;
    --warn: #e5a443;
    --warn-soft: #3a2c12;
    --bad: #ef6b6b;
    --bad-soft: #3d1c1c;
  }
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; }
body {
  font-family: system-ui, -apple-system, "Segoe UI", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  background: var(--bg); color: var(--text); font-size: 16px; line-height: 1.5;
}
a { color: var(--accent); text-decoration: none; }
h1 { font-size: 24px; margin: 8px 0 4px; }
h2 { font-size: 18px; margin: 0 0 10px; }
h3 { font-size: 17px; margin: 0 0 10px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
.hidden { display: none !important; }
.between { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.inline { display: inline; }

.top {
  position: sticky; top: 0; z-index: 10; display: flex; justify-content: space-between; align-items: center;
  padding: 12px 16px; background: var(--card); border-bottom: 1px solid var(--line);
}
.brand { font-weight: 700; color: var(--text); font-size: 17px; }
.wrap { max-width: 640px; margin: 0 auto; padding: 12px 16px 120px; }
.foot { text-align: center; color: var(--muted); font-size: 12px; padding: 24px 16px 100px; }

.card { background: var(--card); border-radius: 14px; padding: 14px; margin: 12px 0; }
.center-box { text-align: center; padding: 8vh 8px; max-width: 420px; margin: 0 auto; }
.center-box > * + * { margin-top: 12px; }
.flash { padding: 10px 14px; border-radius: 10px; margin: 10px 0; }
.flash.ok { background: var(--ok-soft); color: var(--ok); }
.flash.bad { background: var(--bad-soft); color: var(--bad); }
.flash.warn { background: var(--warn-soft); color: var(--warn); }
.validation-summary-valid.empty-hide { display: none; }
.validation-summary-errors ul { margin: 0; padding-left: 18px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; font: inherit; cursor: pointer;
  padding: 11px 18px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--text);
}
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
.btn.block { display: flex; width: 100%; }
.btn.big { padding: 15px; font-size: 18px; border-radius: 14px; }
.btn.small { padding: 5px 12px; font-size: 14px; }
.btn.line { background: #06c755; border-color: #06c755; color: #fff; font-weight: 600; }
.btn.google { background: #fff; color: #1f1f1f; border-color: #dadce0; font-weight: 600; }
button.link { border: 0; background: none; color: var(--accent); font: inherit; cursor: pointer; padding: 0; }

.field { display: block; margin-bottom: 12px; text-align: left; }
.field > span { display: block; font-size: 13px; color: var(--muted); margin-bottom: 4px; }
input[type=text], input[type=tel] {
  font: inherit; font-size: 16px; width: 100%; color: var(--text); background: var(--card);
  border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px;
}
input:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }
.kv { display: flex; justify-content: space-between; gap: 10px; margin: 6px 0; }
.kv.strong { font-weight: 700; font-size: 17px; border-top: 1px solid var(--line); padding-top: 8px; }
.row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--text); }
.row:last-child { border-bottom: 0; }
.row > span { display: flex; flex-direction: column; gap: 2px; }
.row > span:last-child { align-items: flex-end; }
.tag { display: inline-block; padding: 2px 10px; border-radius: 99px; font-size: 12px; background: var(--line); color: var(--muted); white-space: nowrap; }
.tag.ok { background: var(--ok-soft); color: var(--ok); }
.tag.warn { background: var(--warn-soft); color: var(--warn); }
.tag.bad { background: var(--bad-soft); color: var(--bad); }
.tag.accent { background: var(--accent-soft); color: var(--accent); }
.shop-group { padding: 8px 0 12px; border-bottom: 1px dashed var(--line); }
.shop-group:last-child { border-bottom: 0; }

/* ---------- 菜單 ---------- */
.store-head { padding: 4px 0 8px; }
.cat-tabs { position: sticky; top: 49px; z-index: 5; display: flex; gap: 6px; overflow-x: auto; padding: 8px 0; background: var(--bg); scrollbar-width: none; }
.cat-tabs a { flex: none; padding: 6px 14px; border-radius: 99px; background: var(--card); color: var(--text); border: 1px solid var(--line); font-size: 14px; }
.menu-sec { scroll-margin-top: 110px; }
.menu-sec h2 { margin: 16px 0 8px; }
.menu-item {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; font: inherit; color: var(--text);
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 10px; margin-bottom: 8px; cursor: pointer;
  transition: transform .1s;
}
.menu-item img { width: 72px; height: 72px; border-radius: 10px; object-fit: cover; flex: none; }
.mi-body { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.mi-name { font-weight: 600; font-size: 17px; }
.mi-price { color: var(--accent); }
.mi-add { width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: 20px; flex: none; }
.menu-item:disabled { cursor: default; }
.menu-item.soldout { opacity: .5; }
.menu-item.soldout .mi-price { color: var(--bad); }
.menu-item.added { transform: scale(.97); border-color: var(--accent); }

.cart-bar {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 20; max-width: 616px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center; padding: 12px 18px; border-radius: 99px;
  background: var(--accent); color: #fff; box-shadow: 0 6px 20px rgb(0 0 0 / .2);
}
.cart-bar button { border: 0; background: none; color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.cart-bar strong { font-size: 18px; }

.sheet-bg { position: fixed; inset: 0; background: rgb(0 0 0 / .45); z-index: 30; }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 31; max-width: 640px; margin: 0 auto; max-height: 88dvh; overflow-y: auto;
  background: var(--card); border-radius: 18px 18px 0 0; padding: 20px 16px calc(20px + env(safe-area-inset-bottom));
}
.sheet .x { position: absolute; top: 10px; right: 10px; border: 0; background: none; font-size: 20px; color: var(--muted); padding: 6px 10px; cursor: pointer; }
.opt-group { margin-bottom: 14px; }
.opt-title { font-weight: 600; display: inline; margin-right: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.chip { font: inherit; padding: 9px 16px; border-radius: 99px; border: 1px solid var(--line); background: var(--card); color: var(--text); cursor: pointer; }
.chip.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.qty-row { display: flex; justify-content: space-between; align-items: center; margin: 16px 0; font-weight: 600; }
.stepper { display: inline-flex; align-items: center; gap: 6px; }
.stepper button { width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--text); font-size: 18px; cursor: pointer; }
.stepper b { min-width: 26px; text-align: center; }
.err { color: var(--bad); min-height: 1em; margin: 0 0 8px; }
.cart-line { display: grid; grid-template-columns: 1fr auto 64px; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.cart-line small { display: block; color: var(--muted); font-size: 12px; }
.cart-line strong { text-align: right; }

/* ---------- 點餐狀態 ---------- */
.state { text-align: center; border-radius: 18px; padding: 24px 16px; margin: 8px 0 12px; }
.state.compact { text-align: left; padding: 16px; }
.state .label { font-size: 15px; opacity: .85; }
.big-no { font-size: 88px; font-weight: 800; line-height: 1.05; font-variant-numeric: tabular-nums; }
.state-title { font-size: 22px; font-weight: 700; margin: 6px 0; }
.state.pending { background: var(--accent-soft); color: var(--accent); }
.state.making { background: var(--warn-soft); color: var(--warn); }
.state.ready { background: var(--ok); color: #fff; animation: pulse 1.2s ease-in-out 5; }
.state.done { background: var(--card); }
.state.cancelled { background: var(--card); color: var(--muted); }
.state p { margin: 6px 0; }
@keyframes pulse { 50% { transform: scale(1.03); } }

/* ---------- 預約 ---------- */
.day-row { display: grid; grid-template-columns: 6.5em 1fr; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--line); align-items: start; }
.day-row:last-child { border-bottom: 0; }
.day-name { font-weight: 600; padding-top: 6px; }
.slots { display: flex; flex-wrap: wrap; gap: 6px; }
.slot input { position: absolute; opacity: 0; pointer-events: none; }
.slot span { display: inline-block; padding: 6px 12px; border-radius: 10px; border: 1px solid var(--line); cursor: pointer; font-variant-numeric: tabular-nums; }
.slot input:checked + span { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
.slot input:focus-visible + span { outline: 2px solid var(--accent); }
.slot.full span { opacity: .35; text-decoration: line-through; cursor: default; }
.check { display: flex; gap: 8px; align-items: center; margin: 4px 0 14px; font-size: 14px; text-align: left; }

/* ---------- 店家官網（雜誌質感風） ---------- */
body.bare {
  --ink: #1b1a16; --ink-2: #2a2823; --cream: #f2ede5; --cream-2: #e9e2d7;
  --paper-text: #2b2722; --paper-muted: #7d756b; --night-text: #ece6dc; --night-muted: #9b9488;
  --ed-accent: #9a6a3f;
  --serif: "Noto Serif TC", "Noto Serif CJK TC", "Source Han Serif TC", "Songti TC", "STSong", "PMingLiU", "MingLiU", serif;
  background: var(--ink); color: var(--night-text);
}
/* 整頁配色：深色段落 / 淺色段落 / 點綴色 */
body.bare.theme-amber { --ink: #1b1a16; --ink-2: #2a2823; --cream: #f2ede5; --cream-2: #e9e2d7; --ed-accent: #a8753f; }
body.bare.theme-orange { --ink: #2a1a12; --ink-2: #3a261b; --cream: #f6ece2; --cream-2: #eedccb; --ed-accent: #c0632f;
  --night-text: #f3e6da; --night-muted: #b39a86; --paper-text: #3a2418; --paper-muted: #8a6a55; }
body.bare.theme-red { --ink: #2a1214; --ink-2: #3a1c1e; --cream: #f5ebe6; --cream-2: #ecd9d2; --ed-accent: #b23a32;
  --night-text: #f4e3e0; --night-muted: #b08e8a; --paper-text: #3a1a1a; --paper-muted: #8a625e; }
body.bare.theme-green { --ink: #142019; --ink-2: #1d2c23; --cream: #eef0e6; --cream-2: #dfe4d4; --ed-accent: #5f8a5a;
  --night-text: #e5ede4; --night-muted: #93a493; --paper-text: #1f2d22; --paper-muted: #6a7a68; }
body.bare.theme-blue { --ink: #121a26; --ink-2: #1b2636; --cream: #eef1f4; --cream-2: #dde4ec; --ed-accent: #4a77ad;
  --night-text: #e4eaf2; --night-muted: #8d9bb0; --paper-text: #1b2533; --paper-muted: #66758a; }
body.bare.theme-brown { --ink: #24180f; --ink-2: #33241a; --cream: #f1e7da; --cream-2: #e5d6c3; --ed-accent: #9a6a3f;
  --night-text: #efe3d4; --night-muted: #ad9a85; --paper-text: #35251a; --paper-muted: #84705c; }
body.bare.theme-dark { --ink: #111111; --ink-2: #1c1c1c; --cream: #f7f7f5; --cream-2: #eaeae6; --ed-accent: #222222;
  --night-text: #f2f2f2; --night-muted: #9a9a9a; --paper-text: #151515; --paper-muted: #707070; }
main.site { max-width: none; padding: 0; }

/* 頂欄 */
.ed-bar { position: fixed; top: 0; left: 0; right: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between;
  padding: 14px clamp(16px, 4vw, 40px); color: var(--night-text); background: color-mix(in srgb, var(--ink) 78%, transparent); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.06); transition: background .4s, color .4s; }
.ed-bar.on-light { background: color-mix(in srgb, var(--cream) 88%, transparent); color: var(--paper-text); border-bottom-color: rgba(0,0,0,.06); }
.ed-brand { color: inherit; font-weight: 700; font-size: 17px; letter-spacing: 1px; }
.ed-bar nav { display: flex; gap: clamp(12px, 2.4vw, 26px); align-items: center; font-size: 14px; }
.ed-bar nav a { color: inherit; opacity: .85; }
.ed-bar nav a:hover { opacity: 1; }
.ed-me { border: 1px solid currentColor; border-radius: 999px; padding: 3px 12px; }

/* 右側目錄 */
.ed-index { position: fixed; right: clamp(14px, 3vw, 40px); top: 50%; transform: translateY(-50%); z-index: 40; display: none; flex-direction: column; gap: 14px;
  font-size: 11px; letter-spacing: 1px; color: var(--night-muted); transition: color .4s; }
.ed-index.on-light { color: var(--paper-muted); }
@media (min-width: 1000px) { .ed-index { display: flex; } }
.ed-index a { display: flex; align-items: center; gap: 10px; color: inherit; }
.ed-index i { width: 14px; height: 1px; background: currentColor; transition: width .35s; }
.ed-index em { font-style: normal; }
.ed-index a.on { color: var(--night-text); font-weight: 700; }
.ed-index.on-light a.on { color: var(--paper-text); }
.ed-index a.on i { width: 34px; }

/* 段落 */
.slice { position: relative; min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 110px clamp(18px, 7vw, 120px) 80px; scroll-margin-top: 0; }
.slice.compact { min-height: 0; padding-top: 60px; padding-bottom: 60px; }
.slice.dark { background: var(--ink); color: var(--night-text); }
.slice.light { background: var(--cream); color: var(--paper-text); }
.slice.light.alt { background: color-mix(in srgb, var(--cream) 85%, var(--cream-2)); }
.ed-wrap { width: 100%; max-width: 1080px; margin: 0 auto; }
.ed-grid { width: 100%; max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; }
@media (min-width: 860px) { .ed-grid { grid-template-columns: 1.05fr 1fr; gap: 60px; } .ed-grid.end { align-items: end; } }

.ed-label { display: flex; align-items: center; gap: 12px; margin: 0 0 22px; font-size: 11px; letter-spacing: 3px; opacity: .7; }
.ed-label i { width: 30px; height: 1px; background: currentColor; }
.ed-label.small { margin-bottom: 14px; }
.ed-title, .ed-h2, .ed-h3, .ed-giant { font-family: var(--serif); font-weight: 400; letter-spacing: 2px; margin: 0; }
.ed-title { font-size: clamp(44px, 9vw, 96px); line-height: 1.18; }
.ed-h2 { font-size: clamp(34px, 6vw, 60px); line-height: 1.22; margin-bottom: 26px; }
.ed-h3 { font-size: clamp(32px, 5vw, 52px); line-height: 1.2; }
.ed-giant { font-size: clamp(54px, 12vw, 128px); line-height: 1.12; }
.ed-sub { margin: 28px 0 0; max-width: 460px; font-size: 15px; line-height: 1.9; color: var(--night-muted); }
.ed-body { font-size: 15px; line-height: 2; color: var(--night-muted); max-width: 460px; }
.ed-body.dark, .slice.light .ed-body { color: var(--paper-muted); }

/* 文字連結按鈕 */
.ed-links { display: flex; flex-wrap: wrap; gap: 28px; align-items: center; margin-top: 34px; }
.ed-link { position: relative; display: inline-flex; gap: 10px; align-items: center; padding: 6px 0; font-size: 15px; letter-spacing: 1px;
  color: inherit; background: none; border: 0; cursor: pointer; font-family: inherit; opacity: .8; }
.ed-link b { font-weight: 400; transition: transform .3s; }
.ed-link:hover b { transform: translateX(6px); }
.ed-link.primary { opacity: 1; font-weight: 700; }
.ed-link.primary::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--ed-accent); }
.slice.dark .ed-link.primary::after { background: currentColor; opacity: .7; }
.ed-link.done { opacity: .45; cursor: default; }
.ed-link:disabled { cursor: default; }

/* 主視覺 */
.hero-ed { padding-top: 120px; }
.ed-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 18px; margin-top: 56px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); }
.ed-facts small { display: block; font-size: 10px; letter-spacing: 2px; color: var(--night-muted); margin-bottom: 6px; }
.ed-facts span { font-size: 14px; }
.ed-photo { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--ink-2); }
.ed-photo img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.92) contrast(1.02); transform: scale(1.03); transition: transform 1.6s ease; }
.ed-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--ink) 0%, transparent 28%), linear-gradient(0deg, color-mix(in srgb, var(--ink) 40%, transparent), transparent 40%); }
.ed-mark { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--serif); font-size: clamp(120px, 22vw, 260px); color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,.22); }
.slice.light .ed-mark { -webkit-text-stroke-color: rgba(0,0,0,.18); }
.ed-notice { position: absolute; left: clamp(18px, 7vw, 120px); bottom: 24px; display: flex; align-items: center; gap: 12px; margin: 0; font-size: 13px; color: var(--night-muted); }
.ed-notice i { width: 7px; height: 7px; border-radius: 50%; background: var(--ed-accent); box-shadow: 0 0 0 4px rgba(168,117,63,.2); }

/* 會員優惠 */
.ed-offers { border-top: 1px solid rgba(0,0,0,.12); }
.ed-offer { display: grid; grid-template-columns: 110px 1fr auto; gap: 18px; align-items: center; padding: 22px 0; border-bottom: 1px solid rgba(0,0,0,.12); }
.ed-offer-amt { font-family: var(--serif); font-size: 34px; color: var(--ed-accent); }
.ed-offer-body strong { display: block; font-size: 17px; font-weight: 600; margin-bottom: 4px; }
.ed-offer-body small { color: var(--paper-muted); font-size: 13px; line-height: 1.6; }
.ed-note { margin-top: 18px; font-size: 13px; color: var(--paper-muted); }
@media (max-width: 520px) { .ed-offer { grid-template-columns: 80px 1fr; } .ed-offer form { grid-column: 2; } .ed-offer-amt { font-size: 28px; } }

/* 招牌聚光燈 */
.ed-spot { width: 100%; max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 1fr; gap: 30px; }
@media (min-width: 900px) { .ed-spot { grid-template-columns: 260px 1fr; gap: 50px; } }
.ed-spot-list ol { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(0,0,0,.12); }
.ed-spot-list li { border-bottom: 1px solid rgba(0,0,0,.12); }
.ed-spot-list button { width: 100%; display: flex; gap: 16px; padding: 14px 0; background: none; border: 0; font: inherit; font-size: 15px; color: var(--paper-muted);
  cursor: pointer; text-align: left; transition: color .3s, padding .3s; }
.ed-spot-list button span { font-size: 11px; letter-spacing: 1px; padding-top: 3px; }
.ed-spot-list button.on { color: var(--paper-text); font-weight: 700; padding-left: 6px; }
.ed-spot-item { display: none; grid-template-columns: 1fr; gap: 30px; align-items: center; }
.ed-spot-item.on { display: grid; animation: zg-fade .6s ease; }
@media (min-width: 900px) { .ed-spot-item { grid-template-columns: 1.15fr 1fr; gap: 50px; grid-column: 2; grid-row: 1; } }
@keyframes zg-fade { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.ed-spot-photo { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--cream-2); }
.ed-spot-photo img { width: 100%; height: 100%; object-fit: cover; }
.ed-price { margin: 14px 0 0; font-size: 14px; letter-spacing: 2px; color: var(--paper-muted); }
.ed-desc { margin: 22px 0 0; font-size: 15px; line-height: 1.95; color: var(--paper-muted); max-width: 380px; }

/* 左右分割 */
.ed-split { width: 100%; max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 1fr; gap: 40px; }
@media (min-width: 900px) { .ed-split { grid-template-columns: 1fr 1px 1fr; gap: 60px; align-items: center; } }
.ed-split-line { position: relative; align-self: stretch; background: rgba(255,255,255,.1); min-height: 1px; }
.ed-split-line i { position: absolute; top: 50%; left: 50%; width: 9px; height: 9px; margin: -4px 0 0 -4px; border-radius: 50%; background: var(--ed-accent); }
.ed-news { padding: 0 0 26px; margin-bottom: 26px; border-bottom: 1px solid rgba(255,255,255,.1); }
.ed-news:last-child { border-bottom: 0; margin-bottom: 0; }
.ed-news small { font-size: 11px; letter-spacing: 2px; color: var(--night-muted); }
.ed-news h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(24px, 3.4vw, 34px); margin: 8px 0 12px; letter-spacing: 1px; }
.ed-news img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; margin-bottom: 12px; }
.ed-news p { font-size: 14px; line-height: 1.95; color: var(--night-muted); margin: 0 0 12px; }

.ed-row { display: flex; justify-content: space-between; padding: 16px 0; border-bottom: 1px solid rgba(0,0,0,.12); color: inherit; font-size: 16px; }
.ed-row small { color: var(--paper-muted); margin-left: 8px; }
.ed-row em { font-style: normal; color: var(--ed-accent); }

/* 結尾 */
.ed-closing-r { padding-bottom: 14px; }

/* 找到我們 */
.visit { min-height: 80vh; }
.ed-visit dl { margin: 0; border-top: 1px solid rgba(255,255,255,.12); }
.ed-visit dl div { display: grid; grid-template-columns: 110px 1fr; padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.ed-visit dt { font-size: 12px; letter-spacing: 2px; color: var(--night-muted); padding-top: 3px; }
.ed-visit dd { margin: 0; font-size: 16px; }
.ed-visit dd a { color: inherit; }
.ed-foot { margin-top: 70px; font-size: 12px; color: var(--night-muted); }
.ed-foot a { color: inherit; text-decoration: underline; }

/* 手機底部：低調的點餐列 */
.ed-dock-space { height: 64px; background: var(--ink); }
.ed-dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: flex; justify-content: space-between; align-items: center;
  padding: 14px clamp(18px, 5vw, 40px) calc(14px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--ink) 94%, transparent); backdrop-filter: blur(10px);
  color: var(--night-text); border-top: 1px solid rgba(255,255,255,.08); font-size: 15px; }
.ed-dock span { font-family: var(--serif); letter-spacing: 1px; opacity: .8; }
.ed-dock b { letter-spacing: 1px; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
@media (min-width: 1000px) { .ed-dock { left: auto; right: 40px; bottom: 30px; border-radius: 999px; border: 1px solid rgba(255,255,255,.14); gap: 22px; } .ed-dock-space { display: none; } }

/* 捲到才浮現 */
html.js .slice > * { opacity: 0; transform: translateY(28px); transition: opacity .9s ease, transform .9s ease; }
html.js .slice.in > * { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html.js .slice > * { opacity: 1; transform: none; transition: none; } .ed-spot-item.on { animation: none; } }

/* ---------- 優惠券票券（會員中心用） ---------- */
.coupons { display: flex; flex-direction: column; gap: 12px; margin-bottom: 10px; }
.ticket { position: relative; display: flex; align-items: center; gap: 14px; background: var(--card); border-radius: 16px; padding: 14px 16px 14px 0;
  box-shadow: 0 8px 22px rgba(60,35,10,.08); overflow: hidden; }
.ticket-amt { flex: 0 0 96px; align-self: stretch; display: flex; align-items: center; justify-content: center; gap: 1px;
  background: linear-gradient(135deg, #c9935a, #8a5a3c); color: #fff; margin: -14px 0; border-right: 3px dotted rgba(255,255,255,.8); }
.ticket-amt b { font-size: 32px; line-height: 1; font-weight: 800; }
.ticket-amt small { font-size: 14px; font-weight: 700; }
.ticket-body { flex: 1; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ticket.used { opacity: .55; filter: grayscale(.7); }

/* ---------- 會員中心 ---------- */
.member-card { position: relative; overflow: hidden; color: #fff; border-radius: 22px; padding: 18px; margin: 4px 0 14px;
  background: radial-gradient(circle at 100% 0%, rgba(246,196,83,.55), transparent 45%), linear-gradient(135deg, #3a2414 0%, #1b120b 70%);
  box-shadow: 0 16px 40px rgba(0,0,0,.25); }
.mc-shine { position: absolute; inset: 0; background: linear-gradient(115deg, transparent 40%, rgba(255,255,255,.12) 50%, transparent 60%); animation: zg-card 6s ease-in-out infinite; }
@keyframes zg-card { 0% { transform: translateX(-100%); } 60%, 100% { transform: translateX(100%); } }
.mc-top { display: flex; align-items: center; gap: 12px; position: relative; }
.mc-avatar { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-size: 24px; font-weight: 900;
  background: linear-gradient(135deg, #f6c453, #e8962a); color: #3a2414; flex: none; }
.mc-who { flex: 1; display: flex; flex-direction: column; }
.mc-who strong { font-size: 19px; }
.mc-who small { opacity: .75; letter-spacing: 1px; }
.mc-badge { font-size: 11px; font-weight: 800; letter-spacing: 1px; color: #3a2414; background: linear-gradient(135deg, #ffe6a6, #f6c453); padding: 4px 10px; border-radius: 999px; }
.mc-stats { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 18px 0 12px; }
.mc-stats div { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); border-radius: 14px; padding: 10px; text-align: center; }
.mc-stats b { display: block; font-size: 20px; color: #ffd27a; }
.mc-stats small { opacity: .75; font-size: 12px; }
.mc-foot { position: relative; display: flex; justify-content: space-between; font-size: 12px; opacity: .65; }
.notice { background: var(--card); border-radius: 14px; padding: 10px 14px; font-size: 13px; margin-bottom: 12px; border-left: 4px solid var(--muted); }
.notice.ok { border-left-color: #06c755; }
.me-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; } /* 機車行客人有 4 個分頁，手機 390px 放不下時換行，不要藏到右邊看不到 */
.me-tabs a { white-space: nowrap; padding: 8px 14px; border-radius: 999px; background: var(--card); color: var(--text); font-size: 14px; font-weight: 600; }
.me-tabs a.on { background: var(--accent); color: #fff; }
.order-row { display: block; background: var(--card); border-radius: 16px; padding: 14px; margin-bottom: 10px; color: var(--text); box-shadow: 0 6px 18px rgba(0,0,0,.05); }
.or-top, .or-foot { display: flex; justify-content: space-between; align-items: center; }
.or-items { margin: 6px 0; }
.or-foot b { font-size: 17px; color: var(--accent); }
.empty-box { text-align: center; padding: 40px 16px; background: var(--card); border-radius: 18px; }
.empty-box span { font-size: 44px; }
.empty-box p { font-weight: 700; margin: 8px 0 4px; }
.empty-box small { color: var(--muted); }
.pay-choice { display: flex; flex-direction: column; gap: 6px; margin: 8px 0; }
details.field summary { cursor: pointer; color: var(--accent); margin-bottom: 6px; }
body.bare main.site > .flash { position: fixed; top: 70px; left: 50%; transform: translateX(-50%); z-index: 60; width: min(92vw, 520px); box-shadow: 0 10px 30px rgba(0,0,0,.3); }
@media (min-width: 1000px) { .slice { padding-right: max(7vw, 210px); } }
@media (min-width: 900px) { .ed-spot { grid-template-columns: 300px 1fr; } .ed-spot-list .ed-h2 { font-size: clamp(30px, 3.2vw, 44px); white-space: nowrap; } }
.line-friend { display: block; margin: 8px 0 12px; padding: 10px 14px; border-radius: 12px; background: #06c755; color: #fff; font-weight: 700; text-align: center; }
/* 會員中心「← 回點餐」：上方一條，手機再加底部浮動按鈕 */
.me-back { display: flex; align-items: center; gap: 6px; margin: 4px 0 12px; padding: 11px 16px; border-radius: 14px;
  background: linear-gradient(135deg, #3a2414 0%, #1b120b 80%); color: #ffd27a; font-weight: 700; box-shadow: 0 6px 18px rgba(0,0,0,.15); }
.me-back-fab { display: none; }
@media (max-width: 640px) {
  .me-back-fab { display: block; position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 20;
    padding: 13px 18px; border-radius: 99px; text-align: center; font-weight: 700; color: #fff; background: var(--accent); box-shadow: 0 6px 20px rgb(0 0 0 / .25); }
  body:has(.me-back-fab) main.wrap { padding-bottom: 80px; }
}
