/* ============================================================
   墨梵智控消防科技（广州）有限公司 — 官网样式
   设计语言：科技蓝渐变 + 卡片化信息架构
   ============================================================ */

/* ---------- 设计变量 ---------- */
:root {
  /* —— 主题色（装修台可一键替换，改这 3 个值即可换整套配色） —— */
  --primary: #165dff;
  --primary-rgb: 22, 93, 255;
  --primary-hover: #0f4ae0;
  --primary-dark: #0e2e8f;

  /* 由主色派生的浅色底（卡片图标底、愿景卡背景等） */
  --primary-soft: #eef3ff;
  --primary-soft-2: #dbe7ff;

  /* 品牌渐变：首屏 / 联系区块 / 时间轴圆标 */
  --grad-hero: linear-gradient(112deg, #2f6dff 0%, #165dff 34%, #1244cf 70%, #0e2e8f 100%);
  --grad-contact: linear-gradient(135deg, #1a63ff 0%, #1445d6 52%, #0e2e8f 100%);
  --grad-badge: linear-gradient(135deg, #165dff, #0e2e8f);

  --ink: #111827;
  --text: #4b5563;
  --muted: #6b7280;
  --faint: #9ca3af;

  --bg: #ffffff;
  --bg-soft: #f9fafb;
  --line: #e5e7eb;
  --line-soft: #f1f2f4;

  --container: 1216px;
  --header-h: 76px;

  --shadow-xs: 0 1px 2px rgba(16, 24, 40, .05);
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .04), 0 8px 20px rgba(16, 24, 40, .04);
  --shadow-md: 0 6px 16px rgba(16, 24, 40, .06), 0 18px 36px rgba(16, 24, 40, .07);
  --shadow-lg: 0 18px 40px rgba(16, 24, 40, .14);

  --ease: cubic-bezier(.22, .61, .36, 1);
  --r-lg: 16px;
  --r-md: 14px;
  --r-sm: 12px;
}

/* ---------- 基础重置 ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 700; color: var(--ink); }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }

/* 图标：统一使用内联 SVG 精灵 */
.icon {
  width: 1em;
  height: 1em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- 布局 ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 100px 0; }
.section--soft { background: var(--bg-soft); }

.section-head {
  max-width: 860px;
  margin: 0 auto 64px;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(1.65rem, 2.9vw, 2.5rem);
  font-weight: 700;
  letter-spacing: .01em;
  line-height: 1.3;
}

.section-head .divider {
  width: 84px;
  height: 3px;
  border-radius: 2px;
  background: var(--primary);
  margin: 18px auto 0;
}

.section-head p {
  margin-top: 22px;
  font-size: 16px;
  line-height: 1.8;
  color: var(--muted);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  border-radius: 8px;
  white-space: nowrap;
  transition: background-color .25s var(--ease), transform .25s var(--ease),
    box-shadow .25s var(--ease), color .25s var(--ease);
}

.btn .icon { width: 16px; height: 16px; }

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 6px 16px rgba(var(--primary-rgb), .28);
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(var(--primary-rgb), .34);
}

.btn-glass {
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .42);
  color: #fff;
  backdrop-filter: blur(4px);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, .26);
  transform: translateY(-1px);
}

.btn-white {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 10px 22px rgba(6, 20, 60, .18);
}

.btn-white:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(6, 20, 60, .24);
}

/* ---------- 顶部导航 ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s var(--ease), border-color .3s var(--ease);
}

.site-header.is-scrolled {
  box-shadow: 0 2px 20px rgba(16, 24, 40, .08);
  border-bottom-color: var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.brand-mark { width: 44px; height: 44px; flex: none; }

.brand-text { display: flex; flex-direction: column; line-height: 1.3; }

.brand-name {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: .04em;
  color: var(--primary);
}

.brand-sub {
  font-size: 12.5px;
  font-weight: 500;
  color: #374151;
  letter-spacing: .01em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav a {
  position: relative;
  padding: 6px 0;
  font-size: 15px;
  font-weight: 500;
  color: #374151;
  transition: color .2s var(--ease);
}

.nav a:hover,
.nav a.is-active { color: var(--primary); }

.nav a.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -8px;
  width: 18px;
  height: 3px;
  margin-left: -9px;
  border-radius: 2px;
  background: var(--primary);
}

.header-cta { flex: none; }

/* 汉堡按钮 */
.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  color: var(--ink);
  place-items: center;
}

.nav-toggle .icon { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-menu { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* 移动端抽屉 */
.mobile-panel {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  z-index: 99;
  padding: 12px 24px 26px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 18px 30px rgba(16, 24, 40, .12);
  display: none;
}

.mobile-panel.is-open { display: block; }

.mobile-panel a {
  display: block;
  padding: 14px 4px;
  font-size: 16px;
  color: #374151;
  border-bottom: 1px solid var(--line-soft);
}

.mobile-panel a.is-active { color: var(--primary); font-weight: 600; }

.mobile-panel .btn {
  width: 100%;
  margin-top: 18px;
}

/* ---------- 首屏 ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: calc(var(--header-h) + 96px) 0 208px;
  text-align: center;
  color: #fff;
  background: var(--grad-hero);
}

/* 顶部柔光 + 网格纹理，增强科技感 */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(720px 380px at 22% 8%, rgba(255, 255, 255, .22), transparent 62%),
    radial-gradient(520px 320px at 82% 92%, rgba(6, 26, 90, .35), transparent 68%),
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px) 0 0 / 100% 44px,
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px) 0 0 / 44px 100%;
  mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
}

/* 底部过渡到白色 */
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 200px;
  background: linear-gradient(180deg,
      rgba(248, 250, 253, 0) 0%,
      rgba(248, 250, 253, .55) 45%,
      #fafbfe 72%,
      #fff 100%);
  pointer-events: none;
}

.hero-inner { position: relative; z-index: 1; }

.hero h1 {
  margin-bottom: 26px;
  font-size: clamp(2.1rem, 4.4vw, 3.5rem);
  font-weight: 800;
  line-height: 1.26;
  letter-spacing: .02em;
  color: #fff;
  text-shadow: 0 6px 22px rgba(6, 20, 60, .18);
}

.hero-lead {
  font-size: clamp(1rem, 1.35vw, 1.16rem);
  line-height: 2.05;
  font-weight: 400;
  color: rgba(255, 255, 255, .93);
}

.hero-lead span { display: block; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 46px;
}

.hero-actions .btn { padding: 12px 24px; }

/* ---------- 产品中心 ---------- */
.product-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease),
    border-color .35s var(--ease);
}

.product-card:hover {
  transform: translateY(-6px);
  border-color: #dfe6f5;
  box-shadow: var(--shadow-md);
}

.product-media {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: #0b1220;
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}

.product-card:hover .product-media img { transform: scale(1.045); }

.product-body { padding: 26px 26px 30px; }

.icon-badge {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--primary);
}

.icon-badge .icon { width: 22px; height: 22px; }

.product-card h3 {
  margin-bottom: 10px;
  font-size: 18px;
  font-weight: 700;
}

.product-card p {
  font-size: 14px;
  line-height: 1.78;
  color: var(--muted);
}

/* ---------- 解决方案 ---------- */
.solution-card {
  padding: 26px;
  background: #fff;
  border: 1px solid #eef0f3;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-xs);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease),
    border-color .35s var(--ease);
}

.solution-card:hover {
  transform: translateY(-4px);
  border-color: #dde6f8;
  box-shadow: var(--shadow-md);
}

.solution-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.solution-ico {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 10px;
  background: var(--primary-soft);
  color: var(--primary);
}

.solution-ico .icon { width: 19px; height: 19px; }

.solution-card h3 {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
}

.solution-card > p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
}

.solution-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.solution-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--muted);
}

.solution-list .icon {
  width: 14px;
  height: 14px;
  margin-top: 4px;
  color: var(--primary);
  stroke-width: 2.6;
}

/* ---------- 应用案例 ---------- */
.cases-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 24px;
}

/* 重点项目大卡片占左侧整列、纵向跨两行 */
.case-main {
  position: relative;
  grid-column: 1;
  grid-row: 1 / 3;
  min-height: 380px;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: #0b1220;
  box-shadow: var(--shadow-sm);
}

.case-main img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s var(--ease);
}

.case-main:hover img { transform: scale(1.04); }

.case-overlay {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  padding: 34px;
  background: linear-gradient(180deg,
      rgba(8, 14, 26, 0) 34%,
      rgba(8, 14, 26, .5) 60%,
      rgba(8, 14, 26, .93) 100%);
}

.case-tag {
  margin-bottom: 8px;
  font-size: 12.5px;
  font-weight: 500;
  color: #85afff;
  letter-spacing: .02em;
}

.case-overlay h3 {
  margin-bottom: 10px;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  line-height: 1.4;
}

.case-overlay p {
  font-size: 14px;
  line-height: 1.75;
  color: rgba(255, 255, 255, .82);
}

.case-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-xs);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}

.case-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.case-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.case-card-body { padding: 18px 20px 22px; }

.case-card-body h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
}

.case-card-body p {
  font-size: 13px;
  line-height: 1.65;
  color: var(--muted);
}

/* ---------- 关于我们 ---------- */
.about-card {
  padding: 44px;
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}

.about-card > h2 {
  margin-bottom: 26px;
  font-size: 20px;
  font-weight: 700;
}

.about-card h3 {
  margin: 28px 0 14px;
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
}

.about-card h3:first-of-type { margin-top: 0; }

.about-card p {
  margin-bottom: 14px;
  font-size: 14px;
  line-height: 1.95;
  color: var(--text);
  text-align: justify;
}

.about-card p:last-child { margin-bottom: 0; }

.vision-title {
  margin: 44px 0 24px;
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
}

.vision-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.vision-item {
  padding: 24px;
  border-radius: var(--r-sm);
  background: var(--primary-soft);
  border: 1px solid #e2ebff;
}

.vision-ico {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--primary-soft-2);
  color: var(--primary);
}

.vision-ico .icon { width: 19px; height: 19px; }

.vision-item h4 {
  margin-bottom: 6px;
  font-size: 15px;
  font-weight: 700;
}

.vision-item p {
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

/* 数据指标 */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin-top: 28px;
}

.stat {
  padding: 26px 18px;
  text-align: center;
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-sm);
  box-shadow: var(--shadow-xs);
}

.stat-num {
  display: block;
  font-size: 34px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--primary);
  letter-spacing: -.01em;
}

.stat-label {
  display: block;
  margin-top: 8px;
  font-size: 14px;
  color: var(--muted);
}

/* 发展历程 */
.timeline-card {
  margin-top: 28px;
  padding: 44px;
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}

.timeline-card > h2 {
  margin-bottom: 44px;
  font-size: 20px;
  font-weight: 700;
}

.timeline-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
}

.tl-badge {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  margin: 0 auto 22px;
  border-radius: 50%;
  background: var(--grad-badge);
  color: #fff;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  box-shadow: 0 10px 22px rgba(var(--primary-rgb), .28);
}

.tl-title {
  margin-bottom: 18px;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
}

.tl-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--muted);
}

.tl-list .icon {
  width: 14px;
  height: 14px;
  margin-top: 3px;
  color: var(--primary);
  stroke-width: 2.6;
}

/* 荣誉资质 */
.honor-title {
  margin: 76px 0 40px;
  font-size: 24px;
  font-weight: 700;
  text-align: center;
}

.honor-sub {
  margin-bottom: 24px;
  font-size: 17px;
  font-weight: 600;
  text-align: center;
  color: var(--ink);
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.cert {
  display: grid;
  place-items: center;
  height: 128px;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-sm);
  box-shadow: var(--shadow-xs);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}

.cert:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.cert img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.lab-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 8px;
}

.lab-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-xs);
}

.lab-card img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.lab-card-body { padding: 24px; }

.lab-card-body h4 {
  margin-bottom: 8px;
  font-size: 16px;
  font-weight: 700;
}

.lab-card-body p {
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

/* 合作伙伴 */
.partners {
  margin-top: 28px;
  padding: 40px 56px 46px;
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}

.partners h3 {
  margin-bottom: 36px;
  font-size: 20px;
  font-weight: 700;
  text-align: center;
}

.logo-wall {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 24px;
  align-items: center;
  justify-items: center;
}

.logo-item {
  display: flex;
  align-items: center;
  gap: 8px;
  filter: grayscale(1);
  opacity: .72;
  transition: filter .3s var(--ease), opacity .3s var(--ease);
}

.logo-item:hover { filter: grayscale(0); opacity: 1; }

.logo-item .mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 8px;
  background: #eef2f7;
  color: #64748b;
  font-size: 14px;
  font-weight: 800;
}

.logo-item .txt { line-height: 1.2; }

.logo-item .txt strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #475569;
  letter-spacing: .02em;
}

.logo-item .txt small {
  display: block;
  font-size: 9px;
  letter-spacing: .12em;
  color: #94a3b8;
  text-transform: uppercase;
}

/* ---------- 联系我们 ---------- */
.contact {
  position: relative;
  overflow: hidden;
  padding: 100px 0 96px;
  text-align: center;
  color: #fff;
  background: var(--grad-contact);
}

.contact::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 340px at 18% 0%, rgba(255, 255, 255, .16), transparent 65%),
    radial-gradient(520px 320px at 88% 100%, rgba(4, 20, 70, .35), transparent 70%);
  pointer-events: none;
}

.contact .container { position: relative; }

.contact h2 {
  font-size: clamp(1.7rem, 3vw, 2.25rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: .02em;
}

.contact .divider {
  width: 84px;
  height: 3px;
  margin: 18px auto 0;
  border-radius: 2px;
  background: rgba(255, 255, 255, .92);
}

.contact-lead {
  max-width: 760px;
  margin: 24px auto 0;
  font-size: 16px;
  line-height: 1.85;
  color: rgba(255, 255, 255, .92);
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  max-width: 880px;
  margin: 56px auto 0;
}

.contact-card {
  padding: 34px 28px;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: var(--r-lg);
  backdrop-filter: blur(6px);
  transition: background-color .3s var(--ease), transform .3s var(--ease);
}

.contact-card:hover {
  background: rgba(255, 255, 255, .18);
  transform: translateY(-3px);
}

.contact-ico {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .18);
}

.contact-ico .icon { width: 20px; height: 20px; }

.contact-card h3 {
  margin-bottom: 10px;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
}

.contact-card p {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255, 255, 255, .93);
  word-break: break-word;
}

.contact-card a { transition: opacity .2s var(--ease); }
.contact-card a:hover { opacity: .82; text-decoration: underline; }

.qr-block { margin-top: 56px; }

.qr-block img {
  width: 132px;
  height: 132px;
  margin: 0 auto;
  padding: 8px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 12px 26px rgba(4, 20, 70, .25);
}

.qr-block span {
  display: block;
  margin-top: 14px;
  font-size: 13px;
  color: rgba(255, 255, 255, .86);
  letter-spacing: .04em;
}

/* ---------- 页脚 ---------- */
.footer {
  padding-top: 64px;
  background: #0f172a;
  color: #94a3b8;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.25fr;
  gap: 48px;
  padding-bottom: 52px;
}

.footer-brand .brand { gap: 12px; }

.footer-brand .brand-name { color: #fff; font-size: 17px; }

.footer-brand .brand-sub { color: #cbd5e1; }

.footer-desc {
  max-width: 330px;
  margin: 20px 0 24px;
  font-size: 13px;
  line-height: 1.95;
  color: #94a3b8;
}

.socials { display: flex; gap: 12px; }

.socials a {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  color: #cbd5e1;
  transition: background-color .25s var(--ease), color .25s var(--ease),
    transform .25s var(--ease);
}

.socials a:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}

.socials .icon { width: 16px; height: 16px; }

.footer h4 {
  margin-bottom: 22px;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}

.footer-links a {
  display: block;
  padding: 7px 0;
  font-size: 14px;
  color: #94a3b8;
  transition: color .2s var(--ease);
}

.footer-links a:hover { color: #fff; }

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 14px;
  line-height: 1.65;
  color: #94a3b8;
}

.footer-contact .icon {
  width: 16px;
  height: 16px;
  margin-top: 3px;
  color: #4d84ff;
  stroke-width: 2;
}

.footer-contact a:hover { color: #fff; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: 13px;
  color: #64748b;
}

.footer-bottom .legal { display: flex; flex-wrap: wrap; gap: 8px 18px; }

.footer-bottom a { transition: color .2s var(--ease); }
.footer-bottom a:hover { color: #cbd5e1; }

/* ---------- 条款类单页 ---------- */
.legal-page {
  max-width: 880px;
  margin: 0 auto;
  padding: calc(var(--header-h) + 72px) 24px 96px;
}

.legal-page h1 {
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: 14px;
}

.legal-meta {
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  color: var(--faint);
}

.legal-page h2 {
  margin: 34px 0 12px;
  font-size: 18px;
  font-weight: 700;
}

.legal-page p,
.legal-page li {
  margin-bottom: 12px;
  font-size: 15px;
  line-height: 1.95;
  color: var(--text);
}

.legal-page ul {
  padding-left: 20px;
  list-style: disc;
}

.legal-page a { color: var(--primary); }
.legal-page a:hover { text-decoration: underline; }

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 40px;
  font-size: 15px;
  color: var(--primary);
}

/* ---------- 回到顶部 ---------- */
.to-top {
  position: fixed;
  right: 26px;
  bottom: 26px;
  z-index: 90;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  box-shadow: 0 10px 24px rgba(var(--primary-rgb), .35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .3s var(--ease), transform .3s var(--ease),
    visibility .3s var(--ease), background-color .2s var(--ease);
}

.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }

.to-top:hover { background: var(--primary-hover); }

.to-top .icon { width: 20px; height: 20px; }

/* ---------- 滚动入场动画 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  will-change: opacity, transform;
}

.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .reveal { opacity: 1; transform: none; transition: none; }

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
}

/* ---------- 焦点可见性（无障碍） ---------- */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 6px;
}

.hero a:focus-visible,
.contact a:focus-visible,
.footer a:focus-visible,
.to-top:focus-visible {
  outline-color: #fff;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1180px) {
  .nav { gap: 26px; }
  .logo-wall { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
}

@media (max-width: 1024px) {
  :root { --header-h: 68px; }

  .nav,
  .header-cta { display: none; }

  .nav-toggle { display: grid; }

  .brand-mark { width: 40px; height: 40px; }

  .section { padding: 80px 0; }

  .section-head { margin-bottom: 48px; }

  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }

  .cases-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .case-main {
    grid-column: 1 / -1;
    grid-row: auto;
    min-height: 320px;
  }

  .about-card,
  .timeline-card { padding: 32px 26px; }

  .timeline-grid { gap: 32px; }

  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .cert-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px; }

  .partners { padding: 32px 28px 36px; }

  .hero { padding-top: calc(var(--header-h) + 76px); padding-bottom: 176px; }
}

@media (max-width: 420px) {
  .hero h1 { font-size: 1.85rem; }
  .hero-lead { font-size: .95rem; line-height: 1.9; }
  .hero-actions .btn { padding: 11px 16px; font-size: 14px; }
  .brand-sub { font-size: 11.5px; }
}

@media (max-width: 720px) {
  .container { padding: 0 20px; }

  .hero h1 { letter-spacing: .01em; }

  .hero-actions { gap: 12px; }

  .hero-actions .btn { flex: 1 1 auto; min-width: 140px; }

  .grid-3,
  .vision-grid,
  .cases-grid,
  .contact-cards,
  .lab-grid,
  .timeline-grid { grid-template-columns: minmax(0, 1fr); }

  .case-main {
    grid-column: 1;
    grid-row: auto;
    min-height: 280px;
  }

  .case-overlay { padding: 24px; }

  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }

  .stat { padding: 20px 12px; }

  .stat-num { font-size: 27px; }

  .cert-grid { gap: 14px; }

  .cert { height: 108px; }

  .logo-wall { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }

  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 30px; }

  .footer-bottom { flex-direction: column; align-items: flex-start; }

  .about-card p { text-align: left; }

  .contact { padding: 76px 0; }

  .qr-block { margin-top: 44px; }

  .to-top { right: 16px; bottom: 16px; width: 40px; height: 40px; }
}
