/* 胶囊壳企业网站 · 全站样式
   不引用任何外部字体或 CDN：国内访问 Google Fonts 等会卡住，系统字体最稳。 */

:root {
  --ink: #12232e;          /* 正文深色 */
  --ink-2: #4a5b66;        /* 次要文字 */
  --ink-3: #5b6a73;        /* 说明文字：原 #7d8b94 在白底只有 3.5:1，加深到 5.6:1（浅灰底 5.2:1），达到 WCAG AA 4.5:1 */
  --line: #dde4e8;
  --bg: #ffffff;
  --bg-soft: #f4f7f8;
  --bg-deep: #0e2f3d;      /* 深色区块（页脚、统计条） */
  --brand: #0f6e7c;        /* 主色：药企常用的青蓝，干净可信 */
  --brand-2: #0a5561;
  --brand-tint: #e3f1f2;
  --accent: #e0703b;       /* 强调色：取胶囊常见的橙色 */
  --accent-tint: #fbeee6;
  /* 橙色按钮底色：白字在 --accent 上只有 3.2:1（WCAG AA 要 4.5:1），「询价 / 在线询价 / 提交」这些主按钮的字
     在户外手机屏上发虚。按钮底色改用同色相加深的橙，白字 4.6:1；悬停再深一档 5.9:1。
     --accent 本身不动，Logo、胶囊插图、色卡里的橙色照旧。 */
  --accent-btn: #bf5623;
  --accent-btn-hover: #a9461a;
  --ph: #8f5c12;           /* 占位内容标记色：原 #b7791f 在米黄底只有 3.4:1，加深到 5.4:1 */
  --ph-bg: #fff8e6;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(18, 35, 46, .06), 0 6px 24px rgba(18, 35, 46, .06);
  --max: 1180px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB",
          "Microsoft YaHei", "Noto Sans SC", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
/* 吸顶页头约 71px 高（header.site 70px + 1px 下边框）：锚点跳转（询价 #inquiry、FAQ、页内胶囊导航）和键盘 Tab 聚焦时，
   目标都停在页头下方，不被遮住（WCAG 2.4.11 焦点不被遮挡；C04、E12 都改了这一处，合并后只留一条）。
   取 72px 比页头多 1px，下面各处 scroll-margin-top 都按 72px 折算过。页眉高度改了这里要跟着改。 */
html { scroll-padding-top: 72px; }
body {
  margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg);
  font-size: 16px; line-height: 1.7; -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
/* <picture> 只是给图片多一个 AVIF 版本的外壳，不参与排版：里面的 <img> 按原样排 */
picture { display: contents; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-2); }
h1, h2, h3, h4 { line-height: 1.3; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(30px, 4.4vw, 50px); font-weight: 700; }
h2 { font-size: clamp(24px, 2.8vw, 34px); font-weight: 700; }
h3 { font-size: 19px; font-weight: 650; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--ink-2); }
.small { font-size: 14px; color: var(--ink-3); }

/* ---------- 占位内容标记 ----------
   公司资料没到之前，所有编的位置都用 .ph 标出来。正式上线前在 site.mjs 里关掉 SHOW_PLACEHOLDERS。 */
.ph {
  background: var(--ph-bg); color: var(--ph); border-bottom: 1px dashed var(--ph);
  padding: 0 .2em; border-radius: 3px; font-weight: 500;
}
.ph-banner {
  background: var(--ph-bg); color: #7a4f0e; font-size: 13px; text-align: center;
  padding: 6px 16px; border-bottom: 1px solid #f0dcae;
}
.photo-ph {
  position: relative; background:
    repeating-linear-gradient(135deg, #eef3f5 0 12px, #e6edf0 12px 24px);
  border: 1px dashed #b9c7ce; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center; text-align: center;
  color: var(--ink-3); font-size: 14px; padding: 16px; min-height: 180px;
}
.photo-ph span { background: rgba(255,255,255,.85); padding: 4px 10px; border-radius: 6px; }

/* ---------- 顶栏 ---------- */
.topbar { background: var(--bg-deep); color: #c5d6dd; font-size: 13px; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 16px; padding-top: 6px; padding-bottom: 6px; }
.topbar a { color: #e3eef2; }
.topbar .tb-left { display: flex; gap: 20px; flex-wrap: wrap; }

header.site {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96);
  backdrop-filter: saturate(160%) blur(8px); border-bottom: 1px solid var(--line);
}
header.site .wrap { display: flex; align-items: center; gap: 28px; height: 70px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; font-size: 18px; white-space: nowrap; }
.logo:hover { color: var(--ink); }
.logo small { display: block; font-size: 11px; font-weight: 500; color: var(--ink-3); letter-spacing: .04em; }
nav.main { display: flex; gap: 4px; margin-left: auto; }
nav.main a {
  color: var(--ink); padding: 8px 12px; border-radius: 8px; font-size: 15px; font-weight: 500;
}
nav.main a:hover { background: var(--bg-soft); }
nav.main a.on { color: var(--brand); background: var(--brand-tint); }
.lang { flex-shrink: 0; display: flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; font-size: 13px; }
.lang a { padding: 5px 10px; color: var(--ink-2); }
.lang a.on { background: var(--brand); color: #fff; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; border: 0; cursor: pointer;
  background: var(--accent-btn); color: #fff; padding: 11px 22px; border-radius: 8px;
  font: inherit; font-weight: 600; font-size: 15px; transition: background .15s;
}
.btn:hover { background: var(--accent-btn-hover); color: #fff; }
.btn.ghost { background: transparent; color: var(--brand); box-shadow: inset 0 0 0 1.5px var(--brand); }
.btn.ghost:hover { background: var(--brand-tint); }
.btn.light { background: #fff; color: var(--brand-2); }
.btn.sm { padding: 8px 16px; font-size: 14px; }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; font: inherit; line-height: normal; color: var(--ink); cursor: pointer; }
.menu-btn:hover { color: var(--ink); }

/* ---------- 首页大图区 ---------- */
.hero {
  background: linear-gradient(160deg, #f2f8f9 0%, #e5f1f3 55%, #fdf3ec 100%);
  overflow: hidden; position: relative;
}
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; padding-top: 72px; padding-bottom: 72px; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); margin-bottom: 14px; }
.hero p.lead { font-size: 18px; color: var(--ink-2); max-width: 34em; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.hero-art { position: relative; }
.hero-badges { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 28px; }
/* 英文首屏标题：英文两半句在 50px 时都比左栏宽，会掉成 4 行，"Shell"、"Line" 各自独占一行。
   桌面双栏时按栏宽缩到每半句正好一行；单栏（手机）放不下时均分折行，末两词用 &nbsp; 连住（见 pages.mjs），不留孤词。 */
.hero h1:lang(en) { text-wrap: balance; }
@media (min-width: 861px) { .hero h1:lang(en) { font-size: clamp(28px, 3.4vw, 41px); } }
.badge { font-size: 13px; padding: 4px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink-2); }

/* ---------- 统计条 ---------- */
.stats { background: var(--bg-deep); color: #fff; }
.stats .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px 0; padding-top: 40px; padding-bottom: 40px; }
.stat { padding: 2px 28px; }
.stat:first-child { padding-left: 0; }
.stat + .stat { border-left: 1px solid rgba(255,255,255,.12); }
/* 数字要比说明大一截；以前 .stat span 连带把数字里的占位 span 也压成了 14px */
.stat b { display: block; font-size: 40px; font-weight: 700; line-height: 1.15; letter-spacing: -.01em; margin-bottom: 8px; white-space: nowrap; }
.stat > span { display: block; color: #a9c1ca; font-size: 14px; line-height: 1.5; }
.stat b .ph { font-size: inherit; font-weight: inherit; padding: 0 .12em; border-radius: 4px; }
.stats .ph { background: rgba(255,248,230,.12); color: #ffd58a; border-color: #ffd58a; }

/* ---------- 区块 ---------- */
section.block { padding: 84px 0; }
section.block.soft { background: var(--bg-soft); }
/* 结尾询价条紧跟白底区块时，两段上下留白会叠成约 170px 的空洞；去掉询价条自己的上留白，和跟在浅灰区块后时一样 */
section.block:not(.soft) + section.block.cta-block { padding-top: 0; }
.sec-head { max-width: 720px; margin-bottom: 40px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head p { color: var(--ink-2); font-size: 17px; }

.grid { display: grid; gap: 22px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; transition: box-shadow .2s, transform .2s; display: flex; flex-direction: column;
}
a.card { color: inherit; }
a.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); color: inherit; }
/* 胶囊品种卡片的样片（F05，Blender 渲染，3d/render_types.py）：铺满图框，主胶囊在画面中下部 */
.card .art.photo { padding: 0; overflow: hidden; background: #e9ebeb; }
.card .art.photo picture, .card .art.photo img { display: block; width: 100%; height: 100%; }
.card .art.photo img { object-fit: cover; object-position: 46% 62%; transform: scale(1.3); transform-origin: 46% 66%; } /* 小卡片里放大一点，主胶囊更突出 */
.card .art { height: 120px; display: flex; align-items: center; justify-content: center; margin-bottom: 18px; background: var(--bg-soft); border-radius: 8px; }
.card p { color: var(--ink-2); font-size: 15px; }
.card .more { margin-top: auto; font-weight: 600; font-size: 14px; color: var(--brand); }
.tag { display: inline-block; font-size: 12px; padding: 2px 9px; border-radius: 999px; background: var(--brand-tint); color: var(--brand-2); margin: 0 6px 6px 0; }
.tag.warm { background: var(--accent-tint); color: #a24a1f; }
a.tag-tio2 { background: #fff; color: var(--brand-2); box-shadow: inset 0 0 0 1px var(--brand); text-decoration: none; }
a.tag-tio2:hover { background: var(--brand-tint); }
a.tag-tio2 .ph { font-size: inherit; }
.news-card .meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; margin-bottom: 12px; }
.news-card .meta .tag { margin: 0; }
.news-card time { font-size: 13px; color: var(--ink-3); }
.news-card .more { padding-top: 6px; }

/* 双业务分栏 */
.split-two { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.biz {
  border-radius: 14px; padding: 36px; color: #fff; position: relative; overflow: hidden; min-height: 300px;
  display: flex; flex-direction: column;
}
.biz.a { background: linear-gradient(140deg, #0f6e7c, #0a4b57); }
.biz.b { background: linear-gradient(140deg, #23394a, #12232e); }
.biz p { color: rgba(255,255,255,.82); max-width: 30em; }
.biz ul { margin: 0 0 22px; padding-left: 18px; color: rgba(255,255,255,.88); font-size: 15px; }
.biz .btn { margin-top: auto; align-self: flex-start; }
.biz .biz-art { position: absolute; right: -10px; bottom: -10px; opacity: .2; width: 220px; }

/* 列表与特点 */
.feat { display: flex; gap: 16px; }
.feat .ic { flex: 0 0 44px; height: 44px; border-radius: 10px; background: var(--brand-tint); color: var(--brand); display: flex; align-items: center; justify-content: center; }
.feat h3 { font-size: 17px; margin-bottom: 4px; }
.feat p { font-size: 15px; color: var(--ink-2); margin: 0; }

/* 流程 */
/* 列数由页面按条目数传入（--n 桌面一行排完，--m 平板两行均分），避免最后一项单独掉到下一行 */
.steps { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 0; counter-reset: s; }
.step { position: relative; padding: 0 16px 0 0; }
.step::before {
  counter-increment: s; content: counter(s, decimal-leading-zero);
  display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%;
  background: #fff; border: 2px solid var(--brand); color: var(--brand); font-weight: 700; font-size: 14px; margin-bottom: 12px;
  position: relative; z-index: 1;
}
.step::after { content: ""; position: absolute; left: 42px; right: 0; top: 21px; border-top: 2px dashed #b9d4d8; }
.step:last-child::after { display: none; }
/* 标题层级不跳级：直接挂在 h2 下的步骤标题用 h3，挂在 h3「定制流程」下的仍是 h4，两种长得一样（C13） */
.step h3, .step h4 { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.step p { font-size: 14px; color: var(--ink-2); text-wrap: pretty; }

/* 表格 */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table.spec { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 640px; }
table.spec th, table.spec td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.spec thead th { background: var(--bg-soft); font-weight: 650; color: var(--ink-2); font-size: 13.5px; }
table.spec tbody tr:last-child td, table.spec tbody tr:last-child th { border-bottom: 0; }
table.spec tbody tr:hover { background: #fafcfc; }
table.spec td.sz, table.spec th.sz { font-weight: 700; color: var(--brand-2); }

/* 只给读屏看的文字（表格标题等） */
.vh { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* 规格尺寸表：手机上比屏幕宽，要横滑。
   - 首列「规格」吸附在左边，滑到右边几列时仍知道是哪一行；
   - 右边缘一道渐隐阴影，提示右边还有内容，滑到底阴影自动消失（纯 CSS，background-attachment: local）；
   - 区域可 Tab 聚焦，聚焦时有清楚的描边，键盘左右方向键可横滚。 */
.scroll-hint { display: none; }
.table-wrap.scroll-x {
  background:
    linear-gradient(to left, #fff 40%, rgba(255,255,255,0)) right center / 36px 100% no-repeat local,
    radial-gradient(farthest-side at 100% 50%, rgba(18,35,46,.28), rgba(18,35,46,0)) right center / 18px 100% no-repeat scroll,
    #fff;
}
.table-wrap.scroll-x:focus { outline: none; }
.table-wrap.scroll-x:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
@media (max-width: 700px) {
  /* 只在要横滑的窄屏上固定首列；桌面整张表放得下，样式不变 */
  table.spec.sizes th[scope="row"], table.spec.sizes thead th:first-child {
    position: sticky; left: 0; z-index: 1; background: #fff; box-shadow: inset -1px 0 0 var(--line);
  }
  table.spec.sizes thead th:first-child { background: var(--bg-soft); }
  .scroll-hint {
    display: flex; align-items: center; gap: 6px; margin: 0 0 8px; font-size: 13px; color: var(--ink-3);
  }
  .scroll-hint::after { content: "→"; font-size: 15px; color: var(--brand); }
}

/* 认证墙 */
.certs { display: grid; grid-template-columns: repeat(var(--n, 6), minmax(0, 1fr)); gap: 14px; }
.cert {
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 18px 10px; text-align: center;
  font-weight: 650; font-size: 15px; line-height: 1.45; text-wrap: balance;
  /* 同一行里有的名称折成两三行（如英文 Excipient Registration (CDE)），格子被撑高；内容上下居中，短名称的格子不再下半截空着 */
  display: flex; flex-direction: column; justify-content: center; align-items: center;
}
.cert small { display: block; font-weight: 400; color: var(--ink-3); font-size: 12.5px; line-height: 1.5; margin-top: 4px; text-wrap: pretty; }
.cert.pending { border-style: dashed; background: var(--ph-bg); color: var(--ph); }

/* 页头（内页） */
.page-head { background: linear-gradient(160deg, #f2f8f9, #e5f1f3); padding: 56px 0 46px; border-bottom: 1px solid var(--line); }
.crumbs { font-size: 13px; color: var(--ink-3); margin-bottom: 12px; }
.crumbs a { color: var(--ink-3); }
.page-head p { color: var(--ink-2); font-size: 17px; max-width: 46em; margin: 0; }
.subnav { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 22px; }
.subnav a { font-size: 14px; padding: 6px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink-2); }
.subnav a:hover { border-color: var(--brand); color: var(--brand); }

/* 产品详情行 */
.prod { display: grid; grid-template-columns: 340px 1fr; gap: 40px; padding: 44px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 18px; } /* 加上 html 的 72px，合计仍是原来的 90px（E12 去掉了这一项，C04 改成 18px；保留 C 的，落点不变） */
.prod:last-child { border-bottom: 0; }
.prod .art { background: var(--bg-soft); border-radius: 14px; display: flex; align-items: center; justify-content: center; min-height: 240px; padding: 20px; }
.kv { display: grid; grid-template-columns: 130px 1fr; gap: 6px 18px; font-size: 15px; margin: 16px 0; }
.kv dt { color: var(--ink-3); }
.kv dd { margin: 0; }

/* 颜色样板 */
/* 10 个色样固定 5×2，避免桌面 8+2 掉两个到第二行；窄屏按栏宽缩小 */
.swatches { display: grid; grid-template-columns: repeat(5, minmax(0, 72px)); gap: 14px 12px; }
.sw { text-align: center; font-size: 12px; color: var(--ink-3); white-space: nowrap; }
.sw i { display: block; height: 28px; border-radius: 14px; margin-bottom: 6px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }

/* CTA 条 */
.cta { background: linear-gradient(120deg, var(--brand), #0a4b57); color: #fff; border-radius: 16px; padding: 44px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta h2 { margin: 0 0 6px; }
.cta p { margin: 0; color: rgba(255,255,255,.82); }

/* 表单 */
form.inq { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
form.inq .full { grid-column: 1 / -1; }
/* 快速询价下面的「补充详细信息」（审核第二批 C）：收起时只是一行可点的条，展开后里面照常排两列 */
.more-fields { border: 1px dashed var(--line); border-radius: 12px; background: var(--bg-soft); }
.more-fields > summary { cursor: pointer; padding: 14px 16px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; min-height: 44px; list-style: none; }
.more-fields > summary::-webkit-details-marker { display: none; }
.more-fields > summary::before { content: "+"; font-weight: 700; color: var(--brand); width: 1em; }
.more-fields[open] > summary::before { content: "−"; }
.more-fields > summary b { color: var(--brand-2); }
.more-fields > summary span { font-size: 13px; color: var(--ink-3); }
.more-fields > summary:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 12px; }
.more-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 4px 16px 16px; }
form.inq textarea#f-msg { min-height: 84px; }
form.inq label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
form.inq label i, form.inq legend i { color: #a24a1f; font-style: normal; } /* 必填星号：橙色 --accent 在白底只有 3.2:1，用同色系深橙（.tag.warm 已在用），5.9:1 */
form.inq input, form.inq select, form.inq textarea {
  width: 100%; font: inherit; font-size: 15px; padding: 10px 12px; border: 1px solid #c9d3d8; border-radius: 8px; background: #fff; color: var(--ink);
}
/* 焦点框：原来是 2px 浅青 --brand-tint（#e3f1f2，在白底只有 1.1:1，几乎看不见），输入框只剩 1px 边框变色，
   单选圈连边框都不变，用键盘 Tab 到「咨询内容」时看不出停在哪。改成主色实线（白底 5.9:1，WCAG 2.4.7 / 1.4.11）。 */
form.inq input:focus, form.inq select:focus, form.inq textarea:focus { outline: 2px solid var(--brand); outline-offset: 0; border-color: var(--brand); }
/* 单选圈：键盘聚焦时外圈一道主色环；手指或鼠标点选时不显示（:focus-visible），选中状态本身已经看得出 */
form.inq .radio-row input:focus { outline: none; }
form.inq .radio-row input:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
form.inq textarea { min-height: 120px; resize: vertical; }
/* 手机、平板上输入框字号 16px：iPhone / iPad 的 Safari 遇到字号小于 16px 的输入框，一点进去就把整页放大，
   填完也不缩回，表单右半边被推出屏幕外，要双指捏回去才看得到「提交」。原来是 15px，9 个输入框和下拉框全中。
   不用 maximum-scale=1 禁止缩放（那会挡住需要放大看字的人，WCAG 1.4.4）；桌面鼠标环境保持 15px 不变。 */
@media (max-width: 860px), (hover: none) and (pointer: coarse) {
  form.inq input, form.inq select, form.inq textarea { font-size: 16px; }
}
/* 单选组：fieldset + legend 去掉浏览器默认的边框、内边距，外观和其他字段标题一样 */
form.inq fieldset.radio-group { border: 0; margin: 0; padding: 0; min-width: 0; }
form.inq fieldset.radio-group legend { float: left; width: 100%; padding: 0; font-size: 14px; font-weight: 600; margin-bottom: 6px; line-height: inherit; }
form.inq fieldset.radio-group .radio-row { clear: both; }
.radio-row { display: flex; gap: 18px; flex-wrap: wrap; font-size: 15px; }
.radio-row label { font-weight: 400; display: flex; align-items: center; gap: 6px; margin: 0; }
.radio-row input { width: auto; }
.form-note { display: none; padding: 12px 14px; border-radius: 8px; background: var(--ph-bg); color: #7a4f0e; font-size: 14px; }
.form-note.show { display: block; }
.contact-box { background: var(--bg-soft); border-radius: 14px; padding: 28px; }
/* 询价表单 + 联系信息：桌面左右两栏，窄屏改成上下单栏（表单在前） */
.contact-grid { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 40px; align-items: start; } /* minmax(0, …)：长邮箱、长文件名不会把栏撑宽（D01） */
@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .contact-box { padding: 22px; }
}
.contact-box dl { margin: 0; }
.contact-box dt { font-size: 13px; color: var(--ink-3); margin-top: 14px; }
.contact-box dd { margin: 0; font-weight: 600; }

/* 时间线 */
/* 年份做成大号青色数字、事件用正文深色，两级一眼分开；竖线只连在圆点之间，不在最后一个点下面拖尾巴 */
.timeline { padding-left: 30px; }
.tl { position: relative; padding-bottom: 30px; }
.tl:last-child { padding-bottom: 0; }
.tl::before { content: ""; position: absolute; left: -30px; top: 8px; width: 12px; height: 12px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px var(--brand-tint); }
.tl:not(:last-child)::after { content: ""; position: absolute; left: -25px; top: 24px; bottom: -4px; width: 2px; border-radius: 1px; background: var(--brand-tint); }
.tl b { display: block; font-size: 24px; font-weight: 800; line-height: 1.15; letter-spacing: .01em; color: var(--brand); font-variant-numeric: tabular-nums; }
.tl b .ph { font-size: inherit; font-weight: inherit; padding: 0 .12em; border-radius: 4px; }
.tl p { margin: 6px 0 0; color: var(--ink); font-weight: 500; line-height: 1.5; }

/* 新闻 */
.news-item { display: grid; grid-template-columns: 220px 1fr; gap: 24px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.news-item .photo-ph { min-height: 140px; }
.news-item time { font-size: 13px; color: var(--ink-3); }
/* 新闻条目、联系页右栏公司名：语义上是 h2（直接挂在 h1 下），字号保持原来 h3 的样子 */
.news-item h2, .contact-box h2 { font-size: 19px; font-weight: 650; }

/* FAQ */
details.faq { border-bottom: 1px solid var(--line); padding: 16px 0; }
details.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; color: var(--brand); font-size: 20px; line-height: 1; }
details.faq[open] summary::after { content: "–"; }
details.faq p { margin: 10px 0 0; color: var(--ink-2); }

/* ---------- 页脚 ---------- */
footer.site { background: var(--bg-deep); color: #a9c1ca; font-size: 14px; padding: 56px 0 28px; }
footer.site .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; }
/* 页脚栏目标题用 h2（页脚是独立区域，不该挂在正文最后一节下面），外观同原来的 h4 */
footer.site h2 { color: #fff; font-size: 15px; font-weight: 700; margin-bottom: 12px; }
footer.site a { color: #c5d6dd; }
footer.site a:hover { color: #fff; }
footer.site ul { list-style: none; padding: 0; margin: 0; }
footer.site li { margin-bottom: 6px; }
footer.site .legal { border-top: 1px solid rgba(255,255,255,.1); margin-top: 40px; padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 13px; }
footer.site .ph { background: rgba(255,248,230,.1); color: #ffd58a; border-color: #ffd58a; }

/* 回到顶部 / 浮动询价 */
.float-bar { position: fixed; right: 18px; bottom: 18px; z-index: 40; display: flex; gap: 10px; }
.float-inq { box-shadow: 0 6px 20px rgba(191,86,35,.35); }
/* 手机上多一个「电话 / WhatsApp」（审核第二批 A）；桌面不显示，电脑上点 tel: 没用 */
.float-call { display: none; background: #fff; color: var(--brand-2); box-shadow: inset 0 0 0 1.5px var(--brand-2), 0 6px 20px rgba(14,47,61,.18); }
.float-call:hover { background: var(--brand-tint); color: var(--brand-2); }
.float-bar .btn { gap: 6px; }
@media (max-width: 860px) {
  .float-call { display: inline-flex; align-items: center; }
  .float-bar { right: 12px; left: 12px; bottom: 12px; justify-content: flex-end; pointer-events: none; } /* 两个按钮之间的空白不挡住下面的内容 */
  .float-bar .btn { pointer-events: auto; }
  .float-bar .btn { min-height: 48px; padding: 10px 16px; }
}
@media (max-width: 360px) { .float-bar .btn { padding: 10px 12px; font-size: 14px; } }
/* 在线客服（配了 CHAT_ENDPOINT 才有）：右下角按钮展开的面板，不是弹窗、不挡页面其他操作 */
.float-chat { background: var(--brand-2); color: #fff; box-shadow: 0 6px 20px rgba(14,47,61,.3); gap: 6px; }
.float-chat:hover { background: var(--brand); color: #fff; }
.float-chat[aria-expanded="true"] { background: var(--brand); }
.chat-panel { position: fixed; right: 18px; bottom: 84px; z-index: 55; /* 高过吸顶页头（50），面板的标题和关闭按钮不会被它盖住 */ width: min(380px, calc(100vw - 24px)); max-height: min(560px, calc(100vh - 120px)); display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 50px rgba(14,47,61,.25); overflow: hidden; }
.chat-panel[hidden] { display: none; }
.chat-head { display: flex; align-items: center; gap: 8px; padding: 10px 10px 10px 16px; border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.chat-head h2 { font-size: 16px; margin: 0 auto 0 0; display: flex; align-items: center; gap: 6px; }
.chat-head h2 small { font-size: 11px; font-weight: 700; color: var(--brand-2); border: 1px solid var(--brand); border-radius: 4px; padding: 0 4px; }
.chat-reset, .chat-x { background: none; border: 0; font: inherit; color: var(--ink-3); cursor: pointer; border-radius: 8px; min-height: 36px; padding: 4px 8px; }
.chat-x { font-size: 22px; line-height: 1; min-width: 36px; }
.chat-reset:hover, .chat-x:hover { background: #fff; color: var(--ink); }
.chat-reset:focus-visible, .chat-x:focus-visible, .chat-chip:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; }
.chat-log { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; min-height: 160px; }
.chat-msg { margin: 0; max-width: 88%; padding: 9px 12px; border-radius: 12px; font-size: 14px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.chat-msg.bot { align-self: flex-start; background: var(--bg-soft); color: var(--ink); border-top-left-radius: 4px; }
.chat-msg.me { align-self: flex-end; background: var(--brand-2); color: #fff; border-top-right-radius: 4px; }
.chat-msg.me a { color: #fff; }
.chat-msg.err { background: var(--accent-tint); color: #7a3514; }
.chat-msg.wait { color: var(--ink-3); letter-spacing: 2px; }
.chat-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 14px 10px; }
.chat-chips[hidden] { display: none; }
.chat-chip { font: inherit; font-size: 13px; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--brand); background: #fff; color: var(--brand-2); cursor: pointer; }
.chat-chip:hover { background: var(--brand-tint); }
.chat-form { display: flex; gap: 8px; align-items: flex-end; padding: 10px 12px; border-top: 1px solid var(--line); }
.chat-form textarea { flex: 1; resize: none; font: inherit; font-size: 15px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; min-height: 44px; max-height: 120px; }
.chat-form textarea:focus { outline: 2px solid var(--brand); outline-offset: 0; border-color: var(--brand); }
.chat-form .btn { min-height: 44px; }
.chat-note { margin: 0; padding: 0 14px 10px; font-size: 12px; color: var(--ink-3); line-height: 1.5; }
@media (max-width: 860px) {
  .float-chat span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } /* 手机上只留图标，名称照样给读屏 */
  .float-chat { padding: 10px 14px; }
  .chat-panel { right: 12px; left: 12px; width: auto; bottom: 72px; max-height: calc(100vh - 96px); max-height: calc(100dvh - 96px); }
}
@media print { .chat-panel, .float-chat { display: none !important; } }
/* 手机菜单：图库只在菜单里出现；底部联系方式（审核第二批 A、F） */
nav.main a.m-only, nav.main .nav-reach { display: none; }
/* 浮动按钮占住视口右下角约 64px 高：键盘 Tab 聚焦时，元素停在它上方，不被盖住（WCAG 2.4.11）。 */
html { scroll-padding-bottom: 76px; }
/* 手机上页脚最后一行（版权、备案号）原来滚到底也被按钮压住，页脚底部多留出按钮的高度 */
@media (max-width: 860px) { footer.site { padding-bottom: 92px; } }

/* ---------- 响应式 ---------- */
@media (max-width: 1020px) {
  nav.main a { padding: 8px 8px; font-size: 14px; }
  .g4 { grid-template-columns: repeat(2, 1fr); }
  footer.site .cols { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: repeat(var(--m, 2), minmax(0, 1fr)); row-gap: 26px; }
  .step::after { display: none; }
  .certs { grid-template-columns: repeat(var(--m, 3), minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .menu-btn { display: block; }
  nav.main {
    display: none; position: absolute; top: 70px; left: 0; right: 0; background: #fff; flex-direction: column;
    padding: 10px 16px 16px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  }
  nav.main.open, nav.main:target { display: flex; }
  header.site .head-cta { display: none; }
  .hero .wrap { grid-template-columns: 1fr; padding-top: 48px; padding-bottom: 48px; }
  .hero-art { max-width: 420px; }
  .stats .wrap { grid-template-columns: repeat(2, 1fr); padding-top: 32px; padding-bottom: 32px; }
  .stat { padding: 2px 20px; }
  .stat:nth-child(odd) { padding-left: 0; border-left: 0; }
  .stat b { font-size: 30px; margin-bottom: 4px; }
  .g3, .g2, .split-two { grid-template-columns: 1fr; }
  .prod { grid-template-columns: 1fr; gap: 20px; }
  .news-item { grid-template-columns: 1fr; }
  form.inq { grid-template-columns: 1fr; }
  .more-grid { grid-template-columns: 1fr; padding: 4px 12px 12px; }
  section.block { padding: 60px 0; }
  .step::after { display: none; }
  .topbar .tb-right { display: none; }
}
@media (max-width: 520px) {
  .wrap { padding: 0 16px; }
  .g4 { grid-template-columns: 1fr; }
  footer.site .cols { grid-template-columns: 1fr; }
  .cta { padding: 28px; }
  .biz { padding: 26px; }
  .kv { grid-template-columns: 100px 1fr; }
  .steps, .certs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cert:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .logo small { display: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } a.card { transition: none; } }

/* ---------- 照片（临时图会带角标） ---------- */
figure.stock { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--bg-soft); }
figure.stock img { width: 100%; height: 100%; object-fit: cover; }
.stock-tag {
  position: absolute; left: 10px; top: 10px; font-size: 12px; line-height: 1.6;
  background: rgba(255, 248, 230, .94); color: #7a4f0e; padding: 1px 8px; border-radius: 4px; border: 1px dashed var(--ph);
}
figure.stock figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 14px 10px; color: #fff; font-size: 14px; font-weight: 600;
  background: linear-gradient(transparent, rgba(14, 47, 61, .78));
}
.hero-art figure.stock { box-shadow: 0 20px 50px rgba(14, 47, 61, .18); border-radius: 18px; }
/* 首屏双图（审核第二批 B）：胶囊大图 + 左下角压一张生产线小图 */
.hero-art.duo { padding: 0 0 70px 0; }
.hero-tile { position: relative; display: block; color: #fff; text-decoration: none; border-radius: 18px; }
.hero-tile figure.stock { margin: 0; overflow: hidden; }
.hero-tile.main figure.stock { height: 360px; margin-left: 12%; }
.hero-tile.sub { position: absolute; left: 0; bottom: 0; width: 52%; }
.hero-tile.sub figure.stock { height: 190px; border: 4px solid #fff; box-shadow: 0 14px 36px rgba(14, 47, 61, .28); }
.hero-tile img { transition: transform .4s; }
.hero-tile:hover img { transform: scale(1.03); }
.hero-tile:focus-visible { outline: 3px solid var(--brand); outline-offset: 4px; }
.tile-tag { position: absolute; left: 14px; bottom: 14px; padding: 6px 12px; border-radius: 999px; background: rgba(14, 47, 61, .82); font-size: 14px; font-weight: 600; white-space: nowrap; }
.hero-tile.main .tile-tag { left: auto; right: 14px; }
.tile-note { position: absolute; right: 12px; top: 10px; font-size: 11px; color: rgba(255,255,255,.85); background: rgba(14,47,61,.5); padding: 1px 6px; border-radius: 4px; }
@media (max-width: 860px) {
  .hero-art.duo { max-width: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .hero-tile.main figure.stock, .hero-tile.sub figure.stock { height: 200px; margin: 0; border: 0; }
  .hero-tile.sub { position: relative; width: auto; }
  .tile-tag, .hero-tile.main .tile-tag { left: 8px; right: auto; bottom: 8px; font-size: 13px; padding: 5px 10px; white-space: normal; }
}
@media (max-width: 400px) { .hero-tile.main figure.stock, .hero-tile.sub figure.stock { height: 150px; } }
@media (prefers-reduced-motion: reduce) { .hero-tile img { transition: none; } }
.biz, .cta, .stats, footer.site { background-size: cover; background-position: center; } /* 大色块下面垫的淡照片（F05） */

/* 导航不折行；中等宽度就收进菜单按钮 */
nav.main a, .lang a, .btn, .logo { white-space: nowrap; }
@media (max-width: 1120px) {
  .menu-btn { display: block; }
  nav.main {
    display: none; position: absolute; top: 70px; left: 0; right: 0; background: #fff; flex-direction: column;
    padding: 10px 16px 16px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  }
  nav.main.open, nav.main:target { display: flex; }
  nav.main a { padding: 10px 12px; font-size: 15px; }
  nav.main a.m-only { display: block; }
  nav.main .nav-reach { display: block; margin-top: 8px; padding: 12px 12px 2px; border-top: 1px solid var(--line); font-size: 14px; }
  .nav-reach p { margin: 0 0 6px; font-weight: 700; color: var(--brand-2); }
  .nav-reach ul { list-style: none; margin: 0; padding: 0; }
  .nav-reach li { display: flex; align-items: center; gap: 10px; min-height: 40px; }
  .nav-reach li > span:first-child { flex: none; width: 5.5em; color: var(--ink-3); }
  nav.main .nav-reach a { padding: 0; font-size: inherit; background: none; display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline; }
  header.site .wrap { gap: 14px; }
}
@media (max-width: 520px) { header.site .lang a { padding: 5px 8px; } }

/* ---------- 没有 JavaScript 时（<html> 上没有 layout.mjs 内联脚本加的 .js） ---------- */
/* 菜单：点「菜单」跳到 #mainnav，上面的 nav.main:target 把导航展开；scroll-margin 让页面回到顶部而不是把导航顶到屏幕外 */
nav.main { scroll-margin-top: 100vh; }
/* 询价表单没有接收地址时发不出去：不显示「提交」，由表单里的 <noscript> 提示改用邮件 / 电话 */
html:not(.js) form.inq:not([action]) button[type="submit"] { display: none; }
/* 3D 区：加载、播放、复位按钮都要脚本，点了没反应，不显示；只留 <noscript> 里的说明，框高缩到说明那么高 */
html:not(.js) #dip-load, html:not(.js) .mv-ask, html:not(.js) .viewer-bar { display: none; }
html:not(.js) model-viewer { height: auto; }
html:not(.js) .mv-poster { position: static; }

/* ---------- 3D 交互模型（设备页） ---------- */
.viewer { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: radial-gradient(ellipse at 50% 40%, #ffffff 0%, #eef4f5 70%, #e3edef 100%); }
model-viewer { position: relative; display: block; width: 100%; height: 560px; --poster-color: transparent; background: transparent; }
.mv-poster { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 14px; align-items: center; justify-content: center; padding: 20px; text-align: center; color: var(--ink-3); font-size: 14px; background-size: cover; background-position: center; }
.mv-poster p { margin: 0; max-width: 34em; background: rgba(255,255,255,.85); padding: 6px 14px; border-radius: 8px; }
.mv-poster [hidden] { display: none !important; }
.mv-progress { display: none; }
.viewer-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 18px; border-top: 1px solid var(--line); background: #fff; }
.viewer-bar .small { margin-left: auto; }
@media (max-width: 860px) {
  model-viewer { height: 420px; }
  .viewer-bar .small { margin-left: 0; width: 100%; }
}
@media (max-width: 520px) { model-viewer { height: 340px; } }

/* ---------- 询价表单分流：按咨询内容显示对应字段 ---------- */
form.inq .f-label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; }
form.inq .f-label i { color: #a24a1f; font-style: normal; } /* 必填星号用深橙（C03，白底 5.9:1），和 label i、legend i 一致 */
form.inq label .opt { font-weight: 400; color: var(--ink-3); }
.topic-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
form.inq label.topic {
  display: flex; align-items: flex-start; gap: 10px; margin: 0; padding: 14px 14px; cursor: pointer;
  border: 1px solid #c9d3d8; border-radius: 10px; background: #fff; font-weight: 400; transition: border-color .15s, background .15s;
  scroll-margin-top: 68px; /* D 原来 140px；html 已有 scroll-padding-top: 72px（C04），合计仍是 140px */
}
form.inq label.topic input { width: auto; margin: 3px 0 0; flex: none; accent-color: var(--brand); }
label.topic b { display: block; font-size: 15px; color: var(--ink); }
label.topic small { display: block; font-size: 13px; color: var(--ink-3); line-height: 1.5; margin-top: 2px; }
label.topic:hover { border-color: var(--brand); }
label.topic:has(input:checked) { border-color: var(--brand); background: var(--brand-tint); box-shadow: inset 0 0 0 1px var(--brand); }
label.topic:has(input:focus-visible) { outline: 2px solid var(--brand); outline-offset: 2px; }
form.inq fieldset.grp { margin: 4px 0 0; padding: 18px 18px 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-soft); min-width: 0; }
form.inq fieldset.grp[hidden] { display: none; }
form.inq fieldset.grp legend { padding: 0 6px; font-size: 15px; font-weight: 700; color: var(--brand-2); }
form.inq fieldset.grp legend small { font-size: 13px; font-weight: 400; color: var(--ink-3); margin-left: 8px; }
.grp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grp-grid .full { grid-column: 1 / -1; }
@media (max-width: 860px) {
  .topic-cards { grid-template-columns: 1fr; }
  .grp-grid { grid-template-columns: 1fr; }
  form.inq fieldset.grp { padding: 14px 14px 16px; }
}
/* 联系页两栏 / 手机单栏：C01 和 D01 各写了一份，合并后只留上面「询价表单 + 联系信息」那一份 */
@media (max-width: 520px) { form.inq fieldset.grp legend small { display: block; margin: 2px 0 0; } }

/* ---------- 质量文件索取：质量页文件清单 + 联系页勾选 ---------- */
.docs-jump { margin: 20px 0 0; font-size: 15px; color: var(--ink-2); }
.docs-jump a { font-weight: 600; white-space: nowrap; }
.card.doc h3 { font-size: 17px; margin-bottom: 6px; }
.card.doc p { margin: 0; }
form.inq fieldset#inquiry-docs { scroll-margin-top: 48px; } /* 加上 html 的 72px，合计仍是 D 原来的 120px */
.chk-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; }
form.inq label.chk { display: flex; align-items: flex-start; gap: 8px; margin: 0; font-size: 14.5px; font-weight: 400; cursor: pointer; line-height: 1.5; }
form.inq label.chk input { width: auto; margin: 3px 0 0; padding: 0; flex: none; accent-color: var(--brand); }
@media (max-width: 520px) { .chk-grid { grid-template-columns: 1fr; } .docs-jump a { white-space: normal; } }

/* 联系页「不想填表？直接联系」：只在手机 / 窄屏显示（宽屏时右侧联系卡已经在表单旁边） */
.quick-contact { display: none; }
@media (max-width: 860px) {
  .quick-contact { display: block; margin: 0 0 28px; padding: 16px 16px 14px; border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: 12px; background: var(--bg-soft); }
  .qc-head { margin: 0 0 8px; font-weight: 700; color: var(--brand-2); }
  .qc-list { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 14px; margin: 0; font-size: 15px; }
  .qc-list dt { color: var(--ink-3); }
  .qc-list dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
  .qc-more { display: inline-block; margin-top: 10px; font-size: 14px; }
}
.contact-box { scroll-margin-top: 16px; }

/* 联系方式二选一：标题和说明占一整行，下面是邮箱、电话两个框 */
form.inq .reach-head { margin: 4px 0 -8px; }
form.inq .reach-head .f-label { display: inline; margin: 0 10px 0 0; }
.reach-hint { font-size: 13.5px; color: var(--ink-3); }
@media (max-width: 520px) { .reach-hint { display: block; margin-top: 2px; } }

/* 设备项目：需要哪些设备（整线 / 配套设备 / 备件），从设备页卡片的「单独询价」进来会自动勾好 */
.equip-pick { margin: 0 0 18px; padding-bottom: 18px; border-bottom: 1px dashed var(--line); }
form.inq .equip-pick .f-label .opt { font-weight: 400; color: var(--ink-3); }

/* D06 预约到厂看线：深色 CTA 条里的第二个按钮、并排按钮、关于页参观提示 */
.cta-acts { display: flex; gap: 12px; flex-wrap: wrap; }
.btn.ghost-light { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.75); }
.btn.ghost-light:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }
.link-row { display: flex; gap: 24px; flex-wrap: wrap; }
.visit-note { margin-top: 32px; padding: 24px 28px; border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: 12px; background: #fff; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.visit-note h3 { margin: 0 0 6px; }
.visit-note p { margin: 0; max-width: 680px; }
@media (min-width: 861px) { .topic-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 861px) and (max-width: 1120px) { .topic-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .cta-acts, .cta-acts .btn { width: 100%; } .cta-acts .btn { justify-content: center; } .visit-note { padding: 18px; } }
/* 首页胶囊业务卡「提供免费样品 →」：直达表单的索样 */
.biz li a.li-link { color: #fff; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,.55); }
.biz li a.li-link:hover { text-decoration-color: #fff; }
.prod .btn-row { margin: 18px 0 0; }

/* ---------- 下单前要知道的条款（胶囊页「订购与交付」、设备页「交期与商务条款」） ---------- */
.terms .term h3 { font-size: 17px; margin-bottom: 12px; }
.term dl { display: grid; grid-template-columns: minmax(0, 7.5em) minmax(0, 1fr); gap: 8px 14px; margin: 0 0 4px; font-size: 14.5px; }
.term dt { color: var(--ink-3); }
.term dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; }
.term .more { padding-top: 14px; }
html[lang="en"] .term dl { grid-template-columns: minmax(0, 9em) minmax(0, 1fr); }
@media (max-width: 1020px) and (min-width: 861px) { .terms.g3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .term dl, html[lang="en"] .term dl { grid-template-columns: minmax(0, 7em) minmax(0, 1fr); } }

/* ---------- D09 设备页「交付案例」：已投产项目卡（全是占位）+ 索取交付案例；表单里的「需要交付案例」 ---------- */
.cases .case .photo-ph { margin: -8px -8px 18px; border-radius: 8px; }
.cases .case h3 { font-size: 17px; }
.refs-pick { margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--line); }
@media (max-width: 520px) { .cases .case .photo-ph { min-height: 110px !important; } }

/* 提交后会怎样：按咨询内容换的三步说明，放在提交按钮上方 */
.next-steps { margin: 6px 0 16px; padding: 14px 16px; border: 1px solid var(--line); border-left: 3px solid var(--brand); border-radius: 10px; background: var(--bg-soft); }
.next-steps .ns-head { display: block; font-size: 14px; font-weight: 700; color: var(--brand-2); margin-bottom: 8px; }
.next-steps ol { margin: 0; padding: 0; list-style: none; counter-reset: ns; display: grid; gap: 6px; }
.next-steps ol[hidden] { display: none; }
.next-steps li { counter-increment: ns; position: relative; padding-left: 28px; font-size: 14px; line-height: 1.55; color: var(--ink-2); }
.next-steps li::before { content: counter(ns); position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%; background: var(--brand-tint); color: var(--brand-2); font-size: 12px; font-weight: 700; display: grid; place-items: center; }

/* D11 多规格询价：胶囊类型、规格改成可多选的小标签；用量按规格分行写 */
.chips .chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
form.inq label.chip {
  display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 7px 12px; cursor: pointer;
  border: 1px solid #c9d3d8; border-radius: 999px; background: #fff; font-size: 14px; font-weight: 400; line-height: 1.3;
  transition: border-color .15s, background .15s;
}
form.inq label.chip input { width: auto; margin: 0; padding: 0; flex: none; accent-color: var(--brand); }
label.chip:hover { border-color: var(--brand); }
label.chip:has(input:checked) { border-color: var(--brand); background: var(--brand-tint); color: var(--brand-2); font-weight: 600; }
label.chip:has(input:focus-visible) { outline: 2px solid var(--brand); outline-offset: 2px; }
form.inq textarea.qty-lines { min-height: 112px; }
form.inq .chips .f-label .opt { font-weight: 400; color: var(--ink-3); }
@media (max-width: 520px) { form.inq label.chip { padding: 7px 10px; } }

/* D12 两类买家入口：首页、关于、新闻底部的 CTA 分成「采购空心胶囊」和「新建胶囊厂 / 采购设备」两路 */
.cta.cta-split { display: block; }
.cta-split-head p { max-width: 720px; }
.cta-paths { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 26px; }
.cta-path { display: flex; flex-direction: column; padding: 24px 26px; border-radius: 12px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); }
.cta-path h3 { margin: 0 0 8px; color: #fff; font-size: 19px; }
.cta .cta-path p { flex: 1; margin: 0 0 18px; font-size: 15px; }
@media (max-width: 860px) { .cta-paths { grid-template-columns: 1fr; gap: 14px; } }
@media (max-width: 520px) { .cta-path { padding: 18px; } }

/* D13 规格表直接询价：胶囊页规格表左列可勾选，下面的按钮把勾好的规格带进询价 / 索样表单 */
table.spec th .opt { font-weight: 400; color: var(--ink-3); font-size: 12px; margin-left: 4px; }
label.sz-pick { display: inline-flex; align-items: center; gap: 8px; margin: -6px -8px; padding: 6px 8px; cursor: pointer; border-radius: 6px; }
label.sz-pick span { line-height: 1.2; }
label.sz-pick input { width: 16px; height: 16px; margin: 0; accent-color: var(--brand); cursor: pointer; }
label.sz-pick:has(input:focus-visible) { outline: 2px solid var(--brand); outline-offset: 1px; }
table.size-table tbody tr:has(input:checked) td, table.spec.sizes.size-table tbody tr:has(input:checked) th { background: var(--brand-tint); } /* 首列是 th（C06），手机上固定在左边，也要跟着高亮 */
.size-quote { margin-top: 14px; padding: 14px 18px; border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: 12px; background: #fff; display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; }
.size-quote p { margin: 0; font-size: 15px; color: var(--ink-2); }
.size-quote p b { color: var(--ink); margin-right: 6px; }
.size-quote.on .sq-state { color: var(--brand-2); font-weight: 600; }
.sq-type { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; flex-basis: 100%; font-size: 14px; }
.sq-type-h { color: var(--ink-3); margin-right: 2px; }
.sq-type label { position: relative; cursor: pointer; }
.sq-type input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sq-type label span { display: inline-flex; align-items: center; min-height: 34px; padding: 4px 12px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink-2); }
.sq-type input:checked + span { border-color: var(--brand); background: var(--brand-tint); color: var(--brand-2); font-weight: 600; }
.sq-type input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
html:not(.js) .sq-type { display: none; }
@media (max-width: 860px) { .sq-type label span { min-height: 44px; } }
@media (max-width: 520px) { .size-quote { padding: 14px; } .size-quote p b { display: block; margin: 0 0 2px; } .size-quote .btn-row, .size-quote .btn { width: 100%; } .size-quote .btn { justify-content: center; } }

/* 询价附件：虚线框里的文件选择，选中后列出文件名和大小 */
form.inq .attach-hint { margin: 0 0 10px; font-size: 14px; color: var(--ink-2); }
form.inq .attach-drop { border: 1.5px dashed #b9c7ce; border-radius: 10px; background: var(--bg-soft); padding: 14px; }
form.inq .attach-drop:focus-within { border-color: var(--brand); background: var(--brand-tint); }
form.inq .attach-drop input[type="file"] { border: 0; background: transparent; padding: 0; font-size: 14px; color: var(--ink-2); cursor: pointer; max-width: 100%; }
form.inq .attach-drop input[type="file"]:focus { outline: none; }
form.inq .attach-drop input[type="file"]::file-selector-button {
  font: inherit; font-size: 14px; font-weight: 600; margin-right: 12px; padding: 8px 14px; border-radius: 8px; cursor: pointer;
  background: #fff; color: var(--brand); border: 1.5px solid var(--brand);
}
form.inq .attach-files { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-top: 10px; }
form.inq .attach-files[hidden] { display: none; }
form.inq .attach-list { list-style: none; margin: 0; padding: 0; font-size: 14px; flex: 1; min-width: 0; }
form.inq .attach-list li { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; border-bottom: 1px solid var(--line); }
form.inq .attach-list .fn { overflow-wrap: anywhere; min-width: 0; }
form.inq .attach-list .fs { color: var(--ink-3); white-space: nowrap; }
form.inq .attach-list li.sum { justify-content: flex-end; border-bottom: 0; color: var(--ink-3); }
form.inq .attach-list li.bad, form.inq .attach-list li.bad .fs { color: #b4361f; }
form.inq .attach-clear { flex: none; font: inherit; font-size: 13.5px; background: none; border: 0; color: var(--brand); cursor: pointer; padding: 5px 0; text-decoration: underline; }
form.inq .attach-err { margin: 8px 0 0; font-size: 14px; color: #b4361f; }
form.inq .attach-err[hidden] { display: none; }
form.inq .attach-rule { margin: 8px 0 0; }
@media (max-width: 520px) { form.inq .attach-files { flex-direction: column; gap: 4px; } form.inq .attach-list { width: 100%; } }

/* 视频连线看线：参观方式两个选项；CTA 条里的补充入口（深色底上的白色链接） */
.visit-mode { margin: 0 0 18px; padding-bottom: 18px; border-bottom: 1px dashed var(--line); }
.only-onsite[hidden] { display: none; }
.cta .cta-alt { margin-top: 10px; font-size: 15px; }
.cta .cta-alt a, .cta a.cta-inline { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.cta .cta-alt a:hover, .cta a.cta-inline:hover { text-decoration-thickness: 2px; }

/* 联系页：工作时间、时区、沟通语言（D16） */
.contact-box dd .tz, .qc-list dd .tz { display: block; font-weight: 400; font-size: 13px; color: var(--ink-3); margin-top: 2px; }
.bj-now { margin: 14px 0 0; font-size: 14px; font-weight: 600; color: var(--brand-2); }
.off-hours { margin: 6px 0 0; font-size: 13px; color: var(--ink-3); line-height: 1.6; }
.quick-contact .bj-now { margin-top: 10px; }
/* ---------- 手机端触控目标 ----------
   窄屏下可点元素至少 44×44px（Apple HIG / WCAG 2.5.5 建议值），手指不容易点错。
   只放大可点区域，不改字号和配色；桌面不受影响。 */
/* 单选项：原来被 form.inq label / form.inq input 的通用规则盖住（标签成了块、单选圈被拉成 100% 宽），
   圆圈和文字上下错开，能点的只有很小一块。这里提高优先级，让圆圈和文字同一行、整个标签可点。 */
form.inq .radio-row label { display: flex; align-items: center; gap: 8px; margin: 0; font-weight: 400; cursor: pointer; }
form.inq .radio-row input { width: auto; padding: 0; margin: 0; flex: none; accent-color: var(--brand); }

@media (max-width: 860px) {
  /* 页头：菜单按钮、中文/EN 切换 */
  .menu-btn { min-height: 44px; min-width: 44px; }
  .lang a { display: flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; }
  /* 内页页头的锚点胶囊按钮 */
  .subnav a { display: inline-flex; align-items: center; min-height: 44px; }
  /* 小号按钮（产品询价、3D 播放/复位） */
  .btn.sm { min-height: 44px; }
  /* FAQ 折叠标题：整行可点 */
  details.faq { padding: 6px 0; }
  details.faq summary { align-items: center; min-height: 44px; padding: 8px 0; }
  details.faq p { margin: 4px 0 10px; }
  /* 询价表单的单选项：整个标签可点 */
  .radio-row { gap: 0 20px; }
  form.inq .radio-row label { min-height: 44px; }
  form.inq .radio-row input { width: 20px; height: 20px; }
  form.inq select { min-height: 44px; }
  /* 区块标题旁的「全部文章 →」这类单独链接 */
  .sec-head > a { display: inline-flex; align-items: center; min-height: 44px; }
  /* 页脚链接列表：去掉行间空隙，每个链接的可点高度加到 44px */
  footer.site li:has(> a) { margin-bottom: 0; }
  footer.site li a { display: inline-flex; align-items: center; min-height: 44px; }
}

/* ---------- 手机菜单：看得出是开着的，也看得出怎么关 ----------
   原来展开后按钮外观不变（还是「菜单」两个字），菜单盖住半屏页面却和下面的内容没有区分，
   只能再点一次按钮才收起。现在：按钮带三道杠图标，展开时变成 ✕ 并高亮；
   菜单下方的页面压一层半透明深色，点遮罩、按 Esc、Tab 离开菜单都会收起（逻辑在 main.js）。
   按钮的可访问名称保持「菜单 / Menu」不变，开合状态由 aria-expanded 告诉读屏。 */
@media (max-width: 1120px) {
  .menu-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    color: var(--ink); cursor: pointer; transition: background .15s, border-color .15s, color .15s;
    white-space: nowrap; flex: none; /* 加了图标后「菜单」两个字不许折成两行 */
  }
  .menu-btn::before {
    content: ""; flex: none; width: 16px; height: 12px;
    background:
      linear-gradient(currentColor 0 0) top / 100% 2px no-repeat,
      linear-gradient(currentColor 0 0) center / 100% 2px no-repeat,
      linear-gradient(currentColor 0 0) bottom / 100% 2px no-repeat;
  }
  .menu-btn[aria-expanded="true"] { color: var(--brand-2); background: var(--brand-tint); border-color: var(--brand); }
  .menu-btn[aria-expanded="true"]::before {
    width: 14px; height: 14px;
    background:
      linear-gradient(45deg, transparent calc(50% - 1px), currentColor calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)),
      linear-gradient(-45deg, transparent calc(50% - 1px), currentColor calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px));
  }
  .menu-btn:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
  /* 菜单以下的页面压暗：clip-path 把遮罩限制在菜单顶边以下，不盖住页头本身 */
  nav.main.open {
    box-shadow: var(--shadow), 0 0 0 100vmax rgba(14, 47, 61, .45);
    clip-path: inset(0 0 -100vmax 0);
  }
}
@media (max-width: 380px) { .menu-btn { padding: 6px 8px; gap: 5px; } }
@media (prefers-reduced-motion: reduce) { .menu-btn { transition: none; } }

/* 3D「暂停旋转」按钮：靠 JS 才起作用，没开 JS 时用 hidden 藏起来；.btn 的 display 会盖过 hidden，这里补回 */
.btn[hidden] { display: none; }

/* ---------- 电话、邮箱可点（a.tap） ----------
   原来顶栏、联系页右栏、页脚里的电话和邮箱都是纯文字，手机上只能长按选中再复制，
   表单发送失败时提示「请直接发邮件给我们」也点不了。现在是 tel: / mailto: 链接，点一下拨号或打开邮件。
   窄屏下每个号码 / 邮箱的可点高度 44px（页脚链接已有同样规则）。 */
a.tap { overflow-wrap: anywhere; }
.contact-box dd a.tap { color: var(--brand-2); }
.contact-box dd a.tap:hover { text-decoration: underline; }
@media (max-width: 860px) {
  .topbar .wrap { padding-top: 0; padding-bottom: 0; }
  .topbar .tb-left { gap: 0 20px; }
  .topbar a.tap, .contact-box dd a.tap { display: inline-flex; align-items: center; min-height: 44px; }
  .contact-box dt { margin-top: 8px; }
}

/* ---------- 跳过导航（.skip） ----------
   每页正文前有顶栏邮箱电话、Logo、7 个导航链接、中文/EN、询价按钮，键盘用户原来每进一页都要先 Tab 过这些
   （桌面 13 下、手机 6 下）才到正文。现在第一下 Tab 就是「跳到正文」，回车直接把焦点移到 <main>。
   平时移出屏幕不占位置，键盘聚焦时在左上角显示，盖在顶栏和吸顶页头之上。 */
.skip {
  position: fixed; left: 12px; top: 12px; z-index: 100;
  background: var(--brand-2); color: #fff; font-weight: 600; font-size: 15px; line-height: 1.4;
  padding: 12px 18px; min-height: 44px; display: inline-flex; align-items: center;
  border-radius: 8px;
  transform: translateY(calc(-100% - 40px)); /* 藏起来时不带阴影，免得阴影边缘漏进页面左上角 */
}
.skip:focus { transform: none; color: #fff; outline: 3px solid var(--accent); outline-offset: 2px; box-shadow: 0 6px 20px rgba(14, 47, 61, .35); }
.skip:hover { color: #fff; }
/* 跳过来后焦点在 <main> 上（tabindex="-1" 只为接住焦点），不画整块描边 */
main:focus { outline: none; }

/* ---------- 合并 C 和 D 时补的规则 ----------
   D 新加的表单控件（咨询卡片、多选小标签、勾选框、规格表勾选、附件、直接联系）也要满足 C 的规则：
   键盘焦点看得见、手指点选时不出多余的环（C08），手机上可点高度 44px（C02）。 */
/* 咨询内容改成 fieldset + legend（C14）后，legend 用 D 的 .f-label 外观 */
form.inq fieldset.topic-group legend { margin-bottom: 8px; }
form.inq fieldset.topic-group .topic-cards { clear: both; }
/* 单选 / 勾选框：鼠标、手指点选不画环，键盘聚焦才画；卡片、小标签、规格勾选由外层 label 画环（D 已写），框本身不再重复画 */
form.inq input[type="radio"]:focus, form.inq input[type="checkbox"]:focus { outline: none; }
form.inq input[type="radio"]:focus-visible, form.inq input[type="checkbox"]:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
form.inq label.topic input:focus-visible, form.inq label.chip input:focus-visible, label.sz-pick input:focus-visible { outline: none; }
.qc-more:focus-visible, .attach-clear:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
@media (max-width: 860px) {
  form.inq label.chip { min-height: 44px; }
  .chk-grid { gap: 0 16px; }
  form.inq label.chk { min-height: 44px; padding: 10px 0; }
  label.sz-pick { min-height: 44px; min-width: 44px; }
  .qc-list dd a.tap, .qc-more { display: inline-flex; align-items: center; min-height: 44px; }
  .qc-list { align-items: center; }
  form.inq .attach-clear { min-height: 44px; }
  form.inq .attach-drop input[type="file"] { min-height: 44px; }
  /* D 新加的单独链接：卡片里的「单独询价 →」「免费索样 →」、首页的「预约参观工厂 →」「提供免费样品 →」 */
  .card a.more, .link-row a { display: inline-flex; align-items: center; min-height: 44px; }
  .biz li a.li-link { display: inline-flex; align-items: center; min-height: 44px; }
}
/* ---------- 设备页「核心设备」：渲染图和右侧参数栏上下对齐 ---------- */
.core-line { gap: 48px; align-items: stretch; }
.core-media { display: flex; flex-direction: column; }
.core-media figure.stock { flex: 1 1 auto; min-height: 380px; }
.core-media figure.stock img { position: absolute; inset: 0; }
.core-line > div > :last-child { margin-bottom: 0; }

/* ---------- 手机上带插图的卡片改横排 ----------
   首页「常用空心胶囊品种」和设备页「配套设备与备件」在手机上一行一张，每张上面是一整条 120px 高、
   只在中间画个小图标的浅灰图框，6 张配套设备要滑约 1750px。手机上改成左图右文：图框缩成 88px 方块，
   标题和说明在右边，卡片高度约减半，内容一屏能看到三四张。桌面和平板不变。 */
@media (max-width: 520px) {
  .card:has(> .art) {
    display: grid; grid-template-columns: 88px minmax(0, 1fr); grid-template-rows: auto auto 1fr;
    column-gap: 16px; padding: 18px; align-items: start;
  }
  .card > .art { grid-column: 1; grid-row: 1 / -1; align-self: start; width: 88px; height: 88px; margin: 0; }
  .card > .art svg { width: 76px; height: auto; }
  a.card > .art svg { width: 88px; }  /* 胶囊插图自带留白，铺满方块才和设备图标一样大 */
  .card:has(> .art) > :not(.art) { grid-column: 2; }
  .card:has(> .art) h3 { font-size: 17px; margin: 2px 0 4px; }
  .card:has(> .art) p { font-size: 14.5px; line-height: 1.6; margin: 0; }
  .card:has(> .art) .more { margin-top: 8px; }
}

/* ---------- 设备页 3D 区：渲染图按原比例完整显示 ----------
   原来渲染图（2000×1250，16:10）被塞进整栏宽、固定 460px 高的框：桌面裁成 2.46:1，立柱顶端和底座脚被切掉；
   手机裁成 358×460 的竖条，左立柱整根不见。下面紧跟的 3D 模型框又是同一台机器、同样整栏宽，两大块叠在一起很重。
   改成和「工艺流程」「整线服务」一样的左文右图：说明在左，渲染图在右按 16:10 原比例完整显示；窄屏上下排，图仍是原比例。 */
.model-intro { gap: 40px; align-items: center; margin-bottom: 32px; }
.model-intro .sec-head { margin: 0; }
.model-intro .sec-head p { text-wrap: pretty; }
.model-intro figure.stock img { height: auto; aspect-ratio: 16 / 10; }
@media (max-width: 860px) { .model-intro { gap: 24px; margin-bottom: 24px; } }
/* 胶囊页「规格尺寸」的帽/体结构图同理：原来整栏宽、固定 340px 高，16:10 的图被裁成 3.3:1，
   帽和体的下半截压在图注渐变下面，手机上左边的帽和右后的整粒都被切掉。也改成左文右图、原比例完整显示。 */
.model-intro .sec-head p + p { margin-top: 12px; }
@media (max-width: 520px) {
  /* 手机上图只有约 358×224，图注压小、两行均分，少挡住机器下半截 */
  .model-intro figure.stock figcaption { font-size: 13px; padding: 16px 12px 8px; text-wrap: balance; }
}

/* 胶囊页「颜色与印字」：照片高度跟左栏文字齐平；定制流程单独通栏排在下面，四步各有一列宽 */
.custom-grid { align-items: stretch; }
.custom-media { display: flex; }
.custom-media figure.stock { flex: 1 1 auto; min-height: 300px; }
.custom-media figure.stock img { position: absolute; inset: 0; }
.custom-flow { margin-top: 44px; padding-top: 36px; border-top: 1px solid var(--line); }
.custom-flow h3 { font-size: 20px; }
@media (max-width: 860px) {
  .custom-media figure.stock { min-height: 0; aspect-ratio: 3 / 2; }
  .custom-flow { margin-top: 36px; padding-top: 28px; }
}

/* ---------- 合并 B 时补的规则 ---------- */
/* 质量页「供应商审计可以索取的文件」（D02 + B08 合成一节）：三组清单，每项下面一行小字说明 */
.doc-list { margin: 6px 0 0; padding-left: 18px; color: var(--ink-2); font-size: 15px; line-height: 1.7; }
.doc-list li + li { margin-top: 4px; }
.doc-list li span { display: block; font-size: 13.5px; line-height: 1.5; color: var(--ink-3); }
/* 设备页「交付案例」（D09 + B14 合成一节）的参考项目表：7 列，占位文字较长，允许换行；手机上整张表横滑（C06 的 .scroll-x） */
table.spec.cases-table { min-width: 880px; }
table.spec.cases-table th, table.spec.cases-table td { white-space: normal; vertical-align: top; }
table.spec.cases-table tbody th { font-weight: 650; color: var(--brand-2); }
#cases .table-wrap + .small { margin-bottom: 0; }
/* 单独一行的「在询价表单里勾选需要的文件 →」：手机上可点高度 44px（C02） */
@media (max-width: 860px) { .docs-jump.solo a { display: inline-flex; align-items: center; min-height: 44px; } }

/* 404 页 */
.nf-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.page-head p.nf-other { margin-top: 18px; font-size: 14px; color: var(--ink-2); }
.nf-grid .card h2 { font-size: 19px; font-weight: 650; }
@media (max-width: 520px) {
  .nf-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .nf-grid .card { padding: 16px; }
  .nf-grid .card h2 { font-size: 17px; margin-top: 0; }
  .nf-grid .card p { font-size: 13.5px; }
}

/* ---------- 打印（Ctrl/⌘+P、另存为 PDF） ----------
   采购常把规格表、设备参数页打印或存成 PDF 转给同事。没有这一段时：规格表右侧几列被裁掉，
   浮动「在线询价」按钮压在每一页右下角，深色底白字的区块（统计条、两大业务、询价条、页脚）在不打印背景时
   变成白纸上的浅灰字，FAQ 答案收起不打印，3D 区只剩一个空框。
   这里只改纸面：去掉导航、按钮、3D 交互和表单，深色区块改成白底深字，表格缩到纸宽放得下，避免在卡片、图片、表格行中间分页。 */
.print-url { display: none; }

/* ---------- 产品图库（F06） ---------- */
.gl-filter{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:26px}
.gl-filter .chip{font:inherit;font-size:15px;padding:8px 18px;min-height:44px;border-radius:999px;border:1px solid var(--line);background:#fff;color:var(--ink-2);cursor:pointer}
.gl-filter .chip[aria-pressed="true"]{background:var(--brand);border-color:var(--brand);color:#fff}
.gl-filter .chip:focus-visible{outline:3px solid var(--accent-btn);outline-offset:2px}
.gl-grid{columns:3 300px;column-gap:18px}
.gl-item{break-inside:avoid;margin:0 0 18px;background:#fff;border:1px solid var(--line);border-radius:12px;overflow:hidden}
.gl-item[hidden]{display:none}
.gl-item a{display:block;cursor:zoom-in}
.gl-item img{display:block;width:100%;height:auto;transition:transform .35s ease}
.gl-item a:hover img{transform:scale(1.025)}
.gl-item a:focus-visible{outline:3px solid var(--accent-btn);outline-offset:-3px}
.gl-item figcaption{padding:10px 14px 12px;font-size:14px;color:var(--ink-2)}
.gl-note{margin-top:8px}
dialog.lightbox{border:0;padding:0;background:transparent;max-width:100vw;max-height:100vh;width:100vw;height:100vh;color:#fff}
dialog.lightbox::backdrop{background:rgba(8,20,26,.9)}
dialog.lightbox img{position:absolute;inset:56px 72px 72px;margin:auto;max-width:calc(100vw - 144px);max-height:calc(100vh - 128px);object-fit:contain;border-radius:6px}
dialog.lightbox .lb-cap{position:absolute;left:0;right:0;bottom:22px;margin:0;text-align:center;font-size:15px;color:#d9e4e8}
dialog.lightbox button{position:absolute;width:48px;height:48px;border-radius:50%;border:1px solid rgba(255,255,255,.35);background:rgba(255,255,255,.08);color:#fff;font-size:28px;line-height:1;cursor:pointer}
dialog.lightbox button:hover{background:rgba(255,255,255,.18)}
dialog.lightbox button:focus-visible{outline:3px solid #fff;outline-offset:2px}
dialog.lightbox .lb-prev{left:14px;top:50%;transform:translateY(-50%)}
dialog.lightbox .lb-next{right:14px;top:50%;transform:translateY(-50%)}
dialog.lightbox .lb-close{right:14px;top:12px}
@media (max-width:640px){
  .gl-grid{columns:2 150px;column-gap:10px}.gl-item{margin-bottom:10px}.gl-item figcaption{font-size:13px;padding:8px 10px}
  dialog.lightbox img{inset:56px 8px 64px;max-width:calc(100vw - 16px)}
  dialog.lightbox .lb-prev,dialog.lightbox .lb-next{top:auto;bottom:10px;transform:none}
}
@media (prefers-reduced-motion:reduce){.gl-item img{transition:none}.gl-item a:hover img{transform:none}}

@media print {
  @page { margin: 14mm 12mm; }
  html { scroll-behavior: auto; }
  body { font-size: 10.5pt; line-height: 1.55; background: #fff; }
  .wrap { max-width: none; padding: 0; }
  h1 { font-size: 22pt; } h2 { font-size: 16pt; } h3 { font-size: 12.5pt; }
  h1, h2, h3, h4 { break-after: avoid; }
  img, figure, .sec-head, .card, .feat, .cert, .step, .kv, .news-item, details.faq, .contact-box, table.spec tr, .tl { break-inside: avoid; }

  /* 纸上用不到的：顶栏（联系方式页脚里有）、菜单、语言切换、按钮、浮动询价、页内跳转、3D 交互、询价表单和询价条 */
  .topbar, .menu-btn, nav.main, .lang, .head-cta, .float-bar, .subnav, .btn, .card .more, .hero .actions,
  .viewer, form.inq, .cta, section.block:has(> .wrap > .cta), .biz .biz-art { display: none !important; }

  header.site { position: static; backdrop-filter: none; background: none; border-bottom: 1px solid #999; }
  header.site .wrap { height: auto; padding-bottom: 8pt; }
  section.block { padding: 16pt 0; }
  section.block.soft, .page-head, .hero { background: none; }
  .page-head { padding: 14pt 0 10pt; }
  .sec-head { margin-bottom: 12pt; }
  .hero { overflow: visible; }
  .hero .wrap { padding: 14pt 0; gap: 12pt; }
  .hero-art { max-width: none; }
  .hero-art figure.stock { height: 70mm !important; box-shadow: none; }
  a.card, .card { box-shadow: none; transform: none; padding: 12pt; }
  .g3, .g4 { grid-template-columns: repeat(2, 1fr); }
  .grid { gap: 10pt; }

  /* 深色底白字的区块：改成白底深字，不打印背景也看得清 */
  .stats, footer.site { background-image: none !important; } /* 行内样式里的配图，打印时不要 */
  .stats { background: none; color: var(--ink); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .stats .wrap { padding: 10pt 0; grid-template-columns: repeat(4, 1fr); }
  .stat b { font-size: 18pt; }
  .stat span { color: var(--ink-2); }
  .biz { background: none !important; color: var(--ink); border: 1px solid var(--line); min-height: 0; padding: 14pt; }
  .biz p, .biz ul { color: var(--ink-2); }
  footer.site { background: none; color: var(--ink-2); border-top: 1px solid #999; padding: 12pt 0 0; font-size: 9.5pt; }
  footer.site h2, footer.site h4, footer.site a, footer.site .logo { color: var(--ink) !important; } /* 页脚栏目标题 C13 改成了 h2 */
  footer.site .cols { grid-template-columns: 1fr 1fr; gap: 16pt; }
  footer.site .cols > div:nth-child(2), footer.site .cols > div:nth-child(3) { display: none; }
  footer.site .legal { border-top: 1px solid var(--line); margin-top: 12pt; padding-top: 8pt; }
  .stats .ph, footer.site .ph { background: var(--ph-bg); color: var(--ph); border-color: var(--ph); }
  /* 纸上印出本页网址（在页眉右侧），收到打印件或 PDF 的人能找回网页；网址来自 site.mjs 的 SITE_URL，现在是占位域名 */
  .print-url { display: block; margin-left: auto; font-size: 8.5pt; color: var(--ink-3); text-align: right; }

  /* 本来就靠颜色表达的小块照原色打印：色板、图片说明条、临时图片角标 */
  .sw i, figure.stock figcaption, .stock-tag { -webkit-print-color-adjust: exact; print-color-adjust: exact; }

  /* 规格表：纸宽放得下全部列，不再横向滚动裁掉右侧 */
  .table-wrap { overflow: visible; }
  table.spec { min-width: 0; font-size: 9pt; }
  table.spec th, table.spec td { padding: 5pt 6pt; }
  table.spec thead th { white-space: normal; background: none; border-bottom: 1.5px solid #999; }
  table.spec thead { display: table-header-group; }

  /* FAQ：收起的答案也打印出来（旧浏览器由 main.js 在打印前展开） */
  details.faq::details-content { content-visibility: visible; }
  details.faq summary::after, details.faq[open] summary::after { content: none; }

  /* 联系页：表单不打印，联系方式占满一行 */
  #inquiry .grid { display: block; }
}

/* ---------- 合并 E 时补的规则 ----------
   E09 的打印样式和 E10 的无脚本规则写在 C、D 之前，这里补上 C、D 新加的元素。 */
@media print {
  /* D 的页内入口和只在屏幕上有用的东西：手机「直接联系销售」卡（和右栏联系方式重复）、规格表下的「按所选规格询价」、
     交付案例下的「索取交付案例」、首页「了解工厂 → / 预约参观工厂 →」、页内跳转、实时的「现在北京时间」；C 的横滑提示 */
  .quick-contact, .size-quote, .visit-note, .docs-jump, .link-row, .bj-now, .scroll-hint, .skip { display: none !important; }
  /* 规格表首列（C06 手机上固定在左边、D13 带勾选框）：纸上不固定、不印勾选框 */
  table.spec.sizes th[scope="row"] { position: static; box-shadow: none; background: none; }
  label.sz-pick input { display: none; }
  table.spec th .opt { display: none; }
  .table-wrap.scroll-x { background: none; }
}
/* 没有脚本、表单又没有接收地址时，「提交」不显示（E10），「提交后会怎样」（D10）也一起收起 */
html:not(.js) form.inq:not([action]) .next-steps { display: none; }
.gl-link{margin:22px 0 0;font-size:15px;font-weight:600}
.swatches + .gl-link{margin:-6px 0 14px}

/* 规格选型计算（11-08） */
.size-finder { margin-top: 18px; padding: 20px 22px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.size-finder h3 { margin: 0 0 14px; font-size: 18px; }
.sf-in { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: flex-end; }
.sf-in label { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; font-size: 14px; color: var(--ink-2); }
.sf-unit { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; }
.sf-unit:focus-within { border-color: var(--brand); outline: 2px solid var(--brand); outline-offset: 2px; }
.sf-unit input { width: 120px; border: 0; padding: 9px 10px; font: inherit; font-size: 16px; color: var(--ink); background: transparent; outline: none; }
.sf-unit i { font-style: normal; padding: 0 12px; color: var(--ink-2); background: var(--bg-soft); align-self: stretch; display: flex; align-items: center; border-left: 1px solid var(--line); }
.sf-presets { display: flex; flex-wrap: wrap; gap: 8px; flex-basis: 100%; }
.sf-chip { font: inherit; font-size: 13px; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg-soft); color: var(--ink-2); cursor: pointer; }
.sf-chip:hover { border-color: var(--brand); color: var(--brand); }
.sf-chip[aria-pressed="true"] { background: var(--brand-tint); border-color: var(--brand); color: var(--brand); font-weight: 600; }
.sf-out { margin-top: 16px; }
.sf-rec { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; padding: 14px 16px; border-radius: 10px; background: var(--brand-tint); }
.sf-rec .sf-big { font-size: 26px; font-weight: 700; color: var(--brand); line-height: 1; }
.sf-rec p { margin: 0; font-size: 15px; color: var(--ink); }
.sf-sum { margin: 16px 0 0; font-size: 15px; color: var(--ink); min-height: 1.4em; }
.sf-out .sf-rec + .sf-act { margin: 10px 0 0; }
.sf-alt { color: var(--ink-2); font-size: 14px; }

.sf-bars { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 6px; }
.sf-bars li { display: grid; grid-template-columns: 52px 1fr 128px; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-2); }
.sf-bars li b { color: var(--ink); font-weight: 600; }
.sf-bars .bar { height: 10px; border-radius: 5px; background: var(--bg-soft); overflow: hidden; }
.sf-bars .bar span { display: block; height: 100%; background: #9fc9cf; border-radius: 5px; }
.sf-bars li.ok .bar span { background: var(--brand); }
.sf-bars li.full .bar span { background: #d9a441; }
.sf-bars li.over { color: #5b6a73; }
.sf-bars li.over b { color: #5b6a73; font-weight: 500; }
.sf-bars li.over .bar span { background: repeating-linear-gradient(135deg, #e7c9c4 0 6px, #f3e2df 6px 12px); }
.sf-bars li.pick b { color: var(--brand); }
.sf-note { margin: 14px 0 0; }
@media (max-width: 520px) {
  .size-finder { padding: 16px 14px; }
  .sf-unit input { width: 100%; }
  .sf-in label { flex: 1 1 140px; }
  .sf-act .btn { width: 100%; justify-content: center; }
  .sf-bars li { grid-template-columns: 44px 1fr 104px; }
}
@media print { .size-finder { display: none !important; } }

/* 产品目录 PDF 下载（11-08） */
.cat-dl { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin: 18px 0 0; font-size: 15px; }
.cat-dl a { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.cat-dl a svg { width: 18px; height: 18px; flex: none; }
.cat-dl span { font-size: 13px; color: var(--ink-2); }
@media print { .cat-dl { display: none; } }

/* 正文里的文字链接加下划线（WCAG 1.4.1：不能只靠颜色和周围文字区分）。按钮、卡片、导航这类带 class 的链接不受影响。11-08 审核 */
main :is(p, dd, td, li, .small) > a:not([class]),
main :is(p, dd, td, li) > a.cta-inline { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
main :is(p, dd, td, li, .small) > a:not([class]):hover { text-decoration-thickness: 2px; }

/* 英文设备页在 320px 宽溢出：网格子项默认 min-width:auto，被长单词和图注撑宽。11-08 审核 */
.core-line > * { min-width: 0; }
form.inq textarea#f-addr { min-height: 64px; }

/* 工厂 3D 动画视频（pages.mjs 的 factoryVideo）：封面 → 滚到附近播无声循环片段 → 点按钮换成完整片 */
.fvideo { margin: 0 0 28px; }
.fv-frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--bg-deep); box-shadow: var(--shadow); }
.fv-media { display: block; width: 100%; height: 100%; object-fit: cover; background: var(--bg-deep); }
/* 按钮放右下角：画面左下角是烧进视频的字幕 */
.fv-play {
  position: absolute; right: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 18px 10px 14px; border: 0; border-radius: 999px; cursor: pointer;
  background: rgba(14, 47, 61, .82); color: #fff; font: inherit; font-size: 15px; font-weight: 600; line-height: 1.25; text-align: left;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .25); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: background-color .2s;
}
.fv-play:hover { background: var(--brand-2); }
.fv-play:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.fv-play svg { flex: none; width: 30px; height: 30px; padding: 6px 5px 6px 7px; border-radius: 50%; background: var(--accent-btn); }
.fv-play small { display: block; font-size: 12px; font-weight: 400; opacity: .85; }
.fv-play[hidden] { display: none; }
.fvideo figcaption { margin-top: 10px; font-size: 13px; color: var(--ink-3); }
@media (max-width: 600px) {
  .fv-play { right: 10px; bottom: 10px; padding: 7px 14px 7px 9px; font-size: 14px; }
  .fv-play svg { width: 26px; height: 26px; }
}
@media (prefers-reduced-motion: reduce) { .fv-play { transition: none; } }
@media print { .fv-play { display: none; } }

/* 行业文章正文（pages.mjs 的 articlePage，内容在 articles.mjs）：一栏，行宽控制在易读范围 */
.article { max-width: 760px; font-size: 17px; line-height: 1.85; }
.article h2 { font-size: 22px; margin: 40px 0 12px; }
.article p, .article ul { margin: 0 0 16px; }
.article ul { padding-left: 1.3em; }
.article li { margin: 6px 0; }
.article .table-wrap { margin: 8px 0 8px; font-size: 15px; line-height: 1.6; }
.article .small { font-size: 13px; color: var(--ink-3); }
.article .link-row { margin-top: 28px; }
.art-meta { display: block; margin-top: 10px; font-size: 14px; color: var(--ink-3); }
.article-more { max-width: 760px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }
.article-more h2 { font-size: 18px; margin: 0 0 10px; }
.article-more ul { margin: 0 0 12px; padding-left: 1.2em; }
.article-more li { margin: 6px 0; }
.news-item h2 a { color: inherit; text-decoration: none; }
.news-item h2 a:hover { color: var(--brand); text-decoration: underline; }
@media (max-width: 600px) { .article { font-size: 16px; } .article h2 { font-size: 20px; margin-top: 32px; } }

/* 配色预览（胶囊页「颜色与印字」，11-09） */
.cpv { margin: 36px 0 8px; padding: 24px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.cpv-head h3 { margin: 0 0 6px; font-size: 20px; }
.cpv-head p { margin: 0 0 18px; }
.cpv-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.cpv-stage { border-radius: 12px; background: linear-gradient(180deg, #f7f7f5 0%, #ecebe7 100%); padding: 18px 14px 10px; }
.cpv-svg { display: block; width: 100%; height: auto; }
.cp-print { font-family: "Helvetica Neue", Arial, sans-serif; font-weight: 600; letter-spacing: .04em; }
.cpv-scale { margin: 6px 4px 0; color: var(--ink-3); }
.cp-sw { border: 0; margin: 0 0 14px; padding: 0; }
.cp-sw legend { padding: 0; margin-bottom: 8px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.cp-sw { display: flex; flex-wrap: wrap; gap: 8px 4px; }
.cp-sw label { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; width: 48px; font-size: 12px; color: var(--ink-3); cursor: pointer; }
.cp-sw input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.cp-sw i { display: block; width: 38px; height: 22px; border-radius: 11px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
.cp-sw input[value="clear"] + i { background: repeating-linear-gradient(45deg, #fff 0 4px, #e9e6dd 4px 8px) !important; }
.cp-sw input:checked + i { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--brand); }
.cp-sw input:checked ~ span { color: var(--brand); font-weight: 600; }
.cp-sw input:focus-visible + i { outline: 2px solid var(--brand); outline-offset: 4px; }
.cpv-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 16px; margin: 4px 0 12px; }
.cpv-f { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--ink-2); }
.cpv-f select, .cpv-f input { font: inherit; font-size: 16px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); }
.cpv-print { flex: 1 1 160px; }
.cpv-print input { width: 100%; box-sizing: border-box; }
.cpv-sum { margin: 0 0 12px; padding: 10px 12px; border-radius: 8px; background: var(--brand-tint); color: var(--ink); font-weight: 600; }
.cpv-note { margin: 12px 0 0; }
@media (max-width: 860px) {
  .cpv { padding: 18px 16px; }
  .cpv-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
}
@media print { .cpv { display: none; } }

/* 初稿（D(...)，11-09）：照同行写的、待公司核对的文字。读起来要像正文，只用浅蓝底和点线标出来，和黄色占位区分 */
.ph.dr { background: #e9f3fb; color: inherit; border-bottom: 1px dotted #3b7fb6; font-weight: inherit; }
.stats .ph.dr, footer.site .ph.dr { background: rgba(140, 195, 240, .16); color: inherit; border-color: #9cc8ee; }
/* 长邮箱（sales@centuryhengyuancapsules.com）在 320 宽手机上撑破联系页两栏：允许在任意位置断行 */
a[href^="mailto:"], .ph, .contact-box dd { overflow-wrap: anywhere; }
.contact-grid > * { min-width: 0; }
/* 首页数据条的背景（11-09）：横条很扁（约 10:1），原来用 16:10 的 pinbar 只看得到中间一截。
   改用单独渲的宽幅图 pinbar-wide（3d/render.py --scene pinbar_wide，约 5.5:1，一排 80 根模杆），照常 cover 铺满 */
section.stats { background-position: center 45%; }

/* 询价表单：同意隐私政策和信息出境的勾选框、Turnstile 验证框（11-11） */
form.inq label.consent { display: flex; gap: 10px; align-items: flex-start; margin: 16px 0 12px; font-size: 14px; font-weight: 400; line-height: 1.6; color: var(--ink-2); cursor: pointer; }
form.inq label.consent input { flex: none; width: 18px; height: 18px; margin: 2px 0 0; padding: 0; accent-color: var(--brand); }
.consent a { color: var(--brand); }
.cf-turnstile { margin: 0 0 14px; max-width: 400px; }
footer.site .legal a { color: inherit; }
/* 车间实拍（11-15）有横有竖：缩略图统一裁成 4:3，网格对齐；点开灯箱看的是完整原图 */
.gl-item[data-cat="photo"] img { aspect-ratio: 4 / 3; width: 100%; height: auto; object-fit: cover; }
/* 英文品牌名（现在是 CENTURY HENGYUAN）比原来的占位长：窄屏上收字号、藏掉品牌名前的小图标、语言按钮收窄，
   菜单和语言切换不再被挤出屏幕，品牌名也不被截断（11-25） */
@media (max-width: 420px) {
  header.site .logo { font-size: 15px; gap: 6px; }
  header.site .lang a { padding-left: 8px; padding-right: 8px; }
}
@media (max-width: 380px) {
  header.site .logo > svg, header.site .logo > img { display: none; }
  header.site .logo { font-size: 14px; letter-spacing: -.01em; }
}
/* CENTURY HENGYUAN 两个词：窄屏上允许折成两行（CENTURY / HENGYUAN），不再撑出屏幕（11-25） */
@media (max-width: 420px) {
  header.site .logo { white-space: normal; line-height: 1.1; min-width: 0; }
  header.site .logo > span { min-width: 0; }
}
