/* ==========================================================================
   成都工沃科技官网 — 全站样式
   设计稿：GOWO Website.dc.html（hifi），色值/字号/间距按设计稿还原
   ========================================================================== */

/* --------------------------------------------------------------------------
   Design tokens
   -------------------------------------------------------------------------- */
:root {
  /* 品牌 */
  --brand: #1D6FE8;
  --brand-dark: #0A4FB0;
  --accent: #FFB020;
  --hero-sub: #8FB6F0;

  /* 深底 */
  --dark: #0A121C;
  --dark-panel: #0F1B29;
  --footer-bg: #070E16;

  /* 浅底 */
  --gray-bg: #F4F5F7;
  --card-bg: #FAFBFC;
  --card-hover: #F7F9FC;

  /* 文字（浅底） */
  --ink: #0F1720;
  --ink-2: #3E4A57;
  --ink-3: #4A5563;
  --ink-4: #5A6673;
  --muted: #8A97A5;
  --muted-2: #7C8695;

  /* 文字（深底） */
  --on-dark: #A6B3C2;
  --on-dark-2: #9BA9BA;
  --on-dark-3: #98A5B4;
  --on-dark-4: #8494A6;
  --on-dark-5: #7C8CA0;
  --on-dark-6: #6C7A8B;
  --on-dark-7: #4E5B6B;

  /* 描边 */
  --line: #E4E7EB;
  --line-2: #DDE1E6;
  --line-input: #D5DAE0;
  --line-dark-08: rgba(255, 255, 255, 0.08);
  --line-dark-10: rgba(255, 255, 255, 0.10);
  --line-dark-12: rgba(255, 255, 255, 0.12);
  --line-dark-14: rgba(255, 255, 255, 0.14);

  /* 版式
     IBM Plex Sans / Mono 自托管（assets/fonts + css/fonts.css），不依赖 Google Fonts。
     拉丁字形由 Plex 接管，中文落到后面的 Noto Sans SC / PingFang SC / 雅黑——
     Plex 没有汉字，浏览器会自动往后找，这个顺序是设计稿本来的写法。
     Noto Sans SC 目前未自托管（全量分片约 24MB），见 README「字体」。 */
  --font-sans: "IBM Plex Sans", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB",
               "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, "SF Mono",
               Menlo, Consolas, monospace;

  /* 布局 */
  --container: 1280px;
  --gutter: 40px;
  --header-h: 74px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--ink);
  background: var(--gray-bg);
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main { flex: 1; }

h1, h2, h3, p { margin: 0; }

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }

img { max-width: 100%; display: block; }

input, textarea, button, select { font-family: inherit; }

::selection { background: var(--brand); color: #fff; }

/* --------------------------------------------------------------------------
   Layout primitives
   -------------------------------------------------------------------------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  width: 100%;
}

/* 满铺技术网格背景，用于所有深色区块 */
.grid-bg { position: relative; overflow: hidden; }
.grid-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  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: 64px 64px;
  pointer-events: none;
}
.grid-bg > .container { position: relative; }

/* 段头：Mono 小标 + H2 */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 3px;
  color: var(--brand);
  display: block;
}
.eyebrow--accent { color: var(--accent); }

.section-title {
  font-weight: 700;
  font-size: 38px;
  line-height: 1.3;
  letter-spacing: -0.3px;
  margin: 14px 0 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  margin-bottom: 52px;
}
.section-head p {
  font-size: 15px;
  line-height: 1.85;
  color: var(--ink-4);
  max-width: 420px;
  text-wrap: pretty;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 52px;
  padding: 0 30px;
  font-size: 15px;
  font-weight: 600;
  border: 0;
  border-radius: 0;
  cursor: pointer;
  transition: background .18s, border-color .18s, color .18s;
  white-space: nowrap;
}
.btn .arrow { font-family: var(--font-mono); }

.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }

/* 深底上的白描边按钮 */
.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.26);
  color: #fff;
  font-weight: 500;
  background: transparent;
}
.btn-ghost:hover { border-color: #fff; color: #fff; }

/* 浅底上的深色描边按钮，hover 反色 */
.btn-outline {
  height: 46px;
  padding: 0 24px;
  gap: 10px;
  border: 1px solid var(--ink);
  color: var(--ink);
  font-size: 14.5px;
  background: transparent;
}
.btn-outline:hover { background: var(--ink); color: #fff; }

/* CTA 色带上的按钮 */
.btn-on-brand {
  height: 54px;
  padding: 0 32px;
  background: #fff;
  color: var(--brand);
  font-weight: 700;
}
.btn-on-brand:hover { background: #fff; color: var(--brand-dark); }

.btn-on-brand-outline {
  height: 54px;
  padding: 0 32px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  color: #fff;
  font-family: var(--font-mono);
  font-weight: 600;
}
.btn-on-brand-outline:hover { border-color: #fff; color: #fff; }

.btn-sm { height: 38px; padding: 0 20px; font-size: 13.5px; letter-spacing: 0.3px; gap: 8px; }

/* --------------------------------------------------------------------------
   线框示意图
   用机制图代替实拍：客户现场涉密，通用素材图又会暗示「这是我们的项目」。
   图本身是 SVG 文件，各自带配色，深色版用于深底、浅色版用于白底。
   -------------------------------------------------------------------------- */
.diagram {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 26px;
  object-fit: contain;
}
.diagram--tight { padding: 16px; }

/* --------------------------------------------------------------------------
   图片占位框（还没有对应示意图的位置）
   -------------------------------------------------------------------------- */
.img-slot {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 16px;
  overflow: hidden;
}
.img-slot::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px dashed rgba(255, 255, 255, 0.16);
}
.img-slot::after {
  content: attr(data-hint);
  font-size: 12.5px;
  line-height: 1.7;
  letter-spacing: 0.5px;
  color: var(--on-dark-5);
  text-align: center;
  max-width: 80%;
}
.img-slot--light::before { border-color: rgba(15, 23, 32, 0.14); }
.img-slot--light::after { color: var(--muted); }

.figure-frame {
  position: relative;
  border: 1px solid var(--line-dark-14);
  background: var(--dark-panel);
}
.figure-frame--light { border-color: var(--line); }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 18, 28, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-dark-10);
}
.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 40px;
}

.logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.logo-mark { width: 36px; height: 36px; display: block; flex-shrink: 0; }
.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo-cn { font-weight: 700; font-size: 16px; color: #fff; letter-spacing: 1px; }
.logo-en {
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--on-dark-5);
  letter-spacing: 2.2px;
}

.site-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-link {
  font-size: 14.5px;
  letter-spacing: 0.3px;
  padding: 0 16px;
  height: var(--header-h);
  display: flex;
  align-items: center;
  color: var(--on-dark-2);
  font-weight: 400;
  transition: color .18s;
}
.nav-link:hover { color: #fff; }
.nav-link.is-current {
  color: #fff;
  font-weight: 600;
  box-shadow: inset 0 -2px 0 var(--brand);
}

.header-aside { display: flex; align-items: center; gap: 18px; flex-shrink: 0; }

.header-phone {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  text-align: right;
}
.header-phone-label {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--on-dark-5);
  letter-spacing: 1.6px;
}
.header-phone a {
  font-family: var(--font-mono);
  font-size: 14px;
  color: #fff;
  font-weight: 500;
  letter-spacing: 0.4px;
}
.header-phone a:hover { color: var(--hero-sub); }

/* 语言开关：中文版先不接英文，位置与样式保留，加回时去掉 hidden 即可 */
.lang-switch {
  display: flex;
  align-items: center;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1px;
}
.lang-switch span { padding: 0 10px; height: 30px; display: grid; place-items: center; }
.lang-switch .is-on { background: #fff; color: var(--dark); }
.lang-switch .is-off { color: var(--on-dark-2); }

/* 移动端抽屉开关 */
.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  margin-left: auto;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.22);
  cursor: pointer;
  padding: 0;
  position: relative;
}
.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
  content: "";
  position: absolute;
  left: 11px;
  width: 16px;
  height: 1.5px;
  background: #fff;
  transition: transform .2s, opacity .2s;
}
.nav-toggle::before { top: 13px; }
.nav-toggle span { top: 19px; }
.nav-toggle::after { top: 25px; }
.nav-toggle[aria-expanded="true"]::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span { opacity: 0; }
.nav-toggle[aria-expanded="true"]::after { transform: translateY(-6px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   Hero（首页）
   -------------------------------------------------------------------------- */
.hero {
  background: var(--dark);
  color: #fff;
  border-bottom: 1px solid var(--line-dark-08);
}
.hero .container {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 72px;
  align-items: center;
  min-height: 620px;
}
.hero-copy { padding: 96px 0; animation: gwRise .6s ease both; }

.kicker { display: flex; align-items: center; gap: 12px; margin-bottom: 26px; }
.kicker::before { content: ""; width: 32px; height: 2px; background: var(--accent); }
.kicker span {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 3px;
  color: var(--accent);
  text-transform: uppercase;
}

.hero-title {
  font-size: 56px;
  line-height: 1.16;
  letter-spacing: -0.5px;
  font-weight: 900;
  margin: 0 0 8px;
  text-wrap: pretty;
}
.hero-title-2 {
  font-size: 56px;
  line-height: 1.16;
  letter-spacing: -0.5px;
  font-weight: 300;
  color: var(--hero-sub);
  text-wrap: pretty;
}
.hero-desc {
  font-size: 16.5px;
  line-height: 1.85;
  color: var(--on-dark);
  max-width: 560px;
  margin: 28px 0 40px;
  text-wrap: pretty;
}
.hero-actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }

.hero-figure { position: relative; height: 460px; border: 1px solid var(--line-dark-14); }
.hero-figure .corner {
  position: absolute;
  width: 14px;
  height: 14px;
  pointer-events: none;
}
.hero-figure .corner-tl {
  top: -1px; left: -1px;
  border-top: 2px solid var(--accent);
  border-left: 2px solid var(--accent);
}
.hero-figure .corner-br {
  bottom: -1px; right: -1px;
  border-bottom: 2px solid var(--accent);
  border-right: 2px solid var(--accent);
}
.hero-figure .scanline {
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(29, 111, 232, 0.9), transparent);
  animation: gwScan 6s linear infinite;
  pointer-events: none;
}

@keyframes gwRise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
@keyframes gwScan {
  from { transform: translateY(-100%); }
  to { transform: translateY(900%); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-copy { animation: none; }
  .hero-figure .scanline { animation: none; opacity: .5; }
  html { scroll-behavior: auto; }
}

/* --------------------------------------------------------------------------
   数据条
   -------------------------------------------------------------------------- */
.stats-band {
  background: var(--dark-panel);
  border-bottom: 1px solid var(--line-dark-08);
}
.stats-band .container { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 38px 32px 38px 0; border-right: 1px solid var(--line-dark-08); }
.stat:last-child { border-right: 0; }
.stat-value {
  font-family: var(--font-mono);
  font-size: 40px;
  font-weight: 500;
  color: #fff;
  letter-spacing: -1px;
}
.stat-label {
  font-size: 13.5px;
  color: var(--on-dark-4);
  margin-top: 8px;
  letter-spacing: 0.5px;
}

/* --------------------------------------------------------------------------
   通用区块
   -------------------------------------------------------------------------- */
.section { padding: 104px 0; }
.section--white { background: #fff; }
.section--gray { background: var(--gray-bg); border-top: 1px solid var(--line); }
.section--dark { background: var(--dark); padding: 80px 0; }
.section--bordered { border-top: 1px solid var(--line); }

/* 1px gap 分隔线式网格 */
.hairline-grid {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.hairline-grid--dark {
  background: var(--line-dark-10);
  border-color: var(--line-dark-10);
}

/* --------------------------------------------------------------------------
   产品卡（首页）
   -------------------------------------------------------------------------- */
.product-grid { grid-template-columns: repeat(4, 1fr); }
.product-card {
  background: #fff;
  padding: 36px 30px 40px;
  transition: background .18s;
  color: inherit;
  display: block;
}
.product-card:hover { background: var(--card-hover); color: inherit; }
.product-code {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--brand);
  letter-spacing: 1.6px;
}
/* 带状态标的卡和不带的，标题要落在同一条线上 */
.product-code, .product-code-row { display: flex; align-items: center; min-height: 24px; }
.product-card h3 { font-weight: 700; font-size: 19px; margin: 16px 0 12px; line-height: 1.45; }
.product-card > p {
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--ink-4);
  margin-bottom: 22px;
  text-wrap: pretty;
}
.spec-list { display: flex; flex-direction: column; gap: 8px; list-style: none; margin: 0; padding: 0; }
.spec-list li { display: flex; gap: 9px; align-items: flex-start; }
.spec-list li::before {
  content: "+";
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.6;
}
.spec-list span { font-size: 12.5px; color: var(--ink-2); line-height: 1.6; }

/* --------------------------------------------------------------------------
   行业卡
   -------------------------------------------------------------------------- */
.industry-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.industry-card { background: #fff; border: 1px solid var(--line); }
.industry-figure { height: 190px; position: relative; background: var(--dark-panel); }
.industry-body { padding: 26px 24px 30px; }
.industry-body h3 { font-weight: 700; font-size: 17px; margin-bottom: 10px; }
.industry-body p {
  font-size: 13px;
  line-height: 1.8;
  color: var(--ink-4);
  margin-bottom: 16px;
  text-wrap: pretty;
}
.industry-metric {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink);
  border-top: 1px solid var(--line);
  padding-top: 14px;
  letter-spacing: 0.6px;
}

/* --------------------------------------------------------------------------
   为什么选择工沃
   -------------------------------------------------------------------------- */
.why-layout { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 80px; }
.why-intro p {
  font-size: 15px;
  line-height: 1.9;
  color: var(--ink-4);
  margin: 20px 0 30px;
  text-wrap: pretty;
}
.why-intro .section-title { margin-bottom: 0; }
.why-figure { position: relative; height: 240px; border: 1px solid var(--line); background: var(--gray-bg); }
.why-list { display: flex; flex-direction: column; }
.why-item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
.why-num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--brand);
  letter-spacing: 1px;
  padding-top: 4px;
}
.why-item h3 { font-weight: 700; font-size: 19px; margin-bottom: 10px; }
.why-item p { font-size: 14px; line-height: 1.85; color: var(--ink-4); text-wrap: pretty; }

/* --------------------------------------------------------------------------
   客户 LOGO 墙
   -------------------------------------------------------------------------- */
.clients-label {
  font-size: 13px;
  color: var(--on-dark-5);
  letter-spacing: 1.6px;
  margin-bottom: 32px;
}
.clients-grid { grid-template-columns: repeat(6, 1fr); }
.client-cell { background: var(--dark); height: 96px; position: relative; }

/* --------------------------------------------------------------------------
   CTA 色带
   -------------------------------------------------------------------------- */
.cta-band { background: var(--brand); padding: 76px 0; }
.cta-band .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}
.cta-band h2 {
  font-weight: 700;
  font-size: 34px;
  color: #fff;
  margin-bottom: 12px;
  letter-spacing: -0.2px;
}
.cta-band p { font-size: 15.5px; color: rgba(255, 255, 255, 0.85); }
.cta-actions { display: flex; gap: 14px; flex-shrink: 0; flex-wrap: wrap; }

/* --------------------------------------------------------------------------
   内页 hero
   -------------------------------------------------------------------------- */
.page-hero { background: var(--dark); color: #fff; padding: 82px 0 78px; }
.page-hero h1 {
  font-weight: 900;
  font-size: 46px;
  margin: 16px 0 18px;
  letter-spacing: -0.5px;
}
.page-hero p {
  font-size: 16px;
  line-height: 1.85;
  color: var(--on-dark);
  max-width: 680px;
  text-wrap: pretty;
}

/* --------------------------------------------------------------------------
   产品页
   -------------------------------------------------------------------------- */
.product-detail {
  border-bottom: 1px solid var(--line);
  background: #fff;
  scroll-margin-top: var(--header-h); /* 首页产品卡锚点跳转时不被 sticky header 盖住 */
}
.product-detail .container {
  padding-top: 76px;
  padding-bottom: 76px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
/* 交替左右互换，避免四段版式雷同 */
.product-detail--reverse .product-detail-figure { order: -1; }

.product-badges { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.badge-code {
  font-family: var(--font-mono);
  font-size: 12px;
  color: #fff;
  background: var(--brand);
  padding: 4px 10px;
  letter-spacing: 1.4px;
}
.badge-tag {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--muted);
  letter-spacing: 1.6px;
}

/* 在研产品的状态标，别让人误以为已经能买 */
.badge-status {
  font-size: 11.5px;
  color: #8A6A16;
  background: #FFF6E5;
  border: 1px solid #F0DCB0;
  padding: 3px 9px;
  letter-spacing: 0.5px;
  white-space: nowrap;
}
.product-code-row { display: flex; align-items: center; gap: 10px; }
.product-detail h2 { font-weight: 700; font-size: 32px; margin-bottom: 16px; letter-spacing: -0.2px; }
.product-detail-desc {
  font-size: 15.5px;
  line-height: 1.9;
  color: var(--ink-4);
  margin-bottom: 28px;
  text-wrap: pretty;
}
.kv-grid { grid-template-columns: 1fr 1fr; margin-bottom: 28px; }
.kv-cell { background: var(--card-bg); padding: 16px 18px; }
.kv-key { font-size: 11.5px; color: var(--muted); letter-spacing: 0.8px; margin-bottom: 6px; }
.kv-value { font-family: var(--font-mono); font-size: 14px; color: var(--ink); }
.product-detail-figure { position: relative; height: 400px; border: 1px solid var(--line); background: var(--dark-panel); }

/* 交付流程 */
.flow-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.flow-card {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--brand);
  padding: 26px 22px 30px;
}
.flow-step {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--brand);
  letter-spacing: 1.4px;
  margin-bottom: 14px;
}
.flow-card h3 { font-weight: 700; font-size: 16.5px; margin-bottom: 10px; }
.flow-card p { font-size: 12.5px; line-height: 1.8; color: var(--ink-4); text-wrap: pretty; }

/* --------------------------------------------------------------------------
   关于页
   -------------------------------------------------------------------------- */
.about-hero { padding: 82px 0 0; }
.about-hero p { max-width: 720px; line-height: 1.9; margin-bottom: 64px; }
.about-hero-figure {
  height: 340px;
  border: 1px solid var(--line-dark-14);
  border-bottom: none;
  position: relative;
}

.about-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }
.about-intro h2 { font-weight: 700; font-size: 30px; margin-bottom: 22px; letter-spacing: -0.2px; }
.about-intro p {
  font-size: 15.5px;
  line-height: 2;
  color: var(--ink-3);
  text-wrap: pretty;
}
.about-intro p + p { margin-top: 18px; }
.about-stats { grid-template-columns: 1fr 1fr; align-self: start; }
.about-stat { background: var(--card-bg); padding: 30px 26px; }
.about-stat-value {
  font-family: var(--font-mono);
  font-size: 34px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -1px;
}
.about-stat-label { font-size: 13px; color: var(--ink-4); margin-top: 8px; }

.about-h2 { font-weight: 700; font-size: 30px; letter-spacing: -0.2px; }

/* 列数跟着节点数走，不写死 */
.timeline {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  border-top: 2px solid var(--ink);
}
.timeline-item {
  padding: 26px 24px 0;
  border-right: 1px solid var(--line-2);
  position: relative;
}
.timeline-item:last-child { border-right: 0; }
.timeline-item::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 0;
  width: 10px;
  height: 10px;
  background: var(--brand);
}
.timeline-year {
  font-family: var(--font-mono);
  font-size: 20px;
  color: var(--brand);
  margin-bottom: 12px;
}
.timeline-item p { font-size: 13.5px; line-height: 1.85; color: var(--ink-2); text-wrap: pretty; }

.cert-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  margin-bottom: 36px;
}
.cert-head p { font-size: 14px; color: var(--ink-4); max-width: 380px; text-wrap: pretty; }
.cert-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.cert-card { border: 1px solid var(--line); background: #fff; }
.cert-figure { height: 210px; position: relative; background: var(--gray-bg); }
.cert-body { padding: 20px 22px 24px; border-top: 1px solid var(--line); }
.cert-name { font-weight: 700; font-size: 15px; margin-bottom: 6px; }
.cert-no {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--muted);
  letter-spacing: 0.8px;
}

/* --------------------------------------------------------------------------
   联系页
   -------------------------------------------------------------------------- */
.contact-page { background: var(--dark); padding: 78px 0 96px; }
.contact-page h1 {
  font-weight: 900;
  font-size: 46px;
  color: #fff;
  margin: 16px 0;
  letter-spacing: -0.5px;
}
.contact-page > .container > p {
  font-size: 16px;
  line-height: 1.85;
  color: var(--on-dark);
  max-width: 640px;
  margin-bottom: 56px;
  text-wrap: pretty;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1px;
  background: var(--line-dark-12);
  border: 1px solid var(--line-dark-12);
}

.form-card { background: #fff; padding: 44px 44px 48px; }
.form-card h2 { font-weight: 700; font-size: 22px; margin-bottom: 6px; }
.form-note { font-size: 13.5px; color: var(--muted-2); margin-bottom: 30px; }

.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field > span { font-size: 12.5px; color: var(--ink-2); font-weight: 500; }
.field input,
.field select,
.field textarea {
  border: 1px solid var(--line-input);
  font-size: 14.5px;
  outline: none;
  background: var(--card-bg);
  color: var(--ink);
  border-radius: 0;
  transition: border-color .15s, background .15s;
}
.field input, .field select { height: 46px; padding: 0 14px; }
.field select { padding: 0 12px; }
.field textarea { padding: 12px 14px; resize: vertical; line-height: 1.7; }
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--brand); background: #fff; }
.field input[type="tel"] { font-family: var(--font-mono); }
.field--full { margin-bottom: 26px; }
.field.has-error input,
.field.has-error textarea { border-color: #D93025; }
.field-error {
  font-size: 12px;
  font-style: normal;
  color: #D93025;
}
.field-error:empty { display: none; }

.form-submit { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.form-submit .btn { height: 50px; padding: 0 34px; }
.form-privacy { font-size: 12.5px; color: var(--muted); }

.form-done {
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 16px;
}
.form-done-check {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: var(--brand);
  color: #fff;
  font-size: 20px;
}
.form-done h2 { font-weight: 700; font-size: 24px; }
.form-done p {
  font-size: 15px;
  line-height: 1.85;
  color: var(--ink-4);
  max-width: 420px;
  text-wrap: pretty;
}
.form-again {
  margin-top: 8px;
  font-size: 14px;
  color: var(--brand);
  cursor: pointer;
  font-weight: 600;
  background: none;
  border: 0;
  padding: 0;
}

.contact-info {
  background: var(--dark-panel);
  padding: 44px 40px 48px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.info-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--on-dark-5);
  letter-spacing: 2px;
  margin-bottom: 8px;
}
.info-value {
  font-size: 16px;
  color: #fff;
  line-height: 1.65;
  font-weight: 500;
  text-wrap: pretty;
}
.info-value a { color: #fff; }
.info-value a:hover { color: var(--hero-sub); }
.contact-note {
  margin-top: auto;
  border: 1px solid var(--line-dark-14);
  padding: 24px 22px 26px;
}
.contact-note-slogan {
  font-size: 15px;
  color: var(--accent);
  letter-spacing: 2px;
  margin-bottom: 12px;
}
.contact-note p:last-child {
  font-size: 13.5px;
  line-height: 1.85;
  color: var(--on-dark-3);
  text-wrap: pretty;
}

/* 蜜罐字段：对人不可见，但对机器人可填。
   真正生效的是 contact.html 里的内联样式，这里只是兜底——藏不住的后果是
   真人填了被当垃圾丢掉，所以不能只依赖样式表。
   不能用 display:none —— 有些爬虫会跳过隐藏字段，那就失去意义了。 */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.is-hidden { display: none !important; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--footer-bg);
  border-top: 1px solid var(--line-dark-08);
  padding: 52px 0 30px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 60px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--line-dark-08);
}
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.footer-brand .logo-mark { width: 32px; height: 32px; }
.footer-brand span:last-child {
  font-weight: 700;
  font-size: 15px;
  color: #fff;
  letter-spacing: 1px;
}
.footer-slogan {
  font-size: 14px;
  color: var(--accent);
  letter-spacing: 2px;
  margin-bottom: 14px;
}
.footer-desc {
  font-size: 13.5px;
  line-height: 1.85;
  color: var(--on-dark-6);
  max-width: 360px;
  text-wrap: pretty;
}
.footer-cols { display: flex; gap: 64px; }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col-title {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--on-dark-7);
  letter-spacing: 2px;
}
.footer-col a, .footer-col span:not(.footer-col-title) {
  font-size: 13.5px;
  color: var(--on-dark-3);
  line-height: 1.7;
}
.footer-col a:hover { color: #fff; }
.footer-col .mono { font-family: var(--font-mono); }
.footer-addr { max-width: 220px; }

.footer-bottom {
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-bottom span { font-size: 12px; color: var(--on-dark-7); }
.beian { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.beian a {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--on-dark-7);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.beian a:hover { color: var(--on-dark-3); }
/* 警徽按原比例缩放，国徽类图形不能拉伸变形 */
.beian img { width: 15px; height: auto; }

/* --------------------------------------------------------------------------
   响应式
   设计稿按 1440px 绘制。≥1280 保持原稿；以下按 handoff 建议降级。
   -------------------------------------------------------------------------- */
@media (max-width: 1180px) {
  .hero .container { gap: 48px; }
  .hero-title, .hero-title-2 { font-size: 46px; }
  .why-layout { gap: 48px; }
  .about-intro { gap: 48px; }
  .product-detail .container { gap: 48px; }
  .header-inner { gap: 24px; }
  .nav-link { padding: 0 12px; }
}

@media (max-width: 1024px) {
  :root { --gutter: 28px; }

  .header-phone { display: none; }

  .hero .container { grid-template-columns: 1fr; gap: 0; min-height: 0; }
  .hero-copy { padding: 72px 0 40px; }
  .hero-figure { height: 340px; margin-bottom: 72px; }
  .hero-desc { max-width: none; }

  .stats-band .container { grid-template-columns: repeat(2, 1fr); }
  .stat { padding: 30px 24px 30px 0; }
  .stat:nth-child(2n) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line-dark-08); }

  .section { padding: 72px 0; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 20px; margin-bottom: 36px; }
  .section-title { font-size: 30px; }

  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .industry-grid { grid-template-columns: repeat(2, 1fr); }
  .clients-grid { grid-template-columns: repeat(3, 1fr); }

  .why-layout { grid-template-columns: 1fr; gap: 40px; }

  .cta-band .container { flex-direction: column; align-items: flex-start; gap: 28px; }
  .cta-band h2 { font-size: 28px; }

  .page-hero h1, .contact-page h1 { font-size: 36px; }

  .product-detail .container { grid-template-columns: 1fr; gap: 36px; padding-top: 56px; padding-bottom: 56px; }
  .product-detail:nth-of-type(even) .product-detail-figure { order: 0; }
  .product-detail-figure { height: 300px; }

  .flow-grid { grid-template-columns: repeat(2, 1fr); }

  .about-intro { grid-template-columns: 1fr; }
  .about-hero-figure { height: 260px; }
  .timeline { grid-auto-flow: row; grid-template-columns: repeat(2, 1fr); }
  .timeline-item { border-bottom: 1px solid var(--line-2); padding-bottom: 24px; }
  .timeline-item:nth-child(2n) { border-right: 0; }
  .cert-grid { grid-template-columns: repeat(2, 1fr); }
  .cert-head { flex-direction: column; align-items: flex-start; gap: 16px; }

  .contact-layout { grid-template-columns: 1fr; }
  .form-card { padding: 32px 28px 36px; }
  .contact-info { padding: 32px 28px 36px; }

  .footer-top { flex-direction: column; gap: 36px; }
}

@media (max-width: 720px) {
  :root { --gutter: 20px; }

  .nav-toggle { display: block; }
  .header-aside { display: none; }

  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    background: var(--dark);
    border-bottom: 1px solid var(--line-dark-10);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s, transform .18s;
  }
  .site-nav.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .nav-link {
    height: 54px;
    padding: 0 var(--gutter);
    border-bottom: 1px solid var(--line-dark-08);
  }
  .nav-link.is-current { box-shadow: inset 3px 0 0 var(--brand); }

  .hero-title, .hero-title-2 { font-size: 32px; }
  .hero-desc { font-size: 15px; margin: 22px 0 32px; }
  .hero-copy { padding: 56px 0 32px; }
  .hero-figure { height: 0; padding-bottom: 56.25%; margin-bottom: 56px; }
  .btn { width: 100%; }
  .hero-actions { width: 100%; }

  .stats-band .container { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid var(--line-dark-08); padding: 26px 0; }
  .stat:last-child { border-bottom: 0; }
  .stat-value { font-size: 34px; }

  .section { padding: 56px 0; }
  .section-title, .about-h2 { font-size: 26px; }

  .product-grid, .industry-grid, .flow-grid, .cert-grid { grid-template-columns: 1fr; }
  .clients-grid { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-auto-flow: row; grid-template-columns: 1fr; }
  .timeline-item { border-right: 0; }

  .page-hero { padding: 56px 0 52px; }
  .page-hero h1, .contact-page h1 { font-size: 30px; }
  .contact-page { padding: 56px 0 64px; }

  .kv-grid { grid-template-columns: 1fr; }
  .field-grid { grid-template-columns: 1fr; }
  .form-card, .contact-info { padding: 26px 20px 30px; }

  .cta-band { padding: 56px 0; }
  .cta-actions { width: 100%; flex-direction: column; }
  .btn-on-brand, .btn-on-brand-outline { width: 100%; }

  .footer-cols { flex-direction: column; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 12px; }
  .beian { flex-direction: column; align-items: flex-start; gap: 8px; }
}
