/* 鑫宝丽官网 · 样式
   配色沿用小程序 token（莫兰迪 + 香槟金），拒绝艳丽色。
   单位一律用 px / rem，不用 rpx（那是小程序单位）。 */

:root {
  --bg: #F7F7F8;
  --card: #FFFFFF;
  --gold: #B08D57;
  --gold-soft: #F3EEE4;
  --gold-deep: #97753F;
  --ink: #1A1A1A;
  --ink-2: #333333;
  --ink-3: #666666;
  --ink-9: #999999;
  --line: #EEEEEE;
  --line-2: #E4E4E6;
  --img-bg: #F5F6F7;
  --shadow: 0 2px 12px rgba(0, 0, 0, .04);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, .10);
  --wrap: 1240px;
  --header-h: 64px;
  --radius: 10px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }
body { overflow-x: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-2);
  font-family: -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, sans-serif;
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }
input, select { font-family: inherit; font-size: inherit; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

/* ============ 顶栏 ============ */
.site-header {
  position: sticky; top: 0; z-index: 60;
  height: var(--header-h);
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; height: 100%; gap: 28px; }

.logo { display: flex; align-items: center; gap: 11px; flex: none; }
/* 商标拆两段用：大图 NewPauly 走图片，中文用小字排版 —— 整张 logo 塞进 64px 高的
   顶栏时，下方「鑫宝丽 德国」只有 9px 高，糊成一团。 */
.logo-en { height: 34px; width: auto; flex: none; }
.logo-txt {
  display: flex; flex-direction: column; gap: 3px;
  padding-left: 11px; border-left: 1px solid var(--line-2);
}
.logo-text { font-size: 14.5px; font-weight: 600; color: var(--ink); letter-spacing: .6px; line-height: 1.1; }
.logo-sub { font-size: 10px; color: var(--ink-9); letter-spacing: 1.2px; line-height: 1; }

.nav { display: flex; gap: 26px; margin-left: 8px; }
.nav a {
  font-size: 14.5px; color: var(--ink-3); padding: 4px 0;
  border-bottom: 2px solid transparent; transition: color .15s, border-color .15s;
}
.nav a:hover { color: var(--ink); }
.nav a.on { color: var(--ink); font-weight: 600; border-bottom-color: var(--gold); }

.header-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.header-tel { font-size: 13.5px; color: var(--ink-3); letter-spacing: .3px; white-space: nowrap; }
.header-tel b { color: var(--ink); font-weight: 600; }

.btn-menu { display: none; background: none; border: 0; padding: 6px; color: var(--ink-2); }
.btn-menu svg { display: block; }

/* 移动端抽屉 */
.drawer-mask {
  position: fixed; inset: 0; background: rgba(0, 0, 0, .38);
  opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 70;
}
.drawer-mask.on { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: 264px; max-width: 82vw;
  background: #fff; z-index: 71; padding: 20px;
  transform: translateX(100%); transition: transform .24s cubic-bezier(.4, 0, .2, 1);
  overflow-y: auto;
}
.drawer.on { transform: translateX(0); }
.drawer a { display: block; padding: 13px 4px; font-size: 15.5px; color: var(--ink-2); border-bottom: 1px solid var(--line); }
.drawer a.on { color: var(--gold); font-weight: 600; }
.drawer .drawer-tel { margin-top: 18px; font-size: 13px; color: var(--ink-9); line-height: 2; }

/* ============ 首页 hero ============ */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #232120 0%, #2C2823 52%, #3A332A 100%);
  min-height: 460px;
  display: flex; align-items: center;
}
/* 无横幅底图时的装饰：右上一团暖金柔光 + 极细网格，撑住质感又不抢文字 */
.hero-deco {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 76% 26%, rgba(176, 141, 87, .26) 0%, rgba(176, 141, 87, 0) 52%),
    radial-gradient(circle at 8% 92%, rgba(176, 141, 87, .10) 0%, rgba(176, 141, 87, 0) 46%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .028) 0 1px, transparent 1px 76px);
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: .55;
}
.hero.has-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(20, 18, 16, .84) 0%, rgba(20, 18, 16, .48) 55%, rgba(20, 18, 16, .2) 100%);
}
.hero-inner { position: relative; z-index: 2; padding: 72px 0; color: #fff; }

/* 右侧产品卡片组（桌面端装饰，移动端隐藏） */
.hero-visual { display: none; }
@media (min-width: 1081px) {
  .hero.has-visual .hero-inner { padding-right: 430px; }
  .hero-visual {
    display: block; position: absolute; right: 5%; top: 50%;
    transform: translateY(-50%); width: 360px; height: 340px; z-index: 2;
  }
  .hv-card {
    position: absolute; display: block;
    background: #fff; border-radius: 10px; overflow: hidden;
    box-shadow: 0 18px 50px rgba(0, 0, 0, .42);
    transition: transform .35s cubic-bezier(.2, .8, .3, 1);
  }
  .hv-card img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: var(--img-bg); }
  .hv-card .hv-name {
    display: block; padding: 8px 11px 9px; font-size: 11.5px; color: var(--ink-3);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .hv-a { width: 214px; left: 0; top: 12px; transform: rotate(-3.5deg); }
  .hv-b { width: 176px; right: 4px; bottom: 6px; transform: rotate(2.5deg); }
  .hv-card:hover { transform: rotate(0deg) translateY(-5px); }
  .hv-ring {
    position: absolute; left: -34px; bottom: -26px;
    width: 150px; height: 150px; border-radius: 50%;
    border: 1px solid rgba(176, 141, 87, .34);
  }
}
.hero-eyebrow {
  display: inline-block; font-size: 12px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--gold); border: 1px solid rgba(176, 141, 87, .55);
  padding: 5px 13px; border-radius: 999px; margin-bottom: 20px;
}
.hero h1 {
  margin: 0 0 16px; font-size: 40px; line-height: 1.28; font-weight: 600;
  letter-spacing: .5px; color: #fff;
}
.hero p { margin: 0; font-size: 16px; color: rgba(255, 255, 255, .82); max-width: 560px; line-height: 1.85; }
.hero-actions { margin-top: 30px; display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 44px; padding: 0 26px; border-radius: 999px;
  font-size: 14.5px; font-weight: 500; border: 1px solid transparent;
  transition: all .16s; white-space: nowrap;
}
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: var(--gold-deep); }
.btn-ghost { border-color: rgba(255, 255, 255, .42); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); }
.btn-line { border-color: var(--line-2); color: var(--ink-2); background: #fff; }
.btn-line:hover { border-color: var(--gold); color: var(--gold); }

/* ============ 通用区块 ============ */
.section { padding: 64px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 30px; }
.section-head h2 {
  margin: 0; font-size: 25px; font-weight: 600; color: var(--ink); letter-spacing: .5px;
  position: relative; padding-left: 15px;
}
.section-head h2::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 3px; height: 19px; background: var(--gold); border-radius: 2px;
}
.section-head .sub { margin: 7px 0 0 15px; font-size: 13.5px; color: var(--ink-9); }
.section-head .more { font-size: 13.5px; color: var(--ink-9); white-space: nowrap; }
.section-head .more:hover { color: var(--gold); }

/* ============ 分类瓷贴 ============ */
.cat-grid {
  display: grid; gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.cat-tile {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 18px; display: flex; align-items: center; gap: 15px;
  transition: border-color .18s, box-shadow .18s, transform .18s;
}
.cat-tile:hover { border-color: var(--gold); box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.cat-tile .ico {
  width: 46px; height: 46px; flex: none; border-radius: 8px; overflow: hidden;
  background: var(--img-bg); display: flex; align-items: center; justify-content: center;
}
.cat-tile .ico img { width: 100%; height: 100%; object-fit: contain; }
.cat-tile .txt { min-width: 0; flex: 1; }
.cat-tile .nm { display: block; font-size: 15px; font-weight: 600; color: var(--ink); line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cat-tile .ct { display: block; font-size: 12px; color: var(--ink-9); margin-top: 3px; }

/* ============ 商品卡 ============ */
.p-grid { display: grid; gap: 18px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.p-card {
  background: var(--card); border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line);
  display: flex; flex-direction: column;
  transition: border-color .18s, box-shadow .18s, transform .18s;
}
.p-card:hover { border-color: var(--line-2); box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.p-card .ph {
  position: relative; aspect-ratio: 1 / 1; background: var(--img-bg); overflow: hidden;
}
.p-card .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.p-card:hover .ph img { transform: scale(1.045); }
.p-card .ph .noimg {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: #C9C9CB; font-size: 12.5px; letter-spacing: 1px;
}
.p-card .pin {
  position: absolute; left: 0; top: 0; padding: 3px 9px;
  background: var(--gold); color: #fff; font-size: 11px; border-radius: 0 0 7px 0;
  letter-spacing: .5px;
}
.p-card .body { padding: 13px 14px 15px; min-width: 0; min-width: 0; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.p-card .name {
  font-size: 14px; color: var(--ink); line-height: 1.5; font-weight: 500;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 42px;
}
.p-card .meta { font-size: 12px; color: var(--ink-9); display: flex; gap: 8px; flex-wrap: wrap; }
.p-card .meta span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.p-card .price-row { margin-top: auto; display: flex; align-items: baseline; gap: 5px; }
.p-card .price { color: var(--gold); font-size: 18px; font-weight: 600; letter-spacing: .3px; }
.p-card .price .sym { font-size: 12.5px; margin-right: 1px; }
.p-card .price-na { color: var(--ink-9); font-size: 13px; letter-spacing: .5px; }

/* ============ 优势 ============ */
.merit-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.merit {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px;
}
.merit .ic { width: 38px; height: 38px; color: var(--gold); margin-bottom: 14px; }
.merit h3 { margin: 0 0 8px; font-size: 16px; color: var(--ink); font-weight: 600; }
.merit p { margin: 0; font-size: 13.5px; color: var(--ink-3); line-height: 1.8; }

/* ============ 列表页 ============ */
.crumb { padding: 18px 0 0; font-size: 13px; color: var(--ink-9); }
.crumb a:hover { color: var(--gold); }
.crumb span { margin: 0 6px; color: #CFCFD2; }

.page-title { padding: 16px 0 4px; }
.page-title h1 { margin: 0 0 8px; font-size: 27px; font-weight: 600; color: var(--ink); letter-spacing: .5px; }
.page-title p { margin: 0; font-size: 13.5px; color: var(--ink-9); }

.list-layout { display: grid; grid-template-columns: 208px minmax(0, 1fr); gap: 30px; padding: 22px 0 64px; align-items: start; }

.filters { position: sticky; top: calc(var(--header-h) + 16px); }
.fbox { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 16px 6px; margin-bottom: 14px; }
.fbox h4 {
  margin: 0 0 12px; font-size: 13px; color: var(--ink); font-weight: 600;
  letter-spacing: 1px;
}
.fbox .opt {
  display: flex; align-items: center; gap: 8px; padding: 7px 0;
  font-size: 13.5px; color: var(--ink-3); cursor: pointer;
}
.fbox .opt:hover { color: var(--gold); }
.fbox .opt input { accent-color: var(--gold); width: 14px; height: 14px; margin: 0; }
.fbox .opt .n { margin-left: auto; font-size: 11.5px; color: #C0C0C4; }
.fbox .clear { font-size: 12.5px; color: var(--ink-9); background: none; border: 0; padding: 0 0 10px; }
.fbox .clear:hover { color: var(--gold); }

/* ---- 分类树（电商式：一级点开展开二级）---- */
.cat-tree { padding-bottom: 10px; }
.cat-tree .trow {
  display: flex; align-items: center; gap: 6px;
  padding: 9px 8px; margin: 0 -8px;
  border-radius: 7px; font-size: 13.5px; color: var(--ink-2);
  position: relative; transition: background .14s, color .14s;
}
.cat-tree .trow .nm {
  flex: 1; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cat-tree .trow .n { font-size: 11.5px; color: #C0C0C4; flex: none; }
.cat-tree .trow:hover { background: #FAF6EE; color: var(--gold-deep); }
.cat-tree .trow:hover .n { color: var(--gold); }
.cat-tree .trow.on { background: var(--gold-soft); color: var(--gold-deep); font-weight: 600; }
.cat-tree .trow.on .n { color: var(--gold); }
.cat-tree .trow.on.dim { background: transparent; font-weight: 600; }
.cat-tree .trow.on::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 3px; height: 15px; border-radius: 0 2px 2px 0; background: var(--gold);
}
.cat-tree .trow-all { font-weight: 600; color: var(--ink); }

/* 箭头是独立热区：只展开/收起，不改变筛选 */
.caret {
  flex: none; width: 20px; height: 20px; margin-right: -4px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 4px; color: #BDBDC1;
  transition: transform .2s ease, background .14s, color .14s;
}
.caret:hover { background: rgba(176, 141, 87, .12); color: var(--gold); }
.caret-none { visibility: hidden; }
.tnode.open > .trow .caret { transform: rotate(90deg); color: var(--gold); }

.tsubs { display: none; padding: 0 0 6px; }
.tnode.open > .tsubs { display: block; }
.tsub {
  display: flex; align-items: center; gap: 6px;
  padding: 7px 8px 7px 26px; margin: 0 -8px;
  border-radius: 7px; font-size: 13px; color: var(--ink-3);
  position: relative;
}
.tsub .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tsub .n { font-size: 11px; color: #C6C6CA; flex: none; }
.tsub::before {
  content: ""; position: absolute; left: 15px; top: 50%;
  width: 4px; height: 4px; margin-top: -2px; border-radius: 50%;
  background: #D6D6DA; transition: background .14s;
}
.tsub:hover { background: #FAF6EE; color: var(--gold-deep); }
.tsub:hover::before { background: var(--gold); }
.tsub.on { background: var(--gold-soft); color: var(--gold-deep); font-weight: 600; }
.tsub.on::before { background: var(--gold); }

.toolbar {
  display: flex; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap;
}
.search-box {
  position: relative; flex: 1; min-width: 200px; max-width: 380px;
}
.search-box input {
  width: 100%; height: 40px; padding: 0 38px 0 14px;
  border: 1px solid var(--line-2); border-radius: 999px; background: #fff;
  color: var(--ink); outline: none; transition: border-color .16s;
}
.search-box input:focus { border-color: var(--gold); }
.search-box input::placeholder { color: #B8B8BC; }
.search-box .mag { position: absolute; right: 13px; top: 50%; transform: translateY(-50%); color: var(--ink-9); }

.sort-group { display: flex; gap: 6px; margin-left: auto; flex-wrap: wrap; }
.sort-group button {
  height: 34px; padding: 0 14px; border-radius: 999px; font-size: 13px;
  border: 1px solid var(--line-2); background: #fff; color: var(--ink-3);
  transition: all .15s;
}
.sort-group button:hover { border-color: var(--gold); color: var(--gold); }
.sort-group button.on { background: var(--gold); border-color: var(--gold); color: #fff; }
.sort-group button .ar { margin-left: 4px; font-size: 12px; opacity: .5; letter-spacing: 0; }
.sort-group button.on .ar, .sort-group button:hover .ar { opacity: 1; }
.sort-group button .ar { margin-left: 4px; font-size: 12px; opacity: .5; letter-spacing: 0; }
.sort-group button.on .ar, .sort-group button:hover .ar { opacity: 1; }

.result-count { font-size: 13px; color: var(--ink-9); margin-bottom: 14px; }
.result-count b { color: var(--ink); font-weight: 600; }

.btn-filter-m { display: none; }

/* 分页 */
.pager { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 34px; flex-wrap: wrap; }
.pager button, .pager a {
  min-width: 36px; height: 36px; padding: 0 11px; border-radius: 7px;
  border: 1px solid var(--line-2); background: #fff; color: var(--ink-3); font-size: 13.5px;
  display: inline-flex; align-items: center; justify-content: center; transition: all .15s;
}
.pager button:hover:not(:disabled) { border-color: var(--gold); color: var(--gold); }
.pager button.on { background: var(--gold); border-color: var(--gold); color: #fff; }
.pager button:disabled { opacity: .38; cursor: default; }
.pager .gap { border: 0; background: none; color: var(--ink-9); }

/* 全量文字索引（页尾、默认收起） */
.all-links { margin-top: 34px; border-top: 1px solid var(--line); padding-top: 18px; }
.all-links summary {
  cursor: pointer; font-size: 13px; color: var(--ink-9); list-style: none;
  display: inline-flex; align-items: center; gap: 6px; user-select: none;
}
.all-links summary::-webkit-details-marker { display: none; }
.all-links summary::before { content: "+"; color: var(--gold); font-weight: 600; }
.all-links[open] summary::before { content: "−"; }
.all-links summary:hover { color: var(--gold); }
.all-links-body { margin-top: 18px; }
.al-group { margin-bottom: 18px; }
.al-group h5 {
  margin: 0 0 9px; font-size: 12.5px; color: var(--ink-3); font-weight: 600;
  display: flex; align-items: center; gap: 7px;
}
.al-group h5 span { color: #C0C0C4; font-weight: 400; font-size: 11.5px; }
.al-items { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.al-items a { font-size: 12.5px; color: var(--ink-3); line-height: 2; }
.al-items a:hover { color: var(--gold); }

/* ============ 详情页 ============ */
/* 图区 .88fr / 信息区 1.12fr：产品图不是主角，参数表才是客户要看的东西 */
.detail-top { display: grid; grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr); gap: 40px; padding: 24px 0 56px; align-items: start; }

/* aspect-ratio 定方形；max-height 是为了笔记本小窗（视口仅 700 左右）
   也能一屏看到整张主图 —— 超限时 object-fit: contain 居中，不会裁图也不会变形 */
.gallery-main {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; position: relative; aspect-ratio: 1 / 1;
  max-height: min(58vh, 520px);
}
.gallery-main img { width: 100%; height: 100%; object-fit: contain; background: var(--img-bg); cursor: zoom-in; }
.gallery-main .noimg { display: flex; align-items: center; justify-content: center; height: 100%; color: #C9C9CB; font-size: 13px; background: var(--img-bg); }
.gallery-thumbs { display: flex; gap: 9px; margin-top: 11px; overflow-x: auto; padding-bottom: 3px; }
.gallery-thumbs button {
  flex: none; width: 68px; height: 68px; border-radius: 7px; overflow: hidden; padding: 0;
  border: 1.5px solid transparent; background: var(--img-bg); transition: border-color .15s;
}
.gallery-thumbs button.on { border-color: var(--gold); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }

.d-info h1 { margin: 4px 0 14px; font-size: 25px; line-height: 1.45; color: var(--ink); font-weight: 600; }
.d-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.d-badges span {
  font-size: 12px; color: var(--gold); background: var(--gold-soft);
  padding: 4px 11px; border-radius: 5px;
}
.d-price {
  background: var(--gold-soft); border-radius: 8px; padding: 16px 18px; margin-bottom: 22px;
  display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
}
.d-price .num { font-size: 30px; font-weight: 600; color: var(--gold); letter-spacing: .5px; }
.d-price .sym { font-size: 16px; color: var(--gold); }
.d-price .na { font-size: 17px; color: var(--ink-3); }
.d-price .tip { font-size: 12px; color: var(--ink-9); margin-left: auto; }

.spec-table { width: 100%; border-collapse: collapse; margin-bottom: 24px; }
.spec-table th, .spec-table td {
  text-align: left; padding: 11px 0; font-size: 13.5px;
  border-bottom: 1px solid var(--line); vertical-align: top;
}
.spec-table th { color: var(--ink-9); font-weight: 400; width: 76px; }
.spec-table td { color: var(--ink-2); }

.d-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 22px; }
.d-actions .btn { height: 42px; font-size: 14px; }

.d-files { border-top: 1px solid var(--line); padding-top: 18px; }
.d-files h4 { margin: 0 0 12px; font-size: 13px; color: var(--ink-9); font-weight: 400; letter-spacing: 1px; }
.file-item {
  display: flex; align-items: center; gap: 10px; padding: 10px 13px;
  border: 1px solid var(--line-2); border-radius: 8px; margin-bottom: 8px;
  font-size: 13.5px; color: var(--ink-2); transition: all .15s;
}
.file-item:hover { border-color: var(--gold); color: var(--gold); }
.file-item .fi { flex: none; color: var(--gold); }

/* 描述区收成一个 900px 的阅读列：整屏铺满时正文一行太长，图也会被撑大 */
.d-desc { padding: 0 0 64px; max-width: 900px; margin: 0 auto; }
.d-desc h3 {
  font-size: 17px; color: var(--ink); font-weight: 600; margin: 0 0 20px;
  padding-left: 13px; position: relative;
}
.d-desc h3::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 3px; height: 15px; background: var(--gold); border-radius: 2px;
}
.d-desc .desc-body { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
/* 详情描述图：小程序存的是 inline「width:100%」，在宽卡片里会被撑到 1150px
   （790×1467 的竖图 = 2147px 高，两屏都放不完）。这里用 !important 压掉 inline，
   改成「不超过原图像素、最多 620px、居中」—— 顺带解决 286px 小图被放大糊掉的问题。
   点击可看原图（site.js 接的灯箱）。 */
.d-desc .desc-body img {
  width: auto !important;
  max-width: min(100%, 620px);
  height: auto;
  border-radius: 4px;
  margin: 14px auto !important;
  cursor: zoom-in;
}

/* 图片放大层 */
.lightbox {
  position: fixed; inset: 0; background: rgba(12, 12, 13, .93); z-index: 200;
  display: none; align-items: center; justify-content: center; padding: 30px;
}
.lightbox.on { display: flex; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 4px; }
.lightbox .close {
  position: absolute; top: 18px; right: 22px; width: 40px; height: 40px;
  border-radius: 50%; border: 0; background: rgba(255, 255, 255, .14); color: #fff; font-size: 20px;
}
.lightbox .nav-prev, .lightbox .nav-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px; border-radius: 50%; border: 0;
  background: rgba(255, 255, 255, .14); color: #fff; font-size: 20px;
}
.lightbox .nav-prev { left: 18px; }
.lightbox .nav-next { right: 18px; }

/* ============ 关于页 ============ */
.about-hero { padding: 58px 0 40px; }
.about-logo { width: 280px; height: auto; margin-bottom: 28px; }
.about-hero h1 { margin: 0 0 16px; font-size: 32px; color: var(--ink); font-weight: 600; letter-spacing: .5px; }
.about-hero p { margin: 0; font-size: 15.5px; color: var(--ink-3); max-width: 720px; line-height: 1.95; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 24px; }
.about-box { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.about-box h3 { margin: 0 0 14px; font-size: 16px; color: var(--ink); font-weight: 600; }
.about-box ul { margin: 0; padding-left: 18px; }
.about-box li { font-size: 13.5px; color: var(--ink-3); line-height: 2.1; }
.contact-row { display: flex; gap: 10px; padding: 9px 0; font-size: 14px; border-bottom: 1px solid var(--line); }
.contact-row:last-child { border-bottom: 0; }
.contact-row .k { color: var(--ink-9); width: 76px; flex: none; }
.contact-row .v { color: var(--ink); font-weight: 500; }

/* ============ 页脚 ============ */
.site-footer { background: #232326; color: rgba(255, 255, 255, .62); padding: 46px 0 26px; margin-top: 20px; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 34px; padding-bottom: 28px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.footer-top h4 { margin: 0 0 14px; font-size: 13.5px; color: #fff; font-weight: 500; letter-spacing: .5px; }
.footer-top p { margin: 0 0 7px; font-size: 13px; line-height: 1.9; }
.footer-top a:hover { color: var(--gold); }
.footer-brand .footer-logo { height: 56px; width: auto; margin-bottom: 2px; }
.footer-brand .desc { margin-top: 16px; max-width: 320px; font-size: 13px; line-height: 1.9; }
.footer-links a { display: block; padding: 5px 0; font-size: 13px; }
.footer-bottom { padding-top: 20px; font-size: 12px; color: rgba(255, 255, 255, .38); display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.footer-bottom a { color: rgba(255, 255, 255, .55); }
.fb-right { display: inline-flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.fb-right .icp:hover { color: #fff; text-decoration: underline; }

/* ============ 空态 / 加载 ============ */
.empty { text-align: center; padding: 70px 0; color: var(--ink-9); font-size: 14px; }
.empty .big { font-size: 34px; color: #DADADC; margin-bottom: 12px; }

/* 骨架（图未加载时的灰底，与小程序同色系） */
.sk { background: var(--img-bg); }

/* ============ 响应式 ============ */
@media (max-width: 1080px) {
  .p-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .nav, .header-tel { display: none; }
  .btn-menu { display: block; }
  .hero h1 { font-size: 31px; }
  .hero { min-height: 380px; }
  .section { padding: 46px 0; }
  .detail-top { grid-template-columns: 1fr; gap: 26px; }
  .about-grid, .merit-grid, .footer-top { grid-template-columns: 1fr; }
  .list-layout { grid-template-columns: 1fr; }
  .filters {
    position: fixed; inset: 0 auto 0 0; width: 80vw; max-width: 320px; z-index: 81;
    background: #fff; padding: 18px; overflow-y: auto; margin: 0;
    transform: translateX(-100%); transition: transform .24s;
    top: 0; border-right: 1px solid var(--line);
  }
  .filters.on { transform: translateX(0); }
  .btn-filter-m { display: inline-flex; }
  .sort-group { margin-left: 0; width: 100%; }
  .search-box { max-width: none; }
}

@media (max-width: 680px) {
  .p-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .logo-en { height: 28px; }
  .logo-txt { padding-left: 9px; gap: 2px; }
  .logo-text { font-size: 13px; }
  .logo-sub { font-size: 9px; letter-spacing: .8px; }
  .hero { min-height: 340px; }
  .hero h1 { font-size: 25px; }
  .hero p { font-size: 14px; }
  .hero-inner { padding: 52px 0; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .section-head h2 { font-size: 21px; }
  .p-card .name { font-size: 13px; min-height: 39px; }
  .p-card .price { font-size: 16px; }
  .p-card .body { padding: 10px 11px 12px; }
  .cat-tile { padding: 16px 13px; gap: 11px; }
  .cat-tile .ico { width: 38px; height: 38px; }
  .cat-tile .nm { font-size: 13.5px; }
  .d-info h1 { font-size: 20px; }
  .d-price .num { font-size: 25px; }
  .d-desc .desc-body { padding: 12px; }
  .footer-bottom { flex-direction: column; gap: 6px; }
  .gallery-thumbs button { width: 58px; height: 58px; }
}
