/* ==========================================================================
   XINGJINGE — 星烬阁 · Custom Crystal Atelier
   Design system: quiet luxury / bone & ink / antique gold
   ========================================================================== */

:root {
  --bone: #FBF9F6;
  --bone-2: #F4F0E9;
  --surface: #FFFFFF;
  --ink: #1B1917;
  --ink-soft: #403A34;
  --muted: #6E6862;
  --faint: #9A938B;
  --line: #E7E1D8;
  --line-soft: #F0EBE3;
  --gold: #A8863F;
  --gold-soft: #C9AE7A;
  --sage: #6E7F76;
  --clay: #B0735A;

  --radius-s: 4px;
  --radius: 10px;
  --radius-l: 20px;
  --radius-pill: 999px;

  --shadow-s: 0 1px 2px rgba(27, 25, 23, .05);
  --shadow: 0 10px 30px -12px rgba(27, 25, 23, .18);
  --shadow-l: 0 30px 70px -30px rgba(27, 25, 23, .30);

  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --serif: 'Cormorant Garamond', 'Iowan Old Style', 'Palatino Linotype', Palatino, 'Times New Roman', Georgia, serif;

  --maxw: 1240px;
  --nav-h: 74px;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.no-scroll { overflow: hidden; }
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; padding: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; letter-spacing: -.01em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
hr { border: 0; border-top: 1px solid var(--line); margin: 0; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }

/* ---------- Typography ---------- */
.display {
  font-family: var(--serif);
  font-weight: 300;
  line-height: 1.06;
  letter-spacing: -.02em;
}
h1.display { font-size: clamp(2.6rem, 6.4vw, 4.9rem); }
h2.display { font-size: clamp(2rem, 4.2vw, 3.2rem); }
h3.display { font-size: clamp(1.35rem, 2.2vw, 1.8rem); }

.eyebrow {
  font-size: .68rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--gold);
}
.lede {
  font-size: clamp(1.02rem, 1.5vw, 1.18rem);
  color: var(--ink-soft);
  line-height: 1.72;
  font-weight: 300;
}
.muted { color: var(--muted); }
.small { font-size: .85rem; line-height: 1.6; }
.tiny { font-size: .74rem; line-height: 1.55; color: var(--faint); }
.serif-i { font-family: var(--serif); font-style: italic; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }
.wrap-narrow { max-width: 820px; }
.section { padding: clamp(64px, 9vw, 118px) 0; }
.section-sm { padding: clamp(44px, 6vw, 72px) 0; }
.section-tint { background: var(--bone-2); }
.section-ink { background: var(--ink); color: #F2EEE8; }
.section-ink .muted { color: #A9A29A; }
.section-ink .lede { color: #D8D2CA; }

.grid { display: grid; gap: 26px; }
.g-2 { grid-template-columns: repeat(2, 1fr); }
.g-3 { grid-template-columns: repeat(3, 1fr); }
.g-4 { grid-template-columns: repeat(4, 1fr); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 76px); align-items: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 30px;
  border-radius: var(--radius-pill);
  font-size: .82rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase;
  border: 1px solid transparent;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .2s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink); color: var(--bone); }
.btn-primary:hover { background: #33302B; }
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: #96773A; }
.btn-ghost { border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--bone); }
.btn-light { border-color: rgba(242,238,232,.4); color: #F2EEE8; }
.btn-light:hover { background: #F2EEE8; color: var(--ink); border-color: #F2EEE8; }
.btn-block { width: 100%; }
.btn-sm { padding: 11px 20px; font-size: .72rem; }
.btn[disabled] { opacity: .4; pointer-events: none; }

.link-u {
  border-bottom: 1px solid var(--gold-soft);
  padding-bottom: 2px;
  transition: border-color .25s var(--ease), color .25s var(--ease);
}
.link-u:hover { border-color: var(--gold); color: var(--gold); }

/* ---------- Header ---------- */
.topbar {
  background: var(--ink); color: #CFC9C1;
  font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; text-align: center;
  padding: 10px 18px;
}
.topbar b { color: var(--gold-soft); font-weight: 500; }

.nav {
  position: sticky; top: 0; z-index: 60;
  background: rgba(251,249,246,.86);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.nav-inner {
  height: var(--nav-h); display: flex; align-items: center; gap: 30px;
}
.brand { display: flex; align-items: baseline; gap: 9px; }
.brand-mark {
  font-family: var(--serif); font-size: 1.62rem; font-weight: 400; letter-spacing: .16em;
  text-transform: uppercase;
}
.brand-sub { font-size: .58rem; letter-spacing: .24em; text-transform: uppercase; color: var(--faint); }
.nav-links { display: flex; gap: 28px; margin-left: auto; }
.nav-links a {
  font-size: .78rem; letter-spacing: .11em; text-transform: uppercase; color: var(--ink-soft);
  padding: 6px 0; border-bottom: 1px solid transparent;
  transition: color .25s var(--ease), border-color .25s var(--ease);
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); border-color: var(--gold); }
.nav-actions { display: flex; align-items: center; gap: 16px; margin-left: 4px; }
.nav-cta { padding: 11px 22px; font-size: .7rem; }
.cart-btn { position: relative; display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; }
.cart-count {
  min-width: 20px; height: 20px; padding: 0 5px; border-radius: var(--radius-pill);
  background: var(--gold); color: #fff; font-size: .66rem; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center;
}
.cart-count[hidden] { display: none; }
.burger { display: none; flex-direction: column; gap: 5px; padding: 8px; margin-left: auto; }
.burger span { width: 22px; height: 1.5px; background: var(--ink); display: block; transition: transform .3s var(--ease), opacity .2s; }
.burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 55; background: var(--bone);
  padding: calc(var(--nav-h) + 40px) 24px 40px;
  transform: translateY(-8px); opacity: 0; pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
  overflow-y: auto;
}
.mobile-menu.open { opacity: 1; transform: none; pointer-events: auto; }
.mobile-menu a {
  display: block; padding: 18px 0; border-bottom: 1px solid var(--line);
  font-family: var(--serif); font-size: 1.6rem; letter-spacing: .02em;
}
.mobile-menu .btn { margin-top: 30px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: linear-gradient(160deg, #F7F3EC 0%, #EFE9DF 42%, #E5DCCE 100%); }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60% 55% at 78% 22%, rgba(201,174,122,.34), transparent 62%),
    radial-gradient(48% 46% at 12% 82%, rgba(110,127,118,.20), transparent 66%);
}
.hero-inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.02fr .98fr; gap: clamp(28px, 4vw, 64px);
  align-items: center; padding: clamp(56px, 8vw, 104px) 0 clamp(60px, 8vw, 100px);
}
.hero h1 { margin: 20px 0 0; }
.hero .lede { margin-top: 24px; max-width: 46ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero-trust {
  display: flex; flex-wrap: wrap; gap: 12px 30px; margin-top: 40px;
  padding-top: 26px; border-top: 1px solid rgba(27,25,23,.1);
}
.hero-trust div { font-size: .76rem; letter-spacing: .06em; color: var(--ink-soft); display: flex; align-items: center; gap: 9px; }
.hero-trust svg { flex: none; color: var(--gold); }
.hero-art { position: relative; }
.hero-frame {
  position: relative; aspect-ratio: 4/5; border-radius: var(--radius-l); overflow: hidden;
  background: linear-gradient(150deg, #EFE8DC, #DCD2C2);
  box-shadow: var(--shadow-l);
}
.hero-frame img { width: 100%; height: 100%; object-fit: cover; }
.hero-badge {
  position: absolute; left: -18px; bottom: 30px; z-index: 3;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 20px; box-shadow: var(--shadow); max-width: 232px;
}
.hero-badge .n { font-family: var(--serif); font-size: 1.9rem; line-height: 1; }
.stars { color: var(--gold); letter-spacing: 2px; font-size: .82rem; }

/* ---------- Marquee ---------- */
.marquee { border-block: 1px solid var(--line); background: var(--bone); overflow: hidden; padding: 17px 0; }
.marquee-track { display: flex; gap: 52px; width: max-content; animation: slide 34s linear infinite; }
.marquee span {
  font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted);
  display: flex; align-items: center; gap: 52px;
}
.marquee span::after { content: "·"; color: var(--gold-soft); }
@keyframes slide { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* ---------- Section head ---------- */
.head { max-width: 700px; }
.head.center { margin-inline: auto; }
.head .display { margin-top: 14px; }
.head .lede { margin-top: 18px; }
.head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 52px; }

/* ---------- Cards ---------- */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px; transition: box-shadow .35s var(--ease), transform .35s var(--ease), border-color .35s var(--ease);
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: var(--line-soft); }
.card .num { font-family: var(--serif); font-size: 1.05rem; color: var(--gold); letter-spacing: .1em; }
.card h3 { margin: 16px 0 10px; font-family: var(--serif); font-size: 1.4rem; }
.card p { color: var(--muted); font-size: .92rem; }

/* ---------- Product grid ---------- */
.shop-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px 20px; }
.prod { position: relative; }
.prod-media {
  position: relative; aspect-ratio: 1/1; border-radius: var(--radius); overflow: hidden;
  background: var(--bone-2); display: flex; align-items: center; justify-content: center;
}
.prod-media img, .prod-media svg { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.prod:hover .prod-media img, .prod:hover .prod-media svg { transform: scale(1.045); }
.prod-tag {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  background: rgba(255,255,255,.93); backdrop-filter: blur(6px);
  font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 500;
  padding: 6px 11px; border-radius: var(--radius-pill); color: var(--ink-soft);
}
.prod-quick {
  position: absolute; inset-inline: 14px; bottom: 14px; z-index: 2;
  opacity: 0; transform: translateY(8px);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.prod:hover .prod-quick { opacity: 1; transform: none; }
.prod-body { padding-top: 15px; }
.prod-stone { font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.prod-name { font-family: var(--serif); font-size: 1.16rem; margin: 6px 0 4px; }
.prod-price { font-size: .92rem; color: var(--ink-soft); }
.prod-price s { color: var(--faint); margin-right: 7px; font-size: .84rem; }

/* ---------- Steps ---------- */
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.step { position: relative; padding-top: 26px; border-top: 1px solid var(--line); }
.step::before {
  counter-increment: s; content: "0" counter(s);
  position: absolute; top: -13px; left: 0; background: var(--bone); padding-right: 12px;
  font-family: var(--serif); font-size: .95rem; color: var(--gold); letter-spacing: .1em;
}
.section-tint .step::before { background: var(--bone-2); }
.step h4 { font-family: var(--serif); font-size: 1.24rem; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: .9rem; }

/* ---------- Configurator ---------- */
.cfg-shell { display: grid; grid-template-columns: 1fr 340px; gap: clamp(28px, 4vw, 56px); align-items: start; }
.cfg-main { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); padding: clamp(26px, 3.4vw, 46px); }
.cfg-progress { display: flex; align-items: center; gap: 12px; margin-bottom: 34px; flex-wrap: wrap; }
.cfg-dot {
  display: flex; align-items: center; gap: 9px; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--faint); transition: color .3s var(--ease);
}
.cfg-dot i {
  width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center; font-size: .66rem; font-style: normal;
  transition: background .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease);
}
.cfg-dot.done { color: var(--gold); }
.cfg-dot.done i { background: var(--gold); border-color: var(--gold); color: #fff; }
.cfg-dot.active { color: var(--ink); }
.cfg-dot.active i { border-color: var(--ink); color: var(--ink); font-weight: 600; }
.cfg-dot .sep { color: var(--line); }

.cfg-panel { display: none; animation: fade .35s var(--ease); }
.cfg-panel.active { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.cfg-title { font-family: var(--serif); font-size: 1.72rem; margin-bottom: 6px; }
.cfg-sub { color: var(--muted); font-size: .92rem; margin-bottom: 30px; }

.opts { display: grid; gap: 12px; }
.opts.c2 { grid-template-columns: 1fr 1fr; }
.opts.c3 { grid-template-columns: repeat(3, 1fr); }
.opt {
  display: flex; align-items: center; gap: 14px;
  border: 1px solid var(--line); border-radius: var(--radius); padding: 15px 17px;
  cursor: pointer; transition: border-color .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease);
  text-align: left; width: 100%;
}
.opt:hover { border-color: var(--gold-soft); background: #FEFDFB; }
.opt.sel { border-color: var(--gold); background: #FDFAF4; box-shadow: 0 0 0 1px var(--gold); }
.opt .swatch {
  width: 34px; height: 34px; border-radius: 50%; flex: none;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.07), 0 2px 6px rgba(0,0,0,.07);
}
.opt .swatch.rect { border-radius: 6px; }
.opt-body { min-width: 0; }
.opt-name { font-size: .9rem; font-weight: 500; }
.opt-meta { font-size: .74rem; color: var(--faint); }
.opt .price { margin-left: auto; font-size: .84rem; color: var(--ink-soft); white-space: nowrap; }
.opt input { display: none; }

.field { margin-bottom: 20px; }
.field label { display: block; font-size: .72rem; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); margin-bottom: 9px; }
.input, .select, .textarea {
  width: 100%; padding: 13px 15px; border: 1px solid var(--line); border-radius: var(--radius-s);
  background: var(--surface); font-size: .95rem; transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(168,134,63,.12); }
.textarea { min-height: 118px; resize: vertical; line-height: 1.6; }
.select { appearance: none; background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236E6862' stroke-width='1.6'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 13px center; background-size: 17px; padding-right: 40px; }
.hint { font-size: .76rem; color: var(--faint); margin-top: 8px; }
.field-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  border: 1px solid var(--line); border-radius: var(--radius-pill); padding: 9px 17px;
  font-size: .82rem; cursor: pointer; background: var(--surface);
  transition: all .25s var(--ease);
}
.chip:hover { border-color: var(--gold-soft); }
.chip.sel { background: var(--ink); border-color: var(--ink); color: var(--bone); }

.upload {
  border: 1px dashed var(--line); border-radius: var(--radius); padding: 26px; text-align: center;
  transition: border-color .25s var(--ease), background .25s var(--ease); cursor: pointer; display: block;
}
.upload:hover { border-color: var(--gold); background: #FEFDFB; }
.upload input { display: none; }
.upload svg { margin: 0 auto 10px; color: var(--gold); }

.cfg-nav { display: flex; justify-content: space-between; gap: 14px; margin-top: 34px; padding-top: 26px; border-top: 1px solid var(--line-soft); }
.cfg-nav .btn-back { border-color: var(--line); color: var(--muted); }
.cfg-nav .btn-back:hover { border-color: var(--ink); color: var(--ink); background: none; }

.cfg-summary { position: sticky; top: calc(var(--nav-h) + 22px); background: var(--ink); color: #EFEAE3; border-radius: var(--radius-l); padding: 30px 26px; }
.cfg-summary h3 { font-family: var(--serif); font-size: 1.28rem; color: #fff; margin-bottom: 6px; }
.cfg-summary .eyebrow { color: var(--gold-soft); }
.sum-list { margin: 22px 0; border-top: 1px solid rgba(255,255,255,.12); }
.sum-list div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid rgba(255,255,255,.09); font-size: .84rem; }
.sum-list dt { color: #A29A91; }
.sum-list dd { margin: 0; text-align: right; color: #fff; max-width: 58%; word-break: break-word; }
.sum-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 6px; }
.sum-total .n { font-family: var(--serif); font-size: 1.9rem; color: var(--gold-soft); }
.sum-note { font-size: .74rem; color: #9C948B; margin-top: 14px; line-height: 1.6; }

/* ---------- Preview gem ---------- */
.gem-stage {
  position: relative; aspect-ratio: 1/1; border-radius: var(--radius-l); overflow: hidden;
  background: radial-gradient(70% 70% at 50% 42%, #F4EFE6, #E3DACB 60%, #D5CABA 100%);
  display: flex; align-items: center; justify-content: center;
}
.gem-stage svg { width: 78%; height: 78%; }
.gem-stage .cap {
  position: absolute; bottom: 16px; left: 0; right: 0; text-align: center;
  font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
}

/* ---------- Feature / band ---------- */
.band { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.band > div { background: var(--surface); padding: 30px 26px; }
.band h4 { font-family: var(--serif); font-size: 1.18rem; margin-bottom: 7px; }
.band p { font-size: .87rem; color: var(--muted); }
.band svg { color: var(--gold); margin-bottom: 14px; }

/* ---------- Testimonials ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.quote { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px; display: flex; flex-direction: column; }
.quote p { font-family: var(--serif); font-size: 1.16rem; line-height: 1.5; color: var(--ink-soft); flex: 1; }
.quote footer { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line-soft); display: flex; align-items: center; gap: 12px; }
.avatar { width: 38px; height: 38px; border-radius: 50%; flex: none; display: flex; align-items: center; justify-content: center; font-size: .82rem; font-weight: 600; color: #fff; }
.quote .who { font-size: .84rem; font-weight: 500; }
.quote .where { font-size: .74rem; color: var(--faint); }

/* ---------- Guide table ---------- */
.stone-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.stone-card { display: flex; gap: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.stone-card .swatch { width: 46px; height: 46px; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 1px rgba(0,0,0,.07); }
.stone-card h4 { font-family: var(--serif); font-size: 1.14rem; margin-bottom: 3px; }
.stone-card .mo { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.stone-card p { font-size: .82rem; color: var(--muted); margin-top: 7px; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 44px 22px 0; position: relative;
  font-family: var(--serif); font-size: 1.18rem; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 12px; height: 12px;
  border-right: 1.4px solid var(--muted); border-bottom: 1.4px solid var(--muted);
  transform: translateY(-70%) rotate(45deg); transition: transform .3s var(--ease);
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq .ans { padding: 0 60px 26px 0; color: var(--muted); font-size: .93rem; line-height: 1.75; }
.faq .ans p + p { margin-top: 12px; }

/* ---------- Cart drawer ---------- */
.overlay { position: fixed; inset: 0; background: rgba(27,25,23,.42); backdrop-filter: blur(3px); z-index: 80; opacity: 0; pointer-events: none; transition: opacity .3s var(--ease); }
.overlay.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100%); z-index: 90;
  background: var(--bone); display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .4s var(--ease);
}
.drawer.open { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 24px 26px; border-bottom: 1px solid var(--line); }
.drawer-head h3 { font-family: var(--serif); font-size: 1.34rem; }
.drawer-body { flex: 1; overflow-y: auto; padding: 24px 26px; }
.drawer-foot { padding: 22px 26px 26px; border-top: 1px solid var(--line); background: var(--surface); }
.icon-btn { width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; color: var(--muted); transition: background .25s var(--ease), color .25s var(--ease); }
.icon-btn:hover { background: var(--bone-2); color: var(--ink); }

.line-item { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line-soft); }
.line-item .thumb { width: 74px; height: 74px; border-radius: var(--radius-s); overflow: hidden; flex: none; background: var(--bone-2); }
.line-item .thumb svg, .line-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.line-item .nm { font-family: var(--serif); font-size: 1.06rem; }
.line-item .mt { font-size: .76rem; color: var(--faint); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: var(--radius-pill); overflow: hidden; margin-top: 9px; }
.qty button { width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; color: var(--muted); font-size: 1rem; }
.qty button:hover { background: var(--bone-2); color: var(--ink); }
.qty span { min-width: 26px; text-align: center; font-size: .84rem; }
.totals { display: flex; flex-direction: column; gap: 9px; margin-bottom: 18px; font-size: .9rem; }
.totals div { display: flex; justify-content: space-between; }
.totals .grand { font-family: var(--serif); font-size: 1.36rem; padding-top: 12px; border-top: 1px solid var(--line); }

.empty { text-align: center; padding: 56px 20px; color: var(--muted); }
.empty svg { margin: 0 auto 16px; color: var(--line); }

/* ---------- Notices ---------- */
.notice {
  display: flex; gap: 12px; align-items: flex-start;
  border: 1px solid var(--line); border-left: 3px solid var(--gold);
  background: #FDFBF7; border-radius: var(--radius-s); padding: 15px 18px; font-size: .85rem; color: var(--ink-soft);
}
.notice svg { flex: none; margin-top: 2px; color: var(--gold); }
.notice-warn { border-left-color: var(--clay); background: #FDF7F4; }
.notice-warn svg { color: var(--clay); }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 30px; transform: translate(-50%, 20px); z-index: 120;
  background: var(--ink); color: var(--bone); padding: 14px 24px; border-radius: var(--radius-pill);
  font-size: .85rem; box-shadow: var(--shadow-l); opacity: 0; pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease); max-width: calc(100% - 40px); text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Newsletter ---------- */
.signup { display: flex; gap: 10px; max-width: 460px; }
.signup .input { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.2); color: #fff; }
.signup .input::placeholder { color: rgba(255,255,255,.4); }
.signup .input:focus { border-color: var(--gold-soft); box-shadow: none; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #B5AEA6; padding: clamp(56px, 7vw, 84px) 0 34px; font-size: .87rem; }
.footer h4 { font-size: .72rem; letter-spacing: .17em; text-transform: uppercase; color: #F0EBE4; margin-bottom: 20px; }
.footer a:hover { color: var(--gold-soft); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 44px; }
.footer .brand-mark { color: #F5F1EB; }
.footer li { margin-bottom: 11px; }
.footer-bottom { margin-top: 54px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.12); display: flex; flex-wrap: wrap; gap: 16px 26px; justify-content: space-between; font-size: .78rem; }
.pay-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.pay-row span {
  border: 1px solid rgba(255,255,255,.18); border-radius: var(--radius-s); padding: 5px 10px;
  font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: #CFC9C1;
}

/* ---------- Policy pages ---------- */
.policy { max-width: 780px; }
.policy h2 { font-family: var(--serif); font-size: 1.6rem; margin: 44px 0 14px; }
.policy h3 { font-family: var(--serif); font-size: 1.16rem; margin: 26px 0 10px; }
.policy p, .policy li { color: var(--ink-soft); font-size: .95rem; line-height: 1.78; margin-bottom: 12px; }
.policy ul { list-style: disc; padding-left: 22px; margin-bottom: 14px; }
.policy ul li { margin-bottom: 7px; }
.policy .toc { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; background: var(--surface); margin: 30px 0 10px; }
.policy .toc a { color: var(--gold); }

/* ---------- Product detail ---------- */
.pdp { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(30px, 5vw, 70px); align-items: start; }
.pdp-media { border-radius: var(--radius-l); overflow: hidden; background: var(--bone-2); aspect-ratio: 1/1; }
.pdp-media svg, .pdp-media img { width: 100%; height: 100%; object-fit: cover; }
.pdp-price { font-family: var(--serif); font-size: 2rem; margin: 14px 0 6px; }
.pdp-specs { margin: 26px 0; border-top: 1px solid var(--line); }
.pdp-specs div { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line-soft); font-size: .88rem; }
.pdp-specs dt { color: var(--muted); }
.pdp-specs dd { margin: 0; }

.breadcrumb { display: flex; gap: 9px; font-size: .78rem; color: var(--faint); padding: 22px 0 30px; }
.breadcrumb a:hover { color: var(--gold); }

/* ---------- Utilities ---------- */
.mt-s { margin-top: 12px; } .mt-m { margin-top: 22px; } .mt-l { margin-top: 40px; } .mt-xl { margin-top: 60px; }
.mb-s { margin-bottom: 12px; } .mb-m { margin-bottom: 22px; } .mb-l { margin-bottom: 40px; }
.flex { display: flex; } .wrapf { flex-wrap: wrap; } .between { justify-content: space-between; }
.items-center { align-items: center; } .gap-s { gap: 10px; } .gap-m { gap: 18px; }
.stack > * + * { margin-top: 14px; }
.hide { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .shop-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 34px; }
  .stone-grid { grid-template-columns: repeat(2, 1fr); }
  .cfg-shell { grid-template-columns: 1fr; }
  .cfg-summary { position: static; }
}
@media (max-width: 900px) {
  .nav-links, .nav-actions .nav-cta { display: none; }
  .burger { display: flex; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .hero-frame { aspect-ratio: 5/4; }
  .hero-badge { left: auto; right: 14px; bottom: -16px; }
  .split { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .quotes { grid-template-columns: 1fr; }
  .band { grid-template-columns: 1fr; }
  .g-4 { grid-template-columns: repeat(2, 1fr); }
  .pdp { grid-template-columns: 1fr; }
  .head-row { flex-direction: column; align-items: flex-start; gap: 18px; margin-bottom: 36px; }
}
@media (max-width: 640px) {
  .wrap { padding-inline: 18px; }
  .shop-grid { grid-template-columns: repeat(2, 1fr); gap: 20px 14px; }
  .g-2, .g-3, .g-4 { grid-template-columns: 1fr; }
  .opts.c2, .opts.c3 { grid-template-columns: 1fr; }
  .field-2 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .stone-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-cta .btn { width: 100%; }
  .prod-quick { opacity: 1; transform: none; }
  .cfg-dot span { display: none; }
  .signup { flex-direction: column; }
  .signup .btn { width: 100%; }
}

/* ==========================================================================
   Sourcing / media system（源头故事与素材库）
   ========================================================================== */

/* ---- 四段链路 ---- */
.route { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.route-item { position: relative; }
.route-media { position: relative; aspect-ratio: 4/5; border-radius: var(--radius); overflow: hidden; background: var(--bone-2); margin-bottom: 18px; }
.route-media img, .route-media video { width: 100%; height: 100%; object-fit: cover; }
.route-n {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  background: rgba(255,255,255,.93); border-radius: var(--radius-pill);
  font-size: .62rem; letter-spacing: .15em; text-transform: uppercase;
  padding: 5px 11px; color: var(--ink-soft); font-weight: 500;
}
.route-item h4 { font-family: var(--serif); font-size: 1.16rem; margin-bottom: 7px; }
.route-item p { font-size: .86rem; color: var(--muted); line-height: 1.65; }

/* ---- 素材网格（图片 + 视频混排） ---- */
.media-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: 14px; }
.media-item {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: var(--bone-2); cursor: zoom-in;
}
.media-item.wide { grid-column: span 2; }
.media-item.tall { grid-row: span 2; }
.media-item img, .media-item video { width: 100%; height: 100%; object-fit: cover; display: block; }
.media-item.is-video { cursor: default; }
.media-item .media-cap {
  position: absolute; inset-inline: 0; bottom: 0; padding: 34px 16px 14px;
  color: #fff; font-size: .8rem; line-height: 1.45;
  background: linear-gradient(transparent, rgba(20,18,16,.80));
  pointer-events: none;
}
.media-item .media-cap b { display: block; font-weight: 500; }
.media-item .media-tag {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  background: rgba(255,255,255,.93); border-radius: var(--radius-pill);
  font-size: .6rem; letter-spacing: .15em; text-transform: uppercase;
  padding: 5px 10px; color: var(--ink-soft); font-weight: 500;
}
.media-item .play-badge {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 52px; height: 52px; border-radius: 50%; background: rgba(255,255,255,.9);
  display: flex; align-items: center; justify-content: center; pointer-events: none;
}

/* ---- 竖屏主推位（放你的 TikTok 成片） ---- */
.media-feature { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(26px, 4vw, 60px); align-items: center; }
.media-feature .player {
  position: relative; aspect-ratio: 9/16; border-radius: var(--radius-l); overflow: hidden;
  background: linear-gradient(160deg,#2A2724,#141210); box-shadow: var(--shadow-l);
}
.media-feature .player video, .media-feature .player img { width: 100%; height: 100%; object-fit: cover; }
.media-feature .player .player-empty {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 12px; text-align: center;
  color: #8E8880; padding: 30px; font-size: .82rem; line-height: 1.6;
}

/* ---- 空状态 ---- */
.media-empty {
  border: 1px dashed var(--line); border-radius: var(--radius); padding: 54px 26px;
  text-align: center; color: var(--muted); background: var(--surface);
}
.media-empty svg { margin: 0 auto 14px; color: var(--gold); }

/* ---- 灯箱 ---- */
.lightbox {
  position: fixed; inset: 0; z-index: 130; display: none;
  align-items: center; justify-content: center; padding: 46px 22px;
  background: rgba(18,16,14,.95);
}
.lightbox.open { display: flex; }
.lightbox img { max-width: min(1100px, 100%); max-height: 84vh; border-radius: var(--radius); object-fit: contain; }
.lightbox .lb-cap { position: absolute; bottom: 22px; left: 22px; right: 22px; text-align: center; color: #E8E2DA; font-size: .86rem; }
.lightbox .lb-close { position: absolute; top: 18px; right: 18px; color: #F0EBE4; }
.lightbox .lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  color: #F0EBE4; padding: 16px; border-radius: 50%;
}
.lightbox .lb-nav:hover, .lightbox .lb-close:hover { background: rgba(255,255,255,.1); }
.lightbox .lb-prev { left: 14px; } .lightbox .lb-next { right: 14px; }

/* ---- 产地档案条 ---- */
.prov {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); padding: 24px 26px;
}
.prov h5 {
  margin: 0 0 7px; font-size: .66rem; letter-spacing: .15em;
  text-transform: uppercase; color: var(--faint); font-weight: 500;
}
.prov p { font-size: .88rem; color: var(--ink-soft); }

/* ---- 对比表 ---- */
.factcheck { width: 100%; border-collapse: collapse; font-size: .9rem; }
.factcheck th, .factcheck td { text-align: left; padding: 15px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.factcheck thead th { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); font-weight: 500; }
.factcheck tbody tr:last-child td { border-bottom: 0; }
.factcheck td:first-child { font-weight: 500; width: 30%; }
.factcheck .yes { color: var(--sage); font-weight: 500; }
.factcheck .no { color: var(--clay); font-weight: 500; }
.factcheck .tbl-wrap { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }

@media (max-width: 1080px) {
  .media-grid { grid-template-columns: repeat(3, 1fr); }
  .route { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .media-feature { grid-template-columns: 1fr; }
  .media-feature .player { max-width: 380px; margin-inline: auto; }
  .prov { grid-template-columns: 1fr; gap: 18px; }
  .factcheck td:first-child { width: 40%; }
}
@media (max-width: 640px) {
  .media-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; gap: 10px; }
  .media-item.wide { grid-column: span 2; }
  .route { grid-template-columns: 1fr; }
  .factcheck th, .factcheck td { padding: 12px 12px; font-size: .84rem; }
}

@media print { .nav, .footer, .drawer, .overlay, .topbar { display: none; } }

/* 未配置链接的展示块（如图片墙）：保留内容，但不再显示为可点击 */
.is-static { cursor: default; pointer-events: none; }
a.prod-media.is-static:hover img { transform: none; }
