/* ============================================================
   上海徕薄昂崎珀生物科技有限公司 官网样式
   深蓝科研机构风格（参考 IceCube）+ 简洁栏目结构
   ============================================================ */
:root {
  --navy: #00284e;
  --navy-deep: #001a33;
  --navy-mid: #0a3d73;
  --accent: #3d8bc9;
  --accent-bright: #6fd3ff;
  --gold: #d9a441;
  --ink: #1f2d3d;
  --muted: #5a6b7d;
  --line: #dfe7ef;
  --bg-soft: #f5f8fb;
  --white: #fff;
  --shadow: 0 10px 30px rgba(0, 24, 48, .12);
  --radius: 10px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial,
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
ul { list-style: none; }
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
section[id] { scroll-margin-top: 96px; }

/* ---------- 顶部信息条 ---------- */
.topbar { background: var(--navy-deep); color: rgba(255, 255, 255, .72); font-size: 13px; }
.topbar-in { display: flex; justify-content: space-between; align-items: center; min-height: 38px; gap: 16px; }
.topbar-contacts { display: flex; gap: 26px; }
.lang-switch { display: flex; gap: 6px; }
.lang-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .28);
  color: rgba(255, 255, 255, .72);
  font: inherit;
  font-size: 12.5px;
  line-height: 1.5;
  padding: 2px 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: all .18s;
}
.lang-btn:hover { border-color: rgba(255, 255, 255, .6); color: #fff; }
.lang-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ---------- 主导航 ---------- */
.mainnav {
  background: rgba(255, 255, 255, .97);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 0 var(--line);
}
.mainnav-in { position: relative; display: flex; align-items: center; justify-content: space-between; height: 70px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--navy); }
.brand-mark { width: 38px; height: 38px; color: var(--navy); flex: none; }
.brand-logo { height: 46px; width: auto; border-radius: 8px; flex: none; display: block; }
.brand-text strong { display: block; font-size: 17px; letter-spacing: .02em; line-height: 1.3; }
.brand-text small { display: block; font-size: 11px; color: var(--muted); letter-spacing: .12em; line-height: 1.4; }
.nav-links { display: flex; gap: 4px; }
.nav-links a { display: block; padding: 8px 16px; color: var(--ink); font-size: 15.5px; border-radius: 6px; position: relative; transition: color .18s; }
.nav-links a:hover { color: var(--accent); }
.nav-links a.active { color: var(--navy); font-weight: 600; }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 16px; right: 16px; bottom: 2px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  padding: 10px;
  background: transparent;
  border: 0;
  cursor: pointer;
}
.nav-toggle span { display: block; height: 2.5px; background: var(--navy); border-radius: 2px; transition: .25s; }

/* ---------- 首页 Hero ---------- */
.hero { position: relative; background: var(--navy-deep); color: #fff; overflow: hidden; }
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: url("../img/hero-bg.svg") center / cover no-repeat;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(0, 20, 42, .90) 0%, rgba(0, 26, 51, .68) 46%, rgba(0, 26, 51, .16) 100%);
}
.hero-in { position: relative; z-index: 1; padding: 108px 0 128px; max-width: 860px; }
.hero-kicker {
  color: var(--accent-bright);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .16em;
}
.hero h1 {
  font-size: clamp(32px, 4.6vw, 54px);
  line-height: 1.28;
  font-weight: 700;
  margin: 18px 0 22px;
}
.hero-sub { font-size: 17.5px; color: rgba(255, 255, 255, .85); max-width: 640px; }
.hero-cta { display: flex; gap: 14px; margin-top: 40px; flex-wrap: wrap; }

/* ---------- 内页头部 ---------- */
.page-hero { position: relative; background: var(--navy); color: #fff; overflow: hidden; }
.page-hero::before {
  content: "";
  position: absolute; inset: 0;
  background: url("../img/hero-bg.svg") center / cover no-repeat;
  opacity: .5;
}
.page-hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(0, 22, 46, .92) 8%, rgba(0, 30, 62, .55) 60%, rgba(0, 30, 62, .30) 100%);
}
.page-hero-in { position: relative; z-index: 1; padding: 68px 0 74px; max-width: 860px; }
.page-hero .kicker { color: var(--accent-bright); }
.page-hero h1 { font-size: clamp(28px, 3.6vw, 42px); line-height: 1.3; font-weight: 700; margin-top: 8px; }
.ph-sub { color: rgba(255, 255, 255, .78); margin-top: 12px; font-size: 16.5px; max-width: 720px; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 6px;
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: .02em;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all .2s;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #2f74ab; }
.btn-ghost { border-color: rgba(255, 255, 255, .6); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .14); }
.btn-outline { border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }

/* ---------- 通用区块 ---------- */
.section { padding: 86px 0; }
.section.alt { background: var(--bg-soft); }
.sec-head { text-align: center; max-width: 800px; margin: 0 auto 52px; }
.sec-head.left { text-align: left; margin-left: 0; }
.kicker { color: var(--accent); font-size: 13px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 10px; }
.sec-title { font-size: clamp(25px, 3vw, 34px); color: var(--navy); font-weight: 700; line-height: 1.4; }
.sec-rule { width: 56px; height: 3px; background: var(--gold); margin: 18px auto 20px; border-radius: 2px; }
.sec-head.left .sec-rule { margin-left: 0; }
.sec-intro { color: var(--muted); font-size: 16px; }
.center-wrap { text-align: center; margin-top: 44px; }

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

.cap-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  position: relative;
  overflow: hidden;
}
.cap-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s;
}
.cap-card:hover::before { transform: scaleX(1); }
.cap-card .ico { width: 46px; height: 46px; margin-bottom: 18px; color: var(--accent); }
.cap-card h3 { font-size: 18.5px; color: var(--navy); margin-bottom: 10px; }
.cap-card p { color: var(--muted); font-size: 15px; }

.show-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .25s, box-shadow .25s;
}
.show-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.show-img { display: block; background: var(--navy-deep); }
.show-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.show-body { padding: 26px 28px 30px; flex: 1; display: flex; flex-direction: column; }
.show-body h3 { color: var(--navy); font-size: 20px; margin-bottom: 10px; }
.show-body p { color: var(--muted); font-size: 15px; flex: 1; }
.more { margin-top: 16px; font-weight: 600; font-size: 15px; color: var(--accent); display: inline-flex; align-items: center; gap: 6px; }
.more:hover { color: var(--navy-mid); }

/* ---------- 产品页 ---------- */
.cat-section { padding: 72px 0; }
.cat-section.alt { background: var(--bg-soft); }
.group-title {
  font-size: 19px;
  color: var(--navy);
  margin: 40px 0 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.group-title::before { content: ""; width: 10px; height: 10px; background: var(--gold); border-radius: 2px; flex: none; }
.cat-section .group-title:first-of-type { margin-top: 0; }
.prod-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .25s, box-shadow .25s; }
.prod-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.prod-media { position: relative; background: #0b2c4e; }
.prod-media > img.main { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; }
.prod-media > img.main.contain { object-fit: contain; }
.prod-thumbs { position: absolute; left: 10px; bottom: 10px; display: flex; gap: 7px; }
.thumb {
  width: 54px; height: 54px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid rgba(255, 255, 255, .85);
  background: rgba(0, 20, 40, .3);
  padding: 0;
  transition: border-color .2s, transform .2s;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb.active { border-color: var(--gold); }
.thumb:hover { transform: scale(1.06); }
.prod-body { padding: 20px 22px 24px; }
.prod-body h4 { color: var(--navy); font-size: 16.5px; margin-bottom: 8px; }
.prod-body p { color: var(--muted); font-size: 14.5px; line-height: 1.65; }
.img-note { text-align: center; color: var(--muted); font-size: 13.5px; margin-top: 30px; }

/* ---------- 关于页 ---------- */
.about-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.about-grid img { border-radius: var(--radius); border: 1px solid var(--line); }
.about-text .sec-rule { margin-left: 0; }
.about-text p { color: var(--muted); margin-bottom: 16px; }
.vf-card {
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius);
  padding: 36px 34px;
  position: relative;
  overflow: hidden;
}
.vf-card.alt { background: var(--navy-mid); }
.vf-card::after {
  content: "";
  position: absolute;
  right: -60px; top: -60px;
  width: 180px; height: 180px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 50%;
}
.vf-card .k { color: var(--accent-bright); font-size: 13px; letter-spacing: .2em; text-transform: uppercase; font-weight: 700; }
.vf-card h3 { font-size: 22px; margin: 12px 0 12px; }
.vf-card p { color: rgba(255, 255, 255, .82); font-size: 15.5px; }

/* ---------- CTA 横幅 ---------- */
.cta-band { background: linear-gradient(120deg, var(--navy-deep) 0%, var(--navy-mid) 100%); color: #fff; position: relative; overflow: hidden; }
.cta-band::before {
  content: "";
  position: absolute;
  right: -120px; top: -140px;
  width: 420px; height: 420px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 50%;
}
.cta-band::after {
  content: "";
  position: absolute;
  right: -40px; top: -60px;
  width: 260px; height: 260px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 50%;
}
.cta-in { position: relative; z-index: 1; padding: 78px 24px; text-align: center; max-width: 760px; margin: 0 auto; }
.cta-band h2 { font-size: clamp(24px, 3vw, 32px); margin-bottom: 14px; }
.cta-band p { color: rgba(255, 255, 255, .78); margin-bottom: 32px; }

/* ---------- 联系页 ---------- */
.info-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px 28px; text-align: center; }
.info-card .ico { width: 42px; height: 42px; margin: 0 auto 16px; color: var(--accent); }
.info-card h3 { color: var(--navy); font-size: 17px; margin-bottom: 8px; }
.info-card p { color: var(--muted); font-size: 15px; }
.contact-note { text-align: center; color: var(--muted); margin-top: 36px; font-size: 15px; }

/* ---------- 页脚 ---------- */
.site-footer { background: var(--navy-deep); color: rgba(255, 255, 255, .66); font-size: 14.5px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; padding: 64px 0 48px; }
.site-footer h4 { color: #fff; font-size: 15.5px; margin-bottom: 16px; letter-spacing: .04em; }
.footer-brand { display: flex; align-items: center; gap: 10px; color: #fff; margin-bottom: 14px; font-size: 16.5px; }
.footer-brand .brand-mark { width: 32px; height: 32px; color: var(--accent-bright); }
.footer-desc { max-width: 380px; }
.footer-links a { display: block; color: rgba(255, 255, 255, .66); padding: 4px 0; }
.footer-links a:hover { color: var(--accent-bright); }
.footer-contact p { padding: 3px 0; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); }
.footer-bottom-in { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 20px 24px; font-size: 13px; color: rgba(255, 255, 255, .45); max-width: 1160px; margin: 0 auto; }
.footer-bottom a { color: rgba(255, 255, 255, .45); }
.footer-bottom a:hover { color: var(--accent-bright); }

/* ---------- 入场动效 ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- 应用场景页 ---------- */
.app-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.app-tags span {
  font-size: 12.5px;
  color: var(--navy-mid);
  background: #e8f1f9;
  border-radius: 999px;
  padding: 3px 12px;
  font-weight: 600;
  letter-spacing: .03em;
}

/* ---------- 双城布局 ---------- */
.sites-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.site-card {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform .25s, box-shadow .25s;
}
.site-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.site-card .pin { width: 44px; height: 44px; color: var(--accent); flex: none; margin-top: 2px; }
.site-card h3 { color: var(--navy); font-size: 18px; margin-bottom: 8px; }
.site-card p { color: var(--muted); font-size: 14.5px; }

/* ---------- 地图模块 ---------- */
.map-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: 26px; }
.map-card > img { width: 100%; display: block; }
.live-map { height: 500px; width: 100%; background: #0b2c4e; }
.loc-pin { line-height: 0; filter: drop-shadow(0 3px 6px rgba(0, 20, 40, .45)); }
.loc-iw strong { display: block; color: #00284e; font-size: 15px; margin-bottom: 2px; }
.loc-iw span { color: #5a6b7d; font-size: 13px; }
.map-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 20px 24px;
  border-top: 1px solid var(--line);
}
.map-actions .btn { padding: 10px 22px; font-size: 14.5px; }
.map-note { color: var(--muted); font-size: 13.5px; margin-left: auto; }

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (max-width: 820px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 70px; left: -24px; right: -24px;
    background: #fff;
    flex-direction: column;
    padding: 10px 24px 18px;
    box-shadow: 0 14px 26px rgba(0, 24, 48, .14);
    border-top: 1px solid var(--line);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a.active::after { display: none; }
  .topbar-contacts { display: none; }
}
@media (max-width: 640px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .sites-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; padding: 52px 0 36px; }
  .section { padding: 64px 0; }
  .cat-section { padding: 56px 0; }
  .hero-in { padding: 84px 0 96px; }
  .page-hero-in { padding: 52px 0 58px; }
  .cta-in { padding: 60px 24px; }
  .map-actions { flex-direction: column; align-items: flex-start; }
  .map-note { margin-left: 0; }
  .live-map { height: 360px; }
}
