/* ==========================================================================
   TSR Hardware — Design System
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --brand: #1653ff;
  --brand-600: #0f43d6;
  --brand-050: #eef3ff;
  --accent: #ff6a2b;
  --ink: #080e1c;
  --ink-700: #111a2b;
  --text: #16202f;
  --muted: #5f6d84;
  --line: #e3e8f0;
  --line-2: #eef1f6;
  --bg: #ffffff;
  --bg-soft: #f4f6fb;
  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 26px;
  --shadow-1: 0 1px 2px rgba(8, 14, 28, .05), 0 10px 24px -16px rgba(8, 14, 28, .35);
  --shadow-2: 0 2px 6px rgba(8, 14, 28, .06), 0 30px 60px -30px rgba(8, 14, 28, .45);
  --container: 1200px;
  --header-h: 74px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --font: "Inter", "Helvetica Neue", -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 { margin: 0; font-weight: 700; line-height: 1.15; letter-spacing: -.022em; color: var(--ink); }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: rgba(22, 83, 255, .16); }

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.section { padding: clamp(64px, 8vw, 116px) 0; }
.section--soft { background: var(--bg-soft); }
.section--dark { background: var(--ink); color: rgba(255, 255, 255, .72); }
.section--dark h2, .section--dark h3 { color: #fff; }

.section-head { max-width: 660px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head--center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 16px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}
.section-head--center .eyebrow::before { display: none; }

.section-title {
  font-size: clamp(28px, 3.6vw, 46px);
  letter-spacing: -.03em;
  line-height: 1.1;
}
.section-desc {
  margin-top: 16px;
  font-size: 16.5px;
  color: var(--muted);
  line-height: 1.75;
}
.section--dark .section-desc { color: rgba(255, 255, 255, .62); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 50px;
  padding: 0 26px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -.01em;
  white-space: nowrap;
  transition: transform .25s var(--ease), background .25s var(--ease),
    box-shadow .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
}
.btn svg { width: 17px; height: 17px; flex: none; }
.btn:active { transform: translateY(1px) scale(.99); }

.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 10px 24px -12px rgba(22, 83, 255, .85);
}
.btn-primary:hover { background: var(--brand-600); box-shadow: 0 14px 30px -12px rgba(22, 83, 255, .95); transform: translateY(-2px); }

.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-700); transform: translateY(-2px); }

.btn-ghost {
  border: 1px solid var(--line);
  color: var(--text);
  background: #fff;
}
.btn-ghost:hover { border-color: #c9d3e3; background: #fff; transform: translateY(-2px); box-shadow: var(--shadow-1); }

.btn-light {
  background: rgba(255, 255, 255, .1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .22);
  backdrop-filter: blur(8px);
}
.btn-light:hover { background: rgba(255, 255, 255, .18); transform: translateY(-2px); }

.btn-sm { height: 42px; padding: 0 20px; font-size: 14px; }

.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 600;
  font-size: 15px;
  color: var(--brand);
}
.btn-link svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.btn-link:hover svg { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 90;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
  border-bottom: 1px solid var(--line-2);
  color: var(--text);
  background: rgba(255, 255, 255, .78);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
}
.site-header.is-solid {
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 8px 30px -24px rgba(8, 14, 28, .6);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  width: 100%;
}

.brand { display: flex; align-items: center; gap: 18px; flex: none; }
.brand-logo {
  height: 40px;
  width: auto;
  display: block;
  flex: none;
}
.brand-name {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.16;
  white-space: nowrap;
  color: #fff;
}
.site-header .brand-name { color: #1C5696; }
.brand-name-zh {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: .04em;
}
.brand-name-sub {
  margin-top: 2px;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .02em;
  opacity: .8;
}
/* 默认（页脚等深色区域）：白色图形；浅色头部覆盖为品牌蓝图形 */
.brand-logo.logo-blue { display: none; }
.site-header .brand-logo.logo-white { display: none; }
.site-header .brand-logo.logo-blue { display: block; }

.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a {
  position: relative;
  padding: 9px 14px;
  border-radius: 10px;
  font-size: 14.5px;
  font-weight: 500;
  opacity: .82;
  transition: opacity .2s, background .2s;
}
.nav a:hover { opacity: 1; background: rgba(127, 145, 175, .12); }
.nav a.is-active { opacity: 1; font-weight: 600; color: var(--brand); }
.nav a.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 3px;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transform: translateX(-50%);
}

.header-actions { display: flex; align-items: center; gap: 10px; flex: none; }

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
  transition: background .2s, border-color .2s, color .2s;
}
.lang-switch:hover { background: rgba(127, 145, 175, .14); }
.lang-switch svg { width: 15px; height: 15px; opacity: .7; }

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(127, 145, 175, .35);
  place-items: center;
}
.nav-toggle span {
  display: block;
  width: 17px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  position: relative;
  transition: transform .3s var(--ease), background .2s;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 17px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .3s var(--ease);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
body.nav-open .nav-toggle span { background: transparent; }
body.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
body.nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
/* 背景图：公司自有产品实拍拼贴（uploadImgs/proImgs），左侧白色渐隐已烘焙进图片。 */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 64px) 0 0;
  background-color: #f2f5fb;
  background-image:
    linear-gradient(100deg, rgba(244, 247, 252, .8) 0%, rgba(244, 247, 252, .42) 40%, rgba(244, 247, 252, .08) 68%, rgba(244, 247, 252, 0) 100%),
    url("../img/hero-bg.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--text);
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(15, 40, 90, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 40, 90, .05) 1px, transparent 1px);
  background-size: 68px 68px;
  -webkit-mask-image: radial-gradient(120% 90% at 78% 8%, #000 0%, transparent 72%);
  mask-image: radial-gradient(120% 90% at 78% 8%, #000 0%, transparent 72%);
  z-index: -1;
}
.hero::after {
  content: "";
  position: absolute;
  top: -26%;
  right: -12%;
  width: 62vw;
  height: 62vw;
  max-width: 860px;
  max-height: 860px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(22, 83, 255, .18), rgba(22, 83, 255, 0) 62%);
  filter: blur(24px);
  z-index: -1;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  padding-bottom: clamp(56px, 7vw, 96px);
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 34px;
  padding: 0 15px 0 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 12.5px;
  letter-spacing: .04em;
  color: var(--muted);
  box-shadow: var(--shadow-1);
}
.hero-pill .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3ee08a;
  box-shadow: 0 0 0 4px rgba(62, 224, 138, .16);
}

.hero h1 {
  margin-top: 26px;
  font-size: clamp(36px, 4.6vw, 62px);
  line-height: 1.03;
  letter-spacing: -.038em;
  color: var(--ink);
  font-weight: 800;
}
.hero h1 .grad {
  background: linear-gradient(96deg, #1653ff 0%, #3f7bff 48%, #00a6ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-lead {
  margin-top: 24px;
  max-width: 520px;
  font-size: 17px;
  line-height: 1.75;
  color: var(--muted);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero .btn-light {
  background: #fff;
  color: var(--text);
  border: 1px solid var(--line);
  backdrop-filter: none;
  box-shadow: var(--shadow-1);
}
.hero .btn-light:hover { background: #fff; border-color: #c9d3e3; box-shadow: var(--shadow-2); }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: clamp(40px, 5vw, 64px);
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.hero-stats dt {
  font-size: clamp(26px, 2.6vw, 34px);
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--ink);
  line-height: 1;
}
.hero-stats dt small { font-size: .5em; font-weight: 700; margin-left: 2px; letter-spacing: 0; }
.hero-stats dd {
  margin: 9px 0 0;
  font-size: 12.5px;
  letter-spacing: .02em;
  color: var(--muted);
}

/* Hero visual collage */
.hero-visual {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 14px;
  padding: 8px;
}
.tile {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 26px 50px -28px rgba(9, 22, 55, .55);
}
.tile img { width: 100%; height: 100%; object-fit: cover; }
.tile--a { grid-row: span 2; aspect-ratio: 3 / 4.35; }
.tile--b { aspect-ratio: 4 / 3; }
.tile--c { aspect-ratio: 4 / 3; display: grid; place-items: center; background: linear-gradient(150deg, rgba(22, 83, 255, .95), rgba(10, 34, 120, .95)); }
.tile--c .tile-meta { text-align: center; padding: 18px; }
.tile--c strong { display: block; font-size: 30px; font-weight: 800; letter-spacing: -.02em; color: #fff; }
.tile--c span { display: block; margin-top: 4px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .66); }

.hero-badge {
  position: absolute;
  left: -18px;
  bottom: 84px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px 12px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .96);
  color: var(--ink);
  box-shadow: 0 24px 50px -24px rgba(9, 22, 55, .5);
  animation: floaty 6s ease-in-out infinite;
}
.hero-badge .ic {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: var(--brand-050);
  color: var(--brand);
  flex: none;
}
.hero-badge .ic svg { width: 20px; height: 20px; }
.hero-badge strong { display: block; font-size: 14px; letter-spacing: -.01em; }
.hero-badge span { display: block; font-size: 11.5px; color: var(--muted); }

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

/* Marquee / trust strip */
.trust {
  border-top: 1px solid var(--line-2);
  background: #fff;
  overflow: hidden;
}
.trust-track {
  display: flex;
  align-items: center;
  gap: clamp(28px, 4vw, 56px);
  padding: 22px 0;
  width: max-content;
  animation: scroll-x 34s linear infinite;
}
.trust:hover .trust-track { animation-play-state: paused; }
.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13.5px;
  font-weight: 600;
  color: #46536b;
  white-space: nowrap;
  letter-spacing: .01em;
}
.trust-item svg { width: 17px; height: 17px; color: var(--brand); opacity: .9; }
@keyframes scroll-x {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-1); border-color: #d5ddea; }

.icon-box {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: var(--brand-050);
  color: var(--brand);
  margin-bottom: 18px;
}
.icon-box svg { width: 22px; height: 22px; }
.card h3 { font-size: 17px; margin-bottom: 9px; letter-spacing: -.015em; }
.card p { font-size: 14.5px; color: var(--muted); line-height: 1.7; }

/* Category bento */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.cat-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 320px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #0d1524;
  color: #fff;
  isolation: isolate;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.cat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-2); }
.cat-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease), opacity .4s;
  opacity: .55;
  z-index: -2;
}
.cat-card:hover img { transform: scale(1.06); opacity: .68; }
.cat-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6, 11, 22, .95) 8%, rgba(6, 11, 22, .55) 48%, rgba(6, 11, 22, .2) 100%);
  z-index: -1;
}
.cat-card .cat-body { padding: 24px; }
.cat-card .cat-count {
  display: inline-block;
  font-size: 11.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .62);
  margin-bottom: 10px;
}
.cat-card h3 { color: #fff; font-size: 21px; margin-bottom: 8px; }
.cat-card p { font-size: 13.5px; color: rgba(255, 255, 255, .6); line-height: 1.6; }
.cat-card .cat-arrow {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .2);
  backdrop-filter: blur(6px);
  transition: background .3s, transform .3s var(--ease);
}
.cat-card:hover .cat-arrow { background: var(--brand); transform: rotate(-45deg); }
.cat-card .cat-arrow svg { width: 17px; height: 17px; }

/* ---------- Split (about) ---------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.split-media { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-2); }
.split-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3.2; }
/* 公司门面：完整呈现，不做裁切 */
.facade {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #eef2f7;
  box-shadow: var(--shadow-2);
}
.facade img { display: block; width: 100%; height: auto; }
.split-media .badge-float,
.facade .badge-float {
  position: absolute;
  left: 18px;
  bottom: 18px;
  padding: 14px 20px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  text-align: center;
  box-shadow: 0 16px 34px -18px rgba(8, 14, 28, .6);
}
.badge-float strong { display: block; font-size: 24px; font-weight: 800; letter-spacing: -.03em; color: var(--brand); line-height: 1; }
.badge-float span { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

.check-list { display: grid; gap: 14px; margin-top: 28px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: #2c3748; }
.check-list .tick {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--brand-050);
  color: var(--brand);
  display: grid;
  place-items: center;
  flex: none;
  margin-top: 2px;
}
.check-list .tick svg { width: 12px; height: 12px; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.step {
  position: relative;
  padding: 26px 24px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .09);
  transition: background .3s, border-color .3s, transform .3s var(--ease);
}
.step:hover { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .18); transform: translateY(-4px); }
.step-no {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .18em;
  color: #7fa6ff;
  margin-bottom: 16px;
}
.step h3 { font-size: 16.5px; margin-bottom: 8px; }
.step p { font-size: 14px; line-height: 1.7; color: rgba(255, 255, 255, .55); }

/* ---------- News ---------- */
.news-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .3s;
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-1); border-color: #d5ddea; }
.news-meta { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--muted); }
.news-tag {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--brand-050);
  color: var(--brand);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .04em;
}
.news-card h3 { font-size: 18px; line-height: 1.45; letter-spacing: -.015em; }
.news-card p { font-size: 14.5px; color: var(--muted); line-height: 1.7; }
.news-card .btn-link { margin-top: auto; padding-top: 6px; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(120deg, #0b2a8f, #1653ff 52%, #3f7bff);
  color: #fff;
  padding: clamp(36px, 5vw, 64px);
  isolation: isolate;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .08) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(90% 100% at 90% 0%, #000, transparent 70%);
  mask-image: radial-gradient(90% 100% at 90% 0%, #000, transparent 70%);
  z-index: -1;
}
.cta-band h2 { color: #fff; font-size: clamp(26px, 3.4vw, 42px); letter-spacing: -.03em; max-width: 560px; }
.cta-band p { margin-top: 14px; color: rgba(255, 255, 255, .78); max-width: 520px; font-size: 16px; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 36px; flex-wrap: wrap; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, .58);
  padding: clamp(52px, 6vw, 80px) 0 0;
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: 40px;
  padding-bottom: 52px;
}
.site-footer .brand { color: #fff; margin-bottom: 18px; }
.site-footer h4 {
  color: #fff;
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 18px;
  font-weight: 600;
}
.footer-about p { max-width: 340px; line-height: 1.8; color: rgba(255, 255, 255, .52); }
.footer-links { display: grid; gap: 11px; }
.footer-links a { transition: color .2s, transform .2s; display: inline-block; }
.footer-links a:hover { color: #fff; transform: translateX(3px); }
.footer-contact { display: grid; gap: 12px; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; line-height: 1.6; }
.footer-contact svg { width: 16px; height: 16px; flex: none; margin-top: 3px; color: rgba(255, 255, 255, .4); }
.footer-contact a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: 12.5px;
  color: rgba(255, 255, 255, .4);
}
.footer-bottom a { transition: color .2s; }
.footer-bottom a:hover { color: rgba(255, 255, 255, .85); }

/* ---------- Page hero (inner pages) ---------- */
/* 背景图：公司自有产品实拍拼贴（assets/img/page-hero-bg.jpg），与首页同风格。 */
.page-hero {
  position: relative;
  padding: calc(var(--header-h) + 72px) 0 64px;
  background-color: #f2f5fb;
  background-image:
    linear-gradient(100deg, rgba(244, 247, 252, .88) 0%, rgba(244, 247, 252, .55) 42%, rgba(244, 247, 252, .14) 72%, rgba(244, 247, 252, 0) 100%),
    url("../img/page-hero-bg.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--text);
  overflow: hidden;
  isolation: isolate;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(15, 40, 90, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 40, 90, .05) 1px, transparent 1px);
  background-size: 68px 68px;
  -webkit-mask-image: radial-gradient(90% 80% at 20% 0%, #000, transparent 75%);
  mask-image: radial-gradient(90% 80% at 20% 0%, #000, transparent 75%);
  z-index: -1;
}
.page-hero::after {
  content: "";
  position: absolute;
  top: -40%;
  right: -10%;
  width: 52vw;
  height: 52vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(22, 83, 255, .16), transparent 62%);
  z-index: -1;
}
.page-hero h1 {
  color: var(--ink);
  font-size: clamp(32px, 4.6vw, 56px);
  letter-spacing: -.035em;
  line-height: 1.06;
  margin-top: 18px;
  max-width: 760px;
}
.page-hero p {
  margin-top: 20px;
  max-width: 620px;
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--muted);
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  letter-spacing: .04em;
  color: #8592a8;
}
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb .sep { opacity: .5; }

/* ---------- Products page ---------- */
.filter-bar {
  position: sticky;
  top: var(--header-h);
  z-index: 40;
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line-2);
  padding: 14px 0;
}
.filter-inner { display: flex; align-items: center; gap: 10px 16px; flex-wrap: wrap; }
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  overflow: visible;
  padding-bottom: 0;
  flex: 1 1 620px;
  min-width: 0;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 13.5px;
  font-weight: 500;
  color: #3b475c;
  white-space: nowrap;
  transition: all .25s var(--ease);
}
.chip:hover { border-color: #c3cee0; color: var(--ink); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip .n { font-size: 11.5px; opacity: .55; font-weight: 600; }

.search-box {
  position: relative;
  flex: 0 0 260px;
  align-self: flex-start;
}
.search-box svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--muted);
  pointer-events: none;
}
.search-box input {
  width: 100%;
  height: 40px;
  padding: 0 14px 0 40px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 13.5px;
  font-family: inherit;
  color: var(--text);
  transition: border-color .2s, box-shadow .2s;
}
.search-box input::placeholder { color: #9aa7ba; }
.search-box input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(22, 83, 255, .12);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  width: 100%;
  padding: 0;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .3s;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-1); border-color: #cfdaea; }
.product-thumb {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #fff;
  overflow: hidden;
  border-bottom: 1px solid var(--line-2);
}
.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
  transition: transform .55s var(--ease);
}
.product-card:hover .product-thumb img { transform: scale(1.05); }
.product-thumb .zoom {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, .92);
  border: 1px solid var(--line);
  color: var(--ink);
  opacity: 0;
  transform: scale(.85);
  transition: opacity .25s, transform .25s;
}
.product-card:hover .zoom { opacity: 1; transform: scale(1); }
.product-thumb .zoom svg { width: 15px; height: 15px; }
.product-info {
  padding: 14px 16px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.product-info .p-cat { font-size: 12.5px; color: var(--muted); display: block; margin-bottom: 3px; }
.product-info .p-code { font-size: 14px; font-weight: 700; letter-spacing: .02em; color: var(--ink); }
.product-info .p-go {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--bg-soft);
  color: var(--muted);
  flex: none;
  transition: background .25s, color .25s, transform .25s;
}
.product-card:hover .p-go { background: var(--brand); color: #fff; transform: rotate(-45deg); }
.product-info .p-go svg { width: 14px; height: 14px; }

.empty-state {
  padding: 80px 24px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.empty-state strong { display: block; color: var(--ink); font-size: 16px; margin-bottom: 6px; }

.load-more-wrap { display: flex; justify-content: center; margin-top: 44px; }
.result-count { font-size: 13.5px; color: var(--muted); margin-bottom: 22px; }
.result-count b { color: var(--ink); font-weight: 700; }

/* Other categories note */
.note-card {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  margin-top: 34px;
  padding: 26px 28px;
  border-radius: var(--radius);
  background: var(--bg-soft);
  border: 1px solid var(--line);
}
.note-card .ic {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--brand);
  display: grid;
  place-items: center;
  flex: none;
}
.note-card .ic svg { width: 22px; height: 22px; }
.note-card h3 { font-size: 16px; margin-bottom: 4px; }
.note-card p { font-size: 14px; color: var(--muted); }
.note-card .btn { margin-left: auto; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(6, 11, 22, .72);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, visibility .3s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox-panel {
  width: min(920px, 100%);
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  box-shadow: 0 40px 100px -40px rgba(0, 0, 0, .8);
  transform: translateY(14px) scale(.98);
  transition: transform .35s var(--ease);
}
.lightbox.is-open .lightbox-panel { transform: none; }
.lightbox-media { background: #f7f8fb; display: grid; place-items: center; padding: 28px; }
.lightbox-media img { max-height: 62vh; width: auto; object-fit: contain; }
.lightbox-body { padding: 34px 30px; display: flex; flex-direction: column; }
.lightbox-body .lb-cat { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--brand); font-weight: 600; }
.lightbox-body h3 { margin-top: 10px; font-size: 24px; letter-spacing: -.02em; }
.lightbox-body .lb-code { margin-top: 6px; font-size: 14px; color: var(--muted); letter-spacing: .06em; }
.lightbox-body ul { margin-top: 22px; display: grid; gap: 10px; }
.lightbox-body ul li { font-size: 14px; color: #2c3748; display: flex; gap: 9px; }
.lightbox-body ul li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--brand); margin-top: 9px; flex: none; }
.lightbox-body .btn { margin-top: auto; }
.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .24);
  color: #fff;
  display: grid;
  place-items: center;
}
.lightbox-close:hover { background: rgba(255, 255, 255, .26); }
.lightbox-close svg { width: 18px; height: 18px; }

/* ---------- About page ---------- */
.timeline { position: relative; display: grid; gap: 0; margin-top: 10px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(var(--brand), rgba(22, 83, 255, .1));
}
.tl-item { position: relative; padding: 0 0 34px 40px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--brand);
  box-shadow: 0 0 0 4px rgba(22, 83, 255, .1);
}
.tl-item .yr { font-size: 13px; font-weight: 700; letter-spacing: .1em; color: var(--brand); }
.tl-item h3 { font-size: 17px; margin: 6px 0 6px; }
.tl-item p { font-size: 14.5px; color: var(--muted); line-height: 1.7; }

.stat-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.stat-cell { background: #fff; padding: 30px 24px; }
.stat-cell strong { display: block; font-size: clamp(28px, 3vw, 38px); font-weight: 800; letter-spacing: -.04em; color: var(--ink); line-height: 1; }
.stat-cell span { display: block; margin-top: 8px; font-size: 13px; color: var(--muted); }

.cert-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.cert-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
}
.cert-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.cert-card .cap { padding: 16px 18px; font-size: 14px; font-weight: 600; color: var(--ink); }
.cert-card .cap small { display: block; font-weight: 400; font-size: 12.5px; color: var(--muted); margin-top: 2px; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}
.info-list { display: grid; gap: 14px; }
.info-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px 22px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  transition: border-color .25s, box-shadow .25s;
}
.info-item:hover { border-color: #cfdaea; box-shadow: var(--shadow-1); }
.info-item .ic {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--brand-050);
  color: var(--brand);
  display: grid;
  place-items: center;
  flex: none;
}
.info-item .ic svg { width: 19px; height: 19px; }
.info-item .lbl { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.info-item .val { font-size: 15.5px; font-weight: 600; color: var(--ink); line-height: 1.5; }
.info-item .val a:hover { color: var(--brand); }

.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 38px);
  box-shadow: var(--shadow-1);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 7px; margin-bottom: 16px; }
.field label { font-size: 13px; font-weight: 600; color: #37435a; }
.field label .req { color: var(--accent); }
.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 12px 15px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fbfcfe;
  font-family: inherit;
  font-size: 14.5px;
  color: var(--text);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.field textarea { min-height: 132px; resize: vertical; }
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--brand);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(22, 83, 255, .12);
}
.field input::placeholder,
.field textarea::placeholder { color: #a4b0c2; }
.field.has-error input,
.field.has-error textarea { border-color: #e5484d; box-shadow: 0 0 0 3px rgba(229, 72, 77, .1); }
.err-msg { font-size: 12.5px; color: #e5484d; display: none; }
.field.has-error .err-msg { display: block; }
.form-note { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.form-ok {
  display: none;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding: 13px 16px;
  border-radius: 12px;
  background: #eafaf1;
  color: #137a4b;
  font-size: 14px;
  font-weight: 500;
}
.form-ok.is-shown { display: flex; }
.form-ok svg { width: 17px; height: 17px; flex: none; }

.map-card {
  margin-top: 18px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(140deg, #eef4ff, #f7f9fd);
  padding: 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.map-card .mk { display: flex; gap: 14px; align-items: center; }
.map-card .mk .ic {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  color: var(--brand);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-1);
  flex: none;
}
.map-card h4 { font-size: 15px; margin-bottom: 2px; }
.map-card p { font-size: 13px; color: var(--muted); }

/* ---------- Article ---------- */
.article {
  max-width: 780px;
  margin-inline: auto;
}
.article-header { margin-bottom: 32px; }
.article-header h1 { font-size: clamp(26px, 3.4vw, 40px); letter-spacing: -.03em; line-height: 1.2; margin: 14px 0 18px; }
.article-body { font-size: 16.5px; line-height: 1.9; color: #2b3648; }
.article-body p { margin-bottom: 20px; }
.article-body h3 { font-size: 19px; margin: 34px 0 12px; }
.article-body blockquote {
  margin: 26px 0;
  padding: 20px 24px;
  border-left: 3px solid var(--brand);
  background: var(--bg-soft);
  border-radius: 0 12px 12px 0;
  font-size: 15.5px;
  color: #3b475c;
}
.article-foot {
  margin-top: 44px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .75s var(--ease), transform .75s var(--ease);
  transition-delay: var(--d, 0ms);
}
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { max-width: 560px; }
  .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav { display: none; }
  .nav-toggle { display: grid; }
  .header-actions .btn { display: none; }

  /* mobile drawer */
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px 18px 26px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -30px rgba(8, 14, 28, .5);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .28s, transform .28s var(--ease), visibility .28s;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }
  body.nav-open .nav { transform: none; opacity: 1; visibility: visible; }
  .nav a {
    padding: 13px 14px;
    border-radius: 12px;
    color: var(--text);
    font-size: 15.5px;
    opacity: .9;
  }
  .nav a.is-active { color: var(--brand); background: var(--brand-050); }
  .nav a.is-active::after { display: none; }
  body.nav-open .site-header { background: #fff; color: var(--text); border-bottom-color: var(--line); }
}

@media (max-width: 860px) {
  /* 窄屏文字直接叠在产品背景上，用竖向浅色渐变保证可读性 */
  .hero {
    background-image:
      linear-gradient(180deg, rgba(244, 247, 252, .9) 0%, rgba(244, 247, 252, .74) 50%, rgba(244, 247, 252, .66) 100%),
      url("../img/hero-bg.jpg");
  }
  .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 8px; }
  .split { grid-template-columns: 1fr; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-grid { grid-template-columns: 1fr; }
  .cert-grid { grid-template-columns: 1fr 1fr; }
  .stat-band { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filter-bar { position: static; }
  .filter-inner { display: block; }
  .chips { display: flex; flex-wrap: wrap; gap: 8px; overflow: visible; }
  .chip { height: 34px; padding: 0 13px; font-size: 12.5px; }
  .search-box { margin-top: 10px; }
  .lightbox-panel { grid-template-columns: 1fr; max-height: 88vh; overflow-y: auto; }
  .lightbox-media { padding: 20px; }
  .lightbox-media img { max-height: 40vh; }
  .lightbox-body { padding: 24px; }
  .note-card .btn { margin-left: 0; }
}

@media (max-width: 600px) {
  .container { padding-inline: 18px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: 1fr; }
  .cat-card { min-height: 240px; }
  .steps { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .product-info { padding: 11px 12px 13px; }
  .product-info .p-cat { font-size: 11.5px; }
  .product-info .p-code { font-size: 13px; }
  .cert-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero-badge { left: 6px; bottom: 12px; padding: 10px 14px 10px 10px; }
  .hero-badge strong { font-size: 13px; }
  .section { padding: 56px 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .brand { gap: 12px; }
  .brand-logo { height: 30px; }
  .brand-name-zh { font-size: 16px; letter-spacing: .02em; }
  .brand-name-sub { font-size: 9.5px; letter-spacing: 0; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .filter-bar { padding: 10px 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
