/* ==========================================================================
   Manduic Electronics — Global Stylesheet
   B2B electronic components / trade website
   ========================================================================== */

:root {
  /* Brand */
  --navy-900: #0a1c33;
  --navy-800: #102a4c;
  --navy-700: #16375f;
  --navy-600: #1d4576;
  --blue-500: #1a6fd4;
  --blue-400: #3d8ce8;
  --blue-100: #e8f1fd;
  --blue-50:  #f4f9ff;
  --cyan-400: #22b8cf;
  --amber-500: #f59e0b;

  /* Neutrals */
  --ink-900: #0f172a;
  --ink-700: #334155;
  --ink-500: #64748b;
  --ink-400: #94a3b8;
  --line: #e2e8f0;
  --line-soft: #eef2f7;
  --surface: #ffffff;
  --surface-2: #f7f9fc;
  --surface-3: #eef3f9;

  /* Layout */
  --wrap: 1200px;
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, .06);
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, .06);
  --shadow: 0 6px 24px rgba(15, 23, 42, .08);
  --shadow-lg: 0 18px 48px rgba(15, 23, 42, .12);

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue",
          "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  --mono: "SFMono-Regular", ui-monospace, "JetBrains Mono", Consolas, monospace;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-700);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--blue-500); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--navy-700); }
h1, h2, h3, h4 {
  color: var(--ink-900);
  line-height: 1.22;
  margin: 0 0 .6em;
  font-weight: 700;
  letter-spacing: -.02em;
}
h1 { font-size: clamp(2rem, 4.4vw, 3.35rem); }
h2 { font-size: clamp(1.5rem, 2.8vw, 2.15rem); }
h3 { font-size: 1.2rem; }
h4 { font-size: 1rem; }
p  { margin: 0 0 1.1em; }
ul { margin: 0 0 1.1em; padding-left: 1.15em; }
li { margin-bottom: .4em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }
.section { padding: 84px 0; }
.section--tight { padding: 56px 0; }
.section--alt { background: var(--surface-2); }
.section--navy { background: var(--navy-900); color: #cbd8e8; }
.section--navy h2, .section--navy h3 { color: #fff; }
/* minmax(0,1fr) 而非 1fr：列的最小宽度默认是 auto（= 内容最小宽度），
   遇到不可收缩的 flex 子项（如固定尺寸图标）会把列撑破容器、导致横向滚动。
   用 minmax(0,...) 允许列自由收缩。 */
.grid { display: grid; gap: 24px; }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.center { text-align: center; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px; gap: 28px;
}
.logo { display: flex; align-items: center; gap: 11px; font-weight: 800; color: var(--navy-900); font-size: 1.16rem; letter-spacing: -.01em; }
.logo:hover { color: var(--navy-900); }
.logo picture { display: contents; }
.logo-img { height: 42px; width: auto; display: block; }
.logo small { display: block; font-size: .66rem; font-weight: 500; color: var(--ink-500); letter-spacing: .07em; text-transform: uppercase; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  color: var(--ink-700); font-size: .925rem; font-weight: 500;
  padding: 9px 13px; border-radius: var(--radius-sm);
}
.nav a:hover { background: var(--surface-3); color: var(--navy-800); }
.nav a.is-active { color: var(--blue-500); background: var(--blue-50); }

.header-cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle {
  display: none; width: 42px; height: 42px; border: 1px solid var(--line);
  background: #fff; border-radius: var(--radius-sm); cursor: pointer;
  padding: 0; place-items: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 18px; height: 2px; background: var(--ink-900); border-radius: 2px;
  position: relative; transition: .2s ease;
}
.nav-toggle span::before { content: ""; position: absolute; top: -6px; }
.nav-toggle span::after  { content: ""; position: absolute; top: 6px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: var(--radius-sm);
  font-size: .93rem; font-weight: 600; cursor: pointer;
  border: 1px solid transparent; transition: all .18s ease;
  text-align: center; white-space: nowrap;
}
.btn-primary { background: var(--blue-500); color: #fff; }
.btn-primary:hover { background: var(--navy-700); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-navy { background: var(--navy-900); color: #fff; }
.btn-navy:hover { background: var(--navy-700); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink-700); }
.btn-ghost:hover { border-color: var(--navy-800); color: var(--navy-800); background: #fff; }
.btn-light { background: #fff; color: var(--navy-900); }
.btn-light:hover { background: var(--blue-50); color: var(--navy-900); transform: translateY(-1px); }
.btn-outline-light { background: transparent; border-color: rgba(255,255,255,.34); color: #fff; }
.btn-outline-light:hover { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.6); }
.btn-sm { padding: 9px 16px; font-size: .86rem; }
.btn-block { width: 100%; }

/* ---------- Eyebrow / section head ---------- */
.eyebrow {
  display: inline-block; font-size: .74rem; font-weight: 700;
  letter-spacing: .13em; text-transform: uppercase;
  color: var(--blue-500); margin-bottom: 12px;
}
.section--navy .eyebrow { color: var(--cyan-400); }
.section-head { max-width: 720px; margin-bottom: 46px; }
.section-head.center { margin-left: auto; margin-right: auto; }
.section-head p { font-size: 1.02rem; color: var(--ink-500); margin-bottom: 0; }
.section--navy .section-head p { color: #9fb3cc; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 460px at 82% -8%, rgba(26,111,212,.20), transparent 62%),
    radial-gradient(700px 420px at 6% 104%, rgba(34,184,207,.14), transparent 60%),
    linear-gradient(160deg, #0a1c33 0%, #102a4c 52%, #16375f 100%);
  color: #d7e3f2;
  padding: 108px 0 96px;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(700px 420px at 60% 20%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(700px 420px at 60% 20%, #000 20%, transparent 78%);
}
.hero .wrap { position: relative; z-index: 2; }
.hero-grid { display: grid; grid-template-columns: minmax(0,1.08fr) minmax(0,.92fr); gap: 64px; align-items: center; }
.hero h1 { color: #fff; margin-bottom: .35em; }
.hero h1 em { font-style: normal; color: var(--cyan-400); }
.hero-lead { font-size: 1.12rem; color: #a9c1da; max-width: 560px; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 13px; margin-bottom: 34px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 26px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.12); }
.hero-trust div strong { display: block; font-size: 1.6rem; color: #fff; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.hero-trust div span { font-size: .8rem; color: #8fa6bf; }

/* Hero spec card */
.hero-card {
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.13);
  border-radius: var(--radius-lg);
  padding: 26px 26px 22px;
  backdrop-filter: blur(6px);
  box-shadow: 0 24px 60px rgba(0,0,0,.28);
}
.hero-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
/* 卡片标题是「构件标签」不是文档章节标题，故用 <p> 承载，避免 h1→h4 跳级 */
.hero-card-head .hero-card-title { color: #fff; margin: 0; font-size: .95rem; font-weight: 700; line-height: 1.22; letter-spacing: -.02em; }
.pill {
  font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px;
  background: rgba(34,184,207,.16); color: var(--cyan-400); border: 1px solid rgba(34,184,207,.3);
}
.spec-row {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 11px 0; border-bottom: 1px dashed rgba(255,255,255,.1); font-size: .875rem;
}
.spec-row:last-of-type { border-bottom: 0; }
.spec-row span { color: #8fa6bf; }
.spec-row b { color: #fff; font-weight: 600; font-family: var(--mono); font-size: .84rem; }

/* ---------- Cards ---------- */
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px 26px;
  transition: all .2s ease;
}
.card:hover { border-color: #c8d7e8; box-shadow: var(--shadow); transform: translateY(-3px); }
.card-icon {
  width: 46px; height: 46px; border-radius: 11px;
  background: var(--blue-50); color: var(--blue-500);
  display: grid; place-items: center; margin-bottom: 18px;
}
.card-icon svg { width: 22px; height: 22px; }
.card h3 { font-size: 1.06rem; margin-bottom: .45em; }
.card p { font-size: .93rem; color: var(--ink-500); margin-bottom: 0; }
.card-link { display: inline-flex; align-items: center; gap: 6px; font-size: .88rem; font-weight: 600; margin-top: 16px; }
.card-link::after { content: "\2192"; transition: transform .18s ease; }
.card:hover .card-link::after { transform: translateX(4px); }

/* ---------- Article cards (insights 列表 / 首页 Latest Insights 共用) ---------- */
.article-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; transition: all .2s ease; }
.article-card:hover { border-color: #c8d7e8; box-shadow: var(--shadow); transform: translateY(-3px); }
.ac-body { padding: 24px 24px 20px; display: flex; flex-direction: column; flex: 1; }
.ac-meta { display: flex; align-items: center; gap: 10px; font-size: .76rem; color: var(--ink-400); margin-bottom: 12px; }
.ac-meta .ac-cat { color: var(--blue-500); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.ac-title { font-size: 1.08rem; margin-bottom: .5em; line-height: 1.35; }
.ac-title a { color: var(--ink-900); }
.ac-title a:hover { color: var(--blue-500); }
.ac-excerpt { font-size: .9rem; color: var(--ink-500); margin-bottom: 16px; flex: 1; }
.ac-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line-soft); font-size: .8rem; color: var(--ink-400); }
.ac-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.ac-tags span { font-size: .7rem; font-family: var(--mono); background: var(--surface-3); color: var(--navy-700); padding: 2px 6px; border-radius: 4px; }

/* 首页 Latest Insights：日期用等宽字体对齐，卡片间用小间距密排 */
.latest-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.latest-grid .ac-date { font-family: var(--mono); font-size: .76rem; }
@media (max-width: 900px) { .latest-grid { grid-template-columns: 1fr; } }

/* ---------- Category tiles ---------- */
.cat-tile {
  position: relative; display: block; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); padding: 26px 24px;
  transition: all .2s ease;
}
.cat-tile:hover { border-color: var(--blue-400); box-shadow: var(--shadow); transform: translateY(-3px); }
.cat-tile h3 { color: var(--ink-900); font-size: 1.04rem; margin-bottom: .3em; }
.cat-tile p { font-size: .875rem; color: var(--ink-500); margin: 0 0 14px; }
.cat-tile .tag-row { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  font-size: .72rem; font-family: var(--mono); color: var(--navy-700);
  background: var(--surface-3); border-radius: 4px; padding: 3px 7px;
}
a.tag { text-decoration: none; transition: background .15s ease, color .15s ease; }
a.tag:hover, a.tag:focus-visible { background: var(--blue-400); color: #fff; }

/* ---------- Product grid ---------- */
.toolbar {
  display: flex; flex-direction: column; gap: 14px;
  margin-bottom: 26px; padding: 16px 18px;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius);
}
.toolbar-top {
  display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between;
}
.toolbar-count { margin: 0; font-size: .85rem; color: var(--ink-500); }
/* search-box 不带 flex 尺寸：纵向 toolbar（insights）下 flex-basis 300px 会变成
   高度基准、把搜索框撑到 300px 高。横向撑开只在 .toolbar-top（行向）里启用。 */
.search-box { position: relative; max-width: 380px; }
.toolbar-top .search-box { flex: 1 1 auto; }
.search-box input {
  width: 100%; padding: 11px 14px 11px 40px;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-size: .92rem; font-family: inherit; color: var(--ink-900); background: #fff;
}
.search-box input:focus { outline: none; border-color: var(--blue-400); box-shadow: 0 0 0 3px var(--blue-100); }
.search-box svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--ink-400); }
.filters { display: flex; flex-wrap: wrap; gap: 7px; }
.chip {
  font-size: .855rem; font-weight: 500; padding: 8px 14px; cursor: pointer;
  border: 1px solid var(--line); background: #fff; color: var(--ink-700);
  border-radius: 999px; font-family: inherit; transition: all .16s ease;
}
.chip:hover { border-color: var(--blue-400); color: var(--blue-500); }
.chip.is-active { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }

/* 二级品类筛选：选中一级分类后出现的第二排 chips */
.subfilters {
  display: none;
  gap: 7px; padding-top: 12px;
  border-top: 1px dashed var(--line);
}
.subfilters.is-visible { display: flex; }
.subfilters .chip {
  font-size: .8rem; padding: 6px 12px;
  background: transparent; border-color: var(--line-strong);
  color: var(--ink-500);
}
.subfilters .chip:hover { background: #fff; }
.subfilters .chip.is-active {
  background: var(--blue-500); border-color: var(--blue-500); color: #fff;
}
.subfilters .chip .n {
  margin-left: 5px; font-size: .74rem; opacity: .65; font-weight: 400;
}

/* 参数筛选：分类/品牌/搜索把范围收窄后出现的第三排下拉（AND 组合） */
.specbar {
  display: none; flex-wrap: wrap; gap: 8px 14px; align-items: center;
  padding-top: 12px; border-top: 1px dashed var(--line);
}
.specbar.is-visible { display: flex; }
.specbar-label {
  font-size: .72rem; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; color: var(--ink-400); font-family: var(--mono);
}
.spec-facet { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; color: var(--ink-500); }
.spec-facet select {
  font: inherit; font-size: .8rem; padding: 5px 26px 5px 9px;
  border: 1px solid var(--line-strong); border-radius: 8px;
  background: #fff; color: var(--ink-700); max-width: 260px; cursor: pointer;
  transition: border-color .16s ease;
}
.spec-facet select:hover, .spec-facet select:focus { border-color: var(--blue-400); outline: none; }
.specbar .spec-clear {
  font-size: .74rem; padding: 5px 11px; background: transparent;
  border-color: var(--line-strong); color: var(--ink-500);
}

.product-card {
  display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); overflow: hidden; transition: all .2s ease;
}
.product-card:hover { border-color: #c8d7e8; box-shadow: var(--shadow); transform: translateY(-3px); }
.pc-top {
  padding: 20px 22px 16px; border-bottom: 1px solid var(--line-soft);
  background: linear-gradient(180deg, var(--surface-2), #fff);
}
.pc-link { display: block; text-decoration: none; color: inherit; }
.pc-link:hover .pc-name { color: var(--blue-500); }
.pc-link:hover .pc-desc { color: var(--ink-700); }
.pc-name { transition: color .16s ease; }
.pc-brand { font-size: .72rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--blue-500); }
.pc-name { font-family: var(--mono); font-size: 1.02rem; font-weight: 700; color: var(--ink-900); margin: 5px 0 7px; letter-spacing: -.01em; word-break: break-word; }
.pc-desc { font-size: .855rem; color: var(--ink-500); margin: 0; line-height: 1.55; transition: color .16s ease; }
.pc-specs { padding: 14px 22px; flex: 1; }
.pc-specs div { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; font-size: .815rem; border-bottom: 1px dashed var(--line-soft); }
.pc-specs div:last-child { border-bottom: 0; }
.pc-specs dt { color: var(--ink-500); flex: 0 0 auto; }
.pc-specs dd { margin: 0; color: var(--ink-900); font-weight: 600; font-family: var(--mono); font-size: .79rem; text-align: right; }
.pc-foot { padding: 14px 22px 18px; display: flex; gap: 10px; }
.pc-foot .btn { width: auto; flex: 1; justify-content: center; }
.empty-state { grid-column: 1 / -1; text-align: center; padding: 64px 20px; color: var(--ink-500); }
/* 空态提示是「状态消息」而非章节标题，用 <p> 承载，避免 h1→h3 跳级 */
.empty-state .empty-state-title { font-size: 1.2rem; font-weight: 700; color: var(--ink-900); margin: 0 0 .6em; line-height: 1.22; letter-spacing: -.02em; }

/* ---------- Feature list ---------- */
.feature-list { display: grid; gap: 18px; }
.feature { display: flex; gap: 15px; min-width: 0; }
.feature > div:last-child { min-width: 0; }
.feature-ico {
  flex: none;
  flex: 0 0 38px; width: 38px; height: 38px; border-radius: 9px;
  background: var(--blue-50); color: var(--blue-500); display: grid; place-items: center;
}
.feature-ico svg { width: 19px; height: 19px; }
.feature h3 { margin-bottom: .25em; font-size: .98rem; }
.feature p { font-size: .89rem; color: var(--ink-500); margin: 0; }
.section--navy .feature-ico { background: rgba(34,184,207,.14); color: var(--cyan-400); }
.section--navy .feature p { color: #9fb3cc; }

/* ---------- Brand wall ---------- */
.brand-wall { display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap: 12px; }
.brand-chip {
  display: grid; place-items: center; padding: 18px 10px;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: #fff; text-align: center;
  font-size: .8rem; font-weight: 600; color: var(--ink-700);
  transition: all .18s ease;
}
.brand-chip:hover { border-color: var(--blue-400); color: var(--blue-500); }
a.brand-chip { text-decoration: none; }
.brand-wall-more { text-align: center; margin-top: 18px; font-size: .85rem; }
.brand-wall-more a { font-weight: 600; }
.brand-chip small { display: block; font-size: .66rem; color: var(--ink-400); font-weight: 500; font-family: var(--mono); margin-top: 3px; }

/* 全量品牌页：卡片信息量大，左对齐 + 4 列，避免 6 列挤成两行 */
.brand-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; }
.brand-grid .brand-chip { place-items: start; text-align: left; padding: 15px 16px; }

/* ---------- Steps ---------- */
.steps { counter-reset: step; display: grid; gap: 0; }
.step {
  position: relative; padding: 0 0 34px 62px; border-left: 2px solid var(--line);
  margin-left: 21px;
}
.step:last-child { border-left-color: transparent; padding-bottom: 0; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: -22px; top: -2px;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--navy-900); color: #fff;
  display: grid; place-items: center; font-weight: 700; font-size: .95rem;
  border: 4px solid #fff; box-shadow: var(--shadow-xs);
}
.step h3 { margin-bottom: .3em; font-size: 1rem; }
.step p { font-size: .91rem; color: var(--ink-500); margin: 0; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: .86rem; font-weight: 600; color: var(--ink-900); }
.field label .req { color: #dc2626; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; font-family: inherit; font-size: .93rem;
  color: var(--ink-900); background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  transition: border-color .16s ease, box-shadow .16s ease;
}
.field textarea { min-height: 132px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue-400); box-shadow: 0 0 0 3px var(--blue-100);
}
.field .hint { font-size: .78rem; color: var(--ink-400); }
.form-note { font-size: .82rem; color: var(--ink-500); margin-top: 4px; }
.form-status { display: none; margin-top: 16px; padding: 13px 16px; border-radius: var(--radius-sm); font-size: .9rem; }
.form-status.is-ok  { display: block; background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; }
.form-status.is-err { display: block; background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }

/* ---------- Contact aside ---------- */
.contact-card {
  background: var(--navy-900); color: #cbd8e8;
  border-radius: var(--radius-lg); padding: 32px 30px;
}
.contact-card h3 { color: #fff; }
.contact-line { display: flex; gap: 13px; padding: 15px 0; border-bottom: 1px solid rgba(255,255,255,.11); }
.contact-line:last-of-type { border-bottom: 0; }
.contact-line svg { flex: 0 0 18px; width: 18px; height: 18px; color: var(--cyan-400); margin-top: 3px; }
.contact-line span { display: block; font-size: .76rem; color: #8fa6bf; text-transform: uppercase; letter-spacing: .08em; }
.contact-line b, .contact-line a { color: #fff; font-size: .94rem; font-weight: 600; word-break: break-word; }
.contact-line a:hover { color: var(--cyan-400); }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--navy-900), var(--navy-700) 60%, #1a4b80);
  border-radius: var(--radius-lg); padding: 52px 48px; color: #cbd8e8;
  display: flex; align-items: center; justify-content: space-between; gap: 34px; flex-wrap: wrap;
}
.cta-band h2 { color: #fff; margin-bottom: .3em; }
.cta-band p { margin: 0; color: #a9c1da; }
.cta-band .actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  background: linear-gradient(150deg, var(--navy-900), var(--navy-700) 70%, #1a4b80);
  color: #cbd8e8; padding: 68px 0 58px;
}
.page-hero h1 { color: #fff; font-size: clamp(1.75rem, 3.4vw, 2.6rem); margin-bottom: .35em; }
.page-hero p { max-width: 660px; color: #a9c1da; margin: 0; font-size: 1.03rem; }
/* ---------- Breadcrumb ----------
   默认配色按「白底」设计（产品详情页 .pd-hero 是透明白底）：
   链接用全站默认链接蓝，hover 变深——白底上永远可读。
   深蓝页头里的浅色配色收进 .page-hero 作用域（见下）。
   ⚠ 不要把浅色写回全局：白底 + hover #fff 会直接隐形（踩过）。 */
.breadcrumb { font-size: .82rem; color: var(--ink-500); margin-bottom: 14px; }
.breadcrumb a { color: var(--blue-500); }
.breadcrumb a:hover { color: var(--navy-700); }

/* 深蓝 page-hero 内的面包屑：浅色（原全局色，只为深底保留） */
.page-hero .breadcrumb { color: #8fa6bf; }
.page-hero .breadcrumb a { color: #a9c1da; }
.page-hero .breadcrumb a:hover { color: #fff; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: .89rem; min-width: 560px; }
thead th {
  background: var(--surface-2); color: var(--ink-900); font-weight: 700;
  text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line);
  font-size: .82rem; letter-spacing: .02em; white-space: nowrap;
}
tbody td { padding: 12px 16px; border-bottom: 1px solid var(--line-soft); color: var(--ink-700); }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: var(--blue-50); }
td code, .mono { font-family: var(--mono); font-size: .85rem; color: var(--ink-900); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: #93a9c4; padding: 62px 0 28px; font-size: .89rem; }
.footer-grid { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(0,1fr) minmax(0,1fr) minmax(0,1.2fr); gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.1); }
/* 页脚栏目名是导航分组标签，非文档章节标题；若用 h4 会在每页末尾造成 h2→h4 跳级。
   改用 <p class="fcol-title">，视觉保持完全一致。 */
.site-footer .fcol-title { color: #fff; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 16px; font-weight: 700; line-height: 1.22; }
.site-footer a { color: #93a9c4; display: block; padding: 5px 0; }
.site-footer a:hover { color: #fff; }
.site-footer .logo { color: #fff; margin-bottom: 14px; }
.site-footer .logo small { color: #7b91ab; }
.footer-about p { color: #93a9c4; font-size: .875rem; line-height: 1.7; }
.footer-bottom { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding-top: 24px; font-size: .82rem; color: #7b91ab; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 22px; z-index: 90;
  display: inline-flex; align-items: center; gap: 9px;
  background: #25d366; color: #fff; font-weight: 600; font-size: .9rem;
  padding: 12px 18px 12px 14px; border-radius: 999px;
  box-shadow: 0 10px 28px rgba(37,211,102,.4);
}
.wa-float:hover { color: #fff; background: #1eb958; transform: translateY(-2px); }
.wa-float svg { width: 21px; height: 21px; }

/* ==========================================================================
   Layout helpers
   原先散落在各页 HTML 上的 style="..." 内联样式，统一收敛到这里。分两类：
     ① 组件修饰符 —— 有明确语义、跨页复用（grid 间距/对齐、页脚城市行、
        卡片紧凑变体、Application 页「Typical parts」分组、纵向 CTA 横幅）；
     ② 工具类 u-* —— 真正的单点微调，只处理间距与字号。取值照搬原设计，
        不做等比换算，避免出现 u-mt-23 这类没有设计含义的碎值。
   注意两点：
     · 本段必须排在它所覆盖的组件规则（.card / .grid / .cta-band /
       .form-note 等）之后 —— 同权重下靠后者生效。
     · 工具类权重是单类 (0,1,0)，只能压住同样是单类的规则。若要覆盖
       「类 + 元素」这样的规则（例如 .card h3、.section-head p），请改用
       组件修饰符，不要指望 u-* 生效 —— 内联样式曾经天然拥有这个优先级，
       类名没有，这是迁移时最容易踩的坑。
   ========================================================================== */

/* ---------- grid 修饰符（叠加在 .grid / .g-2 / .g-3 上）---------- */
.grid--gap-sm  { gap: 18px; }
.grid--gap-md  { gap: 26px; }
.grid--gap-lg  { gap: 48px; }
.grid--gap-xl  { gap: 60px; }
.grid--gap-2xl { gap: 64px; }
.grid--middle  { align-items: center; }
.grid--top     { align-items: start; }

/* ---------- 页脚「Shenzhen & Hong Kong」行（深底上的次要文字）---------- */
.footer-city { margin-top: 10px; color: #7b91ab; }

/* ---------- About 页价值卡片：比默认 .card 更紧凑 ---------- */
.value-card { padding: 22px 20px; }
.value-card h3 { margin-bottom: .2em; font-size: 1rem; }
.value-card p { font-size: .87rem; margin: 0; }

/* ---------- 紧凑卡片：标题与列表等比缩小（Contact 页「问询要点」卡）----------
   .card h3 是「类+元素」权重，工具类压不住，所以做成修饰符放在其后。 */
.card--compact h3 { font-size: 1rem; }
.card--compact ul { font-size: .9rem; color: var(--ink-500); margin-bottom: 0; }

/* ---------- Applications 页「Typical parts」分组 ---------- */
.app-parts { margin-top: 14px; }
.app-parts > strong { font-size: .85rem; }
.app-parts .tag-row { margin-top: 8px; }

/* ---------- CTA 横幅：内容纵向堆叠的窄版 ---------- */
.cta-band--block { display: block; }
.cta-band--block h2 { font-size: 1.5rem; }
.cta-band--block p { margin-bottom: 20px; }

/* ---------- 间距工具类 ---------- */
.u-mt-10 { margin-top: 10px; }
.u-mt-12 { margin-top: 12px; }
.u-mt-14 { margin-top: 14px; }
.u-mt-20 { margin-top: 20px; }
.u-mt-22 { margin-top: 22px; }
.u-mt-24 { margin-top: 24px; }
.u-mt-26 { margin-top: 26px; }
.u-mt-28 { margin-top: 28px; }
.u-mt-30 { margin-top: 30px; }
.u-mt-34 { margin-top: 34px; }
.u-mt-56 { margin-top: 56px; }
.u-mb-22 { margin-bottom: 22px; }
.u-mb-26 { margin-bottom: 26px; }

/* ---------- 字号 / 颜色工具类 ---------- */
.u-fs-92  { font-size: .92rem; }
.u-muted  { color: var(--ink-500); }
.u-c-soft { color: #9fb3cc; }
.u-mw-760 { max-width: 760px; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: minmax(0,1fr); gap: 44px; }
  .g-4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .brand-wall { grid-template-columns: repeat(4, minmax(0,1fr)); }
  .brand-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 32px; }
}
@media (max-width: 860px) {
  .section { padding: 62px 0; }
  .g-3 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .cta-band { padding: 38px 26px; }
  .nav-toggle { display: grid; }
  .nav {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 12px 18px 20px; box-shadow: var(--shadow);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 14px; }
  .header-cta .btn-ghost { display: none; }
}
@media (max-width: 640px) {
  .g-2, .g-3, .g-4 { grid-template-columns: minmax(0,1fr); }
  .brand-wall { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .brand-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .form-grid { grid-template-columns: minmax(0,1fr); }
  .footer-grid { grid-template-columns: minmax(0,1fr); }
  .hero { padding: 76px 0 66px; }
  .hero-trust { gap: 20px; }
  .hero-trust div strong { font-size: 1.35rem; }
  .toolbar { padding: 14px; }
  .toolbar-top { flex-direction: column; align-items: stretch; }
  .search-box { max-width: none; }
  .toolbar-top .search-box { flex: 0 0 auto; }
  .wa-float span { display: none; }
  .wa-float { padding: 14px; }
  /* 输入控件 ≥16px：防止 iOS Safari 聚焦时自动放大页面 */
  .field input, .field select, .field textarea,
  .search-box input { font-size: 16px; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .wa-float, .cta-band { display: none; }
  body { font-size: 12pt; }
}

/* ---------- Figures（文章/产品页配图，配合 <picture> + lazy 使用）----------
   样式只为「有图时」生效；模板里未启用配图时这些规则不会被命中。
   img 一律 width:100% + height:auto：HTML 上写的 width/height 属性负责
   按比例预留占位（防止懒加载造成的 CLS 布局跳动），CSS 负责实际撑满容器。 */
.article-figure,
.pd-figure {
  margin: 28px 0;
  padding: 0;
}
.article-figure picture,
.pd-figure picture { display: block; }
.article-figure img,
.pd-figure img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-3);
}
.article-figure figcaption,
.pd-figure figcaption {
  margin-top: 10px;
  font-size: .84rem;
  color: var(--ink-400);
  text-align: center;
  line-height: 1.5;
}
/* 配图在页面上通常不参与打印的交互，但保留图片本身 */
@media print {
  .article-figure, .pd-figure { break-inside: avoid; }
}

/* ============================================================
   catalogue.html —— 全目录页（HTML sitemap）
   612 个型号按品类分组的多列链接表；纯静态、无 JS。
   ============================================================ */
.idx-n {
  font-weight: 400;
  font-size: 1rem;
  color: var(--ink-500);
  margin-left: .5rem;
}
.idx-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 0 2rem;
}
.idx-list li { border-bottom: 1px solid var(--line-soft); }
.idx-list a {
  display: block;
  padding: .42rem 0;
  color: var(--ink-900);
  text-decoration: none;
  font-size: .95rem;
}
.idx-list a:hover,
.idx-list a:focus-visible { color: var(--blue-500); }
.idx-list--wide { grid-template-columns: 1fr; }
@media (min-width: 720px) {
  .idx-list--wide { grid-template-columns: repeat(2, 1fr); gap: 0 3rem; }
}
