/* ============================================================
   产品展示站 · 共用样式
   设计令牌取自 www.miii.cn（爱想官网）
   ============================================================ */

/* ============ 设计令牌 ============ */
:root {
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --sub: #86868b;
  --paper: #fff;
  --card: #f5f5f7;
  --line: #d2d2d7;
  --blue: #0071e3;
  --blue-hover: #0077ed;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 130px; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink); background: var(--paper); line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
/* hidden 属性优先级：防止 display:grid 等作者样式覆盖 */
[hidden] { display: none !important; }
a:focus-visible, button:focus-visible, select:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid #2997ff; outline-offset: 5px; border-radius: 4px;
}

/* ============ 顶栏 ============ */
header {
  position: sticky; top: 0; z-index: 20; height: 64px;
  padding: 0 max(5%, calc((100% - 1200px) / 2));
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  background: #fafafae8; backdrop-filter: blur(20px);
  border-bottom: 1px solid #0000000d;
}
.brand { font: 800 26px/1 Arial, sans-serif; letter-spacing: -2px; display: flex; align-items: center; gap: 14px; }
.brand span { font-size: 12px; letter-spacing: 2px; font-weight: 500; border-left: 1px solid #bbb; padding-left: 14px; color: var(--muted); }
header nav { display: flex; gap: 26px; font-size: 13.5px; }
header nav a { color: var(--muted); padding: 10px 2px; border-bottom: 2px solid transparent; transition: color .2s, border-color .2s; }
header nav a:hover { color: var(--ink); }
header nav a.active { color: var(--ink); border-color: var(--blue); }
.header-link {
  background: var(--blue); color: #fff; padding: 9px 17px;
  border-radius: 30px; font-size: 12px; transition: background .2s;
}
.header-link:hover { background: var(--blue-hover); }

/* ============ 搜索栏 ============ */
.search-wrap {
  position: relative; width: 100%; max-width: 360px;
  display: flex; align-items: center;
}
.search-icon {
  position: absolute; left: 14px; font-size: 14px;
  pointer-events: none; opacity: .5;
}
.search-input {
  width: 100%; padding: 10px 36px 10px 38px;
  border: 1px solid var(--line); border-radius: 22px;
  font: inherit; font-size: 14px; background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.search-input:focus {
  outline: none; border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0,113,227,.12);
}
.search-input::-webkit-search-cancel-button { display: none; }
.search-clear {
  position: absolute; right: 10px;
  width: 22px; height: 22px; border-radius: 50%;
  border: none; background: var(--line); color: var(--muted);
  font-size: 12px; cursor: pointer; display: grid; place-items: center;
}
.search-clear:hover { background: var(--ink); color: #fff; }
@media (max-width: 640px) {
  .search-wrap { max-width: 100%; }
}

/* ============ 筛选折叠 + 条件摘要 ============ */
.filter-toggle {
  display: none; align-items: center; gap: 6px;
  font: inherit; font-size: 13px; cursor: pointer;
  padding: 8px 14px; border-radius: 22px;
  border: 1px solid var(--line); background: #fff; color: var(--muted);
}
.filter-toggle .ft-arrow { transition: transform .25s; font-size: 11px; }
.toolbar.collapsed .ft-arrow { transform: rotate(-90deg); }
.toolbar.collapsed .selects { display: none; }
.toolbar.collapsed .filters { display: none; }
.active-filters {
  display: none; gap: 6px; flex-wrap: wrap; width: 100%;
}
.active-filters.show { display: flex; }
.af-chip {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; padding: 5px 12px; border-radius: 20px;
  background: var(--accent-soft, #e2effe); color: var(--blue); font-weight: 500;
  cursor: pointer; border: none;
}
.af-chip:hover { background: #d4e6fd; }
.af-chip .x { font-size: 14px; line-height: 1; }
@media (max-width: 640px) {
  .filter-toggle { display: inline-flex; }
  .toolbar { gap: 8px; padding: 10px max(5%, 16px); }
  .toolbar .filters { width: 100%; justify-content: center; }
  .toolbar .selects { width: 100%; }
}

/* ============ 选型栏分享按钮 ============ */
.sel-bar .btn-share {
  background: rgba(255,255,255,.18); color: #fff; border: 1px solid rgba(255,255,255,.25);
}
.sel-bar .btn-share:hover { background: rgba(255,255,255,.28); }
.sel-bar .btn-share.copied { background: #2d8a4e; border-color: #2d8a4e; }

/* ============ 语言切换器 ============ */
.lang-switch {
  display: inline-flex; gap: 2px;
  background: var(--card); border-radius: 30px; padding: 4px;
}
.lang-switch button {
  font: inherit; font-size: 12px; cursor: pointer;
  background: transparent; border: 0; border-radius: 25px;
  padding: 6px 14px; color: var(--muted);
  transition: background .18s, color .18s;
}
.lang-switch button:hover { color: var(--ink); }
.lang-switch button[aria-selected="true"] { background: var(--ink); color: #fff; }

/* ============ 通用按钮 / 标签 ============ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: 99px;
  font-size: 14px; font-weight: 600; cursor: pointer; border: none;
  transition: background .2s, transform .18s;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-hover); transform: translateY(-1px); }
.btn-ghost { background: transparent; border: 1.5px solid var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.tag { font-size: 12px; font-weight: 500; padding: 4px 12px; border-radius: 20px; background: #e8e8ed; color: var(--ink); }
.tag.blue { background: #e2effe; color: var(--blue); }

/* ============ 产品勾选 + 选型导出 ============ */
.p-check {
  position: absolute; top: 10px; left: 10px; z-index: 3;
  width: 26px; height: 26px;
  border-radius: 50%; border: 2px solid #c4c9d2;
  background: rgba(255,255,255,.88);
  cursor: pointer;
  display: grid; place-items: center;
  transition: border-color .18s, background .18s, transform .15s;
}
.p-check:hover { border-color: var(--blue); transform: scale(1.1); }
.p-check[aria-checked="true"] {
  border-color: var(--blue); background: var(--blue);
}
.p-check[aria-checked="true"]::after {
  content: "✓"; color: #fff; font-size: 14px; font-weight: 700; line-height: 1;
}
.product.selected { outline: 2.5px solid var(--blue); outline-offset: -2px; }

.sel-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 30;
  background: rgba(29,29,31,.96); color: #fff;
  padding: 12px max(5%, 24px);
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  transform: translateY(110%);
  transition: transform .35s cubic-bezier(.22,.61,.36,1);
  box-shadow: 0 -8px 30px rgba(0,0,0,.18);
}
.sel-bar.show { transform: translateY(0); }
.sel-bar .sel-count { font-size: 14px; font-weight: 600; }
.sel-bar .sel-count b { color: #7ea7ff; font-size: 18px; margin: 0 2px; }
.sel-bar .sel-actions { margin-left: auto; display: flex; gap: 10px; flex-wrap: wrap; }
.sel-bar button {
  font: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
  border: none; border-radius: 99px; padding: 10px 22px;
  transition: background .18s, transform .15s;
}
.sel-bar .btn-export { background: var(--blue); color: #fff; }
.sel-bar .btn-export:hover { background: var(--blue-hover); transform: translateY(-1px); }
.sel-bar .btn-clear { background: rgba(255,255,255,.14); color: #ddd; }
.sel-bar .btn-clear:hover { background: rgba(255,255,255,.22); }

/* ============ 打印 / PDF 选型单 ============ */
#printSheet { display: none; }
@media print {
  @page { size: A4; margin: 14mm 12mm; }
  body > *:not(#printSheet) { display: none !important; }
  #printSheet { display: block; font-size: 11pt; color: #1d1d1f; }
  .print-head {
    display: flex; align-items: baseline; justify-content: space-between;
    border-bottom: 2.5px solid #1d1d1f; padding-bottom: 8px; margin-bottom: 4px;
  }
  .print-head h1 { font-size: 18pt; letter-spacing: -.5px; }
  .print-head .meta { font-size: 9pt; color: #6e6e73; text-align: right; line-height: 1.5; }
  .print-items { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
  .print-card {
    border: 1px solid #d2d2d7; border-radius: 8px;
    padding: 10px 12px;
    break-inside: avoid; page-break-inside: avoid;
    display: flex; gap: 12px;
  }
  .print-card .pc-img {
    width: 110px; height: 110px; flex: none;
    background: #f5f5f7; border-radius: 6px;
    display: grid; place-items: center; overflow: hidden;
  }
  .print-card .pc-img img {
    max-width: 100%; max-height: 100%; object-fit: contain; padding: 4px;
  }
  .print-card .pc-img .ph {
    font-size: 9pt; color: #999; text-align: center;
  }
  .print-card .pc-body { flex: 1; min-width: 0; }
  .print-card .pc-model {
    font-size: 13pt; font-weight: 700; letter-spacing: -.3px;
    border-bottom: 1px solid #e4e8ee; padding-bottom: 5px; margin-bottom: 6px;
  }
  .print-card .pc-model .cat {
    font-size: 8pt; font-weight: 500; color: #6e6e73;
    margin-left: 8px; letter-spacing: 0;
  }
  .print-card .pc-specs { font-size: 9pt; }
  .print-card .pc-specs .r {
    display: flex; justify-content: space-between;
    padding: 2.5px 0; border-bottom: 1px solid #f0f1f4;
  }
  .print-card .pc-specs .r .k { color: #6e6e73; }
  .print-card .pc-specs .r .v { font-weight: 600; text-align: right; }
  .print-foot {
    margin-top: 16px; padding-top: 8px;
    border-top: 1.5px solid #d2d2d7;
    font-size: 8.5pt; color: #6e6e73; line-height: 1.8;
  }
  .print-foot b { color: #1d1d1f; }
}
/* 屏幕预览模式（点导出后先看排版） */
#printSheet.preview {
  display: block !important;
  max-width: 820px; margin: 24px auto; padding: 32px 28px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
}
#printSheet.preview .print-items { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
#printSheet.preview .print-card {
  border: 1px solid var(--line); border-radius: 10px; padding: 14px;
  display: flex; gap: 14px;
}
#printSheet.preview .print-head { border-bottom: 2.5px solid var(--ink); padding-bottom: 10px; }
#printSheet.preview .print-head h1 { font-size: 22px; }
#printSheet.preview .pc-model { font-size: 16px; border-bottom: 1px solid var(--line); padding-bottom: 6px; margin-bottom: 8px; }
#printSheet.preview .pc-img { width: 120px; height: 120px; flex: none; background: var(--card); border-radius: 8px; display: grid; place-items: center; overflow: hidden; }
#printSheet.preview .pc-img img { max-width: 100%; max-height: 100%; object-fit: contain; padding: 4px; }
#printSheet.preview .pc-specs { font-size: 12.5px; }
#printSheet.preview .pc-specs .r { display: flex; justify-content: space-between; padding: 3px 0; border-bottom: 1px solid #f0f1f4; }
#printSheet.preview .pc-specs .r .k { color: var(--muted); }
#printSheet.preview .pc-specs .r .v { font-weight: 600; }
#printSheet.preview .print-foot { margin-top: 18px; padding-top: 10px; border-top: 1.5px solid var(--line); font-size: 11.5px; color: var(--muted); line-height: 1.8; }
.print-close {
  display: none;
  position: fixed; top: 18px; right: 18px; z-index: 40;
  padding: 10px 24px; border-radius: 99px;
  background: var(--ink); color: #fff; font-size: 13px; font-weight: 600;
  border: none; cursor: pointer;
}
#printSheet.preview ~ .print-close { display: block; }

/* ============ 页脚 ============ */
footer {
  background: var(--card); border-top: 1px solid var(--line);
  padding: 40px max(7%, calc((100% - 1200px) / 2)) 30px;
  color: var(--muted); font-size: 12.5px;
  display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap;
}
footer a { color: var(--blue); }

/* ============ 首图带 ============ */
.head-band {
  background: #000; color: #f5f5f7;
  padding: clamp(48px, 6vw, 80px) max(7%, calc((100% - 1200px) / 2));
}
.head-band .eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 1px; color: var(--sub); margin-bottom: 16px; }
.head-band h1 { font-size: clamp(30px, 4vw, 50px); font-weight: 650; letter-spacing: -2px; line-height: 1.15; }
.head-band p { color: var(--sub); font-size: 15px; margin-top: 12px; }

/* ============ 产品列表：筛选栏 ============ */
.toolbar {
  position: sticky; top: 64px; z-index: 15;
  background: rgba(255,255,255,.92); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  padding: 14px max(5%, calc((100% - 1200px) / 2));
  display: flex; gap: 12px; flex-wrap: wrap; align-items: center;
}
.filters { display: inline-flex; gap: 4px; background: var(--card); border-radius: 30px; padding: 5px; }
.filters button {
  font: inherit; font-size: 13px; cursor: pointer;
  background: transparent; border: 0; border-radius: 25px;
  padding: 9px 18px; color: var(--muted);
  transition: background .2s, color .2s;
}
.filters button:hover { color: var(--ink); }
.filters button[aria-selected="true"] { background: var(--ink); color: #fff; }
.selects { display: flex; gap: 8px; flex-wrap: wrap; margin-left: auto; align-items: center; }
.selects select {
  font: inherit; font-size: 13px; color: var(--ink);
  padding: 9px 14px; border: 1px solid var(--line); border-radius: 22px;
  background: #fff; cursor: pointer;
}
.selects select.on { border-color: var(--blue); color: var(--blue); font-weight: 500; }
.reset {
  font: inherit; font-size: 13px; cursor: pointer;
  padding: 9px 16px; border-radius: 22px;
  border: 1px solid var(--line); background: #fff; color: var(--muted);
  display: none; align-items: center; gap: 6px;
}
.reset.show { display: inline-flex; }
.reset:hover { border-color: var(--ink); color: var(--ink); }
.count { font-size: 13px; color: var(--muted); width: 100%; }

/* ============ 产品网格 ============ */
.catalog {
  max-width: 1200px; margin: 0 auto;
  padding: clamp(28px, 4vw, 48px) max(5%, 24px) clamp(60px, 8vw, 100px);
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.product {
  background: var(--card); border-radius: 18px; overflow: hidden;
  display: flex; flex-direction: column;
  cursor: pointer;
  transition: transform .25s cubic-bezier(.22,.61,.36,1), box-shadow .25s;
}
.product:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(0,0,0,.09); }
.p-img {
  aspect-ratio: 1 / 1; background: #fff;
  display: grid; place-items: center; overflow: hidden; position: relative;
}
.p-img img { width: 100%; height: 100%; object-fit: contain; padding: 8%; }
.p-img .ph {
  color: var(--sub); font-size: 12px; letter-spacing: 1px;
  text-align: center; padding: 20px;
}
.p-img .ph b { display: block; font-size: 26px; letter-spacing: -1px; color: var(--line); margin-bottom: 8px; }
.p-img .badge {
  position: absolute; top: 10px; right: 10px;
  background: rgba(29,29,31,.72); color: #fff;
  font-size: 11px; padding: 3px 10px; border-radius: 20px;
}
.p-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.p-desc {
  font-size: 12.5px; color: var(--muted); line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.p-model { font-size: 17px; font-weight: 650; letter-spacing: -.2px; display: flex; align-items: baseline; gap: 8px; }
.p-model .cat { font-size: 11px; font-weight: 500; color: var(--muted); background: #e8e8ed; padding: 2px 9px; border-radius: 20px; }
.p-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; font-size: 12.5px; }
.p-specs .s { display: flex; justify-content: space-between; gap: 8px; border-bottom: 1px solid var(--line); padding: 4px 0; }
.p-specs .s .k { color: var(--muted); white-space: nowrap; }
.p-specs .s .v { font-weight: 500; text-align: right; }
.p-more {
  margin-top: auto; padding-top: 8px;
  font-size: 12.5px; color: var(--blue); font-weight: 500;
  display: flex; align-items: center; gap: 5px;
}
.empty { grid-column: 1 / -1; text-align: center; padding: 70px 20px; color: var(--muted); }

/* ============ 产品详情弹层（快速预览） ============ */
dialog#detail {
  border: none; border-radius: 22px; padding: 0;
  width: min(960px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  box-shadow: 0 30px 90px rgba(0,0,0,.28);
}
dialog#detail::backdrop { background: rgba(20,22,28,.5); backdrop-filter: blur(4px); }
.d-wrap { display: grid; grid-template-columns: 1.1fr 1fr; }
.d-left { background: var(--card); padding: 22px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.d-stage {
  background: #fff; border-radius: 14px; overflow: hidden;
  aspect-ratio: 1 / 1; position: relative;
}
.d-stage img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; padding: 5%;
  opacity: 0; transform: scale(1.02);
  transition: opacity .35s cubic-bezier(.22,.61,.36,1), transform .35s cubic-bezier(.22,.61,.36,1);
}
.d-stage img.on { opacity: 1; transform: none; }
.d-thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.d-thumbs button {
  width: 62px; height: 62px; padding: 3px;
  border: 2px solid transparent; border-radius: 10px;
  background: #fff; cursor: pointer; overflow: hidden;
}
.d-thumbs button[aria-selected="true"] { border-color: var(--blue); }
.d-thumbs img { width: 100%; height: 100%; object-fit: contain; }
.d-right { padding: 28px 26px; overflow-y: auto; min-width: 0; position: relative; }
.d-close {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  width: 36px; height: 36px; border-radius: 50%;
  border: none; background: rgba(29,29,31,.06); cursor: pointer;
  font-size: 17px; color: var(--ink);
}
.d-close:hover { background: rgba(29,29,31,.12); }
.d-eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 1px; color: var(--muted); }
.d-title { font-size: 26px; font-weight: 650; letter-spacing: -.5px; margin: 6px 0 2px; }
.d-sub { color: var(--muted); font-size: 13.5px; margin-bottom: 16px; }
.d-spec { border-top: 1px solid var(--line); margin-bottom: 18px; }
.d-spec .row {
  display: grid; grid-template-columns: 90px 1fr; gap: 14px;
  padding: 10px 2px; border-bottom: 1px solid var(--line); font-size: 14px;
}
.d-spec .row .k { color: var(--muted); font-size: 13px; }
.d-spec .row .v { font-weight: 500; }
.d-spec .row .v small { font-weight: 400; color: var(--muted); font-size: 12px; margin-left: 6px; }
.d-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
.d-cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* ============ 产品详情独立页 ============ */
.pd-wrap { max-width: 1200px; margin: 0 auto; padding: clamp(24px, 4vw, 44px) max(5%, 24px) 80px; }
.crumb { font-size: 13px; color: var(--muted); margin-bottom: 22px; display: flex; gap: 8px; flex-wrap: wrap; }
.crumb a:hover { color: var(--ink); }
.crumb .sep { color: var(--line); }
.crumb b { color: var(--ink); font-weight: 500; }
.pd-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.pd-gallery { background: var(--card); border-radius: 18px; padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.pd-stage { background: #fff; border-radius: 14px; aspect-ratio: 1/1; position: relative; overflow: hidden; }
.pd-stage img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; padding: 4%;
  opacity: 0; transform: scale(1.02);
  transition: opacity .35s cubic-bezier(.22,.61,.36,1), transform .35s cubic-bezier(.22,.61,.36,1);
}
.pd-stage img.on { opacity: 1; transform: none; }
.pd-stage .ph { display: grid; place-items: center; height: 100%; color: var(--sub); font-size: 13px; letter-spacing: 1px; }
.pd-thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.pd-thumbs button {
  width: 72px; height: 72px; padding: 4px;
  border: 2px solid transparent; border-radius: 10px;
  background: #fff; cursor: pointer; overflow: hidden;
}
.pd-thumbs button[aria-selected="true"] { border-color: var(--blue); }
.pd-thumbs img { width: 100%; height: 100%; object-fit: contain; }
.pd-info .eyebrow { font-size: 12.5px; font-weight: 600; letter-spacing: 1.5px; color: var(--muted); }
.pd-info h1 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 650; letter-spacing: -1px; margin: 8px 0 6px; }
.pd-info .desc { color: var(--muted); font-size: 15px; margin-bottom: 24px; }
.pd-spec { border-top: 1px solid var(--line); margin-bottom: 24px; }
.pd-spec .row {
  display: grid; grid-template-columns: 100px 1fr; gap: 16px;
  padding: 13px 2px; border-bottom: 1px solid var(--line); font-size: 15px;
}
.pd-spec .row .k { color: var(--muted); font-size: 13.5px; padding-top: 1px; }
.pd-spec .row .v { font-weight: 500; }
.pd-spec .row .v small { font-weight: 400; color: var(--muted); font-size: 12.5px; margin-left: 8px; }
.pd-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.pd-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.pd-note { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12.5px; }
.not-found { text-align: center; padding: 100px 20px; color: var(--muted); }
.not-found h2 { color: var(--ink); margin-bottom: 12px; }

/* ============ 产品详情：全部图片/按键布局展示 ============ */
.pd-allimgs {
  grid-column: 1 / -1;
  margin-top: 8px;
}
.pd-allimgs h3 {
  font-size: 15px; font-weight: 650; margin-bottom: 14px;
  display: flex; align-items: center; gap: 8px;
}
.pd-allimgs h3 .count-badge {
  font-size: 11px; font-weight: 500;
  background: var(--accent-soft, #e2effe); color: var(--blue);
  padding: 2px 10px; border-radius: 20px;
}
.pd-imggrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}
.pd-imggrid .gi {
  position: relative; border-radius: 12px; overflow: hidden;
  aspect-ratio: 3 / 4; background: var(--card);
  cursor: zoom-in; border: 1.5px solid transparent;
  transition: border-color .2s, transform .2s;
}
.pd-imggrid .gi:hover { border-color: var(--blue); transform: scale(1.02); }
.pd-imggrid .gi img {
  width: 100%; height: 100%; object-fit: contain; padding: 6%;
}
.pd-imggrid .gi .gi-label {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 6px 10px; font-size: 11px; color: var(--muted);
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(6px);
  text-align: center;
}
@media (max-width: 560px) {
  .pd-imggrid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
}

/* ============ 联系我们页 ============ */
.ct-wrap { max-width: 900px; margin: 0 auto; padding: clamp(40px, 6vw, 80px) max(5%, 24px) 90px; }
.ct-wrap h1 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 650; letter-spacing: -1px; margin-bottom: 10px; }
.ct-wrap .lead { color: var(--muted); font-size: 15px; margin-bottom: 40px; }
.ct-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-bottom: 44px; }
.ct-card { background: var(--card); border-radius: 16px; padding: 24px; }
.ct-card .k { font-size: 12px; font-weight: 600; letter-spacing: 1.5px; color: var(--muted); margin-bottom: 10px; }
.ct-card .v { font-size: 18px; font-weight: 600; letter-spacing: -.3px; word-break: break-all; }
.ct-card .v a { color: var(--blue); }
.ct-card .sub { color: var(--muted); font-size: 12.5px; margin-top: 6px; }
.ct-form { background: var(--card); border-radius: 18px; padding: clamp(22px, 4vw, 36px); }
.ct-form h2 { font-size: 20px; font-weight: 650; margin-bottom: 6px; }
.ct-form .hint { color: var(--muted); font-size: 13px; margin-bottom: 22px; }
.ct-form .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ct-form label { display: flex; flex-direction: column; gap: 7px; font-size: 13px; color: var(--muted); }
.ct-form input, .ct-form textarea {
  font: inherit; font-size: 14px; color: var(--ink);
  padding: 11px 14px; border: 1px solid var(--line); border-radius: 10px;
  background: #fff;
}
.ct-form textarea { min-height: 110px; resize: vertical; }
.ct-form .full { grid-column: 1 / -1; }
.ct-form .actions { display: flex; gap: 12px; align-items: center; margin-top: 18px; flex-wrap: wrap; }
.ct-form .tip { color: var(--muted); font-size: 12px; }

/* ============ 响应式 ============ */
@media (max-width: 900px) {
  .pd-grid { grid-template-columns: 1fr; }
  .d-wrap { grid-template-columns: 1fr; }
  dialog#detail { width: calc(100vw - 20px); }
}
@media (max-width: 640px) {
  .brand { font-size: 21px; }
  .brand span { display: none; }
  header nav { gap: 16px; font-size: 12.5px; }
  .catalog { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
  .p-specs { grid-template-columns: 1fr; }
  .selects { margin-left: 0; }
  .ct-form .grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
  .d-stage img, .pd-stage img { transform: none; }
}
