/* ============================================================
   ABUK — Earthing & Lightning Protection · 独立站样式表
   品牌色取自 ABUKlogo.pdf：蓝 #455095 / 红 #DA3C59
   版面参考 kingsmillindustries.com 的品类树 + 规格表结构
   不加载任何网络字体：尼日利亚移动网络带宽有限，首屏必须能秒开
   ============================================================ */

:root {
  --brand: #455095;
  --brand-dk: #2c3568;
  --brand-lt: #eef0f8;
  --accent: #da3c59;
  --accent-dk: #b32a45;

  --ink: #14161c;
  --ink-2: #3a3f4c;
  --muted: #6a7080;
  --line: #e2e5ea;
  --line-2: #eef0f3;
  --tile: #f2f2f2;
  --bg: #ffffff;
  --bg-soft: #f7f8fa;
  --warn-bg: #fff7e6;
  --warn-line: #e8c66a;
  --warn-ink: #7a5a10;

  --wrap: 1240px;
  --r: 3px;
  --shadow: 0 1px 2px rgba(20, 22, 28, .05), 0 8px 24px -12px rgba(20, 22, 28, .18);

  --f-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue",
            "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  --f-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }

/* hidden 必须压得过下面任何 display 规则：WhatsApp 号没填时按钮要真的不出现 */
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  color: var(--ink);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -.015em;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2rem, 4.2vw, 3.25rem); letter-spacing: -.028em; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); letter-spacing: -.022em; }
h3 { font-size: 1.16rem; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }
.wrap-narrow { max-width: 860px; margin-inline: auto; padding-inline: 24px; }

/* ---------- 通用零件 ---------- */

.eyebrow {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--brand);
  margin: 0 0 .75rem;
}
.eyebrow.on-dark { color: #9fabe0; }

.lede { font-size: 1.1rem; color: var(--ink-2); max-width: 62ch; }

.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .78rem 1.4rem;
  font: inherit; font-weight: 650; font-size: .94rem;
  border: 1px solid transparent; border-radius: var(--r);
  cursor: pointer; text-decoration: none !important;
  transition: background .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dk); }
.btn-brand { background: var(--brand); color: #fff; }
.btn-brand:hover { background: var(--brand-dk); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-ghost-dark { border-color: rgba(255,255,255,.35); color: #fff; background: transparent; }
.btn-ghost-dark:hover { border-color: #fff; background: rgba(255,255,255,.1); }
.btn-sm { padding: .5rem .9rem; font-size: .84rem; }

/* 待核实标记：站上任何未经核实的数字都挂这个，正式上线前必须清空 */
.tbc {
  display: inline-block;
  padding: .06em .45em;
  border: 1px dashed var(--warn-line);
  border-radius: 2px;
  background: var(--warn-bg);
  color: var(--warn-ink);
  font-size: .8em; font-weight: 600;
  white-space: nowrap;
}

.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 62ch; margin-bottom: 2.5rem; }

/* ---------- 顶栏 ---------- */

.utility {
  background: var(--brand-dk);
  color: #c8cee8;
  font-size: .8rem;
}
.utility .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 38px; flex-wrap: wrap;
}
.utility-facts { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.utility-facts span { white-space: nowrap; }
.utility a { color: #fff; }
.utility-right { display: flex; align-items: center; gap: 1rem; }

.lang-toggle { display: inline-flex; border: 1px solid rgba(255,255,255,.28); border-radius: 2px; overflow: hidden; }
.lang-toggle button {
  font: inherit; font-size: .78rem; font-weight: 600;
  padding: .18rem .55rem; border: 0; background: transparent;
  color: #c8cee8; cursor: pointer;
}
.lang-toggle button[aria-pressed="true"] { background: #fff; color: var(--brand-dk); }

/* ---------- 主导航 ---------- */

.masthead {
  position: sticky; top: 0; z-index: 60;
  background: #fff; border-bottom: 1px solid var(--line);
}
.masthead .wrap {
  display: flex; align-items: center; gap: 1.5rem; min-height: 74px;
}
.brand { display: flex; align-items: center; gap: .7rem; flex: 0 0 auto; }
.brand:hover { text-decoration: none; }
.brand img { width: 108px; }
.brand-tag {
  border-left: 1px solid var(--line); padding-left: .7rem;
  font-size: .68rem; line-height: 1.25; color: var(--muted);
  letter-spacing: .04em; text-transform: uppercase; max-width: 9rem;
}

.nav { margin-left: auto; display: flex; align-items: center; gap: .25rem; }
.nav > a, .nav > .has-menu > a {
  display: block; padding: .55rem .72rem;
  font-size: .93rem; font-weight: 600; color: var(--ink);
  border-radius: var(--r);
}
.nav a:hover { color: var(--brand); text-decoration: none; background: var(--brand-lt); }
.nav a[aria-current="page"] { color: var(--brand); }

.has-menu { position: relative; }
.has-menu > a::after {
  content: ""; display: inline-block; margin-left: .4em;
  border: 4px solid transparent; border-top-color: currentColor;
  transform: translateY(2px);
}
.megamenu {
  position: absolute; top: calc(100% + 1px); left: 50%; transform: translateX(-50%);
  min-width: 620px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--shadow);
  padding: 1.4rem; display: none;
  grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem 2rem;
}
.has-menu:hover .megamenu, .has-menu:focus-within .megamenu { display: grid; }
.megamenu h4 {
  font-size: .7rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); margin-bottom: .6rem; font-weight: 700;
}
.megamenu ul { list-style: none; margin: 0; padding: 0; }
.megamenu li + li { margin-top: .1rem; }
.megamenu a {
  display: block; padding: .3rem .4rem; margin-left: -.4rem;
  border-radius: 2px; font-size: .9rem; color: var(--ink-2);
}
.megamenu a:hover { background: var(--brand-lt); color: var(--brand); text-decoration: none; }
.megamenu .count { color: var(--muted); font-size: .8em; }

.nav-cta { margin-left: .6rem; }
.nav-basket {
  position: relative; display: inline-flex; align-items: center; gap: .45rem;
  padding: .5rem .8rem; font-size: .86rem; font-weight: 650;
  border: 1px solid var(--line); border-radius: var(--r); color: var(--ink);
}
.nav-basket:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }
.nav-basket .n {
  min-width: 1.35em; padding: 0 .32em; border-radius: 999px;
  background: var(--accent); color: #fff; font-size: .74rem; text-align: center;
}
.nav-basket[data-empty="1"] .n { background: var(--muted); }

.burger { display: none; margin-left: auto; background: none; border: 1px solid var(--line);
  border-radius: var(--r); padding: .5rem .7rem; font-size: 1rem; cursor: pointer; }

/* ---------- 首屏 ---------- */

.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, #2c3568 0%, #455095 58%, #55609f 100%);
  color: #fff;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: url("../img/brand/abuk-arcs.svg") right -10% top 50% / auto 190% no-repeat;
  opacity: .10; pointer-events: none;
}
.hero .wrap {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(2rem, 5vw, 4rem); align-items: center;
  padding-block: clamp(3rem, 6vw, 5.25rem);
}
.hero h1 { color: #fff; margin-bottom: 1rem; }
.hero p { color: #d8ddf2; font-size: 1.12rem; max-width: 52ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.hero-figure {
  background: #fff; border-radius: var(--r); padding: 1.25rem;
  box-shadow: 0 24px 60px -24px rgba(0,0,0,.5);
}
.hero-figure figcaption {
  margin-top: .9rem; padding-top: .8rem; border-top: 1px solid var(--line);
  font-size: .82rem; color: var(--muted);
}
.hero-figure figcaption b { color: var(--ink); font-weight: 650; }

/* 信任条 */
.trust { border-bottom: 1px solid var(--line); background: #fff; }
.trust ul {
  list-style: none; margin: 0; padding: 1.5rem 0; display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem;
}
.trust li { border-left: 3px solid var(--brand); padding-left: .9rem; }
.trust b { display: block; color: var(--ink); font-size: 1.32rem; line-height: 1.2; letter-spacing: -.02em; }
.trust span { font-size: .84rem; color: var(--muted); }

/* ---------- 品类树卡片 ---------- */

.family-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem;
}
.family-card {
  display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: var(--r);
  background: #fff; overflow: hidden;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.family-card:hover {
  border-color: var(--brand); box-shadow: var(--shadow);
  transform: translateY(-2px); text-decoration: none;
}
.family-card .thumb { background: var(--tile); aspect-ratio: 4 / 3; display: grid; place-items: center; overflow: hidden; }
.family-card .thumb img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.family-card .body { padding: 1.1rem 1.2rem 1.3rem; flex: 1; display: flex; flex-direction: column; }
.family-card h3 { margin-bottom: .35rem; color: var(--ink); }
.family-card p { font-size: .9rem; color: var(--muted); margin-bottom: .9rem; flex: 1; }
.family-card .more { font-size: .85rem; font-weight: 650; color: var(--brand); }

/* ---------- 产品网格 ---------- */

.toolbar {
  display: flex; align-items: center; gap: .5rem; flex-wrap: wrap;
  padding: 1rem 0 1.5rem; border-bottom: 1px solid var(--line); margin-bottom: 1.75rem;
}
.chip {
  font: inherit; font-size: .85rem; font-weight: 600;
  padding: .42rem .85rem; border: 1px solid var(--line); border-radius: 999px;
  background: #fff; color: var(--ink-2); cursor: pointer;
}
.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.toolbar .search {
  margin-left: auto; min-width: 240px; flex: 0 1 300px;
  padding: .5rem .8rem; font: inherit; font-size: .9rem;
  border: 1px solid var(--line); border-radius: var(--r);
}
.toolbar .search:focus { outline: 2px solid var(--brand); outline-offset: -1px; border-color: var(--brand); }

.product-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.15rem;
  list-style: none; margin: 0; padding: 0;
}
.product-card {
  display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: var(--r); background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.product-card:hover { border-color: var(--brand); box-shadow: var(--shadow); }
.product-card .thumb {
  background: var(--tile); aspect-ratio: 4 / 3;
  display: grid; place-items: center; position: relative; overflow: hidden;
}
/* 图片本身已经归一化成 4:3、白底、产品居中留白（见 _build/extract_products.py），
   所以这里既不留内边距也不缩放，铺满即可。白底叠 multiply 正好融成瓷砖色。 */
.product-card .thumb img {
  width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply;
}
.product-card .pending {
  font-size: .72rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); border: 1px dashed var(--line); padding: .5rem .7rem; background: #fff;
}
.product-card .body { padding: .9rem 1rem 1rem; display: flex; flex-direction: column; flex: 1; }
.product-card .code {
  font-family: var(--f-mono); font-size: .74rem; letter-spacing: .04em;
  color: var(--brand); font-weight: 600; margin-bottom: .25rem;
}
.product-card h3 { font-size: .96rem; line-height: 1.3; margin-bottom: .5rem; }
.product-card .specs { list-style: none; margin: 0 0 .9rem; padding: 0; flex: 1; }
.product-card .specs li {
  font-size: .8rem; color: var(--muted); padding-left: .85rem; position: relative; line-height: 1.5;
}
.product-card .specs li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 4px; height: 4px; border-radius: 50%; background: var(--line);
}
.product-card .add {
  font: inherit; font-size: .82rem; font-weight: 650;
  width: 100%; padding: .48rem .7rem; cursor: pointer;
  border: 1px solid var(--line); border-radius: var(--r);
  background: #fff; color: var(--ink);
}
.product-card .add:hover { border-color: var(--brand); color: var(--brand); }
.product-card .add[data-in="1"] { background: var(--brand-lt); border-color: var(--brand); color: var(--brand); }

.result-count { font-size: .87rem; color: var(--muted); margin: 0 0 1.25rem; }
.empty-state { padding: 3rem 0; text-align: center; color: var(--muted); }

/* ---------- 场景 / 论据版块 ---------- */

.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.split-top { align-items: start; }
/* 询价页：表单宽、侧栏窄。写成类而不是内联样式，否则会盖过下面的移动端断点 */
.split-form { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
.split-media { background: var(--tile); border-radius: var(--r); padding: 1.5rem; }

/* 两栏步骤列表 */
.steps-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 2.5rem; }

.case-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; list-style: none; margin: 0; padding: 0; }
.case {
  border: 1px solid var(--line); border-top: 3px solid var(--brand);
  border-radius: var(--r); padding: 1.35rem 1.4rem; background: #fff;
}
.case .flag { font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.case h3 { margin: .4rem 0 .6rem; font-size: 1.02rem; }
.case dl { margin: 0; font-size: .86rem; }
.case dt { color: var(--muted); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; margin-top: .7rem; }
.case dd { margin: .1rem 0 0; color: var(--ink-2); }

/* ---------- 现场记录（客户与案例页） ----------
   照片全部 loading="lazy" + 写死 width/height：首屏只下文字，往下滚才拉图，
   而且尺寸写死了不会有布局跳动。24 张图合计 2.6 MB，都在首屏之下。       */

.fieldnotes { background: var(--bg-soft); }

.note { padding: 2.75rem 0; border-bottom: 1px solid var(--line); }
.note:last-of-type { border-bottom: 0; padding-bottom: 1.5rem; }
.note > .flag {
  font-size: .74rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--accent); margin: 0 0 .35rem;
}
.note h3 { font-size: clamp(1.22rem, 2.1vw, 1.6rem); letter-spacing: -.02em; margin-bottom: .7rem; }
.note-body { max-width: 66ch; }
.note-body p { font-size: .97rem; }
.note-body p:last-child { margin-bottom: 0; }

/* 24 张图全部裁成了 4:3，所以用规整网格而不是瀑布流。
   auto-fill + minmax 自己决定排几栏：宽屏 3–4 栏，手机自动落到 1 栏，
   不需要额外写断点。aspect-ratio 是保险丝——哪天混进一张别的比例也不会把行撑歪。 */
.figs {
  display: grid; gap: 1.15rem;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  margin-top: 1.75rem;
}
.figs figure { margin: 0; }
.figs img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border: 1px solid var(--line); border-radius: var(--r); background: var(--tile);
}
.figs figcaption {
  margin-top: .5rem; font-size: .8rem; line-height: 1.5; color: var(--muted);
}

.steps { counter-reset: s; list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.steps li { position: relative; padding-left: 3rem; }
.steps li::before {
  counter-increment: s; content: counter(s, decimal-leading-zero);
  position: absolute; left: 0; top: .05em;
  font-family: var(--f-mono); font-size: .95rem; font-weight: 700; color: var(--brand);
  border: 1px solid var(--line); border-radius: var(--r); padding: .1rem .45rem; background: #fff;
}
.steps b { display: block; color: var(--ink); }

/* ---------- 规格表 ---------- */

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); }
table.spec { width: 100%; border-collapse: collapse; font-size: .88rem; min-width: 620px; }
table.spec th, table.spec td { padding: .7rem .9rem; text-align: left; border-bottom: 1px solid var(--line-2); }
table.spec thead th {
  background: var(--bg-soft); color: var(--ink);
  font-size: .74rem; letter-spacing: .09em; text-transform: uppercase; white-space: nowrap;
}
table.spec tbody tr:hover { background: var(--brand-lt); }
table.spec td:first-child { font-family: var(--f-mono); font-size: .82rem; color: var(--brand); font-weight: 600; white-space: nowrap; }

/* ---------- 询价 ---------- */

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.25rem; }
.field { display: flex; flex-direction: column; gap: .35rem; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .82rem; font-weight: 650; color: var(--ink); }
.field .req { color: var(--accent); }
.field input, .field select, .field textarea {
  font: inherit; font-size: .94rem; padding: .65rem .8rem;
  border: 1px solid var(--line); border-radius: var(--r); background: #fff; color: var(--ink);
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--brand); outline-offset: -1px; border-color: var(--brand);
}
.field .hint { font-size: .78rem; color: var(--muted); }

.rfq-panel { border: 1px solid var(--line); border-radius: var(--r); background: var(--bg-soft); padding: 1.25rem; }
.rfq-panel h3 { font-size: .95rem; margin-bottom: .75rem; }
.rfq-list { list-style: none; margin: 0; padding: 0; }
.rfq-list li {
  display: flex; align-items: center; gap: .6rem;
  padding: .55rem 0; border-bottom: 1px solid var(--line-2); font-size: .87rem;
}
.rfq-list li:last-child { border-bottom: 0; }
.rfq-list .c { font-family: var(--f-mono); font-size: .78rem; color: var(--brand); font-weight: 600; }
.rfq-list .n { flex: 1; min-width: 0; }
.rfq-list input[type="number"] { width: 5.5rem; font: inherit; font-size: .84rem; padding: .3rem .45rem; border: 1px solid var(--line); border-radius: 2px; }
.rfq-list .x { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 1.05rem; line-height: 1; padding: .2rem .35rem; }
.rfq-list .x:hover { color: var(--accent); }
.rfq-empty { font-size: .87rem; color: var(--muted); }

.contact-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; list-style: none; margin: 0; padding: 0; }
.contact-cards li { border: 1px solid var(--line); border-radius: var(--r); padding: 1.15rem 1.25rem; }
.contact-cards h3 { font-size: .95rem; margin-bottom: .3rem; }
.contact-cards p { font-size: .88rem; margin-bottom: .5rem; color: var(--muted); }
.contact-cards a { font-weight: 650; word-break: break-word; }

.notice {
  border: 1px solid var(--warn-line); border-left-width: 3px;
  background: var(--warn-bg); color: var(--warn-ink);
  padding: .9rem 1.1rem; border-radius: var(--r); font-size: .87rem;
}
.notice strong { color: inherit; }

/* ---------- CTA / 页脚 ---------- */

.cta-band { background: var(--brand-dk); color: #fff; }
.cta-band .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem; flex-wrap: wrap; padding-block: clamp(2.5rem, 5vw, 3.5rem);
}
.cta-band h2 { color: #fff; margin-bottom: .35rem; }
.cta-band p { color: #c8cee8; margin: 0; max-width: 55ch; }
.cta-band .actions { display: flex; gap: .75rem; flex-wrap: wrap; }

.site-footer { background: #10131f; color: #9aa1b4; font-size: .88rem; padding: 3.5rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 2rem; }
.site-footer h4 {
  color: #fff; font-size: .74rem; letter-spacing: .13em;
  text-transform: uppercase; margin-bottom: .9rem;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .38rem; }
.site-footer a { color: #9aa1b4; }
.site-footer a:hover { color: #fff; }
.site-footer .brand img { width: 118px; filter: brightness(0) invert(1); opacity: .92; }
.footer-note {
  margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.1);
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .8rem;
}

/* 浮动 WhatsApp / 邮件直达 */
.quick-contact {
  position: fixed; right: 18px; bottom: 18px; z-index: 70;
  display: flex; flex-direction: column; gap: .5rem;
}
.quick-contact a {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .6rem .95rem; border-radius: 999px;
  font-size: .85rem; font-weight: 650; color: #fff;
  box-shadow: 0 6px 20px -6px rgba(0,0,0,.4);
}
.quick-contact a:hover { text-decoration: none; }
.qc-wa { background: #25d366; }
.qc-mail { background: var(--brand); }

/* ---------- 语言 ---------- */

html[lang="en"] [data-zh-only] { display: none !important; }
html[lang="zh"] [data-en-only] { display: none !important; }

/* ---------- 响应式 ---------- */

@media (max-width: 1040px) {
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .masthead .wrap { min-height: 64px; flex-wrap: wrap; }
  .burger { display: inline-block; }
  .nav {
    display: none; order: 3; width: 100%; flex-direction: column;
    align-items: stretch; gap: 0; padding: .5rem 0 1rem; border-top: 1px solid var(--line);
  }
  .nav.open { display: flex; }
  .nav > a, .nav > .has-menu > a { padding: .7rem .2rem; }
  .has-menu > a::after { float: right; margin-top: .55em; }
  .megamenu {
    position: static; transform: none; min-width: 0; display: grid;
    border: 0; box-shadow: none; padding: 0 0 .5rem .8rem;
    grid-template-columns: 1fr; gap: .8rem;
  }
  .nav-cta, .nav-basket { align-self: flex-start; }
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-figure { order: -1; }
  .trust ul { grid-template-columns: repeat(2, 1fr); }
  .family-grid, .case-list, .contact-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split, .split-form, .steps-2 { grid-template-columns: 1fr; }
  .brand-tag { display: none; }
}

@media (max-width: 640px) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .figs { gap: .85rem; }
  .figs figcaption { font-size: .78rem; }
  .family-grid, .case-list, .contact-cards, .form-grid { grid-template-columns: 1fr; }
  .utility-facts span:nth-child(n+3) { display: none; }
  .toolbar .search { margin-left: 0; flex-basis: 100%; }
  .quick-contact a span { display: none; }
  .quick-contact a { padding: .7rem; }
}

@media print {
  .masthead, .utility, .quick-contact, .cta-band, .toolbar { display: none; }
}
