:root {
  --bg: #f7f4ee; --card: #fffdf9; --ink: #181818; --muted: #7a7064; --line: #e5ddd0;
  --gold: #96743c; --gold-soft: #f1e7d6; --err: #a23b2a; --ok: #2f6b3f;
  --serif: "Cormorant Garamond", "Noto Serif SC", "Songti SC", "SimSun", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --r: 10px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.55 var(--sans); }
a { color: inherit; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); } .small { font-size: 13px; } .center { text-align: center; }

/* 顶栏 */
.top { position: sticky; top: 0; z-index: 20; background: rgba(247, 244, 238, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top-in { max-width: 1180px; margin: 0 auto; padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.logo { font-family: var(--serif); font-size: 22px; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; white-space: nowrap; }
.top-nav { display: flex; align-items: center; gap: 14px; font-size: 14px; }
.top-nav > a { text-decoration: none; }
.section-nav { display: flex; gap: 24px; flex-wrap: wrap; }
.section-nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; border-bottom: 2px solid transparent; }
.section-nav a[aria-current="page"] { color: var(--gold); border-bottom-color: var(--gold); }
.section-nav a:hover { color: var(--gold); }
.listing-title { font: 500 26px/1.3 var(--serif); margin: 22px 0 8px; }
.nav-cart { position: relative; display: inline-flex; }
.cart-count { position: absolute; top: -6px; right: -9px; background: var(--gold); color: #fff; font-size: 11px; min-width: 17px; height: 17px; border-radius: 9px; text-align: center; line-height: 17px; padding: 0 4px; }
.langs { position: relative; }
.langs summary { list-style: none; cursor: pointer; padding: 4px 8px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; }
.langs summary::-webkit-details-marker { display: none; }
.lang-menu { position: absolute; right: 0; top: 34px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 6px; display: grid; min-width: 110px; box-shadow: 0 8px 24px rgba(0,0,0,.08); }
.lang-menu a { padding: 8px 10px; text-decoration: none; border-radius: 6px; }
.lang-menu a.on, .lang-menu a:hover { background: var(--gold-soft); }

/* 搜索与品牌 */
.home-banner { margin: 20px 0 18px; overflow: hidden; border-radius: var(--r); background: #111; }
.home-banner img { display: block; width: 100%; height: auto; }
.search { display: flex; gap: 8px; margin: 18px 0 12px; }
.search input { flex: 1; min-width: 0; padding: 11px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); }
.search button { padding: 0 18px; border: 0; border-radius: 999px; background: var(--ink); color: #fff; cursor: pointer; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-size: 13px; background: var(--card); white-space: nowrap; }
.chip small { color: var(--muted); margin-left: 2px; }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip.on small { color: #cfc6b8; }
.count { margin: 10px 0 14px; }
.sort-bar { display: flex; flex-wrap: wrap; gap: 24px; margin: 2px 0 14px; border-bottom: 1px solid var(--line); }
.sort-bar a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; text-decoration: none; border-bottom: 2px solid transparent; }
.sort-bar a.on { color: var(--gold); border-bottom-color: var(--gold); }
.wanted-placeholder { display: grid; place-items: center; height: 100%; color: var(--gold); font: 48px var(--serif); }
.wanted-description { white-space: pre-wrap; overflow-wrap: anywhere; }
.wanted-gallery { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(240px,100%),1fr)); gap: 16px; margin: 20px 0; }
.wanted-gallery img { width: 100%; height: auto; border-radius: var(--r); }

/* 商品网格 */
.grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 760px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; } }
@media (min-width: 1080px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; transition: transform .15s, box-shadow .15s; }
.card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(60, 40, 10, .08); }
.card a { text-decoration: none; display: block; }
.card-img { position: relative; aspect-ratio: 1; background: #ece6dc; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.badge-video { position: absolute; left: 8px; bottom: 8px; background: rgba(0,0,0,.55); color: #fff; font-size: 11px; padding: 2px 7px; border-radius: 999px; }
.card-body { padding: 10px 12px 12px; }
.card-title { font-size: 14px; font-weight: 500; margin: 0 0 6px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.8em; }
.price { font-weight: 600; font-variant-numeric: tabular-nums; }
.price-label { font-size: 12px; font-weight: 400; color: var(--muted); margin-right: 6px; }
.price.member { color: var(--gold); font-size: 14px; }
.price.member.locked { letter-spacing: .1em; }
.pager { display: flex; justify-content: space-between; align-items: center; margin: 24px 0; }
.pager a { padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; background: var(--card); }
.catalog-pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 20px; margin: 28px 0; font-size: 14px; }
.pager-total { white-space: nowrap; }
.catalog-pages, .pager-numbers { display: flex; align-items: center; gap: 4px; }
.page-control, .page-gap { display: inline-flex; justify-content: center; align-items: center; min-width: 36px; height: 44px; font-variant-numeric: tabular-nums; }
.page-control { border: 1px solid transparent; border-radius: 6px; text-decoration: none; }
a.page-control:hover { border-color: var(--line); background: var(--card); }
.page-control.current { color: var(--gold); background: var(--gold-soft); font-weight: 600; }
.page-control.disabled { opacity: .35; }
.page-gap { min-width: 20px; }
.pager-size, .pager-jump { display: flex; align-items: center; gap: 8px; margin: 0; }
.pager-size select, .pager-jump input, .pager-jump button { min-height: 44px; border: 1px solid var(--line); border-radius: 6px; background: var(--card); padding: 6px 10px; }
.pager-size select, .pager-jump button { cursor: pointer; }
.pager-jump input { width: 72px; text-align: center; }
.pager-jump button { color: var(--gold); }
.pager-numbers-mobile { display: none; }
.catalog-pager a:focus-visible, .catalog-pager input:focus-visible, .catalog-pager select:focus-visible, .catalog-pager button:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
@media (max-width: 600px) {
  .catalog-pager { gap: 12px; }
  .pager-total { width: 100%; text-align: center; }
  .catalog-pages { width: 100%; justify-content: center; }
  .pager-numbers-desktop { display: none; }
  .pager-numbers-mobile { display: flex; }
  .pager-size, .pager-jump { justify-content: center; }
  .pager-jump { flex-wrap: wrap; }
}
.empty { text-align: center; color: var(--muted); padding: 60px 0; }

/* 详情 */
.back { display: inline-block; margin: 14px 0; text-decoration: none; color: var(--muted); font-size: 14px; }
.detail { display: grid; gap: 22px; }
@media (min-width: 900px) { .detail { grid-template-columns: 1.1fr 1fr; align-items: start; } .gallery-wrap { position: sticky; top: 74px; } }
.gallery-wrap { position: relative; }
.gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: var(--r); background: #ece6dc; scrollbar-width: none; }
.gallery::-webkit-scrollbar { display: none; }
.gallery img { flex: none; width: 100%; aspect-ratio: 1; object-fit: cover; scroll-snap-align: center; }
.dots { display: flex; justify-content: center; gap: 6px; margin-top: 10px; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: #cfc6b8; }
.dots i.on { background: var(--ink); }
.video-mini { position: absolute; left: 10px; bottom: 34px; width: 112px; border: 0; padding: 0; border-radius: 8px; overflow: hidden; background: #000; cursor: pointer; box-shadow: 0 6px 18px rgba(0,0,0,.25); }
.video-mini img { width: 100%; aspect-ratio: 3/4; object-fit: cover; opacity: .85; }
.video-mini span { position: absolute; left: 0; right: 0; bottom: 0; background: rgba(150, 116, 60, .92); color: #fff; font-size: 12px; padding: 4px 0; text-align: center; }
.info h1 { font-family: var(--serif); font-weight: 600; font-size: 24px; line-height: 1.3; margin: 4px 0 14px; }
.brand { color: var(--gold); letter-spacing: .12em; text-transform: uppercase; font-size: 13px; }
.prices { padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; gap: 6px; }
.price.big { font-size: 26px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 8px; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 10px 16px; border: 1px solid var(--ink); border-radius: 999px; background: transparent; cursor: pointer; text-decoration: none; font-size: 14px; min-height: 42px; }
.btn.primary { background: var(--ink); color: #fff; }
.btn.ghost { border-color: var(--line); color: var(--muted); }
.btn.block { width: 100%; }
.btn:disabled { opacity: .5; cursor: default; }
.desc { white-space: pre-wrap; line-height: 1.75; margin: 16px 0; font-family: var(--sans); }
.notice { background: var(--gold-soft); border-radius: var(--r); padding: 10px 14px; font-size: 14px; }

/* 弹层 */
.sheet { position: fixed; inset: 0; z-index: 50; background: rgba(20, 16, 10, .55); display: flex; align-items: center; justify-content: center; padding: 16px; }
.sheet-card { position: relative; background: var(--card); border-radius: 14px; padding: 22px 18px 18px; width: min(420px, 100%); max-height: 90vh; overflow: auto; }
.sheet-card h3 { margin: 0 0 12px; font-family: var(--serif); font-size: 20px; }
.sheet-x { position: absolute; top: 6px; right: 10px; border: 0; background: none; font-size: 26px; cursor: pointer; color: var(--muted); }
.video-card { width: min(720px, 100%); padding: 36px 10px 10px; background: #000; }
.video-card video { width: 100%; max-height: 78vh; }
.poster-img { width: 100%; border-radius: 8px; min-height: 200px; background: #ece6dc; }
.row-link { display: flex; justify-content: space-between; width: 100%; padding: 13px 4px; border: 0; border-bottom: 1px solid var(--line); background: none; text-decoration: none; cursor: pointer; text-align: left; }
.row-link span { color: var(--muted); }
.wx-qr { width: 200px; margin: 14px auto 4px; border-radius: 8px; }
.contact-qr summary { cursor: pointer; padding: 10px 0; min-height: 44px; }
.fab { position: fixed; right: 16px; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 30; width: 52px; height: 52px; border-radius: 50%; border: 0; background: var(--ink); color: #fff; display: grid; place-items: center; box-shadow: 0 8px 20px rgba(0,0,0,.25); cursor: pointer; }
.toast { position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%); background: rgba(24,24,24,.92); color: #fff; padding: 9px 16px; border-radius: 999px; font-size: 14px; z-index: 60; }

/* 表单 */
.panel { max-width: 440px; margin: 28px auto; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 24px 20px; }
.panel.wide { max-width: 720px; }
.page-h { font-family: var(--serif); font-size: 26px; margin: 0 0 8px; }
.sub-h { font-size: 16px; margin: 26px 0 10px; }
.form { display: grid; gap: 12px; margin: 16px 0; }
.field input, .field select, .field textarea { width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.field.phone { display: flex; gap: 8px; }
.field.phone select { width: 140px; flex: none; }
.code-row { display: flex; gap: 8px; }
.code-row .btn { flex: none; white-space: nowrap; }
.seg { display: flex; gap: 18px; font-size: 14px; }
.upper { text-transform: uppercase; }
.error { color: var(--err); background: #fbeeea; padding: 8px 12px; border-radius: 8px; font-size: 14px; }
.ok { color: var(--ok); background: #edf6ef; padding: 8px 12px; border-radius: 8px; font-size: 14px; }
.form-msg { min-height: 1em; margin: 0; }
.invite-box { margin: 16px 0; padding: 16px; background: var(--gold-soft); border-radius: var(--r); }
.invite-code { font-family: var(--serif); font-size: 32px; letter-spacing: .2em; margin: 4px 0; }
.logout { margin-top: 28px; }

/* 询价车 */
.cart-list { list-style: none; padding: 0; margin: 16px 0; display: grid; gap: 10px; }
.cart-list li { display: grid; grid-template-columns: 72px 1fr auto; gap: 12px; align-items: center; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.cart-list img { width: 72px; height: 72px; object-fit: cover; border-radius: 6px; }
.cart-list .t { font-size: 14px; }
.cart-list button { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 13px; }

/* 下载页 */
.save-list { display: grid; gap: 10px; margin: 16px 0; }
.save-list img { width: 100%; border-radius: 8px; }
.save-video { width: 100%; border-radius: 8px; margin-bottom: 30px; background: #000; }

@media (max-width: 520px) {
  .logo { font-size: 17px; letter-spacing: .08em; }
  .top-nav { gap: 10px; font-size: 13px; }
  .top-in { padding: 10px 14px; }
  .top-in { flex-wrap: wrap; }
  .top-nav { margin-left: auto; }
  .section-nav { gap: 18px; font-size: 14px; }
  .video-mini { width: 78px; bottom: 30px; left: 8px; }
  .video-mini span { font-size: 11px; }
  .info h1 { font-size: 21px; }
}

.foot { border-top: 1px solid var(--line); margin-top: 48px; padding: 28px 0 90px; }
.foot-brand { font-family: var(--serif); letter-spacing: .14em; text-transform: uppercase; margin-bottom: 6px; }
.about { max-width: 720px; margin: 24px auto; line-height: 1.9; }
.about h1 { font-family: var(--serif); font-weight: 500; letter-spacing: .06em; }
.about p { white-space: pre-line; }
