/* ==========================================================================
   优复美生物 · 官网改版
   base.css — 设计变量 / 基础排版 / 导航 / 按钮 / 页脚 / 通用组件
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue: #0B63F6;
  --blue-light: #4A9EFF;
  --blue-deep: #0A3D91;
  --blue-ink: #071F45;
  --blue-soft: #E8F1FF;
  --blue-glow: rgba(11, 99, 246, .18);

  --ink: #0A1F44;
  --ink-2: #5A6E8C;
  --ink-3: #8FA3BF;

  --bg: #FFFFFF;
  --bg-soft: #F5F9FF;
  --bg-blue: #EDF4FF;
  --line: #DCE8F5;
  --line-soft: #EAF2FB;

  --dark: #04142C;
  --dark-2: #071E3C;

  --radius-s: 10px;
  --radius: 16px;
  --radius-l: 24px;

  --shadow-s: 0 4px 18px rgba(11, 99, 246, .07);
  --shadow: 0 12px 38px rgba(11, 99, 246, .10);
  --shadow-hover: 0 18px 54px rgba(11, 99, 246, .16);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
          "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --font-en: "Helvetica Neue", "Segoe UI", Arial, sans-serif;

  --ease: cubic-bezier(.25, .46, .45, .94);
  --ease-out: cubic-bezier(.22, 1, .36, 1);

  --nav-h: 88px;
  --max: 1320px;
  --pad: clamp(20px, 5vw, 72px);
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

[id] { scroll-margin-top: calc(var(--nav-h) + 14px); }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg, canvas, video { display: block; max-width: 100%; }
a { color: inherit; }
button { font-family: inherit; }
ul, ol { list-style: none; }
::selection { background: rgba(11, 99, 246, .16); }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* ---------- 进场动画 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
  transition-delay: var(--d, 0s);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ==========================================================================
   顶部导航（固定吸顶 + 二级下拉）
   ========================================================================== */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 900;
  height: var(--nav-h);
  background: #fff;
  border-bottom: 1px solid var(--line-soft);
  transition: background .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
}
.nav.scrolled {
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  border-bottom-color: var(--line);
  box-shadow: 0 8px 30px rgba(11, 99, 246, .07);
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  height: 100%;
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}

/* ---------- 品牌 ---------- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}
.nav .brand { justify-self: start; }
.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(11, 99, 246, .28);
  flex-shrink: 0;
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  line-height: 1;
}
.nav .brand-mark { width: 38px; height: 38px; border-radius: 11px; font-size: 19px; }
.brand-logo {
  display: block;
  width: 180px;
  height: 72px;
  object-fit: contain;
}
.brand-mark svg { width: 19px; height: 19px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text b {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: .6px;
  color: var(--ink);
}
.brand-text i {
  font-style: normal;
  font-size: 9px;
  letter-spacing: 1.5px;
  color: var(--ink-3);
  font-weight: 600;
  margin-top: 3px;
}
.nav .brand-text b { font-size: 18px; }

/* ---------- 一级菜单 ---------- */
.nav-links { justify-self: center; }
.nav-menu { display: flex; align-items: center; gap: clamp(0px, .6vw, 10px); }
.nav-item { position: relative; display: flex; align-items: center; }
.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 9px clamp(8px, .95vw, 15px);
  font-size: 15px;
  color: var(--ink-2);
  text-decoration: none;
  white-space: nowrap;
  border-radius: 8px;
  transition: color .25s var(--ease);
}
.nav-link::after {
  content: '';
  position: absolute;
  left: clamp(8px, .95vw, 15px);
  right: clamp(8px, .95vw, 15px);
  bottom: 1px;
  height: 2px;
  border-radius: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .3s var(--ease);
}
.nav-link:hover,
.nav-link:focus-visible,
.nav-item.has-drop:hover > .nav-link,
.nav-item.has-drop:focus-within > .nav-link { color: var(--blue); }
/* 悬停只变色，不再画下划线：下划线仅表示「当前页面」 */
.nav-link:hover,
.nav-link:focus-visible { color: var(--blue); }
.nav-link.active { color: var(--blue); font-weight: 600; }
.nav-link.active::after { transform: scaleX(1); }

/* 「SOD原料中心」「应用案例」用 button 承载：只作下拉触发，不跳转 */
button.nav-link {
  appearance: none;
  -webkit-appearance: none;
  background: none;
  border: 0;
  margin: 0;
  font-family: inherit;
  font-size: 15px;
  font-weight: inherit;
  line-height: 1.2;
  cursor: pointer;
  text-align: left;
}
button.nav-link::-moz-focus-inner { border: 0; padding: 0; }

.nav-chev {
  width: 10px;
  height: 10px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: .7;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.nav-item:hover .nav-chev,
.nav-item.open .nav-chev,
.nav-item:focus-within .nav-chev { transform: rotate(180deg); opacity: 1; }

/* 鼠标从一级菜单移向面板时的过渡区，避免闪烁 */
.nav-item.has-drop::before {
  content: '';
  position: absolute;
  left: -6px;
  right: -6px;
  top: 100%;
  height: 22px;
}

/* ---------- 二级下拉 ---------- */
.nav-drop {
  position: absolute;
  top: 100%;
  left: 50%;
  margin-top: 14px;
  min-width: 232px;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(7, 31, 69, .13), 0 2px 8px rgba(7, 31, 69, .04);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 8px);
  transition: opacity .26s var(--ease), transform .26s var(--ease), visibility .26s var(--ease);
  z-index: 30;
}
.nav-item:hover > .nav-drop,
.nav-item:focus-within > .nav-drop,
.nav-item.open > .nav-drop {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}
.nav-drop a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 11px 14px;
  border-radius: 10px;
  font-size: 14.5px;
  color: var(--ink-2);
  text-decoration: none;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.nav-drop a span { white-space: nowrap; }
.nav-drop a + a { margin-top: 2px; }
.nav-drop a small {
  white-space: nowrap;
  font-size: 8.5px;
  letter-spacing: 1.1px;
  color: var(--ink-3);
  font-weight: 600;
  text-transform: uppercase;
  transition: color .2s var(--ease);
}
.nav-drop a:hover,
.nav-drop a:focus-visible { background: var(--blue-soft); color: var(--blue); }
.nav-drop a:hover small { color: var(--blue); }

/* button 触发器（无 href 的一级菜单）：显隐完全交给 .open，
   避免「鼠标停在按钮上 / 按钮仍有焦点」时点收起却不生效 */
.nav-item.js-drop > .nav-drop {
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 8px);
}
.nav-item.js-drop:hover > .nav-drop,
.nav-item.js-drop:focus-within > .nav-drop,
.nav-item.js-drop.open > .nav-drop {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}
/* 两种触发器（链接型 / 按钮型）交互保持一致：悬停即展开，点击可固定 */
.nav-item.js-drop > .nav-link { cursor: pointer; }
.nav-item.js-drop.open > .nav-link { color: var(--blue); }
/* 展开状态只变色，下划线保留给「当前页面」 */
.nav-item.js-drop.open > .nav-link { color: var(--blue); }

/* ---------- 右侧 CTA ---------- */
.nav-cta {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 8px 22px rgba(11, 99, 246, .24);
  transition: transform .3s var(--ease), background .3s var(--ease), box-shadow .3s var(--ease);
}
.nav-cta svg { width: 14px; height: 14px; transition: transform .3s var(--ease); }
.nav-cta:hover {
  background: var(--blue-light);
  box-shadow: 0 12px 30px rgba(11, 99, 246, .34);
  transform: translateY(-1px);
}
.nav-cta:hover svg { transform: translateX(3px); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0 11px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 1.8px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(6.8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.8px) rotate(-45deg); }

/* ---------- 移动端抽屉 ---------- */
.drawer {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  z-index: 899;
  max-height: calc(100dvh - var(--nav-h));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 4px var(--pad) 26px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 26px 50px rgba(7, 31, 69, .10);
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.drawer.open { opacity: 1; transform: none; pointer-events: auto; }
.drawer-list { display: flex; flex-direction: column; }
.drawer-list > a,
.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 15px 2px;
  font-size: 15.5px;
  font-weight: 500;
  color: var(--ink);
  text-align: left;
  text-decoration: none;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--line-soft);
  cursor: pointer;
}
.drawer-list > a.active { color: var(--blue); font-weight: 600; }
.drawer-head svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
  transition: transform .3s var(--ease);
}
.drawer-group.open .drawer-head { color: var(--blue); }
.drawer-group.open .drawer-head svg { transform: rotate(180deg); }
.drawer-sub {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .34s var(--ease);
}
.drawer-group.open .drawer-sub { grid-template-rows: 1fr; }
.drawer-sub > div { overflow: hidden; }
.drawer-sub a {
  display: block;
  padding: 11px 2px 11px 16px;
  font-size: 14px;
  color: var(--ink-2);
  text-decoration: none;
  border-bottom: 1px dashed var(--line-soft);
}
.drawer-sub a:last-child { border-bottom: 0; }
.drawer-sub a.active { color: var(--blue); font-weight: 600; }
.drawer-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
  padding: 14px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 10px 26px rgba(11, 99, 246, .26);
}
.drawer-cta svg { width: 15px; height: 15px; }

@media (max-width: 1180px) {
  .nav-inner { grid-template-columns: 1fr auto; }
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-toggle { display: flex; justify-self: end; }
}

/* ==========================================================================
   按钮 / 文字链接
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 15px 30px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: all .32s var(--ease);
}
.btn svg { flex-shrink: 0; transition: transform .32s var(--ease); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 10px 28px rgba(11, 99, 246, .22); }
.btn-primary:hover {
  background: var(--blue-light);
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(11, 99, 246, .32);
}
.btn-primary:hover svg { transform: translateX(4px); }
.btn-ghost { color: var(--blue); border-color: rgba(11, 99, 246, .38); background: rgba(255, 255, 255, .6); }
.btn-ghost:hover { border-color: var(--blue); background: var(--blue-soft); transform: translateY(-2px); }
.btn-light { background: #fff; color: var(--blue); box-shadow: 0 10px 30px rgba(4, 20, 44, .18); }
.btn-light:hover { transform: translateY(-2px); box-shadow: 0 18px 44px rgba(4, 20, 44, .26); }
.btn-light:hover svg { transform: translateX(4px); }
.btn-glass { color: #fff; border-color: rgba(255, 255, 255, .42); background: rgba(255, 255, 255, .06); }
.btn-glass:hover { background: rgba(255, 255, 255, .16); border-color: #fff; transform: translateY(-2px); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: var(--blue);
  text-decoration: none;
  padding-bottom: 5px;
  border-bottom: 1px solid rgba(11, 99, 246, .3);
  transition: color .3s var(--ease), border-color .3s var(--ease);
}
.link-arrow svg { transition: transform .3s var(--ease); }
.link-arrow:hover { color: var(--blue-deep); border-bottom-color: var(--blue-deep); }
.link-arrow:hover svg { transform: translateX(5px); }

.link-circle {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  transition: color .3s var(--ease);
}
.link-circle i {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 5px 16px rgba(11, 99, 246, .28);
  transition: all .3s var(--ease);
}
.link-circle:hover { color: var(--blue); }
.link-circle:hover i { background: var(--blue-light); transform: translateX(5px); box-shadow: 0 9px 24px rgba(11, 99, 246, .36); }

/* ==========================================================================
   通用区块标题
   ========================================================================== */
.sec { padding: clamp(72px, 9vw, 122px) 0; position: relative; }
.sec-soft { background: linear-gradient(180deg, #fff 0%, var(--bg-soft) 100%); }
.sec-tint { background: var(--bg-soft); }

.sec-head { max-width: 880px; margin: 0 auto clamp(36px, 5vw, 56px); }
.sec-head.center { text-align: center; }
.kicker {
  display: inline-block;
  font-family: var(--font-en);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 14px;
}
.sec-title {
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 600;
  line-height: 1.24;
  letter-spacing: -.6px;
  color: var(--ink);
}
.sec-title .hl { color: var(--blue); }
.sec-sub {
  margin-top: 16px;
  font-size: clamp(14.5px, 1.1vw, 17px);
  color: var(--ink-2);
  line-height: 1.85;
}

/* ==========================================================================
   图片占位（后续替换为实拍图）
   ========================================================================== */
.ph {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 120px;
  border-radius: var(--radius);
  overflow: hidden;
  background:
    radial-gradient(circle at 26% 24%, rgba(11, 99, 246, .14), transparent 55%),
    radial-gradient(circle at 76% 78%, rgba(74, 158, 255, .16), transparent 58%),
    linear-gradient(140deg, #EDF5FF 0%, #DDEBFA 52%, #E9F2FF 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.ph::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(11, 99, 246, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 99, 246, .055) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(ellipse at center, #000 10%, transparent 82%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 10%, transparent 82%);
}
.ph::after {
  content: attr(data-label);
  position: absolute;
  left: 50%; bottom: 16px;
  transform: translateX(-50%);
  font-size: 11.5px;
  letter-spacing: .8px;
  color: #6B87A8;
  background: rgba(255, 255, 255, .78);
  border: 1px solid rgba(11, 99, 246, .14);
  border-radius: 20px;
  padding: 5px 14px;
  white-space: nowrap;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.ph .ph-mark {
  width: 34%;
  max-width: 130px;
  opacity: .34;
}

/* ==========================================================================
   页面 Hero（内页统一头图）
   ========================================================================== */
.page-hero {
  position: relative;
  padding: calc(var(--nav-h) + clamp(72px, 10vw, 118px)) 0 clamp(56px, 7vw, 88px);
  background:
    radial-gradient(ellipse 60% 70% at 82% 20%, rgba(11, 99, 246, .10), transparent 66%),
    radial-gradient(ellipse 50% 60% at 10% 90%, rgba(74, 158, 255, .10), transparent 62%),
    linear-gradient(160deg, #FFFFFF 0%, #F2F8FF 58%, #E8F1FF 100%);
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(11, 99, 246, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 99, 246, .035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 75% 80% at 50% 40%, #000 5%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 75% 80% at 50% 40%, #000 5%, transparent 78%);
  pointer-events: none;
}
.page-hero .wrap { position: relative; z-index: 1; }

/* 头图媒体（图片 / 视频）—— 由后台「Banner 图管理」配置 */
.page-hero > .ph-bg,
.page-hero > .ph-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}
.page-hero > .ph-bg {
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  transform: scale(1.02);
}
/* 有媒体时压一层白雾，保证标题可读 */
.page-hero.has-media::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(100deg, rgba(255, 255, 255, .93) 0%, rgba(255, 255, 255, .80) 46%, rgba(238, 246, 255, .58) 100%);
  pointer-events: none;
}
.page-hero.has-media::after { z-index: 1; }
/* 视频头图文字更多，遮罩再压一层，保证标题可读 */
.page-hero.has-video > .ph-video { opacity: .48; }
.page-hero.has-video::before {
  background: linear-gradient(100deg, rgba(255, 255, 255, .95) 0%, rgba(255, 255, 255, .86) 48%, rgba(240, 247, 255, .72) 100%);
}
.page-hero.has-media .wrap { z-index: 2; }
@media (max-width: 720px) {
  .page-hero.has-media::before {
    background: linear-gradient(180deg, rgba(255, 255, 255, .94) 0%, rgba(255, 255, 255, .82) 60%, rgba(255, 255, 255, .68) 100%);
  }
}
.page-hero h1 {
  font-size: clamp(30px, 3.6vw, 54px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -1px;
  max-width: 900px;
}
.page-hero h1 em {
  display: block;
  font-style: normal;
  font-size: .52em;
  font-weight: 500;
  color: var(--ink-2);
  letter-spacing: -.2px;
  margin-top: 14px;
  line-height: 1.6;
}
.page-hero p.lead {
  margin-top: 22px;
  max-width: 720px;
  color: var(--ink-2);
  font-size: clamp(14.5px, 1.1vw, 16.5px);
  line-height: 1.9;
}
.page-hero .hero-btns { margin-top: 34px; }

.breadcrumb {
  padding: 14px 0;
  border-bottom: 1px solid var(--line-soft);
  background: #fff;
  font-size: 12.5px;
  color: var(--ink-3);
}
.breadcrumb .wrap { display: flex; align-items: center; gap: 8px; }
.breadcrumb a { color: var(--ink-3); text-decoration: none; transition: color .25s; }
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb .current { color: var(--ink-2); }
.breadcrumb .sep { opacity: .5; }

/* ==========================================================================
   表单控件
   ========================================================================== */
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 13px; color: var(--ink-2); letter-spacing: .2px; }
.field label i { color: var(--blue); font-style: normal; }
.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 14.5px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 13px 15px;
  outline: none;
  transition: border-color .25s, box-shadow .25s, background .25s;
  appearance: none;
}
.field textarea { min-height: 118px; resize: vertical; line-height: 1.7; }
.field select {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%235A6E8C' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  padding-right: 38px;
}
.field input::placeholder,
.field textarea::placeholder { color: var(--ink-3); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(11, 99, 246, .1);
}

/* ==========================================================================
   页脚
   ========================================================================== */
.footer {
  background: var(--bg-soft);
  color: var(--ink-2);
  padding: clamp(52px, 6vw, 74px) 0 26px;
  border-top: 1px solid var(--line);
}
.footer .wrap { position: relative; }
.footer-top {
  display: grid;
  grid-template-columns: 1.7fr repeat(5, minmax(0, 1fr));
  gap: clamp(20px, 2.6vw, 40px);
  padding-bottom: 38px;
  border-bottom: 1px solid var(--line);
}
.footer .brand-logo { width: 160px; height: 64px; mix-blend-mode: multiply; }
.footer-desc {
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.85;
  max-width: 330px;
  color: var(--ink-3);
}

/* ---------- 左侧社媒：悬浮图标 + 二维码弹层 ---------- */
.footer-social { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 10px; }
.soc { position: relative; }
.soc::after {
  /* 悬浮过渡桥：鼠标移向二维码弹层时不闪烁 */
  content: '';
  position: absolute;
  left: -4px; right: -4px;
  bottom: -12px;
  height: 12px;
}
.soc-btn {
  width: 40px; height: 40px;
  border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  background: #FFFFFF;
  border: 1px solid #E2EAF6;
  color: #64748B;
  cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.soc-btn svg { width: 19px; height: 19px; }
.soc-btn:hover,
.soc-btn:focus-visible {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
  transform: translateY(-2px);
}
.soc-pop {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  width: 148px;
  padding: 9px 9px 7px;
  background: #fff;
  border-radius: 14px;
  border: 1px solid var(--line-soft);
  box-shadow: 0 18px 44px rgba(7, 31, 69, .14);
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 6px);
  transition: opacity .24s var(--ease), transform .24s var(--ease), visibility .24s var(--ease);
  z-index: 30;
}
.soc-pop img {
  width: 100%;
  display: block;
  border-radius: 9px;
  background: #F2F6FC;
  aspect-ratio: 1 / 1;
  object-fit: contain;
}
.soc-pop span { display: block; margin-top: 6px; font-size: 11px; color: var(--ink-2); }
.soc:hover .soc-pop,
.soc:focus-within .soc-pop { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

/* ---------- 分组导航 ---------- */
.footer-col h4 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.6px;
  color: var(--ink);
  margin-bottom: 16px;
}
.footer-col h4 a {
  display: inline-block;
  padding: 0;
  color: inherit;
  text-decoration: none;
  transition: color .25s;
}
.footer-col h4 a:hover { color: var(--blue); }
.footer-col > a {
  display: block;
  font-size: 13.5px;
  color: var(--ink-2);
  text-decoration: none;
  padding: 6px 0;
  transition: color .25s, transform .25s;
}
.footer-col > a:hover { color: var(--blue); transform: translateX(3px); }

/* ---------- 友情链接 / 公司名 / 版权栏 ---------- */
.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  padding: 18px 0 2px;
  font-size: 12.5px;
  color: var(--ink-3);
}
.footer-links .fl-label { color: var(--ink-2); }
.footer-links a { color: var(--ink-2); text-decoration: none; transition: color .25s; }
.footer-links a:hover { color: var(--blue); }
.footer-links .fl-plain { color: var(--ink-3); }
.footer-links .sep { opacity: .4; }
/* 按分类分组显示 */
.footer-links.is-grouped { row-gap: 6px; }
.footer-links .fl-group {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  margin-right: 14px;
}
.footer-links .fl-cat {
  font-style: normal;
  font-size: 12px;
  color: var(--ink-3);
  padding: 1px 7px;
  margin-right: 2px;
  border-radius: 20px;
  background: rgba(11, 99, 246, .07);
}
.footer-company {
  text-align: center;
  padding: 20px 0 4px;
  font-size: 13px;
  color: var(--ink);
}
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  row-gap: 8px;
  padding: 8px 0 4px;
  font-size: 12.5px;
  color: var(--ink-3);
}
.footer-legal a { color: var(--ink-2); text-decoration: none; transition: color .25s; }
.footer-legal a:hover { color: var(--blue); }
.footer-legal .sep { margin: 0 12px; opacity: .4; }

@media (max-width: 1180px) {
  .footer-top { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-brand-col { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-col-quick { display: none; }
  .footer-legal { flex-direction: column; gap: 6px; }
  .footer-legal .sep { display: none; }
}

/* ==========================================================================
   询盘弹窗（页脚「获取方案」）
   ========================================================================== */
.inq-modal {
  position: fixed;
  inset: 0;
  z-index: 950;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}
.inq-modal[hidden] { display: none; }
.inq-mask {
  position: absolute;
  inset: 0;
  background: rgba(4, 20, 44, .64);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.inq-dialog {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  max-height: calc(100dvh - 36px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.inq-dialog .form-card { padding: clamp(22px, 3vw, 30px); }
.inq-close {
  position: absolute;
  top: 12px; right: 12px;
  z-index: 2;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: none;
  background: rgba(10, 31, 68, .06);
  color: var(--ink-2);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background .25s, color .25s;
}
.inq-close svg { width: 16px; height: 16px; }
.inq-close:hover { background: var(--blue-soft); color: var(--blue); }

/* 返回顶部 */
.top-btn {
  position: fixed;
  right: 22px; bottom: 26px;
  z-index: 880;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .92);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(11, 99, 246, .16);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: all .32s var(--ease);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.top-btn.show { opacity: 1; transform: none; pointer-events: auto; }
.top-btn:hover { background: var(--blue); color: #fff; }

/* 通用微动效 */
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes breathe {
  from { transform: scale(1); opacity: .94; }
  to { transform: scale(1.04); opacity: 1; }
}
@keyframes spinSlow { to { transform: rotate(360deg); } }

/* 表单蜜罐字段（对用户不可见） */
.hp-input {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
/* 按钮型一级菜单命中当前分组时同样高亮 */
.nav-item.is-active > .nav-link { color: var(--blue); }
.nav-item.is-active > .nav-link::after { transform: scaleX(1); }

/* 带下拉箭头的一级菜单：下划线只覆盖文字，不延伸到箭头下方 */
.nav-item.has-drop > .nav-link::after { right: calc(clamp(8px, .95vw, 15px) + 15px); }
