/* ═══════════════════════════════════════════════════════════
   MotoAxis 独立站 · 全局样式
   ─────────────────────────────────────────────────────────
   注意：首屏关键样式（导航/Hero/排版骨架）已内联在 HTML <head>，
   本文件异步加载，只承载首屏以下内容。修改关键样式请同步
   lib/render.js 的 CRITICAL_CSS。
   ═══════════════════════════════════════════════════════════ */

:root {
  --bg: #f7f4fa;
  --card: #ffffff;
  --ink: #2a2233;
  --muted: #6b6178;
  --line: #e7def0;
  --brand: #6b3fa0;
  --brand-dark: #4e2c7a;
  --brand-light: #8c66c4;
  --brand-soft: #efe7f7;
  --brand2: #e07b39;
  --brand2-text: #c2410c;
  --hot: #d43030;
  --brand2-text: #c2410c;
  --hot: #d43030;
  --accent: #f3edfa;
  --warn-bg: #fff8f0;
  --warn-border: #f3d9b8;
  --red: #c0392b;
  --green: #27ae60;
  --wa: #0e6e63;
  --shadow-sm: 0 1px 3px rgba(20, 30, 50, .06);
  --shadow-md: 0 4px 16px rgba(20, 30, 50, .08);
  --shadow-lg: 0 8px 32px rgba(20, 30, 50, .12);
  --radius: 12px;
  --radius-sm: 8px;
  --maxw: 1160px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  letter-spacing: 0.01em; /* P2-5：中英文/数字混排更舒展 */
}

a { color: var(--brand); text-decoration: none; transition: color .15s, opacity .15s; }
a:hover { color: var(--brand-dark); }

/* 图片：显式尺寸容器 + 懒加载配合，防累积布局偏移 (CLS) */
img { max-width: 100%; height: auto; display: block; }

/* ── 无障碍 ────────────────────────────────────────────── */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0;
  margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--brand); color: #fff; padding: 10px 18px;
  z-index: 9999; border-radius: 0 0 8px 0; font-weight: 600;
}
.skip-link:focus { left: 0; }

/* 键盘聚焦可见；鼠标点击不显示外框 */
:focus-visible {
  outline: 3px solid var(--brand-light);
  outline-offset: 2px;
  border-radius: 4px;
}
:focus:not(:focus-visible) { outline: none; }

/* ── 导航 ──────────────────────────────────────────────── */
.navbar {
  background: #fff; border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 100; box-shadow: var(--shadow-sm);
}
.navbar-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 22px;
  display: flex; align-items: center; justify-content: space-between;
  min-height: 60px; gap: 12px; position: relative;
}
.nav-logo { font-size: 20px; font-weight: 800; color: var(--brand); letter-spacing: -.3px; flex-shrink: 0; }
.nav-logo span { color: var(--brand2-text); }
.nav-links { display: flex; gap: 2px; align-items: center; }
.nav-links a {
  padding: 10px 14px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 500; color: var(--ink); white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active {
  background: var(--accent); color: var(--brand);
}
.nav-links a.active { font-weight: 600; }
.nav-cta {
  background: var(--brand2-text) !important; color: #fff !important;
  padding: 10px 18px !important; margin-left: 6px;
}
.nav-cta:hover { background: #a33308 !important; }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--line);
  border-radius: 8px; padding: 10px 12px; cursor: pointer;
  font-size: 18px; line-height: 1; color: var(--ink);
}

/* ── Hero ──────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, #4e2c7a, #6b3fa0 55%, #c2410c);
  color: #fff; padding: 48px 22px 44px; text-align: center;
}
.hero-inner { max-width: var(--maxw); margin: 0 auto; }
.hero h1 {
  font-size: clamp(22px, 4.2vw, 32px); font-weight: 800;
  letter-spacing: -.4px; margin-bottom: 10px; line-height: 1.25;
}
.hero p {
  opacity: .94; font-size: clamp(14.5px, 2.2vw, 16px);
  max-width: 680px; margin: 0 auto; line-height: 1.6;
}
.hero-eyebrow {
  text-transform: uppercase; letter-spacing: 1.2px; font-size: 12.5px;
  font-weight: 700; opacity: .8; margin-bottom: 6px;
}
.hero .tagline {
  margin-top: 18px; background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .25); border-radius: 10px;
  padding: 13px 18px; font-size: 14.5px; display: inline-block;
  text-align: left; max-width: 700px;
}
.hero-cta { justify-content: center; margin-top: 22px; }
.hero-model { text-align: left; }
.hero-model .hero-inner { max-width: var(--maxw); }
.hero-model p { margin: 0; max-width: none; }
.hero-model .hero-cta { justify-content: flex-start; }

/* Hero 内搜索框 */
.hero-search { max-width: 560px; margin: 22px auto 0; position: relative; }
.hero-search-icon {
  position: absolute; left: 18px; top: 50%; transform: translateY(-50%);
  color: rgba(255, 255, 255, .75); pointer-events: none; z-index: 2;
}
.hero-search input {
  width: 100%; padding: 13px 18px 13px 48px; font-size: 15px;
  border-radius: 999px; border: 2px solid rgba(255, 255, 255, .35);
  background: rgba(0, 0, 0, .28); color: #fff; font-family: inherit;
}
.hero-search input::placeholder { color: rgba(255, 255, 255, .85); }
.hero-search input:focus {
  outline: none; background: #fff; color: var(--ink); border-color: #fff;
}
.hero-search input:focus::placeholder { color: var(--muted); }
.search-results {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0;
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg);
  max-height: 340px; overflow-y: auto; z-index: 50; text-align: left; padding: 6px;
}
.search-results a {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: var(--radius-sm); color: var(--ink); font-size: 14px;
}
.search-results a:hover, .search-results a.hl { background: var(--accent); }
.search-results .sr-meta { font-size: 12.5px; color: var(--muted); flex-shrink: 0; }
.search-results .sr-empty { padding: 16px; color: var(--muted); font-size: 14px; text-align: center; }

/* ── 布局 ──────────────────────────────────────────────── */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 28px 22px 56px; }
.page-title { font-size: clamp(19px, 3vw, 24px); font-weight: 700; color: var(--brand); margin-bottom: 6px; }
.page-subtitle { color: var(--muted); font-size: 14.5px; margin-bottom: 22px; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.nowrap { white-space: nowrap; }

/* ── 卡片 ──────────────────────────────────────────────── */
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px 26px;
  box-shadow: var(--shadow-sm); margin-bottom: 18px;
}
.card h2 { font-size: 18px; color: var(--brand); margin-bottom: 12px; }
.card h3 { font-size: 15.5px; margin: 18px 0 8px; color: var(--ink); }
.card p { color: #33404f; margin: 8px 0; }
.card > p:first-of-type { margin-top: 0; }

/* ── 网格（移动优先，逐级放大）─────────────────────────── */
.grid-2, .grid-3, .grid-4 { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 620px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* ── 按钮 ──────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 11px 22px; border: none; border-radius: var(--radius-sm);
  font-size: 14.5px; font-weight: 600; font-family: inherit;
  cursor: pointer; transition: background .15s, transform .1s;
  text-align: center; min-height: 44px; /* 触摸目标 ≥44px */
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand2-text); color: #fff; }
.btn-primary:hover { background: #a33308; color: #fff; }
.btn-secondary { background: var(--accent); color: var(--brand); border: 1px solid var(--line); }
.btn-secondary:hover { background: #e3ede9; color: var(--brand-dark); }
.btn-ghost { background: #fff; color: var(--brand); border: 1px solid #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .88); color: var(--brand-dark); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: #0a5850; color: #fff; }
.btn-alibaba { background: #ff6a00; color: #fff; }
.btn-alibaba:hover { background: #e65f00; color: #fff; }
.btn:disabled { background: #b9c4cd; cursor: not-allowed; transform: none; }
.btn-sm { padding: 8px 14px; font-size: 13.5px; min-height: 38px; width: 100%; }
.btn-xs { padding: 6px 12px; font-size: 12.5px; min-height: 32px; }
.btn-group { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.btn-block { width: 100%; }

/* 阿里金品次级 CTA（配件卡/表格内的弱化入口） */
.alibaba-link {
  display: block; margin-top: 7px; font-size: 12.5px; text-align: center;
  color: #ff6a00; font-weight: 500;
}
.alibaba-link:hover { color: #e65f00; text-decoration: underline; }
.no-checkout-note {
  font-size: 13px; color: var(--muted); background: var(--accent);
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 10px 14px; margin: 0 0 16px;
}

/* cookie 提示条（启用推广像素时显示，底部通栏避开 WA/询盘浮钮） */
.cookie-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 900;
  background: var(--ink); color: #e8edf2;
  padding: 12px 22px; display: flex; align-items: center; justify-content: center; gap: 14px;
  font-size: 13px; line-height: 1.5; box-shadow: 0 -4px 16px rgba(20, 30, 50, .18);
}
.cookie-bar a { color: #8fd3ff; }
.cookie-bar .btn { flex-shrink: 0; }
@media (max-width: 640px) { .cookie-bar { flex-wrap: wrap; text-align: center; padding: 10px 14px; } }

/* SKU 详情页布局（P1-1） */
.part-detail-layout { display: grid; grid-template-columns: 340px 1fr; gap: 26px; align-items: start; }
.part-detail-img { background: var(--accent); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.part-detail-img img { display: block; width: 100%; height: auto; }
@media (max-width: 760px) { .part-detail-layout { grid-template-columns: 1fr; } }

/* 询盘篮（P1-4，非成交——只汇总成询盘消息） */
.inquiry-add {
  display: block; width: 100%; margin-top: 7px; padding: 6px 10px;
  background: none; border: 1px dashed var(--line); border-radius: var(--radius-sm);
  color: var(--brand); font-size: 12.5px; font-weight: 600; cursor: pointer; font-family: inherit;
}
.inquiry-add:hover { border-color: var(--brand); background: var(--accent); }
.inquiry-fab {
  position: fixed; left: 16px; bottom: 16px; z-index: 800;
  background: var(--ink); color: #fff; border: none; border-radius: 999px;
  padding: 11px 18px; font-size: 13.5px; font-weight: 600; cursor: pointer;
  box-shadow: var(--shadow-md); font-family: inherit;
}
.inquiry-fab b { color: #ffd166; }
.inquiry-panel {
  position: fixed; left: 16px; bottom: 64px; z-index: 810;
  width: min(360px, calc(100vw - 32px)); max-height: 60vh; overflow: auto;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.inquiry-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 14px; border-bottom: 1px solid var(--line); font-size: 14.5px;
}
.inquiry-close { background: none; border: none; font-size: 16px; cursor: pointer; color: var(--muted); padding: 4px 8px; }
.inquiry-body { padding: 10px 14px; }
.inquiry-item {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 13.5px;
}
.inquiry-item:last-child { border-bottom: none; }
.inquiry-remove { background: none; border: none; color: var(--red); cursor: pointer; font-size: 14px; padding: 2px 6px; }
.inquiry-empty { color: var(--muted); font-size: 13px; padding: 10px 0; }
.inquiry-actions { display: flex; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--line); }
.inquiry-actions .btn { flex: 1; width: auto; }

/* 语言切换器 */
.lang-switch { position: relative; }
.lang-toggle {
  background: none; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 7px 12px; font-size: 13.5px; font-weight: 500; color: var(--ink);
  cursor: pointer; font-family: inherit; white-space: nowrap;
}
.lang-toggle:hover { border-color: var(--brand); color: var(--brand); }
.lang-menu {
  display: none; position: absolute; top: calc(100% + 6px); right: 0; z-index: 120;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md); min-width: 120px; overflow: hidden;
}
.lang-menu a { display: block; padding: 9px 14px; font-size: 13.5px; color: var(--ink); }
.lang-menu a:hover { background: var(--accent); }
.lang-menu a.active { color: var(--brand); font-weight: 600; background: var(--accent); }
.lang-switch.open .lang-menu { display: block; }
@media (max-width: 860px) {
  .lang-menu { position: static; box-shadow: none; border: none; display: block; }
  .lang-toggle { display: none; }
  .lang-menu a { padding: 7px 13px; display: inline-block; }
}

/* ── Chip 导航 ─────────────────────────────────────────── */
.chip-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; background: #fff; border: 1px solid var(--line);
  border-radius: 999px; font-size: 13.5px; font-weight: 600; color: var(--ink);
}
.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip span { color: var(--muted); font-weight: 500; font-size: 12px; }

/* ── 车型卡片 ──────────────────────────────────────────── */
.brand-block { margin-bottom: 34px; }
.brand-block-title {
  font-size: 18px; font-weight: 700; color: var(--ink);
  padding-bottom: 8px; border-bottom: 2px solid var(--line); margin-bottom: 14px;
  display: flex; align-items: baseline; gap: 10px;
}
.brand-block-title .count { font-size: 13px; font-weight: 500; color: var(--muted); }

.model-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 12px; }
.model-card {
  display: flex; flex-direction: column; gap: 3px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 14px 16px;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.model-card:hover { border-color: var(--brand); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.mc-name { font-weight: 700; font-size: 14.5px; color: var(--ink); line-height: 1.35; }
.mc-meta { font-size: 12.5px; color: var(--muted); }
.mc-parts { font-size: 12px; font-weight: 600; color: var(--brand2-text); margin-top: 2px; }

.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; margin-top: 12px; }
.related-card {
  display: flex; flex-direction: column; padding: 12px 14px;
  background: var(--accent); border-radius: var(--radius-sm);
}
.related-card:hover { background: #e3ede9; }
.rc-name { font-weight: 600; font-size: 14px; color: var(--ink); }
.rc-meta { font-size: 12px; color: var(--muted); }

/* ── 品类卡片 ──────────────────────────────────────────── */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.cat-card {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 4px; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px 18px;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.cat-card:hover { border-color: var(--brand); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.cat-icon { font-size: 32px; line-height: 1.2; }
.cat-name { font-weight: 700; font-size: 15px; color: var(--ink); }
.cat-zh { font-size: 12.5px; color: var(--muted); }
.cat-count { font-size: 12px; font-weight: 600; color: var(--brand2-text); margin-top: 4px; }

/* ── 配件卡片 ──────────────────────────────────────────── */
.part-section { margin-bottom: 30px; }
.part-section-title {
  font-size: 16.5px; font-weight: 700; color: var(--ink); margin-bottom: 12px;
  display: flex; align-items: center; gap: 9px;
}
.part-section-title .count {
  background: var(--accent); color: var(--brand); font-size: 12px;
  padding: 2px 9px; border-radius: 999px; font-weight: 600;
}
.part-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 14px; }
.part-card {
  display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px 18px;
  transition: border-color .15s, box-shadow .15s;
}
.part-card:hover { border-color: var(--brand); box-shadow: var(--shadow-md); }
.part-card .sku {
  font-size: 11.5px; color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .3px;
}
.part-card .name { font-weight: 700; font-size: 14.5px; margin: 4px 0 6px; line-height: 1.4; color: var(--ink); }
.part-card .specs { font-size: 13px; color: var(--muted); margin: 0 0 4px; }
.part-card .oe { font-size: 12px; color: var(--muted); margin: 0 0 6px; word-break: break-word; }
.part-card .oe-label {
  background: #f0f3f6; padding: 1px 6px; border-radius: 4px;
  font-weight: 600; font-size: 11px; margin-right: 4px;
}
.part-card .price-row {
  display: flex; justify-content: space-between; align-items: center;
  gap: 8px; margin-top: auto; padding-top: 8px;
}
.part-card .price { font-size: 17px; font-weight: 800; color: var(--brand2-text); }
.part-card .moq { font-size: 12px; color: var(--muted); margin: 6px 0 10px; }

/* ── 规格表 ────────────────────────────────────────────── */
.spec-card { margin-bottom: 24px; }
.spec-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-top: 8px; }
.spec-list > div { border-left: 3px solid var(--accent); padding-left: 12px; }
.spec-list dt { font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); font-weight: 600; }
.spec-list dd { font-size: 15px; color: var(--ink); font-weight: 600; }
.note { margin-top: 14px; padding: 10px 14px; background: var(--warn-bg); border: 1px solid var(--warn-border); border-radius: var(--radius-sm); font-size: 13.5px; }

/* ── 表格 ──────────────────────────────────────────────── */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -4px; }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th, td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
th {
  background: #f3f6f8; font-weight: 700; color: var(--ink);
  font-size: 12px; text-transform: uppercase; letter-spacing: .3px; white-space: nowrap;
}
tbody tr:hover td { background: #fafbfd; }
td .price { color: var(--brand2-text); font-size: 14.5px; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; background: #f3f6f8; padding: 1px 5px; border-radius: 4px; }

/* ── 表单 ──────────────────────────────────────────────── */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 5px; }
.form-group .req { color: var(--red); }
.form-hint { font-size: 12px; color: var(--muted); margin-top: 4px; }
.form-hint.error { color: var(--red); font-weight: 600; }
.form-hint.success { color: var(--green); font-weight: 600; }
.input-error { border-color: var(--red) !important; box-shadow: 0 0 0 2px rgba(192, 57, 43, .15); }
.field-err { display: block; color: var(--red); font-size: 12px; margin-top: 4px; }
input[type="text"], input[type="email"], input[type="tel"], input[type="search"], select, textarea {
  width: 100%; padding: 11px 13px; border: 1px solid #cfd6df;
  border-radius: var(--radius-sm); font-size: 16px; /* 16px 防 iOS 聚焦缩放 */
  font-family: inherit; background: #fff; color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
@media (min-width: 620px) {
  input[type="text"], input[type="email"], input[type="tel"], select, textarea { font-size: 14.5px; }
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(107, 63, 160, .12);
}
input[aria-invalid="true"], textarea[aria-invalid="true"], select[aria-invalid="true"] {
  border-color: var(--red); box-shadow: 0 0 0 3px rgba(192, 57, 43, .1);
}
textarea { min-height: 96px; resize: vertical; }

/* ── Pill / 标签 ───────────────────────────────────────── */
.pill {
  display: inline-block; background: var(--accent); color: var(--brand);
  border-radius: 999px; padding: 2px 10px; font-size: 12px; font-weight: 600; white-space: nowrap;
}
.pill-orange { background: var(--warn-bg); color: var(--brand2-text); }
.pill-red { background: #fef2f2; color: var(--red); }
.pill-green { background: #ecfdf5; color: var(--green); }

/* ── 信息盒 / 引用 ─────────────────────────────────────── */
.info-box { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; background: #fbfcfd; }
.info-box .t { font-weight: 700; color: var(--brand2-text); margin-bottom: 5px; font-size: 14px; }
.quote {
  background: var(--accent); border-left: 4px solid var(--brand);
  border-radius: 0 10px 10px 0; padding: 14px 18px; margin: 16px 0; font-size: 14.5px;
}
.quote b { color: var(--brand); }

/* ── CTA 条 ────────────────────────────────────────────── */
.cta-band {
  background: linear-gradient(135deg, #f4f9f7, #eef4f1);
  border-color: #d6e5df; text-align: center; padding: 30px 26px;
}
.cta-band h2 { justify-content: center; }
.cta-band p { max-width: 620px; margin: 0 auto 4px; color: #3a4855; }
.cta-band .btn-group { justify-content: center; }

/* ── 信任要素 ──────────────────────────────────────────── */
.trust-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.trust-item { display: flex; gap: 12px; padding: 16px 18px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.trust-icon { font-size: 26px; line-height: 1.2; flex-shrink: 0; }
.trust-item h3 { font-size: 14.5px; margin: 0 0 3px; color: var(--ink); }
.trust-item p { font-size: 13px; color: var(--muted); margin: 0; line-height: 1.55; }

/* ── 步骤流程 ──────────────────────────────────────────── */
.steps { counter-reset: step; display: grid; gap: 14px; }
.step { display: flex; gap: 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.step-icon {
  flex-shrink: 0; width: 46px; height: 46px; border-radius: 12px;
  background: var(--brand-soft, #eaf2ff); display: flex; align-items: center;
  justify-content: center; font-size: 22px; line-height: 1;
}
.step-body { flex: 1; min-width: 0; }
.step-head { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; flex-wrap: wrap; }
.step-num {
  font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: var(--brand); background: var(--brand-soft, #eaf2ff);
  padding: 3px 9px; border-radius: 999px;
}
.step h3 { margin: 0; font-size: 15.5px; color: var(--ink); }
.step p { margin: 0; font-size: 14px; color: var(--muted); }

/* MOQ 参考表 */
.moq-table { width: 100%; border-collapse: collapse; margin: 14px 0 6px; font-size: 14px; }
.moq-table th, .moq-table td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); }
.moq-table th { background: var(--brand-soft, #eaf2ff); color: var(--ink); font-weight: 600; }
.moq-table tbody tr:hover { background: var(--brand-soft, #eaf2ff); }
.moq-val { font-weight: 600; color: var(--brand); white-space: nowrap; }

/* ── 面包屑 ────────────────────────────────────────────── */
.breadcrumb { font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb span[aria-current] { color: var(--ink); font-weight: 500; }

/* ── 页脚 ──────────────────────────────────────────────── */
.footer { background: #1f2733; color: #aab4c0; padding: 40px 22px 28px; margin-top: 44px; font-size: 13.5px; }
.footer-inner { max-width: var(--maxw); margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 26px; margin-bottom: 28px; }
@media (min-width: 620px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr 1.2fr; } }
.footer-brand { color: #fff; font-size: 18px; font-weight: 800; margin-bottom: 8px; }
.footer h3 { color: #fff; font-size: 14px; margin-bottom: 10px; }
.footer p { color: #aab4c0; line-height: 1.65; font-size: 13px; margin-bottom: 8px; }
.footer a { color: #aab4c0; display: block; padding: 10px 0; min-height: 44px; line-height: 24px; font-size: 14px; }
.footer a:hover { color: #fff; }
.footer-badge { color: #d9c08a !important; font-weight: 600; font-size: 12.5px !important; }
.footer-legal { font-size: 12px !important; color: #78848f !important; margin-top: 10px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); padding-top: 16px; text-align: center; font-size: 12.5px; }

/* ── WhatsApp 浮窗 ─────────────────────────────────────── */
.wa-float {
  position: fixed; bottom: 22px; right: 22px; z-index: 999;
  display: flex; align-items: center; gap: 0;
  height: 56px; padding: 0 15px; background: var(--wa);
  border-radius: 999px; box-shadow: 0 4px 18px rgba(37, 211, 102, .38);
  transition: gap .22s ease, padding .22s ease, transform .18s ease;
  overflow: hidden;
}
.wa-float:hover, .wa-float:focus-visible { transform: scale(1.04); gap: 9px; padding-right: 20px; }
.wa-float svg { width: 28px; height: 28px; fill: #fff; flex-shrink: 0; }
.wa-float-label {
  color: #fff; font-size: 13.5px; font-weight: 600; white-space: nowrap;
  max-width: 0; opacity: 0; transition: max-width .22s ease, opacity .18s ease;
}
.wa-float:hover .wa-float-label, .wa-float:focus-visible .wa-float-label { max-width: 200px; opacity: 1; }
/* 触摸设备不做 hover 展开，避免首次点击被吃掉 */
@media (hover: none) {
  .wa-float { padding: 0; width: 56px; justify-content: center; }
  .wa-float-label { display: none; }
}

/* P1-3：移动端浮标缩小+内收，避免遮挡信任徽章；hero 底部为浮层让位 */
@media (max-width: 860px) {
  .wa-float { width: 48px; height: 48px; bottom: 14px; right: 14px; }
  .wa-float svg { width: 24px; height: 24px; }
  .trust-badges { padding-bottom: 72px; }
}

/* P1-2：品类表移动端卡片化（每 SKU 一张卡，价格/询价首屏可见） */
@media (max-width: 720px) {
  .table-scroll { overflow-x: visible; margin: 0; }
  .table-scroll table, .table-scroll tbody { display: block; width: 100%; }
  .table-scroll thead {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap;
  }
  .table-scroll tr {
    display: block; background: var(--card); border: 1px solid var(--line);
    border-radius: 12px; padding: 10px 14px 14px; margin-bottom: 12px;
    box-shadow: 0 1px 3px rgba(20, 30, 50, .05);
  }
  .table-scroll td {
    display: flex; justify-content: space-between; align-items: baseline; gap: 14px;
    padding: 5px 0; border: 0; text-align: right; font-size: 14px;
  }
  .table-scroll td::before {
    content: attr(data-label); font-weight: 600; color: var(--muted);
    text-align: left; flex-shrink: 0; font-size: 13px;
  }
  .table-scroll td.cell-action { display: block; padding-top: 10px; }
  .table-scroll td.cell-action::before { display: none; }
  .table-scroll td.cell-action .btn { width: 100%; justify-content: center; min-height: 44px; font-size: 15px; }
  .table-scroll td.cell-action .alibaba-link { display: block; text-align: center; padding: 10px 0 2px; min-height: 40px; }
}

/* ── 状态 ──────────────────────────────────────────────── */
.empty-state { color: #9aa6b2; font-size: 14px; padding: 32px 16px; text-align: center; }
.empty-state strong { display: block; color: var(--ink); font-size: 16px; margin-bottom: 6px; }
.loading { display: flex; align-items: center; justify-content: center; padding: 32px; color: var(--muted); font-size: 14px; }
.spinner {
  width: 22px; height: 22px; border: 3px solid var(--line);
  border-top-color: var(--brand); border-radius: 50%;
  animation: spin .6s linear infinite; margin-right: 10px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* 骨架屏：占位高度固定，避免内容加载后跳动 (CLS) */
.skeleton { background: linear-gradient(90deg, #eef1f5 25%, #f7f9fb 50%, #eef1f5 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: var(--radius); }
@keyframes shimmer { to { background-position: -200% 0; } }
.skeleton-card { height: 128px; }

/* ── Toast ─────────────────────────────────────────────── */
.toast {
  position: fixed; top: 78px; right: 20px; left: 20px; max-width: 380px;
  margin-left: auto; background: var(--brand); color: #fff;
  padding: 13px 20px; border-radius: var(--radius-sm); font-size: 14px;
  z-index: 9999; box-shadow: var(--shadow-lg); animation: slideIn .3s ease;
}
.toast.error { background: var(--red); }
@keyframes slideIn { from { transform: translateY(-12px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* ── 目录页侧栏 ────────────────────────────────────────── */
.catalog-layout { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 900px) { .catalog-layout { grid-template-columns: 225px 1fr; } }
.cat-sidebar-inner { position: static; }
@media (min-width: 900px) { .cat-sidebar-inner { position: sticky; top: 76px; } }
.cat-item { display: block; padding: 9px 14px; border-radius: var(--radius-sm); font-size: 14px; color: var(--ink); cursor: pointer; }
.cat-item:hover, .cat-item.active { background: var(--accent); color: var(--brand); font-weight: 600; }
.cat-parent { font-weight: 700; font-size: 12.5px; color: var(--muted); margin-top: 12px; padding-left: 4px; text-transform: uppercase; letter-spacing: .4px; }
.cat-children { padding-left: 10px; }
/* 移动端分类导航横向滚动，不占竖直空间 */
@media (max-width: 899px) {
  #catNav { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; -webkit-overflow-scrolling: touch; }
  .cat-parent { display: none; }
  .cat-children { display: contents; }
  .cat-item { flex-shrink: 0; border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; font-size: 13px; white-space: nowrap; }
}

/* ── 弹窗 ──────────────────────────────────────────────── */
.modal { position: fixed; inset: 0; background: rgba(0, 0, 0, .5); z-index: 1000; overflow-y: auto; padding: 24px 16px; }
.modal[hidden] { display: none; }
.modal-box { max-width: 720px; margin: 0 auto; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.modal-head { padding: 20px 24px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.modal-head h2 { font-size: 18px; margin: 0; }
.modal-close { background: none; border: none; font-size: 26px; color: var(--muted); cursor: pointer; padding: 2px 8px; line-height: 1; border-radius: 6px; }
.modal-close:hover { background: var(--accent); color: var(--ink); }
.modal-body { padding: 22px 24px; }

/* ── 打印 ──────────────────────────────────────────────── */
@media print {
  .navbar, .wa-float, .footer, .btn, .hero-search, .chip-nav { display: none !important; }
  body { background: #fff; font-size: 12pt; }
  .card { box-shadow: none; border-color: #ccc; break-inside: avoid; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #666; }
}

/* ── 移动端导航（860px 以下折叠）───────────────────────── */
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; flex-direction: column; align-items: stretch;
    padding: 8px; border-bottom: 1px solid var(--line);
    box-shadow: 0 8px 24px rgba(20, 30, 50, .1); gap: 2px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; font-size: 15px; }
  .nav-cta { margin-left: 0; margin-top: 4px; }
  .navbar-inner { padding: 0 14px; min-height: 54px; }
  .hero { padding: 32px 16px 30px; }
  .hero-model { text-align: center; }
  .hero-model .hero-cta { justify-content: center; }
  .wrap { padding: 18px 14px 40px; }
  .card { padding: 18px 16px; }
  .cta-band { padding: 24px 18px; }
  .btn-group .btn { flex: 1 1 auto; }
}

@media (max-width: 480px) {
  .btn-group { flex-direction: column; }
  .btn-group .btn { width: 100%; }
  .model-grid, .part-grid, .cat-grid { grid-template-columns: 1fr; }
  .spec-list { grid-template-columns: 1fr 1fr; }
  .toast { top: auto; bottom: 90px; }
}

/* ── 图片（视觉补全 / SEO alt 文本）──────────────────────── */
.hero-banner, .page-banner, .factory-img {
  width: 100%; height: auto; display: block;
  border-radius: var(--radius);
  margin: 0 0 26px;
  box-shadow: 0 -10px 28px rgba(78, 44, 122, .18), 0 1px 4px rgba(20, 30, 50, .08);
  object-fit: cover; background: var(--accent);
}
.factory-img { max-height: 440px; }
.page-banner {
  max-width: 320px; margin: 0 auto 22px;
  border-radius: var(--radius); object-fit: contain;
}
.cat-card .cat-img {
  width: 92px; height: 92px; object-fit: contain;
  margin-bottom: 8px; border-radius: 12px; background: var(--accent);
}
.part-card .part-img {
  width: 100%; height: 150px; object-fit: contain;
  margin-bottom: 10px; background: var(--accent); border-radius: 10px;
}
.brand-card { justify-content: center; }
.brand-card .brand-logo {
  width: 150px; height: 75px; object-fit: contain;
  margin-bottom: 8px; border-radius: 8px; background: #fff;
  border: 1px solid var(--line);
}
.brand-block-title { align-items: center; }
.brand-block-title .brand-logo-sm {
  height: 34px; width: auto; object-fit: contain;
  border-radius: 6px; background: #fff; border: 1px solid var(--line);
  padding: 2px 6px;
}
.bullet-list { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; }
.bullet-list li {
  background: var(--accent); border-radius: var(--radius-sm);
  padding: 10px 14px; font-size: 14px; line-height: 1.5;
}

/* ── 首页紧凑版 Fitment Finder ───────────────────────────── */
.mini-finder {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  justify-content: center; margin-top: 22px;
}
.mini-finder .mf-label { color: #fff; font-weight: 600; font-size: 14px; margin-right: 4px; }
.mini-finder select {
  padding: 9px 10px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .35);
  background: #fff; color: var(--ink); font-size: 13.5px; min-width: 150px; max-width: 220px;
}
.mini-finder select:disabled { opacity: .5; cursor: not-allowed; }
.mini-finder .btn-sm { padding: 9px 16px; font-size: 13.5px; font-weight: 600; background: var(--brand2-text); color: #fff; border: none; }
@media (max-width: 560px) {
  .mini-finder select { flex: 1 1 100%; max-width: none; }
  .mini-finder .btn-sm { flex: 1 1 100%; }
}

/* ── 首页 Social Proof ──────────────────────────────────── */
.stats-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 14px; margin-bottom: 22px; }
.stat { background: var(--accent); border-radius: var(--radius-sm); padding: 16px; text-align: center; }
.stat b { display: block; font-size: 26px; color: var(--brand); font-weight: 800; line-height: 1.1; }
.stat span { font-size: 12.5px; color: var(--muted); }
.testimonials { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.testimonials blockquote {
  margin: 0; background: #fff; border: 1px solid var(--line);
  border-left: 4px solid var(--brand); border-radius: var(--radius-sm);
  padding: 16px 18px; font-size: 14px; line-height: 1.6; color: var(--ink);
}
.testimonials cite { display: block; margin-top: 10px; font-style: normal; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.proof-note { font-size: 12px; color: var(--muted); margin-top: 14px; }


/* ── 市场卡片（审查补：卡片化 + 触控 ≥44px）── */
.market-card {
  position: relative;
  display: flex; flex-direction: column; gap: 3px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px 18px; min-height: 44px;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.market-card:hover { border-color: var(--brand); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.market-card .flag { font-size: 24px; line-height: 1.2; }
.market-card .name { font-weight: 700; font-size: 14.5px; color: var(--ink); }
.market-card .region { font-size: 12.5px; color: var(--muted); }
.priority-badge {
  position: absolute; top: 10px; right: 12px;
  background: var(--hot, #d43030); color: #fff;
  font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px;
}


/* ── 阿里信任徽章带（首页 Hero）── */
.trust-badges { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 20px; }
.trust-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255, 255, 255, .16); color: #fff;
  padding: 7px 15px; border-radius: 999px;
  font-size: 13px; font-weight: 500;
  border: 1px solid rgba(255, 255, 255, .22);
}
.trust-badge b { font-weight: 600; }

/* ── P2-2 FAQ 区块 ─────────────────────────────────────── */
.faq-section .faq-item {
  border: 1px solid var(--line); border-radius: 10px;
  padding: 0; margin-bottom: 10px; background: var(--card);
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer; padding: 14px 18px; font-weight: 600; font-size: 15px;
  list-style: none; position: relative; min-height: 44px;
  display: flex; align-items: center; padding-right: 44px;
}
.faq-item summary::after {
  content: '+'; position: absolute; right: 16px; top: 50%;
  transform: translateY(-50%); font-size: 20px; font-weight: 400;
  color: var(--brand); transition: transform .18s ease;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item p { padding: 0 18px 16px; margin: 0; color: var(--muted); font-size: 14.5px; }
.faq-item summary:hover { background: var(--accent); }

/* ── P2-5 导航栏与 Hero 柔和过渡 ───────────────────────── */
.site-nav, header.nav, nav.nav { box-shadow: 0 1px 0 rgba(20, 30, 50, .06), 0 8px 24px -18px rgba(78, 44, 122, .25); }

/* ── 隐藏 Netlify 免费套餐 "Powered by Netlify" 角标（B方案）── */
#netlify-badge,
.netlify-badge,
[class*="netlify-badge"],
a[href="https://www.netlify.com"],
a[href*="netlify.com/img/global/badges"],
img[src*="netlify.com/img/global/badges"],
iframe[src*="netlify.com"] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* ── 隐藏 Netlify 免费套餐 "Powered by Netlify" 角标（v2 广谱版）── */
/* 覆盖 Netlify 已知所有 badge 形态：id / class / 属性 / iframe */
[id*="nf-attr"],
[id*="netlify"],
[class*="nf-attr"],
[class*="netlify-attribution"],
[class*="netlify-badge"],
a[href="https://www.netlify.com"],
a[href*="netlify.com"][target="_blank"],
a[href^="https://www.netlify.com/?utm_campaign="],
img[src*="netlify.com"],
img[alt*="Deploys by Netlify"],
img[alt*="Powered by Netlify"],
iframe[src*="netlify"],
iframe[name*="netlify"] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  width: 0 !important;
  height: 0 !important;
  position: absolute !important;
  z-index: -9999 !important;
}

/* ── About 页品牌名故事块 ──────────────────────────────── */
.brand-story {
  background: var(--accent, #f4f0f9);
  border-left: 4px solid var(--brand, #6b3fa0);
  border-radius: 10px;
  padding: 16px 20px;
  margin: 0 0 18px;
}
.brand-story p { margin: 0 0 10px; }
.brand-story ul { margin: 0; padding-left: 0; list-style: none; }
.brand-story li { padding: 6px 0; line-height: 1.6; }
.brand-story li + li { border-top: 1px solid rgba(107, 63, 160, .12); }
