/* =========================================================
   乐清市英杰电气有限公司 — 企业官网样式
   设计基调：简约大气 / 留白 / 企业蓝主色调 / 响应式
   修改主色调只需调整 :root 中的 CSS 变量即可全局生效
   ========================================================= */

/* ---------- 设计令牌（Design Tokens） ---------- */
:root {
  /* 企业主色调 —— 改这里即可换肤 */
  --primary:        #0E4DA4;   /* 企业主蓝 */
  --primary-dark:   #0A2E63;   /* 深蓝（渐变/页脚） */
  --primary-light:  #E8F1FC;   /* 浅蓝底 */
  --accent:         #18A0FB;   /* 亮蓝点缀 */
  --accent-warm:    #FF8A3D;   /* 暖橙 CTA 强调（可选） */

  /* 中性色 */
  --bg:             #FFFFFF;
  --bg-alt:         #F4F7FB;   /* 浅灰蓝底 */
  --text:           #1A2233;   /* 主文字 */
  --text-light:     #5B677B;   /* 次级文字 */
  --border:         #E3E9F2;   /* 描边 */

  /* 尺寸 */
  --container:      1200px;
  --radius:         14px;
  --radius-sm:      8px;
  --shadow:         0 10px 30px rgba(14, 77, 164, 0.08);
  --shadow-hover:   0 18px 44px rgba(14, 77, 164, 0.16);
  --header-h:       72px;

  --ease:           cubic-bezier(.22,.61,.36,1);
}

/* ---------- 重置 ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB",
               -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; font-size: 16px; }

/* ---------- 布局容器 ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}
.section { padding: 96px 0; }
.section--alt { background: var(--bg-alt); }
.section__head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}
.eyebrow {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 14px;
  text-transform: uppercase;
}
.section__title {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: .5px;
}
.section__sub {
  margin-top: 16px;
  color: var(--text-light);
  font-size: 17px;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
  white-space: nowrap;
}
.btn--primary { background: var(--primary); color: #fff; box-shadow: 0 8px 20px rgba(14,77,164,.28); }
.btn--primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.btn--ghost { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.4); }
.btn--ghost:hover { background: rgba(255,255,255,.22); transform: translateY(-2px); }
.btn--outline { background: #fff; color: var(--primary); border: 1.5px solid var(--primary); }
.btn--outline:hover { background: var(--primary-light); transform: translateY(-2px); }
.btn--block { width: 100%; justify-content: center; }

/* ---------- 顶部导航 ---------- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  z-index: 100;
  transition: box-shadow .3s, border-color .3s;
}
.header.is-scrolled { box-shadow: 0 4px 24px rgba(10,46,99,.08); border-color: var(--border); }
.nav {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand__mark {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: grid; place-items: center;
  color: #fff; font-weight: 800; font-size: 18px;
  box-shadow: 0 6px 16px rgba(14,77,164,.35);
}
.brand__name { font-weight: 800; font-size: 17px; line-height: 1.2; }
.brand__name small { display: block; font-weight: 500; font-size: 11px; color: var(--text-light); letter-spacing: 1px; }

.nav__links { display: flex; align-items: center; gap: 6px; }
.nav__links a {
  position: relative;
  padding: 8px 16px;
  font-weight: 500;
  color: var(--text);
  border-radius: 8px;
  transition: color .2s, background .2s;
}
.nav__links a::after {
  content: "";
  position: absolute; left: 16px; right: 16px; bottom: 2px;
  height: 2px; border-radius: 2px;
  background: var(--primary);
  transform: scaleX(0); transform-origin: left;
  transition: transform .25s var(--ease);
}
.nav__links a:hover { color: var(--primary); }
.nav__links a.is-active { color: var(--primary); font-weight: 700; }
.nav__links a.is-active::after,
.nav__links a:hover::after { transform: scaleX(1); }
.nav__cta { margin-left: 8px; }

.nav__toggle {
  display: none;
  width: 44px; height: 44px;
  border-radius: 10px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.nav__toggle span {
  width: 22px; height: 2px; background: var(--text); border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.nav__toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 通用页眉（非首页内页横幅） ---------- */
.page-hero {
  position: relative;
  padding: calc(var(--header-h) + 80px) 0 90px;
  background:
    radial-gradient(900px 400px at 80% -10%, rgba(24,160,251,.35), transparent 60%),
    linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at 50% 30%, #000, transparent 75%);
}
.page-hero .container { position: relative; }
.page-hero__eyebrow { color: rgba(255,255,255,.75); letter-spacing: 3px; font-size: 13px; font-weight: 600; }
.page-hero__title { font-size: clamp(30px, 5vw, 48px); font-weight: 800; margin-top: 12px; }
.page-hero__desc { margin-top: 16px; max-width: 640px; color: rgba(255,255,255,.85); font-size: 17px; }

/* ---------- 首页 Hero ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 40px) 0 80px;
  color: #fff;
  background:
    radial-gradient(1000px 500px at 85% 0%, rgba(24,160,251,.45), transparent 55%),
    radial-gradient(800px 500px at 0% 100%, rgba(14,77,164,.6), transparent 55%),
    linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(circle at 30% 40%, #000, transparent 78%);
  mask-image: radial-gradient(circle at 30% 40%, #000, transparent 78%);
}
.hero__inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; width: 100%; }
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 16px; border-radius: 999px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25);
  font-size: 13px; letter-spacing: 1px; font-weight: 600; margin-bottom: 24px;
}
.hero__title { font-size: clamp(32px, 5.4vw, 56px); font-weight: 800; line-height: 1.18; letter-spacing: .5px; }
.hero__title .hl { color: var(--accent); }
.hero__desc { margin-top: 22px; font-size: 18px; color: rgba(255,255,255,.86); max-width: 520px; }
.hero__actions { margin-top: 36px; display: flex; gap: 16px; flex-wrap: wrap; }
.hero__stats { margin-top: 48px; display: flex; gap: 40px; flex-wrap: wrap; }
.hero__stat .num { font-size: 34px; font-weight: 800; color: #fff; }
.hero__stat .label { font-size: 14px; color: rgba(255,255,255,.75); }

/* Hero 视觉卡 */
.hero__visual { position: relative; }
.hero__card {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 20px;
  padding: 26px;
  backdrop-filter: blur(8px);
  box-shadow: 0 30px 60px rgba(0,0,0,.25);
}
.hero__card h3 { font-size: 16px; font-weight: 700; margin-bottom: 18px; color: #fff; }
.hero__card .row { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid rgba(255,255,255,.12); }
.hero__card .row:first-of-type { border-top: none; }
.hero__card .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); flex: none; box-shadow: 0 0 0 4px rgba(24,160,251,.25); }
.hero__card .row b { display: block; font-size: 15px; }
.hero__card .row span { font-size: 13px; color: rgba(255,255,255,.7); }

/* ---------- 卡片网格 ---------- */
.grid { display: grid; gap: 28px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 28px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); border-color: transparent; }

/* 优势卡 */
.adv__icon {
  width: 60px; height: 60px; border-radius: 14px;
  background: var(--primary-light); color: var(--primary);
  display: grid; place-items: center; margin-bottom: 20px;
  transition: background .3s, color .3s;
}
.card:hover .adv__icon { background: var(--primary); color: #fff; }
.adv__icon svg { width: 30px; height: 30px; }
.adv__title { font-size: 19px; font-weight: 700; margin-bottom: 10px; }
.adv__desc { color: var(--text-light); font-size: 15px; }

/* ---------- 客户 Logo 墙 ---------- */
.logos {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
  align-items: center;
}
.logos__item {
  display: grid; place-items: center;
  height: 86px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  filter: grayscale(1);
  opacity: .65;
  transition: filter .3s, opacity .3s, transform .3s, box-shadow .3s;
}
.logos__item:hover { filter: none; opacity: 1; transform: translateY(-3px); box-shadow: var(--shadow); }
.logos__item svg { height: 30px; width: auto; }

/* ---------- 关于我们 ---------- */
.about__intro { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about__intro h2 { font-size: clamp(26px, 3.5vw, 34px); font-weight: 800; line-height: 1.3; }
.about__intro p { margin-top: 18px; color: var(--text-light); font-size: 16px; }
.about__intro .lead { color: var(--text); font-size: 17px; }
.about__media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 360px;
  background:
    radial-gradient(600px 300px at 70% 20%, rgba(24,160,251,.4), transparent 60%),
    linear-gradient(135deg, var(--primary-dark), var(--primary));
  display: grid; place-items: center;
}
.about__media .badge {
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3);
  color: #fff; padding: 14px 22px; border-radius: 14px; text-align: center;
  backdrop-filter: blur(6px);
}
.about__media .badge .n { font-size: 40px; font-weight: 800; display: block; }
.about__media .badge .t { font-size: 14px; opacity: .9; }

/* 时间线 */
.timeline { position: relative; max-width: 880px; margin: 0 auto; padding-left: 0; }
.timeline::before {
  content: ""; position: absolute; left: 50%; top: 0; bottom: 0;
  width: 2px; background: var(--border); transform: translateX(-50%);
}
.tl-item { position: relative; width: 50%; padding: 0 40px 44px; }
.tl-item:nth-child(odd) { left: 0; text-align: right; }
.tl-item:nth-child(even) { left: 50%; }
.tl-item::after {
  content: ""; position: absolute; top: 6px;
  width: 16px; height: 16px; border-radius: 50%;
  background: #fff; border: 3px solid var(--primary);
  box-shadow: 0 0 0 4px var(--primary-light);
}
.tl-item:nth-child(odd)::after { right: -8px; }
.tl-item:nth-child(even)::after { left: -8px; }
.tl-year { font-size: 22px; font-weight: 800; color: var(--primary); }
.tl-title { font-weight: 700; margin: 4px 0 6px; font-size: 16px; }
.tl-desc { color: var(--text-light); font-size: 14px; }

/* 团队 */
.team-card { text-align: center; padding: 32px 22px; }
.team-card__avatar {
  width: 96px; height: 96px; border-radius: 50%;
  margin: 0 auto 18px;
  background: linear-gradient(135deg, var(--primary-light), #fff);
  border: 3px solid var(--primary-light);
  display: grid; place-items: center;
  color: var(--primary); font-size: 30px; font-weight: 800;
  overflow: hidden;
}
.team-card__avatar img { width: 100%; height: 100%; object-fit: cover; }
.team-card__name { font-size: 18px; font-weight: 700; }
.team-card__role { color: var(--accent); font-size: 14px; font-weight: 600; margin: 4px 0 10px; }
.team-card__bio { color: var(--text-light); font-size: 14px; }

/* 文化 */
.culture-card { text-align: center; padding: 36px 24px; }
.culture-card .ico {
  width: 56px; height: 56px; margin: 0 auto 18px; border-radius: 14px;
  background: var(--primary-light); color: var(--primary);
  display: grid; place-items: center;
}
.culture-card .ico svg { width: 28px; height: 28px; }
.culture-card h4 { font-size: 19px; font-weight: 700; margin-bottom: 10px; }
.culture-card p { color: var(--text-light); font-size: 15px; }

/* ---------- 产品服务 ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-bottom: 48px; }
.filter-btn {
  padding: 10px 22px; border-radius: 999px;
  border: 1.5px solid var(--border); background: #fff; color: var(--text-light);
  font-weight: 600; font-size: 14px; transition: all .25s var(--ease);
}
.filter-btn:hover { border-color: var(--primary); color: var(--primary); }
.filter-btn.is-active { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 8px 18px rgba(14,77,164,.25); }

.product-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px 26px; display: flex; flex-direction: column;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); border-color: transparent; }
.product-card__icon {
  width: 64px; height: 64px; border-radius: 16px;
  background: var(--primary-light); color: var(--primary);
  display: grid; place-items: center; margin-bottom: 20px;
}
.product-card__icon svg { width: 32px; height: 32px; }
.product-card__cat { font-size: 12px; font-weight: 700; letter-spacing: 1px; color: var(--accent); text-transform: uppercase; }
.product-card__name { font-size: 19px; font-weight: 700; margin: 6px 0 10px; }
.product-card__desc { color: var(--text-light); font-size: 15px; flex: 1; }
.product-card__more {
  margin-top: 20px; align-self: flex-start;
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--primary); font-weight: 700; font-size: 14px;
  transition: gap .25s;
}
.product-card__more:hover { gap: 12px; }

/* 产品详情弹窗 */
.modal {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center; padding: 24px;
  background: rgba(10,46,99,.55); backdrop-filter: blur(4px);
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
}
.modal.is-open { opacity: 1; visibility: visible; }
.modal__box {
  background: #fff; border-radius: 18px; max-width: 560px; width: 100%;
  max-height: 86vh; overflow-y: auto; padding: 36px;
  transform: translateY(20px); transition: transform .35s var(--ease);
}
.modal.is-open .modal__box { transform: translateY(0); }
.modal__close {
  position: absolute; top: 18px; right: 18px;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--bg-alt); color: var(--text); font-size: 20px;
  display: grid; place-items: center; transition: background .2s;
}
.modal__close:hover { background: var(--border); }
.modal__icon { width: 64px; height: 64px; border-radius: 16px; background: var(--primary-light); color: var(--primary); display: grid; place-items: center; margin-bottom: 18px; }
.modal__cat { color: var(--accent); font-weight: 700; font-size: 13px; letter-spacing: 1px; }
.modal__title { font-size: 24px; font-weight: 800; margin: 4px 0 14px; }
.modal__body { color: var(--text-light); font-size: 15px; }
.modal__body ul { margin-top: 14px; display: grid; gap: 10px; }
.modal__body li { display: flex; gap: 10px; align-items: flex-start; color: var(--text); }
.modal__body li::before { content: "✓"; color: var(--primary); font-weight: 800; }

/* ---------- 联系我们 ---------- */
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.info-card { display: flex; gap: 16px; padding: 22px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
.info-card + .info-card { margin-top: 16px; }
.info-card__ico { width: 48px; height: 48px; flex: none; border-radius: 12px; background: var(--primary-light); color: var(--primary); display: grid; place-items: center; }
.info-card__ico svg { width: 24px; height: 24px; }
.info-card h4 { font-size: 15px; color: var(--text-light); font-weight: 600; margin-bottom: 4px; }
.info-card p { font-size: 17px; font-weight: 600; }
.info-card a:hover { color: var(--primary); }

/* 表单 */
.form-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow); }
.form-card h3 { font-size: 22px; font-weight: 800; margin-bottom: 6px; }
.form-card .hint { color: var(--text-light); font-size: 14px; margin-bottom: 24px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.field label .req { color: #E5484D; }
.field input, .field textarea {
  width: 100%; padding: 13px 15px; border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); background: var(--bg-alt); color: var(--text);
  transition: border-color .2s, background .2s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--primary); background: #fff; }
.field textarea { resize: vertical; min-height: 120px; }
.field .err { color: #E5484D; font-size: 13px; margin-top: 6px; display: none; }
.field.is-invalid input, .field.is-invalid textarea { border-color: #E5484D; }
.field.is-invalid .err { display: block; }
.form__success {
  display: none; align-items: center; gap: 12px;
  background: #E7F7EE; color: #1C8C4E; border: 1px solid #BCEBD0;
  padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 20px; font-weight: 600;
}
.form__success.is-show { display: flex; }

/* 地图 */
.map-wrap { margin-top: 56px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow); }
.map-wrap iframe { width: 100%; height: 420px; border: 0; display: block; }

/* ---------- CTA 横幅 ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  border-radius: 22px; padding: 56px 48px; color: #fff; text-align: center;
  position: relative; overflow: hidden;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 40px 40px; mask-image: radial-gradient(circle at 50% 50%, #000, transparent 75%);
}
.cta-band .container { position: relative; }
.cta-band h2 { font-size: clamp(24px, 4vw, 34px); font-weight: 800; }
.cta-band p { margin: 14px auto 28px; color: rgba(255,255,255,.85); max-width: 560px; }

/* ---------- 页脚 ---------- */
.footer { background: var(--primary-dark); color: rgba(255,255,255,.8); padding: 64px 0 28px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; }
.footer__brand .brand__name { color: #fff; }
.footer__brand p { margin-top: 16px; font-size: 14px; color: rgba(255,255,255,.7); max-width: 300px; }
.footer h5 { color: #fff; font-size: 15px; font-weight: 700; margin-bottom: 18px; }
.footer__links a, .footer__contact li { display: block; font-size: 14px; color: rgba(255,255,255,.72); padding: 6px 0; transition: color .2s; }
.footer__links a:hover { color: #fff; }
.footer__contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer__bottom {
  margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 13px; color: rgba(255,255,255,.6);
}
.footer__bottom a { color: rgba(255,255,255,.6); text-decoration: none; transition: color .2s; }
.footer__bottom a:hover { color: #fff; text-decoration: underline; }

/* ---------- 滚动揭示动画 ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 992px) {
  .hero__inner { grid-template-columns: 1fr; gap: 40px; }
  .hero__visual { max-width: 460px; }
  .about__intro { grid-template-columns: 1fr; gap: 36px; }
  .about__media { min-height: 280px; order: -1; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .contact__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .logos { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .nav__links {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--border);
    padding: 12px 24px 24px;
    transform: translateY(-12px); opacity: 0; visibility: hidden;
    transition: transform .3s, opacity .3s, visibility .3s;
    box-shadow: 0 16px 30px rgba(10,46,99,.1);
  }
  .nav__links.is-open { transform: translateY(0); opacity: 1; visibility: visible; }
  .nav__links a { padding: 14px 8px; font-size: 16px; }
  .nav__links a::after { display: none; }
  .nav__cta { margin: 10px 0 0; }
  .nav__toggle { display: flex; }
  .grid--3, .grid--4, .grid--2 { grid-template-columns: 1fr; }
  .timeline::before { left: 18px; }
  .tl-item { width: 100%; left: 0 !important; text-align: left !important; padding: 0 0 36px 48px; }
  .tl-item::after { left: 10px !important; right: auto !important; }
  .footer__grid { grid-template-columns: 1fr; }
  .logos { grid-template-columns: repeat(2, 1fr); }
  .hero__stats { gap: 24px; }
  .cta-band { padding: 40px 24px; }
}
@media (max-width: 480px) {
  .container { padding-inline: 18px; }
  .hero__actions .btn { flex: 1; justify-content: center; }
  .form-card, .modal__box { padding: 26px 20px; }
}

/* ---------- 真实素材：品牌 Logo ---------- */
.brand__logo { height: 34px; width: auto; border-radius: 8px; display: block; }

/* ---------- 产品卡图片 ---------- */
.product-card__media {
  aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden;
  margin-bottom: 18px; background: var(--bg-alt); display: grid; place-items: center;
}
.product-card__media img { width: 100%; height: 100%; object-fit: contain; padding: 10px; }

/* 弹窗产品图 */
.modal__img {
  width: 100%; max-height: 300px; object-fit: contain;
  background: var(--bg-alt); border-radius: 12px; margin-bottom: 18px; padding: 14px;
}

/* ---------- 关于页：厂区实景 / 资质认证 图廊 ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gallery figure {
  margin: 0; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: #fff;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.gallery figure:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.gallery figcaption { padding: 10px 14px; font-size: 13px; color: var(--text-light); }

/* 关于页媒体图填充 */
.about__media img.media-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.about__media .media-cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 22px;
  color: #fff; font-weight: 700; font-size: 16px; background: linear-gradient(transparent, rgba(10,46,99,.72));
}

@media (max-width: 992px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 576px) { .gallery { grid-template-columns: 1fr; } .brand__logo { height: 30px; } }

/* 尊重用户的减少动画偏好 */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
