/* 新版前台（時段制）— 暖白底、襯線標題、金色點綴 */
:root {
  --bg: #fdfbf8;
  --beige: #f1ebe2;
  --beige-2: #eaded2;
  --sand: #f1efeb;
  --ink: #2d2d2d;
  --ink-2: #454545;
  --muted: #717171;
  --line: #e2e2e2;
  --gold: #ae873c;
  --gold-d: #8e6a25;
  --brown: #543926;
  --accent: #db6135;
  --note: #ede68a;
  --serif: "Noto Serif TC", "GenRyuMin TW", serif;
  --sans: "Noto Sans TC", "PingFang TC", system-ui, sans-serif;
  --radius: 10px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 15px; line-height: 1.7; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
.serif { font-family: var(--serif); }
.gold { color: var(--gold); }
.muted { color: var(--muted); font-size: 14px; }
.wrap-inner { max-width: 860px; margin: 0 auto; padding: 0 20px; }
.wrap-narrow { max-width: 760px; margin: 0 auto; padding: 0 20px; }

/* ── Header ── */
.hdr { position: sticky; top: 0; z-index: 50; background: rgba(253,251,248,.92); backdrop-filter: blur(8px); transition: box-shadow .2s; }
.hdr.scrolled { box-shadow: 0 1px 0 var(--line); }
.hdr-in { max-width: 1216px; margin: 0 auto; height: 68px; padding: 0 20px; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo { color: var(--ink); display: flex; }
.brand-logo img { height: 30px; width: auto; border-radius: 4px; }
.brand-name { font-family: var(--serif); font-size: 22px; font-weight: 700; letter-spacing: .02em; }
.hdr-nav { display: flex; gap: 22px; font-size: 14px; color: var(--ink-2); }
.hdr-nav a:hover { color: var(--gold); }
.hdr-act { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.pill { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 999px; padding: 9px 20px; font-size: 14px; font-weight: 500; transition: transform .15s, background .15s, box-shadow .15s; white-space: nowrap; }
.pill:hover { transform: translateY(-1px); }
.pill-dark { background: var(--ink); color: #fff; }
.pill-dark:hover { background: #000; }
.pill-gold { background: var(--gold); color: #fff; }
.pill-gold:hover { background: var(--gold-d); }
.pill-white { background: #fff; color: var(--ink); padding: 12px 24px; }
.pill-line { border: 1px solid var(--ink); color: var(--ink); padding: 12px 26px; background: #fff; }
.pill-lg { width: 100%; padding: 13px 20px; font-size: 15px; }
.pill:disabled { opacity: .45; cursor: not-allowed; transform: none; }

.me { position: relative; }
.me-btn { display: flex; align-items: center; gap: 8px; padding: 4px 10px 4px 4px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: 14px; }
.me-av { width: 30px; height: 30px; border-radius: 50%; background: var(--beige-2); color: var(--brown); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; }
.me-menu { display: none; position: absolute; right: 0; top: calc(100% + 6px); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); min-width: 150px; box-shadow: 0 10px 30px rgba(0,0,0,.08); overflow: hidden; }
.me-menu.open { display: block; }
.me-menu button { display: block; width: 100%; text-align: left; padding: 11px 16px; font-size: 14px; }
.me-menu button:hover { background: var(--beige); }

/* ── Hero ── */
.hero { position: relative; padding: 56px 0 64px; overflow: hidden; }
.hero-bg { position: absolute; left: 4.8%; right: 4.8%; top: 150px; height: 260px; background:
  linear-gradient(var(--sand), var(--sand)) left top / 22% 100% no-repeat,
  linear-gradient(var(--sand), var(--sand)) right top / 22% 100% no-repeat; pointer-events: none; }
.hero-head { position: relative; text-align: center; margin-bottom: 40px; }
.tape { display: inline-block; position: relative; padding: 8px 26px; background: var(--beige); color: var(--brown); font-family: var(--serif); font-size: 17px; letter-spacing: .12em; transform: rotate(-2deg); margin-bottom: 14px; }
.tape::after { content: ''; position: absolute; right: -10px; top: -9px; width: 44px; height: 16px; background: var(--accent); opacity: .85; transform: rotate(-8deg); }
.hero-title { font-size: clamp(36px, 6vw, 60px); font-weight: 700; line-height: 1.2; letter-spacing: .04em; }
.hero-sub { margin-top: 10px; font-size: 15px; color: var(--ink-2); }
.hero-sub:not(:empty)::before { content: '- '; } .hero-sub:not(:empty)::after { content: ' -'; }
.hero-photos { position: relative; display: grid; grid-template-columns: 1fr minmax(0, 760px) 1fr; gap: 24px; align-items: end; }
.hp-main { aspect-ratio: 760 / 580; background: var(--beige-2) center/cover no-repeat; border-radius: 2px; }
.hp-side { height: 78%; background: var(--beige) center/cover no-repeat; }
.hp-left { border-radius: 0 2px 2px 0; }
.hp-right { border-radius: 2px 0 0 2px; }
.hero-cap { margin-top: 22px; font-size: 14px; color: var(--ink-2); }
.hero-cap p + p { margin-top: 4px; }

/* ── Section commons ── */
.eyebrow { font-family: var(--serif); font-size: 14px; color: var(--ink-2); display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.folder { display: inline-block; width: 12px; height: 9px; background: var(--gold); clip-path: polygon(0 0, 45% 0, 55% 22%, 100% 22%, 100% 100%, 0 100%); }
.h2 { font-family: var(--serif); font-size: clamp(22px, 3vw, 28px); font-weight: 500; line-height: 1.4; margin-bottom: 10px; }
.lead { color: var(--ink-2); font-size: 15px; margin-bottom: 28px; }

/* ── Spaces ── */
.spaces { padding: 40px 0 0; }
.spaces-panel { max-width: 1260px; margin: 0 auto; background: var(--beige-2); padding: 64px 0 72px; position: relative; }
.spaces-panel::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 26px; background:
  radial-gradient(circle at 50% 100%, var(--bg) 9px, transparent 10px) 0 0 / 52px 26px repeat-x; opacity: .9; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 24px; }
.tab { padding: 7px 16px; border-radius: 999px; font-size: 14px; color: var(--ink-2); }
.tab.on { background: var(--ink); color: #fff; }
.space-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.space { background: #fff; padding: 16px 16px 20px; display: flex; flex-direction: column; gap: 10px; transition: transform .2s, box-shadow .2s; cursor: pointer; }
.space:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(84,57,38,.12); }
.space-ph { aspect-ratio: 4 / 3; background: var(--beige) center/cover no-repeat; display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 28px; color: var(--brown); opacity: .95; }
.space-name { font-family: var(--serif); font-size: 18px; font-weight: 500; }
.space-meta { font-size: 13px; color: var(--muted); }
.space-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.space-tags span { font-size: 12px; padding: 2px 9px; border-radius: 999px; background: var(--sand); color: var(--ink-2); }
.space-go { margin-top: auto; font-size: 13px; color: var(--gold-d); font-weight: 500; }

/* ── Features ── */
.features { padding: 100px 20px 90px; }
.paper { max-width: 960px; margin: 0 auto; position: relative; }
.paper::before { content: ''; position: absolute; inset: -14px 18px 10px -6px; background: var(--beige-2); transform: rotate(-1.4deg); z-index: 0; }
.paper-in { position: relative; z-index: 1; background: #fff; padding: 56px 56px 48px; box-shadow: 0 4px 18px rgba(0,0,0,.08); transform: rotate(.6deg); }
.feat-grid { display: grid; grid-template-columns: 300px 1fr; gap: 0; align-items: center; margin-top: 8px; }
.sticky { background: var(--note); padding: 28px 28px 30px; transform: rotate(-2deg); box-shadow: 0 10px 18px rgba(0,0,0,.12); position: relative; z-index: 2; margin-right: -40px; }
.sticky ul { list-style: none; display: flex; flex-direction: column; gap: 10px; font-family: var(--serif); font-size: 17px; }
.sticky li { display: flex; gap: 10px; align-items: center; }
.sticky li::before { content: '✓'; display: inline-flex; width: 20px; height: 20px; border: 1.5px solid var(--accent); color: var(--accent); font-size: 14px; align-items: center; justify-content: center; flex-shrink: 0; transform: rotate(-4deg); }
.feat-photo { aspect-ratio: 16 / 10; background: var(--beige) center/cover no-repeat; }

/* ── Pricing ── */
.pricing { background: var(--beige); padding: 88px 0 96px; position: relative; }
.pricing::before { content: ''; position: absolute; left: 0; right: 0; top: -40px; height: 41px; background: var(--beige); border-radius: 50% 50% 0 0 / 100% 100% 0 0; }
.price-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.card { background: #fff; border-radius: var(--radius); }
.price-card { padding: 22px 24px 18px; }
.price-h { font-size: 15px; margin-bottom: 12px; color: var(--ink); }
.prow { display: flex; align-items: center; gap: 12px; padding: 7px 0; font-size: 15px; color: var(--ink-2); }
.prow .lbl { white-space: nowrap; }
.prow .dots { flex: 1; border-bottom: 1px dotted #9a9a9a; transform: translateY(-3px); min-width: 20px; }
.prow .amt { font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; }
.circ { display: inline-flex; width: 24px; height: 24px; border: 1px solid #8a8a8a; border-radius: 50%; align-items: center; justify-content: center; font-size: 12px; color: var(--ink-2); flex-shrink: 0; }
.plus { color: var(--muted); font-size: 13px; }
.combo-blks { display: inline-flex; align-items: center; gap: 4px; }
.price-note { margin-top: 14px; font-size: 13px; color: var(--muted); }

/* ── Reserve ── */
.reserve { background: var(--beige); padding: 8px 0 96px; }
.reserve .wrap-inner { max-width: 1100px; }
.rv { display: grid; grid-template-columns: 1fr 330px; gap: 24px; align-items: start; }
.rv-main { background: #fff; border-radius: var(--radius); padding: 8px 28px; }
.rv-step { padding: 22px 0; border-bottom: 1px solid var(--line); }
.rv-step:last-child { border-bottom: none; }
.rv-label { display: flex; align-items: center; gap: 10px; font-weight: 500; margin-bottom: 14px; }
.rv-label .num { width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 12px; display: inline-flex; align-items: center; justify-content: center; }
.rv-label .hint { font-size: 12px; color: var(--muted); font-weight: 400; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: 14px; transition: all .15s; }
.chip:hover { border-color: var(--ink); }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip small { opacity: .7; margin-left: 4px; font-size: 12px; }
.date-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.date-chips .chip { padding: 6px 12px; text-align: center; line-height: 1.3; }
.date-chips .chip b { display: block; font-size: 15px; font-weight: 500; }
.date-chips .chip span { font-size: 11px; opacity: .75; }
.date-pick { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.date-pick input { border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; background: #fff; }
.blocks { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.blk { border: 1.5px solid var(--line); border-radius: var(--radius); padding: 14px 16px; text-align: left; display: flex; gap: 12px; align-items: center; background: #fff; transition: all .15s; }
.blk:hover:not(:disabled) { border-color: var(--ink); }
.blk .circ { width: 34px; height: 34px; font-size: 15px; font-family: var(--serif); }
.blk-t { font-variant-numeric: tabular-nums; font-size: 14px; }
.blk-p { font-size: 13px; color: var(--muted); }
.blk.on { border-color: var(--ink); background: var(--ink); color: #fff; }
.blk.on .circ { border-color: #fff; color: #fff; background: rgba(255,255,255,.08); }
.blk.on .blk-p { color: rgba(255,255,255,.7); }
.blk:disabled { cursor: not-allowed; background: repeating-linear-gradient(45deg, #f6f4f1, #f6f4f1 6px, #efece7 6px, #efece7 12px); color: #aaa; }
.blk:disabled .blk-p { color: #b5b5b5; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
.form label, .auth-pane label { display: flex; flex-direction: column; gap: 5px; font-size: 13px; color: var(--muted); }
.form .full { grid-column: 1 / -1; }
.form input, .form textarea, .auth-pane input { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; font-size: 15px; background: #fff; color: var(--ink); outline: none; transition: border-color .15s; }
.form input:focus, .form textarea:focus, .auth-pane input:focus { border-color: var(--gold); }
.form input[readonly] { background: var(--sand); color: var(--ink-2); }

.rv-side { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 14px; }
.summary { background: #fff; border-radius: var(--radius); padding: 22px; }
.sum-h { font-family: var(--serif); font-size: 18px; margin-bottom: 12px; }
.summary dl { display: grid; grid-template-columns: 52px 1fr; gap: 8px 10px; font-size: 14px; }
.summary dt { color: var(--muted); }
.summary dd { text-align: right; }
.sum-applied { margin-top: 12px; font-size: 13px; color: var(--gold-d); min-height: 1px; }
.sum-applied div { display: flex; justify-content: space-between; }
.sum-total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px dotted #9a9a9a; margin: 14px 0 16px; padding-top: 14px; }
.sum-total strong { font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums; }
.sum-foot { text-align: center; font-size: 12px; color: var(--muted); margin-top: 10px; }
.err { background: #fff2ee; color: #b2401c; border: 1px solid #f3c9bb; border-radius: 8px; padding: 9px 12px; font-size: 13px; margin-bottom: 12px; white-space: pre-line; }
.ok { background: #f1f7ef; color: #3d6b35; border-radius: 8px; padding: 10px 12px; font-size: 14px; }
.notice { background: #fff; border-radius: var(--radius); padding: 18px 22px; }
.notice-h { font-weight: 500; margin-bottom: 8px; font-size: 14px; }
.notice ul { list-style: none; font-size: 13px; color: var(--ink-2); display: flex; flex-direction: column; gap: 6px; }
.notice li { padding-left: 14px; position: relative; }
.notice li::before { content: ''; position: absolute; left: 0; top: 10px; width: 6px; height: 1px; background: var(--gold); }

/* ── CTA ── */
.cta { background: var(--beige); padding: 0 0 100px; }
.cta .wrap-inner { max-width: 860px; }
.cta-grid { display: grid; grid-template-columns: 349fr 495fr; gap: 16px; }
.cta-dark { background: var(--ink); color: #fff; padding: 26px 24px; display: flex; flex-direction: column; gap: 4px; min-height: 206px; }
.cta-dark .pill { margin-top: auto; align-self: flex-end; }
.cta-t { font-size: 28px; letter-spacing: .02em; }
.cta-s { font-size: 14px; color: rgba(255,255,255,.82); }
.cta-light { background: #fff; padding: 26px 24px; display: flex; flex-direction: column; gap: 4px; }
.cta-light .pill { margin-top: auto; align-self: flex-end; }
.cta-t2 { font-family: var(--serif); font-size: 18px; }
.cta-s2 { font-size: 14px; color: var(--ink-2); }

/* ── Footer ── */
.ftr { background: var(--bg); }
.ftr-in { max-width: 860px; margin: 0 auto; padding: 44px 20px; text-align: center; }
.ftr-brand { font-size: 20px; margin-bottom: 8px; }
.ftr-meta { font-size: 14px; color: var(--ink-2); display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 20px; }
.ftr-bar { background: #000; color: #fff; text-align: center; font-size: 13px; padding: 10px 20px; letter-spacing: .03em; }

/* ── LINE 登入 ── */
.pill-line-app { background: #06c755; color: #fff; margin-top: 18px; }
.pill-line-app:hover { background: #05b34c; }
.or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; margin: 16px 0 6px; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--line); }

/* ── Modal ── */
.modal { position: fixed; inset: 0; z-index: 100; background: rgba(30,24,20,.45); display: none; align-items: center; justify-content: center; padding: 20px; }
.modal.open { display: flex; }
.modal-box { position: relative; background: var(--bg); border-radius: 14px; width: 100%; max-width: 400px; padding: 28px 26px 24px; max-height: 90vh; overflow-y: auto; }
.modal-wide { max-width: 560px; }
.modal-box h3 { font-size: 20px; margin-bottom: 14px; }
.x { position: absolute; right: 12px; top: 8px; font-size: 26px; color: var(--muted); line-height: 1; padding: 4px 8px; }
.auth-tabs { display: flex; gap: 22px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.auth-tabs button { padding: 6px 0 10px; font-size: 16px; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.auth-tabs button.on { color: var(--ink); border-bottom-color: var(--ink); font-weight: 500; }
.auth-pane { display: flex; flex-direction: column; gap: 12px; }
.auth-pane .pill-lg { margin-top: 4px; }
.bk { background: #fff; border-radius: var(--radius); padding: 14px 16px; margin-bottom: 10px; display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; }
.bk-t { font-weight: 500; }
.bk-s { font-size: 13px; color: var(--muted); grid-column: 1; }
.bk-st { font-size: 12px; padding: 2px 10px; border-radius: 999px; background: var(--sand); justify-self: end; }
.bk-st.confirmed { background: #e8f2e6; color: #3d6b35; }
.bk-st.pending { background: #fbf1dc; color: #8e6a25; }
.bk-st.cancelled { background: #f1f1f1; color: #999; }
.bk-x { grid-column: 2; justify-self: end; font-size: 12px; color: #b2401c; text-decoration: underline; }

.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(20px); background: var(--ink); color: #fff; padding: 11px 20px; border-radius: 999px; font-size: 14px; opacity: 0; pointer-events: none; transition: all .25s; z-index: 200; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* 沒有空間照片：收起照片區，版面改為純文字＋便利貼 */
.no-photo .hero-photos, .no-photo .hero-bg, .no-photo .feat-photo { display: none; }
.no-photo .hero { padding-bottom: 24px; }
.no-photo .hero-cap { text-align: center; margin-top: 0; }
.no-photo .feat-grid { grid-template-columns: 1fr; justify-items: start; }
.no-photo .sticky { margin: 6px 0 0 8px; min-width: 280px; }

/* ── Responsive ── */
@media (max-width: 960px) {
  .rv { grid-template-columns: 1fr; }
  .rv-side { position: static; }
  .feat-grid { grid-template-columns: 1fr; }
  .sticky { margin: 0 0 -24px; max-width: 300px; }
}
@media (max-width: 720px) {
  .hdr-nav, .hdr-cta, .me-name { display: none; }
  .hdr-in { height: 60px; }
  .hero { padding-top: 32px; }
  .hero-bg { display: none; }
  .hero-photos { grid-template-columns: 0 1fr 0; gap: 0; padding: 0 16px; }
  .hp-side { display: none; }
  .spaces-panel { padding: 52px 0 56px; }
  .paper-in { padding: 36px 22px 30px; transform: none; }
  .paper::before { transform: rotate(-1deg); }
  .price-grid, .cta-grid { grid-template-columns: 1fr; }
  .rv-main { padding: 4px 18px; }
  .form { grid-template-columns: 1fr; }
  .blocks { grid-template-columns: 1fr; }
  .date-chips { flex-wrap: nowrap; overflow-x: auto; width: 100%; padding-bottom: 4px; scrollbar-width: none; }
  .date-chips .chip { flex-shrink: 0; }
}
