:root {
  --bg: #fbf3e4;
  --paper: #fffdf6;
  --ink: #201810;
  --ink2: #4f4230;
  --sub: #907f65;
  --line: #ecdfca;
  --line2: #f5ebd9;
  --gold: #b06a1f;
  --gold-d: #95500f;
  --gold-soft: #fae6c8;
  --shadow: 0 10px 30px rgba(40, 30, 15, 0.08);
  --shadow-l: 0 20px 60px rgba(40, 30, 15, 0.14);
  --r: 14px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font-family: inherit; font-size: 14px; color: var(--ink); outline: none; }

/* ------------------------------------------------ 顶部导航 */
.hdr {
  position: sticky; top: 0; z-index: 60;
  display: flex; align-items: center; gap: 28px;
  height: 68px; padding: 0 max(clamp(16px, 4vw, 56px), calc((100% - 1560px) / 2 + 56px));
  background: rgba(250, 248, 245, 0.86);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.logo {
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(145deg, #2c2418, #4d3c22);
  color: #f2dfb9; display: grid; place-items: center;
  font-size: 17px; font-weight: 600; letter-spacing: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18);
}
.brand-txt { display: flex; flex-direction: column; line-height: 1.1; }
.brand-txt b { font-size: 16px; letter-spacing: .08em; }
.brand-txt i { font-style: normal; font-size: 10px; color: var(--sub); letter-spacing: .12em; margin-top: 3px; }

.search { flex: 1; max-width: 520px; display: flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 6px 0 14px; background: #fffdf6; border: 1px solid var(--line);
  border-radius: 999px; transition: border-color .2s, box-shadow .2s; }
.search:focus-within { border-color: #d7c39f; box-shadow: 0 0 0 3px rgba(166, 123, 60, .1); }
.search input { flex: 1; border: none; background: none; font-size: 14px; }
.search input::placeholder { color: #b3a58c; }
.search button { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 14px;
  border-radius: 999px; background: var(--ink); color: #fff; font-size: 13px; letter-spacing: .06em; }
.search button:hover { background: #000; }

.hdr-right { display: flex; align-items: center; gap: 8px; flex: none; }
.ghost { display: inline-flex; align-items: center; justify-content: center; height: 36px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 999px; text-decoration: none; white-space: nowrap;
  font-size: 13px; color: var(--ink2); background: #fffdf6; transition: .18s; }
.ghost:hover { border-color: #d6c3a5; color: var(--ink); }
.ghost.admin-ico { width: 36px; padding: 0; }
.ghost.admin-ico img { width: 22px; height: 22px; object-fit: contain; }
.cart-btn { height: 36px; padding: 0 15px; border-radius: 999px; background: var(--ink); color: #fff;
  font-size: 13px; display: flex; align-items: center; gap: 8px; letter-spacing: .04em; }
.cart-btn:hover { background: #000; }
.cart-btn .badge { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--gold); color: #fff; font-size: 11px; display: grid; place-items: center; }

/* ------------------------------------------------ 首屏 */
.hero { position: relative; height: clamp(420px, 62vh, 640px); overflow: hidden; background: #1a1611; }
.hero img { width: 100%; height: 100%; object-fit: cover; object-position: center 62%; opacity: .95; }
.hero-mask { position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(16, 12, 8, .82) 0%, rgba(16, 12, 8, .55) 42%, rgba(16, 12, 8, .12) 75%),
              linear-gradient(0deg, rgba(10, 8, 5, .55), transparent 45%); }
.hero-in { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center;
  padding: 0 clamp(20px, 5vw, 72px); max-width: 1560px; margin: 0 auto; color: #fff; }
.eyebrow { font-size: 12px; letter-spacing: .22em; color: #e0b070; margin-bottom: 18px; }
.hero h1 { font-size: clamp(34px, 5.2vw, 66px); line-height: 1.14; letter-spacing: .04em; font-weight: 700;
  text-shadow: 0 2px 24px rgba(0, 0, 0, .35); }
.hero .sub { margin-top: 18px; font-size: clamp(13px, 1.3vw, 15px); line-height: 1.9; color: rgba(255, 255, 255, .78);
  max-width: 460px; letter-spacing: .04em; }
.hero-acts { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }
.primary { display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 26px;
  border-radius: 999px; background: linear-gradient(145deg, #b8873e, #9a6d2c); color: #fff;
  font-size: 14px; letter-spacing: .08em; box-shadow: 0 12px 30px rgba(150, 105, 40, .35); transition: .2s; }
.primary:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(150, 105, 40, .45); }
.line-btn { display: inline-flex; align-items: center; height: 46px; padding: 0 24px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .35); color: #fff; font-size: 14px; letter-spacing: .06em;
  background: rgba(255, 255, 255, .06); backdrop-filter: blur(6px); transition: .2s; }
.line-btn:hover { background: rgba(255, 255, 255, .16); }
.hero-nums { display: flex; gap: clamp(20px, 4vw, 48px); margin-top: 44px; list-style: none; }
.hero-nums li { line-height: 1.3; }
.hero-nums b { display: block; font-size: clamp(20px, 2.4vw, 30px); font-weight: 600; letter-spacing: .02em; }
.hero-nums span { font-size: 11px; letter-spacing: .14em; color: rgba(255, 255, 255, .55); }

/* ------------------------------------------------ 品牌馆（首屏下条带） */
.brandbar { background: #fffdf6; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.bb-in { max-width: 1560px; margin: 0 auto; padding: 26px clamp(16px, 4vw, 56px) 22px; }
.bb-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.bb-head h2 { font-size: 17px; letter-spacing: .18em; }
.bb-head span { font-size: 11px; letter-spacing: .16em; color: var(--sub); }
.bb-list { display: flex; gap: 14px; overflow: hidden; }
.bb-item { position: relative; flex: 1 1 0; min-width: 0; height: 104px; border-radius: 14px; overflow: hidden;
  background: #201810; cursor: pointer; transition: .2s; }
.bb-item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .82; transition: .35s; }
.bb-item::after { content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(18, 15, 10, .82), rgba(18, 15, 10, .35)); }
.bb-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-l); }
.bb-item:hover img { transform: scale(1.06); opacity: .95; }
.bb-txt { position: relative; z-index: 2; height: 100%; padding: 0 16px; display: flex; flex-direction: column;
  justify-content: center; gap: 5px; }
.bb-txt b { color: #fff; font-size: 15px; font-weight: 600; letter-spacing: .06em; }
.bb-txt i { font-style: normal; font-size: 10px; letter-spacing: .18em; color: rgba(255, 255, 255, .55); }
.bb-txt span { font-size: 11px; color: rgba(255, 255, 255, .78); }
.bb-more { flex: 0 0 132px; height: 104px; border-radius: 14px; border: 1px dashed #d8cdb8; background: #fbf9f5;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  color: var(--ink2); font-size: 13px; letter-spacing: .08em; cursor: pointer; transition: .2s; }
.bb-more:hover { border-color: var(--gold); color: var(--gold); background: #fffdf6; }
.bb-more em { font-style: normal; font-size: 18px; color: var(--gold); line-height: 1; }
.bb-more small { font-size: 10px; color: var(--sub); letter-spacing: 0; }
.bb-list.expanded { display: grid; grid-template-columns: repeat(auto-fill, minmax(212px, 1fr)); gap: 14px; overflow: visible; }
.bb-list.expanded .bb-item { height: 96px; }
.bb-list.expanded .bb-more { width: auto; height: 96px; }

/* ------------------------------------------------ 品类快捷条（图片版） */
.catnav { background: #fffdf6; border-bottom: 1px solid var(--line); }
.catnav-in { display: grid; grid-template-columns: repeat(auto-fit, minmax(112px, 1fr)); gap: 10px;
  max-width: 1560px; margin: 0 auto; padding: 16px clamp(16px, 4vw, 56px); }
.cat-tile { position: relative; height: 34px; border-radius: 10px; overflow: hidden; padding: 0;
  background: #201810; text-align: left; transition: .2s; }
.cat-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: .92; transition: transform .35s; }
.cat-tile .ct-mask { position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(20, 16, 10, .72) 0%, rgba(20, 16, 10, .18) 62%, rgba(20, 16, 10, .58) 100%); }
.cat-tile .ct-txt { position: absolute; left: 12px; right: 10px; top: 0; bottom: 0; z-index: 2;
  display: flex; align-items: center; gap: 6px; color: #fff; }
.cat-tile b { font-size: 12px; font-weight: 600; letter-spacing: .04em; white-space: nowrap; }
.cat-tile em { font-style: normal; font-size: 10px; color: rgba(255, 255, 255, .7); }
.cat-tile:hover img { transform: scale(1.05); }
.cat-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-l); }
.cat-tile.on { outline: 2px solid var(--gold); outline-offset: -2px; box-shadow: 0 10px 24px rgba(150, 105, 40, .26); }
.cat-tile.on b { color: #f6e3bd; }
.chip { flex: none; height: 36px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line);
  background: #fffdf6; font-size: 13px; color: var(--ink2); transition: .18s; white-space: nowrap; }
.chip:hover { border-color: #d3c3a6; color: var(--ink); }
.chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ------------------------------------------------ 主布局 */
.wrap { display: grid; grid-template-columns: 260px 1fr; gap: 40px;
  max-width: 1560px; margin: 0 auto; padding: 40px clamp(16px, 4vw, 56px) 80px; align-items: start; }

.side { position: sticky; top: 88px; background: #fffdf6; border: 1px solid var(--line); border-radius: 18px;
  padding: 20px 18px 14px; max-height: calc(100vh - 110px); overflow-y: auto; }
.side-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.side-head h2 { font-size: 14px; letter-spacing: .12em; }
.side-head button { font-size: 12px; color: var(--sub); }
.side-head button:hover { color: var(--gold); }
.fgroup { padding: 14px 0; border-bottom: 1px dashed var(--line); }
.fgroup:last-child { border-bottom: none; }
.fgroup h3 { font-size: 12px; color: var(--sub); letter-spacing: .12em; margin-bottom: 10px; font-weight: 500; }
.fchips { display: flex; flex-wrap: wrap; gap: 6px; }
.fchip { padding: 5px 10px; border-radius: 8px; font-size: 12px; color: var(--ink2); background: #f7f4ee;
  border: 1px solid transparent; transition: .15s; }
.fchip:hover { background: #f1ece1; }
.fchip.on { background: var(--gold-soft); border-color: #dcc299; color: var(--gold-d); font-weight: 600; }
.fchip em { font-style: normal; color: var(--sub); font-size: 10px; margin-left: 3px; }

.range { display: flex; align-items: center; gap: 6px; }
.range input { width: 100%; height: 32px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px;
  font-size: 12px; background: #fffdf6; }
.range input:focus { border-color: #d7c39f; }
.range span { color: var(--sub); font-size: 12px; }
.switch { display: flex; align-items: center; justify-content: space-between; padding: 2px 0; font-size: 12px;
  color: var(--ink2); }
.switch input { appearance: none; width: 38px; height: 22px; border-radius: 999px; background: #e5e0d6;
  position: relative; cursor: pointer; transition: .2s; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px;
  border-radius: 50%; background: #fffdf6; transition: .2s; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); }
.switch input:checked { background: var(--gold); }
.switch input:checked::after { left: 19px; }

/* ------------------------------------------------ 工具条 */
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin-bottom: 20px; flex-wrap: wrap; }
.result { font-size: 13px; color: var(--sub); }
.result b { color: var(--ink); font-size: 20px; font-weight: 600; margin-right: 3px; }
.sorts { display: flex; gap: 4px; background: #fffdf6; border: 1px solid var(--line); border-radius: 999px; padding: 4px; }
.sorts button { height: 30px; padding: 0 14px; border-radius: 999px; font-size: 12px; color: var(--ink2); }
.sorts button.on { background: var(--ink); color: #fff; }
.active-chips { display: flex; gap: 8px; flex-wrap: wrap; width: 100%; }
.ac { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 8px;
  background: var(--gold-soft); color: var(--gold-d); font-size: 12px; }
.ac b { font-weight: 600; }
.ac span { cursor: pointer; opacity: .7; }
.ac span:hover { opacity: 1; }

/* ------------------------------------------------ 商品网格 */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.card { background: #fffdf6; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden;
  transition: transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .25s, border-color .25s;
  display: flex; flex-direction: column; cursor: pointer; }
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-l); border-color: #dbcbb0; }
.thumb { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: #f4f1ea; }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.card:hover .thumb img { transform: scale(1.05); }
.tags { position: absolute; top: 10px; left: 10px; display: flex; gap: 5px; }
.tag { padding: 3px 7px; border-radius: 5px; font-size: 10px; letter-spacing: .06em;
  background: rgba(255, 255, 255, .92); color: var(--ink); backdrop-filter: blur(4px); }
.tag.hot { background: linear-gradient(135deg, #b8873e, #97692a); color: #fff; }
.tag.new { background: rgba(23, 21, 15, .88); color: #f6e7c9; }
.tag.sale { background: #bf4632; color: #fff; }
.offline { position: absolute; inset: 0; background: rgba(250, 248, 245, .72); display: grid; place-items: center;
  font-size: 12px; color: var(--ink2); letter-spacing: .1em; }

.card-body { padding: 14px 14px 0; flex: 1; display: flex; flex-direction: column; }
.card-body h3 { font-size: 15px; font-weight: 600; line-height: 1.4; letter-spacing: .02em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 42px; }
.meta { margin-top: 8px; font-size: 11px; color: var(--sub); letter-spacing: .03em; line-height: 1.7;
  display: flex; gap: 8px; flex-wrap: nowrap; overflow: hidden; white-space: nowrap;
  -webkit-mask-image: linear-gradient(90deg, #000 82%, transparent 100%);
  mask-image: linear-gradient(90deg, #000 82%, transparent 100%); }
.meta > * { flex: 0 0 auto; }
.meta i { font-style: normal; color: #cfc8ba; }
.card-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px;
  padding: 12px 14px 14px; margin-top: auto; }
.price { font-size: 22px; font-weight: 600; letter-spacing: -.02em; color: var(--ink); line-height: 1; }
.price small { font-size: 12px; font-weight: 500; color: var(--sub); margin-right: 2px; }
.price span { font-size: 11px; color: var(--sub); font-weight: 400; margin-left: 4px; }
.add-btn { height: 32px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line);
  font-size: 12px; color: var(--ink2); background: #fffdf6; transition: .18s; white-space: nowrap; }
.add-btn:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.add-btn.done { background: var(--gold-soft); border-color: #dcc299; color: var(--gold-d); }

.empty { grid-column: 1 / -1; padding: 80px 0; text-align: center; color: var(--sub); font-size: 13px; }
.empty b { display: block; font-size: 15px; color: var(--ink2); margin-bottom: 8px; }

.pager { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 40px; }
.pager button { min-width: 36px; height: 36px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--line);
  background: #fffdf6; font-size: 13px; color: var(--ink2); }
.pager button:hover:not(:disabled) { border-color: #d3c3a6; }
.pager button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.pager button:disabled { opacity: .35; cursor: not-allowed; }

/* ------------------------------------------------ 遮罩 / 弹层 */
.mask { position: fixed; inset: 0; background: rgba(20, 16, 10, .45); backdrop-filter: blur(2px);
  opacity: 0; visibility: hidden; transition: .28s; z-index: 80; }
.mask.show { opacity: 1; visibility: visible; }

.modal { position: fixed; z-index: 90; left: 50%; top: 50%; transform: translate(-50%, -46%) scale(.97);
  width: min(1060px, 94vw); max-height: 88vh; background: #fffdf6; border-radius: 20px; overflow: hidden;
  box-shadow: var(--shadow-l); opacity: 0; visibility: hidden; transition: .3s cubic-bezier(.2, .8, .2, 1);
  display: flex; }
.modal.show { opacity: 1; visibility: visible; transform: translate(-50%, -50%) scale(1); }
.modal-close { position: absolute; right: 14px; top: 14px; z-index: 5; width: 34px; height: 34px;
  border-radius: 50%; background: rgba(255, 255, 255, .9); display: grid; place-items: center;
  font-size: 18px; color: var(--ink2); box-shadow: 0 2px 10px rgba(0, 0, 0, .1); }
.detail-media { width: 46%; background: #f6f3ec; padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.detail-media .main { aspect-ratio: 1/1; border-radius: 12px; overflow: hidden; background: #fffdf6; }
.detail-media .main img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: flex; gap: 8px; }
.thumbs div { width: 60px; height: 60px; border-radius: 8px; overflow: hidden; border: 2px solid transparent;
  background: #fffdf6; cursor: pointer; }
.thumbs div.on { border-color: var(--gold); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.detail-info { flex: 1; padding: 34px 34px 24px; overflow-y: auto; display: flex; flex-direction: column; }
.detail-info .cat { font-size: 11px; letter-spacing: .16em; color: var(--gold); }
.detail-info h2 { font-size: 26px; line-height: 1.3; margin: 10px 0 6px; letter-spacing: .02em; }
.detail-info .model { font-size: 12px; color: var(--sub); letter-spacing: .06em; }
.detail-price { margin: 20px 0 2px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.detail-price .price { font-size: 34px; }
.detail-price .note { font-size: 12px; color: var(--sub); }
.specs { margin-top: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line2);
  border: 1px solid var(--line2); border-radius: 10px; overflow: hidden; }
.specs div { background: #fffdf6; padding: 11px 14px; display: flex; justify-content: space-between; gap: 10px; }
.specs span { font-size: 12px; color: var(--sub); }
.specs b { font-size: 12px; font-weight: 500; text-align: right; }
.desc { margin-top: 18px; font-size: 13px; line-height: 2; color: var(--ink2); }
.detail-act { margin-top: auto; padding-top: 22px; display: flex; gap: 12px; align-items: center; }
.qty { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; height: 46px; }
.qty button { width: 40px; height: 100%; font-size: 16px; color: var(--ink2); background: #fffdf6; }
.qty button:hover { background: #f7f4ee; }
.qty span { width: 44px; text-align: center; font-size: 15px; }
.detail-act .primary { flex: 1; justify-content: center; height: 46px; }

/* ------------------------------------------------ 清单面板 */
.cart-panel { position: fixed; top: 0; right: 0; bottom: 0; z-index: 95; width: min(440px, 100vw);
  background: var(--bg); box-shadow: -10px 0 40px rgba(0, 0, 0, .12); transform: translateX(102%);
  transition: transform .34s cubic-bezier(.2, .8, .2, 1); display: flex; flex-direction: column; }
.cart-panel.show { transform: none; }
.cart-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px;
  border-bottom: 1px solid var(--line); background: #fffdf6; }
.cart-head h2 { font-size: 17px; letter-spacing: .06em; }
.cart-head .n { font-size: 11px; color: var(--sub); margin-left: 6px; }
.cart-body { flex: 1; overflow-y: auto; padding: 14px 16px 0; }
.cart-empty { padding: 70px 20px; text-align: center; color: var(--sub); font-size: 13px; line-height: 2; }
.ci { display: flex; gap: 12px; background: #fffdf6; border: 1px solid var(--line); border-radius: 12px;
  padding: 10px; margin-bottom: 10px; }
.ci img { width: 74px; height: 74px; border-radius: 8px; object-fit: cover; background: #f4f1ea; flex: none; }
.ci-mid { flex: 1; min-width: 0; }
.ci-mid h4 { font-size: 13px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden; }
.ci-mid .m { font-size: 10px; color: var(--sub); margin-top: 4px; letter-spacing: .04em; }
.ci-mid .p { font-size: 14px; margin-top: 6px; font-weight: 600; }
.ci-mid .p small { font-size: 10px; color: var(--sub); font-weight: 400; margin-right: 2px; }
.ci-right { display: flex; flex-direction: column; justify-content: space-between; align-items: flex-end; }
.ci-qty { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.ci-qty button { width: 24px; height: 24px; font-size: 12px; color: var(--ink2); }
.ci-qty span { width: 26px; text-align: center; font-size: 12px; }
.ci-del { font-size: 11px; color: var(--sub); }
.ci-del:hover { color: #bf4632; }
.cart-form { padding: 12px 16px; background: #fffdf6; border-top: 1px solid var(--line); }
.cart-form input, .cart-form textarea { width: 100%; border: 1px solid var(--line); border-radius: 8px;
  padding: 9px 11px; font-size: 13px; margin-bottom: 8px; }
.cart-form textarea { height: 60px; resize: none; }
.cart-foot { padding: 12px 16px 16px; background: #fffdf6; border-top: 1px solid var(--line); }
.cart-total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.cart-total span { font-size: 12px; color: var(--sub); }
.cart-total b { font-size: 24px; font-weight: 600; }
.cart-total b small { font-size: 12px; font-weight: 400; color: var(--sub); margin-right: 2px; }
.cart-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cart-acts button { height: 46px; border-radius: 10px; font-size: 13px; letter-spacing: .04em; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-gold { background: linear-gradient(145deg, #b8873e, #9a6d2c); color: #fff; }
.btn-gold:hover { filter: brightness(1.06); }
.btn-line { border: 1px solid var(--line); background: #fffdf6; color: var(--ink2); }
.btn-line:hover { border-color: #d3c3a6; }

/* 清单码结果 */
.code-box { text-align: center; padding: 18px; border-radius: 14px; background: var(--gold-soft);
  border: 1px dashed #d8bd93; margin: 0 16px 12px; }
.code-box .lb { font-size: 11px; color: var(--gold-d); letter-spacing: .16em; }
.code-box .cd { font-size: 30px; font-weight: 700; letter-spacing: .32em; margin: 8px 0 4px; color: var(--ink); }
.code-box .tip { font-size: 11px; color: var(--sub); line-height: 1.8; }

/* ------------------------------------------------ 移动端筛选按钮 */
.fab-filter { display: none; }

/* ------------------------------------------------ 页脚 */
footer { border-top: 1px solid var(--line); background: #fffdf6; padding: 46px clamp(16px, 4vw, 56px) 30px; }
.fwrap { max-width: 1560px; margin: 0 auto; display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.fbrand h3 { font-size: 18px; letter-spacing: .1em; margin-bottom: 8px; }
.fbrand p { font-size: 12px; color: var(--sub); line-height: 2; }
.fcols { display: flex; gap: 60px; flex-wrap: wrap; }
.fcol h4 { font-size: 12px; color: var(--ink); letter-spacing: .1em; margin-bottom: 10px; }
.fcol p { font-size: 12px; color: var(--sub); line-height: 2; }
.copy { max-width: 1560px; margin: 30px auto 0; padding-top: 20px; border-top: 1px solid var(--line2);
  font-size: 11px; color: #a9a294; letter-spacing: .04em; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }

/* ------------------------------------------------ 响应式 */
@media (max-width: 1440px) {
  .grid { grid-template-columns: repeat(3, 1fr); gap: 18px; }
}

@media (max-width: 1180px) {
  .grid { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .wrap { grid-template-columns: 230px 1fr; gap: 26px; }
}

@media (max-width: 980px) {
  .grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .wrap { grid-template-columns: 1fr; padding-top: 22px; }
  .side { display: none; }
  .fab-filter { display: flex; align-items: center; gap: 6px; position: fixed; left: 16px; bottom: 24px;
    z-index: 70; height: 44px; padding: 0 18px; border-radius: 999px; background: var(--ink); color: #fff;
    font-size: 13px; box-shadow: 0 10px 24px rgba(0, 0, 0, .22); }
  .fab-filter em { font-style: normal; background: var(--gold); border-radius: 9px; min-width: 18px;
    height: 18px; display: grid; place-items: center; font-size: 10px; }
  .detail-media { width: 44%; }
}

@media (max-width: 760px) {
  .hdr { height: auto; flex-wrap: wrap; gap: 10px; padding: 10px 14px 12px; }
  .hdr-right { gap: 6px; }
  .ghost { display: none; }
  .brand-txt i { display: none; }
  .search { order: 3; width: 100%; max-width: none; flex: auto; height: 38px; }
  .cart-btn { height: 36px; padding: 0 13px; font-size: 12px; }
  .hero { height: 400px; }
  .hero-in { justify-content: flex-end; padding: 0 18px 34px; }
  .hero h1 { font-size: 30px; }
  .hero .sub { margin-top: 10px; font-size: 12px; max-width: 92%; }
  .eyebrow { margin-bottom: 10px; font-size: 10px; }
  .hero-acts { margin-top: 18px; gap: 8px; }
  .primary, .line-btn { height: 40px; padding: 0 18px; font-size: 13px; }
  .hero-nums { margin-top: 22px; gap: 22px; }
  .hero-nums b { font-size: 18px; }
  .hero-nums span { font-size: 9px; }
  .catnav { padding: 12px 14px; }
  .chip { height: 32px; padding: 0 13px; font-size: 12px; }
  .wrap { padding: 0 14px 90px; gap: 0; }
  .toolbar { margin-top: 16px; margin-bottom: 14px; gap: 10px; }
  .result b { font-size: 17px; }
  .sorts button { height: 28px; padding: 0 10px; font-size: 11px; }
  .grid { gap: 10px; }
  .card { border-radius: 10px; }
  .card-body { padding: 10px 10px 0; }
  .card-body h3 { font-size: 13px; min-height: 36px; -webkit-line-clamp: 2; }
  .meta { font-size: 10px; gap: 4px; margin-top: 6px; }
  .card-foot { padding: 9px 10px 10px; }
  .price { font-size: 18px; }
  .add-btn { height: 28px; padding: 0 9px; font-size: 11px; }
  .tag { font-size: 9px; padding: 2px 5px; }
  .bb-in { padding: 18px 14px 14px; }
  .bb-head { margin-bottom: 10px; }
  .bb-list { gap: 10px; }
  .bb-item, .bb-more { height: 84px; border-radius: 12px; }
  .bb-more { flex-basis: 96px; }
  .bb-txt { padding: 0 12px; }
  .bb-txt b { font-size: 13px; }
  .catnav-in { grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); gap: 8px; padding: 10px 14px; }
  .cat-tile { height: 30px; }
  .cat-tile b { font-size: 11px; }
  .cat-tile .ct-txt { left: 9px; }
  .modal { flex-direction: column; width: 100vw; height: 100vh; max-height: 100vh; border-radius: 0;
    top: 0; left: 0; transform: none; }
  .modal.show { transform: none; }
  .detail-media { width: 100%; padding: 0; flex: none; }
  .detail-media .main { aspect-ratio: 1/1; border-radius: 0; }
  .thumbs { display: none; }
  .detail-info { padding: 18px 16px 90px; }
  .detail-info h2 { font-size: 19px; margin: 6px 0 4px; }
  .detail-price .price { font-size: 26px; }
  .detail-price { margin: 12px 0 0; }
  .specs { grid-template-columns: 1fr; margin-top: 12px; }
  .specs div { padding: 9px 12px; }
  .desc { font-size: 12px; line-height: 1.9; margin-top: 12px; }
  .detail-act { position: fixed; left: 0; right: 0; bottom: 0; padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: #fffdf6; border-top: 1px solid var(--line); margin: 0; }
  .detail-act .primary { height: 44px; }
  .qty { height: 44px; }
  .cart-panel { width: 100vw; }
  .cart-head { padding: 14px 16px; }
  .cart-body { padding: 10px 12px 0; }
  .ci img { width: 60px; height: 60px; }
  .ci-mid h4 { font-size: 12px; }
  .cart-foot { padding: 10px 12px calc(12px + env(safe-area-inset-bottom)); }
  .cart-acts button { height: 42px; font-size: 12px; }
  .code-box .cd { font-size: 26px; }
  footer { padding: 30px 16px 24px; }
  .fcols { gap: 30px; }
  .copy { margin-top: 20px; font-size: 10px; }
}

/* 筛选底部弹层（移动端复用 aside） */
.side.sheet { display: block; position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 92;
  max-height: 78vh; border-radius: 18px 18px 0 0; padding: 16px 16px calc(16px + env(safe-area-inset-bottom));
  transform: translateY(102%); transition: transform .3s cubic-bezier(.2, .8, .2, 1); top: auto; }
.side.sheet.show { transform: none; }
.sheet-bar { display: flex; justify-content: space-between; align-items: center; padding-bottom: 8px; }

/* ---------------- 安装实物（实拍图/视频） ---------------- */
.install-entry { width: 100%; display: flex; align-items: center; gap: 10px; margin-top: 14px;
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fffdf6;
  text-align: left; transition: .16s; }
.install-entry:hover { border-color: #d3c3a6; background: #fffdf9; }
.install-entry .ie-l { font-size: 13px; font-weight: 600; letter-spacing: .04em; display: flex; align-items: center; gap: 7px; }
.install-entry .ie-l::before { content: "◎"; color: var(--gold); font-size: 13px; }
.install-entry .ie-m { margin-left: auto; font-size: 12px; color: var(--sub); }
.install-entry .ie-r { color: #b8ae9c; font-size: 16px; line-height: 1; }
.install-entry.off { opacity: .62; cursor: default; }
.install-entry.off:hover { border-color: var(--line); background: #fffdf6; }
.install-strip { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; scrollbar-width: none; }
.install-strip::-webkit-scrollbar { display: none; }
.install-strip .st { position: relative; flex: none; width: 72px; height: 72px; border-radius: 9px;
  overflow: hidden; border: 1px solid var(--line); background: #f4f1ea; }
.install-strip .st img { width: 100%; height: 100%; object-fit: cover; }
.install-strip .st .vb { position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(20,16,10,.55); color: #fff; font-size: 15px; }
.install-strip .st .vm { position: absolute; left: 4px; bottom: 4px; font-size: 9px; color: #fff;
  background: rgba(0,0,0,.55); border-radius: 4px; padding: 1px 4px; letter-spacing: .04em; }

.gallery { position: fixed; inset: 0; z-index: 150; background: rgba(16, 13, 9, .82);
  display: none; align-items: center; justify-content: center; padding: 24px; }
.gallery.show { display: flex; }
.g-box { width: min(980px, 94vw); max-height: 88vh; background: #fffdf6; border-radius: 16px;
  display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 40px 100px rgba(0,0,0,.4); }
.g-head { padding: 14px 20px; border-bottom: 1px solid var(--line); display: flex;
  align-items: center; justify-content: space-between; }
.g-head h3 { font-size: 15px; letter-spacing: .04em; }
.g-head h3 span { font-size: 11px; color: var(--sub); font-weight: 400; margin-left: 8px; letter-spacing: .02em; }
.g-head .x { width: 30px; height: 30px; border-radius: 50%; font-size: 18px; color: var(--sub);
  display: grid; place-items: center; }
.g-head .x:hover { background: #f5f2ea; }
.g-body { padding: 16px 20px; overflow-y: auto; display: grid; gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); align-content: start; }
.g-body figure { border-radius: 10px; overflow: hidden; background: #0f0d0a; position: relative; }
.g-body img { width: 100%; display: block; cursor: zoom-in; }
.g-body video { width: 100%; display: block; background: #000; }
.g-empty { padding: 46px 0; text-align: center; color: var(--sub); font-size: 13px; grid-column: 1/-1; }
.g-tip { padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line);
  font-size: 11px; color: var(--sub); }
.gzoom { position: fixed; inset: 0; z-index: 160; background: rgba(0,0,0,.9); display: none;
  align-items: center; justify-content: center; padding: 20px; }
.gzoom.show { display: flex; }
.gzoom img { max-width: 96vw; max-height: 92vh; object-fit: contain; }

@media (max-width: 760px) {
  .install-entry { margin-top: 12px; padding: 11px 12px; }
  .install-strip .st { width: 64px; height: 64px; }
  .gallery { padding: 0; }
  .g-box { width: 100vw; max-height: 100vh; height: 100vh; border-radius: 0; }
  .g-body { grid-template-columns: repeat(2, 1fr); padding: 12px; gap: 8px; }
  .g-head { padding: 14px 16px; }
  .g-tip { padding: 10px 16px calc(14px + env(safe-area-inset-bottom)); }
}

/* 卡片底部：只显示型号，不显示价格 */
.card-model { font-size: 11px; color: var(--sub); letter-spacing: .04em; padding-bottom: 3px; }
.cart-total span { font-size: 11px; color: var(--sub); }
.cart-total b { font-size: 18px; font-weight: 600; }

/* ------------------------------------------------ 账号 / 登录 / 游客遮罩 */
.hdr-right { position: relative; }
.user-chip { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 12px 0 5px;
  border: 1px solid var(--line); border-radius: 999px; background: #fffdf6; max-width: 160px; }
.user-chip:hover { border-color: #d3c3a6; }
.user-chip.guest { padding: 0 14px; color: var(--ink2); font-size: 13px; }
.user-chip.guest .uc-av { display: none; }
.uc-av { width: 27px; height: 27px; border-radius: 50%; object-fit: cover; flex: none; background: var(--gold-soft); }
.uc-av.av-txt { display: inline-grid; place-items: center; font-size: 12px; color: var(--gold-d); }
.user-chip b { font-size: 12px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-pop { position: absolute; right: 0; top: 46px; z-index: 80; width: 150px; padding: 6px;
  background: #fffdf6; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 18px 40px rgba(35, 26, 12, .16);
  display: none; }
.user-pop.show { display: block; }
.user-pop button { display: block; width: 100%; text-align: left; padding: 9px 10px; border-radius: 8px;
  font-size: 12px; color: var(--ink2); }
.user-pop button:hover { background: var(--gold-soft); color: var(--gold-d); }

.login-modal { position: fixed; inset: 0; z-index: 95; display: none; align-items: center; justify-content: center; padding: 20px; }
.login-modal.show { display: flex; }
.lg-box { width: 390px; max-width: 100%; background: #fffdf6; border-radius: 18px; overflow: hidden;
  box-shadow: 0 30px 80px rgba(20, 15, 8, .35); position: relative; }
.lg-box .x { position: absolute; right: 12px; top: 10px; width: 30px; height: 30px; font-size: 16px; color: var(--sub); }
.lg-head { padding: 26px 26px 16px; background: linear-gradient(160deg, #fbf6ec, #fff); border-bottom: 1px solid var(--line2); }
.lg-logo { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(145deg, #2c2418, #4d3c22); color: #f2dfb9; font-size: 20px; margin-bottom: 12px; }
.lg-head h3 { font-size: 18px; letter-spacing: .04em; }
.lg-head p { font-size: 12px; color: var(--sub); line-height: 1.7; margin-top: 6px; }
.lg-body { padding: 18px 26px 22px; }
.lg-dev label { display: block; font-size: 11px; color: var(--sub); letter-spacing: .08em; margin: 10px 0 6px; }
.lg-dev input { width: 100%; height: 42px; border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; font-size: 14px; }
.lg-dev button { width: 100%; height: 46px; border-radius: 10px; margin-top: 16px; font-size: 14px; letter-spacing: .06em; }
.lg-dev button:disabled { opacity: .6; }
.lg-note { font-size: 10px; color: #a9a294; line-height: 1.7; margin-top: 10px; }
.lg-fine { font-size: 10px; color: #b3a58c; line-height: 1.7; margin-top: 12px; text-align: center; }
.lg-alt { font-size: 12px; color: var(--sub); line-height: 1.8; padding: 10px 0; }
.lg-wx { padding: 6px 0; }
.lg-wx p { font-size: 12px; color: var(--sub); line-height: 1.8; }

.guest-wall { display: flex; align-items: center; gap: 18px; margin: 22px 0 8px; padding: 22px 26px;
  border: 1px dashed #d8bd93; border-radius: 16px; background: linear-gradient(120deg, #fdf9f1, #fff); }
.gw-ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--gold-soft); font-size: 20px; flex: none; }
.gw-txt { flex: 1; min-width: 0; }
.gw-txt b { display: block; font-size: 15px; color: var(--ink); letter-spacing: .02em; }
.gw-txt span { display: block; font-size: 12px; color: var(--sub); line-height: 1.8; margin-top: 5px; }
.gw-btn { flex: none; height: 42px; padding: 0 22px; border-radius: 999px; background: linear-gradient(145deg, #b8873e, #9a6d2c);
  color: #fff; font-size: 13px; letter-spacing: .04em; box-shadow: 0 10px 24px rgba(150, 105, 40, .28); }

.card.locked { cursor: pointer; }
.card.locked .thumb img { filter: blur(6px) saturate(.7); transform: scale(1.06); }
.card.locked .thumb::after { content: ''; position: absolute; inset: 0; background: rgba(20, 16, 10, .28); z-index: 1; }
.card.locked .lock-veil { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, transparent, rgba(20,16,10,.35)); }
.card.locked .lock-badge { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  padding: 7px 14px; border-radius: 999px; background: rgba(255, 255, 255, .92); color: var(--ink);
  font-size: 12px; letter-spacing: .04em; white-space: nowrap; }
.card.locked h3 { color: var(--ink2); }
.card.locked .add-btn { background: var(--gold-soft); border-color: #dcc299; color: var(--gold-d); }

.cart-user { display: flex; align-items: center; gap: 9px; margin-bottom: 9px; padding: 7px 9px;
  border-radius: 9px; background: var(--gold-soft); font-size: 12px; color: var(--gold-d); }
.cart-user .lw-av { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }
.cart-user .lw-av.av-txt { display: inline-grid; place-items: center; background: #fffdf6; }
.code-box .lw { display: flex; align-items: center; justify-content: center; gap: 7px; margin-bottom: 6px;
  font-size: 12px; color: var(--ink2); }
.code-box .lw .lw-av { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; background: #fffdf6; }
.code-box .lw .lw-av.av-txt { display: inline-grid; place-items: center; font-size: 11px; color: var(--gold-d); }
.code-box .lw b { color: var(--gold-d); }

@media (max-width: 760px) {
  .user-chip b { max-width: 62px; }
  .guest-wall { flex-direction: column; align-items: flex-start; gap: 12px; padding: 18px; }
  .gw-btn { width: 100%; }
  .lg-box { border-radius: 16px; }
  .lg-head, .lg-body { padding-left: 20px; padding-right: 20px; }
}
