/* ============================================================
   Quanfu — 箱包工厂独立站 主样式
   零依赖 / 纯静态 / 可直接双击打开
   ============================================================ */

/* ---------- 1. 设计变量 ---------- */
:root {
  /* 主色：沉稳的皮革棕 + 工业蓝灰，呼应箱包制造 */
  --brand:        #1F3A52;
  --brand-700:    #16293A;
  --brand-500:    #2C5474;
  --brand-100:    #D9E4ED;
  --brand-50:     #EFF5F9;

  /* 强调色：暖铜金，呼应皮革/五金件 */
  --accent:       #C98A3E;
  --accent-600:   #A86F28;
  --accent-50:    #FBF2E4;

  --ink:          #17222C;
  --ink-600:      #42525F;
  --ink-400:      #75858F;
  --ink-300:      #9BA8B1;

  --line:         #E3EAF0;
  --line-soft:    #EFF3F7;

  --bg:           #FFFFFF;
  --bg-soft:      #F6F9FB;
  --bg-warm:      #FAF7F3;

  --ok:           #128F7A;

  --radius-sm:    10px;
  --radius:       14px;
  --radius-lg:    22px;

  --shadow-sm:    0 1px 2px rgba(23, 34, 44, .06), 0 1px 3px rgba(23, 34, 44, .05);
  --shadow:       0 10px 28px rgba(23, 34, 44, .08);
  --shadow-lg:    0 24px 56px rgba(23, 34, 44, .13);

  --maxw:         1200px;
  --header-h:     74px;

  --font: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial,
          "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

/* ---------- 2. 基础重置 ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-600);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* 极淡纸张肌理 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.03'/%3E%3C/svg%3E");
}

img, svg { max-width: 100%; display: block; }

/* 图标统一类 */
.ic { display: inline-block; vertical-align: middle; flex-shrink: 0; width: 20px; height: 20px; }
.btn .ic { width: 17px; height: 17px; }

a { color: var(--brand-500); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--accent-600); }

h1, h2, h3, h4 {
  color: var(--ink);
  font-weight: 800;
  line-height: 1.24;
  letter-spacing: -.02em;
  margin: 0 0 .6em;
}
h1 { font-size: clamp(2.1rem, 4.6vw, 3.45rem); letter-spacing: -.03em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.35rem); }
h3 { font-size: 1.18rem; letter-spacing: -.01em; }
p  { margin: 0 0 1.1em; }

ul { margin: 0 0 1.1em; padding-left: 1.15em; }
li { margin-bottom: .4em; }

::selection { background: var(--accent); color: #fff; }

/* ---------- 3. 布局工具 ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}
.section { padding: 92px 0; position: relative; }
.section--soft { background: var(--bg-soft); }
.section--warm { background: var(--bg-warm); }
.section--tight { padding: 64px 0; }

.center { text-align: center; }
.grid { display: grid; gap: 24px; }
.g-2 { grid-template-columns: repeat(2, 1fr); }
.g-3 { grid-template-columns: repeat(3, 1fr); }
.g-4 { grid-template-columns: repeat(4, 1fr); }
.g-5 { grid-template-columns: repeat(5, 1fr); }
.mb-0 { margin-bottom: 0; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--accent-600);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.section-head { max-width: 740px; margin: 0 auto 52px; text-align: center; }
.section-head p { color: var(--ink-400); font-size: 1.05rem; margin-bottom: 0; }
.section-head--left { margin-left: 0; text-align: left; }

/* ---------- 4. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 26px;
  border-radius: 100px;
  font-size: .95rem;
  font-weight: 700;
  font-family: inherit;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--brand); color: #fff; box-shadow: 0 8px 20px rgba(31,58,82,.22); }
.btn--primary:hover { background: var(--brand-700); color: #fff; box-shadow: 0 12px 26px rgba(31,58,82,.3); }

.btn--accent { background: var(--accent); color: #2A1A06; box-shadow: 0 8px 20px rgba(201,138,62,.32); }
.btn--accent:hover { background: var(--accent-600); color: #fff; }

.btn--ghost { border-color: rgba(255,255,255,.42); color: #fff; background: rgba(255,255,255,.06); }
.btn--ghost:hover { background: rgba(255,255,255,.15); color: #fff; border-color: #fff; }

.btn--outline { border-color: var(--line); color: var(--brand); background: #fff; }
.btn--outline:hover { border-color: var(--brand); background: var(--brand-50); color: var(--brand-700); }

.btn--sm { padding: 10px 20px; font-size: .87rem; }
.btn--block { width: 100%; }

/* ---------- 5. 页头 / 导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(255,255,255,.88);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.is-stuck { border-bottom-color: var(--line); box-shadow: 0 6px 22px rgba(23,34,44,.06); }
.site-header .wrap {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 20px;
}

.logo { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.logo:hover { color: inherit; }
.logo__mark {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: linear-gradient(140deg, var(--brand-500), var(--brand-700));
  display: grid; place-items: center;
  box-shadow: 0 6px 16px rgba(31,58,82,.24);
  flex-shrink: 0;
  color: #fff;
}
.logo__mark svg { width: 22px; height: 22px; }
.logo__text { display: flex; flex-direction: column; line-height: 1.15; }
.logo__name { font-weight: 800; font-size: 1.1rem; color: var(--ink); letter-spacing: -.02em; }
.logo__sub { font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-300); font-weight: 700; }
/* 品牌 logo 图片：高度定死，宽度自适应 */
.logo__img { height: 40px; width: auto; display: block; }
.site-footer .logo__img { height: 36px; }

.nav { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.nav a {
  padding: 9px 14px;
  border-radius: 100px;
  font-size: .92rem;
  font-weight: 600;
  color: var(--ink-600);
  position: relative;
}
.nav a:hover { color: var(--brand); background: var(--brand-50); }
.nav a.is-active { color: var(--brand-700); }
.nav a.is-active::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 3px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.header-cta { display: flex; align-items: center; gap: 10px; margin-left: 8px; }

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  cursor: pointer;
  padding: 0;
  place-items: center;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 18px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  position: relative;
  transition: transform .22s ease, opacity .22s ease;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after  { position: absolute; top: 6px; }
.nav-toggle.is-open span { background: transparent; }
.nav-toggle.is-open span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle.is-open span::after  { transform: translateY(-6px) rotate(-45deg); }

/* ---------- 6. Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(155deg, #14283A 0%, var(--brand) 42%, #2A4E6C 100%);
  color: #fff;
  padding: 84px 0 96px;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 82% 18%, rgba(201,138,62,.26), transparent 44%),
                    radial-gradient(circle at 12% 92%, rgba(44,84,116,.55), transparent 52%);
  pointer-events: none;
}
.hero .wrap { display: grid; grid-template-columns: 1.02fr .98fr; gap: 54px; align-items: center; }
.hero h1 { color: #fff; margin-bottom: 18px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero__lead { font-size: 1.1rem; color: rgba(255,255,255,.82); max-width: 540px; margin-bottom: 30px; }
.hero .eyebrow { color: var(--accent); }
.hero .eyebrow::before { background: var(--accent); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 34px; }

.hero__points { display: flex; flex-wrap: wrap; gap: 10px 26px; padding-left: 0; }
.hero__points li {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .92rem;
  font-weight: 600;
  color: rgba(255,255,255,.9);
  margin: 0;
}
.hero__points svg { width: 17px; height: 17px; flex-shrink: 0; }

.hero__visual { position: relative; }
.hero__visual svg { width: 100%; height: auto; filter: drop-shadow(0 28px 50px rgba(0,0,0,.3)); }

/* ---------- 配图槽位机制 ----------
 * 容器加 data-media，内部放 <img data-cfg-src="images.xxx">
 *   配了图  → .has-img，显示图片、隐藏兜底插画
 *   留空 "" → 保留兜底插画，绝不破图
 * 容器再加 data-optional：没配图时整块隐藏（用于纯配图位）
 * ------------------------------------------------------------ */
[data-media] > [data-cfg-src] { display: none; }
[data-media].has-img > [data-cfg-src] {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: var(--radius-lg);
}
[data-media].has-img > .is-fallback { display: none; }
[data-media][data-optional]:not(.has-img) { display: none; }

/* 通用横图 */
.img-band { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.img-band img { width: 100%; height: auto; display: block; }

/* 通栏大图 */
.band-wide { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.band-wide img { width: 100%; height: auto; display: block; }

/* ---------- 7. 卡片 / 通用块 ---------- */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
  height: 100%;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--brand-100); }

.card__icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: grid; place-items: center;
  background: var(--brand-50);
  color: var(--brand);
  margin-bottom: 18px;
}
.card__icon svg { width: 25px; height: 25px; }
.card__icon--accent { background: var(--accent-50); color: var(--accent-600); }
.card h3 { margin-bottom: 9px; }
.card p { color: var(--ink-400); font-size: .95rem; margin-bottom: 0; }
.card__link {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 16px; font-weight: 700; font-size: .9rem;
}
.card__link svg { width: 15px; height: 15px; transition: transform .2s ease; }
.card__link:hover svg { transform: translateX(3px); }

/* ---------- 卡片 · 顶部配图版 ----------
 * 结构： .card.card--media > .card__thumb[data-media] > <img> + <span.is-fallback>
 * -------------------------------------------------------------------- */
.card--media {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.card--media .card__thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #2A4E6C, var(--brand-700));
  display: grid;
  place-items: center;
  color: rgba(255,255,255,.4);
  overflow: hidden;
}
.card--media .card__thumb-fb svg { width: 52px; height: 52px; }
.card--media .card__thumb.has-img > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}
.card--media .card__body {
  padding: 24px 24px 26px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.card--media .card__body h3 { margin-bottom: 9px; }
.card--media .card__body p { flex: 1; }

/* ---------- 8. 优势六宫格 ---------- */
.feature-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.feature-row__item {
  padding: 30px 28px;
  border-right: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.feature-row__item:nth-child(3n) { border-right: 0; }
.feature-row__item:nth-last-child(-n+3) { border-bottom: 0; }
.feature-row h3 { font-size: 1.02rem; margin-bottom: 7px; display: flex; align-items: center; gap: 9px; }
.feature-row h3 svg { width: 19px; height: 19px; color: var(--accent); flex-shrink: 0; }
.feature-row p { font-size: .9rem; color: var(--ink-400); margin-bottom: 0; }

/* ---------- 9. 数据条 ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat {
  text-align: center;
  padding: 34px 16px;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.stat__num {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--brand);
  letter-spacing: -.03em;
  line-height: 1.1;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
}
.stat__num i { font-style: normal; font-size: 1.3rem; color: var(--accent); }
.stat__label { font-size: .88rem; color: var(--ink-400); font-weight: 600; margin-top: 6px; }

/* ---------- 10. 流程步骤 ---------- */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 22px; }
.step { position: relative; padding-top: 8px; }
.step__no {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  display: grid; place-items: center;
  font-weight: 800;
  font-size: 1.02rem;
  margin-bottom: 16px;
  box-shadow: 0 8px 18px rgba(31,58,82,.22);
}
.step h3 { font-size: 1.02rem; margin-bottom: 8px; }
.step p { font-size: .9rem; color: var(--ink-400); margin-bottom: 0; }
.step::after {
  content: "";
  position: absolute;
  top: 29px; left: 56px; right: -12px;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--brand-100) 0 6px, transparent 6px 12px);
}
.step:last-child::after { display: none; }

/* 带配图的流程（图在上） */
.step--media .step__thumb {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(135deg, #2A4E6C, var(--brand-700));
  display: grid; place-items: center;
  color: rgba(255,255,255,.35);
  margin-bottom: 16px;
}
.step--media .step__thumb.has-img > img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.step--media .step__thumb > svg { width: 44px; height: 44px; }
.step--media .step__no { margin-bottom: 12px; }
.step--media::after { top: 22px; }

/* ---------- 11. 产品品类网格 ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.cat {
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.cat:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--brand-100); }
.cat__thumb {
  height: 150px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--brand-50), #fff 70%);
  border-bottom: 1px solid var(--line-soft);
  color: var(--brand-100);
  position: relative;
  overflow: hidden;
}
.cat__thumb svg { width: 46px; height: 46px; color: var(--brand); opacity: .85; }
.cat__thumb.has-img > img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.cat__body { padding: 14px 16px 17px; }
.cat__body h3 { font-size: .95rem; margin-bottom: 3px; }
.cat__body span { font-size: .78rem; color: var(--ink-300); font-weight: 600; }

/* ---------- 12. 定制服务 Tabs ----------
 *  结构见 main.js initTabs()
 * ------------------------------------------------------------ */
.tabs {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.tabs__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.tab {
  flex: 1 1 auto;
  min-width: 150px;
  padding: 20px 22px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  font-family: inherit;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--ink-400);
  cursor: pointer;
  text-align: center;
  line-height: 1.35;
  transition: color .18s ease, background .18s ease, border-color .18s ease;
}
.tab:hover { color: var(--brand); background: var(--brand-50); }
.tab.is-active {
  color: #fff;
  background: var(--accent);
  border-bottom-color: var(--accent-600);
}
.tabs__panel { display: none; padding: 34px 30px 38px; }
.tabs__panel.is-open { display: block; animation: tabIn .28s ease both; }
@keyframes tabIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.tabs__intro { max-width: 780px; margin: 0 0 28px; }
.tabs__intro h3 { font-size: 1.24rem; margin-bottom: 8px; }
.tabs__intro p { color: var(--ink-400); font-size: .96rem; margin-bottom: 0; }

/* 实例图网格（参考截图那种 5 列） */
.swatch-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}
.swatch {
  text-align: center;
}
.swatch__thumb {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(135deg, #F3F6F9, #E8EEF3);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--brand-100);
  position: relative;
}
.swatch__thumb.has-img > img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.swatch__thumb > svg { width: 40px; height: 40px; color: var(--brand); opacity: .5; }
.swatch__label {
  display: block;
  margin-top: 11px;
  font-size: .85rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.4;
}
.swatch__desc {
  margin: 6px 0 0;
  font-size: .78rem;
  line-height: 1.55;
  color: var(--ink-400);
}

/* ---------- 13. 客户评价 ---------- */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.testi {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}
.testi__quote { font-size: .93rem; color: var(--ink-600); flex: 1; margin-bottom: 18px; }
.testi__stars { display: flex; gap: 2px; color: var(--accent); margin-bottom: 12px; }
.testi__stars svg { width: 15px; height: 15px; }
.testi__who { display: flex; align-items: center; gap: 11px; padding-top: 16px; border-top: 1px dashed var(--line); }
.testi__avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--brand-50); color: var(--brand);
  display: grid; place-items: center; font-weight: 800; font-size: .95rem;
  flex-shrink: 0;
}
.testi__name { font-weight: 700; color: var(--ink); font-size: .93rem; }
.testi__meta { font-size: .77rem; color: var(--ink-300); }

/* ---------- 14. FAQ ---------- */
.faq { max-width: 880px; margin: 0 auto; display: grid; gap: 12px; }
.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0;
  overflow: hidden;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.faq details[open] { border-color: var(--brand-100); box-shadow: var(--shadow); }
.faq summary {
  cursor: pointer;
  padding: 20px 24px;
  font-weight: 700;
  color: var(--ink);
  font-size: 1rem;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 14px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  margin-left: auto;
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--accent);
  line-height: 1;
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq__body { padding: 0 24px 22px 24px; color: var(--ink-400); font-size: .95rem; }

/* ---------- 15. 博客 ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.post {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
  display: flex;
  flex-direction: column;
}
.post:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.post__art {
  height: 200px;
  background: linear-gradient(135deg, #2A4E6C, var(--brand-700));
  display: grid; place-items: center;
  color: rgba(255,255,255,.28);
}
.post__art svg { width: 54px; height: 54px; }
.post__art[data-media].has-img > [data-cfg-src] { height: 100%; border-radius: 0; }
.post__body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.post__tag {
  font-size: .71rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent-600); margin-bottom: 9px;
}
.post__body h3 { font-size: 1.02rem; margin-bottom: 8px; }
.post__body p { font-size: .9rem; color: var(--ink-400); flex: 1; }
.post__date { font-size: .79rem; color: var(--ink-300); margin-top: 12px; }

/* ---------- 16. CTA 通栏 ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: linear-gradient(120deg, var(--brand-700), var(--brand-500));
  color: #fff;
  padding: 54px 52px;
  display: flex;
  align-items: center;
  gap: 40px;
  justify-content: space-between;
  box-shadow: var(--shadow-lg);
}
.cta-band::after {
  content: "";
  position: absolute;
  right: -60px; top: -80px;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,138,62,.3), transparent 66%);
}
.cta-band h2 { color: #fff; margin-bottom: 8px; }
.cta-band p { color: rgba(255,255,255,.82); margin-bottom: 0; max-width: 580px; }
.cta-band .btn { flex-shrink: 0; }

/* ---------- 17. 表单 ---------- */
.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: .86rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 7px;
}
.field label .req { color: #D9483B; }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 15px;
  font-family: inherit;
  font-size: .95rem;
  color: var(--ink);
  background: var(--bg-soft);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.field textarea { resize: vertical; min-height: 128px; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brand-500);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(44,84,116,.1);
}
.field input::placeholder,
.field textarea::placeholder { color: var(--ink-300); }
.form-note { font-size: .82rem; color: var(--ink-300); margin-top: 14px; margin-bottom: 0; }
.form-alert {
  display: none;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  font-weight: 600;
  margin-bottom: 20px;
}
.form-alert.is-ok { display: block; background: #E8F6F1; color: #0B6B58; border: 1px solid #BFE6DA; }
.form-alert.is-err { display: block; background: #FDEDEB; color: #B03227; border: 1px solid #F5C7C1; }

/* ---------- 18. 联系信息块 ---------- */
.contact-item {
  display: flex;
  gap: 15px;
  padding: 20px 0;
  border-bottom: 1px dashed var(--line);
}
.contact-item:last-child { border-bottom: 0; }
.contact-item__ic {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--brand-50); color: var(--brand);
  display: grid; place-items: center; flex-shrink: 0;
}
.contact-item__ic svg { width: 20px; height: 20px; }
.contact-item h3 { font-size: .95rem; margin-bottom: 3px; }
.contact-item p, .contact-item a { font-size: .93rem; color: var(--ink-400); margin-bottom: 0; word-break: break-word; }

/* ---------- 19. 页脚 ---------- */
.site-footer {
  background: var(--brand-700);
  color: rgba(255,255,255,.72);
  padding: 68px 0 0;
  margin-top: 0;
  position: relative;
  z-index: 1;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
  gap: 44px;
  padding-bottom: 48px;
}
.site-footer h4 {
  color: #fff;
  font-size: .82rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.site-footer a { color: rgba(255,255,255,.72); }
.site-footer a:hover { color: var(--accent); }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; font-size: .93rem; display: flex; align-items: flex-start; gap: 9px; }
.footer-links li .ic { width: 16px; height: 16px; margin-top: 4px; color: var(--accent); }
.footer-links li a, .footer-links li span { word-break: break-word; }
.site-footer .logo__name { color: #fff; }
.site-footer .logo__sub { color: rgba(255,255,255,.45); }
.site-footer .logo__mark { background: rgba(255,255,255,.12); box-shadow: none; }
.footer-about { font-size: .92rem; line-height: 1.75; margin: 18px 0 22px; max-width: 330px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 38px; height: 38px;
  border-radius: 11px;
  background: rgba(255,255,255,.08);
  display: grid; place-items: center;
  transition: background .2s ease, transform .2s ease;
}
.footer-social a:hover { background: var(--accent); color: #2A1A06; transform: translateY(-3px); }
.footer-social svg { width: 17px; height: 17px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: .85rem;
}

/* ---------- 20. 悬浮 WhatsApp ---------- */
.float-wa {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 80;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #25D366;
  display: grid; place-items: center;
  box-shadow: 0 10px 26px rgba(37,211,102,.42);
  transition: transform .2s ease;
}
.float-wa:hover { transform: scale(1.08); }
.float-wa svg { width: 28px; height: 28px; fill: #fff; }
.float-wa::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(37,211,102,.6);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0%   { transform: scale(1);   opacity: .8; }
  100% { transform: scale(1.7); opacity: 0; }
}

/* ---------- 21. 页面小标题区（内页顶栏） ---------- */
.page-hero {
  background: linear-gradient(150deg, var(--brand-700), var(--brand-500));
  color: #fff;
  padding: 62px 0 66px;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 88% 10%, rgba(201,138,62,.22), transparent 46%);
}
.page-hero h1 { color: #fff; font-size: clamp(1.9rem, 3.4vw, 2.7rem); margin-bottom: 10px; }
.page-hero p { color: rgba(255,255,255,.78); margin-bottom: 0; max-width: 660px; }
.breadcrumb { font-size: .85rem; color: rgba(255,255,255,.6); margin-bottom: 16px; }
.breadcrumb a { color: rgba(255,255,255,.8); }
.breadcrumb a:hover { color: var(--accent); }

/* ---------- 22. 内容排版 ---------- */
.prose h2 { margin-top: 44px; }
.prose h3 { margin-top: 30px; color: var(--brand); }
.prose ul { color: var(--ink-600); }
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 52px; align-items: center; }
.split--rev .split__media { order: -1; }
.split__media {
  border-radius: var(--radius-lg);
  background: linear-gradient(140deg, var(--brand-50), #fff);
  border: 1px solid var(--line);
  padding: 0;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.split__media > svg { width: 100%; height: auto; }
.split__media.has-img { padding: 0; background: none; }
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li {
  display: flex; gap: 11px; align-items: flex-start;
  margin-bottom: 13px; font-size: .96rem;
}
.check-list svg { width: 19px; height: 19px; color: var(--ok); flex-shrink: 0; margin-top: 4px; }

/* ---------- 23. 工厂画廊 ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gallery__item {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(135deg, #2A4E6C, var(--brand-700));
  display: grid; place-items: center;
  color: rgba(255,255,255,.3);
  box-shadow: var(--shadow-sm);
}
.gallery__item > svg { width: 44px; height: 44px; }
.gallery__item.has-img > img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.gallery__cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 26px 16px 14px;
  background: linear-gradient(to top, rgba(10,20,30,.82), transparent);
  color: #fff;
  font-size: .88rem;
  font-weight: 700;
  letter-spacing: .01em;
}

/* ---------- 24. 滚动出现动画 ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- 25. 响应式 ---------- */
@media (max-width: 1080px) {
  .g-4, .cat-grid, .testi-grid, .stats, .gallery { grid-template-columns: repeat(2, 1fr); }
  .feature-row { grid-template-columns: repeat(2, 1fr); }
  .feature-row__item:nth-child(3n) { border-right: 1px solid var(--line-soft); }
  .feature-row__item:nth-child(2n) { border-right: 0; }
  .feature-row__item:nth-last-child(-n+3) { border-bottom: 1px solid var(--line-soft); }
  .feature-row__item:nth-last-child(-n+2) { border-bottom: 0; }
  .swatch-grid { grid-template-columns: repeat(4, 1fr); }
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .hero__visual { max-width: 560px; margin: 0 auto; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .step:nth-child(3n)::after { display: none; }
  .split { grid-template-columns: 1fr; gap: 34px; }
  .split--rev .split__media { order: 0; }
}

@media (max-width: 860px) {
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    padding: 12px 20px 20px;
    transform: translateY(-120%);
    transition: transform .28s ease;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }
  .nav.is-open { transform: translateY(0); }
  .nav a { padding: 13px 14px; border-radius: var(--radius-sm); }
  .nav a.is-active::after { display: none; }
  .nav-toggle { display: grid; margin-left: auto; }
  .header-cta { margin-left: 0; }
  .header-cta .btn { padding: 10px 18px; font-size: .87rem; }
  .section { padding: 68px 0; }
  .cta-band { flex-direction: column; align-items: flex-start; padding: 40px 32px; text-align: left; }
  .form-row { grid-template-columns: 1fr; }
  .swatch-grid { grid-template-columns: repeat(3, 1fr); }
  .tabs__panel { padding: 26px 20px 30px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step:nth-child(2n)::after { display: none; }
}

@media (max-width: 620px) {
  .wrap { padding: 0 18px; }
  .g-2, .g-3, .g-4, .cat-grid, .testi-grid, .post-grid, .stats, .feature-row, .gallery {
    grid-template-columns: 1fr;
  }
  .feature-row__item { border-right: 0; border-bottom: 1px solid var(--line-soft); }
  .feature-row__item:last-child { border-bottom: 0; }
  .swatch-grid { grid-template-columns: repeat(2, 1fr); }
  .step::after { display: none; }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-card { padding: 26px 20px; }
  .header-cta { display: none; }
  .tab { min-width: 0; flex: 1 1 50%; padding: 15px 10px; font-size: .72rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- 26. 打印 ---------- */
@media print {
  .site-header, .float-wa, .cta-band, .site-footer { display: none; }
}
