/* 共用样式：工程图纸语言（尺寸线、引线、规格表），冷钢灰底 + 蓝焰 + 黄铜 */
:root {
  --paper: #f2f4f6;
  --white: #ffffff;
  --ink: #142230;
  --steel: #56677a;
  --rule: #d3dae1;
  --flame: #1d5bd6;
  --flame-dark: #1648a8;
  --brass: #a87a2a;
  --brass-soft: #efe5d1;
  --wrap: 1180px;
  --display: Bahnschrift, "DIN Alternate", "DIN Next", "Roboto Condensed", "Arial Narrow", "PingFang SC", "Microsoft YaHei", sans-serif;
  --text: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 1.0625rem/1.6 var(--text);
}
:lang(zh) body, body:lang(zh) { line-height: 1.75; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--flame); text-underline-offset: 3px; }
a:hover { color: var(--flame-dark); }
:focus-visible { outline: 2px solid var(--flame); outline-offset: 2px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 10; }
.skip:focus { left: 8px; }

/* 标题字体：Bahnschrift 可变字宽，收窄后像图纸标注 */
h1, h2, h3, .display {
  font-family: var(--display); font-weight: 600; letter-spacing: -0.01em;
  font-variation-settings: "wght" 600, "wdth" 84; color: var(--ink);
}
h1 { font-size: clamp(2.3rem, 4.6vw, 3.9rem); line-height: 1.04; margin: 0 0 20px; }
h2 { font-size: clamp(1.7rem, 2.8vw, 2.4rem); line-height: 1.1; margin: 0 0 16px; }
h3 { font-size: 1.35rem; line-height: 1.2; margin: 0 0 8px; }
:lang(zh) h1, :lang(zh) h2, :lang(zh) h3 { letter-spacing: 0.01em; font-weight: 700; }
p { margin: 0 0 16px; max-width: 68ch; }
.lede { font-size: 1.2rem; color: var(--steel); max-width: 60ch; }
.muted { color: var(--steel); }
.small { font-size: 0.9rem; }
.num { white-space: nowrap; font-family: var(--display); font-variant-numeric: tabular-nums; font-variation-settings: "wght" 500, "wdth" 90; }

/* 页头 */
.top { background: var(--white); border-bottom: 1px solid var(--rule); position: sticky; top: 0; z-index: 5; }
.top .wrap { display: flex; align-items: center; gap: 28px; min-height: 68px; }
.mark { display: flex; align-items: baseline; gap: 10px; text-decoration: none; color: var(--ink); }
.mark b { font-family: var(--display); font-size: 1.45rem; font-variation-settings: "wght" 650, "wdth" 80; letter-spacing: -0.01em; }
.mark small { color: var(--steel); font-size: 0.8rem; }
.mark svg { align-self: center; flex: none; }
.nav { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.nav a { color: var(--ink); text-decoration: none; font-size: 0.95rem; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover { border-bottom-color: var(--rule); color: var(--ink); }
.nav a[aria-current="page"] { border-bottom-color: var(--brass); }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--rule); padding: 8px 12px; font: inherit; color: var(--ink); border-radius: 2px; }

/* 按钮 */
.btn { display: inline-block; background: var(--flame); color: #fff; text-decoration: none; padding: 12px 22px; border-radius: 2px; font-weight: 600; border: 1px solid var(--flame); font-size: 1rem; cursor: pointer; font-family: var(--text); }
.btn:hover { background: var(--flame-dark); color: #fff; }
.btn-line { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-line:hover { background: var(--ink); color: #fff; }
.nav .btn { padding: 9px 16px; border-bottom: 1px solid var(--flame); color: #fff; }
.nav .btn:hover { color: #fff; border-bottom-color: var(--flame-dark); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* 区块 */
.sec { padding: 84px 0; }
.sec-white { background: var(--white); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.sec-head { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 48px; align-items: end; margin-bottom: 40px; }
.sec-head p { margin: 0; color: var(--steel); }

/* 尺寸线：两端斜短线 + 中间读数 */
.dim { position: relative; height: 22px; margin: 6px 0; color: var(--brass); }
.dim::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px solid currentColor; }
.dim::after { content: ""; position: absolute; inset: 0; background:
  linear-gradient(135deg, transparent 45%, currentColor 45%, currentColor 55%, transparent 55%) left center / 12px 12px no-repeat,
  linear-gradient(135deg, transparent 45%, currentColor 45%, currentColor 55%, transparent 55%) right center / 12px 12px no-repeat; }
.dim span { position: relative; z-index: 1; display: table; margin: 0 auto; padding: 0 12px; background: var(--white);
  font-family: var(--display); font-variation-settings: "wght" 500, "wdth" 88; font-size: 0.95rem; color: var(--brass); line-height: 22px; }
.on-paper .dim span { background: var(--paper); }

/* 首页主视觉（外贸站）：GF-8016 全幅 + 引线标注 */
.hero { padding: 64px 0 0; }
.hero-copy { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 24px 56px; align-items: end; }
.hero-copy h1 { max-width: 16ch; }
.hero-copy .lede { margin: 0; }
.drawing { background: var(--white); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); margin-top: 48px; padding: 44px 0 36px; }
.drawing-fig { position: relative; padding-bottom: 92px; }
.drawing-fig img { width: 100%; }
.pin { position: absolute; display: flex; flex-direction: column; align-items: flex-start; bottom: 0; width: 210px; transform: translateX(-3px); pointer-events: none; }
.pin i { width: 7px; height: 7px; border-radius: 50%; background: var(--brass); flex: none; }
.pin em { flex: 1; border-left: 1px solid var(--brass); margin-left: 3px; min-height: 20px; }
.pin span { font-size: 0.85rem; line-height: 1.35; color: var(--ink); padding-top: 6px; height: 64px; }
.pin span b { display: block; font-family: var(--display); font-variation-settings: "wght" 600, "wdth" 86; font-size: 1rem; }
.drawing-caption { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 18px; color: var(--steel); font-size: 0.9rem; }

/* 首页主视觉（国内站）：蓝焰全幅 */
.hero-flame { position: relative; background: #0a1220; color: #fff; overflow: hidden; }
.hero-flame picture img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; opacity: 0.92; }
.hero-flame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,18,32,.92) 0%, rgba(10,18,32,.78) 38%, rgba(10,18,32,.15) 72%, rgba(10,18,32,0) 100%); }
.hero-flame .wrap { z-index: 1; position: relative; padding-top: 120px; padding-bottom: 72px; min-height: 560px; display: flex; flex-direction: column; justify-content: flex-end; }
.hero-flame h1 { color: #fff; max-width: 14em; }
.hero-flame .lede { color: #d6e2f5; }
.hero-flame .btn-line { color: #fff; border-color: #fff; }
.hero-flame .btn-line:hover { background: #fff; color: var(--ink); }
.hero-flame .dim { color: #c9a35a; max-width: 520px; margin-top: 28px; }
.hero-flame .dim span { background: #0a1220; color: #e2c58a; }

/* 事实条：证书编号等可核查数据 */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--rule); }
.facts div { padding: 22px 20px 22px 0; border-right: 1px solid var(--rule); }
.facts div + div { padding-left: 20px; }
.facts div:last-child { border-right: 0; }
.facts dt { color: var(--steel); font-size: 0.85rem; }
.facts dd { margin: 4px 0 0; font-family: var(--display); font-size: 1.35rem; font-variation-settings: "wght" 600, "wdth" 86; }
.facts dd small { display: block; font-family: var(--text); font-size: 0.82rem; color: var(--steel); font-variation-settings: normal; }

/* 品类行 */
.families { border-top: 1px solid var(--ink); }
.family { display: grid; grid-template-columns: 180px 1fr 280px; gap: 28px; padding: 28px 0; border-bottom: 1px solid var(--rule); align-items: center; text-decoration: none; color: var(--ink); }
.family:hover { color: var(--ink); background: linear-gradient(90deg, var(--white), transparent); }
.family:hover h3 { text-decoration: underline; text-decoration-color: var(--brass); }
.family-img { background: var(--white); border: 1px solid var(--rule); aspect-ratio: 4 / 3; display: grid; place-items: center; padding: 10px; }
.family-img img { max-height: 120px; width: auto; object-fit: contain; }
.family p { margin: 0; color: var(--steel); }
.family dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; font-size: 0.92rem; }
.family dt { color: var(--steel); }
.family dd { margin: 0; }

/* 产品卡片 */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.card { background: var(--white); border: 1px solid var(--rule); text-decoration: none; color: var(--ink); display: flex; flex-direction: column; }
.card:hover { border-color: var(--ink); color: var(--ink); }
.card-img { aspect-ratio: 1; display: grid; place-items: center; padding: 18px; border-bottom: 1px solid var(--rule); }
.card-img img { max-height: 100%; width: auto; object-fit: contain; }
.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card-body .display { font-size: 1.3rem; }
.card-body .spec-line { margin-top: auto; padding-top: 8px; font-size: 0.85rem; color: var(--steel); }
.tag { display: inline-block; align-self: flex-start; font-size: 0.75rem; color: var(--brass); border: 1px solid var(--brass); padding: 1px 7px; border-radius: 2px; margin-top: 4px; }

/* 面包屑 */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 28px 0 0; font-size: 0.88rem; color: var(--steel); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--rule); }
.crumbs a { color: var(--steel); }

/* 产品详情 */
.pd { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; padding: 32px 0 72px; align-items: start; }
.pd-fig { margin: 0; background: var(--white); border: 1px solid var(--rule); padding: 32px 32px 24px; position: sticky; top: 92px; }
.pd-fig picture img { margin: 0 auto; max-height: 440px; width: auto; }
.pd-fig .dim { margin-top: 18px; }
.pd-fig figcaption { font-size: 0.85rem; color: var(--steel); text-align: center; margin-top: 4px; }
.pd h1 { font-size: clamp(2rem, 3.6vw, 3rem); }
.pd h1 small { display: block; font-size: 0.5em; color: var(--steel); font-variation-settings: "wght" 500, "wdth" 90; margin-top: 6px; }
table { border-collapse: collapse; width: 100%; }
.spec { margin: 24px 0; border-top: 1px solid var(--ink); }
.spec th, .spec td { text-align: left; padding: 11px 12px 11px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.spec th { font-weight: 400; color: var(--steel); width: 38%; font-size: 0.95rem; }
.spec td { font-variant-numeric: tabular-nums; }
.note { border-left: 3px solid var(--brass); background: var(--brass-soft); padding: 14px 18px; margin: 20px 0; font-size: 0.95rem; }
.note p:last-child { margin-bottom: 0; }
ul.plain { padding-left: 1.1em; margin: 0 0 16px; }
ul.plain li { margin-bottom: 6px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; margin-top: 16px; }
.gallery img { border: 1px solid var(--rule); background: var(--white); }

/* 证书 */
.certs { display: grid; gap: 0; border-top: 1px solid var(--ink); }
.cert { display: grid; grid-template-columns: 220px 1fr; gap: 32px; padding: 32px 0; border-bottom: 1px solid var(--rule); }
.cert-img img { border: 1px solid var(--rule); background: #fff; }
.cert h3 { margin-bottom: 4px; }
.cert .models { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; padding: 0; list-style: none; }
.cert .models li { font-family: var(--display); font-variation-settings: "wght" 500, "wdth" 90; border: 1px solid var(--rule); background: var(--white); padding: 2px 8px; font-size: 0.9rem; }

/* 步骤（真实先后顺序才编号） */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: s; display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--ink); }
.steps li { counter-increment: s; padding: 20px 18px 8px 0; }
.steps li + li { padding-left: 18px; border-left: 1px solid var(--rule); }
.steps li::before { content: counter(s); display: block; font-family: var(--display); font-size: 2rem; color: var(--brass); font-variation-settings: "wght" 500, "wdth" 80; line-height: 1; margin-bottom: 10px; }
.steps h3 { font-size: 1.1rem; }
.steps p { font-size: 0.95rem; color: var(--steel); margin: 0; }

/* 应用场景 */
.uses { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 20px; }
.use figure { margin: 0; }
.use img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.use figcaption { padding-top: 10px; }
.use h3 { font-size: 1.15rem; margin-bottom: 4px; }
.use p { font-size: 0.95rem; color: var(--steel); margin: 0; }
.use a { color: inherit; text-decoration: none; }
.use a:hover h3 { text-decoration: underline; text-decoration-color: var(--brass); }

/* 双栏 */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.split img { width: 100%; }
dl.kv { display: grid; grid-template-columns: max-content 1fr; gap: 10px 24px; margin: 0; border-top: 1px solid var(--ink); padding-top: 16px; }
dl.kv dt { color: var(--steel); }
dl.kv dd { margin: 0; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--rule); padding: 4px 0; }
.faq details:first-child { border-top: 1px solid var(--ink); }
.faq summary { cursor: pointer; padding: 16px 32px 16px 0; font-weight: 600; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-size: 1.4rem; color: var(--brass); font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--steel); }

/* 文章 */
.article { padding: 24px 0 72px; }
.article header { max-width: 760px; }
.article .body { max-width: 720px; }
.article .body h2 { font-size: 1.7rem; margin-top: 40px; }
.article .body h3 { margin-top: 28px; }
.article .body table { margin: 20px 0; font-size: 0.95rem; }
.article .body th, .article .body td { border-bottom: 1px solid var(--rule); padding: 9px 10px 9px 0; text-align: left; vertical-align: top; }
.article .body thead th { border-bottom: 1px solid var(--ink); color: var(--steel); font-weight: 400; }
.article .meta { color: var(--steel); font-size: 0.9rem; }
.tldr { background: var(--white); border: 1px solid var(--rule); border-left: 3px solid var(--flame); padding: 16px 20px; margin: 24px 0; }
.tldr p:last-child { margin: 0; }
.posts { border-top: 1px solid var(--ink); }
.post { display: block; padding: 24px 0; border-bottom: 1px solid var(--rule); text-decoration: none; color: var(--ink); }
.post h3 { margin-bottom: 6px; }
.post:hover h3 { text-decoration: underline; text-decoration-color: var(--brass); }
.post p { color: var(--steel); margin: 0; }

/* 询盘 */
.contact { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; }
.channels { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--ink); }
.channels li { padding: 16px 0; border-bottom: 1px solid var(--rule); }
.channels span { display: block; color: var(--steel); font-size: 0.85rem; }
.channels a, .channels strong { font-family: var(--display); font-size: 1.3rem; font-variation-settings: "wght" 600, "wdth" 88; }
form.rfq { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
form.rfq .full { grid-column: 1 / -1; }
form.rfq label { display: flex; flex-direction: column; gap: 6px; font-size: 0.92rem; color: var(--steel); }
form.rfq input, form.rfq textarea, form.rfq select { font: inherit; color: var(--ink); background: var(--white); border: 1px solid #b9c3cd; border-radius: 2px; padding: 10px 12px; }
form.rfq textarea { min-height: 130px; resize: vertical; }
form.rfq input:focus, form.rfq textarea:focus { border-color: var(--flame); outline: 2px solid rgba(29, 91, 214, 0.2); }
.form-msg { grid-column: 1 / -1; font-size: 0.9rem; color: var(--steel); margin: 0; }

/* 页脚 */
.foot { background: var(--ink); color: #c5d0db; padding: 56px 0 28px; margin-top: 0; font-size: 0.93rem; }
.foot a { color: #fff; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.foot h2 { color: #fff; font-size: 1.05rem; margin-bottom: 12px; }
.foot ul { list-style: none; padding: 0; margin: 0; }
.foot li { margin-bottom: 8px; }
.foot address { font-style: normal; }
.foot-bottom { border-top: 1px solid #2c3d4f; margin-top: 40px; padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; color: #8fa0b2; font-size: 0.85rem; }
.foot-bottom a { color: #c5d0db; }

/* 悬浮联系（WhatsApp） */
.float-chat { position: fixed; right: 18px; bottom: 18px; z-index: 6; background: #1f8f4e; color: #fff; text-decoration: none; padding: 11px 16px; border-radius: 2px; font-weight: 600; font-size: 0.95rem; box-shadow: 0 2px 0 #14683a; }
.float-chat:hover { background: #187a42; color: #fff; }

@media (max-width: 980px) {
  .hero-copy, .sec-head, .split, .contact, .pd { grid-template-columns: 1fr; }
  .pd-fig { position: static; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .facts div:nth-child(2) { border-right: 0; }
  .facts div:nth-child(3) { padding-left: 0; }
  .facts div:nth-child(n+3) { border-top: 1px solid var(--rule); }
  .family { grid-template-columns: 120px 1fr; }
  .family dl { grid-column: 1 / -1; }
  .steps { grid-template-columns: 1fr; }
  .steps li + li { border-left: 0; border-top: 1px solid var(--rule); padding-left: 0; }
  .uses { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .cert { grid-template-columns: 140px 1fr; gap: 20px; }
  .pin { display: none; }
  .drawing-fig { padding-bottom: 0; }
  .pins-list { display: block !important; }
}
@media (max-width: 820px) {
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 68px; background: var(--white); flex-direction: column; align-items: stretch; gap: 0; border-bottom: 1px solid var(--rule); padding: 8px 24px 16px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--rule); }
  .nav .btn { margin-top: 12px; text-align: center; }
  .mark small { display: none; }
}
@media (max-width: 560px) {
  .sec { padding: 60px 0; }
  .uses { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  form.rfq { grid-template-columns: 1fr; }
  .cert { grid-template-columns: 1fr; }
  .cert-img { max-width: 200px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .card-body .display { font-size: 1.1rem; }
}
.pins-list { display: none; margin-top: 20px; }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }

/* 表单蜜罐：对人隐藏 */
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* 对照表：数值列不折行，窄屏横向滚动 */
.cmp td, .cmp th { white-space: nowrap; }

/* 统计同意提示（仅欧盟/英国/瑞士访客） */
.consent { position: fixed; left: 18px; bottom: 18px; z-index: 7; max-width: 420px; background: var(--white); border: 1px solid var(--ink); padding: 16px 18px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: 0.92rem; }
.consent[hidden] { display: none; }
.consent p { margin: 0; flex-basis: 100%; }
.consent .btn { padding: 8px 16px; }
