/* v1.0.1 */
/* ===== 杏嵐心聆髮妝 ===== */
:root {
  --bg: #faf7f2;
  --cream: #f3ede4;
  --sand: #cfc2b2;
  --sand-deep: #b9a993;
  --taupe: #8b7b69;
  --ink: #2a2521;
  --muted: #6c625a;
  --line: #e2d8cb;
  --card: #fffdfa;
  --apricot: #c4864f;
  --apricot-soft: #f3e2cf;
  --brown: #5b4636;
  --ok: #4f7a5a;
  --warn: #b0703a;
  --danger: #a5463e;
  --line-green: #06c755;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(60, 45, 30, .08);
  --serif: "Noto Serif TC", "Cormorant Garamond", serif;
  --sans: "Noto Sans TC", system-ui, -apple-system, "PingFang TC", "Microsoft JhengHei", sans-serif;
  --en: "Cormorant Garamond", "Noto Serif TC", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 400;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--brown); }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.35; margin: 0 0 .6em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 300; letter-spacing: .06em; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.container { width: min(1160px, 100% - 32px); margin-inline: auto; }
.hint { color: var(--muted); font-size: .9rem; margin: .3em 0; }
.eyebrow { font-family: var(--en); letter-spacing: .35em; font-size: .85rem; color: var(--taupe); margin-bottom: .4em; }

/* ---- demo banner ---- */
.demo-banner {
  background: var(--ink); color: #eadfce; font-size: .85rem; text-align: center;
  padding: 8px 16px; line-height: 1.6;
}
.demo-banner a { color: #f3cfa2; }

/* ---- header ---- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(38, 34, 31, .82); backdrop-filter: blur(10px);
  color: #f4ece2;
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: min(1240px, 100% - 32px); margin-inline: auto; height: 60px; }
.nav-menu { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; order: 0; }
.nav-menu a { color: #efe5d8; text-decoration: none; font-size: .85rem; letter-spacing: .12em; padding: 4px 0; border-bottom: 1px solid transparent; }
.nav-menu a:hover, .nav-menu a:focus-visible { border-color: #efe5d8; }
.brand { font-family: var(--serif); font-weight: 300; letter-spacing: .4em; color: #fff; text-decoration: none; font-size: 1.15rem; order: 1; }
.nav .line-btn { order: 2; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 1.5px; background: #fff; margin: 5px 0; transition: .3s; }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font: inherit; font-size: .92rem; letter-spacing: .08em; cursor: pointer;
  border-radius: 999px; padding: 10px 24px; border: 1px solid transparent; text-decoration: none;
  transition: background .2s, color .2s, transform .1s;
}
.btn:active { transform: translateY(1px); }
.btn.block { width: 100%; }
.btn.small, .line-btn.small { padding: 5px 14px; font-size: .8rem; }
.btn-dark { background: var(--brown); color: #fff; }
.btn-dark:hover { background: #46362a; }
.btn-light { background: #f6efe6; color: var(--ink); }
.btn-light:hover { background: #fff; }
.btn-outline { background: transparent; border-color: var(--brown); color: var(--brown); }
.btn-outline:hover { background: var(--brown); color: #fff; }
.btn-ghost { background: transparent; color: var(--muted); border-color: var(--line); }
.btn-ghost:hover { color: var(--ink); border-color: var(--taupe); }
.btn-danger { background: transparent; color: var(--danger); border-color: #e2c1bd; }
.btn-danger:hover { background: var(--danger); color: #fff; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.line-btn {
  display: inline-flex; align-items: center; gap: 6px; background: var(--line-green); color: #fff;
  border-radius: 999px; padding: 10px 22px; text-decoration: none; font-size: .92rem; letter-spacing: .06em; font-weight: 500;
}
.line-btn:hover { filter: brightness(.95); }
.line-btn::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #fff; }

/* ---- hero ---- */
.hero {
  position: relative; min-height: min(88vh, 760px); display: grid; place-items: center; overflow: hidden;
  color: #fff; text-align: center;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(255,255,255,.10), transparent 55%),
    radial-gradient(ellipse at 80% 80%, rgba(0,0,0,.35), transparent 60%),
    radial-gradient(circle at 60% 40%, #6d6862 0%, #4c4844 45%, #2f2c29 100%);
}
.hero::after { /* 灰泥質感 */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .35; mix-blend-mode: overlay;
  background-image:
    repeating-radial-gradient(circle at 30% 20%, rgba(255,255,255,.07) 0 2px, transparent 2px 7px),
    repeating-linear-gradient(115deg, rgba(0,0,0,.08) 0 1px, transparent 1px 9px);
}
.hero-strands { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-strands path { stroke-dasharray: 2400; stroke-dashoffset: 2400; animation: draw 4s ease-out forwards; }
.hero-strands path:nth-child(2n) { animation-delay: .3s; }
.hero-strands path:nth-child(3n) { animation-delay: .6s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.hero-inner { position: relative; z-index: 2; padding: 80px 16px; }
.hero-en { font-family: var(--en); letter-spacing: .5em; font-size: .85rem; opacity: .85; margin-bottom: 1.2em; }
.hero-title {
  font-family: var(--serif); font-weight: 200; font-size: clamp(3.2rem, 11vw, 8rem);
  letter-spacing: .28em; margin: 0 0 .2em; padding-left: .28em; line-height: 1.1;
  text-shadow: 0 4px 30px rgba(0,0,0,.35);
}
.hero-sub { font-family: var(--serif); font-weight: 300; letter-spacing: .3em; font-size: clamp(.95rem, 2vw, 1.2rem); opacity: .92; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 2em; }

/* ---- bands ---- */
.band-sand { background: var(--sand); }
.band-cream { background: var(--cream); }
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-head { max-width: 680px; margin-bottom: 32px; }
.lead { color: var(--muted); }
.band-sand .lead, .band-sand .hint { color: #5a4f45; }

/* ---- about ---- */
.about { padding: clamp(56px, 8vw, 96px) 0; }
.about-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.display { font-family: var(--serif); font-weight: 300; font-size: clamp(1.5rem, 3vw, 2.1rem); color: #5c5047; line-height: 1.6; }
.display strong { color: var(--ink); font-weight: 500; }
.about-points { list-style: none; padding: 0; margin: 0 0 1.6em; }
.about-points li { padding: 8px 0; border-bottom: 1px solid rgba(90, 75, 60, .2); display: flex; gap: 14px; }
.about-points span { font-family: var(--en); color: var(--brown); }
.about-visual { aspect-ratio: 4 / 3.2; border-radius: 4px; overflow: hidden; box-shadow: var(--shadow); }
.room { position: relative; width: 100%; height: 100%; background: linear-gradient(180deg, #e9e5df 0 62%, #cfc8be 62% 100%); }
.room-window { position: absolute; left: 30%; top: 8%; width: 42%; height: 50%; background: linear-gradient(135deg, #fff, #f1efe9); border: 6px solid #d8d2c8; box-shadow: inset 0 0 0 2px #e5dfd6; }
.room-window::before, .room-window::after { content: ""; position: absolute; background: #d8d2c8; }
.room-window::before { left: 50%; top: 0; bottom: 0; width: 4px; }
.room-window::after { top: 45%; left: 0; right: 0; height: 4px; }
.room-mirror { position: absolute; left: 4%; top: 6%; width: 18%; height: 66%; background: linear-gradient(180deg, #5d5953, #3f3c38); border-radius: 2px; }
.room-chair { position: absolute; right: 14%; bottom: 14%; width: 22%; height: 26%; background: #2e2b28; border-radius: 10px 10px 4px 4px; }
.room-chair::after { content: ""; position: absolute; left: 40%; bottom: -30%; width: 20%; height: 30%; background: #6d6862; }
.room-plant { position: absolute; left: 24%; bottom: 20%; width: 9%; height: 30%; background: radial-gradient(ellipse at 50% 30%, #7f8f6a 0 55%, transparent 56%); }
.room-plant::after { content: ""; position: absolute; left: 25%; bottom: 0; width: 50%; height: 26%; background: #e7e1d8; border-radius: 0 0 6px 6px; }

/* ---- chips ---- */
.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.chip { font: inherit; font-size: .85rem; padding: 6px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--muted); cursor: pointer; }
.chip.active { background: var(--brown); border-color: var(--brown); color: #fff; }

/* ---- courses ---- */
.course-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.course {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
  display: flex; flex-direction: column; gap: 8px; transition: transform .2s, box-shadow .2s;
}
.course:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.course .cat { font-size: .75rem; letter-spacing: .1em; color: var(--apricot); }
.course h3 { margin: 0; }
.course p { color: var(--muted); font-size: .92rem; flex: 1; margin: 0; }
.course .meta { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px dashed var(--line); padding-top: 12px; margin-top: 8px; }
.course .price { font-family: var(--en); font-size: 1.35rem; color: var(--brown); }

/* ---- cards / forms ---- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(18px, 3vw, 28px); margin-bottom: 20px; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.card-head h3 { margin: 0; }
.tag-demo { display: inline-block; font-family: var(--sans); font-size: .7rem; letter-spacing: .1em; padding: 1px 8px; border-radius: 4px; background: var(--apricot-soft); color: var(--warn); vertical-align: middle; }
.form .field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 14px; min-width: 0; }
.form .field > span, .inline-label { font-size: .85rem; color: var(--muted); }
input, select, textarea {
  font: inherit; font-size: 16px; color: var(--ink); background: #fff;
  border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; width: 100%; min-width: 0;
}
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(196, 134, 79, .35); border-color: var(--apricot); }
input[type="radio"], input[type="checkbox"] { width: auto; accent-color: var(--brown); }
.invalid { border-color: var(--danger) !important; background: #fff8f7; }
.err { color: var(--danger); font-size: .8rem; min-height: 0; }
.err:empty { display: none; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.two-col { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; align-items: start; }
.inline-form { display: flex; gap: 10px; align-items: flex-start; }
.inline-form .field { margin-bottom: 0; }
.grow { flex: 1; }
.inline-label { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.inline-label input, .inline-label select { width: auto; }

/* ---- booking ---- */
.booking-ways { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 32px; }
.way { background: var(--card); border-radius: var(--radius); padding: 22px; border: 1px solid var(--line); }
.way-no { font-family: var(--en); font-size: 2rem; color: var(--apricot); line-height: 1; }
.way h3 { margin-top: 8px; }
.way p { color: var(--muted); font-size: .92rem; }
.booking-layout { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; align-items: start; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 8px; }
.slot { font: inherit; font-size: .9rem; padding: 8px 0; border-radius: 8px; border: 1px solid var(--line); background: #fff; cursor: pointer; }
.slot:hover:not(:disabled) { border-color: var(--apricot); }
.slot.selected { background: var(--brown); color: #fff; border-color: var(--brown); }
.slot:disabled { background: #f1ece5; color: #b4aaa0; text-decoration: line-through; cursor: not-allowed; }
.result-card { border-color: var(--ok); background: #f6faf4; }
.result-card h3 { color: var(--ok); }
.result-card dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; margin: 0 0 1em; font-size: .92rem; }
.result-card dt { color: var(--muted); }
.result-card dd { margin: 0; }
.lookup-result { margin-top: 14px; }
.mini-item { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin-bottom: 10px; display: flex; justify-content: space-between; gap: 10px; align-items: center; flex-wrap: wrap; font-size: .9rem; background: #fff; }
.mini-item b { font-weight: 500; }

/* ---- inquiry ---- */
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 6px 12px; }
.check-grid label { display: flex; align-items: center; gap: 8px; font-size: .9rem; cursor: pointer; padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.check-grid label:has(input:checked) { border-color: var(--apricot); background: var(--apricot-soft); }
.estimate { background: var(--cream); border-radius: 10px; padding: 14px 16px; margin-bottom: 14px; display: flex; flex-direction: column; }
.estimate span { font-size: .8rem; color: var(--muted); }
.estimate strong { font-family: var(--serif); font-weight: 500; font-size: 1.2rem; color: var(--brown); }

/* ---- QA ---- */
.qa-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: 28px; align-items: start; }
.qa-tools input[type=search] { margin-bottom: 12px; }
.qa-tools .filter-chips { margin-bottom: 8px; }
.qa-list details { background: var(--card); border-radius: 12px; margin-bottom: 10px; border: 1px solid rgba(90,75,60,.12); }
.qa-list summary { cursor: pointer; padding: 14px 18px; list-style: none; display: flex; gap: 10px; align-items: baseline; font-weight: 500; }
.qa-list summary::-webkit-details-marker { display: none; }
.qa-list summary::after { content: "+"; margin-left: auto; color: var(--taupe); font-size: 1.2rem; }
.qa-list details[open] summary::after { content: "−"; }
.qa-list .qa-cat { font-size: .72rem; color: var(--apricot); border: 1px solid var(--apricot-soft); border-radius: 4px; padding: 0 6px; white-space: nowrap; font-weight: 400; }
.qa-list .qa-a { padding: 0 18px 16px; color: var(--muted); font-size: .94rem; }
mark { background: #f5dfbf; padding: 0 2px; border-radius: 2px; }
.quiz-q { border: 0; padding: 0; margin: 0 0 14px; }
.quiz-q legend { font-size: .92rem; font-weight: 500; margin-bottom: 6px; }
.quiz-q label { display: inline-flex; align-items: center; gap: 6px; margin: 0 14px 6px 0; font-size: .9rem; cursor: pointer; }
.quiz-result { margin-top: 16px; padding: 16px; border-radius: 10px; background: var(--cream); }
.quiz-result h4 { margin: 0 0 6px; font-family: var(--serif); font-weight: 500; }

/* ---- empty state ---- */
.empty { text-align: center; padding: 28px 16px; color: var(--muted); border: 1px dashed var(--line); border-radius: 12px; background: rgba(255,255,255,.5); font-size: .92rem; }
.empty::before { content: "∅"; display: block; font-family: var(--en); font-size: 1.6rem; color: var(--sand-deep); }

/* ---- products ---- */
.shop-layout { display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: start; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px; }
.product { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.product-visual { aspect-ratio: 1; background: linear-gradient(160deg, #efe8de, #dcd2c5); display: grid; place-items: end center; padding-bottom: 14%; position: relative; }
.product-visual::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 22%; background: rgba(120, 100, 80, .12); }
.bottle { position: relative; z-index: 1; width: 30%; height: 56%; border-radius: 10px 10px 8px 8px; background: linear-gradient(90deg, rgba(255,255,255,.35), transparent 40%), var(--c, #b98a5e); box-shadow: 4px 8px 16px rgba(60,40,20,.2); }
.bottle::before { content: ""; position: absolute; left: 30%; top: -18%; width: 40%; height: 18%; background: #3a332d; border-radius: 4px 4px 0 0; }
.bottle::after { content: attr(data-label); position: absolute; left: 10%; right: 10%; top: 35%; background: #fbf7f0; font-size: .55rem; text-align: center; letter-spacing: .1em; padding: 4px 0; color: #5b4636; font-family: var(--en); }
.bottle.jar { width: 42%; height: 30%; border-radius: 8px; }
.bottle.jar::before { left: -4%; width: 108%; top: -22%; height: 22%; }
.bottle.dropper { width: 22%; height: 46%; }
.bottle.dropper::before { left: 25%; width: 50%; top: -34%; height: 34%; border-radius: 40% 40% 4px 4px; }
.product-body { padding: 16px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.product-body h3 { font-size: 1rem; margin: 0; }
.product-body p { font-size: .85rem; color: var(--muted); margin: 0; flex: 1; }
.product-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; }
.product-foot .price { font-family: var(--en); font-size: 1.2rem; color: var(--brown); }
.cart { position: sticky; top: 76px; }
.cart-line { display: grid; grid-template-columns: 1fr auto; gap: 4px 8px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; }
.qty button { font: inherit; border: 0; background: none; width: 28px; height: 28px; cursor: pointer; color: var(--brown); }
.qty span { min-width: 22px; text-align: center; }
.linkish { font: inherit; font-size: .8rem; border: 0; background: none; color: var(--danger); cursor: pointer; padding: 0; justify-self: end; }
.cart-sum { padding: 12px 0; font-size: .92rem; }
.cart-sum div { display: flex; justify-content: space-between; }
.cart-sum .total { font-weight: 700; font-size: 1.05rem; border-top: 1px solid var(--line); padding-top: 6px; margin-top: 6px; }

/* ---- admin ---- */
.admin { background: #ece6dd; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 24px; }
.stat { background: var(--card); border-radius: var(--radius); padding: 16px 18px; border: 1px solid var(--line); }
.stat span { font-size: .8rem; color: var(--muted); }
.stat strong { display: block; font-family: var(--en); font-size: 1.8rem; font-weight: 500; color: var(--brown); line-height: 1.3; }
.tabs { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--sand); margin-bottom: 20px; scrollbar-width: thin; }
.tab { font: inherit; font-size: .92rem; background: none; border: 0; padding: 10px 16px; cursor: pointer; color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; }
.tab.active { color: var(--ink); border-color: var(--brown); font-weight: 500; }
.panel { display: none; }
.panel.active { display: block; animation: fade .25s; }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } }
.panel-tools { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.panel-tools input[type=search] { flex: 1; min-width: 200px; }
.panel-tools select { width: auto; }
.panel-tools .hint { margin: 0; }
.table-wrap { overflow-x: auto; background: var(--card); border-radius: var(--radius); border: 1px solid var(--line); margin-bottom: 20px; }
.table-wrap .empty { border: 0; }
table { width: 100%; border-collapse: collapse; font-size: .88rem; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; white-space: nowrap; }
th { font-weight: 500; color: var(--muted); background: #faf6f0; font-size: .8rem; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
td .btn { padding: 4px 12px; font-size: .78rem; }
td select { padding: 4px 8px; font-size: .85rem; width: auto; }
td.wrap { white-space: normal; min-width: 180px; }
tr.total-row td { font-weight: 700; background: #faf6f0; }
.actions { display: flex; gap: 6px; }
.badge { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: .75rem; background: #eee6dc; color: var(--muted); }
.badge.ok { background: #e3efe3; color: var(--ok); }
.badge.warn { background: var(--apricot-soft); color: var(--warn); }
.badge.danger { background: #f5e1df; color: var(--danger); }
.rules { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 10px 16px; margin-bottom: 16px; font-size: .88rem; }
.rules summary { cursor: pointer; color: var(--brown); }
.rules ul { margin: 8px 0 0; padding-left: 20px; color: var(--muted); }
.detail-row td { background: #fcfaf6; white-space: normal; font-size: .82rem; color: var(--muted); }
.notice { background: var(--apricot-soft); border-radius: 10px; padding: 12px 16px; font-size: .9rem; margin-bottom: 18px; color: #6b4a2b; }
.staff-progress { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin-bottom: 18px; }
.sp { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; font-size: .88rem; }
.sp b { font-weight: 500; }
.bar { height: 6px; background: #eee6dc; border-radius: 99px; overflow: hidden; margin: 8px 0 4px; }
.bar i { display: block; height: 100%; background: var(--apricot); border-radius: 99px; transition: width .4s; }
.switch { display: flex; gap: 10px; align-items: center; margin-bottom: 14px; cursor: pointer; font-size: .92rem; }
.preview { background: #f2f6f2; border-radius: 12px; padding: 12px 14px; font-size: .88rem; margin-bottom: 14px; white-space: pre-wrap; border-left: 3px solid var(--ok); }
.preview::before { content: "預覽"; display: block; font-size: .72rem; color: var(--ok); margin-bottom: 4px; }
.log-item { border-bottom: 1px solid var(--line); padding: 10px 0; font-size: .88rem; }
.log-item .log-meta { color: var(--muted); font-size: .78rem; display: flex; gap: 10px; flex-wrap: wrap; }
.log-item p { margin: 4px 0 0; white-space: pre-wrap; }
.reset-row { text-align: center; margin-top: 20px; }

/* ---- footer ---- */
.footer { background: #2b2724; color: #d9cfc2; padding: 56px 0 20px; }
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer p { margin: 0 0 6px; font-size: .92rem; }
.footer-brand { font-family: var(--serif); font-weight: 300; letter-spacing: .3em; font-size: 1.4rem !important; color: #fff; }
.copyright { text-align: center; font-size: .78rem !important; color: #8f857a; margin-top: 40px !important; }
.float-line {
  position: fixed; right: 16px; bottom: 16px; z-index: 60; width: 56px; height: 56px; border-radius: 50%;
  background: var(--line-green); color: #fff; display: grid; place-items: center; text-decoration: none; font-weight: 700; font-size: .78rem;
  box-shadow: 0 6px 20px rgba(0,0,0,.2);
}

/* ---- dialog ---- */
dialog { border: 0; border-radius: var(--radius); padding: 24px; width: min(560px, calc(100% - 32px)); max-height: 88vh; background: var(--card); color: var(--ink); box-shadow: 0 20px 60px rgba(0,0,0,.25); }
dialog::backdrop { background: rgba(30, 25, 20, .45); }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 10px; }
#historyBody h4 { font-family: var(--serif); font-weight: 500; margin: 16px 0 6px; }
#historyBody ul { padding-left: 18px; margin: 0; font-size: .9rem; }

/* ---- toast ---- */
.toasts { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 100; display: flex; flex-direction: column; gap: 8px; width: min(420px, calc(100% - 32px)); pointer-events: none; }
.toast { background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 10px; font-size: .9rem; box-shadow: 0 8px 24px rgba(0,0,0,.2); animation: toastIn .25s; border-left: 4px solid var(--ok); }
.toast.error { border-left-color: #e07a6f; }
.toast.info { border-left-color: var(--apricot); }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } }

/* ---- responsive ---- */
@media (max-width: 960px) {
  .about-grid, .booking-layout, .two-col, .qa-layout, .shop-layout { grid-template-columns: 1fr; }
  .cart { position: static; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .row3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .brand { order: 0; position: absolute; left: 50%; transform: translateX(-50%); }
  .nav { position: relative; }
  .nav-menu {
    position: absolute; top: 60px; left: -16px; right: -16px; flex-direction: column; gap: 0;
    background: rgba(38, 34, 31, .97); padding: 8px 24px 16px; display: none;
  }
  .nav-menu.open { display: flex; }
  .nav-menu a { display: block; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
  .booking-ways, .footer-grid { grid-template-columns: 1fr; }
  .row2, .row3 { grid-template-columns: 1fr; gap: 0; }
  .hero-title { letter-spacing: .14em; padding-left: .14em; }
  .hero-en { letter-spacing: .25em; }
  .inline-form { flex-direction: column; align-items: stretch; }
  .float-line { width: 50px; height: 50px; }
}
@media (max-width: 420px) {
  .stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat strong { font-size: 1.4rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero-strands path { stroke-dashoffset: 0; }
  html { scroll-behavior: auto; }
}
