/* 商丘智检视觉科技 · 企业官网样式
 * 风格：科技 + 工业风，但保持简洁易懂（面向客户，不做视觉炫技）
 *   - 深色区块用于首屏/数据条/页脚/表头 —— 取工业设备面板与参数表的观感
 *   - 一律 2~3px 硬朗小圆角，不用大圆角、投影、毛玻璃、发光
 *   - 编号、参数、电路/interest 取值一律等宽字体，方便对照
 *   - 强调色：工业蓝 + 少量安全橙；橙色只用于必须给出的数字
 * 注意：class 名沿用旧版，改的是观感本身，不动页面结构。
 */
:root {
  /* 强调色：工业蓝 */
  --blue: #0b5cad;
  --blue-dark: #094a8c;
  --blue-soft: #eaf1fb;
  /* 石墨深色：用于 Hero / 数据条 / 页脚 / 表头 */
  --graphite: #101a24;
  --graphite-2: #18242f;
  --steel: #35434f;
  /* 安全橙：只用在不容错过的数字 */
  --orange: #d9541b;
  --orange-dark: #b8440f;
  /* 中性色 */
  --bg: #f2f4f6;
  --surface: #ffffff;
  --ink: #12171c;
  --text: #2f3740;
  --text-strong: #10161c;
  --muted: #7b8794;
  --line: #dfe4e9;
  --line-soft: #e9edf1;
  /* 兼容旧写法 */
  --navy: #101a24;
  --navy-2: #2f3740;
  /* 形状：硬朗小圆角 */
  --radius: 3px;
  --radius-sm: 2px;
  --radius-lg: 4px;
  --shadow-xs: none;
  --shadow: none;
  --shadow-md: none;
  --shadow-lg: none;
  /* 间距 */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px;
  --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px;
  --header-h: 58px;
  --mono: ui-monospace, "SFMono-Regular", "JetBrains Mono", Consolas, "Liberation Mono", Menlo, monospace;
  --ease: ease;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
               "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--text); background: var(--bg);
  font-size: 16px; line-height: 1.75;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(1000px, 92%); margin: 0 auto; }
h1, h2, h3, h4 { color: var(--text-strong); line-height: 1.45; font-weight: 600; letter-spacing: -0.01em; }
p { line-height: 1.8; }
ul { list-style: none; }

/* 键盘可达焦点样式 */
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 2px; }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 200; background: var(--blue); color: #fff; padding: 10px 18px; }
.skip-link:focus { left: 0; }

/* 待完善字段的视觉提示（替换后 class 一并去掉） */
.todo { color: #9aa3ac; }

/* ===== 顶部导航：白底 + 深色压条，干净但不软 ===== */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); box-shadow: inset 0 -2px 0 0 var(--graphite); }
.nav { display: flex; align-items: center; gap: var(--s-4); height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 600; font-size: 16.5px; color: var(--ink); letter-spacing: -0.01em; }
.brand small { display: none; }
.brand svg { flex: none; }
.nav-links { display: flex; gap: 2px; margin-left: auto; }
.nav-links a {
  padding: 7px 13px; border-radius: var(--radius-sm); font-size: 15px; color: var(--text);
  transition: background 0.15s, color 0.15s;
}
.nav-links a::after { display: none; }
.nav-links a:hover { background: #eef2f6; color: var(--blue); }
.nav-links a.active { color: var(--blue); font-weight: 600; background: var(--blue-soft); box-shadow: inset 2px 0 0 0 var(--blue); }
.nav-cta {
  padding: 7px 16px; border-radius: var(--radius-sm); background: var(--blue);
  color: #fff; font-size: 14.5px; transition: background 0.15s;
}
.nav-cta:hover { background: var(--blue-dark); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 10px; }
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--ink); margin: 4px 0; transition: transform 0.25s, opacity: 0.2s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ===== 页面主体 ===== */
main#main { background: var(--surface); }
section.block { padding: 46px 0; border-top: 1px solid var(--line-soft); }
section.block:first-of-type { border-top: 0; }
section.block.alt { background: #f7f9fa; }
section.block.tint { background: #f4f7fa; }

/* 章节标题：左侧工业竖条 */
.sec-head { margin-bottom: var(--s-6); padding-left: 14px; border-left: 3px solid var(--blue); }
.sec-head .kicker { display: none; }
.sec-head h2, .sec-head h1 { font-size: 23px; }
.sec-head p { margin-top: var(--s-3); color: var(--muted); font-size: 15px; max-width: 720px; }

/* ===== Hero：深色工业面板 + 极淡网格（图纸质感） ===== */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  background-color: var(--graphite);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 40px 40px;
  color: #d9e2ea;
  padding: 62px 0 54px;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, rgba(11, 92, 173, 0.34) 0%, rgba(11, 92, 173, 0) 62%);
}
.hero::after { display: none; }
.hero h1 { color: #fff; font-size: 31px; line-height: 1.42; font-weight: 600; letter-spacing: -0.015em; }
.hero h1 em { font-style: normal; color: #5fa8ee; }
.hero p.sub { margin-top: var(--s-4); font-size: 16px; color: #b9c6d2; max-width: 660px; }
.hero .badge {
  display: inline-block; padding: 4px 11px; border-radius: var(--radius-sm); margin-bottom: var(--s-5);
  background: rgba(95, 168, 238, 0.14); color: #8fc4f5; font-size: 13px;
  border: 1px solid rgba(95, 168, 238, 0.32); font-family: var(--mono);
}
.hero .badge i { display: inline-block; width: 5px; height: 5px; background: #5fa8ee; margin-right: 7px; vertical-align: middle; }
.hero .actions { margin-top: var(--s-6); display: flex; gap: var(--s-3); flex-wrap: wrap; }
.hero .btn-ghost { background: transparent; border-color: rgba(255, 255, 255, 0.34); color: #e4ecf3; }
.hero .btn-ghost:hover { border-color: #8fc4f5; color: #fff; background: rgba(255, 255, 255, 0.06); }

/* Hero 两栏：左文案 + 右能力参数面板（填满右侧空白，参数前置） */
.hero-split { display: grid; grid-template-columns: minmax(0, 1fr) 352px; gap: var(--s-8); align-items: center; }
.hero-panel { border: 1px solid rgba(255, 255, 255, 0.16); border-radius: var(--radius); background: rgba(255, 255, 255, 0.045); padding: var(--s-5); }
.hero-panel h4 { font-size: 12px; letter-spacing: 0.06em; color: #7f94a8; font-family: var(--mono); margin-bottom: var(--s-3); }
.hp-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.hp-row:last-child { border-bottom: 0; padding-bottom: 0; }
.hp-row span { font-size: 13px; color: #a4b6c6; }
.hp-row b { font-size: 15.5px; color: #fff; font-family: var(--mono); font-weight: 600; white-space: nowrap; }

.btn {
  display: inline-flex; align-items: center; gap: 7px; padding: 10px 22px; border-radius: var(--radius-sm);
  font-size: 15px; font-weight: 500; border: 1px solid transparent; cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.btn svg { flex: none; }
.btn:active { opacity: 0.85; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); }
.btn-ghost { background: #fff; border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn-navy { background: var(--graphite); color: #fff; }
.btn-navy:hover { background: var(--steel); }

/* ===== 数据条：深色，与 Hero 呼应 ===== */
.stats {
  background-color: var(--graphite-2); color: #cfdae4;
  padding: var(--s-6) 0;
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.06);
}
.stats::before { display: none; }
.stats .grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-5); }
.stat { text-align: center; }
.stat b { font-size: 27px; color: #fff; font-weight: 600; font-variant-numeric: tabular-nums; font-family: var(--mono); letter-spacing: -0.02em; }
.stat span { display: block; margin-top: 3px; font-size: 13.5px; color: #93a3b2; }
.stat + .stat { border-left: 1px solid rgba(255, 255, 255, 0.14); }

/* ===== 卡片：白卡 + 1px 边框，hover 上左侧强调竖条 ===== */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-4); }
.cards.three { grid-template-columns: repeat(3, 1fr); }
.cards.two { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: var(--s-5); transition: border-color 0.15s, background 0.15s;
}
.card::before { display: none; }
.card:hover { border-color: var(--blue); background: #fbfdff; }
.card .icon { color: var(--blue); margin-bottom: var(--s-4); display: flex; }
.card h3 { font-size: 16px; margin-bottom: var(--s-2); }
.card p { font-size: 14.5px; color: var(--muted); }

/* 检测项目录卡片：高信息密度，条目紧凑排列 */
.card.cat { padding: var(--s-4); }
.card.cat h3 { font-size: 14.5px; margin-bottom: var(--s-3); display: flex; align-items: center; gap: 8px; color: var(--ink); }
.card.cat h3::before { content: ""; width: 3px; height: 14px; background: var(--blue); border-radius: 2px; flex: none; }
.card.cat ul { display: flex; flex-direction: column; gap: 5px; }
.card.cat ul li { position: relative; padding-left: 12px; font-size: 13.5px; line-height: 1.55; color: var(--text); }
.card.cat ul li::before { content: ""; position: absolute; left: 0; top: 7px; width: 4px; height: 4px; border-radius: 50%; background: #a9b6c2; }
.card.cat .cat-note { margin-top: var(--s-3); padding-top: var(--s-3); border-top: 1px dashed var(--line); font-size: 12px; line-height: 1.6; color: var(--muted); }
.card ul { margin-top: var(--s-3); font-size: 13.5px; color: var(--muted); }
.card ul li { position: relative; padding-left: 15px; margin: 8px 0; }
.card ul li::before { content: ""; position: absolute; left: 0; top: 10px; width: 5px; height: 5px; background: var(--blue); }

/* 流程：编号用等宽，体现工序感 */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-4); counter-reset: step; }
.step {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: var(--s-5); transition: border-color 0.15s;
}
.step:hover { border-color: var(--blue); }
.step::before {
  counter-increment: step; content: "0" counter(step);
  display: inline-block; font-family: var(--mono);
  font-size: 12.5px; font-weight: 600; color: var(--blue); margin-bottom: var(--s-2);
  padding: 1px 6px; background: var(--blue-soft); border-radius: var(--radius-sm);
}
.step h3 { font-size: 15.5px; margin-bottom: var(--s-2); }
.step p { font-size: 13.5px; color: var(--muted); }
.steps-wrap::after { display: none; }

/* 案例卡 */
.case-card { padding: 0; overflow: hidden; }
.case-card .cover { background: #f4f6f8 !important; border-bottom: 1px solid var(--line); }
.case-card .cover::after { display: none; }
.case-card .body { padding: var(--s-5); }
.tag {
  display: inline-block; font-size: 12px; padding: 2px 9px; border-radius: var(--radius-sm);
  background: var(--blue-soft); color: var(--blue); margin-bottom: var(--s-3);
  font-family: var(--mono);
}
.metric { margin-top: var(--s-4); padding-top: var(--s-3); border-top: 1px solid var(--line-soft); font-size: 13.5px; color: var(--muted); }
.metric b { color: var(--orange); font-size: 16px; font-weight: 600; font-family: var(--mono); }

/* CTA：深色条 + 网格，与首屏成套 */
.cta-band {
  background-color: var(--graphite); color: #cfdae4; padding: var(--s-7) 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
}
.cta-band::after { display: none; }
.cta-band .inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s-5); flex-wrap: wrap; }
.cta-band h2 { font-size: 21px; color: #fff; }
.cta-band p { color: #9fadb9; margin-top: var(--s-2); font-size: 15px; }
.cta-band .btn-ghost { background: transparent; border-color: rgba(255, 255, 255, 0.34); color: #e4ecf3; }

/* ===== 页脚：深色 ===== */
.site-footer { background: var(--graphite); color: #8d9aa7; border-top: 3px solid var(--blue); padding: var(--s-7) 0 0; font-size: 14px; }
.footer-brand-row { display: flex; align-items: center; gap: 8px; margin-bottom: var(--s-3); }
.footer-brand-row b { color: #fff; font-size: 15px; font-weight: 600; }
.site-footer > .container > p, .site-footer p { color: #8d9aa7; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: var(--s-6); padding-bottom: var(--s-6); }
.site-footer h4 { color: #fff; font-size: 14px; margin-bottom: var(--s-3); font-weight: 600; }
.site-footer li { margin: 8px 0; }
.site-footer li a { color: #a9b6c2; }
.site-footer li a:hover { color: #8fc4f5; }
.contact-line { display: flex; gap: 9px; align-items: flex-start; margin-bottom: var(--s-3); }
.contact-line svg { flex: none; margin-top: 4px; color: #6f7d8a; }
.contact-line b { display: block; color: #fff; font-size: 13.5px; font-weight: 600; }
.contact-line span { font-size: 13.5px; color: #a9b6c2; }
.social-row { display: flex; gap: 8px; margin-top: var(--s-3); }
.social-row a {
  width: 32px; height: 32px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.18); color: #a9b6c2; transition: border-color 0.15s, color 0.15s;
}
.social-row a:hover { border-color: #8fc4f5; color: #8fc4f5; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.12); padding: var(--s-4) 0; font-size: 13px; color: #7d8a97; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* 联系页 */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: var(--s-5); align-items: start; }
.info-card, .form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s-6); }
.info-item { display: flex; gap: var(--s-3); margin: var(--s-4) 0; align-items: flex-start; }
.info-item .ic { flex: none; color: var(--blue); margin-top: 2px; }
.info-item b { display: block; color: var(--ink); font-size: 14px; font-weight: 600; }
.info-item span { font-size: 14px; color: var(--muted); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); }
.field { margin-bottom: var(--s-4); }
.field label { display: block; font-size: 13.5px; color: var(--ink); margin-bottom: 6px; }
.field label i { color: var(--orange); font-style: normal; }
.field input, .field textarea, .field select {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-size: 15px; font-family: inherit; background: #fff; color: var(--text); outline: none;
  transition: border-color 0.15s;
}
.field input::placeholder, .field textarea::placeholder { color: #b0b8c0; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--blue); }
.field input[aria-invalid="true"] { border-color: #cc4438; }
.field-error { display: none; color: #c0392b; font-size: 12.5px; margin-top: 5px; }
.field-error.show { display: block; }
/* 蜜罐字段：移出视口而不是 display:none —— 后者会被部分自动化脚本识别并跳过 */
.hp-field { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 12.5px; color: var(--muted); margin-top: var(--s-3); display: flex; gap: 6px; align-items: flex-start; }
.form-note svg { flex: none; margin-top: 3px; }
.btn-block { width: 100%; justify-content: center; }
.btn[disabled] { opacity: 0.6; cursor: not-allowed; }
.spinner { width: 14px; height: 14px; border: 2px solid rgba(255,255,255,0.45); border-top-color: #fff; border-radius: 50%; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(12px);
  background: var(--graphite); color: #fff; padding: 11px 20px; border-radius: var(--radius);
  font-size: 14.5px; opacity: 0; pointer-events: none; transition: opacity 0.25s, transform 0.25s;
  z-index: 99; max-width: 88vw; text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.error { background: #9c3328; }
.toast.success { background: #14694a; }

/* 返回顶部 */
.to-top {
  position: fixed; right: 18px; bottom: 24px; width: 38px; height: 38px; border-radius: var(--radius-sm); z-index: 60;
  background: #fff; color: var(--muted); border: 1px solid var(--line); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: translateY(10px); pointer-events: none; transition: opacity 0.25s, transform 0.25s;
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { border-color: var(--blue); color: var(--blue); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* 关于页时间线：节点改方点，更工业 */
.timeline { margin-left: 4px; padding-left: 22px; border-left: 1px solid var(--line); }
.tl-item { position: relative; padding-bottom: var(--s-5); }
.tl-item::before { content: ""; position: absolute; left: -27px; top: 8px; width: 9px; height: 9px; background: var(--blue); border: 2px solid #fff; }
.tl-item b { color: var(--ink); font-size: 15.5px; font-family: var(--mono); letter-spacing: -0.01em; }
.tl-item p { font-size: 14px; color: var(--muted); margin-top: 4px; }

/* 资质 */
.certs { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-4); }
.cert { border: 1px dashed var(--line); border-radius: var(--radius); padding: var(--s-4); text-align: center; color: var(--muted); font-size: 13.5px; }
.cert b { display: block; color: var(--ink); font-size: 14.5px; margin-bottom: 4px; }

/* 内页首屏：结构相同、高度收紧，保证六页观感一致 */
.hero.compact { padding: 30px 0 30px; }
.hero.compact h1 { font-size: 26px; }
.hero.compact .breadcrumb { padding-top: 0; margin-bottom: var(--s-2); color: #8fa0ae; }
.hero.compact .breadcrumb a { color: #a9bccd; }
.hero.compact .breadcrumb a:hover { color: #fff; }
.hero.compact .breadcrumb span { opacity: 0.65; }
.hero.compact p.sub { margin-top: var(--s-3); font-size: 15.5px; }

/* 面包屑（非首屏位置的默认样式） */
.breadcrumb { font-size: 13px; color: var(--muted); padding: var(--s-4) 0 0; font-family: var(--mono); }
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb span { opacity: 0.5; margin: 0 5px; }

/* ---------- 内容组件 ---------- */

/* 标签 chips：方形线框 */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; font-size: 13.5px; color: var(--text);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 5px 11px; transition: border-color 0.15s, color 0.15s;
}
.chip:hover { border-color: var(--blue); color: var(--blue); }
.chip.strong { border-color: #a9cbe9; background: var(--blue-soft); color: var(--blue); }

/* FAQ 手风琴 */
.faq { display: flex; flex-direction: column; gap: 8px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.faq-item.open { border-color: #a9cbe9; }
.faq-q {
  width: 100%; display: flex; align-items: flex-start; gap: 12px; text-align: left;
  background: none; border: 0; cursor: pointer; font: inherit; color: var(--ink);
  font-size: 15.5px; line-height: 1.6; padding: var(--s-4) var(--s-5);
}
.faq-q .idx { flex: none; color: var(--muted); font-size: 14px; font-family: var(--mono); }
.faq-item.open .faq-q .idx { color: var(--blue); }
.faq-q .plus { flex: none; margin-left: auto; margin-top: 5px; color: var(--muted); transition: transform 0.2s; }
.faq-item.open .faq-q .plus { transform: rotate(45deg); color: var(--blue); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.25s; }
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a > div { overflow: hidden; }
.faq-a p { padding: 0 var(--s-5) var(--s-4) calc(var(--s-5) + 24px); color: var(--muted); font-size: 14.5px; line-height: 1.85; }
.faq-a p + p { padding-top: 0; }
.faq-a strong { color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .faq-a, .faq-q .plus { transition: none; } }

/* 表格：深色表头，参数表质感 */
.compare { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.compare table { width: 100%; border-collapse: collapse; min-width: 560px; font-size: 14.5px; }
.compare th, .compare td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.compare thead th { background: var(--graphite); color: #e7eef4; font-weight: 600; font-size: 14px; white-space: nowrap; border-bottom: 0; }
.compare tbody th { font-weight: 600; color: var(--ink); width: 22%; background: #f7f9fa; }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.compare td.win { color: var(--blue); }
.compare td i.dot { font-style: normal; margin-right: 4px; }

/* 场景表（20 场景用） */
.scene-table { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.scene-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.scene-table table { width: 100%; border-collapse: collapse; min-width: 760px; font-size: 14px; }
.scene-table th, .scene-table td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.scene-table thead th { background: var(--graphite); color: #e7eef4; font-weight: 600; font-size: 13.5px; white-space: nowrap; border-bottom: 0; }
.scene-table tbody tr:last-child td { border-bottom: 0; }
.scene-table tr:hover td { background: #f5f8fb; }
.scene-table td.no { color: var(--muted); font-variant-numeric: tabular-nums; font-family: var(--mono); width: 44px; }
.scene-table td.name { font-weight: 600; color: var(--ink); }
.scene-table td.place { color: var(--muted); }
.scene-table td.task { color: var(--text); }
.pill { display: inline-block; font-size: 12px; padding: 1px 8px; border-radius: var(--radius-sm); white-space: nowrap; font-family: var(--mono); }
.pill.ok { background: #e6f2ea; color: #14694a; }
.pill.warn { background: #fbf0e3; color: var(--orange-dark); }
.pill.no { background: #fbeae8; color: #9c3328; }
.pill.plain { background: var(--line-soft); color: var(--muted); }

/* 梯队筛选 tab */
.tier-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: var(--s-4); }
.tier-tab {
  padding: 6px 14px; border: 1px solid var(--line); background: #fff; border-radius: var(--radius-sm);
  font-size: 14px; color: var(--text); cursor: pointer; font-family: inherit;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.tier-tab:hover { border-color: var(--blue); color: var(--blue); }
.tier-tab.active { background: var(--blue-soft); border-color: #a9cbe9; color: var(--blue); }
.tier-meta { font-size: 13.5px; color: var(--muted); margin-bottom: var(--s-3); font-family: var(--mono); }
.tier-meta b { color: var(--ink); font-weight: 600; }

/* 场景分类标题 */
.group-title { display: flex; align-items: center; gap: 10px; margin: var(--s-7) 0 var(--s-4); }
.group-title:first-child { margin-top: 0; }
.group-title h3 { font-size: 17px; }
.group-title .note { font-size: 13px; color: var(--muted); }
.group-title .line { flex: 1; height: 1px; background: var(--line-soft); }

/* 场景做法卡（S1–S6 摘要）：头部深色，像工位卡片 */
.sop { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.sop + .sop { margin-top: 12px; }
.sop-head { display: flex; align-items: center; gap: 10px; padding: 11px 16px; background: #f4f7fa; border-bottom: 1px solid var(--line-soft); flex-wrap: wrap; border-left: 3px solid var(--blue); }
.sop-head b { font-size: 15px; color: var(--ink); }
.sop-head .code { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; font-family: var(--mono); }
.sop-body { padding: 14px 16px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px var(--s-5); }
.sop-body .row { font-size: 14px; color: var(--text); }
.sop-body .row em { font-style: normal; color: var(--muted); display: block; font-size: 12.5px; margin-bottom: 1px; }
.sop-body .full { grid-column: 1 / -1; }

/* 规格参数表 */
.spec { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.spec-row { display: grid; grid-template-columns: 150px 1fr; border-bottom: 1px solid var(--line-soft); }
.spec-row:last-child { border-bottom: 0; }
.spec-row dt { background: #f4f7fa; padding: 11px 16px; color: var(--ink); font-size: 13.5px; border-right: 1px solid var(--line-soft); }
.spec-row dd { padding: 11px 16px; margin: 0; color: var(--text); font-size: 14px; line-height: 1.75; }
.spec-row dd b { color: var(--ink); font-family: var(--mono); font-weight: 600; }

/* 方案包 */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4); align-items: start; }
.plan { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s-5); }
.plan.featured { border-color: var(--blue); border-top: 3px solid var(--blue); }
.plan h3 { font-size: 17px; margin-bottom: 4px; }
.plan .plan-desc { font-size: 13.5px; color: var(--muted); line-height: 1.7; }
.plan ul { margin: var(--s-4) 0; display: flex; flex-direction: column; gap: 8px; }
.plan ul li { position: relative; padding-left: 18px; font-size: 14px; color: var(--text); line-height: 1.7; }
.plan ul li::before { content: ""; position: absolute; left: 0; top: 8px; width: 8px; height: 5px; border-left: 1.5px solid var(--blue); border-bottom: 1.5px solid var(--blue); transform: rotate(-45deg); }
.plan .plan-foot { font-size: 13px; color: var(--muted); border-top: 1px solid var(--line-soft); padding-top: var(--s-3); font-family: var(--mono); }
.plan .plan-foot b { color: var(--orange); }

/* 正文内小节标题与表下注解 */
.sub-h { font-size: 15px; color: var(--ink); margin: var(--s-6) 0 var(--s-3); padding-left: 10px; border-left: 3px solid var(--orange); }
.table-note { margin-top: var(--s-3); font-size: 13px; color: var(--muted); line-height: 1.75; }

/* 方案库 · 方案编号头 */
.sol-head { display: grid; grid-template-columns: auto 1fr auto; gap: var(--s-4); align-items: center; padding-bottom: var(--s-4); margin-bottom: var(--s-5); border-bottom: 2px solid var(--graphite); }
.sol-code { font-family: var(--mono); font-size: 12.5px; font-weight: 700; color: #fff; background: var(--graphite); padding: 6px 11px; border-radius: var(--radius-sm); letter-spacing: 0.03em; white-space: nowrap; }
.sol-title h2 { font-size: 22px; margin: 0 0 5px; }
.sol-title p { font-size: 13.5px; color: var(--muted); margin: 0; line-height: 1.6; }
.sol-tags { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.scene-table td.rate { font-family: var(--mono); color: var(--blue); font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* Hero 内的统计条（深色底，白色数字） */
.stats-wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-5); margin-top: var(--s-6); padding-top: var(--s-5); border-top: 1px solid rgba(255, 255, 255, 0.14); }
.stats-wrap .stat { text-align: left; }
.stats-wrap .stat b { color: #fff; }
.stats-wrap .stat span { color: #93a3b2; }
.stats-wrap .stat + .stat { border-left: 1px solid rgba(255, 255, 255, 0.14); padding-left: var(--s-5); }

/* 案例详情结构 */
.case-detail { display: grid; grid-template-columns: 1fr 320px; gap: var(--s-6); align-items: start; }
.case-body h3 { font-size: 19px; margin-bottom: var(--s-3); }
.case-body h4 { font-size: 14.5px; margin: var(--s-5) 0 6px; color: var(--ink); padding-left: 10px; border-left: 3px solid var(--blue); }
.case-body p { color: var(--text); line-height: 1.85; font-size: 15px; }
.case-body ul { margin: 0; }
.case-body ul li { position: relative; padding-left: 16px; color: var(--text); line-height: 1.8; font-size: 14.5px; }
.case-body ul li::before { content: ""; position: absolute; left: 2px; top: 10px; width: 5px; height: 5px; background: var(--blue); }
.case-side { display: flex; flex-direction: column; gap: 12px; }
.case-side .box { background: #f7f9fa; border: 1px solid var(--line-soft); border-radius: var(--radius); padding: var(--s-4); }
.case-side .box h5 { font-size: 13px; color: var(--muted); margin-bottom: var(--s-3); font-family: var(--mono); }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--line-soft); font-size: 13.5px; }
.kv:last-child { border-bottom: 0; }
.kv span { color: var(--muted); flex: none; }
.kv b { color: var(--ink); font-weight: 600; text-align: right; font-family: var(--mono); }
.result-list { display: flex; flex-direction: column; gap: 10px; }
.result-item { display: flex; align-items: baseline; gap: 8px; }
.result-item b { font-size: 20px; color: var(--blue); font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; font-family: var(--mono); }
.result-item span { font-size: 13px; color: var(--muted); }
.result-item em { font-style: normal; font-size: 12.5px; color: var(--muted); display: block; margin-top: 2px; }

/* 提示框 */
.note-box { display: flex; gap: 10px; background: #f7f9fa; border-left: 3px solid var(--blue); border-radius: 0 var(--radius) var(--radius) 0; padding: var(--s-4); font-size: 13.5px; color: var(--text); line-height: 1.8; }
.note-box svg { flex: none; margin-top: 3px; color: var(--blue); }
.note-box b { color: var(--ink); }
.note-box.plain { border-left-color: var(--line); color: var(--muted); }
.note-box.plain svg { color: var(--muted); }

/* 引言 */
.quote { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s-5); }
.quote p { color: var(--text); font-size: 15px; line-height: 1.85; }
.quote footer { margin-top: var(--s-3); font-size: 13.5px; color: var(--muted); }
.quote footer b { color: var(--ink); display: block; }

/* 代码块（命令/参数复现用）：深色终端观感 */
pre.code {
  background: var(--graphite); border: 1px solid var(--steel); border-radius: var(--radius);
  padding: var(--s-4); overflow-x: auto; font-size: 13px; line-height: 1.75; color: #cfe0ee;
  font-family: var(--mono);
}

/* 响应式 */
@media (max-width: 980px) {
  .cards, .certs { grid-template-columns: repeat(2, 1fr); }
  .cards.three { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .stats .grid { grid-template-columns: repeat(2, 1fr); row-gap: var(--s-4); }
  .stat:nth-child(2) { border-left: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--s-5); }
  .contact-grid { grid-template-columns: 1fr; }
  .case-detail { grid-template-columns: 1fr; }
  .nav-toggle { display: block; margin-left: auto; }
  .nav-cta { display: none; }
  .nav-links {
    position: absolute; top: var(--header-h); left: 0; right: 0; margin-left: 0; background: #fff; flex-direction: column;
    gap: 0; padding: var(--s-2) 4% var(--s-4); border-bottom: 1px solid var(--line);
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
    transform: translateY(-6px); opacity: 0; visibility: hidden;
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  }
  .nav-links.open { opacity: 1; visibility: visible; transform: none; }
  .nav-links li a { display: block; padding: 12px 10px; font-size: 15.5px; border-bottom: 1px solid var(--line-soft); border-radius: 0; box-shadow: none; }
  .nav-links li:last-child a { border-bottom: 0; }
  .nav-links a.active { background: var(--blue-soft); }
  .plans { grid-template-columns: 1fr; max-width: 520px; }
  .sop-body { grid-template-columns: 1fr; }
  .sol-head { grid-template-columns: auto 1fr; row-gap: var(--s-3); }
  .sol-tags { grid-column: 1 / -1; justify-content: flex-start; }
  .hero-split { grid-template-columns: 1fr; gap: var(--s-6); }
  .stats-wrap { grid-template-columns: repeat(2, 1fr); row-gap: var(--s-4); }
  .stats-wrap .stat:nth-child(3) { border-left: 0; padding-left: 0; }
}
@media (max-width: 620px) {
  .spec-row { grid-template-columns: 1fr; }
  .spec-row dt { padding-bottom: 0; border-right: 0; }
  .spec-row dd { padding-top: 4px; }
  .compare table, .scene-table table { min-width: 520px; font-size: 13.5px; }
  .compare th, .compare td, .scene-table th, .scene-table td { padding: 10px 12px; }
  .cards, .cards.three, .cards.two, .steps, .certs, .form-row, .stats .grid { grid-template-columns: 1fr; }
  .stat + .stat { border-left: 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { justify-content: flex-start; }
  .hero { padding: 42px 0 38px; }
  .hero h1 { font-size: 25px; }
  .hero .actions .btn { width: 100%; justify-content: center; }
  section.block { padding: 36px 0; }
  .info-card, .form-card { padding: var(--s-5); }
  body { font-size: 15.5px; }
}

/* 打印（客户常把网页/方案打印出来内部传阅）：深色一律转白底省墨 */
@media print {
  .site-header, .to-top, .toast, .cta-band .btn, .hero .actions, .nav-toggle, .social-row { display: none !important; }
  body { background: #fff; color: #000; font-size: 12pt; }
  main#main { background: #fff; }
  section.block { padding: 12pt 0; border-top: 1px solid #ddd; }
  .hero, .stats, .cta-band, .site-footer { background: #fff !important; color: #000 !important; background-image: none !important; }
  .hero h1, .cta-band h2, .site-footer h4, .footer-brand-row b, .contact-line b { color: #000 !important; }
  .hero p.sub, .cta-band p, .site-footer, .site-footer li a, .contact-line span, .stat span, .tier-meta { color: #333 !important; }
  .compare thead th, .scene-table thead th { background: #eee !important; color: #000 !important; }
  pre.code { background: #f4f4f4 !important; color: #000 !important; }
  .hero { padding: 18pt 0; border-bottom: 1px solid #ddd; }
  .card, .step, .info-card, .form-card, .plan, .faq-item, .quote, .compare, .spec, .scene-table, .sop { border: 1px solid #ccc; break-inside: avoid; }
  .sec-head, .sop-head, .case-body h4 { border-left: 2px solid #666 !important; }
  .faq-a { grid-template-rows: 1fr !important; }
  .compare table, .scene-table table { min-width: 0; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #666; }
}
