/* ============================================================
   Huaxin PCBA — Tech-Industrial Design System
   Brand: 华鑫 Huaxin Electronics Technology
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  /* surfaces */
  --bg-0: #060d1d;
  --bg-1: #0a1428;
  --bg-2: #0e1c36;
  --bg-3: #14264a;
  --glass: rgba(10, 20, 40, 0.72);

  /* lines */
  --line: rgba(140, 180, 255, 0.14);
  --line-2: rgba(140, 180, 255, 0.24);

  /* text */
  --text-0: #eef4ff;
  --text-1: #b8c7e2;
  --text-2: #7e91b2;

  /* accents */
  --accent: #2fd4ff;
  --accent-2: #3de8c4;
  --accent-blue: #4a7dff;
  --gold: #ffc36b;

  /* status */
  --ok: #3de8a4;
  --warn: #ffc36b;

  /* geometry */
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 22px;
  --shadow: 0 24px 70px -22px rgba(2, 8, 20, 0.85);
  --shadow-sm: 0 10px 30px -14px rgba(2, 8, 20, 0.8);

  /* type */
  --font-head: "Rajdhani", "Noto Sans SC", "Microsoft YaHei", "PingFang SC", sans-serif;
  --font-body: "Inter", "Noto Sans SC", "Microsoft YaHei", "PingFang SC", -apple-system, "Segoe UI", sans-serif;

  /* layout */
  --container: 1200px;
  --nav-h: 76px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg-0);
  color: var(--text-1);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  color: var(--text-0);
  margin: 0;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: 0.01em;
}
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }

::selection { background: rgba(47, 212, 255, 0.3); color: #fff; }

/* scrollbar */
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--bg-0); }
::-webkit-scrollbar-thumb { background: #1d3557; border-radius: 8px; border: 2px solid var(--bg-0); }
::-webkit-scrollbar-thumb:hover { background: #2a4a77; }

/* ---------- Utilities ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

.section { padding: 104px 0; position: relative; }
.section-tight { padding: 72px 0; }
.section-dark { background: var(--bg-1); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-weight: 600; font-size: 14px;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: linear-gradient(90deg, var(--accent), transparent); }

.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow::before { display: none; }
.section-head h2 { font-size: clamp(30px, 4vw, 46px); margin: 14px 0 16px; }
.section-head .lead { color: var(--text-1); font-size: 17px; }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-6 { grid-template-columns: repeat(3, 1fr); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px 28px; border-radius: 999px; font-weight: 600; font-size: 15.5px;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(4px); }
.btn-accent {
  background: linear-gradient(135deg, #22b8e6, #2fd4ff 45%, #3de8c4);
  color: #04101f; box-shadow: 0 12px 34px -12px rgba(47, 212, 255, 0.65);
}
.btn-accent:hover { transform: translateY(-2px); box-shadow: 0 18px 42px -12px rgba(47, 212, 255, 0.8); }
.btn-ghost {
  color: var(--text-0); border: 1px solid var(--line-2);
  background: rgba(140, 180, 255, 0.04);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); background: rgba(47, 212, 255, 0.07); }
.btn-sm { padding: 10px 20px; font-size: 14px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--nav-h);
  transition: background .3s ease, border-color .3s ease, box-shadow .3s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: var(--glass);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
  box-shadow: 0 12px 40px -20px rgba(0, 0, 0, 0.7);
}
.header-inner { height: var(--nav-h); display: flex; align-items: center; gap: 28px; }

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-family: var(--font-head); font-size: 21px; font-weight: 700; color: var(--text-0); letter-spacing: 0.04em; }
.brand-text small { font-size: 11.5px; color: var(--text-2); letter-spacing: 0.14em; text-transform: uppercase; }

.nav { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.nav a {
  position: relative; padding: 9px 15px; border-radius: 9px;
  font-weight: 500; font-size: 15px; color: var(--text-1);
  transition: color .2s ease, background .2s ease;
}
.nav a:hover { color: var(--text-0); background: rgba(140, 180, 255, 0.08); }
.nav a.active { color: var(--accent); }
.nav a.active::after {
  content: ""; position: absolute; left: 15px; right: 15px; bottom: 3px; height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent); border-radius: 2px;
}

.header-actions { display: flex; align-items: center; gap: 12px; }

.lang-toggle {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 14px; border-radius: 999px; font-weight: 600; font-size: 13.5px;
  color: var(--text-1); background: rgba(140, 180, 255, 0.06); border: 1px solid var(--line);
  transition: border-color .2s ease, color .2s ease, background .2s ease;
}
.lang-toggle:hover { border-color: var(--accent); color: var(--accent); }

.nav-toggle {
  display: none; width: 44px; height: 44px; border-radius: 10px;
  background: rgba(140, 180, 255, 0.06); border: 1px solid var(--line);
}
.nav-toggle span { display: block; width: 18px; height: 2px; margin: 4px auto; background: var(--text-0); border-radius: 2px; transition: transform .25s ease, opacity .25s ease; }
.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); }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 720px;
  display: flex; align-items: center;
  padding: calc(var(--nav-h) + 40px) 0 80px;
  overflow: hidden;
  background:
    radial-gradient(900px 480px at 82% 18%, rgba(47, 212, 255, 0.16), transparent 62%),
    radial-gradient(760px 460px at 12% 88%, rgba(74, 125, 255, 0.14), transparent 60%),
    linear-gradient(180deg, #08122a 0%, var(--bg-0) 100%);
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(900px 600px at 50% 30%, #000 30%, transparent 78%);
  mask-image: radial-gradient(900px 600px at 50% 30%, #000 30%, transparent 78%);
}
.hero-circuit { position: absolute; inset: 0; z-index: 0; opacity: 0.9; pointer-events: none; }
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }

.hero h1 { font-size: clamp(38px, 5.6vw, 66px); line-height: 1.04; letter-spacing: 0.005em; }
.hero h1 .grad {
  background: linear-gradient(92deg, var(--accent) 0%, var(--accent-2) 60%, var(--gold) 120%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .sub { margin: 24px 0 34px; font-size: 18px; max-width: 560px; color: var(--text-1); }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-trust { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--text-2); font-size: 13.5px; font-weight: 600; letter-spacing: 0.04em; }
.hero-trust span { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 10px var(--accent-2); }

/* hero board visual */
.board-scene { position: relative; z-index: 1; display: grid; place-items: center; }
.board-card {
  width: 100%; max-width: 420px;
  background: linear-gradient(160deg, #12213f, #0b1730);
  border: 1px solid var(--line-2); border-radius: 18px;
  padding: 22px; box-shadow: var(--shadow);
  position: relative; overflow: hidden;
}
.board-card::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 22px 22px; opacity: 0.5;
  -webkit-mask-image: radial-gradient(240px 160px at 50% 40%, #000, transparent);
  mask-image: radial-gradient(240px 160px at 50% 40%, #000, transparent);
}
.board-pcb {
  position: relative; z-index: 1; border-radius: 12px;
  background: radial-gradient(300px 200px at 30% 20%, #0f3a33, #0a1f1c 70%);
  border: 1px solid rgba(61, 232, 196, 0.35);
  padding: 22px 18px 18px;
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.55);
}
.board-chip {
  width: 62px; height: 62px; margin: 0 auto 18px; border-radius: 8px;
  background: linear-gradient(135deg, #1c3358, #0d1d3a);
  border: 1px solid var(--line-2);
  display: grid; place-items: center;
  box-shadow: 0 0 0 6px rgba(47, 212, 255, 0.08);
}
.board-chip svg { width: 34px; height: 34px; }
.board-pads { display: grid; grid-template-columns: repeat(8, 1fr); gap: 8px; }
.board-pads i {
  aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, #3b6b5a, #12291f);
  border: 1px solid rgba(61, 232, 196, 0.4);
}
.board-pads i:nth-child(even) { background: radial-gradient(circle at 32% 30%, #3a4a78, #151f38); border-color: rgba(140, 180, 255, 0.4); }

.board-float {
  position: absolute; z-index: 2; display: flex; align-items: center; gap: 12px;
  padding: 13px 18px; border-radius: 14px;
  background: rgba(10, 20, 40, 0.88);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid var(--line-2); box-shadow: var(--shadow-sm);
  font-family: var(--font-head); font-weight: 600; font-size: 14.5px; color: var(--text-0);
}
.board-float .pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(61, 232, 164, 0.7); animation: pulse 2s infinite; }
.board-float small { display: block; font-weight: 500; font-size: 11px; color: var(--text-2); }
.board-float.f1 { top: -18px; right: 6px; animation: bob 6s ease-in-out infinite; }
.board-float.f2 { bottom: -14px; left: -8px; animation: bob 7s 0.8s ease-in-out infinite; }

@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(61, 232, 164, 0.65); } 70% { box-shadow: 0 0 0 11px rgba(61, 232, 164, 0); } 100% { box-shadow: 0 0 0 0 rgba(61, 232, 164, 0); } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

.scroll-hint {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--text-2); font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; z-index: 2;
}
.scroll-hint .mouse { width: 22px; height: 36px; border: 2px solid var(--line-2); border-radius: 12px; position: relative; }
.scroll-hint .mouse::after { content: ""; position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--accent); animation: wheel 1.8s infinite; }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }

/* ---------- Stats ---------- */
.stats { border-block: 1px solid var(--line); background: var(--bg-1); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 42px 28px; text-align: center; position: relative; }
.stat + .stat::before { content: ""; position: absolute; left: 0; top: 28%; bottom: 28%; width: 1px; background: var(--line); }
.stat .num { font-family: var(--font-head); font-weight: 700; font-size: 42px; color: var(--text-0); }
.stat .num .suffix { color: var(--accent); }
.stat .lbl { margin-top: 6px; color: var(--text-2); font-size: 14px; letter-spacing: 0.04em; }

/* ---------- Cards ---------- */
.card {
  position: relative; background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
  overflow: hidden;
}
.card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  opacity: 0; transition: opacity .25s ease;
}
.card:hover { transform: translateY(-6px); border-color: var(--line-2); box-shadow: var(--shadow); }
.card:hover::before { opacity: 1; }

.card .icon {
  width: 56px; height: 56px; border-radius: 13px; margin-bottom: 20px;
  display: grid; place-items: center;
  background: linear-gradient(145deg, rgba(47, 212, 255, 0.16), rgba(61, 232, 196, 0.06));
  border: 1px solid rgba(47, 212, 255, 0.28);
}
.card .icon svg { width: 27px; height: 27px; }
.card h3 { font-size: 21px; margin-bottom: 10px; }
.card p { color: var(--text-1); font-size: 15px; }
.card .more {
  display: inline-flex; align-items: center; gap: 7px; margin-top: 18px;
  font-family: var(--font-head); font-weight: 600; font-size: 14.5px; color: var(--accent);
  letter-spacing: 0.05em;
}
.card .more .arrow { transition: transform .2s ease; }
.card:hover .more .arrow { transform: translateX(4px); }

/* why cards */
.why-card { padding: 28px; }
.why-card .icon { width: 48px; height: 48px; border-radius: 11px; margin-bottom: 16px; }
.why-card .icon svg { width: 23px; height: 23px; }
.why-card h3 { font-size: 18px; margin-bottom: 8px; }
.why-card p { font-size: 14.5px; }

/* industry chips */
.industry-card { padding: 26px; }
.industry-card .icon { width: 52px; height: 52px; border-radius: 12px; margin-bottom: 16px; }
.industry-card h3 { font-size: 19px; margin-bottom: 8px; }
.industry-card p { font-size: 14px; }

/* value strip on about */
.value-card { text-align: center; padding: 36px 26px; }
.value-card .icon { margin: 0 auto 18px; }
.value-card h3 { font-size: 19px; margin-bottom: 10px; }

/* ---------- Spec table ---------- */
.spec-table {
  width: 100%; border-collapse: collapse; font-size: 15px;
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.spec-table th, .spec-table td { text-align: left; padding: 15px 20px; border-bottom: 1px solid var(--line); }
.spec-table thead th {
  font-family: var(--font-head); font-weight: 600; font-size: 13.5px;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent);
  background: rgba(47, 212, 255, 0.06);
}
.spec-table tbody tr:last-child td { border-bottom: 0; }
.spec-table tbody tr:hover td { background: rgba(140, 180, 255, 0.035); }
.spec-table td:first-child { color: var(--text-0); font-weight: 600; width: 42%; }
.spec-table td { color: var(--text-1); }

/* ---------- Process steps ---------- */
.steps { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; position: relative; }
.step { position: relative; padding-top: 58px; }
.step::before {
  content: ""; position: absolute; top: 26px; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--line-2), transparent);
}
.step .n {
  position: absolute; top: 0; left: 0;
  width: 52px; height: 52px; border-radius: 12px;
  display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 700; font-size: 21px; color: var(--accent);
  background: var(--bg-3); border: 1px solid var(--line-2);
  box-shadow: 0 0 0 6px rgba(47, 212, 255, 0.06);
}
.step h3 { font-size: 17px; margin-bottom: 8px; }
.step p { font-size: 14px; color: var(--text-1); }

/* ---------- Testimonials ---------- */
.testi {
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; position: relative;
}
.testi::before { content: "\201C"; position: absolute; top: 12px; right: 26px; font-family: Georgia, serif; font-size: 70px; line-height: 1; color: rgba(47, 212, 255, 0.18); }
.testi .stars { color: var(--gold); letter-spacing: 2px; margin-bottom: 14px; font-size: 15px; }
.testi p { font-size: 15px; color: var(--text-1); margin-bottom: 22px; }
.testi .who { display: flex; align-items: center; gap: 12px; }
.testi .avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent));
  display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; color: #fff; font-size: 15px;
}
.testi .who b { display: block; color: var(--text-0); font-size: 14.5px; }
.testi .who span { font-size: 12.5px; color: var(--text-2); }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden;
  background: linear-gradient(120deg, #0b3a6b, #08234a 55%, #0a1530);
  border-top: 1px solid var(--line);
}
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 44px 44px; opacity: 0.55;
  -webkit-mask-image: radial-gradient(700px 320px at 50% 50%, #000, transparent);
  mask-image: radial-gradient(700px 320px at 50% 50%, #000, transparent);
}
.cta-inner { position: relative; padding: 88px 0; display: flex; align-items: center; justify-content: space-between; gap: 36px; flex-wrap: wrap; }
.cta-inner h2 { font-size: clamp(28px, 3.6vw, 42px); margin-bottom: 12px; }
.cta-inner p { color: var(--text-1); max-width: 520px; }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Page hero (inner) ---------- */
.page-hero {
  position: relative; padding: calc(var(--nav-h) + 88px) 0 70px;
  overflow: hidden;
  background:
    radial-gradient(700px 380px at 85% 10%, rgba(47, 212, 255, 0.14), transparent 60%),
    radial-gradient(600px 340px at 8% 100%, rgba(74, 125, 255, 0.12), transparent 55%),
    linear-gradient(180deg, #08122a, var(--bg-0));
}
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 52px 52px;
  -webkit-mask-image: radial-gradient(760px 400px at 30% 30%, #000 20%, transparent 80%);
  mask-image: radial-gradient(760px 400px at 30% 30%, #000 20%, transparent 80%);
}
.page-hero-inner { position: relative; z-index: 1; max-width: 780px; }
.page-hero h1 { font-size: clamp(32px, 4.6vw, 52px); margin: 14px 0 16px; }
.page-hero .lead { font-size: 17.5px; color: var(--text-1); max-width: 640px; }
.crumb { color: var(--text-2); font-size: 13px; letter-spacing: 0.06em; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.crumb a:hover { color: var(--accent); }
.crumb b { color: var(--text-0); font-weight: 600; }

/* ---------- Two-column content ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split.reverse .split-visual { order: -1; }
.split h2 { font-size: clamp(26px, 3.4vw, 38px); margin: 14px 0 18px; }
.split p { margin-bottom: 16px; color: var(--text-1); }
.split .check-list li { display: flex; gap: 12px; padding: 8px 0; color: var(--text-1); }
.split .check-list svg { flex: 0 0 auto; margin-top: 4px; }

.visual-card {
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--bg-3), var(--bg-1));
  padding: 30px; box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.visual-card::before {
  content: ""; position: absolute; inset: 0; opacity: 0.35;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(300px 200px at 70% 30%, #000, transparent);
  mask-image: radial-gradient(300px 200px at 70% 30%, #000, transparent);
}
.visual-card > * { position: relative; z-index: 1; }

/* ---------- Cert badges ---------- */
.cert-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cert {
  display: flex; align-items: center; gap: 16px; padding: 22px 24px;
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
  border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .2s ease, transform .2s ease;
}
.cert:hover { border-color: var(--line-2); transform: translateY(-3px); }
.cert .badge-icon {
  width: 52px; height: 52px; flex: 0 0 auto; border-radius: 12px;
  display: grid; place-items: center;
  background: linear-gradient(145deg, rgba(74, 125, 255, 0.2), rgba(47, 212, 255, 0.08));
  border: 1px solid rgba(74, 125, 255, 0.35); color: var(--accent);
}
.cert h3 { font-size: 17px; margin-bottom: 4px; }
.cert p { font-size: 13px; color: var(--text-2); }

/* ---------- QC process ---------- */
.qc-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.qc-step {
  text-align: center; padding: 30px 20px;
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
  border: 1px solid var(--line); border-radius: var(--radius); position: relative;
}
.qc-step .tag {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  padding: 4px 12px; border-radius: 999px; font-family: var(--font-head); font-weight: 600; font-size: 12px; letter-spacing: 0.08em;
  color: #03101c; background: linear-gradient(135deg, var(--accent), var(--accent-2));
}
.qc-step .icon { width: 48px; height: 48px; margin: 6px auto 14px; display: grid; place-items: center; border-radius: 11px; background: rgba(47, 212, 255, 0.1); border: 1px solid rgba(47, 212, 255, 0.25); }
.qc-step h3 { font-size: 16.5px; margin-bottom: 8px; }
.qc-step p { font-size: 13.5px; color: var(--text-1); }

/* ---------- Feature pills (equipment etc.) ---------- */
.pill-list { display: flex; flex-wrap: wrap; gap: 10px; }
.pill {
  padding: 9px 16px; border-radius: 999px; font-size: 13.5px; font-weight: 500;
  color: var(--text-1); background: rgba(140, 180, 255, 0.06); border: 1px solid var(--line);
}
.pill b { color: var(--text-0); font-weight: 600; }

/* ---------- Timeline (about milestones) ---------- */
.timeline { position: relative; max-width: 760px; margin: 0 auto; }
.timeline::before { content: ""; position: absolute; left: 22px; top: 0; bottom: 0; width: 2px; background: linear-gradient(var(--accent), var(--accent-blue)); opacity: 0.5; }
.tl-item { position: relative; padding: 0 0 34px 72px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ""; position: absolute; left: 14px; top: 4px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--bg-0); border: 4px solid var(--accent); box-shadow: 0 0 0 4px rgba(47, 212, 255, 0.15);
}
.tl-item .year { font-family: var(--font-head); font-weight: 700; font-size: 15px; color: var(--accent); letter-spacing: 0.08em; }
.tl-item h3 { font-size: 19px; margin: 6px 0 8px; }
.tl-item p { color: var(--text-1); font-size: 15px; max-width: 600px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: start; }
.info-card { display: flex; gap: 16px; padding: 22px; margin-bottom: 16px; background: linear-gradient(180deg, var(--bg-2), var(--bg-1)); border: 1px solid var(--line); border-radius: var(--radius); }
.info-card .icon { width: 46px; height: 46px; flex: 0 0 auto; border-radius: 11px; display: grid; place-items: center; background: rgba(47, 212, 255, 0.1); border: 1px solid rgba(47, 212, 255, 0.25); }
.info-card h3 { font-size: 16px; margin-bottom: 4px; }
.info-card p, .info-card a { color: var(--text-1); font-size: 14.5px; }
.info-card a:hover { color: var(--accent); }

.form-card {
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 34px; box-shadow: var(--shadow);
}
.form-card h2 { font-size: 26px; margin-bottom: 8px; }
.form-card .form-note { color: var(--text-2); font-size: 14px; margin-bottom: 26px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { font-family: var(--font-head); font-weight: 600; font-size: 13.5px; letter-spacing: 0.06em; color: var(--text-1); }
.form-group label .req { color: var(--accent); }
.form-control {
  width: 100%; padding: 13px 15px; border-radius: var(--radius-sm);
  background: var(--bg-0); border: 1px solid var(--line); color: var(--text-0);
  font-size: 15px; transition: border-color .2s ease, box-shadow .2s ease;
}
.form-control:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(47, 212, 255, 0.16); }
textarea.form-control { resize: vertical; min-height: 130px; }
.form-row2 { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-submit { margin-top: 22px; width: 100%; }
.form-ok { display: none; align-items: center; gap: 10px; margin-top: 18px; padding: 14px 18px; border-radius: var(--radius-sm); background: rgba(61, 232, 164, 0.1); border: 1px solid rgba(61, 232, 164, 0.4); color: var(--ok); font-weight: 600; font-size: 14.5px; }
.form-ok.show { display: flex; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-0); }
.footer-main { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding: 72px 0 48px; }
.footer-brand p { color: var(--text-2); font-size: 14.5px; margin: 18px 0 22px; max-width: 320px; }
.footer-certs { display: flex; gap: 10px; flex-wrap: wrap; }
.footer-certs span {
  font-size: 12px; font-weight: 600; letter-spacing: 0.06em; color: var(--text-1);
  padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line);
}
.footer-col h4 { font-family: var(--font-head); font-size: 15px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-0); margin-bottom: 20px; }
.footer-col a, .footer-col li { display: block; color: var(--text-2); font-size: 14.5px; padding: 5px 0; transition: color .2s ease; }
.footer-col a:hover { color: var(--accent); }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact svg { flex: 0 0 auto; margin-top: 3px; color: var(--accent); }
.footer-bottom { border-top: 1px solid var(--line); padding: 22px 0; }
.footer-bottom-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-bottom p { color: var(--text-2); font-size: 13.5px; }
.footer-bottom .lang-mini { color: var(--text-2); font-size: 13.5px; }

/* ---------- Floating ---------- */
.float-whatsapp {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #25d366, #1eb457);
  color: #fff; box-shadow: 0 14px 34px -10px rgba(37, 211, 102, 0.7);
  transition: transform .2s ease;
}
.float-whatsapp:hover { transform: translateY(-3px) scale(1.04); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.3,1); }
.reveal.in-view { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001s !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid-3, .grid-6 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .qc-steps { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { grid-template-columns: 1fr; }
  .board-scene { display: none; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .section { padding: 72px 0; }
  .grid-2, .grid-3, .grid-4, .grid-6 { grid-template-columns: 1fr; }
  .steps, .qc-steps { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat + .stat::before { display: none; }
  .stat:nth-child(even)::before { content: ""; position: absolute; left: 0; top: 28%; bottom: 28%; width: 1px; background: var(--line); }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split.reverse .split-visual { order: 0; }
  .cert-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-row2 { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr; gap: 32px; }
  .cta-inner { padding: 64px 0; }
  .form-card { padding: 24px; }

  /* mobile nav */
  .nav {
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    padding: 14px 20px 22px; z-index: 99;
    background: var(--glass);
    -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: transform .3s ease, opacity .3s ease;
  }
  .nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav a { padding: 13px 14px; font-size: 16px; }
  .nav-toggle { display: block; }
  .header-actions .btn { display: none; }
  .brand-text small { display: none; }
}
@media (max-width: 420px) {
  .steps, .qc-steps { grid-template-columns: 1fr; }
  .hero-trust { gap: 8px 16px; }
  .hero h1 { font-size: 36px; }
}

/* ============ AI 生成图（生图工作流） ============ */
/* 首页 hero 背景图层（内容图 H01） */
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: url("../img/H01-hero.webp");
  background-size: cover; background-position: center 35%;
  opacity: .22;
  -webkit-mask-image: radial-gradient(1300px 760px at 62% 42%, #000 18%, transparent 76%);
  mask-image: radial-gradient(1300px 760px at 62% 42%, #000 18%, transparent 76%);
}

/* 内页 hero 背景图层（组件图 C02，全站复用） */
.page-hero::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: url("../img/C02-pagehero.webp");
  background-size: cover; background-position: center;
  opacity: .16;
  -webkit-mask-image: radial-gradient(1000px 620px at 72% 20%, #000 15%, transparent 82%);
  mask-image: radial-gradient(1000px 620px at 72% 20%, #000 15%, transparent 82%);
}

/* CTA 横条背景图层（组件图 C01，全站复用） */
.cta-band::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: url("../img/C01-cta.webp");
  background-size: cover; background-position: center;
  opacity: .24;
}
.cta-inner { z-index: 1; }

/* 区块顶部横幅图（services / quality 页内容图） */
.section-img {
  position: relative; height: 220px; border-radius: 16px; overflow: hidden;
  margin-bottom: 36px; border: 1px solid var(--line-2); background: var(--bg-2);
}
.section-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.section-img::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(6,13,29,.10), rgba(6,13,29,.50));
}

/* 卡片顶部图条（products 行业卡 / about 设施卡 内容图） */
.card-img {
  height: 130px; border-radius: 10px; overflow: hidden; margin-bottom: 16px;
  border: 1px solid var(--line-2); background: var(--bg-2);
}
.card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

@media (max-width: 640px) {
  .section-img { height: 160px; }
  .card-img { height: 110px; }
}
