/* ===== site.css ===== */
/* Leather House USA — internal sample. Tokens first, components after.
   Palettes are switchable (A 皮革驼 / B 墨黑金 / C 深墨绿) via [data-palette]. */

:root {
  --bg: #f7f3ed; --ink: #17110c; --muted: #5c5147; --panel: #ffffff;
  --line: #e2d8ca; --band: #efe7da; --accent: #8a5a2b; --accent-ink: #ffffff;
  --shadow: 0 1px 2px rgba(23,17,12,.06), 0 12px 32px rgba(23,17,12,.07);
  --radius: 16px; --radius-sm: 10px;
  --step-1: clamp(1.05rem, .95rem + .4vw, 1.22rem);
  --step-2: clamp(1.45rem, 1.15rem + 1.2vw, 2.1rem);
  --step-3: clamp(2.1rem, 1.4rem + 3.2vw, 3.6rem);
  --max: 1180px;
}
[data-palette="B"] {
  --bg: #0e0e10; --ink: #e8e6e1; --muted: #a7a29a; --panel: #17171a;
  --line: #2a2a2f; --band: #1c1c20; --accent: #c9a227; --accent-ink: #12100a;
  --shadow: 0 1px 2px rgba(0,0,0,.5), 0 16px 40px rgba(0,0,0,.45);
}
[data-palette="C"] {
  --bg: #f4f5f1; --ink: #10160f; --muted: #4f5a4c; --panel: #ffffff;
  --line: #dde4d8; --band: #e6ebe2; --accent: #1f4d3a; --accent-ink: #ffffff;
  --shadow: 0 1px 2px rgba(16,22,15,.06), 0 12px 32px rgba(16,22,15,.08);
}

* { box-sizing: border-box; }
html { font-size: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 1rem/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.wrap { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 99; background: var(--accent); color: var(--accent-ink); padding: .6rem .9rem; border-radius: 8px; }

/* ---------- nav (blur bar, Apple baseline) ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--line);
  transition: padding .25s ease;
}
.nav.scrolled { box-shadow: 0 6px 24px rgba(0,0,0,.06); }
.nav-in { display: flex; align-items: center; gap: 1.5rem; padding: .85rem 0; }
.brand { font-weight: 650; letter-spacing: .12em; text-transform: uppercase; font-size: .92rem; }
.brand b { color: var(--accent); }
.nav ul { display: flex; gap: 1.35rem; list-style: none; margin: 0; padding: 0; margin-left: auto; }
.nav a { text-decoration: none; font-size: .93rem; color: var(--muted); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"] { font-weight: 600; }
.pal { margin-left: .5rem; display: flex; gap: .35rem; }
.pal button {
  width: 22px; height: 22px; border-radius: 50%; cursor: pointer;
  border: 2px solid var(--line); padding: 0;
}
.pal button[aria-pressed="true"] { border-color: var(--ink); }
.pal .a { background: #8a5a2b; } .pal .b { background: #14141a; } .pal .c { background: #1f4d3a; }

/* ---------- hero ---------- */
.hero { position: relative; padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(2rem, 4vw, 3.5rem); overflow: clip; }
.hero::after {
  content: ""; position: absolute; inset: auto -10% -40% 45%; height: 120%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 16%, transparent), transparent);
  z-index: 0;
}
.hero-in { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.eyebrow { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); font-weight: 650; }
h1 { font-size: var(--step-3); line-height: 1.06; letter-spacing: -.02em; margin: .6rem 0 1rem; font-weight: 680; }
.lede { font-size: var(--step-1); color: var(--muted); max-width: 46ch; margin: 0 0 1.6rem; }
.cta { display: flex; gap: .8rem; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: .5rem; text-decoration: none;
  padding: .82rem 1.3rem; border-radius: 999px; font-weight: 620; font-size: .95rem;
  border: 1px solid transparent; transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 24px color-mix(in srgb, var(--accent) 35%, transparent); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: var(--panel); }
.btn-ghost:hover { border-color: var(--ink); }
.hero-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.1rem; }
.hero-figure { border-radius: var(--radius-sm); background: var(--band); aspect-ratio: 4 / 3; display: grid; place-items: center; color: var(--muted); font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; }
.hero-meta { display: flex; justify-content: space-between; gap: 1rem; padding-top: .9rem; font-size: .86rem; color: var(--muted); }

/* ---------- split: 左标签 + 右正文（把右侧空白派活） ---------- */
/* The markup on all seven policy pages is <div class="wrapblock"><div class="split-side">…</div>
   <div>…body…</div></div> — it never carried the .split parent, so the two columns never formed
   and the sticky label block collided with the body text (visible on /policy/sourcing). Rather
   than reach into seven page bodies and re-wrap them, .wrapblock itself becomes the grid when it
   contains a .split-side. Specificity beats the plain .wrapblock { display: contents } rule. */
.split { display: grid; grid-template-columns: 240px 1fr; gap: clamp(1.2rem, 3vw, 2.6rem); align-items: start; }
.wrapblock:has(> .split-side) {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: clamp(1.2rem, 3vw, 2.6rem);
  align-items: start;
}
/* Inside the split the body column is only ~410px wide, so a hard 3-up grid gave each card
   ~80px of inner width and the text stacked one word per line. Let the cards decide: two
   across at this width, three when the column is wide enough on a large screen. */
.wrapblock:has(> .split-side) .grid-3 {
  /* 190px gave a 2+1 orphan row with ~8 lines per card. 260px keeps one column at the
     split's ~410px body width (readable line length) and still splits 2-3 up on wide screens. */
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.split-side { position: sticky; top: 5.2rem; }
.facts { margin: 1rem 0 0; display: grid; gap: .9rem; }
.facts div { display: grid; gap: .1rem; }
.facts dt { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 0; font-weight: 650; font-variant-numeric: tabular-nums; }
.split .answer { max-width: none; }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .wrapblock:has(> .split-side) { grid-template-columns: 1fr; }
  .split-side { position: static; }
  .facts { grid-template-columns: repeat(3, minmax(0,1fr)); gap: .6rem; }
}

/* ---------- sections ---------- */
section { padding: clamp(2.2rem, 5vw, 4rem) 0; }
.band { background: var(--band); }
h2 { font-size: var(--step-2); letter-spacing: -.015em; margin: 0 0 .5rem; font-weight: 660; }
.sub { color: var(--muted); max-width: 62ch; margin: 0 0 1.8rem; }
.answer {
  background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm); padding: 1.15rem 1.3rem; box-shadow: var(--shadow);
  font-size: 1.02rem; max-width: 78ch;
}
.answer strong { color: var(--ink); }
/* Listing-page GEO layer: the question is a real H2 (it is what people search), so it keeps
   heading weight but sits close to the answer block instead of floating as a section start. */
.geo-q { font-size: var(--step-1); margin: 1.9rem 0 .45rem; }
.geo-a { color: var(--ink-soft, #4a423a); max-width: 78ch; margin: 0 0 1.4rem; line-height: 1.6; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.35rem; box-shadow: var(--shadow); text-decoration: none; display: block;
  transition: transform .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.card h3 { margin: .2rem 0 .35rem; font-size: 1.18rem; letter-spacing: -.01em; }
.card p { margin: 0; color: var(--muted); font-size: .94rem; }
.card .kicker { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); font-weight: 650; }
.card .stat { display: flex; gap: 1.1rem; margin-top: 1rem; padding-top: .85rem; border-top: 1px solid var(--line); font-size: .86rem; color: var(--muted); }
.card .stat b { color: var(--ink); font-weight: 650; }

/* ---------- grade rail (signature element) ---------- */
.grades { display: grid; gap: .9rem; margin-top: .4rem; }
.grade { display: grid; grid-template-columns: 108px 1fr auto; align-items: center; gap: 1rem; }
.grade .name { font-weight: 620; font-size: .95rem; }
.grade .bar { display: block; height: 14px; border-radius: 999px; background: var(--band); overflow: hidden; }
.grade .fill { display: block; height: 100%; border-radius: 999px; background: var(--accent); width: 0; transition: width 1.1s cubic-bezier(.22,.8,.2,1); }
.grade:nth-child(2) .fill { opacity: .78; }
.grade:nth-child(3) .fill { opacity: .56; }
.grade .price { font-variant-numeric: tabular-nums; font-weight: 650; }
.grade .who { grid-column: 2 / -1; font-size: .85rem; color: var(--muted); margin-top: -.45rem; }

/* ---------- trust ---------- */
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1.2rem; }
.step { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem; }
.step::before {
  counter-increment: s; content: "0" counter(s);
  display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: .82rem; margin-bottom: .8rem;
}
.step h3 { margin: 0 0 .3rem; font-size: 1.05rem; }
.step p { margin: 0; color: var(--muted); font-size: .92rem; }

/* ---------- category strip（二级入口，扩品类就加一格） ---------- */
.catbar { display: grid; grid-template-columns: repeat(auto-fit, minmax(158px, 1fr)); gap: .6rem; }
.cat { display: grid; gap: .1rem; text-decoration: none; background: var(--panel);
       border: 1px solid var(--line); border-radius: 14px; padding: .7rem 1rem; min-width: 148px;
       transition: border-color .18s ease, transform .18s ease; }
.cat b { font-size: .95rem; }
.cat span { font-size: .78rem; color: var(--muted); }
.cat:hover { border-color: var(--accent); transform: translateY(-1px); }
.cat.is-soon { opacity: .66; }
.cat.is-soon:hover { border-color: var(--line); transform: none; }

/* ---------- product listing ---------- */
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: .4rem 0 1.4rem; }
.chip {
  border: 1px solid var(--line); background: var(--panel); color: var(--ink);
  padding: .48rem .95rem; border-radius: 999px; font-size: .88rem; cursor: pointer;
  transition: border-color .18s ease, background .18s ease, color .18s ease;
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.filters-sep { flex: 1 1 1px; min-width: 1rem; }
.sort { display: inline-flex; align-items: center; gap: .5rem; font-size: .86rem; color: var(--muted); }
.sort select {
  font: inherit; color: var(--ink); background: var(--panel); border: 1px solid var(--line);
  border-radius: 8px; padding: .42rem .6rem;
}
.plist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 1.1rem; }
.pcard > a { display: flex; flex-direction: column; height: 100%; text-decoration: none; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .2s ease, border-color .2s ease; }
.pcard > a:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.thumb { background: var(--band); display: grid; place-items: center; color: var(--muted); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; text-align: center; padding: .6rem; }
.ratio-square { aspect-ratio: 1 / 1; }
.ratio-portrait { aspect-ratio: 4 / 5; }
.ratio-land { aspect-ratio: 4 / 3; }
.pmeta { padding: .95rem 1rem 1.05rem; display: flex; flex-direction: column; gap: .18rem; flex: 1; }
.pname { font-size: 1rem; margin: .1rem 0 0; letter-spacing: -.01em; }
.pref { margin: 0; font-size: .82rem; color: var(--muted); }
.prow { display: flex; align-items: baseline; justify-content: space-between; gap: .6rem; margin-top: auto; padding-top: .55rem; border-top: 1px solid var(--line); }
.from { font-size: .86rem; color: var(--muted); }
.from b { color: var(--ink); font-size: 1rem; font-variant-numeric: tabular-nums; }
.badge { font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--line)); border-radius: 999px; padding: .18rem .5rem; }
.plist-foot { margin-top: 1.4rem; font-size: .85rem; color: var(--muted); }
.plist-foot a { color: var(--ink); }

/* Pagination */
.pager { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin-top: 1.8rem; }
.pg { display: inline-flex; align-items: center; justify-content: center; min-width: 2.4rem; min-height: 2.4rem; padding: .4rem .8rem; font-size: .88rem; color: var(--ink); background: var(--panel); border: 1px solid var(--line); border-radius: 10px; text-decoration: none; }
.pg:hover { border-color: var(--ink); }
.pg.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 600; }
.pg.off { color: var(--muted); opacity: .55; }

@media (max-width: 1100px) { .plist { grid-template-columns: repeat(3, minmax(0,1fr)); } }
@media (max-width: 820px) { .plist { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 460px) { .plist { grid-template-columns: 1fr; } .filters { gap: .4rem; } .chip { padding: .42rem .8rem; font-size: .84rem; } }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
caption { text-align: left; color: var(--muted); font-size: .86rem; padding-bottom: .5rem; }
th, td { text-align: left; padding: .8rem 1rem; border-bottom: 1px solid var(--line); font-size: .94rem; }
th { font-weight: 620; color: var(--muted); font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; }
tr:last-child td { border-bottom: 0; }
td.num { font-variant-numeric: tabular-nums; }
.tbd { border-bottom: 1px dashed var(--accent); color: var(--muted); }

/* ---------- update line / footer ---------- */
.updated { display: flex; align-items: center; gap: .6rem; font-size: .85rem; color: var(--muted); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
footer { border-top: 1px solid var(--line); padding: 2.6rem 0 3rem; }
.foot { display: grid; grid-template-columns: 1.3fr repeat(4, 1fr); gap: 1.6rem; }
.foot h4 { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 .7rem; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.foot a { text-decoration: none; color: var(--ink); font-size: .92rem; }
.foot a:hover { color: var(--accent); }
.legal { margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .82rem; }

/* ---------- breadcrumbs ---------- */
.crumbs { padding: 1rem 0 0; font-size: .85rem; color: var(--muted); }
.crumbs a { text-decoration: none; }
.crumbs span { margin: 0 .45rem; opacity: .6; }

/* ---------- sample banner ---------- */
.samplebar { position: relative; z-index: 40; background: var(--accent); color: var(--accent-ink); font-size: .82rem; text-align: center; padding: .45rem .8rem; letter-spacing: .02em; }

/* ---------- reveal（渐进增强：无 JS / 观察器失效时内容照常可见，AI 爬虫才能读到） ---------- */
.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .grade .fill { transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero-in { grid-template-columns: 1fr; }
  .grid-2, .grid-3, .steps { grid-template-columns: 1fr; }
  .foot { grid-template-columns: 1fr 1fr; }
  .nav ul { display: none; }
  .pal { margin-left: auto; }
}
@media (max-width: 560px) {
  th, td { padding: .6rem .6rem; font-size: .85rem; }
  table { min-width: 540px; }
  .grade { grid-template-columns: 82px 1fr auto; gap: .7rem; }
  .foot { grid-template-columns: 1fr; }
}

/* ---------- mobile drawer ---------- */
.menubtn { display: none; align-items: center; gap: .45rem; background: none; border: 1px solid var(--line);
           border-radius: 999px; padding: .42rem .8rem; font: inherit; font-size: .85rem; color: var(--ink); cursor: pointer; }
.menubtn span { display: block; width: 14px; height: 2px; background: var(--ink); border-radius: 2px; }
.menubtn span:nth-child(2) { opacity: .6; }
@media (max-width: 900px) {
  .nav-in { position: relative; }
  .menubtn { display: inline-flex; }
  /* 配色切换在手机上由 JS 移到 body 后固定在左下角（放在 header 里会被 backdrop-filter 变成 relative 容器） */
  .pal { position: fixed; left: .8rem; bottom: .8rem; z-index: 40; background: var(--panel);
         border: 1px solid var(--line); border-radius: 999px; padding: .34rem .55rem;
         box-shadow: 0 6px 18px rgba(0,0,0,.16); }
  .menubtn span { display: none; }
  .menubtn::before { content: "\2630"; font-size: 1.05rem; line-height: 1; }
  /* 关闭态用 display:none —— 不用 translateX 藏到视口外（那会把 scrollWidth 撑大） */
  .nav ul { display: none; }
  /* backdrop-filter 会让 fixed 子元素以 .nav 为包含块 → 开抽屉时先关掉它，抽屉才能贴着视口顶部 */
  .nav.open { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .nav.open ul {
    display: flex; position: fixed; top: 0; right: 0; height: 100dvh; width: min(78vw, 320px);
    background: var(--panel); border-left: 1px solid var(--line); flex-direction: column; gap: .1rem;
    padding: 4.6rem 1rem 1.4rem; z-index: 60; animation: drawerIn .26s cubic-bezier(.22,.8,.2,1);
    box-shadow: -24px 0 40px rgba(0,0,0,.22);
  }
  @keyframes drawerIn { from { transform: translateX(12px); opacity: .4; } to { transform: none; opacity: 1; } }
  .nav ul li a { display: block; padding: .72rem .6rem; border-radius: 10px; font-size: 1rem; }
  .nav ul li a[aria-current="page"] { background: var(--band); }
  .nav.open::after { content: ""; position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 50; }
}

/* ===== theme.css ===== */
/* ============================================================
   Theme layer — 把首页那套「编辑式奢华」语言铺到所有内页
   只做「同一套 CSS 能覆盖的部分」：字体层级 / 悬浮导航 / 节奏 /
   双层描边卡 / 图片处理 / 表格 / 页脚。不改结构。
   ============================================================ */

:root {
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  --hair: color-mix(in srgb, var(--ink) 12%, transparent);
  --ease: cubic-bezier(.32, .72, 0, 1);
}

body { font-family: var(--sans); }

/* ---------- 字体层级 ---------- */
h1, h2, .plist-h, .pname, .brand, .hero-figure, blockquote {
  font-family: var(--serif); font-weight: 400; letter-spacing: -.022em;
}
h1 { font-size: clamp(2.3rem, 4.6vw, 3.9rem); line-height: 1.03; letter-spacing: -.032em; }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); line-height: 1.1; letter-spacing: -.028em; }
h3 { font-size: clamp(1.05rem, 1.5vw, 1.22rem); letter-spacing: -.012em; }
p, li, dd, dt, .sub, .pref, td, th { font-family: var(--sans); }

/* eyebrow → 胶囊小标 */
.eyebrow {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .32rem .75rem; border-radius: 999px; border: 1px solid var(--hair);
  background: color-mix(in srgb, var(--panel) 62%, transparent);
  font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 1rem;
}

/* ---------- 悬浮玻璃导航（全站） ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: transparent; border: 0;
  backdrop-filter: none; -webkit-backdrop-filter: none;
}
.nav-in {
  margin: 1.05rem auto 0; width: min(100% - 2rem, var(--max));
  background: color-mix(in srgb, var(--panel) 74%, transparent);
  backdrop-filter: saturate(150%) blur(18px); -webkit-backdrop-filter: saturate(150%) blur(18px);
  border: 1px solid var(--hair); border-radius: 999px;
  padding: .5rem .6rem .5rem 1.15rem;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .45) inset, 0 18px 40px -26px rgba(23, 17, 12, .5);
}
[data-palette="B"] .nav-in { box-shadow: 0 1px 0 rgba(255,255,255,.06) inset, 0 24px 50px -28px #000; }
.nav ul li a { border-radius: 999px; padding: .5rem .78rem; font-size: .9rem; }
.nav ul li a:hover { background: color-mix(in srgb, var(--ink) 7%, transparent); }
.nav ul li a[aria-current="page"] { background: var(--accent); color: var(--accent-ink); }
.brand { font-size: 1.1rem; letter-spacing: -.01em; }

/* 样张提示改成右下角浮标（内部样张阶段用） */
.samplebar {
  position: fixed; left: .8rem; bottom: .8rem; z-index: 41; max-width: 20rem;
  border-radius: 14px; padding: .5rem .75rem; font-size: .72rem; line-height: 1.35; text-align: left;
  box-shadow: 0 10px 26px -14px rgba(23, 17, 12, .5);
}
@media (max-width: 760px) {
  .samplebar { left: .6rem; right: auto; bottom: .6rem; max-width: 13rem; font-size: .6rem; padding: .35rem .55rem; }
}

/* ---------- 节奏 ---------- */
.band { padding: clamp(2.4rem, 4.6vw, 4.2rem) 0; }
.wrap { width: min(100% - 2.5rem, var(--max)); }
.crumbs { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 1.2rem 0 .2rem; }
.crumbs a { text-decoration: none; border-bottom: 1px solid transparent; }
.crumbs a:hover { border-color: var(--hair); }

/* ---------- 双层描边卡 ---------- */
.card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--hair);
  border-radius: 1.3rem;
  padding: clamp(1.05rem, 2vw, 1.5rem);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .65),
    inset 0 0 0 1px color-mix(in srgb, #fff 45%, transparent),
    0 20px 44px -36px rgba(23, 17, 12, .55);
  transition: transform .6s var(--ease), box-shadow .6s var(--ease), border-color .5s var(--ease);
}
[data-palette="B"] .card {
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), inset 0 0 0 1px color-mix(in srgb, #fff 6%, transparent), 0 22px 46px -36px #000;
}
.card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 40%, var(--hair)); }
.card h3 { margin: .45rem 0 .55rem; }
.card p { margin: 0; color: var(--muted); }
.card p + p { margin-top: .6rem; }
.card .kicker { font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }

.pcard {
  position: relative;
  background: color-mix(in srgb, var(--ink) 4%, transparent);
  border: 1px solid var(--hair); border-radius: 1.4rem;
  box-shadow: 0 24px 48px -38px rgba(23, 17, 12, .6);
  transition: transform .6s var(--ease), box-shadow .6s var(--ease), border-color .5s var(--ease);
}

/* ---------- 列表页（shop / 品类页） ---------- */
.plist { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(.8rem, 1.5vw, 1.3rem); list-style: none; padding: 0; margin: 1.6rem 0 0; }
.pcard { padding: .45rem; overflow: hidden; }
.pcard > a { display: block; text-decoration: none; height: 100%; }
.pcard:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 42%, var(--hair)); box-shadow: 0 30px 54px -34px rgba(23, 17, 12, .55); }
.thumb {
  position: relative; display: block; overflow: hidden; border-radius: calc(1.4rem - .45rem);
  background: #fbf8f2; border: 0;
}
.thumb.ratio-square { aspect-ratio: 1 / 1; }
.thumb.ratio-portrait { aspect-ratio: 4 / 5; }
.thumb.ratio-landscape { aspect-ratio: 4 / 3; }
.thumb img { width: 100%; height: 100%; object-fit: contain; padding: 2%; display: block; transition: transform .7s var(--ease); }
.pcard:hover .thumb img { transform: scale(1.03); }
.thumb > span { display: none; }
.thumb > .thumb-note { display: block; }
.pmeta { padding: .85rem .7rem .7rem; }
.pmeta .kicker, .pmeta .pref { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.pname { font-size: 1.12rem; margin: .3rem 0 .25rem; letter-spacing: -.015em; }
.pref { letter-spacing: .04em; text-transform: none; }
.prow { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; margin-top: .8rem; padding-top: .7rem; border-top: 1px solid var(--hair); }
.prow .from b { font-family: var(--serif); font-size: 1.15rem; font-weight: 400; }
.badge { font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--hair); border-radius: 999px; padding: .18rem .5rem; }

/* 详情页主图 */
.hero-card { display: grid; gap: .5rem; }
.hero-figure {
  aspect-ratio: 1 / 1; border-radius: 1.4rem; overflow: hidden; background: #fbf8f2;
  border: 1px solid var(--hair); display: grid; place-items: center;
  font-size: 0; color: transparent;
}
.hero-figure img { width: 100%; height: 100%; object-fit: contain; padding: 2%; }
.hero-meta { display: flex; justify-content: space-between; font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

/* ---------- 答案块（全站统一成双层描边观感） ---------- */
.answer {
  background: var(--panel); border: 1px solid var(--hair); border-left: 3px solid var(--accent);
  border-radius: 1.1rem; padding: clamp(1.1rem, 2.2vw, 1.6rem) clamp(1.1rem, 2.4vw, 1.8rem);
  box-shadow: 0 20px 44px -34px rgba(23, 17, 12, .5);
}
.answer p { margin: 0; }
.answer p + p { margin-top: .7rem; }
.answer strong { font-weight: 650; }

/* 按钮成排（详情页两枚 CTA 并排，不各占一行） */
.btn-row { display: flex; flex-wrap: wrap; gap: .6rem; }

/* ---------- 表格 ---------- */
.table-wrap { border: 1px solid var(--hair); border-radius: 1.1rem; overflow: auto; background: var(--panel); }
table { border-collapse: collapse; width: 100%; font-size: .92rem; }
th, td { text-align: left; padding: .8rem .9rem; border-bottom: 1px solid var(--hair); vertical-align: top; }
th { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; background: color-mix(in srgb, var(--band) 60%, transparent); }
tr:last-child td { border-bottom: 0; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6rem; text-decoration: none;
  padding: .85rem 1.25rem; border-radius: 999px; font-weight: 550; font-size: .95rem;
  background: var(--ink); color: var(--bg); border: 1px solid transparent;
  transition: transform .5s var(--ease), opacity .4s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: scale(.985); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--hair); }
.btn.ghost:hover { background: color-mix(in srgb, var(--ink) 5%, transparent); }

/* ---------- 页脚 ---------- */
footer { border-top: 1px solid var(--hair); margin-top: clamp(2rem, 4vw, 3.5rem); padding: clamp(2rem, 4vw, 3rem) 0; }
.foot { display: grid; grid-template-columns: 1.3fr repeat(4, 1fr); gap: 1.6rem; }
/* NOTE: .foot is defined in both theme.css and site.css. This file loads later, so this
   line is the one that actually wins — the footer gained a fifth column (Houses) and
   only editing site.css left About wrapping onto a second row. */
.foot h4 { font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin: 0 0 .8rem; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; font-size: .92rem; }
.foot a { text-decoration: none; }
.foot a:hover { border-bottom: 1px solid var(--hair); }
.legal { font-size: .78rem; color: var(--muted); margin-top: 2rem; }

/* ---------- 响应式 ---------- */
@media (max-width: 1100px) { .plist { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 860px) {
  .plist { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot { grid-template-columns: 1fr 1fr; }
  .nav-in { margin-top: .7rem; padding-left: .85rem; }
  .brand { font-size: 1rem; }
}
@media (max-width: 560px) {
  .plist { grid-template-columns: 1fr; }
  .foot { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .card, .pcard, .thumb img, .btn { transition: none !important; }
}

/* ---------- 购物车 / 结算 ---------- */
.cartlink {
  display: inline-flex; align-items: center; gap: .4rem; text-decoration: none;
  padding: .45rem .8rem; border-radius: 999px; border: 1px solid var(--hair);
  font-size: .86rem; margin-right: .4rem;
}
.cartlink:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); }
.cartlink [data-cart-count] {
  min-width: 1.35rem; height: 1.35rem; border-radius: 999px; display: inline-grid; place-items: center;
  background: var(--accent); color: var(--accent-ink); font-size: .72rem; font-variant-numeric: tabular-nums;
}
.cartlink [data-cart-count].is-empty { background: color-mix(in srgb, var(--ink) 12%, transparent); color: var(--muted); }

.cart-grid, .co-grid {
  display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(18rem, .85fr);
  gap: clamp(1.2rem, 2.6vw, 2.4rem); align-items: start; margin-top: 1.6rem;
}
.cart-lines { display: grid; gap: .7rem; }
.cart-line {
  display: grid; grid-template-columns: 5.4rem minmax(0, 1fr) auto auto auto;
  gap: .9rem; align-items: center;
  background: var(--panel); border: 1px solid var(--hair); border-radius: 1.1rem; padding: .7rem;
}
.cl-img { width: 5.4rem; aspect-ratio: 1/1; border-radius: .8rem; overflow: hidden; background: #fbf8f2; position: relative; }
.cl-img img { width: 100%; height: 100%; object-fit: contain; }
.cl-main b { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.05rem; }
.cl-sub { font-size: .76rem; letter-spacing: .06em; color: var(--muted); }
.cl-qty { display: inline-flex; align-items: center; border: 1px solid var(--hair); border-radius: 999px; overflow: hidden; }
.cl-qty button { border: 0; background: none; padding: .3rem .6rem; cursor: pointer; color: var(--ink); font-size: 1rem; }
.cl-qty input { width: 2.4rem; border: 0; text-align: center; font: inherit; background: transparent; color: var(--ink); }
.cl-price { font-family: var(--serif); font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.cl-del { border: 0; background: none; color: var(--muted); font-size: .78rem; cursor: pointer; text-decoration: underline; }
.cl-del:hover { color: var(--ink); }
.cart-empty { color: var(--muted); }
.cart-note { font-size: .8rem; color: var(--muted); margin-top: .9rem; }

.cart-sum {
  background: var(--panel); border: 1px solid var(--hair); border-radius: 1.2rem;
  padding: clamp(1.1rem, 2vw, 1.5rem); box-shadow: 0 24px 48px -40px rgba(23,17,12,.6);
  position: sticky; top: 6rem;
}
.sum-row { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; font-size: .94rem; }
.sum-row b { font-variant-numeric: tabular-nums; }
.sum-total { border-top: 1px solid var(--hair); margin-top: .5rem; padding-top: .8rem; font-size: 1.05rem; }
.sum-total b { font-family: var(--serif); font-size: 1.35rem; font-weight: 400; }
.sum-note { font-size: .76rem; color: var(--muted); margin: .9rem 0 0; }
.co-go { width: 100%; justify-content: center; margin-top: 1rem; }
.co-go.is-disabled { opacity: .45; pointer-events: none; }

.co-form fieldset { border: 1px solid var(--hair); border-radius: 1.1rem; padding: 1rem 1.1rem 1.2rem; margin: 0 0 .9rem; background: var(--panel); }
.co-form legend { font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); padding: 0 .4rem; }
.co-form label { display: block; font-size: .82rem; color: var(--muted); margin-bottom: .8rem; }
.co-form input, .co-form select, .co-form textarea {
  display: block; width: 100%; margin-top: .3rem; padding: .65rem .75rem; font: inherit; font-size: .95rem;
  color: var(--ink); background: var(--bg); border: 1px solid var(--hair); border-radius: .7rem;
}
.co-form input:focus, .co-form select:focus, .co-form textarea:focus { outline: 2px solid color-mix(in srgb, var(--accent) 45%, transparent); outline-offset: 1px; }
.co-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.co-radio { display: flex; align-items: center; gap: .6rem; font-size: .92rem; color: var(--ink); margin-bottom: .55rem; }
.co-radio input[type=radio] { display: inline-block; width: 1.05rem; height: 1.05rem; margin: 0; flex: 0 0 auto; }
.co-radio input { width: auto; margin: 0; }
.co-form fieldset:last-of-type textarea { min-height: 4.5rem; }
.co-hint { font-size: .76rem; color: var(--muted); margin: 0; }
.co-submit { width: 100%; justify-content: center; margin-top: .3rem; }
.co-lines { display: grid; gap: .4rem; margin-bottom: .6rem; font-size: .88rem; }
.co-line { display: flex; justify-content: space-between; gap: .8rem; color: var(--muted); }
.co-line b { color: var(--ink); font-variant-numeric: tabular-nums; }
.co-result { margin-top: 1.4rem; background: var(--panel); border: 1px solid var(--hair); border-radius: 1.1rem; padding: 1.1rem; }
.co-result pre { white-space: pre-wrap; font-size: .8rem; background: var(--band); padding: .8rem; border-radius: .6rem; overflow: auto; }

/* 商品页购买框 */
.buy-box { background: var(--panel); border: 1px solid var(--hair); border-radius: 1.2rem; padding: 1rem 1.1rem 1.2rem; margin: 1.2rem 0; }
.buy-box .grades { display: grid; gap: .45rem; margin: .7rem 0 1rem; }
.buy-box .gr {
  display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: .6rem; align-items: center;
  border: 1px solid var(--hair); border-radius: .8rem; padding: .55rem .7rem; cursor: pointer;
}
.buy-box .gr:has(input:checked) { border-color: color-mix(in srgb, var(--accent) 55%, var(--hair)); background: color-mix(in srgb, var(--accent) 6%, transparent); }
.buy-box .gr input { width: auto; margin: 0; }
.buy-box .gr b { font-family: var(--serif); font-weight: 400; font-size: 1rem; }
.buy-box .gr small { color: var(--muted); font-size: .74rem; display: block; }
.buy-row { display: flex; flex-wrap: wrap; gap: .7rem; align-items: center; }
.buy-row .qty { display: inline-flex; align-items: center; border: 1px solid var(--hair); border-radius: 999px; }
.buy-row .qty button { border: 0; background: none; padding: .4rem .7rem; cursor: pointer; color: var(--ink); }
.buy-row .qty input { width: 2.6rem; border: 0; text-align: center; background: transparent; font: inherit; color: var(--ink); }
.buy-row .line-price { margin-left: auto; font-family: var(--serif); font-size: 1.3rem; font-variant-numeric: tabular-nums; }
.buy-box .added { background: var(--accent) !important; }

@media (max-width: 1000px) {
  .cart-grid, .co-grid { grid-template-columns: 1fr; }
  .cart-sum { position: static; }
}
@media (max-width: 560px) {
  .cartlink { padding: .38rem .55rem; font-size: .8rem; margin-right: .2rem; }
  .cartlink .cl-label { display: none; }
}
@media (max-width: 620px) {
  .cart-line { grid-template-columns: 4rem minmax(0,1fr) auto; grid-template-areas: "img main del" "img qty price"; row-gap: .5rem; }
  .cl-img { grid-area: img; width: 4rem; }
  .cl-main { grid-area: main; }
  .cl-del { grid-area: del; }
  .cl-qty { grid-area: qty; }
  .cl-price { grid-area: price; text-align: right; }
  .co-row2 { grid-template-columns: 1fr; }
}

/* 客服 chips：默认横向滚动会切字，改成换行显示 */
#ai-chips { flex-wrap: wrap; overflow-x: visible !important; }
#ai-chips button { white-space: normal; text-align: left; line-height: 1.25; }

/* ---------- 商品详情：左文右图 + 多角度 ---------- */
.pdp-hero {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 470px);
  gap: clamp(1.4rem, 2.6vw, 2.4rem); align-items: start;
  padding-top: clamp(1.6rem, 3vw, 2.6rem);   /* 宽度跟随全站 .wrap（1180），不再单独放宽 */
}
.pdp-hero .pdp-media { order: -1; }     /* 图在左，文字与买框在右 */
.pdp-copy h1 { margin-top: 0; }
.pdp-facts {
  display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: .8rem;
  margin: 1.4rem 0 0; padding-top: 1rem; border-top: 1px solid var(--hair);
}
.pdp-facts dt { font-size: .64rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.pdp-facts dd { margin: .15rem 0 0; font-family: var(--serif); font-size: 1.02rem; white-space: nowrap; }

.pdp-media { display: grid; gap: .6rem; }
.pdp-main {
  aspect-ratio: 1 / 1; border-radius: 1.3rem; overflow: hidden; background: #fbf8f2;
  border: 1px solid var(--hair); box-shadow: 0 30px 60px -46px rgba(23,17,12,.6);
}
.pdp-main img { width: 100%; height: 100%; object-fit: contain; padding: 1%; }
.pdp-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; }
.pdp-thumb {
  padding: 0; border: 1px solid var(--hair); border-radius: .8rem; overflow: hidden;
  background: #fbf8f2; cursor: pointer; aspect-ratio: 1/1;
}
.pdp-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.pdp-thumb.on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.pdp-thumb:hover { border-color: color-mix(in srgb, var(--accent) 50%, var(--hair)); }

.pdp-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: clamp(.6rem,1.2vw,1rem); }
.pdp-cell { margin: 0; border: 1px solid var(--hair); border-radius: 1.1rem; overflow: hidden; background: #fbf8f2; }
.pdp-cell { position: relative; }
.pdp-cell .pdp-ph { position: relative; aspect-ratio: 1/1; }
.pdp-cell img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 3%; }
.pdp-cell figcaption {
  font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
  padding: .55rem .7rem; border-top: 1px solid var(--hair); background: var(--panel);
}
@media (max-width: 900px) {
  .pdp-hero { display: flex; flex-direction: column; grid-template-columns: none; }
  .pdp-hero .pdp-media { order: -1; }   /* 手机上先看图，再看文字与买框 */
  .pdp-facts { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 700px) { .pdp-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }

/* 品牌页：款式横条（带图） */
.style-strip { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: clamp(.7rem,1.4vw,1.1rem); }
.style-card { text-decoration: none; display: block; border: 1px solid var(--hair); border-radius: 1.2rem; overflow: hidden; background: var(--panel); transition: transform .5s var(--ease), border-color .5s var(--ease); }
.style-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 45%, var(--hair)); }
.sc-img { aspect-ratio: 1/1; background: #fbf8f2; position: relative; }
.sc-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 2%; }
.sc-meta { display: flex; justify-content: space-between; align-items: baseline; gap: .6rem; padding: .7rem .9rem; border-top: 1px solid var(--hair); }
.sc-meta b { font-family: var(--serif); font-weight: 400; font-size: 1.02rem; }
.sc-meta span { font-size: .82rem; color: var(--muted); font-variant-numeric: tabular-nums; }
@media (max-width: 700px) { .style-strip { grid-template-columns: 1fr; } }

/* ---------- 安全间距（文字不许贴容器边） ----------
   规则：任何文字与容器边框之间 ≥ 0.85rem；表格说明、图注、卡片注释一律带内边距。 */
.table-wrap { padding-top: .15rem; }
.table-wrap caption {
  padding: .85rem 1rem .7rem; text-align: left; color: var(--muted); font-size: .82rem;
  letter-spacing: .01em; caption-side: top;
}
.pdp-cell figcaption, .sc-meta, .co-hint, .cart-note, .sum-note { padding-inline: 0; }
.card > p:last-child { padding-bottom: 1rem; }

/* 面板小标题：全站统一尺寸（替代行内 font-size） */
.panel-h { font-size: 1.25rem; margin: 0 0 1rem; }

/* ===== app.css ===== */
/* Application-level styles for the PHP skeleton (server-rendered pages). */

.skiplink {
  position: absolute; left: -9999px; top: 0; background: #17110c; color: #fff;
  padding: .6rem 1rem; z-index: 999;
}
.skiplink:focus { left: 1rem; top: 1rem; }

/* nav */
.topbar {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--bg, #f7f3ed) 88%, #fff);
  backdrop-filter: blur(14px) saturate(1.15);
  border-bottom: 1px solid var(--hair, rgba(23, 17, 12, .09));
}
.nav-in {
  display: flex; align-items: center; gap: 1.4rem;
  width: min(100% - 2.5rem, 1180px); margin: 0 auto;
  /* 安全间距规则：圆角容器内的一切都要离边框 >= 1.15rem（LOGO/导航给到 1.6rem） */
  padding: .85rem clamp(1.15rem, 2.2vw, 1.6rem);
}
.nav-in .brand { font-family: var(--serif, Georgia, serif); letter-spacing: .1em; text-transform: uppercase; font-size: .95rem; text-decoration: none; color: inherit; }
.nav-in .brand b { font-weight: 700; }
.mainnav { margin-left: auto; }
.mainnav ul { display: flex; gap: 1.3rem; list-style: none; margin: 0; padding: 0; }
.mainnav a { text-decoration: none; color: var(--ink, #17110c); font-size: .92rem; opacity: .82; }
.mainnav a:hover, .mainnav a[aria-current="page"] { opacity: 1; }
.mainnav a[aria-current="page"] { border-bottom: 2px solid var(--accent, #8a5a2b); padding-bottom: 2px; }
.cartlink {
  display: inline-flex; align-items: center; gap: .45rem; text-decoration: none; color: inherit;
  border: 1px solid var(--hair, rgba(23, 17, 12, .14)); border-radius: 999px; padding: .38rem .8rem; font-size: .85rem;
}
.cartcount { font-variant-numeric: tabular-nums; background: var(--accent, #8a5a2b); color: #fff; border-radius: 999px; padding: 0 .42rem; font-size: .78rem; }
.palette { display: flex; gap: .35rem; }
.pal { width: 1.15rem; height: 1.15rem; border-radius: 50%; border: 1px solid rgba(0,0,0,.18); cursor: pointer; }
.pal[data-pal="A"] { background: #8a5a2b; }
.pal[data-pal="B"] { background: #17110c; }
.pal[data-pal="C"] { background: #24463a; }
.menubtn { display: none; background: none; border: 1px solid var(--hair, rgba(23,17,12,.14)); border-radius: 999px; padding: .34rem .7rem; font: inherit; cursor: pointer; }

/* flashes */
.flash { margin: 1rem 0 0; padding: .6rem .8rem; border-radius: 10px; font-size: .9rem; }
.flash-ok { background: #eef7ee; border: 1px solid #cfe6cf; }
.flash-err { background: #fdeeee; border: 1px solid #f0cccc; }

/* crumbs */
.crumbs { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted, #5c5347); padding: 1.2rem 0 .2rem; }
.crumbs a { color: inherit; text-decoration: none; }
.crumbs span { margin: 0 .5rem; opacity: .45; }

/* generic blocks taken from the static sample */
.wrapblock { display: contents; }
.prose { max-width: 68ch; }
.prose h2 { margin-top: 2rem; }
.prose h3 { margin-top: 1.4rem; }
.prose p { margin: .7rem 0; }
.prose .table-wrap { margin: 1.1rem 0; }
.prose ol, .prose ul { padding-left: 1.2rem; }
.prose li { margin: .35rem 0; }

/* product page extras */
.pdp-ph { aspect-ratio: 1/1; background: #fbf8f2; border-radius: 14px; overflow: hidden; position: relative; }
.pdp-ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 2%; }

/* cart */
.cart-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 360px); gap: 1.6rem; margin-top: 1.6rem; align-items: start; }
.cart-line { display: grid; grid-template-columns: 84px minmax(0, 1fr) auto auto auto; gap: 1rem; align-items: center; padding: .9rem 0; border-bottom: 1px solid var(--hair, rgba(23,17,12,.1)); }
.cl-img { width: 84px; aspect-ratio: 1/1; background: #fbf8f2; border-radius: 10px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.cl-img img { width: 100%; height: 100%; object-fit: contain; padding: 4%; }
.cl-name { font-weight: 600; text-decoration: none; color: inherit; }
.cl-sub { margin: .2rem 0 0; font-size: .85rem; color: var(--muted, #5c5347); }
.cl-qty { display: inline-flex; align-items: center; gap: .3rem; }
.cl-qty button { width: 1.9rem; height: 1.9rem; border: 1px solid var(--hair, rgba(23,17,12,.16)); background: #fff; border-radius: 8px; cursor: pointer; font: inherit; }
.qv { min-width: 1.4rem; text-align: center; font-variant-numeric: tabular-nums; }
.cl-price { font-variant-numeric: tabular-nums; font-weight: 600; }
.cl-rm button { background: none; border: 0; color: var(--muted, #5c5347); font: inherit; cursor: pointer; text-decoration: underline; }
.cart-sum { background: #fff; border: 1px solid var(--hair, rgba(23,17,12,.12)); border-radius: 14px; padding: 1.1rem 1.2rem; }
.cart-sum h2 { font-size: 1.15rem; margin: 0 0 .8rem; }
.cart-sum dl { margin: 0 0 .8rem; }
.cart-sum dl > div { display: flex; justify-content: space-between; gap: 1rem; font-size: .92rem; padding: .3rem 0; }
.cart-sum dd { margin: 0; font-variant-numeric: tabular-nums; }
.sum-total { border-top: 1px solid var(--hair, rgba(23,17,12,.12)); margin-top: .4rem; padding-top: .6rem !important; font-weight: 700; }
.sum-note { font-size: .8rem; color: var(--muted, #5c5347); margin: .5rem 0 0; }
.co-line { display: flex; justify-content: space-between; gap: 1rem; font-size: .88rem; padding: .25rem 0; border-bottom: 1px dashed var(--hair, rgba(23,17,12,.12)); }

/* checkout */
.co-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 360px); gap: 1.8rem; margin-top: 1.6rem; align-items: start; }
.co-form fieldset { border: 1px solid var(--hair, rgba(23,17,12,.14)); border-radius: 12px; padding: 1rem 1.1rem 1.2rem; margin: 0 0 1.1rem; }
.co-form legend { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted, #5c5347); padding: 0 .4rem; }
.co-form label { display: block; font-size: .85rem; margin: .7rem 0 0; color: var(--muted, #5c5347); }
.co-form input, .co-form textarea {
  display: block; width: 100%; margin-top: .3rem; padding: .55rem .65rem; font: inherit;
  border: 1px solid var(--hair, rgba(23,17,12,.18)); border-radius: 9px; background: #fff; color: var(--ink, #17110c);
}
.co-form input[type="radio"] { display: inline-block; width: auto; margin: 0 .45rem 0 0; }
.co-radio { display: flex; align-items: center; gap: .3rem; font-size: .92rem; color: var(--ink, #17110c); margin: .5rem 0; }
.err { display: block; color: #a33; font-size: .82rem; margin-top: .3rem; }

/* confirm */
.mini { width: 100%; border-collapse: collapse; }
.mini td { padding: .45rem 0; border-bottom: 1px solid var(--hair, rgba(23,17,12,.1)); font-size: .92rem; }
.mini td.num { text-align: right; font-variant-numeric: tabular-nums; }
.steps { margin: .6rem 0 0; padding-left: 1.1rem; font-size: .92rem; }
.steps li { margin: .4rem 0; }

@media (max-width: 900px) {
  .mainnav { display: none; }
  .menubtn { display: inline-block; margin-left: auto; }
  .palette { display: none; }
  .cart-grid, .co-grid { grid-template-columns: 1fr; }
  .cart-line { grid-template-columns: 64px minmax(0, 1fr) auto; grid-auto-rows: auto; row-gap: .5rem; }
  .cl-img { width: 64px; }
  .cl-price { grid-column: 2; }
  .cl-rm { grid-column: 3; }
}

/* steps list: the base sheet lays .steps out as a 3-up grid (home page);
   inside a card it must read as a single ordered column. */
.card .steps { display: block; grid-template-columns: none; padding-left: 1.15rem; }
.card .steps li { margin: .45rem 0; }
.card .steps li::before { content: none; }

/* flash should not push the page apart */
.flash { margin: .8rem 0 0; }

/* internal build: reference images must be visible as such */
.refbar { background: #3a2a16; color: #fff; font-size: .82rem; text-align: center;
  padding: .9rem clamp(1.1rem, 2.2vw, 1.5rem); letter-spacing: .02em; line-height: 1.45; }
.refbar b { color: #ffd9a8; }
.ref-flag { position: absolute; top: .4rem; left: .4rem; z-index: 3; font-size: .62rem; letter-spacing: .1em;
  text-transform: uppercase; background: rgba(58,42,22,.88); color: #ffd9a8; padding: .16rem .42rem; border-radius: 4px; }
.thumb { position: relative; }
.thumb > .ref-flag { display: block; }   /* theme.css hides .thumb > span */

/* spacing: answer block ↔ chip row (2026-10-30 — 上下也要留安全间距) */
.answer { height: auto; margin: 0 0 1.5rem; }
.answer p { margin: 0; }
.catbar { display: flex; flex-wrap: wrap; gap: .55rem; margin: .2rem 0 1.9rem; }
.catbar .chip { white-space: nowrap; }
@media (max-width: 560px) {
  .answer { margin-bottom: 1.15rem; }
  .catbar { margin-bottom: 1.4rem; }
}

/* ---------- gender first (home) ---------- */
.gcards { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(.9rem, 2vw, 1.5rem); margin-top: 1.4rem; }
.gcard { position: relative; display: block; text-decoration: none; border: 1px solid var(--hair);
  border-radius: 1.4rem; overflow: hidden; background: var(--panel); box-shadow: 0 24px 50px -40px rgba(23,17,12,.5); }
.gcard .shot { display: block; position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #fff; }
.gcard .shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: clamp(.6rem, 2vw, 1.2rem); transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.gcard:hover .shot img { transform: scale(1.035); }
.gcard .body { padding: 1.05rem 1.15rem 1.2rem; display: flex; align-items: end; justify-content: space-between; gap: 1rem; }
.gcard h3 { margin: 0; font-family: var(--serif); font-size: clamp(1.5rem, 2.4vw, 2.1rem); letter-spacing: -.02em; }
.gcard .n { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.gcard .go { font-size: .9rem; color: var(--accent); white-space: nowrap; }
@media (max-width: 700px) { .gcards { grid-template-columns: 1fr; } .gcard .shot { aspect-ratio: 5 / 4; } }

/* ---------- nav: categories fold into one menu ---------- */
header nav ul li.has-sub { position: relative; }
header nav ul li.has-sub > a { display: inline-flex; align-items: center; gap: .3rem; }
header nav ul li.has-sub .caret { font-size: .7em; opacity: .6; transition: transform .2s ease; }
header nav ul li.has-sub:hover .caret,
header nav ul li.has-sub:focus-within .caret { transform: translateY(1px); }
.submenu {
  display: block; flex-direction: column; flex-wrap: nowrap;
  position: absolute; top: calc(100% + .55rem); left: -.9rem; z-index: 60;
  min-width: 15rem; margin: 0; padding: .45rem; list-style: none;
  background: var(--panel); border: 1px solid var(--hair); border-radius: .9rem;
  box-shadow: 0 26px 50px -34px rgba(23,17,12,.55);
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
}
header nav ul li.has-sub:hover > .submenu,
header nav ul li.has-sub:focus-within > .submenu { opacity: 1; visibility: visible; transform: none; }
.submenu li { display: block; margin: 0; width: 100%; }
.submenu a { display: flex; align-items: center; justify-content: space-between; gap: 1.2rem;
  padding: .42rem .65rem; border-radius: .55rem; text-decoration: none; font-size: .92rem; }
.submenu a:hover, .submenu a:focus-visible { background: color-mix(in srgb, var(--ink) 7%, transparent); }
.submenu em { margin-left: auto; font-style: normal; font-size: .76rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.submenu a > span { flex: 1 1 auto; }
/* the drawer keeps a flat list; the submenu inside it must not float */
.drawer .submenu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none;
  border: 0; padding: 0; min-width: 0; background: transparent; }
.drawer .submenu em { display: none; }
@media (max-width: 900px) { header nav ul li.has-sub { display: none; } }

/* ---------- mobile drawer: explicit, because site.css styles `.nav ul` while the submenu is also a ul ---------- */
@media (max-width: 900px) {
  .mainnav { display: block; }        /* site.css hides .mainnav on mobile; the drawer lives inside it */
  .mainnav ul#navlist { display: none; }
  .mainnav.open ul#navlist {
    display: flex; position: fixed; top: 0; right: 0; bottom: 0; left: auto;
    width: min(82vw, 330px); height: 100dvh; margin: 0; padding: 4.6rem 1rem 1.6rem;
    flex-direction: column; gap: .1rem; list-style: none;
    background: var(--panel); border-left: 1px solid var(--line);
    box-shadow: -24px 0 40px rgba(0,0,0,.22); z-index: 60; overflow-y: auto;
  }
  .mainnav.open ul#navlist > li { display: block; width: 100%; }
  .mainnav.open ul#navlist > li > a { display: block; padding: .7rem .6rem; border-radius: 10px; font-size: 1rem; }
  .mainnav.open ul#navlist .has-sub > a { display: flex; justify-content: space-between; }
  .mainnav.open ul#navlist .submenu {
    display: block; position: static; inset: auto; opacity: 1; visibility: visible; transform: none;
    min-width: 0; margin: 0; padding: 0 0 .3rem .55rem; border: 0; background: transparent; box-shadow: none;
  }
  .mainnav.open ul#navlist .submenu a { padding: .45rem .55rem; font-size: .95rem; }
  .mainnav.open::after { content: ""; position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 50; }
  .mainnav ul#navlist > li.has-sub { display: block; }
}

/* 窄屏：安全间距不能把头部挤出视口 —— 间距降一档、元素间 gap 收紧 */
@media (max-width: 520px) {
  .nav-in { padding: .7rem 1.05rem; gap: .7rem; }
  .nav-in .brand { font-size: .9rem; letter-spacing: .08em; }
  .cartlink { padding: .34rem .5rem; }
  .palette { gap: .3rem; }
  .palette .pal { width: .95rem; height: .95rem; }
}

/* 页脚小字块：有底色就必须留内距（安全间距规则 R1） */
.legal { display: block; margin: 0; padding: 1.15rem 1.15rem; background: color-mix(in srgb, var(--ink) 4%, transparent);
  border-radius: .8rem; font-size: .84rem; line-height: 1.6; }

/* ---------- product video (fine jewellery) ---------- */
.pdp-ph.pdp-video { padding: 0; background: #0d0d0f; }
.pdp-ph.pdp-video video { display: block; width: 100%; height: auto; border-radius: inherit; }
.thumb.has-video { position: relative; }
.thumb.has-video::after {
  content: ""; position: absolute; inset: 0; margin: auto; width: 3rem; height: 3rem;
  border-radius: 999px; background: rgba(0,0,0,.55);
  clip-path: none; pointer-events: none;
}
.thumb.has-video::before {
  content: "\25B6"; position: absolute; inset: 0; display: grid; place-items: center;
  color: #fff; font-size: 1rem; z-index: 2; pointer-events: none;
}
.buy-box.por .por-head { padding: 1.15rem 0 1rem; }
.buy-box.por .por-label { display: inline-block; font-family: var(--serif, Georgia, serif); font-size: 1.35rem; }
.buy-box.por .por-note { margin: .55rem 0 0; color: var(--muted); font-size: .92rem; line-height: 1.6; }
.buy-box.por .por-btn { display: inline-flex; margin-top: 1rem; }
.buy-box.por .por-foot { margin: .85rem 0 0; font-size: .84rem; color: var(--muted); }

/* 内容保护：禁选 / 禁拖图（配合 JS 的禁右键） */
body { -webkit-tap-highlight-color: transparent; }
.no-select, .pdp-ph, .thumb { -webkit-user-select: none; user-select: none; }
img, video { -webkit-user-drag: none; user-drag: none; }
