/* ═══════════════════════════════════════════════
   玄一道堂 · 新中式專業視覺
   墨藍 + 沉金 + 宣紙底
   ═══════════════════════════════════════════════ */

:root {
  --ink: #12263a;
  --navy: #1B3A5C;
  --navy-deep: #0d1c2e;
  --gold: #b8954a;
  --gold-soft: #d4bc7d;
  --foil-fill: linear-gradient(108deg, #7e6230 0%, #e8d7a8 36%, #c6a45e 58%, #8d6c36 100%);
  --foil-line: linear-gradient(90deg, transparent, #7e6230 14%, #e8d7a8 50%, #7e6230 86%, transparent);
  --foil-text: linear-gradient(100deg, #7a5e2c 0%, #e6d4a6 46%, #9a7840 100%);
  --paper-fiber: url("images/paper-fiber.png");
  --cinnabar: #8e3b3b;
  --paper: #f6f2ea;
  --paper-deep: #ece4d6;
  --white: #fffcf7;
  --surface: #fffcf7;
  --surface-alt: #f3eee4;
  --text: #1a2c40;
  --text-secondary: #3d5368;
  --text-muted: #7a8b99;
  --border: #e2d9cb;
  --accent: #b8954a;
  --accent-hover: #9e7d38;
  --success: #2f6b4f;
  --danger: #a33b3b;
  --qian: #1B3A5C;
  --kun: #fffcf7;
  --shadow: 0 18px 50px rgba(18, 38, 58, 0.08);
  --radius: 14px;

  --font-tc: "Noto Serif TC", "Songti TC", "PingFang TC", serif;
  --font-sc: "Noto Serif SC", "Songti SC", "PingFang SC", serif;
  --font-en: "Cormorant Garamond", "Noto Serif", Georgia, serif;
  --font-ui: "Noto Sans TC", "PingFang TC", "Hiragino Sans", sans-serif;
  --font-ui-sc: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", sans-serif;
  --font-ui-en: "Source Sans 3", "Helvetica Neue", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  font-family: var(--font-tc);
  background: var(--paper);
  color: var(--text);
  line-height: 1.75;
  min-height: 100vh;
}
html[data-lang="cn"] body { font-family: var(--font-sc); }
html[data-lang="cn"] { --font-ui: var(--font-ui-sc); }
html[data-lang="enGB"] body,
html[data-lang="enUS"] body { font-family: var(--font-en); }
html[data-lang="enGB"],
html[data-lang="enUS"] { --font-ui: var(--font-ui-en); }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea,
.btn, .nav, .form-field label,
.product-price, .price-was, .price-save, .price-fx, .search-result-price {
  font-family: var(--font-ui);
}
.product-price, .price-was, .price-save, .search-result-price, .price-fx-opt {
  font-variant-numeric: tabular-nums;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 5.5rem 0; }
.section-alt { background: var(--surface-alt); }
.section-ink { background: var(--navy-deep); color: var(--white); }

.section-kicker {
  display: block; text-align: center;
  font-size: 0.75rem; letter-spacing: 0.35em;
  color: var(--gold); text-transform: uppercase;
  margin-bottom: 0.85rem;
}
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.15rem); font-weight: 700;
  text-align: center; margin-bottom: 0.6rem; letter-spacing: 0.04em;
}
.section-subtitle {
  text-align: center; color: var(--text-muted);
  max-width: 620px; margin: 0 auto 2.75rem; font-size: 0.95rem;
}
.section-ink .section-title { color: var(--white); }
.section-ink .section-subtitle { color: rgba(255,255,255,0.62); }

.gold-line {
  display: flex; align-items: center; justify-content: center; gap: 0.85rem;
  margin: 0 auto 1.25rem; color: var(--gold); font-size: 0.85rem; letter-spacing: 0.4em;
}
.gold-line::before, .gold-line::after {
  content: ""; width: 48px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/* ═══════════ Nav ═══════════ */
.nav {
  position: sticky; top: 0; z-index: 200;
  background: rgba(255, 252, 247, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 14%;
  height: 1px;
  pointer-events: none;
  z-index: 6;
  background: linear-gradient(90deg, transparent, #7e6230 18%, #e8d7a8 46%, #fff6dc 50%, #e8d7a8 54%, #7e6230 82%, transparent);
  transform: translateX(-130%);
  animation: nav-foil 1.4s cubic-bezier(0.22, 0.08, 0.2, 1) both;
}
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0.35rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
  min-height: 74px; height: auto; gap: 0.75rem;
}
.nav-logo {
  font-family: var(--font-tc);
  font-weight: 700; font-size: 1.05rem;
  display: flex; align-items: center; gap: 0.6rem; flex-shrink: 0;
}
html[data-lang="cn"] .nav-logo { font-family: var(--font-sc); }
html[data-lang="enGB"] .nav-logo,
html[data-lang="enUS"] .nav-logo { font-family: var(--font-en); }
@media (min-width: 1081px) {
  .nav-extra { display: none; }
}
.nav-logo img { width: 36px; height: 36px; object-fit: contain; }
.nav-logo span { white-space: nowrap; }
.cart-label-short, .cart-icon { display: none; }
.nav-logo-short { display: inline; }
.lang-in-menu, .currency-in-menu { display: none; }
.currency-select {
  padding: 0.35rem 0.4rem; border: 1px solid var(--border); border-radius: 8px;
  background: var(--white); font-size: 0.78rem; color: var(--text); cursor: pointer;
  max-width: 4.8rem;
}
.currency-select:focus { outline: none; border-color: var(--gold); }
.cart-fx-note { margin-top: 0.75rem; line-height: 1.55; }
.nav-links { display: flex; gap: 0.85rem; align-items: center; }
.nav-links a {
  font-size: 0.82rem; color: var(--text-secondary);
  position: relative; transition: color 0.2s; white-space: nowrap;
}
@media (min-width: 1081px) {
  .nav-links a.nav-hinted {
    white-space: nowrap;
  }
}
.nav-links a:hover, .nav-links a.active { color: var(--navy); }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px;
  width: 0; height: 1px; background: var(--gold); transition: width 0.25s;
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-hinted { position: relative; }
.nav-hint {
  display: none;
  position: absolute;
  left: 50%;
  top: calc(100% + 14px);
  transform: translateX(-50%);
  width: max-content;
  max-width: 16rem;
  padding: 0.45rem 0.7rem;
  background: var(--navy);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.45;
  border-radius: 8px;
  white-space: normal;
  text-align: center;
  z-index: 30;
  pointer-events: none;
}
.nav-hint::before {
  content: "";
  position: absolute;
  top: -4px;
  left: 50%;
  width: 8px;
  height: 8px;
  background: var(--navy);
  transform: translateX(-50%) rotate(45deg);
}
@media (min-width: 1081px) {
  .nav-hinted:hover .nav-hint,
  .nav-hinted:focus-visible .nav-hint { display: block; }
}
.nav-links a.nav-book {
  margin-left: 0.2rem;
  padding: 0.48rem 0.95rem;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  color: #fff;
}
.nav-links a.nav-book::after { display: none; }
.nav-links a.nav-book:hover { color: #fff; background: var(--navy-deep); }
.to-top {
  position: fixed;
  left: max(1rem, env(safe-area-inset-left));
  bottom: max(1.1rem, env(safe-area-inset-bottom));
  z-index: 420;
  border: 1px solid var(--navy);
  background: var(--navy);
  color: #fff;
  border-radius: 999px;
  padding: 0.55rem 0.95rem;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(27, 58, 92, 0.28);
}
.to-top[hidden] { display: none; }
.to-top:hover { background: var(--navy-deep); color: #fff; }
body:has(#cookieBar:not(.hidden)) .to-top {
  bottom: max(8.2rem, calc(7.2rem + env(safe-area-inset-bottom)));
}
.nav-actions { display: flex; gap: 0.55rem; align-items: center; position: relative; }
.nav-chat {
  display: flex; align-items: center; gap: 0.4rem;
  transform: scale(0.94);
  transform-origin: center right;
}
.nav-chat-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  height: 36px;
  padding: 0 0.75rem;
  width: auto;
  border-radius: 999px;
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #fff;
}
.nav-chat-btn svg { display: block; width: 15px; height: 15px; }
.nav-chat-label { white-space: nowrap; }
.nav-chat-tt { background: #000; color: #fff; }
.nav-chat-wa { background: #25D366; color: #fff; }
.nav-chat-line { background: #06C755; color: #fff; }
.nav-chat-btn:hover { filter: brightness(1.08); color: #fff; }
.tt-logo { overflow: visible; display: block; }
.lang-select {
  padding: 0.35rem 0.55rem; border: 1px solid var(--border); border-radius: 8px;
  background: var(--white); font-size: 0.78rem; color: var(--text); cursor: pointer;
}
.lang-select:focus { outline: none; border-color: var(--gold); }
.cart-label-full { display: none; }
.cart-icon { display: block; }
.cart-btn {
  position: relative; padding: 0; width: 40px; height: 40px;
  border: 1px solid var(--border); border-radius: 8px;
  background: var(--white); font-size: 0.82rem; white-space: nowrap;
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.2s, color 0.2s;
}
.cart-btn:hover { border-color: var(--gold); color: var(--gold); }
.cart-count {
  position: absolute; top: -7px; right: -7px;
  min-width: 18px; height: 18px; padding: 0 4px; border-radius: 999px;
  background: var(--cinnabar); color: #fff;
  font-size: 0.65rem; display: none; align-items: center; justify-content: center; font-weight: 700;
}
.nav-toggle {
  display: none; width: 40px; height: 40px; border: 1px solid var(--border);
  border-radius: 8px; background: var(--white); cursor: pointer;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
}
.nav-toggle span {
  display: block; width: 16px; height: 1.5px; background: var(--navy); transition: 0.2s;
}

.search-btn {
  background: none; border: none; cursor: pointer; color: var(--text-secondary);
  padding: 0.4rem; border-radius: 8px; display: flex; align-items: center;
}
.search-btn:hover { background: var(--surface-alt); color: var(--navy); }
.nav-reach, .locale-combo { position: relative; }
.nav-reach-btn, .locale-combo-btn {
  height: 36px; padding: 0 0.75rem;
  border: 1px solid var(--border); border-radius: 4px;
  background: transparent; color: var(--navy);
  font-family: var(--font-ui); font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.06em; cursor: pointer; white-space: nowrap;
}
.locale-combo-btn { font-variant-numeric: tabular-nums; letter-spacing: 0.04em; }
.nav-reach-btn:hover, .locale-combo-btn:hover,
.nav-reach-btn[aria-expanded="true"], .locale-combo-btn[aria-expanded="true"] {
  border-color: var(--navy); color: var(--navy);
}
.nav-reach-menu, .locale-combo-menu {
  display: none;
  position: absolute; top: calc(100% + 0.45rem); right: 0; z-index: 140;
  min-width: 196px; padding: 0.35rem;
  background: var(--white); border: 1px solid var(--border); border-radius: 4px;
}
.nav-reach-menu:not([hidden]),
.locale-combo-menu:not([hidden]) { display: flex; flex-direction: column; gap: 0.15rem; }
.nav-reach-menu a {
  display: flex; align-items: center; gap: 0.55rem;
  padding: 0.55rem 0.65rem; border-radius: 4px;
  font-size: 0.84rem; font-weight: 600; color: var(--text);
}
.nav-reach-menu a:hover { background: var(--surface-alt); }
.nav-reach-menu a::after { display: none; }
.locale-combo-menu .lang-select,
.locale-combo-menu .currency-select {
  width: 100%; max-width: none; margin: 0.2rem 0;
}
.search-box {
  position: absolute; top: calc(100% + 0.6rem); right: 0;
  width: 340px; background: var(--white); border: 1px solid var(--border);
  border-radius: 12px; box-shadow: var(--shadow); padding: 0.75rem; display: none; z-index: 120;
}
.search-box.active { display: block; }
.search-box input {
  width: 100%; padding: 0.65rem 0.85rem; border: 1px solid var(--border);
  border-radius: 8px; font-size: 0.875rem; background: var(--paper); color: var(--text);
}
.search-box input:focus { outline: none; border-color: var(--gold); background: var(--white); }
.search-results { max-height: 360px; overflow-y: auto; margin-top: 0.5rem; }
.search-result-item {
  display: flex; align-items: center; gap: 0.75rem; padding: 0.5rem;
  border-radius: 8px; cursor: pointer;
}
.search-result-item:hover { background: var(--surface-alt); }
.search-result-item img { width: 44px; height: 44px; object-fit: cover; border-radius: 6px; }
.search-result-icon {
  width: 44px; height: 44px; background: var(--surface-alt); border-radius: 6px;
  display: flex; align-items: center; justify-content: center; color: var(--gold);
}
.search-result-title { font-size: 0.82rem; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-result-price { font-size: 0.75rem; color: var(--gold); font-weight: 600; }
.search-no-result { padding: 1rem; text-align: center; color: var(--text-muted); font-size: 0.82rem; }

/* ═══════════ Buttons ═══════════ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.85rem 1.7rem; border-radius: 8px;
  font-size: 0.92rem; font-weight: 600; letter-spacing: 0.06em;
  cursor: pointer; transition: all 0.25s; border: 1px solid transparent;
  text-align: center;
}
.btn-primary { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn-primary:hover { background: var(--navy-deep); }
.btn-accent { background: var(--gold); color: #fff; border-color: var(--gold); }
.btn-accent:hover { background: var(--accent-hover); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-outline-accent { background: transparent; color: var(--gold); border-color: var(--gold); }
.btn-outline-accent:hover { background: var(--gold); color: #fff; }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.4); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-soft); }

/* ═══════════ Home Hero ═══════════ */
.hero-home {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  grid-template-rows: minmax(0, 1fr) auto;
  min-height: calc(100vh - 74px);
  background: var(--paper);
  overflow: hidden;
  position: relative;
}

.hero-home::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 70%;
  height: 150%;
  background: radial-gradient(ellipse at center, rgba(184, 149, 74, 0.06) 0%, transparent 70%);
  pointer-events: none;
  animation: hero-glow 8s ease-in-out infinite alternate;
}

@keyframes hero-glow {
  0% { transform: translate(0, 0) scale(1); opacity: 0.5; }
  100% { transform: translate(-30px, -20px) scale(1.1); opacity: 0.8; }
}
.hero-tools {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  padding: 0 4.5vw 1.35rem 7vw;
}
.hero-tools a {
  position: relative;
  display: block;
  height: 8.88rem;
  overflow: hidden;
  border-radius: 12px;
  background: var(--surface-alt);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: tool-appear 0.6s ease-out both;
}

.hero-tools a:nth-child(1) { animation-delay: 0.3s; }
.hero-tools a:nth-child(2) { animation-delay: 0.4s; }
.hero-tools a:nth-child(3) { animation-delay: 0.5s; }
.hero-tools a:nth-child(4) { animation-delay: 0.6s; }

@keyframes tool-appear {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-tools a:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(18, 38, 58, 0.15);
}

.hero-tools img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 32%;
  transition: transform 0.45s ease;
}
.hero-tools a:hover img { transform: scale(1.08); }
.hero-tools .m-portrait-badge {
  left: 0.45rem;
  right: 0.45rem;
  bottom: 0.45rem;
  font-size: 0.86rem;
  padding: 0.28rem 0.4rem;
  border-radius: 6px;
  transition: background 0.3s ease, transform 0.3s ease;
}

.hero-tools a:hover .m-portrait-badge {
  background: rgba(184, 149, 74, 0.95);
  transform: translateY(-2px);
}
.hero-copy {
  display: flex; flex-direction: column; justify-content: center;
  padding: 4.2rem 4.5vw 4.2rem 7vw;
  animation: fade-in-up 0.9s ease-out;
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-badge {
  display: inline-flex; align-self: flex-start;
  padding: 0.35rem 0.95rem; border: 1px solid var(--gold);
  color: var(--gold); font-size: 0.78rem; letter-spacing: 0.22em;
  border-radius: 999px; margin-bottom: 1.4rem;
  font-family: var(--font-ui);
  animation: badge-shine 3s ease-in-out infinite;
}

@keyframes badge-shine {
  0%, 100% { box-shadow: 0 0 0 rgba(184, 149, 74, 0); }
  50% { box-shadow: 0 0 20px rgba(184, 149, 74, 0.2); }
}

.hero-copy h1 {
  font-size: clamp(2.65rem, 5.4vw, 4.5rem);
  line-height: 1.08; letter-spacing: 0.01em; font-weight: 700;
  margin-bottom: 1rem;
  animation: h1-appear 1.2s ease-out 0.2s both;
}

@keyframes h1-appear {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-copy h1 span { display: block; }
.hero-slogan {
  font-size: clamp(0.95rem, 1.6vw, 1.15rem);
  color: var(--gold); letter-spacing: 0.22em; margin-bottom: 1rem; font-weight: 600;
}
.hero-copy p { color: var(--text-secondary); max-width: 34rem; margin-bottom: 1.15rem; }
.hero-caption {
  position: static; background: none; color: var(--text-muted);
  padding: 0; border: 0; margin: -0.35rem 0 1.35rem;
  font-family: var(--font-ui); font-size: 0.75rem; letter-spacing: 0.16em;
}
.hero-index {
  list-style: none; counter-reset: ask;
  margin: 0 0 1.8rem; padding: 0;
  max-width: 28rem;
  border-top: 1px solid var(--border);
}
.hero-index li { counter-increment: ask; border-bottom: 1px solid var(--border); }
.hero-index a {
  display: flex; align-items: baseline; gap: 0.9rem;
  padding: 0.72rem 0;
  font-family: var(--font-ui); font-size: 0.98rem; font-weight: 500;
  color: var(--navy);
  transition: color 0.3s ease, transform 0.2s ease;
  animation: index-item-appear 0.5s ease-out both;
}

.hero-index li:nth-child(1) a { animation-delay: 0.4s; }
.hero-index li:nth-child(2) a { animation-delay: 0.5s; }
.hero-index li:nth-child(3) a { animation-delay: 0.6s; }

@keyframes index-item-appear {
  from {
    opacity: 0;
    transform: translateX(-15px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.hero-index a:hover {
  color: var(--gold);
  transform: translateX(8px);
}

.hero-index a::before {
  content: counter(ask, decimal-leading-zero);
  font-variant-numeric: tabular-nums;
  color: var(--gold); font-size: 0.75rem; letter-spacing: 0.08em;
  min-width: 1.5rem;
}
.hero-actions { display: flex; gap: 0.85rem; flex-wrap: wrap; animation: actions-appear 0.6s ease-out 0.7s both; }

@keyframes actions-appear {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.hero-visual { position: relative; min-height: 560px; }
.hero-visual img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover; object-position: center 18%;
  animation: visual-float 6s ease-in-out infinite;
}

@keyframes visual-float {
  0%, 100% { transform: scale(1) translateY(0); }
  50% { transform: scale(1.02) translateY(-8px); }
}

.hero-visual::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 56px;
  background: linear-gradient(90deg, var(--paper), transparent);
  pointer-events: none;
}

.trust-bar {
  background: var(--paper);
  color: var(--navy);
  padding: 0.15rem 1.5rem 1.15rem;
  animation: trust-appear 0.8s ease-out 0.9s both;
}

@keyframes trust-appear {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.trust-line {
  max-width: 920px; margin: 0 auto;
  text-align: center;
  font-family: var(--font-ui);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
}
.trust-grid {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
}
.trust-item { text-align: center; }
.trust-item strong {
  display: block; font-size: 1.45rem; color: var(--gold-soft);
  letter-spacing: 0.04em; font-weight: 700;
}
.trust-item span { font-size: 0.78rem; color: rgba(255,255,255,0.62); letter-spacing: 0.08em; }

/* ═══════════ Categories ═══════════ */
.category-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem;
}
.category-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.category-card:hover {
  transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--gold);
}
.category-photo {
  position: relative; aspect-ratio: 16/10; overflow: hidden;
}
.category-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.category-card:hover .category-photo img { transform: scale(1.06); }
.category-photo span {
  position: absolute; left: 0.9rem; bottom: 0.8rem;
  color: #fff; font-size: 1.4rem; text-shadow: 0 2px 8px rgba(0,0,0,0.35);
}
.category-body { padding: 1.15rem 1.2rem 1.35rem; }
.category-card h3 { font-size: 1.08rem; margin-bottom: 0.35rem; }
.category-card p { font-size: 0.84rem; color: var(--text-muted); }
.category-count {
  display: inline-block; margin-top: 0.75rem;
  font-size: 0.72rem; color: var(--gold); font-weight: 700; letter-spacing: 0.08em;
}

/* ═══════════ Products ═══════════ */
.product-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.25rem;
}
.product-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: visible; transition: 0.3s;
  display: flex; flex-direction: column; position: relative;
}
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--gold); }
.product-card:has(.price-fx.open) { z-index: 12; transform: none !important; }
.product-card-link { color: inherit; text-decoration: none; display: block; }
.product-image {
  aspect-ratio: 4/3; background: var(--surface-alt) center/cover no-repeat;
  position: relative; overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
}
.product-image img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; transition: transform 0.45s;
}
.product-card:hover .product-image img { transform: scale(1.07); }
.product-badge {
  position: absolute; top: 0.75rem; left: 0.75rem;
  padding: 0.22rem 0.6rem; border-radius: 4px;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.06em; z-index: 2;
}
.badge-new { background: var(--gold); color: #fff; }
.badge-private { background: var(--navy); color: #fff; }
.badge-course { background: var(--cinnabar); color: #fff; }
.product-info { padding: 1.1rem 1.15rem 0.35rem; }
.product-title { font-size: 1rem; font-weight: 650; margin-bottom: 0.3rem; }
.product-desc {
  font-size: 0.82rem; color: var(--text-secondary); line-height: 1.55; margin-bottom: 0.55rem;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.product-bottom { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; padding: 0 1.15rem 1.2rem; }
.product-price { font-size: 1.12rem; font-weight: 700; color: var(--navy); }
.price-fx { position: relative; display: inline-flex; min-width: 0; }
.price-fx-toggle {
  display: inline-flex; align-items: center; gap: 0.28rem;
  border: none; background: transparent; padding: 0.15rem 0.1rem;
  cursor: pointer; color: var(--navy); font: inherit; max-width: 100%;
}
.price-fx-toggle:hover { color: var(--gold); }
.price-fx-toggle .product-price { line-height: 1.1; }
.price-fx-caret { flex-shrink: 0; margin-top: 1px; opacity: 0.7; transition: transform 0.18s; }
.price-fx.open .price-fx-caret { transform: rotate(180deg); }
.price-fx-menu {
  display: none; position: fixed; left: 0; top: 0;
  min-width: 13.5rem; max-height: min(16.5rem, 58vh); overflow: auto;
  background: rgba(255, 252, 247, 0.96);
  backdrop-filter: blur(16px) saturate(1.15);
  -webkit-backdrop-filter: blur(16px) saturate(1.15);
  border: 1px solid rgba(226, 217, 203, 0.55);
  border-radius: 12px; box-shadow: 0 18px 40px rgba(18, 38, 58, 0.14);
  padding: 0.3rem;
  z-index: 800;
}
.price-fx.open .price-fx-menu,
body > .price-fx-menu.is-open { display: flex; flex-direction: column; }
.price-fx-opt {
  display: flex; justify-content: space-between; align-items: center; gap: 0.8rem;
  width: 100%; border: none; background: transparent; cursor: pointer;
  padding: 0.48rem 0.6rem; border-radius: 7px;
  font-size: 0.78rem; color: var(--text); text-align: left;
}
.price-fx-opt:hover, .price-fx-opt.active { background: var(--paper); color: var(--navy); }
.price-fx-opt.active { font-weight: 700; }
.price-fx-opt span:last-child { font-weight: 700; white-space: nowrap; }
.price-fx-lg .product-price { font-size: 1.7rem; }
.price-was {
  display: inline-block; margin-right: 0.45rem;
  color: var(--text-muted); font-size: 0.82rem; text-decoration: line-through;
  font-weight: 500;
}
.price-fx-lg .price-was { font-size: 1rem; }
.price-save { margin: -0.35rem 0 0.6rem; color: var(--gold); font-size: 0.82rem; font-weight: 650; }
.product-detail-info .price-fx { margin: 1rem 0; }
.product-btn {
  width: auto; min-height: 34px; border: none; border-radius: 999px;
  padding: 0.38rem 0.85rem; background: var(--navy); color: #fff; cursor: pointer;
  font-size: 0.78rem; font-weight: 650; letter-spacing: 0.04em; line-height: 1.2;
  white-space: nowrap; flex-shrink: 0;
}
.product-btn:hover { background: var(--gold); }
.add-to-cart {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.7rem; margin-top: 0.35rem;
}

/* ═══════════ Process ═══════════ */
.process-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.process-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.8rem 1.5rem; text-align: center;
}
.process-num {
  display: inline-block; color: var(--gold); font-size: 0.78rem;
  letter-spacing: 0.28em; margin-bottom: 0.7rem;
}
.process-card h3 { font-size: 1.12rem; margin-bottom: 0.5rem; }
.process-card p { font-size: 0.88rem; color: var(--text-muted); }

/* ═══════════ Gallery ═══════════ */
.gallery-mosaic {
  display: grid; grid-template-columns: 1.4fr 1fr; grid-template-rows: 1fr 1fr;
  gap: 0.85rem; min-height: 560px;
}
.gallery-portraits {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.85rem;
}
.gallery-portraits a {
  margin: 0; overflow: hidden; border-radius: 12px; position: relative;
  aspect-ratio: 3/4; display: block; background: var(--surface-alt);
}
.gallery-portraits img { width: 100%; height: 100%; object-fit: cover; object-position: center 18%; transition: transform 0.5s; }
.gallery-portraits a:hover img { transform: scale(1.04); }
.gallery-mosaic a, .gallery-mosaic figure {
  margin: 0; overflow: hidden; border-radius: 12px; position: relative;
}
.gallery-mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.gallery-mosaic a:hover img, .gallery-mosaic figure:hover img { transform: scale(1.04); }
.gallery-mosaic .g-main { grid-row: 1 / span 2; }
.gallery-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1rem 1.1rem 0.9rem;
  background: linear-gradient(transparent, rgba(13,28,46,0.72));
  color: #fff; font-size: 0.82rem; letter-spacing: 0.08em;
}

/* ═══════════ Master ═══════════ */
.master-section {
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 3.5rem;
  align-items: center; max-width: 1080px; margin: 0 auto;
}
.master-portrait {
  position: relative; overflow: hidden; border-radius: 16px;
  aspect-ratio: 3/4; background: var(--surface-alt);
  box-shadow: var(--shadow);
}
.master-portrait img, .mc-slide {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  object-position: center 18%;
  opacity: 0; transition: opacity 0.9s ease;
}
.mc-slide.active { opacity: 1; }
.master-portrait > img.master-still { opacity: 1; }
.mc-dots {
  position: absolute; bottom: 14px; left: 0; right: 0;
  display: flex; gap: 8px; justify-content: center; z-index: 3;
}
.mc-dot {
  width: 8px; height: 8px; border-radius: 50%; border: none; padding: 0; cursor: pointer;
  background: rgba(255,255,255,.55);
}
.mc-dot.active { background: var(--gold); }
.master-info h2 { font-size: 1.85rem; margin-bottom: 1rem; letter-spacing: 0.06em; }
.master-info p { color: var(--text-secondary); margin-bottom: 1rem; }
.master-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.2rem 0 1.5rem; }
.master-tag {
  padding: 0.32rem 0.8rem; border: 1px solid var(--border); border-radius: 999px;
  font-size: 0.74rem; color: var(--text-secondary); background: var(--white);
}

/* ═══════════ CTA banner ═══════════ */
.cta-banner {
  text-align: center; padding: 4.5rem 1.5rem;
  background:
    linear-gradient(180deg, rgba(8, 19, 31, 0.55), rgba(8, 19, 31, 0.62)),
    url("images/B.jpg") center 30%/cover no-repeat;
  color: #fff;
}
.cta-banner h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 0.7rem; }
.cta-banner p { color: rgba(255,255,255,0.72); margin-bottom: 1.6rem; }
.cta-actions { display: flex; gap: 0.85rem; justify-content: center; flex-wrap: wrap; }

/* ═══════════ Product detail ═══════════ */
.product-detail {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem;
  max-width: 1080px; margin: 0 auto; padding: 2rem 1.5rem 3rem;
}
.product-detail-image {
  aspect-ratio: 4/3; background: var(--white); border: 1px solid var(--border);
  border-radius: 14px; overflow: hidden;
}
.product-detail-image { position: relative; }
.product-detail-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.product-gallery { min-width: 0; display: flex; flex-direction: column; gap: 0.55rem; }
.product-gallery .product-detail-image { margin: 0; }
.product-gallery-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 2.15rem; height: 2.15rem; border-radius: 999px;
  border: 1px solid var(--border); background: rgba(255,255,255,0.94);
  color: var(--navy); font-size: 1.3rem; line-height: 1; cursor: pointer;
  display: grid; place-items: center; padding: 0;
}
.product-gallery-nav.prev { left: 0.55rem; }
.product-gallery-nav.next { right: 0.55rem; }
.product-gallery-nav:hover { border-color: var(--gold); color: var(--gold); }
.product-gallery-thumbs {
  display: flex; gap: 0.4rem; overflow-x: auto;
  padding: 0.05rem 0 0.2rem; scrollbar-width: thin;
}
.product-gallery-thumb {
  flex: 0 0 3.55rem; width: 3.55rem; height: 3.55rem; padding: 0;
  border: 1px solid var(--border); border-radius: 8px; overflow: hidden;
  background: var(--white); cursor: pointer;
}
.product-gallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-gallery-thumb.is-on { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); }
.product-detail-info h1 { font-size: 1.85rem; margin-bottom: 0.7rem; }
.product-detail-info .price { font-size: 1.7rem; font-weight: 700; color: var(--navy); margin: 1rem 0; }
.product-detail-info .desc { color: var(--text-secondary); margin-bottom: 1.2rem; }
.product-meta { border-top: 1px solid var(--border); padding-top: 1.1rem; margin-top: 1.1rem; }
.product-meta-item { display: flex; justify-content: space-between; gap: 1rem; padding: 0.5rem 0; font-size: 0.88rem; }
.product-meta-item .label { color: var(--text-muted); flex-shrink: 0; }
.product-meta-item .value { color: var(--text); font-weight: 500; text-align: right; }
.product-kind-tag {
  display: inline-block; margin: 0 0 0.55rem; padding: 0.22rem 0.65rem;
  border: 1px solid var(--gold); border-radius: 999px;
  font-size: 0.72rem; letter-spacing: 0.08em; color: var(--gold);
}
.product-story {
  max-width: 1080px; margin: 0 auto 2.4rem; padding: 0 1.5rem;
}
.product-story-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
}
.product-story-block {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 14px; padding: 1.15rem 1.2rem 1.25rem;
}
.product-story-wide { grid-column: 1 / -1; }
.product-story-block h2 {
  font-size: 0.92rem; color: var(--gold); margin: 0 0 0.55rem; letter-spacing: 0.12em;
}
.product-story-block h3 {
  font-size: 0.82rem; color: var(--text-muted); margin: 1rem 0 0.45rem;
}
.product-story-block p {
  margin: 0; font-size: 0.92rem; line-height: 1.75; color: var(--text-secondary);
}
.product-include-list, .product-process-list {
  margin: 0; padding-left: 1.15rem; color: var(--text-secondary);
  font-size: 0.92rem; line-height: 1.75;
}
.product-include-list li, .product-process-list li { margin: 0.15rem 0; }
.product-faq {
  max-width: 760px; margin: 0 auto 3rem; padding: 0 1.5rem;
}
.product-faq .faq-a a { color: var(--gold); }
@media (max-width: 720px) {
  .product-story-grid { grid-template-columns: 1fr; }
  .product-story-wide { grid-column: auto; }
}
.qty-wrap { display: flex; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; background: var(--white); }
.qty-wrap button {
  width: 38px; border: none; background: var(--paper); cursor: pointer; color: var(--navy); font-size: 1.1rem;
}
.qty-input {
  width: 56px; padding: 0.6rem 0; text-align: center; border: none; background: var(--white); font-size: 0.95rem;
}
.qty-input:focus { outline: none; }

/* ═══════════ Cart / forms ═══════════ */
.cart-section { max-width: 860px; margin: 0 auto; padding: 3rem 1.5rem 5rem; }
.cart-item {
  display: grid; grid-template-columns: 88px 1fr auto auto; gap: 1rem;
  padding: 1rem; border: 1px solid var(--border); border-radius: 12px;
  margin-bottom: 0.75rem; background: var(--white); align-items: center;
}
.cart-item-image { width: 88px; height: 88px; border-radius: 8px; overflow: hidden; background: var(--surface-alt); }
.cart-item-image img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-info h4 { font-size: 0.95rem; margin-bottom: 0.25rem; }
.cart-item-info .price-fx-toggle { color: var(--gold); padding: 0; }
.cart-item-info .price-fx-toggle .product-price { font-size: 0.88rem; color: var(--gold); font-weight: 600; }
.cart-item-qty { width: 64px; padding: 0.4rem; text-align: center; border: 1px solid var(--border); border-radius: 6px; }
.cart-item-remove { background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 1rem; }
.cart-item-remove:hover { color: var(--danger); }
.cart-summary { background: var(--white); border: 1px solid var(--border); padding: 1.4rem; border-radius: 12px; margin-top: 1.4rem; }
.cart-summary-row { display: flex; justify-content: space-between; padding: 0.4rem 0; }
.cart-summary-total {
  display: flex; justify-content: space-between; padding-top: 1rem; margin-top: 0.7rem;
  border-top: 1px solid var(--border); font-weight: 700; font-size: 1.15rem;
}
.empty-cart { text-align: center; padding: 4rem 2rem; color: var(--text-muted); background: var(--white); border-radius: 14px; border: 1px dashed var(--border); }

.checkout-box {
  margin-top: 2.2rem; background: var(--white); border: 1px solid var(--border);
  border-radius: 14px; padding: 1.6rem;
}
.form-grid { display: grid; gap: 0.9rem; }
.form-field label { display: block; font-size: 0.8rem; color: var(--text-muted); margin-bottom: 0.3rem; }
.form-field input:not([type="radio"]):not([type="hidden"]):not([type="file"]),
.form-field select, .form-field textarea {
  width: 100%; padding: 0.75rem 0.85rem; border: 1px solid var(--border);
  border-radius: 8px; background: var(--paper); color: var(--text);
}
.form-field input[type="hidden"] {
  display: none !important;
  width: 0 !important; height: 0 !important; padding: 0 !important;
  border: 0 !important; min-height: 0 !important;
}
.form-field input:not([type="radio"]):not([type="hidden"]):not([type="file"]):focus,
.form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--gold); background: var(--white);
}
.form-hint { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.25rem; }
.field-error {
  margin: 0.4rem 0 0;
  font-size: 0.78rem;
  line-height: 1.4;
  color: #b42318;
}
.form-field.is-invalid input:not([type="radio"]),
.form-field.is-invalid select,
.form-field.is-invalid .cal-picker {
  border-color: #b42318;
}
.form-field.is-invalid .gender-pills label {
  border-color: #b42318;
}
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
.gender-pills {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.4rem;
  max-width: 280px; width: 100%;
}
.gender-pills label {
  margin: 0; cursor: pointer; position: relative;
  display: flex; align-items: center; justify-content: center;
  min-height: 44px; min-width: 0; padding: 0.55rem 0.4rem;
  border: 1px solid var(--border); border-radius: 8px;
  background: var(--paper); color: var(--text-secondary);
  font-size: 0.9rem; font-weight: 600;
}
.gender-pills input[type="radio"] {
  appearance: none; -webkit-appearance: none;
  position: absolute; inset: 0; margin: 0; padding: 0; border: 0;
  width: auto; height: auto; min-height: 0; opacity: 0; cursor: pointer;
}
.gender-pills label:has(input:checked),
.gender-pills label:has(input:focus-visible) {
  background: var(--navy); color: #fff; border-color: var(--navy);
}
.gender-pills label:has(input:focus-visible) { box-shadow: 0 0 0 2px rgba(27,58,92,0.25); }
.relation-pills {
  max-width: none;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 720px) {
  .relation-pills { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.cal-picker {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--white);
  overflow: hidden;
}
.cal-picker-tabs {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.35rem;
  padding: 0.45rem; background: var(--paper);
}
.cal-picker-tabs button {
  border: 1px solid transparent; background: transparent;
  padding: 0.5rem 0.4rem; border-radius: 9px; cursor: pointer;
  color: var(--text-secondary); font: inherit; font-weight: 650;
}
.cal-picker-tabs button.active {
  background: var(--navy); color: #fff; border-color: var(--navy);
}
.cal-picker-wheels {
  position: relative;
  display: grid; grid-template-columns: 1.15fr 1fr 1fr;
  height: 200px;
}
.cal-col-viewport {
  height: 200px; overflow-y: auto;
  scroll-snap-type: y mandatory;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  mask-image: linear-gradient(180deg, transparent, #000 22%, #000 78%, transparent);
}
.cal-col-viewport::-webkit-scrollbar { width: 0; height: 0; }
.cal-col-scroller::before,
.cal-col-scroller::after { content: ""; display: block; height: 80px; }
.cal-item {
  height: 40px; scroll-snap-align: center;
  border: none; background: transparent; width: 100%;
  font: inherit; font-size: 0.9rem; color: var(--text-muted);
  cursor: pointer; padding: 0;
}
.cal-item.active { color: var(--navy); font-weight: 700; font-size: 1.02rem; }
.cal-picker-mask {
  pointer-events: none; position: absolute;
  left: 0.45rem; right: 0.45rem; top: 80px; height: 40px;
  border-radius: 8px;
  background: rgba(184, 149, 74, 0.12);
  box-shadow: inset 0 0 0 1px rgba(184, 149, 74, 0.28);
}
.cal-picker-readout {
  text-align: center; font-size: 0.78rem; color: var(--gold);
  font-weight: 650; padding: 0.4rem 0.6rem 0.25rem; margin: 0;
  line-height: 1.45;
}
.cal-picker-leap {
  text-align: center; font-size: 0.72rem; color: var(--text-muted);
  padding: 0 0.6rem 0.65rem; margin: 0; line-height: 1.45;
}
.cal-picker-leap[hidden] { display: none; }
.hour-picker-head {
  display: grid; grid-template-columns: 1fr 1.35fr; gap: 0.35rem;
  padding: 0.45rem; background: var(--paper);
}
.hour-picker-head span {
  padding: 0.5rem 0.4rem; border-radius: 9px; text-align: center;
  color: var(--text-secondary); font-weight: 650; font-size: 0.84rem;
}
.hour-picker-wheels { grid-template-columns: 1fr; }
.hour-item {
  padding: 0 0.55rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pay-channels {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem;
}
.pay-card {
  display: grid; gap: 0.2rem; padding: 0.85rem 0.9rem;
  border: 1px solid var(--border); border-radius: 12px; background: var(--white);
}
.pay-card-brand {
  position: relative; overflow: hidden; isolation: isolate;
  gap: 0.55rem; padding: 1rem 1rem 1.05rem;
  border: 0; min-height: 7.4rem;
}
.pay-card-brand::before,
.pay-card-brand::after {
  content: ""; position: absolute; pointer-events: none; border-radius: 50%;
}
.pay-card-alipay {
  background: linear-gradient(165deg, #3aa0ff 0%, #1677ff 46%, #0b5ed7 100%);
  box-shadow: 0 14px 28px rgba(22, 119, 255, 0.28);
}
.pay-card-alipay::before {
  width: 8.2rem; height: 8.2rem; right: -2.1rem; top: -2.6rem;
  background: rgba(255,255,255,0.16);
}
.pay-card-alipay::after {
  width: 4.4rem; height: 4.4rem; right: 1.6rem; bottom: -1.8rem;
  background: rgba(0, 40, 120, 0.12);
}
.pay-card-paypal {
  background: linear-gradient(145deg, #001c64 0%, #003087 42%, #0070ba 78%, #009cde 100%);
  box-shadow: 0 14px 28px rgba(0, 48, 135, 0.3);
}
.pay-card-paypal::before {
  width: 7.4rem; height: 7.4rem; right: -1.8rem; top: -2.2rem;
  background: rgba(0, 156, 222, 0.28);
}
.pay-card-paypal::after {
  width: 3.6rem; height: 3.6rem; left: -1.1rem; bottom: -1.2rem;
  background: rgba(255,255,255,0.08);
}
.pay-brand-top {
  position: relative; z-index: 1;
  display: flex; align-items: center; gap: 0.7rem;
}
.pay-brand-logo {
  display: grid; place-items: center; flex-shrink: 0;
  filter: drop-shadow(0 6px 12px rgba(8, 24, 64, 0.18));
}
.pay-brand-name { display: grid; gap: 0.08rem; min-width: 0; }
.pay-card-brand .pay-kicker { color: rgba(255,255,255,0.72); }
.pay-card-brand strong,
.pay-card-alipay strong,
.pay-card-paypal .pay-paypal-hint { color: #fff; font-size: 0.98rem; font-weight: 700; }
.pay-card-brand .pay-copy {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; width: fit-content; max-width: 100%;
  margin-top: 0.15rem; padding: 0.48rem 0.9rem;
  border-radius: 999px; background: #fff;
  font-weight: 700; letter-spacing: 0.02em; line-height: 1.2;
  box-shadow: 0 8px 18px rgba(8, 28, 72, 0.14);
  word-break: break-all;
}
.pay-card-alipay .pay-copy { color: #1677ff; }
.pay-card-paypal .pay-copy { color: #003087; }
.pay-card-alipay .pay-copy:hover,
.pay-card-paypal .pay-copy:hover { color: inherit; filter: brightness(0.97); }
.pay-kicker {
  font-size: 0.68rem; letter-spacing: 0.16em; color: var(--gold); font-weight: 700;
}
.pay-card strong { color: var(--navy); font-size: 0.92rem; }
.pay-paypal-hint { font-size: 0.82rem; font-weight: 600; color: var(--text-muted); letter-spacing: 0.02em; }
.pay-copy {
  margin-top: 0.25rem; border: 0; background: transparent; padding: 0;
  text-align: left; cursor: pointer; font: inherit; font-weight: 700;
  color: var(--navy); letter-spacing: 0.02em;
}
.pay-copy:hover { color: var(--gold); }
.pay-card-bank { grid-column: 1 / -1; }
.pay-fill-english { font-weight: 700; color: var(--navy); }
.pay-bank-corr {
  margin: 0.1rem 0 0.25rem;
  padding-left: 0.15rem;
}
.pay-bank-corr > summary.pay-bank-sub { min-height: 1.85rem; font-size: 0.76rem; }
.pay-bank-head {
  display: flex; justify-content: space-between; align-items: center;
  gap: 0.7rem; flex-wrap: wrap;
}
.pay-bank-fold {
  display: flex; align-items: center; gap: 0.55rem;
  flex: 1; min-width: 0; margin: 0; padding: 0.12rem 0;
  border: 0; background: none; color: inherit; font: inherit;
  text-align: left; cursor: pointer;
}
.pay-bank-chevron {
  width: 0.42rem; height: 0.42rem; flex-shrink: 0;
  border-right: 1.6px solid var(--navy); border-bottom: 1.6px solid var(--navy);
  transform: rotate(-45deg); opacity: 0.7;
}
.pay-card-bank:not(.is-collapsed) .pay-bank-chevron {
  transform: rotate(45deg); margin-top: 0.12rem;
}
.pay-bank-fold-copy {
  display: grid; gap: 0.08rem; min-width: 0;
}
.pay-bank-fold-hint {
  font-size: 0.72rem; font-weight: 600; color: var(--text-muted);
  letter-spacing: 0.02em;
}
.pay-card-bank.is-collapsed .pay-bank-hint-close,
.pay-card-bank:not(.is-collapsed) .pay-bank-hint-open { display: none; }
.pay-copy-all {
  padding: 0.42rem 0.85rem; font-size: 0.82rem; font-weight: 700;
  white-space: nowrap;
}
.pay-bank-body { display: grid; gap: 0.15rem; }
.pay-card-bank.is-collapsed .pay-bank-body,
.pay-bank-body[hidden] { display: none; }
.pay-bank-sect {
  border-top: 1px dashed var(--border);
  margin-top: 0.45rem; padding-top: 0.2rem;
}
.pay-bank-sub {
  margin: 0.35rem 0 0.1rem; font-size: 0.8rem; font-weight: 700;
  color: var(--navy); letter-spacing: 0.04em;
}
.pay-bank-sect > summary.pay-bank-sub {
  display: flex; align-items: center; gap: 0.5rem;
  list-style: none; cursor: pointer; min-height: 2.2rem;
}
.pay-bank-sect > summary.pay-bank-sub::-webkit-details-marker { display: none; }
.pay-bank-sect > summary.pay-bank-sub::before {
  content: ""; width: 0.38rem; height: 0.38rem; flex-shrink: 0;
  border-right: 1.6px solid var(--navy); border-bottom: 1.6px solid var(--navy);
  transform: rotate(-45deg); opacity: 0.65;
}
.pay-bank-sect[open] > summary.pay-bank-sub::before {
  transform: rotate(45deg); margin-top: 0.12rem;
}
.pay-card-bank .pay-kv { align-items: flex-start; }
.pay-card-bank .pay-kv .pay-copy {
  word-break: break-word; text-align: right; max-width: min(70%, 28rem);
  line-height: 1.45; font-size: 0.86rem;
}
.checkout-block {
  display: grid; gap: 0.9rem; padding: 1rem 1rem 1.05rem;
  border: 1px solid var(--border); border-radius: 12px; background: var(--paper);
}
.checkout-block[hidden], #tradeField[hidden] { display: none !important; }
.checkout-block-title {
  margin: 0; font-size: 0.95rem; font-weight: 700; color: var(--navy);
}
.file-drop {
  border: 1px dashed var(--border); border-radius: 10px;
  background: var(--white); padding: 0.9rem 1rem;
}
.file-drop.is-dragover { border-color: var(--gold); background: #fff8ea; }
.file-drop input[type="file"] {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); border: 0;
}
.file-drop-label { display: grid; gap: 0.2rem; cursor: pointer; }
.file-drop-label span:first-child { font-size: 0.9rem; color: var(--navy); }
.file-list { list-style: none; margin: 0.7rem 0 0; padding: 0; display: grid; gap: 0.35rem; }
.file-chip {
  display: flex; align-items: center; justify-content: space-between; gap: 0.6rem;
  font-size: 0.78rem; padding: 0.35rem 0.55rem; border-radius: 8px;
  background: var(--paper); border: 1px solid var(--border);
}
.file-chip button {
  border: none; background: none; cursor: pointer; color: var(--text-muted); font-size: 1rem;
}
.file-chip button:hover { color: var(--danger); }

/* ═══════════ Page hero ═══════════ */
.page-hero {
  padding: 4.2rem 0 2.2rem; text-align: center;
  background: linear-gradient(180deg, #f8f4ec, var(--paper));
}

/* ═══════════ Shop filters ═══════════ */
.filter-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(108px, 1fr));
  gap: 0.55rem;
  max-width: 980px;
  margin: 0 auto 2rem;
  scroll-margin-top: 5.5rem;
}
.ornament-more { margin-top: 2.6rem; }
.ornament-more-kicker {
  margin: 0 0 0.9rem;
  text-align: center;
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  color: var(--text-secondary);
}
.ornament-more-bar { margin-bottom: 0; }
.ornament-top-btn {
  display: flex;
  width: min(100%, 16rem);
  margin: 1.1rem auto 0.2rem;
  justify-content: center;
}
.shop-lead {
  max-width: 40rem;
  margin: -0.4rem auto 0.2rem;
  text-align: center;
}
.shop-lead[hidden] { display: none; }
.shop-lead-title {
  margin: 0 0 0.35rem;
  color: var(--navy);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.55;
}
.shop-lead-text {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.75;
}
.shop-panel {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.22rem;
  min-height: 4.1rem;
  padding: 0.65rem 0.35rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--white);
  color: var(--text-secondary);
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s, color 0.18s, box-shadow 0.18s;
}
.shop-panel-mark {
  position: relative;
  display: inline-flex;
  overflow: hidden;
  font-size: 0.95rem; line-height: 1; color: var(--gold);
}
.shop-panel-name { font-size: 0.8rem; font-weight: 650; letter-spacing: 0.02em; text-align: center; line-height: 1.25; }
.shop-panel:hover { border-color: var(--gold-soft); color: var(--navy); }
.shop-panel.active {
  border-color: var(--gold);
  color: var(--navy);
  background: #fff8ea;
  box-shadow: 0 0 0 1px var(--gold);
}

.ornament-subnav {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem;
  margin: 0 0 1.6rem;
}
.ornament-subnav a {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 2.15rem; padding: 0.3rem 0.85rem;
  border: 1px solid var(--border); border-radius: 999px;
  font-size: 0.82rem; color: var(--text-secondary); background: var(--white);
}
.ornament-subnav a:hover { border-color: var(--gold); color: var(--navy); }
.ornament-sub {
  margin: 2rem 0 1rem; text-align: center;
  font-size: 1.08rem; font-weight: 650; color: var(--navy);
  scroll-margin-top: 5.5rem;
}
.filter-chip {
  padding: 0.4rem 0.95rem; border: 1px solid var(--border); border-radius: 999px;
  background: var(--white); color: var(--text-secondary); font-size: 0.82rem; cursor: pointer;
}
.filter-chip.active, .filter-chip:hover { border-color: var(--gold); color: var(--navy); background: #fff8ea; }

/* ═══════════ Reviews / FAQ ═══════════ */
.reviews-section { padding: 4.5rem 0; }
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.1rem; margin-top: 0.5rem; }
.review-card {
  background: var(--white); border: 1px solid var(--border); border-radius: 12px; padding: 1.25rem;
}
.review-stars { color: var(--gold); font-size: 0.85rem; margin-bottom: 0.55rem; }
.review-line, .review-text {
  font-size: 0.86rem; color: var(--text); margin: 0 0 0.4rem; line-height: 1.55;
}
.review-text { color: var(--text-secondary); margin-bottom: 0.75rem; }
.review-k {
  display: inline-block; min-width: 2.75rem; margin-right: 0.35rem;
  font-size: 0.72rem; letter-spacing: 0.08em; color: var(--gold); font-weight: 650;
}
.review-author { font-size: 0.75rem; color: var(--text-muted); }

.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%; background: none; border: none; padding: 1.05rem 0;
  font-size: 0.98rem; color: var(--text); text-align: left; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
}
.faq-q::after { content: "+"; font-size: 1.2rem; color: var(--gold); margin-left: 1rem; }
.faq-item.open .faq-q::after { content: "−"; }
.faq-a { max-height: 0; overflow: hidden; transition: 0.3s; font-size: 0.9rem; color: var(--text-secondary); }
.faq-item.open .faq-a { max-height: 640px; padding: 0 0 1rem; }

/* ═══════════ About ═══════════ */
.about-layout { max-width: 820px; margin: 0 auto; }
.about-portrait {
  width: 100%; max-width: 360px; margin: 0 auto 2rem;
  aspect-ratio: 3/4; border-radius: 14px; overflow: hidden;
  box-shadow: var(--shadow);
}
.about-portrait img { width: 100%; height: 100%; object-fit: cover; }
.about-layout h2 { font-size: 1.2rem; margin: 2rem 0 0.8rem; color: var(--gold); }
.about-layout p { color: var(--text-secondary); }
.about-voice {
  margin: 0 0 0.4rem;
  padding: 1.15rem 1.25rem 1rem;
  border-left: 2px solid var(--gold);
  background: var(--paper-deep);
  border-radius: 0 12px 12px 0;
}
.about-layout .about-voice-kicker {
  margin: 0 0 0.55rem;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  color: var(--gold);
}
.about-layout .about-voice p:not(.about-voice-kicker) {
  margin: 0;
  color: var(--navy);
  font-size: 1.05rem;
  line-height: 1.9;
}
.about-voice footer {
  margin-top: 0.85rem;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  color: var(--gold);
}
.role-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.9rem;
  margin: 1.1rem 0 1.4rem;
}
.role-card {
  background: var(--white); border: 1px solid var(--border); border-radius: 12px;
  padding: 1.05rem 1.1rem 1.15rem;
}
.role-kicker {
  display: block; font-size: 0.72rem; letter-spacing: 0.22em; color: var(--gold);
  margin-bottom: 0.35rem;
}
.role-card h3 { font-size: 1.02rem; margin-bottom: 0.4rem; color: var(--navy); }
.role-card p { font-size: 0.88rem; line-height: 1.7; margin: 0; }
.about-note {
  font-size: 0.88rem; line-height: 1.8; padding: 0.95rem 1.05rem;
  border-left: 2px solid var(--gold); background: var(--paper-deep);
  border-radius: 0 10px 10px 0;
}
.about-social {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.85rem 1.2rem;
  margin: 1.15rem 0 0.2rem;
  padding: 0.95rem 1.05rem;
  background: var(--paper-deep);
  border-radius: 12px;
}
.about-social-copy { flex: 1; min-width: 12rem; }
.about-social-copy strong { display: block; color: var(--navy); margin-bottom: 0.22rem; }
.about-social-copy p { margin: 0; font-size: 0.88rem; }
.about-tt {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: #111; color: #fff;
  padding: 0.55rem 0.95rem; border-radius: 999px;
  font-size: 0.86rem; font-weight: 600;
}
.about-tt:hover { color: #fff; filter: brightness(1.08); }
@media (max-width: 680px) {
  .role-grid { grid-template-columns: 1fr; }
}
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.85rem; margin-top: 0.6rem; }
.gallery-item { margin: 0; aspect-ratio: 3/4; border-radius: 10px; overflow: hidden; background: var(--surface-alt); position: relative; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; object-position: center 18%; transition: transform 0.4s; }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 0.85rem 0.9rem 0.75rem;
  background: linear-gradient(transparent, rgba(13,28,46,0.7));
  color: #fff; font-size: 0.78rem; letter-spacing: 0.08em;
}
.gallery-grid.portrait-4 { grid-template-columns: repeat(4, 1fr); }

.legal-body { max-width: 760px; margin: 0 auto; color: var(--text-secondary); }
.legal-body h2 { color: var(--navy); font-size: 1.15rem; margin: 1.8rem 0 0.6rem; }
.legal-body p { margin-bottom: 0.9rem; }
.legal-body ul { margin: 0 0 1rem 1.2rem; }
.legal-body li { margin-bottom: 0.4rem; line-height: 1.7; }
.legal-body a { color: var(--gold); }
.legal-meta { font-size: 0.82rem; color: var(--text-muted); letter-spacing: 0.04em; }
.legal-note {
  background: var(--paper); border: 1px solid var(--border); border-radius: 10px;
  padding: 0.9rem 1rem; font-size: 0.86rem; line-height: 1.75;
}
.form-hint { font-size: 0.8rem; color: var(--text-muted); line-height: 1.6; margin: 0.2rem 0 0.8rem; }
.footer-link-btn {
  display: block; background: none; border: 0; padding: 0.22rem 0;
  font-size: 0.82rem; color: rgba(255,255,255,0.68); cursor: pointer; font-family: inherit; text-align: left;
}
.footer-link-btn:hover { color: var(--gold-soft); }

/* Cookie bar — large-site pattern */
.cookie-bar {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 500;
  max-width: 1120px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 1.4rem;
  background: rgba(16, 24, 32, 0.75); color: #fff; border-radius: 16px;
  padding: 1.15rem 1.4rem; box-shadow: 0 18px 50px rgba(0,0,0,0.18);
  border: 1px solid rgba(201,162,39,0.28);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.cookie-bar.hidden, .cookie-modal.hidden, .cookie-overlay.hidden { display: none; }
.cookie-bar-copy { flex: 1; min-width: 0; }
.cookie-bar-copy strong { display: block; font-size: 0.98rem; margin-bottom: 0.3rem; }
.cookie-bar-copy p { font-size: 0.82rem; line-height: 1.65; color: rgba(255,255,255,0.72); margin: 0; }
.cookie-bar-copy a { color: var(--gold-soft); text-decoration: underline; }
.cookie-bar-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; flex-shrink: 0; }
.btn-ghost-cookie, .btn-outline-cookie {
  border-radius: 8px; padding: 0.55rem 0.95rem; font-size: 0.82rem; cursor: pointer; font-family: inherit;
}
.btn-ghost-cookie { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.28); }
.btn-outline-cookie { background: transparent; color: var(--gold-soft); border: 1px solid rgba(201,162,39,0.55); }
.cookie-overlay {
  position: fixed; inset: 0; background: rgba(8,12,18,0.55); z-index: 520;
}
.cookie-modal {
  position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(520px, calc(100vw - 2rem)); z-index: 530;
  background: #fff; border-radius: 16px; padding: 1.4rem 1.5rem 1.3rem;
  box-shadow: 0 24px 60px rgba(0,0,0,0.28);
}
.cookie-modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.6rem; }
.cookie-modal-head h3 { font-size: 1.15rem; }
.cookie-close { background: none; border: 0; font-size: 1.5rem; cursor: pointer; line-height: 1; color: var(--text-muted); }
.cookie-modal-lead { font-size: 0.84rem; color: var(--text-secondary); margin-bottom: 1rem; line-height: 1.6; }
.cookie-row {
  display: flex; justify-content: space-between; gap: 1rem; align-items: center;
  padding: 0.85rem 0; border-top: 1px solid var(--border); cursor: pointer;
}
.cookie-row strong { display: block; font-size: 0.92rem; }
.cookie-row em { display: block; font-style: normal; font-size: 0.78rem; color: var(--text-muted); margin-top: 0.25rem; line-height: 1.5; }
.cookie-row input { width: 18px; height: 18px; accent-color: #1a3a4a; }
.cookie-modal-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 1rem; gap: 1rem; }
.cookie-modal-actions a { font-size: 0.82rem; color: var(--gold); }

.chat-floats {
  position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 410;
  display: flex; flex-direction: column; align-items: flex-end; gap: 0.5rem;
  transform: scale(0.95);
  transform-origin: bottom right;
}
.wa-float, .line-float, .tt-float {
  display: flex; align-items: center; gap: 0.45rem;
  color: #fff; padding: 0.7rem 1rem; border-radius: 999px;
  font-size: 0.82rem; font-weight: 600;
}
.wa-float svg, .line-float svg, .tt-float svg {
  display: block; width: 22px; height: 22px;
}
.wa-float {
  background: #25D366;
  box-shadow: 0 10px 24px rgba(37,211,102,0.35);
}
.tt-float {
  background: #000;
  box-shadow: 0 10px 24px rgba(0,0,0,0.35);
}
.line-float {
  background: #06C755;
  box-shadow: 0 10px 24px rgba(6,199,85,0.35);
}
body.cookie-open .chat-floats { bottom: 7.6rem; }
.wa-float:hover, .line-float:hover, .tt-float:hover { filter: brightness(1.05); }
.chat-floats .icon-solid { display: none; }
.wa-float .icon-solid, .line-float .icon-solid { display: block; }

.hall-float {
  position: relative;
  display: flex; align-items: center; gap: 0.45rem;
  background: var(--navy); color: #fff;
  padding: 0.7rem 1rem; border: 0; border-radius: 999px;
  font: inherit; font-size: 0.82rem; font-weight: 600;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(27,58,92,0.35);
}
.hall-float svg { display: block; width: 22px; height: 22px; }
.hall-chat-dot {
  position: absolute; top: -2px; right: -2px;
  width: 10px; height: 10px; border-radius: 50%;
  background: #c24141; border: 2px solid #fff;
}
.hall-chat-dot.hidden { display: none; }
.hall-chat-panel {
  position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 560;
  width: min(380px, calc(100vw - 1.6rem));
  max-width: calc(100vw - 1.6rem);
  height: min(540px, calc(100dvh - 5.5rem), calc(100vh - 5.5rem));
  background: #fffdf8; border: 1px solid var(--border); border-radius: 16px;
  box-shadow: 0 18px 50px rgba(18,38,58,0.18);
  display: flex; flex-direction: column; overflow: hidden;
  overscroll-behavior: contain;
}
.hall-chat-panel.hidden { display: none; }
html.livechat-open,
body.livechat-open { overflow: hidden; overscroll-behavior: none; }
body.livechat-open .chat-floats { visibility: hidden; pointer-events: none; }
.hall-chat-head {
  position: relative;
  display: flex; justify-content: space-between; align-items: flex-start; gap: 0.6rem;
  padding: 0.9rem 3.2rem 0.75rem 1rem; background: var(--navy); color: #fff;
  flex: 0 0 auto;
}
.hall-chat-head > div { min-width: 0; flex: 1; }
.hall-chat-head strong { display: block; font-size: 1rem; }
.hall-chat-head p { margin: 0.25rem 0 0; font-size: 0.72rem; line-height: 1.45; color: rgba(255,255,255,0.72); overflow-wrap: anywhere; }
.hall-chat-x {
  position: absolute; top: 0.55rem; right: 0.55rem;
  width: 36px; height: 36px; padding: 0; margin: 0;
  display: flex; align-items: center; justify-content: center;
  border: 0; border-radius: 50%;
  background: rgba(255,255,255,0.18); color: #fff;
  cursor: pointer; z-index: 2; flex-shrink: 0;
}
.hall-chat-x svg { display: block; width: 18px; height: 18px; }
.hall-chat-x:hover { background: rgba(255,255,255,0.28); color: #fff; }
.hall-chat-log {
  flex: 1 1 auto; min-height: 0; overflow: auto;
  padding: 0.85rem 0.9rem; background: var(--paper);
  overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
}
.hall-chat-greet { font-size: 0.82rem; color: var(--text-secondary); line-height: 1.6; margin-bottom: 0.7rem; }
.hall-bubble {
  max-width: 86%; padding: 0.45rem 0.65rem; border-radius: 10px;
  margin: 0.35rem 0; font-size: 0.84rem; line-height: 1.5;
  white-space: pre-wrap; word-break: break-word;
}
.hall-bubble.visitor { background: #fff; border: 1px solid var(--border); margin-left: auto; }
.hall-bubble.staff, .hall-bubble.assistant { background: var(--navy); color: #fff; }
.hall-bubble a { color: inherit; text-decoration: underline; }
.hall-bubble time { display: block; font-size: 0.68rem; opacity: 0.65; margin-top: 0.2rem; }
.hall-typing { display: flex; gap: 0.28rem; align-items: center; min-height: 1.4rem; padding: 0.55rem 0.8rem; }
.hall-typing span {
  width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,0.85);
  animation: hall-typing 1s infinite ease-in-out;
}
.hall-typing span:nth-child(2) { animation-delay: 0.15s; }
.hall-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes hall-typing {
  0%, 80%, 100% { opacity: 0.25; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(-2px); }
}
.hall-chat-alts {
  display: flex; flex-wrap: nowrap; gap: 0.4rem; padding: 0.5rem 0.85rem;
  border-top: 1px solid var(--border); flex: 0 0 auto; min-width: 0;
}
.hall-chat-alt {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.3rem;
  min-height: 34px; min-width: 0; flex: 1 1 auto; padding: 0.32rem 0.45rem; border-radius: 999px;
  color: #fff; font-size: 0.75rem; font-weight: 700; white-space: nowrap;
}
.hall-chat-alt span { overflow: hidden; text-overflow: ellipsis; }
.hall-chat-alt svg { display: block; width: 15px; height: 15px; }
.hall-chat-alt .icon-solid { display: block; }
.hall-chat-alt-wa { background: #25D366; }
.hall-chat-alt-line { background: #06C755; }
.hall-chat-alt-email { background: var(--navy); }
.hall-chat-alt:hover { filter: brightness(1.06); color: #fff; }
.hall-chat-form {
  display: flex; gap: 0.45rem; padding: 0.65rem 0.8rem 0.8rem;
  border-top: 1px solid var(--border); background: #fff;
  flex: 0 0 auto; min-width: 0;
}
.hall-chat-form textarea {
  flex: 1 1 auto; min-width: 0; width: 100%;
  min-height: 52px; max-height: 96px; resize: none;
  border: 1px solid var(--border); border-radius: 8px; padding: 0.45rem 0.55rem;
  font: inherit; font-size: 0.88rem;
}
.hall-chat-form .btn {
  align-self: flex-end; flex: 0 0 auto;
  padding: 0.55rem 0.85rem; letter-spacing: 0.02em; white-space: nowrap;
}
.hall-chat-form .btn:disabled { opacity: 0.55; cursor: wait; }

.m-mall { display: none; }
.home-offers { margin-top: 0.9rem; }
.home-offers.hidden { display: none; }
.home-offers-lead {
  margin: 0 0 0.55rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.5;
}
.home-offer-grid { display: grid; gap: 0.55rem; }
.home-offer {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.75rem 0.8rem 0.8rem;
  background: #fffdf8;
}
.home-offer h3 {
  margin: 0 0 0.28rem;
  font-size: 0.95rem;
  color: var(--navy);
}
.home-offer p {
  margin: 0 0 0.6rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.home-offer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.home-offer-row .btn { flex: 0 0 auto; min-height: 36px; padding: 0.4rem 0.85rem; font-size: 0.78rem; }
.home-offer-both { width: 100%; margin-top: 0.15rem; justify-content: center; }
.m-bazi { scroll-margin-top: 5.5rem; }

@media (min-width: 721px) {
  .m-mall {
    display: block;
    max-width: 1040px;
    margin: 0 auto;
    padding: 0.4rem 1.2rem 2.2rem;
  }
  .m-portraits,
  .m-wushu { display: none !important; }
  .m-mall-shelf {
    display: block;
    margin-top: 1.8rem;
    padding: 0 0 0.4rem;
  }
  .m-mall-shelf .m-mall-head {
    position: relative;
    display: block;
    margin: 0 0 0.8rem;
    padding: 0;
    background: none;
    border: 0;
    color: inherit;
    text-align: center;
  }
  .m-mall-shelf .m-mall-seal,
  .m-mall-shelf .m-mall-kicker { display: none; }
  .m-mall-shelf .m-mall-title { justify-content: center; }
  .m-mall-shelf .m-mall-head h2 {
    margin: 0;
    color: var(--navy);
    font-size: 1.7rem;
    letter-spacing: 0.14em;
  }
  .m-mall-shelf .m-mall-head p {
    margin: 0.45rem 0 0;
    color: var(--text-secondary);
    font-size: 0.92rem;
    max-width: none;
  }
  .m-mall-shelf .m-mall-filters {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.55rem;
    max-width: 920px;
    margin: 0 auto 0.3rem;
    padding: 0;
  }
  .m-mall-shelf .shop-lead { margin-top: 0.85rem; }
  .m-hepan-kicker {
    margin: 0.9rem 0 0.4rem;
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--navy);
    letter-spacing: 0.04em;
  }
  .m-bazi .relation-pills { margin-top: 0.25rem; }
  .m-bazi {
    margin: 0.85rem 0 0;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1rem 1.1rem 1.1rem;
    box-shadow: 0 8px 24px rgba(18, 38, 58, 0.05);
  }
  .m-bazi.is-collapsed { padding-bottom: 0.9rem; }
  .m-bazi-heading { margin: 0; }
  .m-bazi-toggle {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 0.55rem;
    margin: 0;
    padding: 0.1rem 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
    min-height: 44px;
  }
  .m-bazi-fold-copy {
    display: flex;
    align-items: baseline;
    gap: 0.28em;
    min-width: 0;
    font-size: 1.08rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1.35;
  }
  .m-bazi-fold-hint {
    font-size: 78%;
    font-weight: 600;
    letter-spacing: 0.02em;
    opacity: 0.8;
  }
  .m-bazi-toggle::after {
    content: "";
    width: 0.42rem;
    height: 0.42rem;
    border-right: 1.6px solid var(--navy);
    border-bottom: 1.6px solid var(--navy);
    transform: rotate(45deg);
    flex-shrink: 0;
    margin-top: -0.18rem;
    opacity: 0.7;
  }
  .m-bazi:not(.is-collapsed) .m-bazi-toggle::after {
    transform: rotate(-135deg);
    margin-top: 0.18rem;
  }
  .m-bazi:not(.is-collapsed) .m-bazi-heading { margin-bottom: 0.2rem; }
  .m-bazi-lead { font-size: 0.82rem; color: var(--text-muted); line-height: 1.55; margin-bottom: 0.75rem; }
  .m-bazi-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem 0.7rem;
  }
  .m-bazi-name, .m-bazi-gender, .m-bazi-place { min-width: 0; }
  .m-bazi-date, .m-bazi-hour { grid-column: 1 / -1; }
  .m-bazi-submit, .m-bazi-chat { width: 100%; justify-content: center; }
  .m-bazi-submit { margin-top: 0.8rem; }
  .m-bazi-chat { margin-top: 0.45rem; }
  .bazi-live { margin-top: 0.9rem; }
  .bazi-live.hidden, .bazi-live-err.hidden { display: none; }
  .bazi-live-err { color: #8a3b2b; margin: 0.55rem 0 0; }
  .bazi-live-board {
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.9rem 0.85rem 0.8rem;
    background: #fffdf8;
  }
  .home-offer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .hero-home, .trust-bar, .pc-home-only { display: none !important; }
  .m-mall { display: block; padding-bottom: 5.5rem; }
  .m-portraits {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.4rem;
    padding: 0.7rem 0.75rem 0.15rem;
  }
  .m-portraits a {
    display: block; aspect-ratio: 3/4; overflow: hidden; border-radius: 8px;
    background: var(--surface-alt);
    transition: transform 0.3s ease;
  }
  .m-portraits a:hover { transform: scale(1.02); }
  .m-portraits img { width: 100%; height: 100%; object-fit: cover; object-position: center 32%; }

  html, body { overflow-x: clip; max-width: 100%; }
  .nav {
    background: #fffdf8;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    overflow: visible;
  }
  .nav-inner {
    width: 100%; max-width: 100%;
    height: auto; min-height: 56px; gap: 0.3rem;
    flex-wrap: wrap;
    padding: 0 max(12px, env(safe-area-inset-right)) 0 max(12px, env(safe-area-inset-left));
  }
  .nav-logo { gap: 0.35rem; min-width: 0; flex: 1; overflow: hidden; height: 56px; }
  .nav-logo img { width: 28px; height: 28px; flex-shrink: 0; }
  .nav-logo-full, .cart-label-full, .cart-label-short { display: none !important; }
  .nav-logo-short { display: inline; font-size: 0.95rem; overflow: hidden; text-overflow: ellipsis; }
  .nav-actions { gap: 0.15rem; flex-shrink: 0; margin-left: auto; height: 56px; flex-wrap: nowrap; }
  .nav-logo { flex: 1 1 auto; min-width: 0; }
  .nav-logo-short { font-size: 0.82rem; }
  .nav-reach-btn, .locale-combo-btn {
    height: 34px; padding: 0 0.4rem; font-size: 0.72rem; letter-spacing: 0.02em;
  }
  .nav-chat { display: flex; flex-shrink: 0; gap: 0.28rem; transform: none; }
  .search-btn { padding: 0.35rem; width: 34px; height: 34px; justify-content: center; }
  .cart-btn, .nav-toggle { width: 34px; height: 34px; }
  .lang-in-menu,
  .currency-in-menu { max-width: none; font-size: 0.9rem; padding: 0.55rem 0.7rem; }
  .cart-icon { display: block; }
  .cart-btn {
    padding: 0; width: 34px; height: 34px;
    display: flex; align-items: center; justify-content: center;
  }
  .cart-count { top: -4px; right: -4px; }
  .nav-toggle { display: flex; width: 34px; height: 34px; flex-shrink: 0; }
  .search-box { width: min(320px, calc(100vw - 1.2rem)); right: 0.2rem; }

  .m-hepan-kicker {
    margin: 0.85rem 0 0.4rem;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--navy);
    letter-spacing: 0.04em;
  }
  .m-bazi .relation-pills { margin-top: 0.25rem; }
  .m-bazi {
    margin: 0.7rem 0.7rem 0.55rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 0.95rem 0.9rem 1rem;
    box-shadow: 0 8px 24px rgba(18, 38, 58, 0.05);
  }
  .m-bazi + .m-bazi { margin-top: 0.45rem; }
  .m-bazi.is-collapsed { padding-bottom: 0.85rem; }
  .m-bazi-heading { margin: 0; }
  .m-bazi-toggle {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 0.55rem;
    margin: 0;
    padding: 0.1rem 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
    min-height: 44px;
  }
  .m-bazi-fold-copy {
    display: flex;
    align-items: baseline;
    gap: 0.28em;
    min-width: 0;
    font-size: 1.02rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1.35;
  }
  .m-bazi-fold-hint {
    font-size: 78%;
    font-weight: 600;
    letter-spacing: 0.02em;
    opacity: 0.8;
  }
  .m-bazi-toggle::after {
    content: "";
    width: 0.42rem;
    height: 0.42rem;
    border-right: 1.6px solid var(--navy);
    border-bottom: 1.6px solid var(--navy);
    transform: rotate(45deg);
    flex-shrink: 0;
    margin-top: -0.18rem;
    opacity: 0.7;
  }
  .m-bazi:not(.is-collapsed) .m-bazi-toggle::after {
    transform: rotate(-135deg);
    margin-top: 0.18rem;
  }
  .m-bazi:not(.is-collapsed) .m-bazi-heading { margin-bottom: 0.2rem; }
  .m-bazi-heading { position: relative; }
  .m-bazi-heading::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 28px;
    height: 1px;
    background: var(--foil-line);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.9s cubic-bezier(0.22, 0.08, 0.2, 1);
    pointer-events: none;
  }
  .m-bazi:not(.is-collapsed) .m-bazi-heading::after { transform: scaleX(1); }
  .m-bazi-lead { font-size: 0.75rem; color: var(--text-muted); line-height: 1.55; margin-bottom: 0.7rem; }
  .m-cal { display: flex; gap: 0.4rem; margin-bottom: 0.65rem; }
  .m-cal button {
    flex: 1; padding: 0.48rem 0.4rem; border-radius: 8px;
    border: 1px solid var(--border); background: var(--paper);
    font-size: 0.84rem; color: var(--text-secondary); cursor: pointer;
  }
  .m-cal button.active { background: var(--navy); color: #fff; border-color: var(--navy); }
  .m-bazi-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.55rem 0.5rem;
  }
  .m-bazi-name, .m-bazi-gender, .m-bazi-place {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 3.8em minmax(0, 1fr);
    gap: 0.35rem 0.5rem;
    align-items: center;
  }
  .m-bazi-name > label, .m-bazi-gender > label, .m-bazi-place > label {
    margin-bottom: 0;
    font-size: 0.82rem;
    line-height: 1.25;
    color: var(--text-secondary);
  }
  .m-bazi-name > :not(label),
  .m-bazi-gender > :not(label),
  .m-bazi-place > :not(label) {
    min-width: 0;
    max-width: 100%;
  }
  .m-bazi .gender-pills { max-width: none; }
  .m-bazi .gender-pills label { min-height: 44px; padding: 0.45rem 0.25rem; font-size: 0.86rem; }
  .m-bazi .gender-pills input[type="radio"] {
    width: auto; height: auto; min-height: 0; padding: 0; margin: 0; border: 0;
  }
  .m-bazi-date, .m-bazi-hour {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.28rem;
    min-width: 0;
  }
  .m-bazi-date > label, .m-bazi-hour > label {
    margin-bottom: 0;
    padding-top: 0;
    font-size: 0.82rem;
    color: var(--text-secondary);
  }
  .m-bazi-date .cal-picker,
  .m-bazi-hour .hour-picker { margin-top: 0; }
  .cal-item { font-size: 16px; }
  .m-bazi-grid .form-field input:not([type="radio"]):not([type="hidden"]):not([type="file"]) {
    padding: 0.62rem 0.7rem; font-size: 16px; min-height: 44px;
    width: 100%; max-width: 100%;
  }
  .m-bazi-place .place-picker-btn {
    padding: 0.62rem 0.7rem; font-size: 16px; min-height: 44px;
    border-radius: 10px;
  }
  .m-bazi-submit, .m-bazi-chat { width: 100%; justify-content: center; padding: 0.7rem 1rem; }
  .m-bazi-submit { margin-top: 0.7rem; }
  .m-bazi-chat { margin-top: 0.45rem; }
  .bazi-live { margin-top: 0.85rem; }
  .bazi-live.hidden, .bazi-live-err.hidden { display: none; }
  .bazi-live-err { color: #8a3b2b; margin: 0.55rem 0 0; }
  .bazi-live-board {
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.85rem 0.75rem 0.75rem;
    background: #fffdf8;
  }
  .bazi-live-board .sample-pillars { margin-bottom: 0.65rem; }
  .bazi-live-meta {
    margin: 0.2rem 0;
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.55;
  }
  .bazi-live-meta strong { color: var(--navy); margin-right: 0.35rem; }
  .bazi-live-note, .bazi-live-foot {
    margin: 0.45rem 0 0;
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.5;
  }
  .bazi-live-brief {
    margin: 0.55rem 0 0;
    font-size: 0.86rem;
    color: var(--text-secondary);
    line-height: 1.7;
  }
  .bazi-pdf-btn { width: 100%; margin-top: 0.7rem; justify-content: center; }
  .m-mall-shelf { padding: 0 0 0.5rem; }
  .m-mall-head {
    position: relative; display: block; overflow: hidden;
    margin: 0.55rem 0 0;
    padding: 1rem 1.15rem 0.9rem;
    background:
      radial-gradient(90% 120% at 100% 0%, rgba(184,149,74,0.28), transparent 52%),
      linear-gradient(165deg, #0a1624 0%, #1B3A5C 72%);
    color: #fff;
    border: none;
    border-top: 1px solid rgba(212,188,125,0.45);
    border-bottom: 1px solid rgba(212,188,125,0.18);
  }
  .m-mall-seal {
    position: absolute; right: 0.55rem; top: 50%; transform: translateY(-50%);
    font-size: 3.4rem; line-height: 1; color: rgba(255,255,255,0.08);
    font-weight: 700; letter-spacing: 0; pointer-events: none;
    opacity: 0;
    animation: seal-in 0.8s ease 1.22s forwards, seal-float 4s ease-in-out 2s infinite;
  }

  @keyframes seal-float {
    0%, 100% { transform: translateY(-50%) rotate(0deg); }
    50% { transform: translateY(-55%) rotate(2deg); }
  }
  .m-mall-title {
    display: flex;
    align-items: baseline;
    gap: 0.55rem;
    position: relative;
    z-index: 1;
    min-width: 0;
  }
  .m-mall-kicker {
    display: inline;
    font-size: 0.68rem;
    letter-spacing: 0.22em;
    color: var(--gold-soft);
    margin: 0;
    flex-shrink: 0;
    opacity: 0.92;
  }
  .m-mall-head h2 {
    font-size: 1.15rem; letter-spacing: 0.08em; color: #fff; margin: 0;
  }
  .m-mall-head p {
    font-size: 0.78rem; color: rgba(255,255,255,0.78); margin-top: 0.28rem;
    position: relative; z-index: 1; max-width: 78%;
  }
  .m-mall-filters {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.4rem;
    margin: 0;
    padding: 0.85rem 0.75rem 0.45rem;
    overflow: visible;
  }
  .m-mall-filters .shop-panel {
    min-height: 3.4rem;
    padding: 0.45rem 0.2rem;
    border-radius: 10px;
  }
  .m-mall-filters .shop-panel-name { font-size: 0.72rem; }
  .m-mall-shelf .product-grid { padding: 0 0.75rem; overflow: visible; }

  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 0.55rem; }
  .product-card { border-radius: 10px; min-width: 0; }
  .product-card:hover { transform: none; box-shadow: none; }
  .product-image { aspect-ratio: 1; }
  .product-image img { object-fit: cover; object-position: center; }
  .product-card:hover .product-image img { transform: none; }
  .product-info { padding: 0.5rem 0.55rem 0.2rem; }
  .product-desc { display: none; }
  .product-title {
    font-size: 0.78rem; line-height: 1.35; margin-bottom: 0.4rem;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  }
  .product-bottom { padding: 0 0.5rem 0.6rem; gap: 0.35rem; flex-wrap: wrap; }
  .product-bottom .price-fx { flex: 1 1 auto; min-width: 0; }
  .product-price { font-size: 0.95rem; }
  .price-fx-menu,
  body > .price-fx-menu.is-open {
    left: auto; right: auto;
    min-width: min(16.5rem, calc(100vw - 1.25rem));
    background: rgba(255, 252, 247, 0.68);
  }
  .product-grid, .shop-block, .product-card { overflow: visible; }
  .product-btn { width: 100%; min-height: 32px; border-radius: 8px; padding: 0.4rem 0.45rem; font-size: 0.72rem; }
  .product-badge { top: 0.4rem; left: 0.4rem; font-size: 0.6rem; padding: 0.15rem 0.4rem; }

  .page-hero { padding: 1.1rem 0 0.4rem; }
  .page-hero .gold-line, .page-hero .section-subtitle { display: none; }
  .shop-lead { margin: 0.15rem auto 0.35rem; padding: 0 0.15rem; }
  .shop-lead-title { font-size: 0.98rem; }
  .shop-lead-text { font-size: 0.84rem; }
  .ornament-more { margin-top: 1.4rem; }
  .ornament-top-btn { min-height: 44px; }
  .page-hero .section-title { font-size: 1.2rem; margin-bottom: 0.7rem; }
  .shop-block { padding: 0.9rem 0 !important; }
  .shop-block .container { padding: 0 0.65rem; }
  .shop-block .container > h2 {
    text-align: left !important; font-size: 0.95rem !important;
    margin: 0.2rem 0 0.65rem !important; letter-spacing: 0.04em;
  }
  .shop-block .container > p { display: none; }
  .shop-block[data-category="ornament"] .container > p { display: block; font-size: 0.78rem; margin: 0 0 0.7rem !important; }
  .ornament-sub { font-size: 0.92rem; margin: 1.15rem 0 0.65rem; }
  .ornament-subnav { margin-bottom: 0.85rem; gap: 0.35rem; }
  .ornament-subnav a { min-height: 1.9rem; font-size: 0.74rem; padding: 0.22rem 0.65rem; }
  .filter-bar {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.4rem;
    margin-bottom: 0.8rem;
  }
  .m-mall-filters:has(+ .shop-lead.is-placeholder) {
    margin-bottom: 0;
    padding-bottom: 0;
  }
  .m-mall-shelf .shop-lead.is-placeholder {
    height: 28px;
    margin: 0;
    padding: 0;
    overflow: hidden;
  }
  .m-mall-shelf .shop-lead.is-placeholder .shop-lead-title,
  .m-mall-shelf .shop-lead.is-placeholder .shop-lead-text { display: none; }
  .shop-panel { min-height: 3.5rem; padding: 0.48rem 0.2rem; }
  .shop-panel-name { font-size: 0.74rem; }
  .section { padding: 2.2rem 0; }
  .container { padding: 0 0.85rem; }
  .cookie-bar { flex-direction: column; align-items: stretch; left: 0.6rem; right: 0.6rem; bottom: 0.6rem; }
  .cookie-bar-actions { justify-content: stretch; }
  .cookie-bar-actions .btn { flex: 1; }
  body.cookie-open .chat-floats { bottom: max(12.5rem, calc(11.4rem + env(safe-area-inset-bottom))); }
}

.success-card {
  max-width: 560px; margin: 3rem auto; background: var(--white);
  border: 1px solid var(--border); border-radius: 16px; padding: 2.4rem 1.8rem; text-align: center;
}
.success-card.success-card-wide { max-width: 640px; }
.success-card .gold-line { margin-bottom: 1rem; }
.success-card h1 { font-size: 1.6rem; margin-bottom: 0.7rem; }
.order-id { color: var(--gold); font-weight: 700; letter-spacing: 0.08em; margin: 0.8rem 0 1.4rem; }
.pay-guide {
  text-align: left; margin: 1.4rem 0 1.1rem; padding: 1.1rem 1.1rem 1.2rem;
  border: 1px solid var(--border); border-radius: 14px; background: var(--paper);
}
.pay-guide h2 { font-size: 1.05rem; margin: 0 0 0.85rem; color: var(--navy); }
.pay-kv {
  display: flex; justify-content: space-between; align-items: center; gap: 0.8rem;
  padding: 0.45rem 0; border-bottom: 1px dashed var(--border); font-size: 0.9rem;
}
.pay-kv span { color: var(--text-muted); flex-shrink: 0; }
.pay-kv .pay-copy { font-size: 0.95rem; }
.pay-steps { margin: 0.9rem 0 1rem 1.1rem; padding: 0; color: var(--text-secondary); font-size: 0.86rem; line-height: 1.7; }
.pay-actions { display: flex; flex-wrap: wrap; gap: 0.55rem; margin: 0.9rem 0 0.4rem; }
.pay-actions .btn { flex: 1; min-width: 12rem; justify-content: center; }
.pay-guide-items { text-align: left; margin: 0.4rem 0 1.4rem; }
.sample-hint { margin-top: 0.7rem; }
.sample-overlay {
  position: fixed; inset: 0; z-index: 560;
  background: rgba(18, 28, 38, 0.48);
  display: flex; align-items: flex-end; justify-content: center;
  padding: 0.8rem;
  overflow: auto;
}
.sample-modal {
  position: relative; width: min(560px, 100%);
  max-height: min(92vh, 900px); overflow: auto;
  background: #f6efe2; border: 1px solid var(--border);
  border-radius: 16px 16px 10px 10px; padding: 1.1rem 1rem 1.3rem;
  box-shadow: 0 22px 48px rgba(18, 38, 58, 0.22);
}
.sample-close {
  position: sticky; top: 0; float: right;
  width: 36px; height: 36px; border: 0; border-radius: 50%;
  background: var(--white); color: var(--navy); cursor: pointer; font-size: 1rem;
}
.sample-lead { color: var(--text-muted); font-size: 0.8rem; margin: 0 2.4rem 0.8rem 0; }
.sample-paper {
  position: relative; background: #fffdf8; border: 1px solid #e4d8c2;
  padding: 1.15rem 1.1rem 1.2rem; overflow: hidden;
}
.sample-wm {
  position: absolute; inset: 28% 0 auto; text-align: center;
  font-size: 1.35rem; letter-spacing: 0.28em; color: rgba(184, 149, 74, 0.18);
  font-weight: 700; pointer-events: none; transform: rotate(-12deg);
}
.sample-kicker { font-size: 0.72rem; letter-spacing: 0.16em; color: var(--gold); font-weight: 700; }
.sample-paper h3 { font-size: 1.2rem; margin: 0.25rem 0 0.2rem; color: var(--navy); }
.sample-paper header p { font-size: 0.82rem; color: var(--text-muted); margin: 0 0 0.85rem; }
.sample-rows { display: grid; gap: 0.35rem; }
.sample-row {
  display: grid; grid-template-columns: 6.2rem 1fr; gap: 0.6rem;
  font-size: 0.84rem; padding: 0.32rem 0; border-bottom: 1px solid #efe6d6;
}
.sample-row span { color: var(--text-muted); }
.sample-notes { margin: 0.85rem 0 0; padding-left: 1.1rem; color: var(--text-secondary); font-size: 0.8rem; line-height: 1.65; }
.sample-paper footer { margin-top: 0.9rem; font-size: 0.72rem; color: var(--text-muted); letter-spacing: 0.04em; }
.sample-pillars {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.4rem; margin-bottom: 0.9rem;
}
.sample-pillars div {
  border: 1px solid #e4d8c2; border-radius: 8px; padding: 0.45rem 0.2rem; text-align: center; background: #fff;
}
.sample-pillars em { display: block; font-style: normal; font-size: 0.7rem; color: var(--text-muted); }
.sample-pillars b { display: block; font-size: 1.15rem; color: var(--navy); }
.sample-pillars span { font-size: 0.9rem; }
.sample-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.35rem; margin-bottom: 0.9rem;
}
.sample-grid div {
  min-height: 3.2rem; border: 1px solid #e4d8c2; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  text-align: center; font-size: 0.72rem; padding: 0.3rem; background: #fff;
}
.sample-grid div:nth-child(5) { background: #f4ead3; font-weight: 700; }
body.sample-open { overflow: hidden; }
@media (min-width: 720px) {
  .sample-overlay { align-items: center; }
  .sample-modal { border-radius: 16px; }
}
@media (max-width: 640px) {
  .pay-channels { grid-template-columns: 1fr; }
  .pay-kv { flex-wrap: wrap; }
  .pay-copy-all { width: 100%; justify-content: center; white-space: normal; }
  .pay-card-bank .pay-kv .pay-copy { max-width: 100%; text-align: left; }
}

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; max-width: 980px; margin: 0 auto; }
.contact-card { background: var(--white); border: 1px solid var(--border); border-radius: 14px; padding: 1.6rem; }
.contact-card h3 { margin-bottom: 0.6rem; }
.contact-card p, .contact-card a { color: var(--text-secondary); font-size: 0.92rem; }

/* ═══════════ Footer ═══════════ */
.footer { background: var(--navy-deep); color: var(--white); padding: 3.2rem 1.5rem 1.4rem; margin-top: 0; }
.footer-inner {
  max-width: 1200px; margin: 0 auto 2rem;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem;
}
.footer-brand { display: flex; align-items: center; gap: 0.55rem; font-size: 1.08rem; font-weight: 700; margin-bottom: 0.75rem; }
.footer-brand img { width: 32px; height: 32px; object-fit: contain; }
.footer-p { font-size: 0.82rem; color: rgba(255,255,255,0.62); line-height: 1.75; }
.footer h4 { font-size: 0.82rem; margin-bottom: 0.9rem; letter-spacing: 0.16em; color: var(--gold-soft); }
.footer a { display: block; font-size: 0.82rem; color: rgba(255,255,255,0.68); padding: 0.22rem 0; }
.footer a:hover { color: var(--gold-soft); }
.footer-bottom {
  max-width: 1200px; margin: 0 auto; padding-top: 1.3rem;
  border-top: 1px solid rgba(255,255,255,0.12);
  text-align: center; font-size: 0.74rem; color: rgba(255,255,255,0.4); letter-spacing: 0.12em;
}

.bazi-email-overlay {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(18, 28, 38, 0.45);
  display: flex; align-items: flex-end; justify-content: center;
  padding: 1rem;
}
.bazi-email-overlay.hidden { display: none; }
.bazi-email-modal {
  width: min(420px, 100%);
  background: #fffdf8;
  border: 1px solid var(--border);
  border-radius: 16px 16px 12px 12px;
  padding: 1.15rem 1.1rem 1.2rem;
  box-shadow: 0 18px 40px rgba(18, 38, 58, 0.18);
}
.bazi-email-modal h3 { font-size: 1.05rem; margin-bottom: 0.35rem; color: var(--navy); }
.bazi-email-modal input[type="email"] {
  width: 100%; margin-top: 0.55rem; padding: 0.7rem 0.8rem;
  border: 1px solid var(--border); border-radius: 10px; font-size: 16px;
}
.bazi-email-actions { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 0.9rem; }
.bazi-email-err { color: var(--cinnabar, #9b2c2c); }
@media (min-width: 720px) {
  .bazi-email-overlay { align-items: center; }
  .bazi-email-modal { border-radius: 16px; }
}

.bazi-paipan {
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: #fffdf8;
}
.bazi-paipan-head {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.75rem 0.85rem;
  background:
    radial-gradient(90% 140% at 0% 0%, rgba(184,149,74,0.28), transparent 55%),
    linear-gradient(90deg, #1a2433 0%, #243044 100%);
  color: #f6f2ea;
}
.bazi-paipan-seal {
  flex: 0 0 2.1rem;
  width: 2.1rem; height: 2.1rem;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(212,188,125,0.7);
  color: #e7d39a;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.bazi-paipan-who { flex: 1; min-width: 0; }
.bazi-paipan-who h3 {
  margin: 0 0 0.12rem;
  font-size: 1.05rem;
  color: #e7d39a;
  font-weight: 700;
}
.bazi-paipan-who p {
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.45;
  color: rgba(246,242,234,0.72);
}
.bazi-edit-btn {
  flex-shrink: 0;
  min-height: 34px;
  padding: 0.28rem 0.75rem;
  font-size: 0.78rem;
  color: #e7d39a;
  border-color: rgba(212,188,125,0.55);
  background: transparent;
}
.bazi-edit-btn:hover { background: rgba(255,255,255,0.06); }
.bazi-paipan-grid {
  display: grid;
  gap: 0.75rem;
  padding: 0.75rem;
}
@media (min-width: 900px) {
  .bazi-paipan-grid { grid-template-columns: minmax(0, 1.35fr) minmax(240px, 0.9fr); align-items: start; }
}
.bazi-paipan-kicker {
  margin: 0 0 0.4rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--navy);
}
.bazi-board {
  display: grid;
  grid-template-columns: 2.45rem repeat(4, minmax(0, 1fr));
  width: 100%;
  background: #fff;
  border: 1px solid #eadfcb;
  border-radius: 12px;
  overflow: hidden;
}
.bazi-board-lab,
.bazi-board-colh,
.bazi-board-cell {
  min-width: 0;
  border-right: 1px solid #f0e6d6;
  border-bottom: 1px solid #f0e6d6;
  padding: 0.42rem 0.18rem;
  text-align: center;
  line-height: 1.35;
}
.bazi-board > :nth-child(5n) { border-right: 0; }
.bazi-board-lab {
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  background: #faf7f1;
  color: #8a8070;
  font-size: 0.72rem;
  font-weight: 600;
}
.bazi-board-colh {
  background: #faf7f1;
  color: #6f675c;
  font-size: 0.78rem;
  font-weight: 700;
}
.bazi-board-cell {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  font-size: 0.78rem;
  color: var(--navy);
}
.bazi-board-cell.is-gz {
  align-items: center;
  padding: 0.55rem 0.1rem;
  background: #fffefb;
}
.bazi-gz {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.14em;
  font-size: clamp(1.32rem, 4.6vw, 1.9rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.02em;
}
.bazi-gz b { font-weight: 800; }
.bazi-gz .wx-ico,
.bazi-hide .wx-ico {
  width: 1.15em;
  height: 1.15em;
  flex: 0 0 auto;
  display: block;
  object-fit: contain;
}
.bazi-hide {
  display: inline-flex;
  align-items: center;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
}
.wx-wood { color: #5a9428; }
.wx-fire { color: #e04810; }
.wx-earth { color: #804010; }
.wx-metal { color: #c48400; }
.wx-water { color: #1488c8; }
.bazi-stack { display: flex; flex-direction: column; gap: 0.12rem; align-items: center; }
.bazi-stack.muted span { color: var(--text-secondary); font-size: 0.72rem; }
.bazi-stack.sha span { color: #c9a227; font-size: 0.7rem; font-weight: 600; }
.bazi-empty { color: #cbbba4; }
.bazi-notes {
  margin-top: 0.65rem;
  padding: 0.55rem 0.75rem 0.6rem;
  background: #fff;
  border: 1px solid #eadfcb;
  border-radius: 10px;
}
.bazi-notes p {
  margin: 0.12rem 0;
  font-size: 0.78rem;
  line-height: 1.55;
  color: #5e564c;
}
.bazi-notes strong { color: #c9a227; font-weight: 700; }
.bazi-reads {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: 0 0.75rem 0.9rem;
}
.bazi-read {
  border: 1px solid #eadfcb;
  border-radius: 12px;
  background: #fff;
  padding: 0.75rem 0.8rem 0.85rem;
}
.bazi-read h4 {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  color: var(--navy);
}
.bazi-read p {
  margin: 0.18rem 0;
  font-size: 0.84rem;
  line-height: 1.65;
  color: #4e463c;
}
.bazi-luck-start,
.bazi-luck-label {
  color: #8a7040 !important;
  font-size: 0.75rem !important;
}
.bazi-luck-row {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  padding: 0.15rem 0.05rem 0.4rem;
  scrollbar-width: thin;
}
.bazi-luck-card {
  flex: 0 0 auto;
  min-width: 4.35rem;
  border: 1px solid #eadfcb;
  background: #fffefb;
  border-radius: 10px;
  padding: 0.38rem 0.28rem 0.42rem;
  text-align: center;
  cursor: pointer;
  color: var(--navy);
  font: inherit;
}
.bazi-luck-card.is-month { cursor: default; }
.bazi-luck-card.is-on {
  border-color: #b08a3e;
  box-shadow: inset 0 0 0 1px #b08a3e;
}
.bazi-luck-card.is-now { background: #fbf6ea; }
.bazi-luck-card b { font-size: 1.05rem; font-weight: 800; }
.bazi-luck-card span,
.bazi-luck-card em {
  display: block;
  font-style: normal;
  font-size: 0.68rem;
  color: #7a6e5e;
  line-height: 1.35;
}
.bazi-pdf-sheet h2, #baziPdfSheet h2 {
  font-size: 1rem;
  margin: 0.8rem 0 0.2rem;
}
@media (max-width: 420px) {
  .bazi-board { grid-template-columns: 2.15rem repeat(4, minmax(0, 1fr)); }
  .bazi-board-lab { font-size: 0.64rem; }
  .bazi-gz { font-size: 1.22rem; }
  .bazi-hide { font-size: 0.68rem; }
}
.bazi-classics {
  border: 1px solid #eee4d4;
  border-radius: 12px;
  padding: 0.75rem 0.7rem 0.85rem;
  background: #fff;
}
.bazi-classics h4 {
  margin: 0 0 0.5rem;
  text-align: center;
  font-size: 0.92rem;
  color: var(--navy);
}
.bazi-classic-tabs {
  display: flex;
  gap: 0.2rem;
  overflow-x: auto;
  padding-bottom: 0.35rem;
  margin-bottom: 0.45rem;
  scrollbar-width: none;
}
.bazi-classic-tabs::-webkit-scrollbar { display: none; }
.bazi-classic-tab {
  flex: 0 0 auto;
  border: 0;
  background: none;
  padding: 0.28rem 0.45rem;
  font-size: 0.72rem;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
}
.bazi-classic-tab.is-on {
  color: #b08a3e;
  border-bottom-color: #b08a3e;
  font-weight: 700;
}
.bazi-classic-free p, .bazi-classic-lock p {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  line-height: 1.55;
  color: var(--text-secondary);
}
.bazi-classic-topic { color: #b08a3e !important; font-weight: 700; }
.bazi-classic-lock {
  margin-top: 0.55rem;
  padding: 0.7rem 0.65rem 0.75rem;
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(255,253,248,0.2), rgba(255,253,248,0.92)),
    repeating-linear-gradient(-12deg, #f3ead6 0 10px, #efe4cc 10px 20px);
  border: 1px dashed rgba(176,138,62,0.45);
  text-align: center;
}
.bazi-classic-lock .btn { width: 100%; justify-content: center; margin-top: 0.35rem; }
.bazi-pay-overlay { z-index: 520; align-items: center; padding: 1.1rem; }
.bazi-pay-modal {
  width: min(640px, 100%);
  max-height: min(92vh, 880px);
  overflow: visible;
  display: flex;
  flex-direction: column;
  padding: 1.25rem 1.2rem 1.15rem;
}
.bazi-pay-fx {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem 0.7rem;
  margin-top: 0.75rem;
}
.bazi-pay-fx-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}
.bazi-pay-fx-chips { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.bazi-pay-fx-chip {
  min-width: 3.4rem;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--navy);
  border-radius: 999px;
  padding: 0.28rem 0.7rem;
  font-size: 0.78rem;
  font-weight: 650;
  cursor: pointer;
}
.bazi-pay-fx-chip:hover { border-color: var(--gold); color: var(--gold); }
.bazi-pay-fx-chip.is-on {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}
.bazi-pay-offers {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-top: 0.85rem;
  overflow: auto;
  min-height: 0;
  padding-right: 0.1rem;
}
.bazi-pay-offer {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.85rem 0.9rem 0.9rem;
  background: #fff;
}
.bazi-pay-offer h4 { margin: 0 0 0.25rem; font-size: 1rem; color: var(--navy); }
.bazi-pay-offer p { margin: 0; font-size: 0.8rem; line-height: 1.55; color: var(--text-secondary); }
.bazi-pay-offer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-top: 0.65rem;
}
.bazi-pay-offer-row .btn { flex: 0 0 auto; min-height: 38px; padding: 0.45rem 0.95rem; font-size: 0.82rem; }
.bazi-pay-modal .bazi-email-actions { margin-top: 0.95rem; }
body.bazi-pay-open { overflow: hidden; }
@media (max-width: 719px) {
  .bazi-pay-overlay { align-items: flex-end; padding: 0.55rem 0.55rem 0.7rem; }
  .bazi-pay-modal { width: 100%; max-height: min(94vh, 860px); border-radius: 16px 16px 12px 12px; }
}

.toast {
  position: fixed; bottom: 1.6rem; left: 50%; transform: translateX(-50%);
  background: var(--navy-deep); color: #fff; padding: 0.75rem 1.4rem;
  border-radius: 8px; font-size: 0.88rem; z-index: 400;
  box-shadow: 0 10px 30px rgba(0,0,0,0.22);
}

.reveal { opacity: 0; transform: translateY(18px); transition: 0.6s ease; }
.reveal.visible { opacity: 1; transform: none; }

.related-wrap { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem 4rem; }

/* ═══════════ Responsive ═══════════ */
@media (max-width: 980px) {
  .hero-home { grid-template-columns: 1fr; }
  .hero-tools { padding: 0 1.5rem 1.2rem; }
  .hero-tools a { height: 7.44rem; }
  .hero-copy { padding: 3.2rem 1.5rem 1.6rem; }
  .hero-copy h1 { font-size: clamp(2.2rem, 8vw, 3.2rem); }
  .hero-visual { min-height: 58vh; }
  .hero-visual::after { background: linear-gradient(180deg, var(--paper) 0%, transparent 28%); width: 100%; height: 72px; bottom: auto; }
  .trust-grid, .category-grid, .process-grid, .contact-grid { grid-template-columns: 1fr 1fr; }
  .filter-bar { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gallery-mosaic { grid-template-columns: 1fr; min-height: 0; }
  .gallery-mosaic .g-main { grid-row: auto; min-height: 280px; }
  .gallery-portraits, .gallery-grid.portrait-4 { grid-template-columns: 1fr 1fr; }
  .master-section, .product-detail { grid-template-columns: 1fr; gap: 1.8rem; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1240px) {
  .cart-label-full { display: none; }
  .cart-icon { display: block; }
  .cart-btn {
    padding: 0; width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
  }
}
@media (max-width: 1080px) {
  .nav-toggle { display: flex; flex-shrink: 0; }
  .nav-logo-full { display: none; }
  .nav-logo-short { display: inline; }
  .nav {
    background: #fffdf8;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .nav-inner {
    height: auto; min-height: 74px;
    flex-wrap: wrap;
    padding: 0 max(1rem, env(safe-area-inset-right)) 0 max(1rem, env(safe-area-inset-left));
    gap: 0.6rem;
  }
  .nav-logo, .nav-actions { height: 74px; }
  .nav-chat { display: flex; }
  .nav-chat-label { display: none; }
  .nav-chat-btn { width: 36px; padding: 0; }
  .chat-floats {
    right: max(0.7rem, env(safe-area-inset-right));
    bottom: max(0.85rem, env(safe-area-inset-bottom));
    gap: 0.4rem;
    max-width: calc(100vw - 1.4rem - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px));
  }
  .hall-float, .tt-float, .wa-float, .line-float {
    min-height: 40px;
    padding: 0.48rem 0.8rem;
    font-size: 0.78rem;
    width: auto; height: auto;
    border-radius: 999px;
  }
  .hall-float, .tt-float, .wa-float, .line-float { max-width: 100%; }
  .hall-float span, .tt-float span, .wa-float span, .line-float span {
    display: inline; min-width: 0;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }
  .hall-float svg, .tt-float svg, .wa-float svg, .line-float svg {
    width: 18px; height: 18px;
  }
  .tt-float { background: #000; color: #fff; box-shadow: 0 8px 18px rgba(0,0,0,0.28); }
  .wa-float { background: #25D366; color: #fff; box-shadow: 0 8px 18px rgba(37,211,102,0.32); }
  .line-float { background: #06C755; color: #fff; box-shadow: 0 8px 18px rgba(6,199,85,0.32); }
  .hall-float { background: var(--navy); color: #fff; box-shadow: 0 8px 18px rgba(27,58,92,0.32); }
  .wa-float .icon-solid, .line-float .icon-solid, .tt-float .icon-solid { display: none; }
  .hall-chat-panel {
    z-index: 800;
    top: 0; right: 0; bottom: 0; left: 0;
    width: 100%;
    max-width: 100%;
    height: 100vh;
    height: 100svh;
    max-height: 100vh;
    max-height: 100svh;
    margin: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
  .hall-chat-head {
    padding-top: calc(0.75rem + env(safe-area-inset-top, 0px));
    padding-left: max(1rem, env(safe-area-inset-left, 0px));
    padding-right: max(3.2rem, calc(env(safe-area-inset-right, 0px) + 3rem));
  }
  .hall-chat-x {
    width: 40px; height: 40px;
    top: calc(0.45rem + env(safe-area-inset-top, 0px));
    right: max(0.45rem, env(safe-area-inset-right, 0px));
  }
  .hall-chat-form textarea { font-size: 16px; }
  .hall-chat-form {
    padding-bottom: calc(0.7rem + env(safe-area-inset-bottom, 0px));
    padding-left: max(0.8rem, env(safe-area-inset-left, 0px));
    padding-right: max(0.8rem, env(safe-area-inset-right, 0px));
  }
  .hall-chat-alts {
    padding-top: 0.45rem;
    padding-bottom: 0.45rem;
    padding-left: max(0.7rem, env(safe-area-inset-left, 0px));
    padding-right: max(0.7rem, env(safe-area-inset-right, 0px));
  }
  .hall-chat-alt { min-height: 36px; flex: 1 1 auto; }
  .lang-in-menu,
  .currency-in-menu {
    display: block; width: 100%;
    margin: 0.45rem 0 0; font-size: 0.9rem; padding: 0.55rem 0.7rem;
    max-width: none;
  }
  .nav-links {
    order: 5;
    flex: 1 0 100%;
    width: 100%;
    position: static;
    transform: none;
    left: auto; right: auto; top: auto; bottom: auto;
    z-index: auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    padding: 0 0.15rem;
    background: #fffdf8;
    box-shadow: none;
    border-top: 0;
    transition: max-height 0.28s ease, opacity 0.2s ease, padding 0.2s ease;
  }
  .nav-links.open {
    transform: none;
    max-height: min(70vh, 32rem);
    overflow: auto;
    opacity: 1;
    pointer-events: auto;
    padding: 0.2rem 0.15rem 0.75rem;
    border-top: 1px solid var(--border);
    -webkit-overflow-scrolling: touch;
  }
  .nav-links a {
    display: block;
    width: 100%;
    padding: 0.82rem 0.35rem;
    font-size: 1.02rem;
    border-bottom: 1px solid var(--border);
  }
  .nav-links a::after { display: none; }
  .nav-hint {
    display: block;
    position: static;
    transform: none;
    width: auto;
    max-width: none;
    margin-top: 0.2rem;
    padding: 0;
    background: none;
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 400;
    letter-spacing: 0;
    text-align: left;
    white-space: normal;
  }
  .nav-hint::before { display: none; }
  .nav-links a.nav-book {
    width: auto;
    margin: 0.85rem 0.35rem 0.15rem;
    text-align: center;
    border-bottom: 0;
    color: #fff;
  }
  .nav-toggle[aria-expanded="true"] { border-color: var(--gold); }
}
@media (max-width: 640px) {
  .trust-grid, .category-grid, .process-grid, .contact-grid, .gallery-grid, .form-row-2, .pay-channels { grid-template-columns: 1fr; }
  .section { padding: 3.4rem 0; }
  .cart-item { grid-template-columns: 72px 1fr; }
  .footer-inner { grid-template-columns: 1fr; text-align: center; }
  .footer-brand { justify-content: center; }
  .footer-link-btn { text-align: center; width: 100%; }
  .hero-copy h1 { letter-spacing: 0.06em; }
}
@media (max-width: 420px) {
  .search-btn { width: 36px; height: 36px; }
}
@media (max-width: 720px) {
  .nav-inner {
    min-height: 56px;
    padding-left: max(12px, env(safe-area-inset-left));
    padding-right: max(22px, env(safe-area-inset-right));
  }
  .nav-logo, .nav-actions { height: 56px; }
  .cart-btn, .nav-toggle {
    width: 34px;
    height: 34px;
    min-width: 34px;
    min-height: 34px;
  }
}

body.nav-open { overflow: auto; }
body.place-open { overflow: hidden; }

.place-picker-btn {
  width: 100%; text-align: left;
  padding: 0.72rem 0.9rem;
  border: 1px solid var(--border); border-radius: 10px;
  background: var(--white); color: var(--text);
  font: inherit; cursor: pointer;
  min-height: 44px;
  -webkit-user-select: none; user-select: none;
  -webkit-touch-callout: none;
}
.place-picker-btn.is-empty { color: var(--text-muted); }
.place-picker-btn:focus {
  outline: none; border-color: var(--gold); background: var(--white);
}
.place-overlay {
  position: fixed; inset: 0; z-index: 720;
  background: rgba(18, 28, 38, 0.42);
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
}
.place-overlay.hidden { display: none !important; }
.place-picker input[type="hidden"],
.form-field input[name="birthPlace"][type="hidden"] {
  display: none !important;
  pointer-events: none !important;
  position: absolute !important;
  width: 0 !important; height: 0 !important;
  opacity: 0 !important; border: 0 !important;
}
.place-modal {
  width: min(420px, 100%);
  background: #fff;
  border-radius: 22px;
  padding: 1rem 1rem 1.15rem;
  box-shadow: 0 22px 50px rgba(18, 38, 58, 0.22);
  display: flex; flex-direction: column; gap: 0.75rem;
  max-height: min(88vh, 640px);
}
.place-modal:focus { outline: none; }
.place-modal-top {
  display: flex; align-items: center; justify-content: space-between; gap: 0.6rem;
}
.place-tabs {
  display: flex; background: #f3eee6; border-radius: 999px; padding: 3px;
}
.place-tabs button {
  border: 0; background: transparent; cursor: pointer; font: inherit;
  padding: 0.38rem 1.15rem; border-radius: 999px; color: var(--text-secondary); font-weight: 650;
}
.place-tabs button.active { background: var(--gold); color: #fff; }
.place-x {
  width: 32px; height: 32px; border: 0; background: transparent;
  font-size: 1.15rem; cursor: pointer; color: var(--text-muted); line-height: 1;
}
.place-search-row {
  display: flex; align-items: center; gap: 0.5rem;
}
.place-search {
  flex: 1; width: 100%; padding: 0.62rem 0.9rem 0.62rem 2.2rem;
  border: 1px solid var(--border); border-radius: 999px;
  background: #f7f4ee url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%237a8b99' stroke-width='2' d='M11 11l3.5 3.5M7 12a5 5 0 1 1 0-10 5 5 0 0 1 0 10z'/>") 0.85rem 50% no-repeat;
  font: inherit;
  font-size: 16px;
  text-align: left;
  color: var(--text);
}
.place-search:focus { outline: none; border-color: var(--gold); background-color: #fff; }
.place-cancel {
  border: 0; background: transparent; cursor: pointer;
  font: inherit; font-size: 0.92rem; color: var(--text-secondary);
  white-space: nowrap; padding: 0.2rem 0.1rem;
}
.place-results { display: none; min-height: 180px; max-height: 42vh; overflow-y: auto; }
.place-modal.is-search .place-results { display: block; }
.place-modal.is-search .place-cols-head,
.place-modal.is-search .place-wheels,
.place-modal.is-search .place-bj { display: none; }
.place-hit {
  display: block; width: 100%; text-align: left;
  border: 0; border-bottom: 1px solid #f0eae0;
  background: transparent; padding: 0.78rem 0.35rem;
  font: inherit; cursor: pointer; color: var(--text);
}
.place-cols-head {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  text-align: center; font-size: 0.78rem; color: var(--text-muted); font-weight: 650;
  padding: 0.15rem 0 0.35rem; border-bottom: 1px solid #eee6d8;
}
.place-wheels {
  position: relative;
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  height: 200px;
}
.place-wheels .cal-col-viewport { height: 200px; }
.place-wheels .cal-col-scroller::before,
.place-wheels .cal-col-scroller::after { height: 80px; }
.place-mask {
  pointer-events: none; position: absolute;
  left: 0.35rem; right: 0.35rem; top: 80px; height: 40px;
  border-radius: 10px;
  background: rgba(18, 28, 38, 0.06);
}
.place-modal.is-ov .place-cols-head { grid-template-columns: 1fr 1fr; }
.place-modal.is-ov .place-cols-head [data-place-h3] { display: none; }
.place-modal.is-ov .place-wheels { grid-template-columns: 1fr 1fr; }
.place-modal.is-ov .place-wheels [data-col="area"] { display: none; }
.place-item { font-size: 0.88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 0.25rem; }
.place-bj {
  display: flex; align-items: center; justify-content: flex-end; gap: 0.55rem;
  font-size: 0.78rem; color: var(--text); cursor: pointer;
}
.place-bj input {
  appearance: none; -webkit-appearance: none;
  width: 42px; height: 24px; border-radius: 999px; border: 0;
  background: #d9d4cc; position: relative; cursor: pointer; flex-shrink: 0;
}
.place-bj input::after {
  content: ""; position: absolute; top: 2px; left: 2px;
  width: 20px; height: 20px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.18); transition: transform .15s;
}
.place-bj input:checked { background: var(--gold); }
.place-bj input:checked::after { transform: translateX(18px); }
.place-ok {
  width: 100%; border: 0; border-radius: 999px;
  background: #111; color: var(--gold-soft);
  font: inherit; font-weight: 700; font-size: 1.05rem;
  padding: 0.78rem 1rem; cursor: pointer; letter-spacing: 0.12em;
}
.place-ok:hover { background: #000; }
@media (max-width: 720px) {
  .place-overlay { align-items: flex-end; padding: 0; }
  .place-modal { width: 100%; border-radius: 22px 22px 0 0; padding-bottom: max(1.15rem, env(safe-area-inset-bottom)); }
}

/* ═══════════ TikTok landing ═══════════ */
body.is-lp { padding-bottom: 0; }
.lp-hero {
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  min-height: calc(100vh - 74px);
  background:
    radial-gradient(ellipse at 20% 0%, rgba(184,149,74,0.08), transparent 46%),
    linear-gradient(180deg, #f8f4ec 0%, #efe6d6 100%);
}
.lp-copy {
  display: flex; flex-direction: column; justify-content: center;
  padding: 3.4rem 4vw 3.4rem 8vw;
}
.lp-badge {
  display: inline-flex; align-self: flex-start;
  padding: 0.35rem 0.95rem; border: 1px solid var(--gold);
  color: var(--gold); font-size: 0.78rem; letter-spacing: 0.18em;
  border-radius: 999px; margin-bottom: 1.15rem;
}
.lp-copy h1 {
  font-size: clamp(1.75rem, 4vw, 2.85rem);
  line-height: 1.22; letter-spacing: 0.04em; margin-bottom: 0.85rem;
}
.lp-copy h1 span { display: block; }
.lp-copy > p { color: var(--text-secondary); max-width: 34rem; margin-bottom: 1.1rem; }
.lp-chips { display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 0 0 1.4rem; }
.lp-chip {
  display: inline-flex; align-items: center;
  padding: 0.38rem 0.8rem;
  border: 1px solid rgba(184,149,74,0.45);
  border-radius: 999px;
  background: rgba(255,252,247,0.82);
  color: var(--navy);
  font-size: 0.8rem; font-weight: 600;
}
.lp-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.lp-visual { position: relative; min-height: 420px; }
.lp-visual img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 18%;
}
.lp-visual::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, #f8f4ec 0%, transparent 18%, transparent 100%);
  pointer-events: none;
}
.lp-caption {
  position: absolute; left: 1.25rem; bottom: 1.25rem; z-index: 2;
  background: rgba(13,28,46,0.72); color: #fff;
  padding: 0.7rem 1rem; border-left: 2px solid var(--gold);
  font-size: 0.78rem; letter-spacing: 0.12em;
}
.lp-tz {
  max-width: 720px; margin: -0.4rem auto 0; padding: 0 1.5rem 0.4rem;
  text-align: center; color: var(--text-muted); font-size: 0.88rem;
}
.lp-offers { padding: 3.2rem 0 2.4rem; }
.lp-offer-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.15rem;
}
.lp-card {
  background: var(--white); border: 1px solid var(--border); border-radius: 14px;
  overflow: hidden; display: flex; flex-direction: column;
}
.lp-card.is-featured { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); }
.lp-card-media {
  display: block; height: 160px; background: var(--surface-alt) center/cover no-repeat;
}
.lp-card-media img { width: 100%; height: 100%; object-fit: cover; }
.lp-card-body { padding: 1.1rem 1.15rem 1.2rem; display: flex; flex-direction: column; gap: 0.55rem; flex: 1; }
.lp-card-body h3 { font-size: 1.05rem; line-height: 1.4; }
.lp-card-body > p { font-size: 0.86rem; color: var(--text-secondary); flex: 1; }
.lp-card-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.3rem; }
.lp-switch {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 0.55rem;
  padding: 0 1.5rem 3rem; font-size: 0.82rem; color: var(--text-muted);
}
.lp-switch a { color: var(--navy); border-bottom: 1px solid var(--gold-soft); }
.lp-switch a.is-on { font-weight: 700; border-bottom-width: 2px; }
.lp-dock { display: none; }
@media (max-width: 720px) {
  .lp-hero { display: flex; flex-direction: column; min-height: 0; }
  .lp-copy { padding: 1.35rem 1.05rem 1.6rem; }
  .lp-visual { order: -1; min-height: 240px; max-height: 42vh; }
  .lp-visual::after {
    background: linear-gradient(180deg, transparent 55%, #f8f4ec 100%);
  }
  body.is-lp { padding-bottom: 5.6rem; }
  body.is-lp .chat-floats { display: none; }
  .lp-dock {
    display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding: 0.7rem 0.9rem max(0.7rem, env(safe-area-inset-bottom));
    background: rgba(255,252,247,0.96);
    border-top: 1px solid var(--border);
    box-shadow: 0 -8px 24px rgba(18,38,58,0.08);
  }
  .lp-dock .btn { flex: 1; justify-content: center; }
  .lp-dock-meta { font-size: 0.75rem; color: var(--text-muted); max-width: 38%; line-height: 1.35; }
}

/* ═══════════ Member cases ═══════════ */
.member-kicker {
  text-align: center; font-size: 0.72rem; letter-spacing: 0.16em;
  color: var(--gold); font-weight: 700; margin-bottom: 0.45rem;
}
.member-lead { max-width: 720px; margin: 0 auto 1.6rem; }
.member-lead p { color: var(--text-secondary); line-height: 1.8; font-size: 0.95rem; }
.member-note { font-size: 0.84rem !important; color: var(--text-muted) !important; }
.member-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.15rem;
}
.member-card {
  display: block; text-decoration: none; color: inherit;
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; transition: 0.25s;
}
.member-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--gold); }
.member-card-chart {
  background: linear-gradient(165deg, #1b3a5c 0%, #12263a 70%);
  padding: 1rem 0.85rem 0.85rem; color: #f6f2ea;
}
.member-card-chart .sample-pillars { margin: 0; }
.member-card-chart .sample-pillars div { background: rgba(255,252,247,0.08); border-color: rgba(212,188,125,0.35); }
.member-card-chart .sample-pillars em { color: rgba(246,242,234,0.55); }
.member-card-chart .sample-pillars b, .member-card-chart .sample-pillars span { color: #f6f2ea; }
.member-card-body { padding: 1rem 1.05rem 1.15rem; }
.member-card-honor { font-size: 0.72rem; color: var(--gold); letter-spacing: 0.08em; }
.member-card-body h3 { font-size: 1.08rem; margin: 0.2rem 0 0.35rem; }
.member-card-years { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 0.45rem; }
.member-card-lead { font-size: 0.84rem; color: var(--text-secondary); line-height: 1.65; }
.case-wrap { max-width: 760px; margin: 0 auto; padding: 1.4rem 1.2rem 3rem; }
.case-honor { color: var(--gold); font-size: 0.82rem; letter-spacing: 0.1em; }
.case-wrap h1 { font-size: 1.7rem; margin: 0.25rem 0 0.4rem; }
.case-years { color: var(--text-muted); margin-bottom: 1rem; }
.case-chart-board {
  background: var(--white); border: 1px solid var(--border); border-radius: 14px;
  padding: 1.1rem 1rem 1rem; margin: 1.1rem 0;
}
.case-meta { font-size: 0.82rem; color: var(--text-secondary); line-height: 1.7; margin: 0.55rem 0 0; }
.case-section { margin: 1.5rem 0; }
.case-section h2 { font-size: 1.05rem; color: var(--gold); margin-bottom: 0.5rem; }
.case-section p { color: var(--text-secondary); line-height: 1.85; }
.case-nav { display: flex; gap: 0.7rem; flex-wrap: wrap; margin-top: 1.8rem; }
@media (max-width: 720px) {
  .member-card:hover { transform: none; box-shadow: none; }
  .case-wrap h1 { font-size: 1.35rem; }
}

.bazi-live-brief {
  margin: 0.55rem 0 0;
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.7;
}
.bazi-pdf-btn { width: 100%; margin-top: 0.7rem; justify-content: center; }
#baziPdfSheet {
  position: fixed;
  left: -1400px;
  top: 0;
  width: 720px;
  padding: 28px 32px 36px;
  background: #fffdf8;
  color: #1B3A5C;
  font-family: "Noto Serif TC", "Noto Serif SC", serif;
  z-index: -1;
}
#baziPdfSheet h1 { font-size: 1.45rem; margin: 0.15rem 0 0.7rem; }
#baziPdfSheet p { margin: 0.25rem 0; line-height: 1.65; }
#baziPdfSheet .bazi-pdf-kicker { letter-spacing: 0.22em; color: #b8954a; font-size: 0.78rem; }
#baziPdfSheet .bazi-pdf-brief { margin-top: 0.8rem; }
#baziPdfSheet .bazi-pdf-foot { color: #7a6a55; font-size: 0.82rem; margin-top: 0.8rem; }
#baziPdfSheet .sample-pillars { margin: 0.9rem 0; }

/* ═══════════ 五术纲要 ═══════════ */
.wushu-hero {
  padding: 2.4rem 0 1.35rem;
  text-align: left;
  background: linear-gradient(180deg, #f8f4ec, var(--paper));
}
.wushu-hero-read { padding: 1.35rem 0 0.4rem; }
.wushu-hero .section-title { text-align: left; margin-bottom: 0.45rem; }
.wushu-hero .member-kicker { text-align: left; }
.wushu-hero .section-subtitle {
  text-align: left;
  margin: 0;
  max-width: none;
}
.wushu-quote {
  margin: 0 0 0.65rem;
  color: var(--navy);
  font-size: 1.02rem;
  letter-spacing: 0.18em;
  font-weight: 600;
}
.wushu-quote-from {
  display: block; margin-top: 0.45rem;
  font-size: 0.78rem; color: var(--gold); letter-spacing: 0.18em; font-weight: 400;
}
.wushu-map {
  padding-top: 1.4rem;
  padding-bottom: 5rem;
  background:
    radial-gradient(ellipse at 8% -10%, rgba(184,149,74,0.12), transparent 42%),
    radial-gradient(ellipse at 92% 8%, rgba(27,58,92,0.06), transparent 40%),
    linear-gradient(180deg, #f8f4ec 0%, var(--paper) 22%);
}
.wushu-hero-inner { max-width: 42rem; margin-bottom: 1.8rem; }
.wushu-hero-inner .section-title { text-align: left; margin-bottom: 0.45rem; }
.wushu-hero-inner .member-kicker { text-align: left; }
.wushu-hero-inner .section-subtitle {
  text-align: left;
  margin: 0;
  max-width: none;
}
.wushu-shell { display: grid; gap: 1.2rem; }
.wushu-rail {
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0.2rem 0 0.55rem;
  scrollbar-width: none;
  position: sticky;
  top: 74px;
  z-index: 40;
  background: linear-gradient(180deg, var(--paper) 70%, transparent);
}
.wushu-rail::-webkit-scrollbar { display: none; }
.wushu-rail-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex: 0 0 auto;
  min-height: 3.1rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.5rem 0.85rem;
  transition: border-color 0.18s, background 0.18s, box-shadow 0.18s;
}
.wushu-rail-item:hover { border-color: var(--gold-soft); color: var(--navy); }
.wushu-rail-item.is-on {
  border-color: var(--gold);
  background: rgba(184, 149, 74, 0.12);
  box-shadow: inset 3px 0 0 var(--gold);
}
.wushu-rail-item .wushu-art-mark { margin: 0; font-size: 1rem; }
.wushu-rail-copy { display: flex; flex-direction: column; min-width: 0; }
.wushu-rail-name { font-weight: 700; color: var(--navy); line-height: 1.2; }
.wushu-rail-item .wushu-art-gloss { margin: 0; letter-spacing: 0.04em; }
.wushu-rail-item .wushu-art-count { margin: 0 0 0 auto; }
.wushu-art-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.85rem;
  margin: 0 auto 0.4rem;
}
.wushu-art-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem 0.95rem 1.1rem;
  text-align: left;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.wushu-art-card:hover, .wushu-art-card.is-on {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--gold);
}
.wushu-art-mark { display: block; color: var(--gold); font-size: 1.15rem; margin-bottom: 0.25rem; }
.wushu-art-card h3 { font-size: 1.28rem; margin: 0.05rem 0 0.2rem; }
.wushu-art-gloss { display: block; font-size: 0.78rem; color: var(--gold); letter-spacing: 0.08em; margin-bottom: 0.4rem; }
.wushu-art-card p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.wushu-art-count { display: block; margin-top: 0.75rem; font-size: 0.72rem; color: var(--gold); letter-spacing: 0.08em; font-weight: 700; }
.wushu-group { margin-bottom: 1.8rem; scroll-margin-top: 110px; }
.wushu-group[hidden] { display: none; }
.wushu-group-head {
  display: flex; align-items: baseline; gap: 0.7rem;
  margin-bottom: 0.7rem; padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border);
}
.wushu-group-head h2 { font-size: 1.12rem; color: var(--navy); }
.wushu-group-head span { font-size: 0.8rem; color: var(--text-muted); }
.wushu-vol-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1.4rem;
  align-items: start;
  margin-bottom: 1.8rem;
  padding: 1.35rem 1.4rem 1.25rem;
  background:
    linear-gradient(180deg, rgba(255,252,247,0.95), rgba(248,244,236,0.9));
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 16px 48px rgba(18, 38, 58, 0.06);
  position: relative;
}
.wushu-vol-head::before,
.wushu-vol-head::after {
  content: "";
  position: absolute;
  width: 18px; height: 18px;
  border-color: var(--gold);
  border-style: solid;
  opacity: 0.55;
  pointer-events: none;
}
.wushu-vol-head::before { top: 10px; left: 10px; border-width: 1px 0 0 1px; }
.wushu-vol-head::after { bottom: 10px; right: 10px; border-width: 0 1px 1px 0; }
.wushu-vol-seal {
  width: 4.6rem; height: 4.6rem;
  display: grid; place-items: center;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-size: 2rem;
  background: rgba(184, 149, 74, 0.08);
  border-radius: 4px;
  letter-spacing: 0;
}
.wushu-vol-copy .section-title {
  text-align: left;
  font-size: clamp(2rem, 4vw, 2.7rem);
  letter-spacing: 0.18em;
  margin: 0.15rem 0 0.55rem;
}
.wushu-vol-copy .member-kicker { text-align: left; }
.wushu-vol-copy .section-subtitle {
  text-align: left;
  margin: 0 0 1rem;
  max-width: 40rem;
  color: var(--text-secondary);
  line-height: 1.75;
}
.wushu-vol-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.1rem;
}
.wushu-preview-note {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-muted);
  max-width: 28rem;
  line-height: 1.55;
}
.wushu-listen {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  border: 1px solid var(--gold);
  background: rgba(184, 149, 74, 0.1);
  color: var(--navy);
  border-radius: 999px;
  padding: 0.42rem 0.95rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  cursor: pointer;
  font-family: inherit;
}
.wushu-listen:hover { background: rgba(184, 149, 74, 0.18); }
.wushu-listen.is-playing {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
.wushu-listen-ico { flex-shrink: 0; }
.wushu-readbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem;
  margin: 0 0 1.1rem;
}
.wushu-listen-hint { font-size: 0.8rem; color: var(--text-muted); }
.wushu-access {
  display: inline-flex;
  align-items: center;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  border-radius: 999px;
  padding: 0.12rem 0.5rem;
  font-weight: 700;
  white-space: nowrap;
}
.wushu-access.is-preview {
  color: var(--navy);
  background: rgba(184, 149, 74, 0.16);
  border: 1px solid rgba(184, 149, 74, 0.35);
}
.wushu-access.is-sequel {
  color: var(--text-muted);
  background: var(--surface-alt);
  border: 1px solid var(--border);
}
.wushu-access.is-longform {
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  background: transparent;
  color: var(--gold);
  justify-content: center;
  letter-spacing: 0;
  font-size: 0.62rem;
  font-weight: 600;
  flex-shrink: 0;
  box-sizing: border-box;
  line-height: 1;
}
.wushu-point-flags {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.wushu-point-row .wushu-access.is-longform {
  width: 2.15rem;
  height: 2.15rem;
  font-size: 0.52rem;
}
.wushu-folio-grid { display: grid; gap: 1.15rem; }
.wushu-folio {
  position: relative;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.15rem 1.2rem 1rem;
  box-shadow: 0 14px 40px rgba(18, 38, 58, 0.05);
}
.wushu-folio::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(184, 149, 74, 0.22);
  border-radius: 12px;
  pointer-events: none;
}
.wushu-folio-head {
  display: block;
  color: inherit;
  padding: 0.15rem 0.2rem 0.85rem;
}
.wushu-folio-no {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--gold);
  display: block;
  margin-bottom: 0.15rem;
}
.wushu-folio-copy h3 {
  font-size: 1.35rem;
  margin: 0.12rem 0 0.4rem;
  letter-spacing: 0.12em;
  color: var(--navy);
}
.wushu-folio-copy p {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 0.92rem;
}
.wushu-folio-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.75rem;
  padding: 0.15rem 0.2rem 0.75rem;
}
.wushu-folio-n { font-size: 0.75rem; color: var(--gold); letter-spacing: 0.08em; font-weight: 700; }
.wushu-folio-open {
  margin-left: auto;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--navy);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 0.05rem;
}
.wushu-folio-open:hover { color: var(--gold); }
.wushu-folio-toc { padding: 0 0.15rem 0.1rem; }
.wushu-folio-toc-label {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--gold);
  margin: 0 0 0.35rem;
}
.wushu-sec-grid { display: grid; grid-template-columns: 1fr; gap: 0.5rem; }
.wushu-sec-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.85rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.85rem 1.05rem;
  transition: border-color 0.18s, box-shadow 0.18s, transform 0.18s;
}
.wushu-sec-card:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow);
  transform: translateX(3px);
}
.wushu-sec-card:focus-visible,
.wushu-rail-item:focus-visible,
.wushu-art-card:focus-visible,
.wushu-listen:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.wushu-sec-idx {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.08em;
  min-width: 1.55rem;
}
.wushu-sec-text { min-width: 0; }
.wushu-sec-kicker { font-size: 0.72rem; color: var(--gold); letter-spacing: 0.1em; }
.wushu-sec-card h3 { font-size: 1rem; margin: 0.12rem 0 0.18rem; }
.wushu-sec-card p {
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.wushu-sec-go {
  color: var(--gold);
  opacity: 0.45;
  transition: opacity 0.18s, transform 0.18s;
  font-size: 1.05rem;
}
.wushu-sec-card:hover .wushu-sec-go { opacity: 1; transform: translateX(3px); }
.wushu-sec-n { display: block; margin-top: 0.28rem; font-size: 0.72rem; color: var(--gold); letter-spacing: 0.08em; font-weight: 700; }
.wushu-sec-block { margin-bottom: 0.15rem; }
.wushu-point-list {
  display: grid;
  gap: 0.22rem;
  margin: 0.32rem 0 0.35rem 0.15rem;
  padding-left: 0.15rem;
}
.wushu-folio .wushu-point-list { position: relative; z-index: 1; }
.wushu-point-row {
  display: grid;
  grid-template-columns: 1.55rem minmax(0, 1fr) auto 0.9rem;
  gap: 0.4rem;
  align-items: center;
  padding: 0.48rem 0.55rem;
  border-radius: 8px;
  color: inherit;
  text-decoration: none;
  transition: background 0.18s ease, transform 0.18s ease;
}
.wushu-point-row:hover { background: rgba(184, 149, 74, 0.1); }
.wushu-point-row.is-on { background: rgba(184, 149, 74, 0.14); }
.wushu-point-row.is-sequel { opacity: 0.86; }
.wushu-paywall {
  margin-top: 1.1rem;
  padding: 1rem 1.05rem 1.1rem;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(184, 149, 74, 0.12), rgba(26, 107, 124, 0.06));
  border: 1px solid rgba(184, 149, 74, 0.35);
  position: relative;
  z-index: 1;
}
.wushu-paywall-kicker {
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  color: var(--gold);
  margin: 0 0 0.35rem;
  font-weight: 700;
}
.wushu-paywall p { margin: 0; color: var(--text-secondary); line-height: 1.6; }
.wushu-paywall-actions { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 0.75rem; }
.hall-kb-card {
  max-width: 92%;
  margin: 0.4rem 0 0.55rem;
  padding: 0.7rem 0.8rem 0.8rem;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: 0 8px 20px rgba(18, 38, 58, 0.05);
}
.hall-kb-kicker {
  margin: 0 0 0.2rem;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  color: var(--gold);
  font-weight: 700;
}
.hall-kb-card h3 { margin: 0 0 0.3rem; font-size: 0.95rem; color: var(--navy); }
.hall-kb-card p { margin: 0; font-size: 0.82rem; line-height: 1.55; color: var(--text-secondary); }
.hall-kb-actions { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.65rem; }
.hall-kb-actions a {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--navy);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.28rem 0.7rem;
  text-decoration: none;
}
.hall-kb-actions a:hover { border-color: var(--gold); color: var(--gold); }
.wushu-point-row .wushu-sec-go { opacity: 0; font-size: 0.85rem; }
.wushu-point-row:hover .wushu-sec-go { opacity: 1; transform: translateX(2px); }
.wushu-point-mark {
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.wushu-point-text h3 { font-size: 0.92rem; margin: 0; font-weight: 600; color: var(--navy); line-height: 1.35; }
.wushu-article {
  max-width: 760px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.45rem 1.5rem 1.7rem;
  box-shadow: 0 16px 44px rgba(18, 38, 58, 0.05);
  position: relative;
}
.wushu-article::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(184, 149, 74, 0.18);
  border-radius: 12px;
  pointer-events: none;
}
.wushu-article .wushu-point-block { margin-top: 1.5rem; position: relative; z-index: 1; }
.wushu-article .wushu-point-block h2,
.wushu-aside .wushu-point-list { margin-left: 0; padding-left: 0; border-left: 0; }
.wushu-article .wushu-point-block h2 {
  font-size: 0.92rem;
  color: var(--gold);
  letter-spacing: 0.08em;
  margin-bottom: 0.55rem;
}
.wushu-crumb {
  display: flex; flex-wrap: wrap; gap: 0.35rem; align-items: center;
  font-size: 0.82rem; color: var(--text-muted);
}
.wushu-crumb a { color: var(--navy); }
.wushu-crumb a:hover { color: var(--gold); }
.wushu-read { padding: 0.6rem 1.5rem 4rem; }
.wushu-article h1 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 0.3rem 0 0.8rem; letter-spacing: 0.08em; position: relative; z-index: 1; }
.wushu-badges { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-bottom: 1rem; position: relative; z-index: 1; }
.wushu-badge {
  font-size: 0.72rem; letter-spacing: 0.08em;
  border: 1px solid var(--gold); color: var(--gold);
  border-radius: 999px; padding: 0.18rem 0.7rem;
}
.wushu-lead { font-size: 1.05rem; color: var(--navy); line-height: 1.85; margin-bottom: 1.1rem; position: relative; z-index: 1; }
.wushu-article .wushu-body { position: relative; z-index: 1; }
.wushu-article .wushu-body p { color: var(--text-secondary); margin-bottom: 0.95rem; line-height: 1.9; }
.wushu-notes {
  margin: 1.4rem 0 1.1rem;
  padding: 1rem 1.15rem 1.05rem;
  border-left: 3px solid var(--gold);
  background: var(--surface-alt);
  border-radius: 0 12px 12px 0;
  position: relative;
  z-index: 1;
}
.wushu-notes h2 {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  color: var(--gold);
  margin: 0 0 0.65rem;
}
.wushu-notes p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.8;
  margin: 0 0 0.7rem;
}
.wushu-notes p:last-child { margin-bottom: 0; }
.wushu-tip, .wushu-bound, .wushu-sequel-note {
  margin: 1.2rem 0; padding: 0.95rem 1.1rem;
  border-radius: 12px; line-height: 1.7;
  position: relative; z-index: 1;
}
.wushu-tip { background: rgba(184,149,74,0.12); color: var(--navy); }
.wushu-bound { background: var(--surface-alt); color: var(--text-secondary); font-size: 0.9rem; }
.wushu-sequel-note { background: var(--surface-alt); color: var(--text-muted); font-size: 0.88rem; }
.wushu-readbar, .wushu-doors { position: relative; z-index: 1; }
.wushu-doors { display: flex; flex-wrap: wrap; gap: 0.7rem; margin: 0 0 1.5rem; }
.wushu-sib { margin-top: 0.4rem; }
.wushu-sib h2 { font-size: 0.92rem; margin-bottom: 0.7rem; color: var(--gold); letter-spacing: 0.08em; }
.wushu-aside .wushu-sec-card { padding: 0.7rem 0.8rem; }
.wushu-aside .wushu-sec-idx,
.wushu-aside .wushu-sec-go { display: none; }
.wushu-aside .wushu-sec-card { grid-template-columns: minmax(0, 1fr); }
.m-wushu {
  display: none;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.4rem;
  padding: 0.15rem 0 0.55rem;
}
.m-wushu .wushu-art-card { padding: 0.55rem 0.15rem 0.6rem; text-align: center; }
.m-wushu .wushu-art-card p,
.m-wushu .wushu-art-count,
.m-wushu .wushu-art-gloss { display: none; }
.m-wushu .wushu-art-card h3 { font-size: 0.95rem; }
@media (min-width: 960px) {
  .wushu-shell {
    grid-template-columns: 216px minmax(0, 1fr);
    align-items: start;
    gap: 2.1rem;
  }
  .wushu-rail {
    top: 90px;
    flex-direction: column;
    overflow: visible;
    padding: 0;
    background: transparent;
  }
  .wushu-rail-item { width: 100%; padding: 0.72rem 0.85rem; }
  .wushu-read {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 252px;
    gap: 2rem;
    align-items: start;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.6rem 1.5rem 4rem;
  }
  .wushu-article { max-width: 42rem; }
  .wushu-aside {
    position: sticky;
    top: 96px;
  }
  .wushu-aside .wushu-doors { flex-direction: column; }
  .wushu-aside .wushu-doors .btn { width: 100%; text-align: center; }
}
@media (max-width: 959px) {
  .wushu-art-grid { grid-template-columns: 1fr; }
  .wushu-art-card { text-align: center; }
  .wushu-art-card:hover { transform: none; }
  .wushu-hero, .wushu-hero .section-title, .wushu-hero .member-kicker, .wushu-quote, .wushu-hero .section-subtitle,
  .wushu-hero-inner, .wushu-hero-inner .section-title, .wushu-hero-inner .member-kicker, .wushu-hero-inner .section-subtitle { text-align: center; }
  .wushu-hero-inner { margin-left: auto; margin-right: auto; }
  .wushu-vol-head {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }
  .wushu-vol-copy .section-title,
  .wushu-vol-copy .member-kicker,
  .wushu-vol-copy .section-subtitle { text-align: center; }
  .wushu-vol-tools { justify-content: center; }
  .wushu-folio-open { margin-left: 0; }
  .wushu-sec-card { grid-template-columns: minmax(0, 1fr); }
  .wushu-sec-idx, .wushu-sec-go { display: none; }
  .wushu-point-row { grid-template-columns: 1.4rem minmax(0, 1fr) auto; }
  .wushu-point-list { margin-left: 0.2rem; }
  .wushu-sec-card p { -webkit-line-clamp: 2; }
  .wushu-sec-card:hover { transform: none; }
  .wushu-article { padding: 1.15rem 1.05rem 1.3rem; }
}
@media (max-width: 720px) {
  .m-wushu { display: none; }
  .wushu-rail { top: 56px; }
}
@media (prefers-reduced-motion: reduce) {
  .wushu-art-card, .wushu-sec-card, .wushu-rail-item, .wushu-sec-go { transition: none; }
}

/* 广告来客：只办这一件事 */
html.ads-guest .product-page-back { display: none; }
html.ads-guest .chat-floats { display: none; }
html.ads-guest body { padding-bottom: 5.2rem; }
.ads-facts { margin: 0.2rem 0 0.9rem; }
.ads-fact {
  display: flex; gap: 0.75rem; justify-content: space-between;
  margin: 0; padding: 0.45rem 0; border-top: 1px solid var(--border);
  font-size: 0.92rem; line-height: 1.55;
}
.ads-fact .label { color: var(--text-muted); flex: 0 0 auto; }
.ads-fact .value { text-align: right; color: var(--text); }
.ads-clamp .value {
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden;
}
html.ads-guest #checkoutForm .ads-submit {
  width: 100%;
  margin-top: 0.35rem;
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
  font-size: 1.05rem;
  padding: 0.95rem 1rem;
}
.ads-dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 260;
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
  padding: 0.7rem 1rem calc(0.7rem + env(safe-area-inset-bottom));
  background: #fffdf8; border-top: 1px solid var(--border);
  box-shadow: 0 -8px 24px rgba(13, 28, 46, 0.08);
}
.ads-dock-meta { min-width: 0; display: flex; flex-direction: column; gap: 0.12rem; }
.ads-dock-meta strong { color: var(--navy); font-size: 1.05rem; }
.ads-dock-meta span {
  color: var(--text-muted); font-size: 0.75rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 46vw;
}
.ads-dock .btn { flex: 0 0 auto; min-width: 8.2rem; }
.order-next { margin: 1.1rem 0 0.4rem; font-size: 0.95rem; line-height: 1.7; }
.order-next a { color: var(--navy); text-decoration: underline; text-underline-offset: 0.18em; }
.order-quiet { margin: 0.8rem 0 0; }
.order-quiet a { color: var(--text-muted); font-size: 0.85rem; text-decoration: none; }
@media (max-width: 980px) {
  html.ads-guest .product-detail.is-ads { display: flex; flex-direction: column; gap: 1rem; padding-top: 0.6rem; }
  html.ads-guest .product-detail.is-ads .product-detail-info { order: 1; }
  html.ads-guest .product-detail.is-ads .product-gallery { order: 2; }
  html.ads-guest .product-detail.is-ads .product-detail-image { aspect-ratio: 16/8; max-height: 168px; }
}

/* ═══════════════════════════════════════════════
   金只留两种：1px 细线，以及当前项的小标记。
   眉题、价格、主按钮、正文回墨蓝。
   ═══════════════════════════════════════════════ */
.section-kicker,
.hero-badge,
.lp-badge,
.hero-slogan,
.hero-index a::before,
.hero-index a:hover,
.search-result-icon,
.search-result-price,
.category-count,
.process-num,
.price-save,
.price-fx-toggle:hover,
.product-kind-tag,
.product-story-block h2,
.product-faq .faq-a a,
.cart-item-info .price-fx-toggle,
.cart-item-info .price-fx-toggle .product-price,
.shop-panel-mark,
.review-k,
.faq-q::after,
.about-layout h2,
.about-layout .about-voice-kicker,
.about-voice footer,
.role-kicker,
.pay-kicker,
.sample-kicker,
.member-kicker,
.order-id,
.member-card-honor,
.case-honor,
.case-section h2,
.legal-body a,
.cookie-modal-actions a,
.cal-picker-readout,
.wushu-quote-from,
.wushu-art-mark,
.wushu-art-gloss,
.wushu-art-count,
.wushu-folio-no,
.wushu-folio-n,
.wushu-folio-toc-label,
.wushu-folio-open:hover,
.wushu-sec-idx,
.wushu-sec-kicker,
.wushu-sec-go,
.wushu-sec-n,
.wushu-point-mark,
.wushu-article .wushu-point-block h2,
.wushu-crumb a:hover,
.hall-kb-kicker,
#baziPdfSheet .bazi-pdf-kicker {
  color: var(--navy);
}
.about-voice,
.about-note { border-left-width: 1px; }
.product-kind-tag { border-color: var(--border); }
.badge-new { background: var(--navy); color: #fff; }
.btn-accent {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
.btn-accent:hover { background: var(--navy-deep); border-color: var(--navy-deep); }
.btn-outline-accent {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline-accent:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.cta-banner .btn-accent {
  background: var(--paper);
  color: var(--navy);
  border: 1px solid var(--gold);
}
.cta-banner .btn-accent:hover { background: #fff; color: var(--navy); border-color: var(--gold); }
.cta-banner .btn-outline-accent {
  color: #fff;
  background: transparent;
  border: 1px solid rgba(246, 242, 234, 0.72);
}
.cta-banner .btn-outline-accent:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: #fff;
}
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.72); color: #fff; }
.product-btn:hover { background: var(--navy-deep); }
.place-tabs button.active { background: var(--navy); color: #fff; }
.place-bj input:checked { background: var(--navy); }
.place-ok { background: var(--navy); color: #fff; }
.place-ok:hover { background: var(--navy-deep); }
.category-card:hover,
.product-card:hover,
.member-card:hover,
.shop-panel:hover,
.shop-panel.active,
.wushu-rail-item.is-on,
.ornament-subnav a:hover,
.filter-chip:hover,
.filter-chip.active,
.wushu-art-card:hover,
.wushu-art-card.is-on,
.wushu-rail-item:hover,
.wushu-sec-card:hover,
.cart-btn:hover,
.product-gallery-nav:hover,
.hall-kb-actions a:hover,
.bazi-pay-fx-chip:hover,
.lp-card.is-featured {
  border-color: var(--border);
  color: inherit;
}
.cart-btn:hover,
.product-gallery-nav:hover,
.hall-kb-actions a:hover,
.bazi-pay-fx-chip:hover,
.ornament-subnav a:hover,
.filter-chip:hover,
.shop-panel:hover { color: var(--navy); }
.filter-chip:hover,
.filter-chip.active,
.shop-panel.active,
.wushu-rail-item.is-on,
.lp-card.is-featured {
  background: var(--white);
  box-shadow: none;
}
.shop-panel.active,
.filter-chip.active,
.wushu-rail-item.is-on,
.wushu-art-card.is-on,
.lp-card.is-featured {
  box-shadow: inset 0 -1px 0 var(--gold);
}
.shop-panel.active,
.filter-chip.active { color: var(--navy); }
.shop-panel.active .shop-panel-mark,
.wushu-rail-item.is-on .wushu-art-mark,
.wushu-art-card.is-on .wushu-art-mark { color: var(--gold); }
.product-gallery-thumb.is-on { border-color: var(--gold); box-shadow: none; }
.cal-picker-mask {
  background: rgba(27, 58, 92, 0.05);
  box-shadow: inset 0 -1px 0 var(--gold), inset 0 1px 0 var(--gold);
}
.wushu-listen {
  border-color: var(--navy);
  background: transparent;
  color: var(--navy);
}
.wushu-listen:hover:not(.is-playing) { background: rgba(27, 58, 92, 0.06); }
.wushu-access.is-longform { color: var(--navy); border-width: 1px; }
.wushu-vol-seal { color: var(--navy); background: transparent; }
.wushu-point-row:hover { background: rgba(27, 58, 92, 0.05); }
.wushu-map {
  background:
    radial-gradient(ellipse at 8% -10%, rgba(27, 58, 92, 0.05), transparent 42%),
    radial-gradient(ellipse at 92% 8%, rgba(27, 58, 92, 0.06), transparent 40%),
    linear-gradient(180deg, #f8f4ec 0%, var(--paper) 22%);
}
.lp-hero {
  background:
    radial-gradient(ellipse at 20% 0%, rgba(27, 58, 92, 0.05), transparent 46%),
    linear-gradient(180deg, #f8f4ec 0%, #efe6d6 100%);
}
.lp-chip { border-color: var(--border); }
.footer h4 {
  color: rgba(255, 252, 247, 0.88);
  border-bottom: 1px solid rgba(184, 149, 74, 0.5);
  padding-bottom: 0.4rem;
}
.footer a:hover,
.footer-link-btn:hover { color: #fff; }
.m-mall-head {
  background:
    radial-gradient(90% 120% at 100% 0%, rgba(255, 252, 247, 0.08), transparent 52%),
    linear-gradient(165deg, #0a1624 0%, #1B3A5C 72%);
}
.m-mall-kicker { color: rgba(255, 252, 247, 0.62); }
.cookie-bar-copy a { color: #fff; }
.btn-outline-cookie { color: #fff; border-color: rgba(255, 255, 255, 0.45); }

/* ═══════════════════════════════════════════════
   器物边：1px 内金线。照片略暖、略收对比，仍是纪实。
   ═══════════════════════════════════════════════ */
.master-portrait,
.about-portrait,
.gallery-portraits a,
.gallery-item,
.m-portraits a,
.hero-tools a {
  position: relative;
}
.hero-visual img,
.master-portrait img,
.about-portrait img,
.gallery-portraits img,
.gallery-item img,
.m-portraits img,
.hero-tools img {
  filter: sepia(0.07) saturate(0.94) contrast(0.95);
}
.master-portrait::after,
.about-portrait::after,
.gallery-portraits a::after,
.gallery-item::after,
.m-portraits a::after,
.hero-tools a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(198, 164, 94, 0.92);
}
.gallery-caption,
.gallery-item figcaption,
.m-portrait-badge,
.product-badge,
.product-gallery-nav,
.mc-dots { z-index: 2; }
.hero-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(198, 164, 94, 0.92);
}
.hero-visual::after {
  z-index: 2;
  width: 104px;
  background: linear-gradient(90deg, var(--paper) 0%, rgba(246, 242, 234, 0.78) 34%, rgba(246, 242, 234, 0.22) 70%, transparent 100%);
}

/* ═══════════════════════════════════════════════
   宣紙纖維 + 三層沉金
   大面積米色鋪紙紋；白卡片與正文保持實色。
   金箔只用在線、徽章框、步驟號、選中態、頁底金按鈕。
   ═══════════════════════════════════════════════ */
body,
.hero-home,
.trust-bar {
  background-color: var(--paper);
  background-image: var(--paper-fiber);
  background-repeat: repeat;
}
.section-alt {
  background-color: var(--surface-alt);
  background-image: var(--paper-fiber);
  background-repeat: repeat;
}
.page-hero {
  background-color: var(--paper);
  background-image: var(--paper-fiber), linear-gradient(180deg, #f8f4ec, var(--paper));
  background-repeat: repeat, no-repeat;
  background-size: auto, 100% 100%;
}
.nav {
  background-color: rgba(255, 252, 247, 0.92);
  background-image: var(--paper-fiber);
  background-repeat: repeat;
}
.wushu-map {
  background-color: var(--paper);
  background-image:
    var(--paper-fiber),
    radial-gradient(ellipse at 8% -10%, rgba(27, 58, 92, 0.05), transparent 42%),
    radial-gradient(ellipse at 92% 8%, rgba(27, 58, 92, 0.06), transparent 40%),
    linear-gradient(180deg, #f8f4ec 0%, var(--paper) 22%);
  background-repeat: repeat, no-repeat, no-repeat, no-repeat;
  background-size: auto, auto, auto, auto;
}
.lp-hero {
  background-color: #f8f4ec;
  background-image:
    var(--paper-fiber),
    radial-gradient(ellipse at 20% 0%, rgba(27, 58, 92, 0.05), transparent 46%),
    linear-gradient(180deg, #f8f4ec 0%, #efe6d6 100%);
  background-repeat: repeat, no-repeat, no-repeat;
}
.wushu-rail {
  background-image: var(--paper-fiber), linear-gradient(180deg, var(--paper) 70%, transparent);
  background-repeat: repeat, no-repeat;
}
.hero-visual::after {
  background-image: var(--paper-fiber), linear-gradient(90deg, var(--paper) 0%, rgba(246, 242, 234, 0.78) 34%, rgba(246, 242, 234, 0.22) 70%, transparent 100%);
  background-repeat: repeat, no-repeat;
  background-size: auto, 100% 100%;
}
@media (max-width: 720px) {
  .nav {
    background-color: #fffdf8;
    background-image: var(--paper-fiber);
    background-repeat: repeat;
  }
  .nav::before { animation-delay: 1s; }
}

.gold-line::before,
.gold-line::after {
  background: var(--foil-line);
}
.nav-links a::after {
  background-image: var(--foil-fill);
  background-repeat: no-repeat;
  background-size: 100% 100%;
}
.footer h4 {
  background-image: var(--foil-line);
  background-repeat: no-repeat;
}
.footer h4 {
  border-bottom-color: transparent;
  background-size: 100% 1px;
  background-position: left bottom;
}
.hero-badge,
.lp-badge {
  border: 1px solid transparent;
  background:
    linear-gradient(#f6f2ea, #f6f2ea) padding-box,
    var(--foil-fill) border-box;
  background-clip: padding-box, border-box;
  color: var(--navy);
  -webkit-text-fill-color: var(--navy);
}
.cta-banner .btn-accent {
  color: var(--navy);
  border: 1px solid transparent;
  background:
    linear-gradient(180deg, #fffdf8 0%, #f3eadc 100%) padding-box,
    var(--foil-fill) border-box;
  background-clip: padding-box, border-box;
}
.cta-banner .btn-accent:hover {
  color: var(--navy);
  border-color: transparent;
  background:
    linear-gradient(#fff, #fff) padding-box,
    var(--foil-fill) border-box;
  background-clip: padding-box, border-box;
}
.shop-panel.active,
.filter-chip.active,
.product-gallery-thumb.is-on {
  border: 1px solid transparent;
  background:
    linear-gradient(var(--white), var(--white)) padding-box,
    var(--foil-fill) border-box;
  background-clip: padding-box, border-box;
  box-shadow: none;
}
.shop-panel.active,
.filter-chip.active { color: var(--navy); }
.process-num,
.review-stars,
.gold-line,
.shop-panel.active .shop-panel-mark,
.wushu-rail-item.is-on .wushu-art-mark,
.wushu-art-card.is-on .wushu-art-mark {
  background-image: var(--foil-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* 笺：纸白底、内框细线。格子与内边距不动，悬停少上浮。 */
.process-card,
.review-card,
.wushu-art-card,
.product-card,
.m-bazi {
  background-color: #fffcf7;
  border-color: transparent;
  box-shadow: inset 0 0 0 1px rgba(176, 146, 96, 0.45);
}
@media (min-width: 721px) {
  .process-card:hover,
  .review-card:hover,
  .wushu-art-card:hover,
  .product-card:hover {
    transform: translateY(-2px);
    border-color: transparent;
    box-shadow: inset 0 0 0 1px rgba(184, 149, 74, 0.95);
  }
}
.wushu-art-card.is-on {
  border-color: transparent;
  box-shadow: inset 0 0 0 1px rgba(184, 149, 74, 0.95);
}
@media (max-width: 720px) {
  .product-card:hover,
  .wushu-art-card:hover {
    transform: none;
    border-color: transparent;
    box-shadow: inset 0 0 0 1px rgba(176, 146, 96, 0.45);
  }
}

/* 墨印：主按钮内高光，悬停出金线，底色仍是墨蓝。 */
.btn-primary,
.product-btn {
  background-color: var(--navy);
  background-image: linear-gradient(180deg, rgba(255,255,255,0.16), rgba(255,255,255,0) 46%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.28);
  border-color: transparent;
  color: #fff;
}
.btn-primary:hover,
.product-btn:hover,
.nav-links a.nav-book:hover {
  background-color: var(--navy);
  background-image: linear-gradient(180deg, rgba(255,255,255,0.16), rgba(255,255,255,0) 46%);
  color: #fff;
  border-color: transparent;
  box-shadow:
    inset 0 0 0 1px rgba(198, 164, 94, 0.95),
    inset 0 1px 0 rgba(255,255,255,0.28);
}
.btn-primary {
  transition: background-color 0.25s, background-image 0.25s, color 0.25s, border-color 0.25s, box-shadow 0.2s;
}
@media (min-width: 721px) {
  .btn-primary:hover,
  .nav-links a.nav-book:hover {
    transform: none;
    box-shadow:
      inset 0 0 0 1px rgba(198, 164, 94, 0.95),
      inset 0 1px 0 rgba(255,255,255,0.28),
      0 0 0 1px rgba(212, 188, 125, 0.45);
  }
}
@media (max-width: 720px) {
  .btn-primary:active,
  .nav-links a.nav-book:active {
    transform: none;
    box-shadow:
      inset 0 0 0 1px rgba(198, 164, 94, 0.95),
      inset 0 1px 0 rgba(255,255,255,0.28),
      0 0 0 1px rgba(212, 188, 125, 0.45);
  }
}
.cta-banner .btn-accent {
  color: var(--navy);
  border: 1px solid transparent;
  background: var(--foil-fill);
  background-clip: border-box;
  box-shadow: inset 0 1px 0 rgba(255, 248, 230, 0.55);
}
.cta-banner .btn-accent:hover {
  color: var(--navy);
  border-color: transparent;
  background: var(--foil-fill);
  filter: brightness(1.06);
}

/* 矢量八卦：金线中央、五术卡、分类钮。 */
.gold-line,
.wushu-art-mark,
.shop-panel-mark,
.wushu-art-card.is-on .wushu-art-mark,
.wushu-rail-item.is-on .wushu-art-mark,
.shop-panel.active .shop-panel-mark {
  letter-spacing: 0;
  background-image: none;
  background-clip: border-box;
  -webkit-text-fill-color: #8d6c36;
  color: #8d6c36;
}
.wushu-art-card.is-on .wushu-art-mark,
.wushu-rail-item.is-on .wushu-art-mark,
.shop-panel.active .shop-panel-mark {
  -webkit-text-fill-color: #8d6c36;
  color: #8d6c36;
}
.tri-row {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.42rem;
  letter-spacing: 0;
  line-height: 0;
}
.tri {
  display: block;
  width: 20px;
  height: 17px;
  flex: 0 0 auto;
}
.wushu-art-mark .tri { width: 26px; height: 22px; }
.shop-panel-mark .tri,
.gold-line .tri { width: 22px; height: 18px; }

/* 夜堂与底栏照片不铺纸纹。纸纹在深色上会发糊。 */
.footer {
  background-color: #08131f;
  background-image: radial-gradient(ellipse at 50% 0%, #243e58 0%, #12283c 48%, #08131f 100%);
  background-repeat: no-repeat;
  background-size: 100% 100%;
}
.cta-banner {
  background-color: #08131f;
  background-image:
    linear-gradient(180deg, rgba(8, 19, 31, 0.55) 0%, rgba(8, 19, 31, 0.42) 42%, rgba(8, 19, 31, 0.68) 100%),
    url("images/B.jpg");
  background-repeat: no-repeat, no-repeat;
  background-size: 100% 100%, cover;
  background-position: center, center 30%;
}
.cta-banner h2::before {
  content: "";
  display: block;
  width: 56px;
  height: 1px;
  margin: 0 auto 0.9rem;
  background: var(--foil-line);
}
html.person-mosaic .cta-banner {
  background-image:
    linear-gradient(180deg, rgba(8, 19, 31, 0.55) 0%, rgba(8, 19, 31, 0.42) 42%, rgba(8, 19, 31, 0.68) 100%),
    url("images/mosaic/B.jpg?v=4");
}
.m-mall-head {
  background-color: #08131f;
  background-image:
    var(--paper-fiber),
    radial-gradient(ellipse at 72% 40%, #243e58 0%, #12283c 55%, #08131f 100%);
  background-repeat: repeat, no-repeat;
  background-size: auto, cover;
}

/* 书口数字：宋体、金色、等宽，比正文稍大。正文不动。 */
.process-num,
.hero-index a::before,
.wushu-art-count,
.product-price,
.product-detail-info .price,
.cart-item-info .price-fx-toggle,
.cart-item-info .price-fx-toggle .product-price,
.search-result-price {
  font-family: var(--font-tc);
  font-variant-numeric: lining-nums tabular-nums;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #8d6c36;
  -webkit-text-fill-color: #8d6c36;
  background-image: none;
  background-clip: border-box;
}
html[data-lang="cn"] .process-num,
html[data-lang="cn"] .hero-index a::before,
html[data-lang="cn"] .wushu-art-count,
html[data-lang="cn"] .product-price,
html[data-lang="cn"] .product-detail-info .price,
html[data-lang="cn"] .search-result-price {
  font-family: var(--font-sc);
}
html[data-lang="enGB"] .process-num,
html[data-lang="enGB"] .hero-index a::before,
html[data-lang="enGB"] .wushu-art-count,
html[data-lang="enGB"] .product-price,
html[data-lang="enGB"] .product-detail-info .price,
html[data-lang="enUS"] .process-num,
html[data-lang="enUS"] .hero-index a::before,
html[data-lang="enUS"] .wushu-art-count,
html[data-lang="enUS"] .product-price,
html[data-lang="enUS"] .product-detail-info .price {
  font-family: var(--font-en);
}
.process-num,
.hero-index a::before,
.wushu-art-count,
.product-price,
.cart-item-info .price-fx-toggle .product-price,
.search-result-price {
  font-size: 1.12rem;
}
.hero-index a::before { min-width: 1.7rem; }
.price-fx-lg .product-price,
.product-detail-info .price { font-size: 1.7rem; }
.review-stars {
  position: relative;
  display: inline-flex;
  gap: 0.16rem;
  align-items: center;
  margin-bottom: 0.7rem;
  padding: 0.28rem 0.55rem 0.28rem 0.42rem;
  border-radius: 999px;
  color: #8d6c36;
  -webkit-text-fill-color: #8d6c36;
  background-image: linear-gradient(180deg, #fffdf8 0%, #f4ead6 100%);
  -webkit-background-clip: border-box;
  background-clip: border-box;
  box-shadow: inset 0 0 0 1px rgba(176, 146, 96, 0.55), inset 0 1px 0 rgba(255, 252, 245, 0.9);
  font-size: 0;
  letter-spacing: 0;
  line-height: 0;
}
.star-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.star-line { display: block; width: 16px; height: 16px; flex: 0 0 auto; }
.star-line.is-on {
  filter: drop-shadow(0 0.5px 0 rgba(255, 248, 228, 0.95)) drop-shadow(0 1px 1px rgba(110, 82, 36, 0.32));
}
.star-line:not(.is-on) path {
  fill: rgba(176, 146, 96, 0.16);
  stroke: #c4ae7a;
}
.review-score {
  margin-left: 0.22rem;
  padding-left: 0.42rem;
  border-left: 1px solid rgba(176, 146, 96, 0.55);
  font-family: var(--font-tc);
  font-variant-numeric: lining-nums tabular-nums;
  font-weight: 600;
  font-size: 0.86rem;
  letter-spacing: 0.04em;
  line-height: 1;
  color: #8d6c36;
  -webkit-text-fill-color: #8d6c36;
}
html[data-lang="cn"] .review-score { font-family: var(--font-sc); }
html[data-lang="enGB"] .review-score,
html[data-lang="enUS"] .review-score { font-family: var(--font-en); }

/* 格纸：八字、合盘、结账只留底线，聚焦变金。滚轮外框走笺的细线。 */
.m-bazi .form-field input:not([type="radio"]):not([type="hidden"]):not([type="file"]),
.m-bazi .form-field select,
.m-bazi .form-field textarea,
.m-bazi .place-picker-btn,
#checkoutForm .form-field input:not([type="radio"]):not([type="hidden"]):not([type="file"]),
#checkoutForm .form-field select,
#checkoutForm .form-field textarea,
#checkoutForm .place-picker-btn {
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: inset 0 -1px 0 rgba(176, 146, 96, 0.62);
  padding-left: 0.1rem;
  padding-right: 0.1rem;
}
.m-bazi .form-field select,
#checkoutForm .form-field select { padding-right: 1.4rem; }
.m-bazi .form-field input:not([type="radio"]):not([type="hidden"]):not([type="file"]):focus,
.m-bazi .form-field select:focus,
.m-bazi .form-field textarea:focus,
.m-bazi .place-picker-btn:focus,
#checkoutForm .form-field input:not([type="radio"]):not([type="hidden"]):not([type="file"]):focus,
#checkoutForm .form-field select:focus,
#checkoutForm .form-field textarea:focus,
#checkoutForm .place-picker-btn:focus {
  outline: none;
  background: transparent;
  border-color: transparent;
  box-shadow: inset 0 -1px 0 #b8954a;
}
.m-bazi .form-field.is-invalid input:not([type="radio"]):not([type="hidden"]):not([type="file"]),
.m-bazi .form-field.is-invalid select,
.m-bazi .form-field.is-invalid textarea,
.m-bazi .form-field.is-invalid .place-picker-btn,
#checkoutForm .form-field.is-invalid input:not([type="radio"]):not([type="hidden"]):not([type="file"]),
#checkoutForm .form-field.is-invalid select,
#checkoutForm .form-field.is-invalid textarea,
#checkoutForm .form-field.is-invalid .place-picker-btn {
  box-shadow: inset 0 -1px 0 #b42318;
}
.cal-picker,
.hour-picker {
  border-color: transparent;
  background: #fffcf7;
  box-shadow: inset 0 0 0 1px rgba(176, 146, 96, 0.45);
}
.form-field.is-invalid .cal-picker,
.form-field.is-invalid .hour-picker {
  border-color: transparent;
  box-shadow: inset 0 0 0 1px #b42318;
}

/* 动势：金线划入，首屏八秒缓推到 1.04，悬停放大收到 1.03。 */
.reveal,
.reveal.visible {
  opacity: 1;
  transform: none;
  transition: none;
}
.gold-line::before,
.gold-line::after {
  transform: scaleX(0);
  transform-origin: 100% 50%;
  transition: transform 1.15s cubic-bezier(0.22, 0.08, 0.2, 1);
}
.gold-line::after { transform-origin: 0 50%; }
.gold-line.is-drawn::before,
.gold-line.is-drawn::after { transform: scaleX(1); }
@media (min-width: 721px) {
  .hero-visual { overflow: hidden; }
  .hero-visual img {
    transform-origin: center 22%;
    animation: hero-push 8s cubic-bezier(0.33, 0, 0.2, 1) forwards;
  }
  .category-card:hover .category-photo img,
  .product-card:hover .product-image img,
  .gallery-portraits a:hover img,
  .gallery-mosaic a:hover img,
  .gallery-mosaic figure:hover img,
  .gallery-item:hover img {
    transform: scale(1.03);
  }
}
@keyframes hero-push {
  from { transform: scale(1); }
  to { transform: scale(1.04); }
}
@keyframes nav-foil {
  from { transform: translateX(-130%); }
  to { transform: translateX(600%); }
}
@keyframes seal-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes master-push {
  from { transform: scale(1); }
  to { transform: scale(1.02); }
}
@keyframes mark-foil {
  from { transform: translateX(-160%); }
  to { transform: translateX(280%); }
}
@media (min-width: 721px) {
  .process-grid .process-num {
    opacity: 0.28;
    transition: opacity 0.7s ease;
  }
  .gold-line.is-drawn ~ .process-grid .process-card:nth-child(1) .process-num {
    opacity: 1;
    transition-delay: 0.4s;
  }
  .gold-line.is-drawn ~ .process-grid .process-card:nth-child(2) .process-num {
    opacity: 1;
    transition-delay: 0.52s;
  }
  .gold-line.is-drawn ~ .process-grid .process-card:nth-child(3) .process-num {
    opacity: 1;
    transition-delay: 0.64s;
  }
  .master-portrait.is-pushed > img.master-still {
    transform-origin: center 22%;
    animation: master-push 14s cubic-bezier(0.33, 0, 0.2, 1) forwards;
  }
  .cta-banner h2::before {
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 1.15s cubic-bezier(0.22, 0.08, 0.2, 1);
  }
  .cta-banner.is-drawn h2::before { transform: scaleX(1); }
  .gallery-portraits .gallery-caption { transition: color 0.35s ease; }
  .gallery-portraits a:hover .gallery-caption { color: var(--gold-soft); }
}
.footer h4 { transition: color 0.8s ease; }
.footer.is-drawn h4 { color: var(--gold-soft); }
.shop-panel.active .shop-panel-mark.is-foil:has(.tri)::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 46%;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 248, 226, 0.92), transparent);
  mix-blend-mode: color-dodge;
  transform: translateX(-160%);
  animation: mark-foil 1.2s cubic-bezier(0.22, 0.08, 0.2, 1) forwards;
}
@keyframes portrait-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@media (max-width: 720px) {
  .hero-visual img { animation: none; }
  .m-portraits a { animation: portrait-in 0.9s ease both; }
  .m-portraits a:nth-child(2) { animation-delay: 0.12s; }
  .m-portraits a:nth-child(3) { animation-delay: 0.22s; }
  .m-portraits a:nth-child(4) { animation-delay: 0.32s; }
  .category-card:hover .category-photo img,
  .product-card:hover .product-image img,
  .gallery-portraits a:hover img,
  .gallery-mosaic a:hover img,
  .gallery-mosaic figure:hover img,
  .gallery-item:hover img,
  .product-card:hover,
  .wushu-art-card:hover,
  .process-card:hover,
  .review-card:hover,
  .member-card:hover {
    transform: none;
  }
  .product-card:hover {
    transform: none;
    box-shadow: inset 0 0 0 1px rgba(176, 146, 96, 0.45);
  }
  .product-card:active {
    transform: none;
    border-color: transparent;
    box-shadow: inset 0 0 0 1px rgba(184, 149, 74, 0.95);
  }
  .product-card:active .product-image img { transform: none; }
  .gallery-item figcaption { transition: color 0.25s ease; }
  .gallery-item:active figcaption { color: var(--gold-soft); }
  .gallery-item:active img { transform: none; }
  .m-bazi .form-field input:not([type="radio"]):not([type="hidden"]):not([type="file"]),
  .m-bazi .form-field select,
  .m-bazi .form-field textarea,
  .m-bazi .place-picker-btn,
  #checkoutForm .form-field input:not([type="radio"]):not([type="hidden"]):not([type="file"]),
  #checkoutForm .form-field select,
  #checkoutForm .form-field textarea,
  #checkoutForm .place-picker-btn {
    font-size: 16px;
    min-height: 44px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .gold-line::before,
  .gold-line::after {
    transform: none;
    transition: none;
  }
  .nav::before { animation: none; }
  .m-mall-seal { animation: none; opacity: 1; }
  .m-bazi-heading::after { transition: none; }
  .process-grid .process-num { opacity: 1; transition: none; }
  .master-portrait.is-pushed > img.master-still { animation: none; transform: none; }
  .cta-banner h2::before { transform: none; transition: none; }
  .footer h4 { transition: none; }
  .shop-panel.active .shop-panel-mark.is-foil:has(.tri)::after { animation: none; content: none; }
  .hero-visual img,
  .m-portraits a { animation: none; }
  .category-card:hover .category-photo img,
  .product-card:hover .product-image img,
  .gallery-portraits a:hover img,
  .gallery-mosaic a:hover img,
  .gallery-mosaic figure:hover img,
  .gallery-item:hover img {
    transform: none;
  }
}
