/* ==========================================================================
   优复美生物 · 官网改版
   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: 74px;
  --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);
  border-bottom: 1px solid transparent;
  transition: background .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
}
.nav.scrolled {
  background: rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--line);
  box-shadow: 0 2px 20px rgba(11, 99, 246, .06);
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  height: 100%;
  padding: 0 var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}
.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;
}
.brand-mark svg { width: 19px; height: 19px; }
.brand-text { display: flex; align-items: baseline; gap: 7px; }
.brand-text b {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: .3px;
  color: var(--ink);
}
.brand-text i {
  font-style: normal;
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--blue);
  font-weight: 600;
}

.nav-links { display: flex; align-items: center; gap: clamp(12px, 1.9vw, 30px); }
.nav-links > a {
  position: relative;
  font-size: 15px;
  color: var(--ink-2);
  text-decoration: none;
  padding: 8px 0;
  white-space: nowrap;
  transition: color .25s;
}
.nav-links > a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 2px;
  width: 0; height: 2px;
  border-radius: 2px;
  background: var(--blue);
  transition: width .32s var(--ease);
}
.nav-links > a:hover { color: var(--blue); }
.nav-links > a:hover::after { width: 100%; }
.nav-links > a.active { color: var(--blue); font-weight: 600; }
.nav-links > a.active::after { width: 100%; }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 20px;
  border-radius: 24px;
  background: var(--blue);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 8px 22px rgba(11, 99, 246, .24);
  transition: all .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); }
.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;
  padding: 8px var(--pad) 26px;
  background: rgba(255, 255, 255, .98);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  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 a {
  padding: 14px 2px;
  font-size: 15.5px;
  color: var(--ink-2);
  text-decoration: none;
  border-bottom: 1px solid var(--line-soft);
}
.drawer a.active { color: var(--blue); font-weight: 600; }

@media (max-width: 1080px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-cta { display: none; }
}

/* ==========================================================================
   按钮 / 文字链接
   ========================================================================== */
.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; }
.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(--dark);
  color: rgba(255, 255, 255, .62);
  padding: clamp(52px, 6vw, 74px) 0 30px;
  position: relative;
  overflow: hidden;
}
.footer::before {
  content: '';
  position: absolute;
  top: -220px; right: -120px;
  width: 560px; height: 560px;
  background: radial-gradient(circle, rgba(11, 99, 246, .3), transparent 66%);
  pointer-events: none;
}
.footer .wrap { position: relative; z-index: 1; }
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: clamp(26px, 4vw, 56px);
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.footer .brand-text b { color: #fff; }
.footer .brand-text i { color: var(--blue-light); }
.footer-desc {
  margin-top: 18px;
  font-size: 13.5px;
  line-height: 1.85;
  max-width: 330px;
  color: rgba(255, 255, 255, .52);
}
.footer-contact { margin-top: 20px; display: flex; flex-direction: column; gap: 7px; font-size: 13.5px; }
.footer-contact a { color: rgba(255, 255, 255, .78); text-decoration: none; transition: color .25s; }
.footer-contact a:hover { color: var(--blue-light); }
.footer-col h4 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.6px;
  color: #fff;
  margin-bottom: 18px;
  text-transform: uppercase;
}
.footer-col a {
  display: block;
  font-size: 13.5px;
  color: rgba(255, 255, 255, .55);
  text-decoration: none;
  padding: 6px 0;
  transition: color .25s, transform .25s;
}
.footer-col a:hover { color: #fff; transform: translateX(3px); }
.footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: rgba(255, 255, 255, .38);
}
.footer-bottom a { color: rgba(255, 255, 255, .45); text-decoration: none; }
.footer-bottom a:hover { color: #fff; }
.footer-bottom .sep { margin: 0 8px; opacity: .4; }

@media (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand-col { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
}
@media (max-width: 520px) {
  .footer-top { grid-template-columns: 1fr; }
}

/* 返回顶部 */
.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;
}
