/* =====================================================================
   雅其信纺织 · 企业官网  |  Guangzhou Yaqixin Textile Co., Ltd.
   Design system / global stylesheet
   - 说明：所有文案与图片均为占位内容，替换真实素材时保持类名与结构不变即可。
   - 配色、圆角、间距集中在下方的 :root 变量，改一处即可全局换肤。
   ===================================================================== */

/* ---------- 1. Design tokens ---------- */
:root {
  /* 主色：深青（沉稳、耐看的纺织/外贸调性） */
  --primary: #0e5c66;
  --primary-d: #0a444c;
  --primary-l: #e6f1f2;
  /* 辅色：铜金（织物质感、点缀强调） */
  --accent: #c98a3c;
  --accent-d: #a86f2a;

  --ink: #17262e;          /* 正文/标题主色 */
  --muted: #5d7078;        /* 次要文字 */
  --line: #e2e9ea;         /* 分割线/描边 */
  --bg: #ffffff;
  --alt: #f4f7f7;          /* 浅色区块背景 */
  --dark: #0d1f24;         /* 页脚深色 */

  --radius: 14px;
  --radius-s: 10px;
  --shadow: 0 10px 30px rgba(14, 60, 68, .08);
  --shadow-s: 0 4px 14px rgba(14, 60, 68, .06);
  --wrap: 1180px;
  --gap: 28px;

  --ff: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
        "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

/* ---------- 2. Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--ff);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.25; font-weight: 700; }
p { margin: 0 0 1em; }
button { font-family: inherit; cursor: pointer; }

/* ---------- 3. Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.section { padding: 76px 0; }
.section--alt { background: var(--alt); }
.section--tight { padding: 56px 0; }

.section-head { max-width: 720px; margin: 0 auto 46px; text-align: center; }
.section-head--left { margin-left: 0; text-align: left; }
.eyebrow {
  display: inline-block;
  font-size: 12px; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 12px;
}
.section-head h2 { font-size: clamp(24px, 3vw, 34px); }
.section-head p { color: var(--muted); margin: 0; }

.grid { display: grid; gap: var(--gap); }
.g-2 { grid-template-columns: repeat(2, 1fr); }
.g-3 { grid-template-columns: repeat(3, 1fr); }
.g-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- 4. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px;
  font-weight: 600; font-size: 15px; border: 1px solid transparent;
  transition: .22s ease; white-space: nowrap;
}
.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:hover { background: var(--primary-d); transform: translateY(-2px); }
.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--accent-d); transform: translateY(-2px); }
.btn--ghost { border-color: rgba(255,255,255,.6); color: #fff; }
.btn--ghost:hover { background: rgba(255,255,255,.14); }
.btn--line { border-color: var(--line); color: var(--ink); background: #fff; }
.btn--line:hover { border-color: var(--primary); color: var(--primary); }

/* ---------- 5. Top utility bar ---------- */
.utilbar {
  background: var(--primary-d); color: #cfe3e5; font-size: 13px;
}
.utilbar .wrap { display: flex; justify-content: space-between; align-items: center; min-height: 38px; gap: 16px; }
.utilbar a:hover { color: #fff; }
.utilbar .util-left { display: flex; gap: 20px; flex-wrap: wrap; }
.utilbar .util-left span { display: inline-flex; align-items: center; gap: 7px; }
.utilbar svg { width: 15px; height: 15px; flex: none; }
.lang { display: inline-flex; gap: 12px; }
.lang a { color: #9fc7ca; }
.lang a.on { color: #fff; font-weight: 700; }

/* ---------- 6. Header / navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand__mark {
  width: 42px; height: 42px; border-radius: 11px; flex: none;
  background: linear-gradient(135deg, var(--primary), var(--primary-d));
  color: #fff; display: grid; place-items: center;
  font-weight: 800; font-size: 18px; letter-spacing: -.5px;
}
.brand__name { font-weight: 800; font-size: 18px; line-height: 1.15; }
.brand__name small { display: block; font-size: 10.5px; font-weight: 600; letter-spacing: .12em; color: var(--muted); text-transform: uppercase; }

.menu { display: flex; align-items: center; gap: 6px; }
.menu a {
  padding: 9px 15px; border-radius: 8px; font-weight: 600; font-size: 15px; color: #2b3b42;
  transition: .18s;
}
.menu a:hover { color: var(--primary); background: var(--primary-l); }
.menu a.active { color: var(--primary); }
.nav__cta { display: flex; align-items: center; gap: 12px; }

.nav-toggle {
  display: none; width: 42px; height: 42px; border-radius: 10px;
  border: 1px solid var(--line); background: #fff; padding: 0;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle span { width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: .25s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 7. Hero / banner ---------- */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background: linear-gradient(120deg, #0a3d44 0%, #0e5c66 55%, #14808d 100%);
}
.hero__bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: .30; mix-blend-mode: luminosity;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(6,32,37,.80) 0%, rgba(6,32,37,.55) 48%, rgba(6,32,37,.15) 100%);
}
.hero .wrap { position: relative; z-index: 2; }
.hero__inner { max-width: 660px; padding: 108px 0 104px; }
.hero h1 { font-size: clamp(30px, 4.6vw, 52px); letter-spacing: -.5px; margin-bottom: 18px; }
.hero p.lead { font-size: clamp(15px, 1.6vw, 18px); color: #dcecee; max-width: 560px; }
.hero__eyebrow { color: #ffd9a3; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero__stats {
  display: flex; flex-wrap: wrap; gap: 42px; margin-top: 46px;
  padding-top: 28px; border-top: 1px solid rgba(255,255,255,.18);
}
.hero__stats b { display: block; font-size: 30px; line-height: 1; color: #fff; }
.hero__stats span { font-size: 13px; color: #b9d4d7; letter-spacing: .04em; }

/* 内页 banner */
.pagehero { position: relative; color: #fff; background: linear-gradient(120deg, #0a3d44, #14808d); }
.pagehero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .22; mix-blend-mode: luminosity; }
.pagehero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,32,37,.55), rgba(6,32,37,.72)); }
.pagehero .wrap { position: relative; z-index: 2; padding: 66px 24px 62px; }
.pagehero h1 { font-size: clamp(26px, 3.6vw, 40px); margin-bottom: 10px; }
.breadcrumb { font-size: 13.5px; color: #bcd7d9; }
.breadcrumb a:hover { color: #fff; }

/* ---------- 8. Cards: product / category ---------- */
.p-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-s); transition: .25s ease;
  display: flex; flex-direction: column;
}
.p-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: #cfe0e2; }
.p-card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--alt); }
.p-card__media img { width: 100%; height: 100%; object-fit: cover; transition: .5s ease; }
.p-card:hover .p-card__media img { transform: scale(1.06); }
.p-card__tag {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  background: rgba(14,92,102,.92); color: #fff; font-size: 12px; font-weight: 600;
  padding: 5px 12px; border-radius: 999px; letter-spacing: .03em;
}
.p-card__body { padding: 20px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.p-card__body h3 { font-size: 17px; margin-bottom: 8px; }
.p-card__body p { color: var(--muted); font-size: 14px; margin-bottom: 16px; flex: 1; }
.p-card__meta { display: flex; align-items: center; justify-content: space-between; font-size: 13px; color: var(--muted); }
.p-card__meta .more { color: var(--primary); font-weight: 700; }
.p-card__meta .more:hover { color: var(--accent); }

/* ---------- 9. Feature / advantage blocks ---------- */
.feature {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 26px; box-shadow: var(--shadow-s); transition: .25s;
  border-top: 3px solid transparent;
}
.feature:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-top-color: var(--accent); }
.feature__icon {
  width: 52px; height: 52px; border-radius: 13px; margin-bottom: 18px;
  display: grid; place-items: center; background: var(--primary-l); color: var(--primary);
}
.feature__icon svg { width: 26px; height: 26px; }
.feature h3 { font-size: 17px; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 14.5px; margin: 0; }

/* 数据条 */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
.stat { text-align: center; padding: 30px 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.stat b { display: block; font-size: clamp(28px, 3.4vw, 40px); color: var(--primary); line-height: 1; }
.stat b .u { font-size: .5em; color: var(--accent); }
.stat span { color: var(--muted); font-size: 14px; }

/* ---------- 10. Split (文案 + 图) ---------- */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 54px; align-items: center; }
.split--rev .split__media { order: -1; }
.split__media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }
.split h2 { font-size: clamp(23px, 2.8vw, 32px); }
.split p { color: var(--muted); }
.checklist { margin: 20px 0 26px; display: grid; gap: 12px; }
.checklist li { position: relative; padding-left: 30px; color: #35474e; font-size: 15px; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .38em;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--primary-l) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230e5c66' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/11px no-repeat;
}

/* ---------- 11. Factory gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gallery figure { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; background: var(--alt); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: .5s; }
.gallery figure:hover img { transform: scale(1.06); }
.gallery figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 16px 14px;
  background: linear-gradient(transparent, rgba(6,32,37,.82)); color: #fff; font-size: 14px; font-weight: 600;
}
.gallery figure:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }

/* ---------- 12. Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 40px; align-items: start; }
.info-list { display: grid; gap: 18px; }
.info-item { display: flex; gap: 15px; }
.info-item__ic {
  width: 44px; height: 44px; border-radius: 12px; flex: none; display: grid; place-items: center;
  background: var(--primary-l); color: var(--primary);
}
.info-item__ic svg { width: 21px; height: 21px; }
.info-item h4 { font-size: 14px; margin: 2px 0 3px; }
.info-item p { margin: 0; color: var(--muted); font-size: 14.5px; }

.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-s); }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: #33454c; }
.field input, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-s);
  font-family: inherit; font-size: 15px; background: #fbfdfd; color: var(--ink);
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--primary); background: #fff; }
.form .hint { font-size: 12.5px; color: var(--muted); margin: 14px 0 0; }

/* 执照 / 资质 */
.cert { display: flex; gap: 24px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
/* 营业执照：固定 4:3 尺寸 + object-fit，杜绝被 flex 拉伸变形 */
.cert img { width: 200px; height: 150px; object-fit: contain; border-radius: 8px; border: 1px solid var(--line); background: #fff; flex: none; align-self: flex-start; }
.cert h3 { font-size: 17px; margin-bottom: 10px; }
.cert dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 5px 16px; font-size: 13.5px; }
.cert dt { color: var(--muted); }
.cert dd { margin: 0; color: var(--ink); font-weight: 600; }
.cert__scope { margin: 12px 0 0; font-size: 12.5px; line-height: 1.6; color: var(--muted); }
.cert__scope b { color: var(--ink); }
/* 企业简介：仓储实拍视频（替代占位图） */
.split__media--video { position: relative; }
.split__media--video video { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; border-radius: var(--radius); box-shadow: var(--shadow); background: #0d1f24; }
.media-badge { position: absolute; left: 14px; top: 14px; z-index: 2; background: rgba(14,92,102,.92); color: #fff; font-size: 12.5px; font-weight: 600; padding: 6px 14px; border-radius: 999px; letter-spacing: .03em; }

/* ---------- 13. CTA band ---------- */
.cta-band { background: linear-gradient(120deg, var(--primary-d), var(--primary)); color: #fff; border-radius: var(--radius); padding: 44px; display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.cta-band h2 { margin: 0 0 6px; font-size: clamp(21px, 2.4vw, 28px); }
.cta-band p { margin: 0; color: #cfe3e5; }

/* ---------- 14. Footer ---------- */
.site-footer { background: var(--dark); color: #9fb3b8; font-size: 14.5px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 38px; padding: 56px 0 42px; }
.site-footer h4 { color: #fff; font-size: 15px; margin-bottom: 16px; }
.site-footer a:hover { color: #fff; }
.footer-links { display: grid; gap: 10px; }
.footer-brand .brand__name { color: #fff; }
.footer-brand .brand__name small { color: #7f959a; }
.footer-brand p { margin-top: 16px; color: #8ea3a8; font-size: 14px; }
.footer-contact { display: grid; gap: 10px; }
.footer-contact span { display: flex; gap: 9px; align-items: flex-start; }
.footer-contact svg { width: 16px; height: 16px; flex: none; margin-top: 4px; color: var(--accent); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: #7f959a; }
.footer-bottom a { color: #9fb3b8; }

/* 悬浮联系按钮 */
.fab { position: fixed; right: 20px; bottom: 22px; z-index: 70; display: grid; gap: 10px; }
.fab a {
  width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center;
  background: var(--primary); color: #fff; box-shadow: var(--shadow); transition: .2s;
}
.fab a:hover { background: var(--primary-d); transform: translateY(-3px); }
.fab svg { width: 24px; height: 24px; }

/* ---------- 15. Filter chips (products page) ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 38px; }
.chip {
  border: 1px solid var(--line); background: #fff; color: #33454c;
  padding: 10px 20px; border-radius: 999px; font-weight: 600; font-size: 14.5px; transition: .2s;
}
.chip:hover { border-color: var(--primary); color: var(--primary); }
.chip.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* 滚动出现动画 */
.reveal { opacity: 0; transform: translateY(24px); transition: .6s cubic-bezier(.2,.7,.3,1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- 17. WhatsApp 联系：右侧浮条 + 右侧滑出面板 ---------- */
/* 17.1 右侧常驻浮条（仿阿里国际站 Contact Supplier / Chat Now） */
.wa-side {
  position: fixed; right: 0; top: 50%; transform: translateY(-50%);
  z-index: 110; display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-right: 0;
  border-radius: 12px 0 0 12px; box-shadow: 0 12px 34px rgba(12,60,68,.16);
  overflow: hidden;
}
.wa-side-item {
  width: 78px; padding: 15px 8px 12px; display: flex; flex-direction: column;
  align-items: center; gap: 7px; cursor: pointer; text-align: center;
  color: #4a5a60; font-size: 12.5px; line-height: 1.28; background: #fff;
  border: 0; border-bottom: 1px solid var(--line); transition: .18s;
  text-decoration: none; font-family: inherit;
}
.wa-side-item:last-child { border-bottom: 0; }
.wa-side-item:hover { background: #f3fbf6; color: var(--primary); }
.wa-side-item svg { width: 25px; height: 25px; color: #ff6600; }
.wa-side-item b { font-weight: 600; }

/* 17.2 右侧滑出面板 */
.wa-overlay {
  position: fixed; inset: 0; z-index: 118; background: rgba(6,32,37,.45);
  opacity: 0; visibility: hidden; transition: .28s ease;
}
.wa-overlay.open { opacity: 1; visibility: visible; }
.wa-panel {
  position: fixed; top: 0; right: 0; height: 100%; width: 384px; max-width: 90vw;
  z-index: 120; background: #fff; box-shadow: -14px 0 44px rgba(0,0,0,.22);
  transform: translateX(105%); transition: transform .34s cubic-bezier(.2,.8,.3,1);
  display: flex; flex-direction: column;
}
.wa-panel.open { transform: none; }
.wa-panel-head {
  position: relative; padding: 26px 26px 18px; text-align: center;
  border-bottom: 1px solid var(--line);
}
.wa-close {
  position: absolute; top: 12px; right: 12px; width: 36px; height: 36px;
  border: none; background: var(--alt); border-radius: 50%; color: var(--muted);
  font-size: 20px; line-height: 1; display: grid; place-items: center; transition: .2s;
}
.wa-close:hover { background: var(--line); color: var(--ink); }
.wa-badge {
  width: 54px; height: 54px; margin: 0 auto 12px; border-radius: 50%;
  display: grid; place-items: center; background: #e7f9ee; color: #25d366;
}
.wa-badge svg { width: 30px; height: 30px; }
.wa-panel-head h3 { font-size: 20px; margin-bottom: 6px; }
.wa-panel-head p { color: var(--muted); font-size: 14px; margin: 0; }
.wa-panel-body { padding: 20px 22px 26px; overflow-y: auto; }
.wa-qrs { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 18px; }
.wa-qr {
  display: block; text-decoration: none; color: inherit; cursor: pointer;
  border: 1px solid var(--line); border-radius: 14px; padding: 12px 10px 10px; background: #fbfdfd;
  transition: .2s;
}
.wa-qr:hover { border-color: #25d366; box-shadow: 0 6px 18px rgba(37,211,102,.18); }
.wa-qr img { width: 100%; max-width: 158px; margin: 0 auto 9px; border-radius: 8px; display: block; }
.wa-qr b { display: block; font-size: 13px; }
.wa-qr span { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.wa-actions { display: grid; gap: 10px; }
.wa-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 22px; border-radius: 999px; font-weight: 700; font-size: 15px;
  background: #25d366; color: #fff; transition: .2s;
}
.wa-btn:hover { background: #1eb257; transform: translateY(-2px); }
.wa-btn svg { width: 20px; height: 20px; }
.wa-skip { font-size: 13px; color: var(--muted); text-align: center; }
.wa-skip:hover { color: var(--ink); }

@media (max-width: 760px) {
  .wa-side-item { width: 66px; font-size: 11px; padding: 12px 6px 10px; }
  .wa-side-item svg { width: 22px; height: 22px; }
}
@media (max-width: 480px) {
  .wa-qrs { grid-template-columns: 1fr; }
  .wa-panel-head { padding: 22px 20px 16px; }
  .wa-panel-body { padding: 16px 18px 22px; }
}

/* ---------- 18. Responsive ---------- */
@media (max-width: 1024px) {
  .g-4 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 34px; }
  .split--rev .split__media { order: 0; }
  .contact-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 30px; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery figure:first-child { grid-column: span 2; grid-row: auto; aspect-ratio: 16/9; }
}
@media (max-width: 760px) {
  .section { padding: 54px 0; }
  .utilbar .wrap { flex-direction: column; align-items: flex-start; padding-top: 8px; padding-bottom: 8px; gap: 6px; }
  .utilbar .util-left { gap: 14px; }
  .nav-toggle { display: flex; }
  .menu {
    position: fixed; inset: 0 0 0 auto; width: min(82vw, 320px);
    background: #fff; flex-direction: column; align-items: stretch; gap: 2px;
    padding: 84px 20px 30px; box-shadow: -20px 0 40px rgba(0,0,0,.12);
    transform: translateX(100%); transition: .28s ease; z-index: 80;
  }
  .menu.open { transform: none; }
  .menu a { padding: 14px 12px; font-size: 16px; border-radius: 10px; }
  .nav__cta .btn { display: none; }
  .menu .btn { display: inline-flex; margin-top: 12px; justify-content: center; }
  .g-2, .g-3, .g-4 { grid-template-columns: 1fr; }
  .hero__inner { padding: 76px 0 70px; }
  .hero__stats { gap: 26px; }
  .hero__stats b { font-size: 25px; }
  .stats { grid-template-columns: 1fr 1fr; gap: 16px; }
  .gallery { grid-template-columns: 1fr; }
  .gallery figure:first-child { grid-column: auto; aspect-ratio: 4/3; }
  .footer-top { grid-template-columns: 1fr; }
  .form .row { grid-template-columns: 1fr; }
  .cert { flex-direction: column; align-items: flex-start; }
  .cta-band { padding: 30px; }
  .menu-overlay { position: fixed; inset: 0; background: rgba(6,32,37,.45); opacity: 0; visibility: hidden; transition: .28s; z-index: 75; }
  .menu-overlay.open { opacity: 1; visibility: visible; }
}
@media (max-width: 420px) {
  .menu-overlay { display: block; }
}

/* =====================================================================
   19. 首页：批发面料目录（Wholesale Fabric Catalog，数据来自 WooCommerce）
   ===================================================================== */
/* 19.1 顶部欢迎条 */
.topbar { background: var(--primary-d); color: #cfe3e5; font-size: 13px; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; min-height: 36px; gap: 16px; }
.topbar__welcome { color: #dfeef0; }
.topbar__right { display: flex; align-items: center; gap: 18px; }
.topbar__lang { display: inline-flex; align-items: center; gap: 6px; color: #9fc7ca; }
.topbar a { color: #cfe3e5; }
.topbar a:hover { color: #fff; }
.topbar__cs { font-weight: 700; color: #fff !important; }

/* 19.2 头部：品牌 + 搜索 + CTA */
.cat-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.96); backdrop-filter: saturate(180%) blur(10px);
  box-shadow: 0 1px 0 var(--line);
}
.cat-header__row { display: flex; align-items: center; gap: 22px; min-height: 78px; flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px; }
.cat-search { flex: 1 1 320px; display: flex; min-width: 210px; max-width: 620px; }
.cat-search input {
  flex: 1; min-width: 0; padding: 12px 18px; font-size: 15px; font-family: inherit; color: var(--ink);
  border: 1px solid var(--line); border-right: 0; border-radius: 999px 0 0 999px; outline: none;
}
.cat-search input:focus { border-color: var(--primary); box-shadow: inset 0 0 0 1px var(--primary); }
.cat-search button {
  border: 0; background: var(--accent); color: #fff; font-weight: 700; font-size: 15px;
  padding: 0 26px; border-radius: 0 999px 999px 0; transition: .2s;
}
.cat-search button:hover { background: var(--accent-d); }
.cat-cta { display: flex; align-items: center; gap: 10px; }
.cat-navbar { border-top: 1px solid var(--line); background: #fff; }
.menu.cat-nav { flex-wrap: wrap; gap: 2px; max-width: var(--wrap); margin: 0 auto; padding: 3px 24px; }
.cat-nav a { padding: 10px 13px; border-radius: 8px; font-weight: 600; font-size: 14.5px; color: #2b3b42; white-space: nowrap; }
.cat-nav a:hover { color: var(--primary); background: var(--primary-l); }
.cat-nav a.active { color: var(--primary); }

/* 19.3 目录 Hero */
.cat-hero { background: linear-gradient(180deg, #f2f7f7 0%, #fff 100%); padding: 42px 0 6px; }
.cat-hero h1 { font-size: clamp(24px, 3.4vw, 38px); letter-spacing: -.4px; margin-bottom: 14px; }
.cat-hero h1 em { font-style: normal; color: var(--accent); }
.cat-hero p { color: var(--muted); max-width: 940px; font-size: 15.5px; margin: 0; }

/* ---------- 19.9 首页视频 Hero（工厂实拍背景视频） ---------- */
.cat-hero--video { position: relative; overflow: hidden; padding: 78px 0 46px; background: var(--dark); }
/* 先图后视频：缓冲期间显示静态背景图；视频加载完成后淡入覆盖 */
.cat-hero__bg { position: absolute; inset: 0; z-index: 0; background: url(../img/factory-showroom.jpg) center/cover no-repeat; }
.cat-hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; opacity: 0; transition: opacity .8s ease; }
.cat-hero__video.is-ready { opacity: 1; }
.cat-hero__scrim { position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(7,26,31,.92) 0%, rgba(7,26,31,.70) 46%, rgba(7,26,31,.34) 100%); }
.cat-hero--video .wrap { position: relative; z-index: 2; }
.cat-hero--video h1 { color: #fff; }
.cat-hero--video h1 em { color: #efc078; }
.cat-hero--video p { color: rgba(255,255,255,.86); }
.cat-hero--video p b { color: #fff; }
.cat-hero__badge { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 16px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.26); color: #fff;
  font-size: 12.5px; font-weight: 600; letter-spacing: .04em; padding: 6px 13px; border-radius: 999px; }
.cat-hero__badge svg { width: 15px; height: 15px; color: #efc078; }
.cat-hero--video .cat-chip { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.30); color: #fff; }
.cat-hero--video .cat-chip:hover { background: rgba(255,255,255,.22); border-color: #fff; color: #fff; }
.cat-hero--video .cat-chip.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.cat-hero--video .cat-chip.active b { opacity: 1; }

/* 19.4 筛选 chips */
.cat-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.cat-chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff; color: #33454c; font-weight: 600; font-size: 14px;
  transition: .2s; cursor: pointer;
}
.cat-chip:hover { border-color: var(--primary); color: var(--primary); }
.cat-chip.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.cat-chip b { font-weight: 700; font-size: 12.5px; opacity: .7; }
.cat-chip.active b { opacity: .9; }

/* 19.5 结果条 + 排序 */
.cat-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin: 26px 0 20px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.cat-count { font-size: 14px; color: var(--muted); }
.cat-count b { color: var(--ink); }
.cat-count .live { color: #1a9c66; font-weight: 700; }
.cat-sort { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.cat-sort select { padding: 9px 12px; border: 1px solid var(--line); border-radius: 9px; background: #fff; font-family: inherit; font-size: 14px; color: var(--ink); }

/* 19.6 产品网格 + 卡片 */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.pc { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; transition: .22s; }
.pc:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: #cfe0e2; }
.pc__media { position: relative; aspect-ratio: 1 / 1; background: var(--alt); overflow: hidden; }
.pc__media img { width: 100%; height: 100%; object-fit: cover; transition: .5s; }
.pc:hover .pc__media img { transform: scale(1.05); }
.pc__cat { position: absolute; left: 10px; top: 10px; z-index: 2; max-width: 78%;
  background: rgba(14,92,102,.9); color: #fff; font-size: 11.5px; font-weight: 600; padding: 4px 10px;
  border-radius: 999px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc__sale { position: absolute; right: 10px; top: 10px; z-index: 2; background: #d13b3b; color: #fff;
  font-size: 11.5px; font-weight: 700; padding: 4px 9px; border-radius: 6px; letter-spacing: .03em; }
.pc__body { padding: 14px 14px 16px; display: flex; flex-direction: column; flex: 1; }
.pc__sku { font-size: 12px; color: var(--accent); font-weight: 800; letter-spacing: .05em; }
.pc__name { font-size: 14.5px; line-height: 1.42; margin: 5px 0 10px; color: var(--ink); font-weight: 700;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pc__name:hover { color: var(--primary); }
.pc__specs { display: grid; gap: 5px; margin-bottom: 12px; font-size: 12.8px; }
.pc__specs .row { display: flex; gap: 6px; }
.pc__specs .k { color: #93a3a8; flex: none; min-width: 62px; }
.pc__specs .v { color: #33454c; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc__price { margin-top: auto; padding-top: 10px; border-top: 1px dashed var(--line); display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.pc__price .now { font-size: 20px; font-weight: 800; color: #d13b3b; }
.pc__price .was { font-size: 13px; color: var(--muted); text-decoration: line-through; }
.pc__price .unit { font-size: 12px; color: var(--muted); }
.pc__actions { display: flex; gap: 8px; margin-top: 12px; }
.pc__actions a { flex: 1; text-align: center; padding: 9px 10px; border-radius: 8px; font-size: 13.5px; font-weight: 700; transition: .2s; }
.pc__actions .view { background: var(--primary); color: #fff; }
.pc__actions .view:hover { background: var(--primary-d); }
.pc__actions .chat { background: #25d366; color: #fff; }
.pc__actions .chat:hover { background: #1eb257; }

/* 19.7 骨架屏 / 加载更多 / 状态 */
.cat-more { text-align: center; margin: 34px 0 8px; }
.cat-more button { padding: 13px 40px; border-radius: 999px; border: 1px solid var(--primary);
  background: #fff; color: var(--primary); font-weight: 700; font-size: 15px; transition: .2s; }
.cat-more button:hover { background: var(--primary); color: #fff; }
.cat-more button[disabled] { opacity: .55; cursor: default; background: #fff; color: var(--primary); }
.cat-status { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 46px 0; font-size: 15px; }
.cat-status.err { color: #b4451f; }
.cat-status a { color: var(--primary); font-weight: 700; }
.sk { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.sk__img { aspect-ratio: 1 / 1; }
.sk__line { height: 12px; margin: 12px 14px; border-radius: 6px; }
.sk__line.s { width: 60%; }
.sk__img, .sk__line { background: linear-gradient(100deg, #eef3f3 30%, #f8fbfb 50%, #eef3f3 70%); background-size: 200% 100%; animation: sk 1.2s linear infinite; }
@keyframes sk { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.cat-sentinel { height: 1px; }
.cat-note { font-size: 12.5px; color: var(--muted); text-align: center; margin-top: 6px; }

/* ---------- 20. Catalog responsive ---------- */
@media (max-width: 1024px) {
  .cat-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
}
@media (max-width: 860px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}
@media (max-width: 760px) {
  .topbar .wrap { flex-direction: column; align-items: flex-start; gap: 4px; padding-top: 7px; padding-bottom: 7px; }
  .cat-header__row { min-height: auto; gap: 12px; }
  .cat-search { order: 3; flex-basis: 100%; max-width: none; }
  .cat-cta { display: none; }
  .cat-hero { padding: 26px 0 4px; }
  .menu.cat-nav { padding: 84px 20px 30px; max-width: none; margin: 0; flex-wrap: nowrap; }
  .pc__name { -webkit-line-clamp: 2; }
}
@media (max-width: 420px) {
  .cat-grid { grid-template-columns: 1fr; }
}


/* ===== 产品详情页 detail ===== */
.pd-hero { padding: 36px 0 6px; }
.pd-split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.pd-media { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--alt); box-shadow: var(--shadow); }
/* height:auto 必须显式声明，否则 <img height="1000"> 的呈现性高度会覆盖 aspect-ratio，导致图片被拉成长方形 */
.pd-media img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; }
.pd-tag { position: absolute; top: 14px; left: 14px; background: rgba(14,92,102,.92); color: #fff; font-size: 12.5px; font-weight: 600; padding: 6px 14px; border-radius: 999px; }
.pd-info h1 { font-size: clamp(24px, 3vw, 34px); margin-bottom: 6px; }
.pd-info .pd-sub { color: var(--muted); font-size: 15px; margin-bottom: 18px; }
.pd-keys { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 18px 0 22px; }
.pd-key { background: var(--alt); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.pd-key b { display: block; font-size: 12px; color: var(--muted); font-weight: 600; letter-spacing: .04em; }
.pd-key span { font-size: 15.5px; font-weight: 700; color: var(--ink); }
.pd-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.pd-sec { padding: 60px 0; }
.pd-specs table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.pd-specs th, .pd-specs td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: 15px; vertical-align: top; }
.pd-specs th { width: 34%; background: var(--alt); color: var(--muted); font-weight: 600; }
.pd-specs tr:last-child th, .pd-specs tr:last-child td { border-bottom: 0; }
.pd-apps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.pd-app { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 20px; text-align: center; box-shadow: var(--shadow-s); }
.pd-app b { display: block; font-size: 15px; color: var(--ink); }
.pd-related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 860px) {
  .pd-split { grid-template-columns: 1fr; gap: 28px; }
  .pd-apps { grid-template-columns: repeat(2, 1fr); }
  .pd-related { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .pd-keys { grid-template-columns: 1fr; }
  .pd-related { grid-template-columns: 1fr; }
}
