:root {
  --cream: #faf5ea;
  --paper: #fffdf8;
  --sand: #f3e9d6;
  --line: #e6d8bd;
  --ink: #2b211d;
  --muted: #6f625a;
  --red: #a3291f;
  --red-deep: #7c1d16;
  --gold: #c08a35;
  --gold-soft: #ecd5a4;
  --jade: #3b6d5c;
  --rose: #b6455c;
  --board: #003f22;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(60, 35, 10, 0.06), 0 8px 24px rgba(60, 35, 10, 0.08);
  --serif: "Noto Serif TC", "Songti TC", "PMingLiU", serif;
  --sans: "Noto Sans TC", "Microsoft JhengHei", "PingFang TC", sans-serif;
  --hand: "LXGW WenKai TC", "Noto Serif TC", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.serif { font-family: var(--serif); }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  background: rgba(250, 245, 234, 0.9);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.seal {
  width: 38px; height: 38px; border-radius: 9px;
  background: var(--red); color: #fff3dc;
  display: grid; place-items: center;
  font-family: var(--serif); font-weight: 700; font-size: 20px;
  box-shadow: inset 0 0 0 2px rgba(255, 230, 190, 0.35);
}
.brand b { font-family: var(--serif); font-size: 19px; letter-spacing: 0.08em; display: block; line-height: 1.2; }
.brand small { font-size: 12px; color: var(--muted); display: block; line-height: 1.3; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { text-decoration: none; font-size: 15px; color: var(--muted); }
.nav a:hover { color: var(--red); }
.cart-btn {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  background: var(--red); color: #fff; border: 0; border-radius: 999px;
  padding: 9px 18px; cursor: pointer; font-size: 15px; text-decoration: none;
}
.cart-btn:hover { background: var(--red-deep); }
.cart-btn svg { width: 18px; height: 18px; }
.badge {
  min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px;
  background: var(--gold-soft); color: var(--red-deep);
  font-size: 13px; font-weight: 700; display: inline-grid; place-items: center;
}
.badge.bump { animation: bump 0.4s ease; }
@keyframes bump { 40% { transform: scale(1.35); } }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 600px; display: flex; align-items: flex-end; color: #fff; overflow: hidden; }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(48, 18, 6, 0.82) 0%, rgba(48, 18, 6, 0.45) 45%, rgba(48, 18, 6, 0) 75%),
    linear-gradient(0deg, rgba(48, 18, 6, 0.55) 0%, rgba(48, 18, 6, 0) 40%);
}
.hero .wrap { position: relative; z-index: 1; padding-top: 120px; padding-bottom: 72px; width: 100%; }
.eyebrow { font-size: 14px; letter-spacing: 0.3em; color: var(--gold-soft); margin: 0 0 14px; }
.hero h1 {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(34px, 5.2vw, 60px); line-height: 1.3; letter-spacing: 0.06em;
  margin: 0 0 18px; max-width: 14em; text-wrap: balance;
}
.hero p.lead { font-size: 18px; max-width: 32em; color: #f7ead3; margin: 0 0 30px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 999px; padding: 12px 26px; cursor: pointer;
  font-size: 16px; font-weight: 500; text-decoration: none; transition: background 0.15s, transform 0.15s;
}
.btn:active { transform: translateY(1px); }
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: #a8762a; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-deep); }
.btn-ghost { background: rgba(255, 255, 255, 0.12); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.22); }
.btn-line { background: transparent; color: var(--red); box-shadow: inset 0 0 0 1.5px var(--red); }
.btn-line:hover { background: rgba(163, 41, 31, 0.06); }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }
.hero .perks { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 38px; font-size: 14px; color: #f2e2c4; }
.hero .perks span::before { content: "✦"; color: var(--gold-soft); margin-right: 6px; }

/* ---------- Sections ---------- */
section { padding: 84px 0; }
.sec-head { text-align: center; max-width: 680px; margin: 0 auto 44px; }
.sec-head .label { color: var(--red); font-size: 14px; letter-spacing: 0.3em; margin: 0 0 8px; }
.sec-head h2 { font-family: var(--serif); font-size: clamp(28px, 3.4vw, 38px); margin: 0 0 12px; letter-spacing: 0.06em; line-height: 1.35; }
.sec-head p { color: var(--muted); margin: 0; }
.ornament { width: 72px; height: 10px; margin: 0 auto 14px; color: var(--gold); }

/* Category cards */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cat-card {
  background: var(--paper); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); text-decoration: none; display: flex; flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}
.cat-card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(60, 35, 10, 0.16); }
.cat-card .ph { aspect-ratio: 16 / 10; overflow: hidden; position: relative; }
.cat-card .ph img { width: 100%; height: 100%; object-fit: cover; }
.cat-card .num {
  position: absolute; left: 16px; top: 14px; font-family: var(--serif);
  background: rgba(255, 253, 248, 0.92); color: var(--red); border-radius: 999px;
  padding: 2px 12px; font-size: 13px; letter-spacing: 0.1em;
}
.cat-card .body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.cat-card h3 { font-family: var(--serif); font-size: 23px; margin: 0 0 4px; letter-spacing: 0.04em; }
.cat-card .tag { color: var(--gold); font-size: 14px; margin: 0 0 10px; letter-spacing: 0.12em; }
.cat-card p { color: var(--muted); font-size: 15px; margin: 0 0 16px; }
.cat-card .items { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.chip {
  font-size: 13px; padding: 3px 11px; border-radius: 999px;
  background: var(--sand); color: var(--ink); white-space: nowrap;
}

/* Quiz */
.quiz { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 56px 0; }
.quiz .inner { display: grid; grid-template-columns: 300px 1fr; gap: 40px; align-items: center; }
.quiz h2 { font-family: var(--serif); font-size: 28px; margin: 6px 0 8px; line-height: 1.4; }
.quiz .label { color: var(--red); font-size: 14px; letter-spacing: 0.3em; margin: 0; }
.quiz p { color: var(--muted); margin: 0; font-size: 15px; }
.quiz-opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.quiz-opt {
  text-align: left; background: var(--cream); border: 1px solid var(--line); border-radius: 12px;
  padding: 14px 16px; cursor: pointer; transition: border-color 0.15s, background 0.15s;
}
.quiz-opt:hover { border-color: var(--gold); background: #fff8e9; }
.quiz-opt b { display: block; font-family: var(--serif); font-size: 17px; }
.quiz-opt span { font-size: 13px; color: var(--muted); }
.quiz-opt em { font-style: normal; font-size: 13px; color: var(--red); display: block; margin-top: 4px; }

/* Services */
.cat-block + .cat-block { margin-top: 72px; }
.cat-band {
  display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap;
  border-bottom: 2px solid var(--red); padding-bottom: 12px; margin-bottom: 28px;
}
.cat-band h3 { font-family: var(--serif); font-size: 28px; margin: 0; letter-spacing: 0.06em; }
.cat-band .tag { color: var(--gold); letter-spacing: 0.15em; font-size: 14px; }
.cat-band p { color: var(--muted); margin: 0 0 0 auto; font-size: 14px; }
.svc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.svc {
  background: var(--paper); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  display: flex; flex-direction: column; transition: box-shadow 0.3s;
}
@media (min-width: 761px) {
  /* 奇數張時，最後一張橫跨兩欄、左圖右文 */
  .svc-grid > .svc:last-child:nth-child(odd) { grid-column: 1 / -1; flex-direction: row; }
  .svc-grid > .svc:last-child:nth-child(odd) .ph { flex: 0 0 50%; aspect-ratio: auto; min-height: 420px; }
}
.svc.flash { box-shadow: 0 0 0 3px var(--gold), var(--shadow); }
.svc .ph { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--sand); }
.svc .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
.svc:hover .ph img { transform: scale(1.03); }
.svc .axes { position: absolute; left: 14px; top: 14px; display: flex; gap: 6px; }
.axis {
  font-size: 12px; font-weight: 500; padding: 3px 10px; border-radius: 999px; color: #fff; letter-spacing: 0.1em;
}
.axis-慈悲 { background: var(--rose); }
.axis-智慧 { background: var(--jade); }
.axis-福德 { background: var(--gold); }
.svc .gift-flag {
  position: absolute; right: 14px; top: 14px; background: rgba(255, 253, 248, 0.94); color: var(--red);
  font-size: 12px; padding: 3px 10px; border-radius: 999px;
}
.svc .body { padding: 24px 26px 26px; display: flex; flex-direction: column; flex: 1; }
.svc h4 { font-family: var(--serif); font-size: 25px; margin: 0 0 6px; letter-spacing: 0.04em; }
.svc .slogan { font-family: var(--serif); color: var(--red); font-size: 15px; margin: 0 0 14px; line-height: 1.6; }
.svc .title { font-weight: 700; margin: 0 0 6px; font-size: 16px; }
.svc .desc { color: var(--muted); font-size: 15px; margin: 0 0 18px; }
.buy { margin-top: auto; border-top: 1px dashed var(--line); padding-top: 18px; }
.buy > .select { width: 100%; }
.buy label.f { font-size: 13px; color: var(--muted); display: block; margin-bottom: 6px; }
.buy-row { display: flex; gap: 10px; align-items: stretch; }
.select {
  flex: 1; min-width: 0; appearance: none; background: var(--cream) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%236f625a' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 14px center;
  border: 1px solid var(--line); border-radius: 10px; padding: 10px 38px 10px 14px; cursor: pointer;
}
.select:focus, .input:focus, .textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.hint { font-size: 13px; color: var(--jade); min-height: 1.5em; margin: 8px 0 0; }
.price-row { display: flex; align-items: center; gap: 14px; margin-top: 14px; flex-wrap: wrap; }
.price { font-family: var(--serif); font-size: 30px; font-weight: 700; color: var(--red-deep); line-height: 1; }
.price small { font-size: 14px; color: var(--muted); font-weight: 400; margin-left: 2px; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; background: var(--cream); margin-left: auto; }
.stepper button { width: 34px; height: 34px; border: 0; background: none; cursor: pointer; font-size: 18px; color: var(--muted); border-radius: 999px; }
.stepper button:hover { color: var(--red); }
.stepper span { min-width: 26px; text-align: center; font-weight: 700; }
.add-btn { padding: 10px 22px; }
.note { font-size: 13px; color: var(--muted); margin: 12px 0 0; display: flex; gap: 6px; }
.note.gift { color: var(--red); }

/* Master */
.master { background: var(--sand); }
.master .inner { display: grid; grid-template-columns: 1fr 1.15fr; gap: 48px; align-items: center; }
.master .pics { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.master .pics img { border-radius: var(--radius); width: 100%; height: 100%; object-fit: cover; }
.master .pics img:first-child { grid-row: span 2; aspect-ratio: 4 / 5; }
.master h2 { font-family: var(--serif); font-size: 32px; margin: 4px 0 6px; letter-spacing: 0.06em; }
.master .label { color: var(--red); letter-spacing: 0.3em; font-size: 14px; margin: 0; }
.master .quote { font-family: var(--serif); color: var(--red-deep); font-size: 19px; margin: 0 0 16px; }
.master p { color: var(--muted); margin: 0 0 14px; }
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 22px; }
.flow div { background: var(--paper); border-radius: 12px; padding: 14px; text-align: center; font-size: 14px; }
.flow b { display: block; font-family: var(--serif); color: var(--red); font-size: 20px; }

/* Board (你講我聽) */
.board-sec .inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: start; }
.chalk { position: relative; }
.chalk img { width: 100%; border-radius: 6px; }
.chalk .txt {
  position: absolute; left: 10%; right: 10%; top: 10%; bottom: 14%;
  color: #f4f1e6; font-family: var(--hand); display: flex; flex-direction: column; justify-content: center;
  text-shadow: 0 0 1px rgba(255, 255, 255, 0.4);
}
.chalk h2 { font-size: clamp(36px, 5vw, 58px); margin: 0 0 8px; letter-spacing: 0.12em; font-weight: 700; }
.chalk p { font-size: clamp(15px, 1.7vw, 20px); margin: 0; line-height: 1.8; opacity: 0.92; }
.chalk p.small { font-size: clamp(13px, 1.3vw, 16px); margin-top: 12px; color: #f2d98f; }
.form-card { background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field > span { font-size: 14px; font-weight: 500; }
.field > span i { color: var(--red); font-style: normal; margin-left: 2px; }
.input, .textarea {
  background: var(--cream); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; width: 100%;
}
.textarea { min-height: 120px; resize: vertical; }
.input.err, .select.err, .textarea.err { border-color: var(--red); background: #fff4f1; }
.err-msg { color: var(--red); font-size: 13px; }
.msgs { margin-top: 28px; }
.msgs h3 { font-family: var(--serif); font-size: 18px; margin: 0 0 12px; }
.msg { background: var(--paper); border-left: 3px solid var(--gold); border-radius: 0 10px 10px 0; padding: 12px 16px; margin-bottom: 10px; }
.msg .meta { font-size: 13px; color: var(--muted); display: flex; gap: 10px; flex-wrap: wrap; }
.msg .meta b { color: var(--ink); }
.msg p { margin: 4px 0 0; font-size: 15px; }
.msg .reply { margin-top: 8px; font-size: 14px; color: var(--jade); }

/* Footer */
footer { background: #3a1712; color: #e9d7b8; padding: 52px 0 28px; font-size: 14px; }
footer .cols { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; }
footer h4 { font-family: var(--serif); color: #fff3dc; font-size: 17px; margin: 0 0 10px; }
footer p { margin: 0 0 6px; color: #d2bd98; }
footer .umi { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
footer .umi img { width: 56px; height: 56px; border-radius: 50%; }
footer .fine { border-top: 1px solid rgba(233, 215, 184, 0.18); margin-top: 32px; padding-top: 18px; color: #a9926e; font-size: 13px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ---------- Cart drawer ---------- */
.scrim { position: fixed; inset: 0; background: rgba(35, 18, 10, 0.45); opacity: 0; pointer-events: none; transition: opacity 0.25s; z-index: 60; }
.scrim.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100%); background: var(--paper); z-index: 61;
  transform: translateX(100%); transition: transform 0.3s ease, visibility 0.3s; display: flex; flex-direction: column;
  visibility: hidden;
}
.drawer.open { transform: none; visibility: visible; box-shadow: -10px 0 40px rgba(35, 18, 10, 0.2); }
.drawer header { display: flex; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.drawer header h3 { font-family: var(--serif); margin: 0; font-size: 21px; }
.icon-btn { margin-left: auto; width: 36px; height: 36px; border-radius: 999px; border: 0; background: var(--sand); cursor: pointer; font-size: 18px; }
.drawer .list { flex: 1; overflow-y: auto; padding: 8px 22px; }
.empty { text-align: center; color: var(--muted); padding: 60px 10px; }
.empty .big { font-size: 42px; color: var(--gold); }
.line { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: center; }
.line img { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; }
.line .nm { font-weight: 500; font-size: 15px; line-height: 1.45; }
.line .pr { font-size: 13px; color: var(--muted); }
.line .rt { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.line .rt b { font-family: var(--serif); color: var(--red-deep); }
.line .stepper button { width: 28px; height: 28px; font-size: 16px; }
.rm { border: 0; background: none; color: var(--muted); font-size: 12px; cursor: pointer; text-decoration: underline; padding: 0; }
.sum { border-top: 1px solid var(--line); padding: 18px 22px 22px; background: var(--cream); }
.sum .row { display: flex; justify-content: space-between; font-size: 15px; margin-bottom: 6px; }
.sum .row.disc { color: var(--jade); }
.sum .row.total { font-size: 18px; font-weight: 700; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); }
.sum .row.total span:last-child { font-family: var(--serif); color: var(--red-deep); font-size: 26px; }
.tier { font-size: 13px; color: var(--red); background: #fff1e4; border-radius: 8px; padding: 7px 12px; margin-bottom: 12px; }
.tiers { display: flex; gap: 6px; margin-bottom: 12px; }
.tiers span { flex: 1; text-align: center; font-size: 12px; padding: 5px 0; border-radius: 8px; background: var(--sand); color: var(--muted); }
.tiers span.on { background: var(--red); color: #fff; }
.sum .btn { width: 100%; margin-top: 14px; }

/* Toast */
.toast {
  position: fixed; left: 50%; top: 76px; transform: translate(-50%, -12px); opacity: 0; z-index: 80;
  width: max-content; max-width: calc(100% - 32px); flex-wrap: wrap; justify-content: center; text-align: center;
  box-shadow: 0 10px 30px rgba(35, 18, 10, 0.25);
  background: var(--ink); color: #fff; border-radius: 999px; padding: 11px 22px; font-size: 15px;
  transition: opacity 0.25s, transform 0.25s; pointer-events: none; display: flex; gap: 10px; align-items: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast b { color: var(--gold-soft); font-weight: 500; }

/* ---------- Checkout ---------- */
.steps { display: flex; gap: 0; margin: 34px 0 30px; counter-reset: s; }
.steps li { list-style: none; flex: 1; text-align: center; position: relative; color: var(--muted); font-size: 14px; }
.steps li::before {
  counter-increment: s; content: counter(s); display: grid; place-items: center; margin: 0 auto 6px;
  width: 32px; height: 32px; border-radius: 999px; background: var(--sand); font-weight: 700; position: relative; z-index: 1;
}
.steps li + li::after { content: ""; position: absolute; top: 16px; right: 50%; width: 100%; height: 2px; background: var(--line); }
.steps li.done::before, .steps li.on::before { background: var(--red); color: #fff; }
.steps li.on { color: var(--ink); font-weight: 700; }
.steps li.done + li::after, .steps li.on::after { background: var(--red); }
.steps ol { display: contents; }
.co { display: grid; grid-template-columns: 1fr 380px; gap: 28px; align-items: start; padding-bottom: 80px; }
.co .panel { background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px 28px; margin-bottom: 22px; }
.panel h2 { font-family: var(--serif); font-size: 22px; margin: 0 0 4px; display: flex; align-items: center; gap: 10px; }
.panel h2 .n { width: 28px; height: 28px; border-radius: 8px; background: var(--red); color: #fff; display: grid; place-items: center; font-size: 15px; }
.panel .sub { color: var(--muted); font-size: 14px; margin: 0 0 20px; }
.radio-row { display: flex; gap: 10px; flex-wrap: wrap; }
.radio-card {
  flex: 1; min-width: 150px; border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; cursor: pointer;
  display: flex; gap: 10px; align-items: flex-start; background: var(--cream);
}
.radio-card:has(input:checked) { border-color: var(--red); background: #fff6f2; }
.radio-card input { accent-color: var(--red); margin-top: 5px; }
.radio-card b { display: block; font-size: 15px; }
.radio-card small { color: var(--muted); font-size: 13px; }
.donor {
  border: 1px solid var(--line); border-radius: 12px; padding: 18px 18px 16px; margin-bottom: 14px; background: var(--cream);
  position: relative; animation: rise 0.3s ease;
}
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
.donor .hd { display: flex; align-items: center; margin-bottom: 12px; }
.donor .hd b { font-family: var(--serif); font-size: 17px; }
.donor .hd .tagn { background: var(--gold); color: #fff; font-size: 12px; border-radius: 999px; padding: 1px 10px; margin-left: 8px; }
.donor .hd button { margin-left: auto; border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 13px; text-decoration: underline; }
.donor .input, .donor .select { background-color: var(--paper); }
.dob { display: flex; gap: 8px; }
.dob .select { flex: 0 0 96px; }
.add-donor {
  width: 100%; border: 2px dashed var(--gold); background: #fffaf0; color: var(--red-deep); border-radius: 12px;
  padding: 16px; cursor: pointer; font-size: 16px; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 10px;
}
.add-donor:hover { background: #fff3dc; }
.add-donor .plus { width: 30px; height: 30px; border-radius: 999px; background: var(--red); color: #fff; display: grid; place-items: center; font-size: 22px; line-height: 1; }
.assign { font-size: 13px; margin-top: 12px; padding: 10px 14px; border-radius: 10px; background: #eef5f1; color: var(--jade); }
.assign.warn { background: #fff1e4; color: #9a5a12; }
.check { display: inline-flex; gap: 8px; align-items: center; font-size: 14px; cursor: pointer; }
.check input { accent-color: var(--red); width: 16px; height: 16px; flex: none; }
.check.field { flex-direction: row; color: var(--muted); }
.aside { position: sticky; top: 84px; }
.aside .panel { padding: 22px; }
.aside .line { grid-template-columns: 52px 1fr auto; }
.aside .line img { width: 52px; height: 52px; }
.demo-note { font-size: 13px; color: var(--muted); background: var(--sand); border-radius: 10px; padding: 10px 14px; margin-top: 14px; }
.done-box { text-align: center; padding: 30px 10px 10px; }
.done-box .ok { width: 76px; height: 76px; border-radius: 999px; background: var(--red); color: #fff; display: grid; place-items: center; font-size: 38px; margin: 0 auto 16px; }
.done-box h2 { justify-content: center; font-size: 28px; }
.kv { display: grid; grid-template-columns: 120px 1fr; gap: 8px 16px; text-align: left; max-width: 520px; margin: 22px auto 0; font-size: 15px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 500; }
.pay-box { max-width: 520px; margin: 22px auto 0; text-align: left; background: var(--cream); border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; }
.pay-box h3 { font-family: var(--serif); margin: 0 0 8px; font-size: 17px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 10px; }
.tbl th, .tbl td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); }
.tbl th { color: var(--muted); font-weight: 500; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .cat-grid { grid-template-columns: 1fr 1fr; }
  .quiz .inner, .master .inner, .board-sec .inner { grid-template-columns: 1fr; }
  .co { grid-template-columns: 1fr; }
  .aside { position: static; order: -1; }
}
@media (max-width: 760px) {
  .nav { display: none; }
  .topbar .cart-btn { margin-left: auto; }
  .hero { min-height: 540px; }
  .hero::after { background: linear-gradient(0deg, rgba(48, 18, 6, 0.85) 10%, rgba(48, 18, 6, 0.25) 75%); }
  section { padding: 60px 0; }
  .cat-grid, .svc-grid { grid-template-columns: 1fr; }
  .quiz-opts { grid-template-columns: 1fr 1fr; }
  .cat-band p { margin-left: 0; }
  .grid2 { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr 1fr; }
  footer .cols { grid-template-columns: 1fr; }
  .co .panel { padding: 22px 18px; }
  .svc .body { padding: 20px; }
  .buy-row { flex-wrap: wrap; }
  .kv { grid-template-columns: 96px 1fr; }
  .wrap { padding: 0 16px; }
}

/* ======================================================================
   正式站新增（階段二）：導覽、輪播、商品頁、結帳／訂單、解籤
   ====================================================================== */
.nav a.on { color: var(--red); font-weight: 700; }
.menu-btn { display: none; width: 40px; height: 40px; border: 0; background: var(--sand); border-radius: 10px; cursor: pointer; padding: 10px 9px; flex-direction: column; justify-content: space-between; }
.menu-btn span { display: block; height: 2px; background: var(--ink); border-radius: 2px; }
.muted { color: var(--muted); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.empty { color: var(--muted); text-align: center; padding: 40px 0; }

/* 訊息 */
.flash { padding-top: 16px; }
.flash-msg { border-radius: 10px; padding: 12px 16px; margin-bottom: 10px; background: #eef5f1; color: var(--jade); font-size: 15px; }
.flash-msg.error { background: #fff1ee; color: var(--red-deep); }
.flash-msg.warning { background: #fff6e5; color: #8a5a00; }

/* 首頁橫幅輪播 */
.hero-carousel { position: relative; color: #fff; padding: 0; }
.hc-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.hc-track::-webkit-scrollbar { display: none; }
.hc-slide { position: relative; flex: 0 0 100%; scroll-snap-align: start; min-height: 580px; display: flex; align-items: flex-end; overflow: hidden; }
.hc-slide > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hc-slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(48,18,6,.82) 0%, rgba(48,18,6,.45) 45%, rgba(48,18,6,0) 78%), linear-gradient(0deg, rgba(48,18,6,.5) 0%, rgba(48,18,6,0) 40%); }
.hc-text { position: relative; z-index: 1; padding-top: 110px; padding-bottom: 90px; width: 100%; }
.hc-text h1 { font-family: var(--serif); font-weight: 700; font-size: clamp(32px, 5vw, 58px); line-height: 1.3; letter-spacing: .06em; margin: 0 0 16px; max-width: 14em; text-wrap: balance; }
.hc-text .lead { font-size: 18px; color: #f7ead3; max-width: 32em; margin: 0 0 26px; }
.hc-arrow, .pc-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 44px; height: 44px; border-radius: 999px; border: 0; cursor: pointer; font-size: 28px; line-height: 1; display: grid; place-items: center; }
.hc-arrow { background: rgba(255,255,255,.18); color: #fff; backdrop-filter: blur(4px); }
.hc-arrow:hover { background: rgba(255,255,255,.32); }
.hc-arrow.prev { left: 18px; } .hc-arrow.next { right: 18px; }
.hc-dots, .pc-dots { display: flex; gap: 8px; justify-content: center; }
.hc-dots { position: absolute; left: 0; right: 0; bottom: 26px; z-index: 2; }
.hc-dots button, .pc-dots button { width: 9px; height: 9px; border-radius: 999px; border: 0; padding: 0; cursor: pointer; background: rgba(255,255,255,.5); transition: width .2s, background .2s; }
.hc-dots button.on { width: 26px; background: var(--gold-soft); }

/* 商品輪播：電腦 3 張、手機 1 張 */
.cat-section { padding: 72px 0 40px; }
.cat-section + .cat-section { padding-top: 40px; }
.pc { position: relative; }
.pc-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 56px) / 3); gap: 28px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 6px 2px 12px; }
.pc-track::-webkit-scrollbar { display: none; }
.pc-track > .svc { scroll-snap-align: start; }
.pc-track { justify-content: safe center; }
.pc .price-row .price { flex: 1 0 100%; }
.pc .price-row .stepper { margin-left: 0; }
.pc .price-row .add-btn { margin-left: auto; }
.pc-arrow { background: var(--paper); color: var(--red); box-shadow: var(--shadow); }
.pc-arrow:hover { background: var(--red); color: #fff; }
.pc-arrow.prev { left: -22px; } .pc-arrow.next { right: -22px; }
.pc.single .pc-arrow, .pc.single .pc-dots { display: none; }
.pc-dots { margin-top: 14px; }
.pc-dots button { background: var(--line); }
.pc-dots button.on { width: 26px; background: var(--red); }
.more { text-align: center; margin: 18px 0 0; }
.more a { color: var(--red); text-decoration: none; font-weight: 500; }
.svc .desc.clamp { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.svc h4 a { text-decoration: none; }
.svc h4 a:hover { color: var(--red); }
a.quiz-opt { text-decoration: none; color: inherit; display: block; }

/* 愛心小棧入口 */
.love-teaser { background: var(--sand); padding: 56px 0; }
.love-teaser .inner { display: flex; align-items: center; gap: 24px; justify-content: space-between; flex-wrap: wrap; }
.love-teaser h2 { font-family: var(--serif); margin: 4px 0 6px; font-size: 28px; }
.love-teaser .label { color: var(--red); letter-spacing: .3em; font-size: 14px; margin: 0; }
.love-teaser p { margin: 0; color: var(--muted); }

/* 內頁標頭 */
.page-head { position: relative; padding: 72px 0 56px; color: #fff; background: linear-gradient(120deg, #5b1f16, #8c3a1f 60%, #b06a2a); overflow: hidden; }
.page-head::before { content: ""; position: absolute; inset: 0; background-image: var(--bg, none); background-size: cover; background-position: center; opacity: .25; }
.page-head .wrap { position: relative; }
.page-head h1 { font-family: var(--serif); font-size: clamp(28px, 4vw, 42px); margin: 0 0 10px; letter-spacing: .06em; }
.page-head .lead { color: #f7ead3; margin: 0; max-width: 40em; }
.page-head.small { padding: 48px 0 36px; }

/* 商品頁 */
.pd { padding: 32px 0 80px; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); }
.pd-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: start; }
.pd-img img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4 / 3; object-fit: cover; }
.pd-info .svc { box-shadow: none; background: transparent; }
.pd-info .svc .ph { display: none; }
.pd-info .svc .body { padding: 0; }
.pd-info .svc h4 { font-size: 32px; }
.gift-box { display: flex; gap: 16px; align-items: center; background: #fff6ee; border: 1px solid var(--gold-soft); border-radius: var(--radius); padding: 16px 20px; margin-top: 28px; }
.gift-box img { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; }
.gift-box p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.related-title { font-family: var(--serif); font-size: 22px; margin: 48px 0 18px; }
.svc-grid.three { grid-template-columns: repeat(3, 1fr); }

/* 結帳、訂單 */
.edit-link { margin-left: auto; font-size: 13px; font-family: var(--sans); color: var(--red); font-weight: 400; }
.order-card { background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); padding: 30px; max-width: 820px; margin: 0 auto 80px; }
.order-card h2 { font-size: 26px; margin: 0 0 6px; }
.order-card .pay-box { max-width: none; }
.big-num { font-family: var(--serif); font-size: 20px; color: var(--red-deep); }
.gift-note { color: var(--red); }
.actions-row { display: flex; gap: 10px; justify-content: center; margin-top: 26px; flex-wrap: wrap; }
.account-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding-top: 8px; padding-bottom: 80px; }
.account-grid .panel { background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px 28px; }
.account-grid .panel.wide { grid-column: 1 / -1; }
.account-grid h2 { font-family: var(--serif); margin: 0 0 8px; font-size: 22px; }
.btn-line-green { background: #06c755; color: #fff; width: 100%; }
.btn-ghost-dark { background: transparent; color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); }

/* 線上抽籤 */
.fortune { padding: 48px 0 90px; }
.fortune-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 28px; align-items: start; }
.fortune .panel { background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px 28px; }
.fortune-stage { text-align: center; position: sticky; top: 84px; }
.fortune-grid:has(#result[hidden]) { grid-template-columns: minmax(0, 560px); justify-content: center; }
.topic-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center; margin-bottom: 22px; }
.chip-radio input { position: absolute; opacity: 0; }
.chip-radio span { display: inline-block; padding: 6px 14px; border-radius: 999px; background: var(--sand); cursor: pointer; font-size: 14px; }
.chip-radio input:checked + span { background: var(--red); color: #fff; }
.chip-radio input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.coins { display: flex; gap: 18px; justify-content: center; margin: 6px 0 12px; perspective: 600px; }
.coin { width: 58px; height: 58px; border-radius: 999px; display: grid; place-items: center; font-family: var(--serif); font-weight: 700; font-size: 20px; color: #6b4a12; background: radial-gradient(circle at 35% 30%, #fff1c4, #d8a640 60%, #a8741d); box-shadow: inset 0 0 0 4px rgba(120, 80, 10, .35), 0 4px 10px rgba(60, 35, 10, .25); }
.coin.spin { animation: coinspin .65s linear infinite; }
.coin.tails { color: #f6e3b4; background: radial-gradient(circle at 35% 30%, #c79a45, #8b5d1a 65%, #5e3d0e); }
@keyframes coinspin { to { transform: rotateY(360deg); } }
.throw-status { color: var(--muted); min-height: 1.7em; margin: 0 0 14px; }
.hex-lines { display: flex; flex-direction: column; gap: 9px; align-items: center; margin: 0 auto 22px; min-height: 30px; }
.yao { display: grid; grid-template-columns: 44px 72px 72px 32px; align-items: center; animation: rise .3s ease; }
.yao .yao-label { font-size: 12px; color: var(--muted); text-align: right; padding-right: 10px; }
.yao .bar { height: 12px; background: var(--red-deep); }
.yao.yang .bar:first-of-type { border-radius: 3px 0 0 3px; }
.yao.yang .bar:last-of-type { border-radius: 0 3px 3px 0; }
.yao.yin .bar { border-radius: 3px; }
.yao.yin .bar:first-of-type { margin-right: 8px; }
.yao.yin .bar:last-of-type { margin-left: 8px; }
.yao.moving .bar { background: var(--gold); }
.yao .mv { font-size: 12px; color: var(--gold); font-weight: 700; padding-left: 8px; }
.fine-note { font-size: 12px; color: var(--muted); margin: 12px 0 0; }
.fortune-result .level { display: inline-block; background: var(--red); color: #fff; border-radius: 999px; padding: 4px 14px; font-size: 14px; margin: 0 0 14px; }
.hex-title { display: flex; gap: 16px; align-items: center; }
.hex-symbol { font-size: 64px; line-height: 1; color: var(--red-deep); }
.hex-title h2 { font-family: var(--serif); margin: 0; font-size: 26px; }
.hex-title p { margin: 4px 0 0; }
.fortune-result blockquote { margin: 16px 0; padding: 12px 16px; background: var(--cream); border-left: 3px solid var(--gold); font-family: var(--serif); border-radius: 0 10px 10px 0; }
.focus { background: #fff6ee; border: 1px solid var(--gold-soft); border-radius: 12px; padding: 12px 16px; margin: 14px 0; }
.focus p { margin: 4px 0 0; }
.aspects { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0; }
.aspect { background: var(--cream); border-radius: 10px; padding: 10px 14px; font-size: 14px; }
.aspect b { display: block; color: var(--red); font-family: var(--serif); }
.advice { font-weight: 500; color: var(--jade); }
.changed { border-top: 1px dashed var(--line); padding-top: 14px; margin-top: 14px; }
.changed p { margin: 4px 0; }
.changed small { color: var(--muted); }
.donate { margin-top: 20px; background: var(--sand); border-radius: 12px; padding: 16px 18px; }
.donate p { margin: 4px 0 12px; color: var(--muted); font-size: 14px; }
.donate-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.donate-btns .btn { padding: 8px 16px; }

.member-head { display: flex; align-items: center; gap: 14px; }
.member-head img { width: 56px; height: 56px; border-radius: 999px; object-fit: cover; }
.input.locked { background: var(--sand); color: var(--muted); }
.cert { margin: 20px auto 0; max-width: 360px; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.cert img { width: 100%; border-radius: 10px; box-shadow: var(--shadow); }
a.btn-line-green { text-decoration: none; }

@media (max-width: 1000px) {
  .pd-grid, .fortune-grid, .account-grid { grid-template-columns: 1fr; }
  .fortune-stage { position: static; }
  .svc-grid.three { grid-template-columns: 1fr 1fr; }
  .pc-arrow.prev { left: -8px; } .pc-arrow.next { right: -8px; }
}
@media (max-width: 760px) {
  .menu-btn { display: flex; margin-left: 8px; }
  .cart-btn .cart-label { display: none; }
  .nav { display: none; }
  .menu-open .nav { display: flex; flex-direction: column; gap: 0; position: absolute; top: 64px; left: 0; right: 0; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); padding: 6px 16px 12px; }
  .menu-open .nav a { padding: 12px 4px; border-bottom: 1px solid var(--line); font-size: 16px; }
  .topbar .wrap { position: relative; gap: 12px; }
  .brand b { font-size: 17px; }
  .hc-slide { min-height: 520px; }
  .hc-slide::after { background: linear-gradient(0deg, rgba(48,18,6,.85) 10%, rgba(48,18,6,.25) 75%); }
  .hc-arrow { display: none; }
  .pc-track { grid-auto-columns: 100%; gap: 16px; }
  .pc-arrow { display: none; }
  .svc-grid.three { grid-template-columns: 1fr; }
  .aspects { grid-template-columns: 1fr; }
  .order-card { padding: 22px 16px; }
  .tbl { font-size: 13px; }
}
@media print {
  .topbar, footer, .actions-row, .pay-form, .steps { display: none !important; }
  .order-card { box-shadow: none; }
}

/* 法會圓滿回報（訂單頁） */
.ceremony h3 { color: var(--red-deep); }
.ceremony .ce-date { font-size: 13px; color: #8a7a66; margin: -6px 0 10px; }
.ceremony .ce-text { white-space: pre-wrap; line-height: 1.8; margin: 0 0 14px; }
.ceremony .ce-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.ceremony .ce-photos figure { margin: 0; }
.ceremony .ce-photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; display: block; }
.ceremony .ce-photos figcaption { font-size: 13px; color: #8a7a66; margin-top: 4px; }

/* 結帳頁：未登入時提醒用 LINE 登入 */
.line-login-tip { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; line-height: 1.7; }
.line-login-tip .btn { padding: 6px 16px; font-size: 14px; }
.line-login-tip small { width: 100%; color: #8a7a66; }

/* ---------- 平台首頁（沒有宮廟時） ---------- */
.brand-logo { width: 38px; height: 38px; border-radius: 50%; }
.temple-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.temple-card { display: flex; gap: 16px; align-items: flex-start; padding: 22px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); text-decoration: none; transition: transform .15s; }
.temple-card:hover { transform: translateY(-2px); }
.temple-card > img, .temple-card > .seal { width: 56px; height: 56px; flex: none; border-radius: 12px; object-fit: cover; }
.temple-card h3 { font-family: var(--serif); margin: 0 0 4px; font-size: 20px; }
.temple-card p { margin: 0 0 6px; font-size: 14px; }
.temple-card .muted { color: var(--muted); }
.temple-card .go { color: var(--red); font-weight: 700; font-size: 14px; }

/* ---------- 宮廟行事曆 ---------- */
.cat-birthday { --cat: #a3291f; --cat-bg: #f8e3df; }
.cat-ceremony { --cat: #8a5a12; --cat-bg: #f6ead2; }
.cat-festival { --cat: #3b6d5c; --cat-bg: #e0eee8; }
.cat-blessing { --cat: #b06a2a; --cat-bg: #f9e8d6; }
.cat-other { --cat: #6f625a; --cat-bg: #eee8e0; }
section.cal { padding: 40px 0 72px; }
.cal-year { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 22px; }
.cal-year > b { font-family: var(--serif); font-size: 20px; }
.cal-arrow { text-decoration: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); border: 1px solid var(--line); color: var(--red); font-size: 20px; line-height: 1; }
.cal-months { display: flex; flex-wrap: wrap; gap: 6px; margin-left: 12px; }
.cal-months a { text-decoration: none; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); font-size: 14px; display: inline-flex; align-items: center; gap: 4px; }
.cal-months a small { background: var(--gold-soft); color: var(--red-deep); border-radius: 999px; font-size: 11px; padding: 0 6px; line-height: 17px; }
.cal-months a.none { color: var(--muted); }
.cal-months a.on { background: var(--red); color: #fff; border-color: var(--red); }
.cal-months a.on small { background: rgba(255, 255, 255, .25); color: #fff; }
.cal-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.cal-nav h2 { font-family: var(--serif); font-size: 24px; margin: 0; }
.cal-nav a { text-decoration: none; color: var(--red); font-weight: 500; }
.cal-today { text-align: center; margin: 0 0 10px; font-size: 14px; }
.cal-today a { color: var(--red); }
.cal-grid { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); margin-top: 12px; }
.cal-row { display: grid; grid-template-columns: repeat(7, 1fr); }
.cal-head div { text-align: center; padding: 8px 0; font-size: 14px; color: var(--muted); background: var(--sand); }
.cal-head div:first-child, .cal-head div:last-child { color: var(--red); }
.cal-cell { min-height: 104px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); padding: 6px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cal-cell:first-child { border-left: 0; }
.cal-cell .d { font-size: 14px; color: var(--ink); }
.cal-cell.out { background: #faf6ee; }
.cal-cell.out .d { color: #c5b9a8; }
.cal-cell.today .d { background: var(--red); color: #fff; border-radius: 50%; width: 26px; height: 26px; display: grid; place-items: center; }
.cal-ev { display: block; text-decoration: none; font-size: 12.5px; line-height: 1.35; padding: 3px 6px; border-radius: 6px; background: var(--cat-bg); color: var(--cat); border-left: 3px solid var(--cat); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-ev:hover { filter: brightness(.96); }
.cal-legend { display: flex; flex-wrap: wrap; gap: 14px; margin: 12px 0 0; font-size: 13px; color: var(--muted); }
.cal-legend span { display: inline-flex; align-items: center; gap: 6px; }
.cal-legend i { width: 12px; height: 12px; border-radius: 3px; background: var(--cat); display: inline-block; }
.cal-list-title { font-family: var(--serif); font-size: 22px; margin: 40px 0 14px; }
.cal-list { display: grid; gap: 12px; }
.cal-item { display: flex; gap: 18px; align-items: center; padding: 16px 20px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; box-shadow: var(--shadow); }
.cal-item:hover { border-color: var(--gold); }
.cal-item .when { flex: none; width: 70px; text-align: center; border-radius: 12px; padding: 8px 0; background: var(--cat-bg); color: var(--cat); }
.cal-item .when b { display: block; font-family: var(--serif); font-size: 22px; line-height: 1.2; }
.cal-item .when small { font-size: 12px; }
.cal-item .what { flex: 1; min-width: 0; }
.cal-item h4 { font-family: var(--serif); font-size: 18px; margin: 2px 0; }
.cal-item p { margin: 0; font-size: 14px; }
.cal-item .go { color: var(--red); font-size: 14px; white-space: nowrap; }
.tag-cat { display: inline-block; font-size: 12px; padding: 0 8px; border-radius: 999px; background: var(--cat-bg); color: var(--cat); }
section.cal-detail { padding: 40px 0 72px; }
.cal-detail .panel { background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px 32px; max-width: 820px; margin: 0 auto; }
.cal-detail-img { width: 100%; max-height: 380px; object-fit: cover; border-radius: 12px; margin-bottom: 20px; }
.cal-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin: 0 0 18px; padding: 16px; background: var(--sand); border-radius: 12px; }
.cal-meta dt { font-size: 13px; color: var(--muted); }
.cal-meta dd { margin: 0; font-weight: 500; }
.cal-summary { font-family: var(--serif); font-size: 18px; color: var(--red-deep); }
.cal-body p { margin: 0 0 12px; }
.cal-cta { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 24px; padding: 18px 20px; border: 1px solid var(--gold-soft); border-radius: 12px; background: #fffaf0; }
.cal-cta small { display: block; color: var(--muted); font-size: 12px; }
.cal-cta b { display: block; font-family: var(--serif); font-size: 18px; }
.cal-cta .muted { font-size: 13px; }
.cal-back { max-width: 820px; margin: 18px auto 0; }
.cal-back a { color: var(--red); text-decoration: none; }
@media (max-width: 720px) {
  .cal-months { margin-left: 0; width: 100%; }
  .cal-cell { min-height: 54px; padding: 4px 2px; align-items: center; }
  .cal-cell.has { background: #fff6e8; }
  .cal-ev { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; background: var(--cat); font-size: 0; }
  .cal-cell { flex-direction: row; flex-wrap: wrap; justify-content: center; align-content: flex-start; }
  .cal-cell .d { width: 100%; text-align: center; }
  .cal-cell.today .d { width: 24px; margin: 0 auto; }
  .cal-item { flex-wrap: wrap; padding: 14px; gap: 12px; }
  .cal-item .go { display: none; }
  .cal-detail .panel { padding: 20px 18px; }
  .cal-cta { flex-direction: column; align-items: stretch; }
}
