/* ==========================================================================
   浙江浩安信息技术有限公司 — 官网样式表
   配色与图形语汇取自 images/banner.jpg 与公司 Logo，未引入外部依赖。
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. 设计令牌
   -------------------------------------------------------------------------- */
:root {
  /* 品牌色 —— 全部提取自 banner.jpg 与 logo */
  --navy-900: #060f26;
  --navy-800: #0a1633;
  --navy-700: #0f2049;
  --blue-700: #073a78;
  --blue-600: #0a4d9e;
  --blue-500: #1e7fd4;
  --blue-400: #4aa3e8;
  --cyan-400: #50d6f7;
  --violet-500: #6b46c1;

  /* 中性色 */
  --ink-900: #0e1526;
  --ink-700: #26324a;
  --ink-600: #4a5568;
  /* 原为 #8894a8：在白底上 3.07:1、在浅灰底 --paper-alt 上 3.00:1，均不达 AA。
     加深到 #667286 后为 4.87:1 / 4.57:1，仍保持弱化的视觉层级。 */
  --ink-400: #667286;

  /* 品牌按钮/徽标渐变。起点取 #1a72c4 而非 --blue-500：
     白字在 #1E7FD4 上仅 4.17:1，在 #1a72c4 上为 4.94:1，满足 AA。 */
  --grad-brand: linear-gradient(135deg, #1a72c4, var(--blue-600));
  --line: #e3e9f2;
  --paper: #ffffff;
  --paper-alt: #f5f8fc;

  /* 语义色 */
  --brand: var(--blue-600);
  --brand-hover: var(--blue-700);
  --accent: var(--cyan-400);

  /* 排版 */
  --font-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei",
    "Hiragino Sans GB", "Source Han Sans SC", "Noto Sans CJK SC", sans-serif;

  /* 流体字号 */
  --fs-display: clamp(2rem, 1.35rem + 2.9vw, 3.5rem);
  --fs-h1: clamp(1.75rem, 1.3rem + 2vw, 2.75rem);
  --fs-h2: clamp(1.5rem, 1.15rem + 1.5vw, 2.125rem);
  --fs-h3: clamp(1.125rem, 1rem + 0.55vw, 1.375rem);
  --fs-lead: clamp(1rem, 0.94rem + 0.3vw, 1.1875rem);
  --fs-body: 1rem;
  --fs-sm: 0.9375rem;
  --fs-xs: 0.8125rem;

  /* 节奏 */
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section-y: clamp(4rem, 8vw, 7.5rem);
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;

  --shadow-sm: 0 1px 2px rgba(10, 22, 51, 0.06), 0 2px 8px rgba(10, 22, 51, 0.05);
  --shadow: 0 4px 12px rgba(10, 22, 51, 0.07), 0 12px 32px rgba(10, 22, 51, 0.07);
  --shadow-lg: 0 12px 28px rgba(10, 22, 51, 0.12), 0 28px 64px rgba(10, 22, 51, 0.12);

  --header-h: 72px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* --------------------------------------------------------------------------
   2. 重置
   -------------------------------------------------------------------------- */
*,
*::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: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.75;
  color: var(--ink-700);
  background: var(--paper);
  /* 现网使用 overflow-x:hidden 掩盖溢出，这里改为真正消除溢出源 */
  overflow-x: hidden;
}

img,
svg {
  max-width: 100%;
  height: auto;
  display: block;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--ink-900);
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1rem;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--brand);
  text-decoration: none;
  transition: color 0.18s var(--ease);
}

a:hover {
  color: var(--blue-500);
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--cyan-400);
  outline-offset: 2px;
  border-radius: 4px;
}

/* --------------------------------------------------------------------------
   3. 布局工具
   -------------------------------------------------------------------------- */
.container {
  width: min(1180px, 100% - var(--gutter) * 2);
  margin-inline: auto;
}

.section {
  padding-block: var(--section-y);
}

.section--alt {
  background: var(--paper-alt);
}

.section--dark {
  background: var(--navy-800);
  color: rgba(255, 255, 255, 0.82);
}

/* 只让区块标题变白，不要波及深色区块内部的白底组件（如表单卡片的 h3）。
   写成 `.section--dark h3` 会命中卡片内部的标题，把白底上的字也刷成白色。 */
.section--dark .section-head h2,
.section--dark .section-head h3 {
  color: #fff;
}

.section-head {
  max-width: 50rem;
  margin-bottom: clamp(2rem, 4vw, 3.25rem);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  /* blue-500 在浅色底上仅 3.91:1；blue-600 为 8.27:1 */
  color: var(--blue-600);
  margin-bottom: 0.75rem;
}

.section--dark .eyebrow {
  color: var(--cyan-400);
}

.section-head h2 {
  font-size: var(--fs-h2);
  margin-bottom: 0.75rem;
}

.section-head p {
  font-size: var(--fs-lead);
  color: var(--ink-600);
}

.section--dark .section-head p {
  color: rgba(255, 255, 255, 0.72);
}

.lead {
  font-size: var(--fs-lead);
  color: var(--ink-600);
}

/* 标题左侧的品牌短竖线 */
.rule {
  width: 52px;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--blue-600), var(--cyan-400));
  margin-bottom: 1.25rem;
}

.section-head--center .rule {
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  padding: 0.75rem 1.25rem;
  background: var(--blue-600);
  color: #fff;
  border-radius: 0 0 var(--radius-sm) 0;
}

.skip-link:focus {
  left: 0;
  color: #fff;
}

/* --------------------------------------------------------------------------
   4. 按钮
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8125rem 1.75rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: var(--fs-sm);
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.18s var(--ease), background-color 0.18s var(--ease),
    border-color 0.18s var(--ease), box-shadow 0.18s var(--ease), color 0.18s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  background: var(--grad-brand);
  color: #fff;
  box-shadow: 0 6px 18px rgba(30, 127, 212, 0.32);
}

.btn--primary:hover {
  color: #fff;
  box-shadow: 0 10px 26px rgba(30, 127, 212, 0.42);
}

.btn--ghost {
  border-color: rgba(255, 255, 255, 0.32);
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(6px);
}

.btn--ghost:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.12);
}

.btn--outline {
  border-color: var(--line);
  color: var(--ink-900);
  background: var(--paper);
}

.btn--outline:hover {
  color: var(--blue-600);
  border-color: var(--blue-500);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
}

/* --------------------------------------------------------------------------
   5. 页头
   -------------------------------------------------------------------------- */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background-color 0.28s var(--ease), box-shadow 0.28s var(--ease),
    backdrop-filter 0.28s var(--ease);
}

/* 首页 Hero 之上：透明；滚动后或内页：实底 */
.header.is-solid,
.header--solid {
  background: rgba(10, 22, 51, 0.92);
  backdrop-filter: blur(12px) saturate(140%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08), 0 8px 24px rgba(6, 15, 38, 0.28);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  width: min(1180px, 100% - var(--gutter) * 2);
  margin-inline: auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-shrink: 0;
}

.brand:hover {
  color: inherit;
}

.brand__mark {
  width: auto;
  height: 38px;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand__name {
  font-size: 1.0625rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
}

.brand__sub {
  font-size: 0.5625rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
}

.nav {
  margin-left: auto;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav__link {
  display: block;
  padding: 0.5rem 0.8125rem;
  border-radius: 8px;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.78);
  white-space: nowrap;
  transition: color 0.18s var(--ease), background-color 0.18s var(--ease);
}

.nav__link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.09);
}

/* 滚动监听高亮当前区块 */
.nav__link.is-active {
  color: #fff;
}

.nav__link.is-active::after {
  content: "";
  display: block;
  height: 2px;
  margin-top: 4px;
  border-radius: 1px;
  background: linear-gradient(90deg, var(--blue-400), var(--cyan-400));
}

.header__cta {
  flex-shrink: 0;
  padding: 0.625rem 1.25rem;
  font-size: var(--fs-xs);
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 1px;
  background: #fff;
  transition: transform 0.22s var(--ease), opacity 0.22s var(--ease);
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: relative;
}

.nav-toggle__bars::before {
  top: -6px;
}

.nav-toggle__bars::after {
  top: 4px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after {
  transform: translateY(-4px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--navy-800);
  padding-block: calc(var(--header-h) + clamp(3.5rem, 9vw, 7rem)) clamp(3.5rem, 8vw, 6rem);
  isolation: isolate;
}

/* 盾形同心线纹 —— 复刻 banner.jpg 的品牌图形 */
.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto;
  height: 150%;
  z-index: -2;
  background: url("../img/hero-pattern.svg") center / cover no-repeat;
  opacity: 0.85;
}

/* 右下角冷光，避免大面积纯深色发闷 */
.hero::after {
  content: "";
  position: absolute;
  right: -10%;
  bottom: -45%;
  width: min(820px, 85vw);
  aspect-ratio: 1;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(30, 127, 212, 0.42), transparent 68%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  max-width: 54rem;
}

.hero__title {
  font-size: var(--fs-display);
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

.hero__title em {
  font-style: normal;
  background: linear-gradient(100deg, var(--cyan-400), var(--blue-400));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__sub {
  font-size: clamp(1rem, 0.94rem + 0.35vw, 1.1875rem);
  color: rgba(255, 255, 255, 0.76);
  max-width: 44rem;
  margin-bottom: 2rem;
}

.hero__en {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 1.5rem;
}

/* Hero 底部数据条 */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: clamp(2.5rem, 6vw, 4rem);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  overflow: hidden;
}

.stats__item {
  padding: 1.5rem 1.25rem;
  background: rgba(10, 22, 51, 0.55);
  backdrop-filter: blur(6px);
}

.stats__num {
  font-size: clamp(1.375rem, 1.05rem + 1.2vw, 2rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
}

.stats__num span {
  font-size: 0.6em;
  font-weight: 600;
  color: var(--cyan-400);
  margin-left: 0.15em;
}

.stats__label {
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, 0.6);
  margin-top: 0.25rem;
}

/* --------------------------------------------------------------------------
   7. 公司介绍
   -------------------------------------------------------------------------- */
.about {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

/* 右栏副标题：与左栏 h2 共用「装饰线 + 标题」结构，
   两栏标题因此落在同一水平线上（见下方 .rule 的间距约定）。 */
.about__subhead {
  font-size: var(--fs-h3);
  margin-bottom: 1.25rem;
}

.about__body h2 {
  font-size: var(--fs-h2);
  margin-bottom: 1rem;
}

.about__body p {
  font-size: var(--fs-lead);
  color: var(--ink-600);
  margin-bottom: 1.125rem;
}

.about__meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 2rem;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.about__meta div {
  padding: 1.125rem 1.25rem;
  background: var(--paper);
}

.about__meta dt {
  font-size: var(--fs-xs);
  color: var(--ink-400);
  margin-bottom: 0.2rem;
}

.about__meta dd {
  margin: 0;
  font-weight: 600;
  color: var(--ink-900);
}

.field-list {
  display: grid;
  gap: 0.625rem;
}

.field-list__item {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 1rem 1.125rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-weight: 600;
  color: var(--ink-900);
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}

.field-list__item:hover {
  border-color: var(--blue-400);
  transform: translateX(4px);
  box-shadow: var(--shadow-sm);
}

.field-list__icon {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(30, 127, 212, 0.12), rgba(80, 214, 247, 0.14));
  color: var(--blue-600);
}

.field-list__icon svg {
  width: 20px;
  height: 20px;
}

/* --------------------------------------------------------------------------
   8. 产品卡片
   -------------------------------------------------------------------------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 1.5rem;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.875rem 1.75rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.24s var(--ease), box-shadow 0.24s var(--ease),
    border-color 0.24s var(--ease);
  overflow: hidden;
}

/* 顶部渐变描边，悬停时展开 */
.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--blue-600), var(--cyan-400));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.32s var(--ease);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.card:hover::before {
  transform: scaleX(1);
}

.card__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 1.25rem;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--blue-600), var(--blue-500));
  color: #fff;
  box-shadow: 0 6px 16px rgba(10, 77, 158, 0.28);
}

.card__icon svg {
  width: 26px;
  height: 26px;
}

.card__title {
  font-size: var(--fs-h3);
  margin-bottom: 0.625rem;
}

.card__desc {
  font-size: var(--fs-sm);
  color: var(--ink-600);
  margin-bottom: 1.5rem;
}

.card__link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--blue-600);
  align-self: flex-start;
}

.card__link svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s var(--ease);
}

.card:hover .card__link svg {
  transform: translateX(4px);
}

.card--dark {
  background: linear-gradient(150deg, var(--navy-800), var(--navy-700));
  border-color: rgba(255, 255, 255, 0.1);
}

.card--dark .card__title {
  color: #fff;
}

.card--dark .card__desc {
  color: rgba(255, 255, 255, 0.72);
}

.card--dark .card__link {
  color: var(--cyan-400);
}

.card--dark .card__icon {
  background: rgba(255, 255, 255, 0.12);
  box-shadow: none;
}

/* --------------------------------------------------------------------------
   9. 客户案例
   -------------------------------------------------------------------------- */
.logo-wall {
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.logo-wall img {
  width: 100%;
}

/* 独立 Logo 网格。用每格自身的 border 画分隔线，而不是 grid 的 gap 底色——
   否则最后一行不满时，空出来的格子会露出分隔线颜色。 */
.logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.logo-grid__item {
  display: grid;
  place-items: center;
  padding: 1.5rem 1.25rem;
  background: var(--paper);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* Logo 默认即为品牌彩色；悬停只做轻微放大，不改变颜色 */
.logo-grid__item img {
  max-height: 46px;
  max-width: 100%;
  width: auto;
  height: auto;
  transition: transform 0.25s var(--ease);
}

.logo-grid__item:hover img {
  transform: scale(1.06);
}

/* --------------------------------------------------------------------------
   10. 联系我们
   -------------------------------------------------------------------------- */
/* align-items:stretch 让两栏等高；左栏内部用 flex 把二维码压到底部，
   使左右两栏底边对齐，不会在左栏下方留出一大块空白。 */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: stretch;
  justify-content: center;
}

.contact__info {
  display: flex;
  flex-direction: column;
  align-items: center;
  /* 联系信息只有一栏，却落在双栏网格的左栏；跨两列后内容随 align-items: center 居中 */
  grid-column: 1 / -1;
}

.contact__info .contact-list {
  margin-bottom: 1.75rem;
}

.contact-list {
  display: grid;
  gap: 1.125rem;
  width: max-content;
  margin-inline: auto;
}

.contact-list__item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  justify-content: flex-start;
}

.contact-list__icon {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--cyan-400);
}

.contact-list__icon svg {
  width: 20px;
  height: 20px;
}

.contact-list__label {
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 0.15rem;
}

.contact-list__value {
  color: #fff;
  font-weight: 500;
  line-height: 1.6;
}

a.contact-list__value:hover {
  color: var(--cyan-400);
}

/* 表单 */
.form-card {
  padding: clamp(1.5rem, 4vw, 2.25rem);
  background: var(--paper);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

/* 必须显式指定颜色：本卡片是白底，却位于 .section--dark 内，
   而 `.section--dark h3 { color:#fff }` 会让标题变成白字白底、彻底看不见。 */
.form-card__title {
  font-size: var(--fs-h3);
  margin-bottom: 1.25rem;
  color: var(--ink-900);
}

/* 姓名 / 邮箱 并排，电话与需求描述占满整行 —— 比四个字段各占一行紧凑得多 */
.form-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .form-field--full,
  .form-actions {
    grid-column: 1 / -1;
  }
}

.form-field {
  display: grid;
  gap: 0.375rem;
}

.form-field label {
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--ink-600);
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 0.8125rem 1rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper-alt);
  color: var(--ink-900);
  font-size: var(--fs-sm);
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease),
    background-color 0.18s var(--ease);
}

.form-field textarea {
  resize: vertical;
  min-height: 104px;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--ink-400);
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  background: var(--paper);
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(30, 127, 212, 0.14);
}

.form-field.has-error input,
.form-field.has-error textarea {
  border-color: #d94a4a;
  background: #fdf6f6;
}

.form-error {
  font-size: var(--fs-xs);
  color: #c93a3a;
}

/* 没有错误提示时不占位。原来固定留一行 min-height，
   四个字段就白白多出约 68px 高度，把表单撑得比左栏高出一大截。 */
.form-error:empty {
  display: none;
}

.form-note {
  margin-top: 1rem;
  padding: 0.875rem 1rem;
  border-radius: 10px;
  font-size: var(--fs-sm);
  background: rgba(80, 214, 247, 0.12);
  border: 1px solid rgba(30, 127, 212, 0.24);
  color: var(--ink-700);
}

.form-note[hidden] {
  display: none;
}

/* --------------------------------------------------------------------------
   11. 页脚
   -------------------------------------------------------------------------- */
.footer {
  position: relative;
  overflow: hidden;
  background: var(--navy-900);
  color: rgba(255, 255, 255, 0.58);
  padding-block: clamp(2.5rem, 5vw, 3.5rem) 1.75rem;
  font-size: var(--fs-sm);
}

.footer::before {
  content: "";
  position: absolute;
  inset: auto -10% -70% auto;
  width: min(620px, 70vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(107, 70, 193, 0.3), transparent 70%);
  pointer-events: none;
}

.footer__inner {
  position: relative;
}

.footer__top {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer__brand img {
  height: 40px;
  width: auto;
}

.footer__brandname {
  font-size: 1.0625rem;
  font-weight: 700;
  color: #fff;
}

.footer__brandsub {
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, 0.55);
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

.footer__nav a {
  color: rgba(255, 255, 255, 0.68);
  font-size: var(--fs-sm);
}

.footer__nav a:hover {
  color: #fff;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
  padding-top: 1.5rem;
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, 0.55);
}

.footer__bottom a {
  color: rgba(255, 255, 255, 0.62);
}

.footer__bottom a:hover {
  color: #fff;
}

/* --------------------------------------------------------------------------
   12. 产品详情页
   -------------------------------------------------------------------------- */
.page-head {
  position: relative;
  overflow: hidden;
  background: var(--navy-800);
  padding-block: calc(var(--header-h) + clamp(2.5rem, 6vw, 4.5rem)) clamp(2.5rem, 6vw, 4rem);
  isolation: isolate;
}

.page-head::before {
  content: "";
  position: absolute;
  inset: -40% -5% auto auto;
  width: min(760px, 90vw);
  height: 160%;
  z-index: -1;
  background: url("../img/hero-pattern.svg") right center / contain no-repeat;
  opacity: 0.6;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 1.25rem;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.72);
}

.breadcrumb a:hover {
  color: #fff;
}

.breadcrumb span[aria-hidden] {
  color: rgba(255, 255, 255, 0.5);
}

.page-head h1 {
  font-size: var(--fs-h1);
  color: #fff;
  max-width: 34ch;
}

.page-head__lead {
  margin-top: 1rem;
  max-width: 52ch;
  font-size: var(--fs-lead);
  color: rgba(255, 255, 255, 0.74);
}

/* 正文排版 */
.prose > * + * {
  margin-top: 1.125rem;
}

.prose p,
.prose li {
  font-size: var(--fs-lead);
  color: var(--ink-600);
}

.prose strong {
  color: var(--ink-900);
  font-weight: 600;
}

/* 编号要点（对应现网「主要内容」） */
.points {
  display: grid;
  gap: 1.125rem;
}

.points__item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1.125rem;
  padding: 1.5rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.points__num {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--grad-brand);
  color: #fff;
  font-size: var(--fs-sm);
  font-weight: 700;
  flex-shrink: 0;
}

.points__title {
  font-size: var(--fs-h3);
  margin-bottom: 0.375rem;
}

.points__text {
  font-size: var(--fs-sm);
  color: var(--ink-600);
  margin: 0;
}

/* 特点清单（勾选） */
.feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
}

.feature-list__item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.875rem;
  padding: 1.25rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: var(--fs-sm);
  color: var(--ink-600);
}

.feature-list__check {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(30, 127, 212, 0.12);
  color: var(--blue-600);
  margin-top: 2px;
}

.feature-list__check svg {
  width: 14px;
  height: 14px;
}

.feature-list__title {
  display: block;
  font-weight: 600;
  color: var(--ink-900);
  margin-bottom: 0.25rem;
}

/* 深色区块内的清单 */
.section--dark .feature-list__item,
.section--dark .points__item {
  background: rgba(255, 255, 255, 0.055);
  border-color: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.78);
}

.section--dark .feature-list__title,
.section--dark .points__title {
  color: #fff;
}

.section--dark .points__text {
  color: rgba(255, 255, 255, 0.72);
}

/* 架构图容器。宽图在窄屏保留横向滚动——缩到屏宽会让图内文字小到看不清。
   滚动只作用于 .diagram__scroll，figcaption 留在外面，否则说明文字也会被一起滚走。 */
.diagram {
  margin: 0;
  padding: clamp(1rem, 3vw, 2rem);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.diagram__scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}

.diagram__scroll svg,
.diagram__scroll img {
  width: 100%;
  min-width: 640px;
  height: auto;
}

.diagram figcaption {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: var(--fs-xs);
  color: var(--ink-400);
  text-align: center;
}

/* 设备/产品图 */
.figure {
  margin: 0;
  padding: clamp(1.25rem, 4vw, 2.5rem);
  background: linear-gradient(160deg, var(--paper-alt), var(--paper));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  text-align: center;
}

.figure img {
  width: min(560px, 100%);
  margin-inline: auto;
}

.figure figcaption {
  margin-top: 1rem;
  font-size: var(--fs-xs);
  color: var(--ink-400);
}

/* 页尾行动区 */
.cta-band {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--navy-800), var(--blue-700));
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 5vw, 3.25rem);
  isolation: isolate;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: -50% -10% auto auto;
  width: min(560px, 80vw);
  aspect-ratio: 1;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(80, 214, 247, 0.24), transparent 68%);
}

.cta-band h2 {
  color: #fff;
  font-size: var(--fs-h2);
  margin-bottom: 0.625rem;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.74);
  max-width: 46ch;
  margin-bottom: 1.75rem;
}

/* --------------------------------------------------------------------------
   13. 滚动揭示
   -------------------------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
  will-change: opacity, transform;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* --------------------------------------------------------------------------
   14. 响应式
   -------------------------------------------------------------------------- */

/* 导航在 1080px 以下换汉堡菜单（导航项较多） */
@media (max-width: 1080px) {
  .nav-toggle {
    display: flex;
  }

  .header__cta {
    display: none;
  }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto;
    margin: 0;
    padding: 0.75rem var(--gutter) 1.5rem;
    background: rgba(10, 22, 51, 0.98);
    backdrop-filter: blur(14px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 18px 40px rgba(6, 15, 38, 0.4);
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.24s var(--ease), transform 0.24s var(--ease),
      visibility 0.24s var(--ease);
  }

  .nav.is-open {
    transform: none;
    opacity: 1;
    visibility: visible;
  }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0.125rem;
  }

  .nav__link {
    padding: 0.875rem 1rem;
    font-size: 1rem;
    border-radius: 10px;
  }

  .nav__link.is-active::after {
    display: none;
  }

  .nav__link.is-active {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
  }
}

@media (max-width: 992px) {
  .about,
  .contact {
    grid-template-columns: minmax(0, 1fr);
  }

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

@media (max-width: 768px) {
  :root {
    --header-h: 62px;
  }

  .brand__mark {
    height: 32px;
  }

  .card-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .feature-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .about__meta {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer__top,
  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  /* 架构图在窄屏保留横向滚动查看细节，并显示滑动提示 */
  .diagram {
    padding: 0.875rem;
  }

  .diagram__scroll svg,
  .diagram__scroll img {
    min-width: 560px;
  }

  /* ---- 触控目标不小于 44×44，避免手机上难点中 ---- */
  .brand,
  .card__link,
  .breadcrumb a {
    min-height: 44px;
    align-items: center;
  }

  .card__link,
  .breadcrumb a {
    display: inline-flex;
  }

  /* 电话 / 邮箱是可点击的（tel: / mailto:），原来只有 18px 高，
     连 WCAG 2.5.8 的 24px 下限都不到，而「点击拨号」正是手机上的主要操作。 */
  a.contact-list__value,
  .footer__nav a,
  .footer__bottom a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }

  /* 「首页」这类两字面包屑只有 26px 宽，补一点横向内边距（用负外边距抵消，
     视觉位置不变） */
  .breadcrumb a {
    padding-inline: 0.625rem;
    margin-inline: -0.625rem;
  }

  /* 页头英文副标题原本只有 9px，手机上偏小 */
  .brand__sub {
    font-size: 0.6875rem;
  }

  /* iOS Safari 会在聚焦时自动放大字号小于 16px 的输入框，导致页面跳动 */
  .form-field input,
  .form-field textarea {
    font-size: 1rem;
  }
}

@media (max-width: 560px) {
  .stats {
    grid-template-columns: 1fr;
  }

  .points__item {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.75rem;
    padding: 1.25rem;
  }

  .btn {
    width: 100%;
  }

  .btn-row {
    flex-direction: column;
  }


  /* 窄屏固定 3 列，避免 auto-fit 掉到 2 列导致 Logo 过大、行数过多 */
  .logo-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .logo-grid__item {
    padding: 1.125rem 0.75rem;
  }
}

/* 尊重系统的减少动效偏好 */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

/* 打印 */
@media print {
  .header,
  .nav-toggle,
  .cta-band,
  .footer__nav {
    display: none;
  }

  body {
    color: #000;
  }
}
