/* 磊鹏纺织客户网站 —— 小雅风高级感 */
/* 全局：滚动条占位稳定 → 居中布局左右对称（消除滚动条导致的 15px 偏移） */
html { scrollbar-gutter: stable; }

:root {
  --bg: #faf7f2;
  --ink: #23262e;
  --ink-soft: #5a5f6a;
  --gold: #b08d57;
  --gold-dark: #96733f;
  --line: #e6e0d6;
  --card: #ffffff;
  --warn: #c0392b;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg); color: var(--ink); line-height: 1.7;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { max-width: 1400px; margin: 0 auto; padding: 0 24px; }
.section { padding: 42px 24px; }
.section-title {
  font-size: 22px; letter-spacing: 2px; margin-bottom: 22px;
  display: flex; justify-content: space-between; align-items: baseline;
}
.section-more { font-size: 13px; color: var(--gold-dark); letter-spacing: 0; }
.empty-tip { color: var(--ink-soft); padding: 40px 0; text-align: center; }

/* ── 头部 ── */
.site-header {
  background: var(--card); border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { width: 44px; height: 44px; object-fit: contain; border-radius: 50%; }
.brand-cn { font-size: 19px; letter-spacing: 2px; display: block; line-height: 1.2; }
.brand-en { font-size: 12.5px; font-weight: 600; color: var(--ink-soft); letter-spacing: 1px; }
.site-nav { display: flex; gap: 26px; align-items: center; }
.site-nav a { font-size: 15px; letter-spacing: 1px; color: var(--ink-soft); position: relative; }
.site-nav a:hover, .site-nav a.on { color: var(--ink); }
.site-nav a.on::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--gold);
}
.site-nav .nav-cta {
  border: 1px solid var(--gold); color: var(--gold-dark); padding: 7px 16px; border-radius: 999px;
}
.site-nav .nav-cta:hover, .site-nav .nav-cta.on { background: var(--gold); color: #fff; }
.nav-toggle, .nav-burger { display: none; }

/* 首屏轮播区 */
.hero { position: relative; }
/* 轮播图收窄：与下方"按分类逛"容器内容区精确对齐（container 1400 - 左右24 = 1352） */
.hero-inner {
  position: relative; width: calc(100% - 48px); max-width: 1352px;
  height: 560px; margin: 16px auto 0; overflow: hidden; border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
  background: #171a20;
}
.hero-slides, .hero-slide { position: absolute; inset: 0; }
.hero-slide { opacity: 0; transition: opacity .8s ease; }
.hero-slide.is-on { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-caption { position: absolute; inset: 0; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,20,26,0.08) 0%, rgba(20,20,26,0.55) 100%); }
.hero-info { position: absolute; left: 40px; bottom: 130px; color: #fff; }
.hero-name { font-size: 30px; font-weight: 700; letter-spacing: 3px; display: block; text-shadow: 0 2px 10px rgba(0,0,0,.45); }
.hero-sub { font-size: 14px; opacity: .9; letter-spacing: 2px; display: block; margin-top: 4px; }
.hero-arrow {
  position: absolute; top: 42%; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.7); background: rgba(255,255,255,.18); color: #fff;
  font-size: 26px; cursor: pointer; z-index: 5; line-height: 1;
}
.hero-arrow-prev { left: 18px; }
.hero-arrow-next { right: 18px; }
.hero-arrow:hover { background: rgba(255,255,255,.35); }
.hero-dots { position: absolute; bottom: 96px; left: 0; right: 0; display: flex; gap: 8px; justify-content: center; z-index: 5; }
.hero-dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.45); cursor: pointer; }
.hero-dots i.on { background: #fff; }
.hero-search-wrap { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 20px 26px; z-index: 6; }
.hero-search {
  max-width: 620px; margin: 0 auto; display: flex; background: rgba(255,255,255,.96);
  border-radius: 999px; overflow: hidden; box-shadow: 0 8px 24px rgba(0,0,0,.16);
}
.hero-search input { flex: 1; border: 0; padding: 14px 22px; font-size: 14px; outline: none; }
.hero-search button {
  border: 0; background: var(--gold); color: #fff; padding: 0 26px; font-size: 14px;
  letter-spacing: 2px; cursor: pointer;
}
.hero-search button:hover { background: var(--gold-dark); }

/* ── 样布卡片：1:1 复刻小程序「产品分类」页卡片，桌面一行 3 张（桌面整体放大）── */
.fabric-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.mp-card { display: flex; background: #fff; border: 1px solid #e8e8e8; border-radius: 6px; padding: 10px; gap: 12px; overflow: hidden; min-height: 150px; box-sizing: border-box; box-shadow: 0 1px 3px rgba(30,30,40,.04); transition: transform .15s, box-shadow .15s; }
.mp-card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.08); }
.mp-card-img { width: 130px; height: 130px; flex-shrink: 0; overflow: hidden; background: #f0f0f0; border-radius: 6px; }
.mp-card-img img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.mp-card-body { flex: 1; min-width: 0; padding: 2px 2px 2px 8px; display: flex; flex-direction: column; justify-content: space-between; }
/* 名称独占一行：不换行、无省略号；代码移至第二行 —— 统一字符间距/行高保证稳定 */
.mp-card-body, .mp-card-body * { -webkit-font-smoothing: antialiased; }
.mp-name-line { display: block; min-width: 0; }
.mp-name { font-size: 16px; font-weight: 600; color: #1a1a1a; letter-spacing: .4px; line-height: 1.45; white-space: nowrap; overflow: hidden; text-overflow: clip; display: block; min-width: 0; }
.mp-code { font-size: 11.5px; color: #999; letter-spacing: .4px; line-height: 1.4; margin: 1px 0 0; }
.mp-specs { margin: 3px 0 0; }
.spec-row { display: flex; align-items: baseline; line-height: 1.5; min-width: 0; }
.spec-label { font-size: 13px; color: #999; flex-shrink: 0; letter-spacing: .25px; }
.spec-value { font-size: 13px; color: #555; margin-left: 5px; letter-spacing: .25px; flex: 1; min-width: 0; word-break: keep-all; }
/* 成分：两个一组整齐换行，完整显示不剪裁 */
.spec-row-comp { align-items: flex-start; }
.comp-grid { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; gap: 2px 5px; }
.comp-item { flex: 0 0 calc(50% - 3px); font-size: 13px; color: #555; letter-spacing: .25px; white-space: nowrap; overflow: hidden; text-overflow: clip; min-width: 0; }
.mp-cats { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 3px; max-height: 24px; overflow: hidden; }
.mp-cat-tag { flex: 1; text-align: center; font-size: 12px; color: #1a3a5c; background: #e8f0f8; padding: 3px 10px; border-radius: 4px; border: 1px solid #c8d8e8; white-space: nowrap; letter-spacing: .3px; line-height: 1.4; }
.mp-cat-none { color: #999; background: #f2f2f2; border-color: #e0e0e0; }
.no-img { display: flex; align-items: center; justify-content: center; height: 100%; color: #b9b2a4; font-size: 13px; }
.btn {
  display: inline-block; border-radius: 999px; padding: 11px 26px; font-size: 14px;
  letter-spacing: 2px; cursor: pointer; border: 1px solid transparent;
}
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: var(--gold-dark); }
.btn-line { border-color: var(--gold); color: var(--gold-dark); background: var(--card); }
.btn-line:hover { background: var(--gold); color: #fff; }
.btn-wechat { background: #07c160; color: #fff; border: 1px solid #07c160; }
/* 微信二维码弹窗 */
.wx-modal { display: none; position: fixed; inset: 0; background: rgba(20,22,28,.55); z-index: 100; align-items: center; justify-content: center; }
.wx-card { background: #fff; border-radius: 14px; padding: 26px 30px; text-align: center; max-width: 320px; width: 90%; box-shadow: 0 18px 50px rgba(0,0,0,.3); }
.wx-card h3 { margin-bottom: 12px; font-size: 16px; }
.wx-card img { width: 200px; height: 200px; border: 1px solid #e8e8e8; border-radius: 10px; }
.wx-card p { margin: 10px 0 4px; font-size: 14px; }
.wx-tip { color: #888; font-size: 12.5px !important; }
.wx-card .btn { margin-top: 10px; }

/* 微信弹窗：左右两栏（左二维码 / 右已复制文本） */
.wx-wxcard { max-width: 560px; width: 94%; padding: 22px 24px; text-align: left; }
.wx-wxcard h3 { margin: 0 0 10px; font-size: 16px; color: #333; }
.wx-split { display: flex; gap: 24px; align-items: center; }
.wx-qr-col {
  flex: 0 0 210px; text-align: center;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
}
.wx-qr-col img {
  width: 190px; height: 190px;
  border: 1px solid #e8e8e8; border-radius: 10px;
}
.wx-copy-col {
  flex: 1 1 auto; min-width: 0;
  display: flex; flex-direction: column; gap: 10px;
}
.wx-copied-head {
  font-weight: 600; color: #2e7d32; font-size: 13.5px; margin-bottom: 7px;
}
.wx-copied-sub {
  margin-top: 8px; color: #777; font-size: 12px;
}
.wx-copy-col .btn { align-self: flex-start; margin-top: 4px; }
@media (max-width: 640px) {
  .wx-wxcard { max-width: 94%; }
  .wx-split { flex-direction: column; gap: 12px; }
  .wx-qr-col { flex: none; }
  .wx-qr-col img { width: 160px; height: 160px; }
}

/* ═══ 询价单：左侧表格 + 右侧发送面板 ═══ */
.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
  align-items: start;
}
.cart-main { min-width: 0; }
.cart-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 20px;
  margin-bottom: 18px;
}
.cart-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.cart-card-head h2 { font-size: 16px; margin: 0; display: flex; align-items: center; gap: 8px; }
.cart-hint { font-size: 12px; color: #999; font-weight: normal; }
.cart-badge {
  font-size: 12px; background: #f5f2ea; color: var(--gold-dark);
  border-radius: 10px; padding: 2px 9px; white-space: nowrap;
}
.cart-link { font-size: 13px; color: var(--gold-dark); white-space: nowrap; }
.cart-meters {
  width: 64px; border: 1px solid var(--line); border-radius: 8px;
  padding: 6px 8px; font-size: 14px; text-align: center; vertical-align: middle;
}
.cart-meters:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(197,169,73,.18); }
.cart-del {
  border: none; background: none; color: #c0392b; font-size: 14px;
  cursor: pointer; padding: 5px 8px; border-radius: 6px; line-height: 1;
}
.cart-del:hover { background: #fdecea; }
.cart-empty-row td { padding: 30px; text-align: center; color: #888; }
.cart-empty-row a { color: var(--gold-dark); }

/* 询价单：样布库同款卡片清单（图+代码名称+成份+克重+门幅+标签+米数） */
.cart-items { display: flex; flex-direction: column; gap: 12px; }
/* 卡片结构（2026-09-12 重排，为的是让缩略图上沿齐产品代码、下沿齐产品分类）：
     .cart-item        块级容器（position:relative 给右上角 ✕ 做定位基准）
     ├ .cart-item-main 横向 flex：左图 + 右文字块，align-items: stretch
     │  ├ .cart-item-img   图片容器：高度跟随同行的文字块
     │  └ .cart-item-text  标题行 + 规格行（含分类）
     └ .cart-item-ctrl 米数行
   图和文字同处 .cart-item-main 这一行且都是 stretch，
   所以图片的上沿天然对齐标题行上沿、下沿天然对齐规格块下沿。 */
.cart-item { position: relative; display: block; background: #fdfcf8; border: 1px solid #f0ead9; border-radius: 12px; padding: 12px; }
.cart-item-main { position: relative; display: flex; gap: 22px; align-items: stretch; }
/* 图片容器：宽度给死（120px，比上一版 100 大），高度交给 align-items: stretch。
   ⚠️ 内部 img 必须【绝对定位】：
      否则 img 自身的固有高度会参与这一行的高度计算，而容器高度又来自 stretch
      → 循环依赖，浏览器只能把百分比高度当 auto 处理，图片失控（上一版就是这么坏的）。
      绝对定位后容器不再被内容撑高，行高完全由右侧文字块决定。 */
.cart-item-img {
  position: relative;
  width: 120px;
  flex-shrink: 0;
  background: #f5f5f5;
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
}
.cart-item-img img { position: absolute; top: 0; right: 0; bottom: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
.cart-item-img .c-noimg { position: absolute; top: 0; right: 0; bottom: 0; left: 0; display: flex; align-items: center; justify-content: center; color: #bbb; }
.cart-item-text { flex: 1; min-width: 0; }
/* 标题行右侧留出 ✕ 的位置，免得压住布号 */
.cart-item-top { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; padding-right: 40px; }
.cart-item-top b { font-size: 14px; color: #1a3a5c; }
.cart-item-name { font-size: 13px; color: #555; }
.cart-item-specs { margin-top: 6px; display: flex; flex-direction: column; gap: 3px; font-size: 12.5px; color: #666; }
.cart-spec { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.cart-spec-label { color: #999; flex-shrink: 0; }
.cart-cats { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.cart-cats .mp-cat-tag { font-size: 11px; }
/* 给右下角的「米数」让位：最后一行（通常是分类标签行）右边留出它的宽度，
   免得标签伸过去压到输入框。 */
.cart-item-specs .cart-spec:last-child { padding-right: 118px; }
/* 米数：绝对定位到【主区】右下角 —— 底边与缩略图底边严格齐平
   （缩略图底边又正好是分类行底边）。
   之前它是主区下面单独一行，所以落在图片底边之下，怎么调都差一截。 */
.cart-item-ctrl { position: absolute; right: 0; bottom: 0; display: flex; align-items: center; gap: 8px; }
.cart-item-ctrl .ctrl-label { font-size: 12px; color: #888; }
.cart-empty-row { background: #fff; border: 1px dashed var(--line); border-radius: 12px; padding: 30px; text-align: center; color: #888; font-size: 13px; }
.cart-empty-row a { color: var(--gold-dark); }
.section-sub { font-size: 12px; color: #bbb; font-weight: normal; margin-left: 8px; letter-spacing: .5px; }
@media (max-width: 560px) {
  /* 窄屏：图与文字改为上下排列。
     注意图片容器内部是绝对定位的 img（不撑高），所以这里必须给明确高度，
     否则 flex-direction: column 下容器会塌成 0。 */
  .cart-item-main { flex-direction: column; }
  .cart-item-img { width: 100%; height: 180px; }
  /* 窄屏下主区变成竖排，米数绝对定位会压到文字上 —— 恢复成正常流的一行，
     并撤掉给绝对定位预留的那段右内边距。 */
  .cart-item-ctrl { position: static; margin-top: 10px; }
  .cart-item-specs .cart-spec:last-child { padding-right: 0; }
}

/* 联系信息表单 */
.cart-contacts .c-row { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.cart-contacts .c-row label { width: 90px; flex-shrink: 0; font-size: 13px; color: #555; }
.cart-contacts .c-row input,
.cart-contacts .c-row textarea {
  flex: 1; min-width: 0; max-width: 460px;
  border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font-size: 13px;
}
.cart-contacts .c-row textarea { min-height: 64px; resize: vertical; }
.cart-contacts .c-row input:focus, .cart-contacts .c-row textarea:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(197,169,73,.18);
}

/* 右侧发送面板（吸顶） */
.cart-side { position: sticky; top: 90px; }
.cart-send {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 18px 20px; box-shadow: 0 6px 18px rgba(0,0,0,.05);
}
.cart-send-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 14px; }
.cart-send-head h2 { font-size: 16px; margin: 0; }
.cart-total { font-size: 13px; color: #888; }
.cart-total b { color: var(--gold-dark); font-size: 15px; }
.btn-block { display: block; width: 100%; padding: 11px 0; font-size: 14px; margin-bottom: 10px; text-align: center; }
.btn-block .ico { display: inline-block; vertical-align: middle; margin-right: 7px; }
.btn-danger { color: #c0392b; border-color: #e3cfc7; background: #fff; }
.btn-danger:hover { background: #fdecea; border-color: #c0392b; }
.btn-danger[data-armed="1"] { background: #c0392b; color: #fff; border-color: #c0392b; }
.cart-send-tip { font-size: 12px; color: #999; line-height: 1.7; margin: 8px 0 0; }
.cart-send-tip b { color: #666; }

@media (max-width: 900px) {
  .cart-layout { grid-template-columns: 1fr; }
  .cart-side { position: static; }
}
/* 宽卡片（微信弹窗带已复制预览 / 邮件确认） */
.wx-card-wide { max-width: 400px; text-align: left; }
.wx-card-wide h3 { margin-bottom: 10px; }
.wx-card-wide .btn { margin-top: 6px; }
/* 已复制文本提示（微信弹窗内） */
.wx-copied-tip {
  background: #f2f8f2; border: 1px solid #cfe6cf; border-radius: 8px;
  padding: 9px 12px; margin: 0 0 12px;
  font-size: 12.5px; color: #2e7d32; line-height: 1.6;
}
.copied-body {
  margin-top: 6px; padding: 8px 10px; max-height: 120px; overflow: auto;
  background: #fff; border: 1px solid #ddeadd; border-radius: 6px;
  font-size: 12px; color: #555; white-space: pre-wrap; word-break: break-all;
  text-align: left;
}
/* 邮件确认弹窗 */
.mail-confirm-preview {
  margin: 8px 0; padding: 10px 12px; max-height: 170px; overflow: auto;
  background: #f8f8f8; border: 1px solid #e8e8e8; border-radius: 8px;
  font-size: 12.5px; color: #555; white-space: pre-wrap; word-break: break-all;
  text-align: left;
}
.mail-confirm-preview:empty { display: none; }
.wx-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 12px; }
.wx-actions .btn { margin-top: 0; }
.wx-actions .btn-plain { background: #fff; border: 1px solid #ddd; color: #666; }
.wx-actions .btn-plain:hover { background: #f2f2f2; }
.btn-wechat:hover { background: #06ad56; }
.catalog { display: grid; grid-template-columns: 240px 1fr; gap: 32px; padding: 34px 20px; }
.catalog-side h3 { font-size: 15px; letter-spacing: 2px; margin-bottom: 10px; padding-left: 4px; }
.side-link {
  display: flex; justify-content: space-between; padding: 9px 12px; font-size: 14px;
  border-radius: 8px; color: var(--ink-soft); margin-bottom: 2px;
}
.side-link:hover { background: #f1ece2; color: var(--ink); }
.side-link.on { background: #efe8db; color: var(--ink); font-weight: 600; }
.side-link span { font-size: 12px; }
/* 系列列表：高度按「正好 10 行」算出来，不靠试。
   .side-link 单行高 = 行盒 14px × 1.7(继承 body) = 23.8px ＋ 上下 padding 9×2 = 41.8px，
   再加每条 margin-bottom 2px → 每行实际占 43.8px；10 行 = 438px。
   （原来是 320px ≈ 只露 7 行多。） */
.series-scroll { max-height: 438px; overflow-y: auto; margin-bottom: 6px; }
.side-select { width: 100%; padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; font-size: 13px; margin-bottom: 14px; background: #fffdf9; }
.side-select:focus { border-color: var(--gold); outline: none; }
.side-filter { margin-bottom: 0; }
/* 搜索联想下拉 */
.side-search, .hero-search { position: relative; }
.suggest-panel { position: absolute; top: 100%; left: 0; right: 0; background: #fff; border: 1px solid #e8e8e8; border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,.12); z-index: 40; max-height: 320px; overflow: auto; margin-top: 4px; }
.suggest-item { display: block; padding: 9px 12px; font-size: 13px; color: #333; }
.suggest-item:hover { background: #f5f2ea; }
.suggest-item span { color: #999; margin-left: 8px; }
/* 询盘单 */
.nav-cart span { background: var(--gold); color: #fff; border-radius: 999px; padding: 0 7px; font-size: 11px; margin-left: 4px; }
.cart-add-row { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; align-items: center; }
.cart-add-row input[type="number"] { width: 96px; border: 1px solid var(--line); border-radius: 8px; padding: 9px 10px; font-size: 13px; }
.cart-add-row .cart-unit { font-size: 13px; color: #888; }
.cart-meters { width: 84px; border: 1px solid var(--line); border-radius: 8px; padding: 7px 8px; font-size: 13px; }
.cart-unit { color: #999; font-size: 12px; }
/* ✕：卡片右上角的删除按钮。
   上一版用 padding: 4px 10px → 左右各 10px、上下各 4px，出来是长方形。
   现在宽高都定死 22px（含 1px 边框，全局 * { box-sizing: border-box }），
   line-height = 22 - 上下边框 2 = 20px，再 text-align: center → 字形正好居中。
   right: 12px 与卡片 padding 一致，右边缘和下方「米」的右边缘对齐。 */
.cart-del {
  position: absolute; top: 12px; right: 12px;
  width: 22px; height: 22px; padding: 0;
  border: 1px solid #e6c9c9; background: #fff; color: #c0392b;
  border-radius: 6px; cursor: pointer; font-size: 12px;
  line-height: 20px; text-align: center;
}
/* 首页分类橱窗 */
.cat-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cat-tile { background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; transition: transform .15s, box-shadow .15s; }
.cat-tile:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,.08); }
.cat-tile-imgs { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.cat-tile-imgs img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.cat-tile-name { padding: 10px 12px; font-size: 14px; font-weight: 600; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.cat-tile-name span { color: #999; font-weight: 400; font-size: 12px; margin-left: 6px; }
@media (max-width: 900px) { .cat-tiles { grid-template-columns: repeat(2, 1fr); } }
.side-search { display: flex; margin-bottom: 18px; gap: 6px; }
.side-search input { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 8px; padding: 9px 12px; font-size: 13px; transition: border-color .15s; }
.side-search input:focus { border-color: var(--gold); outline: none; }
.side-search button { border: 0; background: var(--gold); color: #fff; border-radius: 8px; padding: 9px 14px; font-size: 13px; cursor: pointer; white-space: nowrap; flex-shrink: 0; }
.side-search button:hover { background: var(--gold-dark); }
.filter-bar { margin-bottom: 16px; font-size: 13px; color: var(--ink-soft); display: flex; align-items: center; gap: 6px; }
.filter-tag { background: #efe8db; border-radius: 999px; padding: 4px 12px; }
.filter-tag a { color: var(--warn); margin-left: 4px; }
.pagination { display: flex; gap: 16px; align-items: center; justify-content: center; margin-top: 30px; font-size: 14px; }
.pagination a { color: var(--gold-dark); }
.page-jump { display: inline-flex; align-items: center; gap: 6px; }
.page-jump input[type="number"] { width: 74px; border: 1px solid var(--line); border-radius: 6px; padding: 6px 8px; font-size: 13px; text-align: center; }
.page-jump button { border: 0; background: var(--gold); color: #fff; border-radius: 6px; padding: 7px 14px; font-size: 13px; cursor: pointer; white-space: nowrap; }
.page-jump button:hover { background: var(--gold-dark); }

/* ── 详情 ── */
.detail-grid { display: grid; grid-template-columns: minmax(480px, 1.5fr) 1fr; gap: 34px; max-width: 1200px; margin: 0 auto; padding: 26px 16px; align-items: start; width: 100%; transform: translateX(36px); }
.detail-info { min-width: 0; }
/* 详情页图廊：左图右信息（整体居中、宽度由 grid 列约束） */
.detail-gallery { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; width: 100%; }
.gallery-main { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: #f5f1e8; }
.gallery-thumbs { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); }
.gallery-thumb { width: 66px; height: 50px; object-fit: cover; object-position: right bottom; border-radius: 6px; cursor: pointer; opacity: .6; border: 2px solid transparent; }
.gallery-thumb.is-on { opacity: 1; border-color: var(--gold); }
.detail-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.detail-code { color: #999; letter-spacing: 1.5px; font-size: 12.5px; }
.detail-name { font-size: 26px; letter-spacing: 2px; margin: 0 0 6px; }
.detail-cats { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.cat-pill { background: #efe8db; border-radius: 999px; padding: 4px 12px; font-size: 12px; }
.spec-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.spec-table th, .spec-table td { border-bottom: 1px solid var(--line); padding: 10px 8px; text-align: left; }
.spec-table th { width: 84px; color: var(--ink-soft); font-weight: 500; }
.detail-note { color: var(--ink-soft); font-size: 12.5px; margin-top: 14px; }
.no-img-big { height: 420px; font-size: 15px; }

/* ── 页脚 ── */
.site-footer { background: #22262e; color: #cfcbc0; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding: 36px 24px 26px; font-size: 13px; }
.footer-grid > div h4 { text-align: center; }
.footer-grid > div { padding: 0 24px; }
.site-footer h4 { color: #fff; font-size: 15px; letter-spacing: 2px; margin-bottom: 10px; }
.site-footer p { margin-top: 6px; }
.site-footer a { color: #e7e0d2; text-decoration: underline; }

/* ── 关于我们 ── */
/* 不加 max-width：与下方「工厂与门市」「联系我们」同宽（占满容器列宽） */
.about-intro {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 26px 30px;
}
.about-name { font-size: 20px; font-weight: 700; color: var(--ink); letter-spacing: 2px; margin-bottom: 14px; }
.about-line { font-size: 14px; line-height: 2; color: var(--ink-soft); }

/* 详细介绍分段：小标题 + 正文 */
.about-block { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.about-block:first-of-type { margin-top: 22px; }
.about-h { font-size: 16px; font-weight: 700; color: var(--ink); letter-spacing: 1px; margin-bottom: 10px; }
.about-p { font-size: 14px; line-height: 2.05; color: var(--ink-soft); text-align: justify; }

.about-places { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-bottom: 18px; }
.place-card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 20px 24px; }
.place-card h4 { font-size: 15px; color: var(--gold-dark); letter-spacing: 2px; margin-bottom: 8px; }
.place-card p { font-size: 14px; line-height: 1.9; color: var(--ink-soft); }

.about-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.about-photos figure { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.about-photos img { width: 100%; height: 180px; object-fit: cover; display: block; }
.about-photos figcaption { font-size: 13px; color: var(--ink-soft); text-align: center; padding: 10px 8px; }

.about-lines { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.line-card {
  display: block; background: var(--card); border: 1px solid var(--line);
  border-radius: 12px; overflow: hidden; text-decoration: none; transition: box-shadow .2s, transform .2s;
}
.line-card:hover { box-shadow: 0 8px 20px rgba(0,0,0,.09); transform: translateY(-2px); }
.line-card img { width: 100%; height: 150px; object-fit: cover; display: block; }
.line-body { display: block; padding: 12px 14px 14px; }
.line-name { display: block; font-size: 15px; font-weight: 600; color: var(--ink); }
.line-count { display: block; font-size: 12px; color: #9a9a9a; margin-top: 4px; }

/* 联系我们：每行 3 个、共 2 排（6 项）；不设 max-width，与上方「工厂与门市」同宽 */
.about-contact { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 14px; }
.contact-item { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 14px 18px; }
.contact-label { display: block; font-size: 12px; color: #9a9a9a; letter-spacing: 1px; margin-bottom: 4px; }
.contact-value { display: block; font-size: 15px; color: var(--ink); }
.contact-value a { color: var(--gold-dark); }
/* 待配置占位：虚线 + 灰字，一眼看出「这里还没填」而不是坏了 */
.contact-todo { color: #b0b0b0; border-bottom: 1px dashed #d6d0c4; padding-bottom: 1px; }

/* ── 响应式 ── */
@media (max-width: 1024px) {
  .fabric-grid { grid-template-columns: repeat(2, 1fr); }
  .about-lines { grid-template-columns: repeat(2, 1fr); }
  /* 平板/手机回到小程序原尺寸 */
  .mp-card { padding: 4px; gap: 6px; min-height: 118px; }
  .mp-card-img { width: 110px; height: 110px; }
  .mp-card-body { padding: 2px 2px 2px 6px; }
  .mp-name { font-size: 14px; }
  .mp-code { font-size: 10.5px; margin: 0; }
  .spec-label, .spec-value { font-size: 11px; }
  .mp-cat-tag { font-size: 10px; padding: 2px 8px; }
  .mp-cats { max-height: 20px; }
}
@media (max-width: 900px) {
  .catalog, .detail-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .about-places { grid-template-columns: 1fr; }
  .about-photos { grid-template-columns: repeat(2, 1fr); }
  .about-contact { grid-template-columns: repeat(2, 1fr); }
  .nav-burger { display: block; font-size: 22px; cursor: pointer; color: var(--ink); }
  .site-nav {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    background: var(--card); border-bottom: 1px solid var(--line);
    flex-direction: column; gap: 0; padding: 8px 20px 14px;
  }
  .nav-toggle:checked ~ .site-nav { display: flex; }
  .site-nav a { padding: 10px 0; }
  .hero-inner { height: 400px; }
  .hero-sub { font-size: 13px; letter-spacing: 1px; }   /* 副标题：手机端不宜过大 */
  .hero-info { left: 20px; bottom: 120px; }
}

/* 手机端：一行一张（同小程序） */
@media (max-width: 620px) {
  .fabric-grid { grid-template-columns: 1fr; }
  .about-lines { grid-template-columns: 1fr; }
  .about-photos { grid-template-columns: 1fr; }
  .about-contact { grid-template-columns: 1fr; }
  .about-intro { padding: 20px 18px; }
  .hero-inner { height: 340px; }
  .hero-inner { width: calc(100% - 32px); }
  .hero-info { bottom: 110px; }
}