:root {
  --bg: #0a0908;
  --bg-soft: #141210;
  --ink: #f3ead8;
  --ink-muted: #b3a894;
  --line: #3a3224;
  --card: #12100e;
  --gold: #c9a227;
  --gold-soft: #e4c878;
  --white: #faf6ee;
  --wa: #1f8a4c;
  --radius: 18px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --max: 1080px;
  --serif: "Noto Serif TC", "Songti TC", "PingFang TC", serif;
  --sans: "Noto Sans TC", "PingFang TC", "Helvetica Neue", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, .btn { cursor: pointer; font: inherit; }

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(12px);
  background: rgba(10, 9, 8, 0.88);
  border-bottom: 1px solid rgba(201, 162, 39, 0.28);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}
.brand {
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 1.05rem;
  color: var(--gold-soft);
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}
.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  flex-shrink: 0;
  display: block;
  object-fit: contain;
  background: #0a0908;
}
.nav-links {
  display: flex;
  gap: 1rem;
  align-items: center;
  font-size: 0.92rem;
  color: var(--ink-muted);
}
.nav-links a:hover { color: var(--gold-soft); }
.nav-cta {
  background: var(--gold);
  color: #0a0908;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  font-size: 0.88rem;
}
.nav-cta:hover { background: var(--gold-soft); color: #0a0908; }
button.nav-cta {
  cursor: pointer;
  font: inherit;
  appearance: none;
  -webkit-appearance: none;
}


/* Shop status — 営業札／暖簾 strip */
.shop-status {
  display: none;
  border-bottom: 1px solid rgba(201, 162, 39, 0.38);
  background:
    linear-gradient(180deg, rgba(20, 17, 12, 0.98) 0%, rgba(12, 10, 8, 0.96) 100%);
  color: var(--ink);
}
.shop-status.is-on { display: block; }
.shop-status-inner {
  width: min(100% - 1.5rem, var(--max));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.1rem;
  padding: 0.42rem 0;
  min-height: 2.15rem;
  flex-wrap: wrap;
}
.shop-status-left {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
  flex: 1 1 auto;
}
.shop-status-fuda {
  flex-shrink: 0;
  writing-mode: vertical-rl;
  text-orientation: upright;
  font-family: var(--serif);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  line-height: 1.1;
  padding: 0.28rem 0.18rem;
  border: 1px solid rgba(201, 162, 39, 0.55);
  color: var(--gold-soft);
  background: rgba(201, 162, 39, 0.08);
  border-radius: 2px;
  box-shadow: inset 0 0 0 1px rgba(10, 9, 8, 0.35);
}
.shop-status.is-paused .shop-status-fuda {
  color: #f0e2b8;
  border-color: rgba(228, 200, 120, 0.45);
  background: rgba(228, 200, 120, 0.06);
}
.shop-status-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
}
.shop-status-label {
  font-family: var(--serif);
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  color: var(--gold-soft);
  line-height: 1.25;
}
.shop-status-sub {
  font-size: 0.78rem;
  color: var(--ink-muted);
  line-height: 1.35;
}
.shop-status-right {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}
.shop-status-countdown {
  font-variant-numeric: tabular-nums;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: #f0e6cf;
  white-space: nowrap;
}
.shop-status-countdown b {
  font-weight: 700;
  color: var(--gold-soft);
  margin: 0 0.05rem;
}
.shop-status-wa {
  font-size: 0.72rem;
  color: #0a0908;
  background: rgba(201, 162, 39, 0.88);
  border: 1px solid rgba(228, 200, 120, 0.55);
  border-radius: 999px;
  padding: 0.22rem 0.65rem;
  white-space: nowrap;
  text-decoration: none;
}
.shop-status-wa:hover { background: var(--gold-soft); color: #0a0908; }
.shop-status.is-open .shop-status-label { color: #d9c48a; }
.shop-status.is-countdown .shop-status-label { color: var(--gold-soft); }
.shop-status.is-paused .shop-status-label { color: #efe2c0; }
.shop-status.is-paused .shop-status-sub { color: #cbb892; }
@media (max-width: 640px) {
  .shop-status-inner {
    padding: 0.38rem 0;
    gap: 0.45rem 0.7rem;
  }
  .shop-status-label { font-size: 0.86rem; }
  .shop-status-sub { font-size: 0.74rem; }
  .shop-status-countdown { font-size: 0.74rem; }
  .shop-status-fuda { font-size: 0.58rem; padding: 0.22rem 0.14rem; }
}

/* Hero */
.hero {
  position: relative;
  min-height: min(52vh, 480px);
  display: grid;
  align-items: end;
  overflow: hidden;
  background: #0d0c0b;
}
.hero-media {
  position: absolute;
  inset: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
  filter: saturate(0.85) contrast(1.05);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(13,12,11,0.25) 0%, rgba(13,12,11,0.55) 45%, rgba(13,12,11,0.92) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  color: var(--white);
  padding: 2.6rem 0 1.6rem;
}
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 0.8rem;
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.7rem, 4.4vw, 2.6rem);
  line-height: 1.25;
  margin: 0 0 0.55rem;
  letter-spacing: 0.04em;
}
.hero-lead {
  max-width: 34rem;
  color: rgba(255,253,249,0.86);
  font-size: 0.98rem;
  margin: 0 0 1rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
}
.hero-actions .btn-sm {
  padding: 0.42rem 0.95rem;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.2;
}
.jump-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.1rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255,253,249,0.18);
}
.jump-row a {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(201, 162, 39, 0.4);
  color: var(--gold-soft);
  font-size: 0.86rem;
  letter-spacing: 0.04em;
  background: rgba(10, 9, 8, 0.4);
}
.jump-row a:hover {
  background: rgba(201, 162, 39, 0.14);
  border-color: var(--gold);
  color: var(--white);
}
.jump-row a {
  position: relative;
  padding-right: 1.05rem;
}
.jump-row a .nav-dot {
  position: absolute;
  top: 0.28rem;
  right: 0.38rem;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: #c0392b;
  box-shadow: 0 0 0 1px rgba(10, 9, 8, 0.55), 0 0 6px rgba(201, 162, 39, 0.35);
  pointer-events: none;
}
.jump-row a .nav-dot.nav-dot-gold {
  background: var(--gold);
}
.jump-row a.has-nav-dot {
  padding-right: 1.15rem;
}


.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: 999px;
  padding: 0.75rem 1.25rem;
  border: 1px solid transparent;
  transition: 0.18s ease;
}
.btn-primary {
  background: var(--gold);
  color: #0a0908;
  font-weight: 600;
}
.btn-primary:hover { transform: translateY(-1px); background: var(--gold-soft); }
.btn-wa {
  background: var(--wa);
  color: #fff;
}
.btn-wa:hover { filter: brightness(1.05); }
.btn-ghost {
  background: transparent;
  color: var(--gold-soft);
  border-color: rgba(201, 162, 39, 0.55);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--white); }
.btn-dark {
  background: var(--gold);
  color: #0a0908;
  font-weight: 600;
}
.btn-dark:hover { background: var(--gold-soft); }
.btn-outline {
  background: transparent;
  border-color: var(--gold);
  color: var(--gold-soft);
}
.btn-outline:hover { background: rgba(201, 162, 39, 0.12); }
.btn-sm {
  padding: 0.55rem 0.95rem;
  font-size: 0.9rem;
}
.btn-full { width: 100%; }

/* Chapters / travelogue */
.section {
  padding: 4rem 0;
}
.section-head {
  max-width: 40rem;
  margin-bottom: 2rem;
}
.section-head h2 {
  font-family: var(--serif);
  font-size: clamp(1.55rem, 3vw, 2.1rem);
  margin: 0 0 0.6rem;
  letter-spacing: 0.03em;
  color: var(--gold-soft);
}
.section-head p {
  margin: 0;
  color: var(--ink-muted);
}

.chapters {
  display: grid;
  gap: 1.25rem;
}
.chapter {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.4rem;
  box-shadow: var(--shadow);
}
.chapter-num {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  color: var(--gold);
  margin-bottom: 0.45rem;
}
.chapter h3 {
  font-family: var(--serif);
  font-size: 1.2rem;
  margin: 0 0 0.55rem;
  color: var(--gold-soft);
}
.chapter p {
  margin: 0 0 0.55rem;
  color: var(--ink-muted);
  white-space: pre-line;
}
.chapter p:last-child { margin-bottom: 0; }

.split {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}
@media (min-width: 860px) {
  .split { grid-template-columns: 1.05fr 0.95fr; gap: 2.5rem; }
  .split.reverse { grid-template-columns: 0.95fr 1.05fr; }
  .split.reverse .split-media { order: 2; }
}
.split-media {
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  background: var(--card);
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 5;
}
.split-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.split-copy h2 {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 0.8rem;
  color: var(--gold-soft);
}
.split-copy p {
  color: var(--ink-muted);
  margin: 0 0 0.7rem;
  white-space: pre-line;
}

/* Products */
.section-pieces { padding-top: 2.5rem; }
.pieces-hint {
  margin: 0.55rem 0 0;
  font-size: 0.88rem;
  color: var(--ink-muted);
}
.pieces-toolbar {
  margin: 0 0 1.35rem;
  display: grid;
  gap: 0.7rem;
  padding: 0.95rem 1rem;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
.pieces-tabs-block {
  display: grid;
  gap: 0.45rem;
  min-width: 0;
}
.pieces-filter-row {
  display: grid;
  gap: 0.7rem;
  grid-template-columns: 1fr;
  align-items: end;
}
.pieces-search {
  display: grid;
  gap: 0.35rem;
  margin: 0;
  min-width: 0;
}
.filter-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ink);
}
.pieces-search input {
  width: 100%;
  border: 1.5px solid var(--line);
  background: var(--card);
  border-radius: 999px;
  padding: 0.72rem 1.05rem;
  font: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  cursor: text;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.pieces-search input:hover {
  border-color: var(--gold);
}
.pieces-search input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.28);
}
.pieces-search input:disabled {
  opacity: 1;
  color: var(--ink);
  background: var(--card);
  cursor: not-allowed;
}
/* Category page tabs — horizontal, boutique, no dropdown */
.cat-tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
  border-bottom: 1px solid var(--line);
  margin: 0 -0.15rem;
  padding: 0 0.15rem;
}
.cat-tabs::-webkit-scrollbar { height: 4px; }
.cat-tabs::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: 999px;
}
.cat-tab {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  border: 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  background: transparent;
  color: var(--ink-muted);
  border-radius: 0;
  padding: 0.72rem 0.95rem 0.78rem;
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.02em;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.cat-tab:hover {
  color: var(--gold-soft);
  background: rgba(201, 162, 39, 0.06);
}
.cat-tab.active {
  color: var(--gold-soft);
  border-bottom-color: var(--gold);
  font-weight: 700;
  background: transparent;
}
.cat-tab-label { pointer-events: none; }
.cat-tab-count {
  pointer-events: none;
  font-size: 0.72rem;
  font-weight: 600;
  opacity: 0.72;
  letter-spacing: 0;
}
.cat-tab.active .cat-tab-count {
  color: var(--gold);
  opacity: 1;
}
@media (min-width: 720px) {
  .cat-tabs {
    flex-wrap: wrap;
    overflow-x: visible;
  }
  .cat-tab {
    padding-inline: 1.05rem;
    font-size: 0.95rem;
  }
}
.filter-meta {
  margin: 0;
  font-size: 0.85rem;
  color: var(--ink-muted);
}
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}
.products-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 720px) {
  .products-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.05rem; }
}
@media (min-width: 980px) {
  .products-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.15rem; }
}

/* 現貨速覽（首頁較前；完整 #pieces 仍在最底） */
.products-preview-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 720px) {
  .products-preview-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 980px) {
  .products-preview-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.pieces-preview-cta {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
}
.pieces-preview-cta .hint { margin: 0; color: var(--ink-muted); font-size: 0.85rem; }

.product-card.hidden { display: none; }
.product-card {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.product-photo {
  background: var(--card);
  aspect-ratio: 1 / 1;
  overflow: hidden;
  cursor: zoom-in;
}
@media (min-width: 720px) {
  .product-photo { aspect-ratio: 3 / 4; }
}
.product-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.product-card:hover .product-photo img { transform: scale(1.03); }
.product-body {
  padding: 1rem 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  flex: 1;
}
.product-body h3 {
  font-family: var(--serif);
  font-size: 0.95rem;
  line-height: 1.4;
  margin: 0;
  min-height: 0;
  color: var(--ink);
}
@media (min-width: 720px) {
  .product-body h3 { font-size: 1rem; min-height: 2.7em; }
}
.product-blurb {
  color: var(--ink-muted);
  font-size: 0.82rem;
  margin: 0;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
@media (min-width: 720px) {
  .product-blurb { font-size: 0.92rem; -webkit-line-clamp: 3; }
}
.product-price {
  display: none; /* Standing：客面唔顯示真價 */
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--gold-soft);
}
.product-refs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.35rem;
}
.product-ref {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(201,162,39,0.35);
  color: var(--gold-soft);
  font-size: 0.75rem;
  letter-spacing: 0.03em;
  background: rgba(10,9,8,0.35);
  text-decoration: none;
}
.product-ref:hover {
  border-color: var(--gold);
  color: var(--white);
  background: rgba(201,162,39,0.12);
}
.product-actions {
  display: grid;
  gap: 0.45rem;
}
.stripe-note {
  font-size: 0.75rem;
  color: var(--ink-muted);
  margin: 0;
}

/* Fahui band */
.band {
  background: linear-gradient(135deg, #141210 0%, #1a160f 100%);
  color: var(--white);
  border: 1px solid rgba(201, 162, 39, 0.4);
  border-radius: calc(var(--radius) + 6px);
  padding: 1.8rem 1.5rem;
  display: grid;
  gap: 1rem;
  align-items: center;
}
@media (min-width: 720px) {
  .band {
    grid-template-columns: 1.4fr auto;
    padding: 2rem 2.2rem;
  }
}
.band h2 {
  font-family: var(--serif);
  margin: 0 0 0.4rem;
  font-size: 1.45rem;
  color: var(--gold-soft);
}
.band p { margin: 0; color: rgba(255,253,249,0.78); }

/* Contact */
.contact-grid {
  display: grid;
  gap: 1rem;
}
@media (min-width: 720px) {
  .contact-grid { grid-template-columns: 1.2fr 0.8fr; }
}
.contact-card {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: var(--shadow);
}
.contact-card h3 {
  font-family: var(--serif);
  margin: 0 0 0.7rem;
  color: var(--gold-soft);
}
.contact-card p {
  margin: 0 0 0.45rem;
  color: var(--ink-muted);
}
.hint {
  font-size: 0.9rem;
  color: var(--ink-muted);
  margin-top: 0.8rem;
}

/* Footer */
.footer {
  border-top: 1px solid rgba(201, 162, 39, 0.25);
  padding: 2rem 0 2.5rem;
  color: var(--ink-muted);
  font-size: 0.88rem;
}
.footer-inner {
  display: grid;
  gap: 0.85rem;
}
.footer-meta {
  display: grid;
  gap: 0.35rem;
  line-height: 1.45;
}
.footer-meta p { margin: 0; }
.footer-meta a {
  color: var(--gold-soft);
  text-decoration: none;
  border-bottom: 1px solid rgba(201, 162, 39, 0.35);
}
.footer-meta a:hover { color: var(--gold); }
.disclaimer-ugc {
  margin-top: 0.65rem;
  font-size: 0.72rem;
  line-height: 1.55;
  opacity: 0.85;
  max-width: 42rem;
}
.disclaimer {
  font-size: 0.8rem;
  opacity: 0.85;
  margin: 0;
  line-height: 1.45;
}
/* Contact buttons: stack cleanly on narrow screens */
@media (max-width: 520px) {
  #contact .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
  #contact .hero-actions .btn { width: 100%; text-align: center; }
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 1.2rem;
  transform: translateX(-50%) translateY(120%);
  background: var(--bg-soft);
  color: var(--ink);
  border: 1px solid var(--gold);
  padding: 0.75rem 1rem;
  border-radius: 12px;
  font-size: 0.9rem;
  z-index: 50;
  transition: transform 0.25s ease;
  max-width: min(92vw, 420px);
  text-align: center;
}
.toast.show { transform: translateX(-50%) translateY(0); }
.install-tip {
  margin: 0.85rem 0 0;
  max-width: 28rem;
  font-size: 0.88rem;
  line-height: 1.45;
  color: rgba(255, 253, 249, 0.9);
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(201, 162, 39, 0.45);
  border-radius: 10px;
  padding: 0.65rem 0.8rem;
}
.toast { z-index: 80; }

@media (max-width: 720px) {
  .nav-links .hide-sm { display: none; }
}

/* Notes & stories */
.notes-grid, .stories-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .notes-grid { grid-template-columns: repeat(2, 1fr); }
  .stories-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 980px) {
  .stories-grid { grid-template-columns: repeat(3, 1fr); }
}
.note-card, .story-card {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.2rem;
  box-shadow: var(--shadow);
}
.note-card { cursor: pointer; transition: border-color .15s ease; }
.note-card:hover { border-color: var(--gold); }
.note-date, .story-label {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin: 0 0 0.4rem;
}
.note-card h3, .story-card h3 {
  font-family: var(--serif);
  font-size: 1.05rem;
  margin: 0 0 0.45rem;
  line-height: 1.4;
  color: var(--gold-soft);
}
.note-card p, .story-card p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.92rem;
}
.modal[hidden] { display: none; }
.modal {
  position: fixed; inset: 0; z-index: 60;
  display: grid; place-items: center; padding: 1rem;
}
.modal-backdrop {
  position: absolute; inset: 0; background: rgba(0,0,0,.72);
}
.modal-card {
  position: relative; z-index: 1;
  width: min(100%, 560px); max-height: min(86vh, 720px);
  overflow: auto; background: var(--bg-soft);
  border: 1px solid rgba(201, 162, 39, 0.35);
  border-radius: calc(var(--radius) + 4px);
  padding: 1.5rem 1.4rem 1.6rem;
  box-shadow: 0 24px 70px rgba(0,0,0,.25);
}
.modal-card h3 {
  font-family: var(--serif);
  margin: 0 0 0.8rem;
  font-size: 1.35rem;
  color: var(--gold-soft);
}
.modal-card p { color: var(--ink-muted); margin: 0 0 0.75rem; }
.modal-date { color: var(--gold); font-size: 0.78rem; letter-spacing: .12em; margin: 0 0 .35rem; }
.modal-x {
  position: absolute; top: .55rem; right: .7rem;
  border: 0; background: transparent; font-size: 1.6rem;
  line-height: 1; color: var(--ink-muted); cursor: pointer;
}

.note-card.hidden, .story-card.hidden { display: none; }

/* Charity */
.charity-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .charity-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 980px) {
  .charity-grid { grid-template-columns: repeat(3, 1fr); }
}


/* Comments (notes) */
.comments-block {
  margin-top: 0.5rem;
  padding-top: 0.25rem;
}
.comments-list {
  display: grid;
  gap: 0.85rem;
  margin-bottom: 1.2rem;
}
.comment-card {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  box-shadow: var(--shadow);
}
.comment-meta {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin: 0 0 0.35rem;
}
.comment-card p:last-child {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.95rem;
  white-space: pre-wrap;
}
.comment-form {
  display: grid;
  gap: 0.85rem;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.2rem 1.3rem;
  box-shadow: var(--shadow);
}
.comment-form label {
  display: grid;
  gap: 0.35rem;
}
.comment-form input,
.comment-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.7rem 0.85rem;
  font: inherit;
  background: var(--card);
  color: var(--ink);
}
.comment-form input:focus,
.comment-form textarea:focus {
  outline: 2px solid rgba(201, 162, 39, 0.4);
  border-color: var(--gold);
}
.comment-form .btn {
  justify-self: start;
}

.guest-voices { margin-top: 0.25rem; }
.guest-card .story-label { color: var(--ink-muted); }

::selection { background: rgba(201, 162, 39, 0.35); color: var(--white); }


.contact-actions {
  display: grid;
  gap: 0.65rem;
  margin-top: 1.1rem;
}
@media (min-width: 560px) {
  .contact-actions {
    grid-template-columns: 1fr 1fr;
  }
  .contact-actions .btn-wa { grid-column: 1 / -1; }
}
.contact-card p { margin: 0 0 0.45rem; line-height: 1.5; }
.contact-card .hint { margin-top: 0.55rem; }

.share-count {
  margin: 0.55rem 0 0;
  font-size: 0.86rem;
  color: rgba(255,253,249,0.72);
  letter-spacing: 0.02em;
}
.share-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.share-menu {
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  z-index: 40;
  min-width: 9.5rem;
  padding: 0.35rem;
  border-radius: 12px;
  background: rgba(28, 22, 16, 0.96);
  border: 1px solid rgba(201,162,39,0.35);
  box-shadow: 0 10px 28px rgba(0,0,0,0.35);
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.share-menu[hidden] { display: none !important; }
.share-menu a,
.share-menu button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.45rem 0.7rem;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: rgba(255,253,249,0.92);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}
.share-menu a:hover,
.share-menu button:hover {
  background: rgba(201,162,39,0.16);
  color: var(--white);
}
.share-copied {
  position: absolute;
  left: calc(100% + 0.45rem);
  white-space: nowrap;
  font-size: 0.78rem;
  color: rgba(255,253,249,0.8);
}


/* Classic share posts (four-grid) */
.classic-shares-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .classic-shares-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 980px) {
  .classic-shares-grid { grid-template-columns: repeat(2, 1fr); }
}
.classic-share-card {
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  transition: border-color .15s ease;
}
.classic-share-card:hover { border-color: var(--gold); }
.classic-share-photo {
  /* 2026-11-08：1:1 框 + contain 完整主體、唔變形、置中 */
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #1a1a1a;
}
.classic-share-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
}
.classic-share-card > .note-date,
.classic-share-card > h3,
.classic-share-card > p {
  padding-left: 1.15rem;
  padding-right: 1.15rem;
}
.classic-share-card > .note-date { padding-top: 0.95rem; }
.classic-share-card > p:last-of-type,
.classic-share-card > .classic-share-fb {
  padding-bottom: 1.05rem;
}
.classic-share-fb {
  margin: 0.55rem 0 0;
  font-size: 0.82rem;
}
.classic-share-fb a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.classic-author-filter-row {
  margin: 0 0 0.85rem;
  align-items: center;
  gap: 0.65rem;
}
.classic-author-filter-row .filter-label {
  flex: 0 0 auto;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: none;
  opacity: 0.9;
}
#classic-author-chips.cat-tabs {
  flex: 1 1 auto;
  flex-wrap: nowrap;
  gap: 0.45rem;
  border-bottom: 0;
  margin: 0;
  padding: 0.15rem 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(201, 162, 39, 0.35) transparent;
}
#classic-author-chips .cat-tab {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.2rem;
  padding: 0.38rem 0.88rem 0.38rem 0.95rem;
  margin-bottom: 0;
  border: 1px solid rgba(201, 162, 39, 0.32);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(28, 24, 18, 0.95) 0%, rgba(12, 10, 8, 0.98) 100%);
  color: #cfc3ad;
  font-size: 0.84rem;
  font-weight: 560;
  letter-spacing: 0.04em;
  box-shadow:
    inset 0 1px 0 rgba(255, 236, 190, 0.07),
    0 1px 0 rgba(0, 0, 0, 0.35);
  transition: color 0.16s ease, border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}
#classic-author-chips .cat-tab:hover {
  color: var(--gold-soft);
  border-color: rgba(228, 200, 120, 0.7);
  background: linear-gradient(180deg, #221c14 0%, #14110d 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 236, 190, 0.1),
    0 0 0 1px rgba(201, 162, 39, 0.12),
    0 4px 12px rgba(0, 0, 0, 0.28);
}
#classic-author-chips .cat-tab.active {
  color: #0a0908;
  font-weight: 700;
  border-color: #e4c878;
  background: linear-gradient(180deg, #f0d78a 0%, #c9a227 55%, #b8921f 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 245, 0.45),
    0 0 0 1px rgba(201, 162, 39, 0.35),
    0 6px 16px rgba(0, 0, 0, 0.38);
}
#classic-author-chips .cat-tab-label {
  line-height: 1;
}
#classic-author-chips .cat-tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35em;
  height: 1.35em;
  padding: 0 0.28em;
  border-radius: 999px;
  border: 1px solid rgba(201, 162, 39, 0.38);
  background: rgba(0, 0, 0, 0.28);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
  color: var(--gold-soft);
}
#classic-author-chips .cat-tab.active .cat-tab-count {
  color: #0a0908;
  border-color: rgba(10, 9, 8, 0.22);
  background: rgba(255, 255, 255, 0.28);
}
@media (min-width: 720px) {
  #classic-author-chips.cat-tabs {
    flex-wrap: wrap;
    overflow-x: visible;
  }
  #classic-author-chips .cat-tab {
    padding-inline: 1.05rem 0.95rem;
    font-size: 0.88rem;
    min-height: 2.35rem;
  }
}
#classic-filter-meta {
  margin: 0 0 1rem;
}


/* Soft push prompt (standalone PWA open) — also injected by push.js */
.push-soft-prompt {
  position: fixed;
  left: 50%;
  bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%) translateY(120%);
  width: min(100% - 1.5rem, 420px);
  z-index: 90;
  background: linear-gradient(180deg, #1a1712, #12100c);
  border: 1px solid rgba(201, 162, 39, 0.45);
  border-radius: 14px;
  padding: 0.95rem 1rem 1rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
  color: var(--ink, #f3ead8);
  transition: transform 0.35s ease, opacity 0.35s ease;
  opacity: 0;
  pointer-events: none;
}
.push-soft-prompt.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* 功德+1 — mid-right; semi-transparent; idle fade; no bright gold border */
.merit-back-fab {
  position: fixed;
  right: max(0.7rem, env(safe-area-inset-right, 0px));
  top: 50%;
  bottom: auto;
  z-index: 72;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.72rem 1.05rem 0.72rem 0.85rem;
  border-radius: 999px;
  border: none;
  background: linear-gradient(165deg, rgba(48, 38, 18, 0.42), rgba(10, 8, 6, 0.38));
  color: rgba(243, 217, 138, 0.92);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
  opacity: 0.4;
  transform: translateY(-50%);
  transition: opacity 0.45s ease, transform 0.15s ease, background 0.3s ease, box-shadow 0.3s ease;
  -webkit-tap-highlight-color: transparent;
  pointer-events: auto;
}
.merit-back-fab.is-active {
  opacity: 0.7;
  background: linear-gradient(165deg, rgba(48, 38, 18, 0.72), rgba(10, 8, 6, 0.65));
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4);
}
.merit-back-fab.is-idle {
  opacity: 0.08;
  box-shadow: none;
}
.merit-back-fab:hover,
.merit-back-fab:focus-visible {
  opacity: 1;
  background: linear-gradient(165deg, rgba(48, 38, 18, 0.92), rgba(10, 8, 6, 0.88));
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
  outline: none;
}
.merit-back-fab:active {
  transform: translateY(-50%) scale(0.96);
}
.merit-back-fab-ico {
  font-size: 1.15rem;
  color: rgba(240, 213, 106, 0.9);
  opacity: 1;
  text-shadow: 0 0 6px rgba(232, 196, 90, 0.25);
}
.merit-back-fab-txt {
  font-family: var(--serif);
  white-space: nowrap;
  text-shadow: 0 0 6px rgba(232, 196, 90, 0.2);
}
.merit-back-fab.is-empty {
  /* keep same idle/active opacity system; no extra border glow */
}
@media (max-width: 420px) {
  .merit-back-fab {
    padding: 0.65rem 0.92rem 0.65rem 0.75rem;
    font-size: 0.88rem;
    right: max(0.55rem, env(safe-area-inset-right, 0px));
  }
  .merit-back-fab-ico {
    font-size: 1.05rem;
  }
}

/* Content images: discourage casual copy / save */
.product-photo img,
.classic-share-photo img,
.split-media img,
.img-zoomable,
.img-lightbox-img {
  -webkit-user-drag: none;
  user-drag: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  pointer-events: auto;
}
.product-photo,
.classic-share-photo,
.split-media {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
.classic-share-photo { cursor: zoom-in; }
.split-media { cursor: zoom-in; }

/* Image lightbox */
.img-lightbox[hidden] { display: none; }
.img-lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(0.75rem, env(safe-area-inset-top)) max(0.75rem, env(safe-area-inset-right)) max(0.75rem, env(safe-area-inset-bottom)) max(0.75rem, env(safe-area-inset-left));
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
.img-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 3, 2, 0.92);
  cursor: zoom-out;
}
.img-lightbox-frame {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: min(96vw, 1100px);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
}
.img-lightbox-stage {
  position: relative;
  display: inline-block;
  max-width: 96vw;
  max-height: 82vh;
}
.img-lightbox-frame img,
#img-lightbox-img {
  display: block;
  max-width: 96vw;
  max-height: 82vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 18px 48px rgba(0,0,0,0.55);
  background: #0a0806;
  -webkit-user-drag: none;
  user-drag: none;
}
.img-lightbox-cap {
  color: rgba(243, 217, 138, 0.85);
  font-size: 0.88rem;
  text-align: center;
  max-width: 90vw;
  margin: 0;
}
.img-lightbox-hint {
  color: rgba(200, 190, 170, 0.55);
  font-size: 0.72rem;
  margin: 0;
  letter-spacing: 0.04em;
}
.img-lightbox-x {
  position: absolute;
  top: max(0.55rem, env(safe-area-inset-top));
  right: max(0.55rem, env(safe-area-inset-right));
  z-index: 2;
  width: 2.4rem;
  height: 2.4rem;
  border: none;
  border-radius: 999px;
  background: rgba(30, 24, 14, 0.75);
  color: rgba(243, 217, 138, 0.95);
  font-size: 1.55rem;
  line-height: 1;
  cursor: pointer;
}
.img-lightbox-x:hover { background: rgba(48, 38, 18, 0.95); }


/* Forced visible watermark on product / classic photos (screenshot deterrent) */
.product-photo,
.classic-share-photo,
.split-media,
.img-lightbox-stage {
  position: relative;
  overflow: hidden;
}
.photo-wm,
.img-lightbox-wm {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
  background-image:
    repeating-linear-gradient(
      -28deg,
      transparent 0,
      transparent 52px,
      rgba(243, 217, 138, 0.07) 52px,
      rgba(243, 217, 138, 0.07) 54px
    );
}
.photo-wm span,
.img-lightbox-wm span {
  position: absolute;
  color: rgba(243, 217, 138, 0.28);
  font-family: var(--serif);
  font-size: clamp(0.78rem, 2.6vw, 1.25rem);
  font-weight: 700;
  letter-spacing: 0.14em;
  white-space: nowrap;
  transform: rotate(-28deg);
  text-shadow: 0 1px 6px rgba(0,0,0,0.55);
}
.photo-wm span:nth-child(1),
.img-lightbox-wm span:nth-child(1) { top: 16%; left: 4%; }
.photo-wm span:nth-child(2),
.img-lightbox-wm span:nth-child(2) { top: 46%; left: 18%; }
.photo-wm span:nth-child(3),
.img-lightbox-wm span:nth-child(3) { top: 76%; left: 2%; }
.img-lightbox-wm span {
  font-size: clamp(1.05rem, 3.2vw, 1.7rem);
  color: rgba(243, 217, 138, 0.32);
}

/* bump 1794156319 */


/* 轉換提示閃爍（溫和黑金；約 4 秒後停） */
@keyframes soft-hint-pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(232, 196, 90, 0);
    filter: brightness(1);
  }
  50% {
    box-shadow: 0 0 14px 2px rgba(232, 196, 90, 0.38);
    filter: brightness(1.06);
  }
}
@keyframes merit-hint-pulse {
  0%, 100% {
    opacity: 0.55;
    box-shadow: 0 0 0 0 rgba(232, 196, 90, 0);
  }
  50% {
    opacity: 0.95;
    box-shadow: 0 0 18px 3px rgba(232, 196, 90, 0.32);
  }
}
.hint-pulse {
  animation: soft-hint-pulse 1s ease-in-out 4;
}
.merit-back-fab.hint-pulse {
  animation: merit-hint-pulse 1s ease-in-out 4;
  /* 閃爍期間唔跟 idle 透明 */
  opacity: 0.75 !important;
}
.jump-row a.hint-pulse {
  border-color: rgba(232, 196, 90, 0.55);
  color: rgba(243, 217, 138, 0.98);
}
@media (prefers-reduced-motion: reduce) {
  .hint-pulse,
  .merit-back-fab.hint-pulse {
    animation: none !important;
  }
}


/* 返主頁 — 淡金半透明細圓圈；底中間、safe-area 之上，成圓完整可見 */
.home-fab {
  position: fixed;
  z-index: 74;
  left: 50%;
  right: auto;
  bottom: calc(1.1rem + env(safe-area-inset-bottom, 0px));
  width: 2.65rem;
  height: 2.65rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: rgba(232, 196, 90, 0.82);
  background: radial-gradient(circle at 35% 30%, rgba(232, 196, 90, 0.26), rgba(48, 38, 18, 0.32) 72%);
  border: 1px solid rgba(201, 162, 39, 0.32);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
  opacity: 0.48;
  transform: translateX(-50%);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: opacity 0.25s ease, transform 0.15s ease, background 0.25s ease;
  -webkit-tap-highlight-color: transparent;
}
.home-fab:hover,
.home-fab:focus-visible {
  opacity: 0.82;
  outline: none;
  background: radial-gradient(circle at 35% 30%, rgba(232, 196, 90, 0.36), rgba(48, 38, 18, 0.42) 72%);
}
.home-fab:active { transform: translateX(-50%) scale(0.94); }
.home-fab-ico {
  font-size: 1.08rem;
  line-height: 1;
  opacity: 0.92;
  text-shadow: 0 0 6px rgba(232, 196, 90, 0.18);
}
@media (max-width: 420px) {
  .home-fab {
    width: 2.5rem;
    height: 2.5rem;
    bottom: calc(1.15rem + env(safe-area-inset-bottom, 0px));
  }
}
/* 留言待審佔位：見到有、睇唔到正文 */
.comment-card.comment-pending {
  opacity: 0.72;
  border-style: dashed;
}
.comment-pending-body {
  color: var(--ink-muted);
  font-size: 0.9rem;
  margin: 0;
  font-style: italic;
}

/* 功德+1 輪完一圈：溫和向前搖晃 */
@keyframes merit-rock {
  0% { transform: translateY(-50%) rotate(0deg); }
  18% { transform: translateY(-50%) rotate(-7deg) translateX(-1px); }
  36% { transform: translateY(-50%) rotate(6deg) translateX(1px); }
  54% { transform: translateY(-50%) rotate(-4deg); }
  72% { transform: translateY(-50%) rotate(3deg); }
  100% { transform: translateY(-50%) rotate(0deg); }
}
.merit-back-fab.merit-rock {
  animation: merit-rock 0.75s ease-in-out 1;
}
@media (prefers-reduced-motion: reduce) {
  .merit-back-fab.merit-rock { animation: none !important; }
}


/* Featured classics + collapse full list */
.classic-featured {
  margin: 0 0 1.15rem;
}
.classic-featured-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.85rem;
  margin: 0 0 0.75rem;
}
.classic-featured-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gold-soft, #e6c56a);
  letter-spacing: 0.02em;
}
.classic-featured-hint {
  margin: 0;
  font-size: 0.82rem;
  color: var(--ink-muted, rgba(255,253,249,0.62));
}
.classic-featured-grid {
  margin: 0;
}
.classic-all-wrap {
  margin-top: 0.35rem;
}
.classic-all-wrap > #btn-classic-all {
  margin: 0.15rem 0 0.85rem;
}
.classic-all-panel[hidden] {
  display: none !important;
}

.footer-terms {
  margin: 0.85rem 0 0;
  padding: 0 0 0 1.1rem;
  color: rgba(232, 220, 190, 0.72);
  font-size: 0.82rem;
  line-height: 1.55;
}
.footer-terms li { margin: 0.15rem 0; }
