/* ═══════════════════════════════════════════
   中科信（武汉）生物科技 · CS-BIC
   深海蓝 × 通透浅蓝 · 生物资源平台
   ═══════════════════════════════════════════ */

:root {
  --ink: #0a2440;
  --ink-soft: #3c5a78;
  --blue: #1273c4;
  --blue-deep: #0b4d8a;
  --cyan: #4fb3e8;
  --sky: #eaf4fc;
  --mist: #f6fafd;
  --line: #dce9f5;
  --white: #ffffff;
  --serif: "Noto Serif SC", "Songti SC", serif;
  --sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --en: "Fraunces", "Noto Serif SC", serif;
  --shadow-card: 0 18px 50px -18px rgba(11, 61, 110, .22);
  --radius: 18px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--white);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
.container { width: min(1200px, 92vw); margin-inline: auto; }

::selection { background: var(--blue); color: #fff; }

/* ── 顶栏 ─────────────────────────── */
.topbar {
  background: linear-gradient(90deg, var(--blue-deep), var(--blue) 55%, var(--cyan));
  color: rgba(255, 255, 255, .88);
  font-size: 12.5px;
  letter-spacing: .04em;
}
.topbar__inner { display: flex; justify-content: space-between; align-items: center; height: 38px; }
.topbar__slogan { opacity: .92; }
.topbar__contact { display: flex; align-items: center; gap: 10px; }
.topbar__phone { font-family: var(--en); font-weight: 600; font-size: 14.5px; color: #fff; letter-spacing: .05em; }
.topbar__divider { width: 1px; height: 12px; background: rgba(255, 255, 255, .4); }
.topbar__contact a:hover { text-decoration: underline; }

/* ── 导航 ─────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 90;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.nav.is-stuck { border-color: var(--line); box-shadow: 0 8px 30px -18px rgba(11, 61, 110, .25); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }

.brand { display: flex; align-items: center; gap: 12px; color: var(--blue-deep); }
.brand__mark { display: grid; place-items: center; color: var(--blue); }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__row { display: flex; align-items: baseline; }
.brand__row strong { font-family: var(--en); font-size: 21px; font-weight: 600; letter-spacing: .02em; color: var(--blue-deep); }
.brand__row em { font-style: normal; color: var(--cyan); margin-inline: 2px; }
.brand__row b { font-family: var(--serif); font-weight: 700; font-size: 19px; color: var(--ink); }
.brand__text small { font-size: 9.5px; letter-spacing: .26em; color: var(--ink-soft); margin-top: 3px; }

.nav__links { display: flex; gap: 6px; }
/* 只作用于一级导航：`.nav__links a` 会把 padding / 下划线 ::after 渗进 .mega 浮层里的链接和卡片 */
.nav__links > a, .nav__links .nav__parent {
  position: relative;
  padding: 10px 18px;
  font-size: 15px; font-weight: 500; color: var(--ink-soft);
  transition: color .25s;
}
.nav__links > a::after, .nav__links .nav__parent::after {
  content: ""; position: absolute; left: 18px; right: 18px; bottom: 4px; height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  border-radius: 2px; transform: scaleX(0); transform-origin: left;
  transition: transform .3s cubic-bezier(.2, .7, .2, 1);
}
.nav__links > a:hover, .nav__links > a.is-active,
.nav__links .nav__parent:hover, .nav__links .nav__parent.is-active { color: var(--blue-deep); }
.nav__links > a:hover::after, .nav__links > a.is-active::after,
.nav__links .nav__parent:hover::after, .nav__links .nav__parent.is-active::after { transform: scaleX(1); }

/* ── 头部搜索（位于 logo 与主导航之间，原生 GET /products?q=） ── */
.navsearch {
  display: flex; align-items: center; gap: 8px;
  flex: 0 1 260px; min-width: 0; margin: 0 8px; height: 40px; padding: 0 4px 0 14px;
  border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink-soft);
  transition: border-color .3s, box-shadow .3s, flex-basis .35s cubic-bezier(.2, .7, .2, 1);
}
.navsearch:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(18, 115, 196, .12); flex-basis: 300px; }
.navsearch svg { flex: none; }
.navsearch input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font-family: var(--sans); font-size: 13.5px; color: var(--ink); }
.navsearch input::placeholder { color: #9db4c9; }
.navsearch button {
  flex: none; height: 32px; padding: 0 16px; border: 0; border-radius: 999px; cursor: pointer;
  font-family: var(--sans); font-size: 13px; font-weight: 600; color: #fff; letter-spacing: .04em;
  background: linear-gradient(95deg, var(--blue), var(--cyan));
  transition: filter .25s;
}
.navsearch button:hover { filter: brightness(1.08); }

.nav__burger { display: none; }

/* ── 导航二级分类（mega） ─────────── */
.nav__item { display: contents; }
.nav__parent { display: inline-flex; align-items: center; gap: 6px; }
.nav__parent svg { opacity: .5; transition: transform .3s, opacity .3s; }
.nav__item:hover .nav__parent svg, .nav__item.is-open .nav__parent svg { transform: rotate(180deg); opacity: 1; }
.mega {
  position: absolute; left: 0; right: 0; top: 100%; z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 34px 60px -34px rgba(11, 61, 110, .42);
  opacity: 0; visibility: hidden; transform: translateY(-10px);
  transition: opacity .32s ease, transform .32s cubic-bezier(.2, .7, .2, 1), visibility .32s;
}
.nav__item:hover .mega, .nav__item.is-open .mega, .nav__item:focus-within .mega {
  opacity: 1; visibility: visible; transform: none;
}
.mega__inner { display: grid; grid-template-columns: 1fr 268px; gap: clamp(28px, 4vw, 56px); padding: 40px 0 44px; }
.mega__cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 2.6vw, 40px); }
.mega__col { border-left: 1px solid var(--line); padding-left: clamp(14px, 1.6vw, 24px); }
.mega__head {
  display: block; font-family: var(--serif); font-size: 17px; font-weight: 700;
  letter-spacing: .06em; color: var(--ink); margin-bottom: 4px; transition: color .25s;
}
.mega__head:hover { color: var(--blue); }
.mega__head small { display: block; font-family: var(--en); font-size: 11.5px; font-weight: 600; letter-spacing: .1em; color: var(--cyan); margin-bottom: 10px; }
.mega__col ul { list-style: none; }
.mega__col li a {
  display: block; font-size: 13.5px; color: var(--ink-soft); padding: 5px 0;
  position: relative; padding-left: 12px; transition: color .25s, transform .25s;
}
.mega__col li a::before {
  content: ""; position: absolute; left: 0; top: 13px; width: 4px; height: 4px;
  border-radius: 50%; background: var(--line); transition: background .25s;
}
.mega__col li a:hover { color: var(--blue-deep); transform: translateX(3px); }
.mega__col li a:hover::before { background: var(--cyan); }
.mega__feature {
  position: relative; display: flex; align-items: flex-end; overflow: hidden;
  min-height: 210px; padding: 22px; border-radius: var(--radius); color: #fff;
  background: linear-gradient(155deg, #0a2c4e, #0e4272 48%, #1273c4 132%);
  transition: transform .4s cubic-bezier(.2, .7, .2, 1), box-shadow .4s;
}
.mega__feature::before {
  content: ""; position: absolute; right: -52px; top: -60px; width: 196px; height: 196px;
  border-radius: 50%; background: radial-gradient(circle, rgba(79, 179, 232, .4), transparent 68%);
}
.mega__feature:hover { transform: translateY(-4px); box-shadow: 0 20px 36px -22px rgba(11, 61, 110, .55); }
.mega__feature-body { position: relative; z-index: 1; }
.mega__feature-body b { display: block; font-family: var(--serif); font-size: 16.5px; letter-spacing: .06em; color: #fff; }
.mega__feature-body small { display: block; font-size: 12px; color: rgba(255, 255, 255, .76); line-height: 1.7; margin-top: 5px; }
.mega__feature-body em { display: inline-block; font-style: normal; font-size: 12.5px; color: #9fd8f5; margin-top: 10px; letter-spacing: .06em; }

/* ── 首屏 ─────────────────────────── */
.hero {
  position: relative; z-index: 0;
  min-height: clamp(620px, 92vh, 900px);
  display: flex; align-items: center;
  color: #fff;
  overflow: hidden;
}
.hero__slides, .hero__slide { position: absolute; inset: 0; }
.hero__slide {
  background: var(--img) center / cover no-repeat;
  opacity: 0; transform: scale(1.06);
  transition: opacity 1.2s ease, transform 7s ease;
}
.hero__slide.is-on { opacity: 1; transform: scale(1); }
.hero__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(7, 34, 63, .88) 0%, rgba(9, 45, 82, .66) 46%, rgba(10, 40, 70, .2) 78%),
    linear-gradient(to top, rgba(7, 30, 56, .62), transparent 42%);
}
.hero__grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1fr auto; align-items: center;
  gap: clamp(28px, 5vw, 72px);
  padding: 104px 0;
}
.hero__main { max-width: 780px; }

.hero__brand {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--en); font-size: 13.5px; letter-spacing: .32em;
  text-transform: uppercase; color: rgba(255, 255, 255, .74);
  animation: rise .9s .15s both;
}
.hero__brand span { width: 44px; height: 1px; background: var(--cyan); }

.hero__title {
  font-family: var(--serif); font-weight: 900;
  font-size: clamp(30px, 3.8vw, 52px); line-height: 1.28;
  letter-spacing: .14em; margin: 16px 0 4px; color: #eef8ff;
  animation: rise 1s .3s both;
}
.hero__title i { font-style: normal; color: var(--cyan); }

.hero__acts { display: grid; margin-top: 22px; animation: rise 1s .45s both; }
.hero__act { grid-area: 1 / 1; opacity: 0; transform: translateY(16px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); pointer-events: none; }
.hero__act.is-on { opacity: 1; transform: none; pointer-events: auto; }
.hero__act-head {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  font-family: var(--serif); font-size: clamp(17px, 1.5vw, 21px);
  font-weight: 600; letter-spacing: .16em; color: #d5ecff;
}
.hero__act-head b {
  font-family: var(--en); font-weight: 600; font-size: .95em; letter-spacing: .04em;
  color: #cfeaff; padding-left: 16px; border-left: 1px solid rgba(127, 203, 242, .5);
}
.hero__desc {
  max-width: 560px; font-size: 15.5px; font-weight: 300;
  color: rgba(255, 255, 255, .8); line-height: 2; margin-top: 12px;
}

@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

/* ── 资源检索台 ───────────────────── */
.finder { position: relative; max-width: 720px; margin-top: clamp(26px, 3.4vw, 40px); animation: rise 1s .6s both; }
.finder__cats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.finder__cats button {
  font-family: var(--sans); font-size: 13px; letter-spacing: .1em; cursor: pointer;
  padding: 6px 16px; border-radius: 999px; color: rgba(255, 255, 255, .82);
  border: 1px solid rgba(255, 255, 255, .28); background: rgba(9, 40, 72, .3);
  backdrop-filter: blur(6px); transition: all .25s;
}
.finder__cats button:hover { border-color: var(--cyan); color: #fff; }
.finder__cats button.is-on { background: #fff; border-color: #fff; color: var(--blue-deep); font-weight: 600; }

.finder__bar {
  display: flex; align-items: center; gap: 12px;
  background: rgba(255, 255, 255, .97); border-radius: 999px;
  padding: 9px 9px 9px 22px;
  box-shadow: 0 26px 60px -22px rgba(4, 24, 46, .7);
  border: 1px solid rgba(255, 255, 255, .6);
  transition: box-shadow .3s, transform .3s;
}
.finder:focus-within .finder__bar { box-shadow: 0 0 0 4px rgba(79, 179, 232, .35), 0 26px 60px -22px rgba(4, 24, 46, .7); }
.finder__icon { color: var(--blue); flex: none; }
.finder__bar input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: none;
  font-family: var(--sans); font-size: 15.5px; color: var(--ink);
}
.finder__bar input::placeholder { color: #93aec7; font-size: 14px; }
.finder__go {
  flex: none; border: 0; cursor: pointer;
  font-family: var(--sans); font-size: 15px; font-weight: 600; letter-spacing: .08em;
  color: #fff; padding: 14px 28px; border-radius: 999px;
  background: linear-gradient(95deg, var(--blue), var(--cyan));
  box-shadow: 0 12px 26px -10px rgba(31, 139, 214, .8);
  transition: transform .25s, box-shadow .25s;
}
.finder__go:hover { transform: translateY(-2px); box-shadow: 0 18px 34px -10px rgba(31, 139, 214, .95); }

.finder__suggest {
  position: absolute; left: 0; right: 0; top: calc(100% + 10px); z-index: 6;
  list-style: none; background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 30px 70px -20px rgba(4, 24, 46, .6); max-height: 336px; overflow-y: auto;
}
.finder__suggest li a {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 6px 14px;
  padding: 13px 20px; border-bottom: 1px solid var(--line); color: var(--ink);
  transition: background .2s;
}
.finder__suggest li:last-child a { border-bottom: 0; }
.finder__suggest li a:hover, .finder__suggest li.is-hl a { background: var(--sky); }
.finder__suggest b { grid-column: 1; grid-row: 1; font-family: var(--serif); font-size: 15px; font-weight: 700; letter-spacing: .03em; }
.finder__suggest code { grid-column: 1; grid-row: 2; font-family: var(--en); font-size: 12px; letter-spacing: .06em; color: var(--cyan); font-weight: 600; }
.finder__suggest em { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-style: normal; font-size: 12px; color: var(--blue-deep); background: rgba(18, 115, 196, .1); border-radius: 999px; padding: 3px 11px; white-space: nowrap; }
.finder__suggest li a.sug__all { display: block; padding: 11px 20px; text-align: center; font-size: 13.5px; font-weight: 600; color: var(--blue); background: var(--mist); }
.finder__suggest .sug__empty { display: block; padding: 18px 20px; font-size: 14px; color: var(--ink-soft); }

.finder__hot { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 14px; font-size: 12.5px; color: rgba(255, 255, 255, .62); letter-spacing: .06em; }
.finder__hot span { letter-spacing: .2em; }
.finder__hot button {
  font-family: var(--sans); font-size: 12.5px; cursor: pointer;
  color: rgba(255, 255, 255, .88); background: none;
  border: 1px dashed rgba(255, 255, 255, .34); border-radius: 999px;
  padding: 3px 13px; transition: all .25s;
}
.finder__hot button:hover { border-style: solid; border-color: var(--cyan); color: #fff; background: rgba(79, 179, 232, .16); }

/* ── 首屏轮播指示 ─────────────────── */
.hero__rail { display: grid; gap: 26px; animation: rise 1s .8s both; }
.hero__rail button {
  display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: 2px 12px;
  background: none; border: 0; cursor: pointer; text-align: left; padding: 0 0 0 0;
  color: rgba(255, 255, 255, .5); transition: color .3s; min-width: 168px;
}
.hero__rail button i { font-family: var(--en); font-style: normal; font-size: 13px; letter-spacing: .12em; grid-row: span 2; }
.hero__rail button span { font-family: var(--serif); font-size: 15px; letter-spacing: .14em; }
.hero__rail button em { display: block; height: 2px; width: 100%; margin-top: 8px; background: rgba(255, 255, 255, .18); border-radius: 2px; overflow: hidden; position: relative; }
.hero__rail button em::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--cyan), #fff); transform-origin: left; transform: scaleX(0); }
.hero__rail button.is-on { color: #fff; }
.hero__rail button.is-on i { color: var(--cyan); }
.hero__rail button.is-on em::after { animation: fill 6s linear both; }
@keyframes fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 30px; border-radius: 999px;
  font-size: 15px; font-weight: 600; letter-spacing: .05em;
  transition: transform .25s, box-shadow .25s, background .25s, color .25s;
}
.btn--solid {
  background: linear-gradient(95deg, var(--blue), var(--cyan));
  color: #fff; box-shadow: 0 14px 34px -12px rgba(31, 139, 214, .65);
}
.btn--solid:hover { transform: translateY(-3px); box-shadow: 0 20px 42px -12px rgba(31, 139, 214, .8); }
.btn--ghost { border: 1px solid rgba(255, 255, 255, .55); color: #fff; }
.btn--ghost:hover { background: rgba(255, 255, 255, .14); transform: translateY(-3px); }
.section .btn--solid { color: #fff; }

.hero__scroll {
  position: absolute; left: 50%; bottom: 26px; z-index: 3; transform: translateX(-50%);
  font-family: var(--en); font-size: 11px; letter-spacing: .34em;
  color: rgba(255, 255, 255, .62);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.hero__scroll span { width: 1px; height: 40px; background: rgba(255, 255, 255, .3); position: relative; overflow: hidden; }
.hero__scroll span::after {
  content: ""; position: absolute; inset: 0; background: #fff;
  animation: drip 2s infinite;
}
@keyframes drip { from { transform: translateY(-100%); } to { transform: translateY(100%); } }

/* ── 数据带 ───────────────────────── */
.stats { background: var(--white); border-bottom: 1px solid var(--line); }
.stats__grid {
  display: grid; grid-template-columns: repeat(5, 1fr);
  padding: 46px 0;
}
.stat { text-align: center; position: relative; }
.stat + .stat::before {
  content: ""; position: absolute; left: 0; top: 18%; bottom: 18%; width: 1px;
  background: linear-gradient(var(--line), transparent);
}
.stat b {
  display: block; font-family: var(--en); font-weight: 600;
  font-size: clamp(30px, 3.4vw, 44px); line-height: 1.1;
  background: linear-gradient(180deg, var(--blue), var(--blue-deep));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat b::after { content: attr(data-suffix); font-size: .55em; margin-left: 2px; }
.stat span { font-size: 13.5px; color: var(--ink-soft); letter-spacing: .08em; }

/* ── 区块标题 ─────────────────────── */
.section { padding: clamp(72px, 9vw, 116px) 0; }
.section--tint {
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(79, 179, 232, .16), transparent 60%),
    linear-gradient(180deg, var(--mist), var(--sky) 130%);
}
.sec-head { text-align: center; margin-bottom: clamp(44px, 5vw, 64px); }
.sec-head__eyebrow {
  font-family: var(--en); font-size: 13px; letter-spacing: .3em;
  text-transform: uppercase; color: var(--cyan); font-weight: 600;
}
.sec-head__title {
  font-family: var(--serif); font-weight: 900;
  font-size: clamp(28px, 3.6vw, 42px); letter-spacing: .1em;
  margin: 8px 0 6px; color: var(--ink);
}
.sec-head__title::after {
  content: ""; display: block; width: 56px; height: 4px; border-radius: 4px;
  margin: 18px auto 0;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
}
.sec-head__sub { color: var(--ink-soft); font-size: 15.5px; margin-top: 14px; }
.sec-head--row { display: flex; align-items: flex-end; justify-content: space-between; text-align: left; }
.sec-head--row .sec-head__title::after { margin-left: 0; }
.sec-head--light { color: #fff; }
.sec-head--light .sec-head__title { color: #fff; }
.sec-head--light .sec-head__eyebrow { color: #9fd8f5; }

.sec-head__nav { display: flex; gap: 10px; }
.sec-head__nav button {
  width: 46px; height: 46px; border-radius: 50%; cursor: pointer;
  border: 1px solid var(--line); background: #fff; color: var(--blue-deep);
  font-size: 18px; transition: all .25s;
}
.sec-head__nav button:hover { background: var(--blue); color: #fff; border-color: var(--blue); transform: translateY(-2px); }

/* ── 主营业务 ─────────────────────── */
.biz { display: flex; flex-direction: column; gap: clamp(48px, 6vw, 84px); }
.biz__item {
  display: grid; grid-template-columns: 1.15fr 1fr;
  gap: clamp(28px, 4.5vw, 64px); align-items: center;
}
.biz__item--flip .biz__media { order: 2; }
.biz__item--flip .biz__body { order: 1; }

.biz__media {
  position: relative; border-radius: 24px; overflow: hidden;
  aspect-ratio: 16 / 10;
  box-shadow: var(--shadow-card);
}
.biz__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(200deg, transparent 60%, rgba(11, 77, 138, .28));
}
.biz__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.biz__item:hover .biz__media img { transform: scale(1.06); }

.biz__body { max-width: 480px; }
.biz__no {
  font-family: var(--en); font-size: 60px; font-weight: 300; line-height: 1;
  color: transparent; -webkit-text-stroke: 1px rgba(18, 115, 196, .4);
  display: block; margin-bottom: 10px;
}
.biz__body h3 {
  font-family: var(--serif); font-size: clamp(24px, 2.4vw, 30px);
  font-weight: 700; letter-spacing: .06em; margin-bottom: 14px;
}
.biz__body > p { color: var(--ink-soft); font-size: 15.5px; }
.biz__tags { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 20px 0 22px; }
.biz__tags li {
  font-size: 13px; color: var(--blue-deep);
  padding: 5px 14px; border-radius: 999px;
  background: rgba(18, 115, 196, .08); border: 1px solid rgba(18, 115, 196, .18);
  letter-spacing: .04em;
}
.biz__more { font-weight: 600; color: var(--blue); font-size: 15px; transition: letter-spacing .3s; }
.biz__more:hover { letter-spacing: .06em; }

/* ── 热销菌株 ─────────────────────── */
.rail-wrap { overflow: hidden; }
.rail {
  display: flex; gap: 26px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 6px 4px 26px; scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.card {
  flex: 0 0 clamp(280px, 30%, 340px); scroll-snap-align: start;
  background: #fff; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 10px 34px -20px rgba(11, 61, 110, .28);
  transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s;
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-card); }
.card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.card:hover .card__media img { transform: scale(1.07); }
.card__badge {
  position: absolute; top: 14px; left: 14px;
  font-size: 12px; letter-spacing: .1em; color: #fff;
  padding: 4px 12px; border-radius: 999px;
  background: rgba(10, 45, 80, .55); backdrop-filter: blur(6px);
}
/* 后台人工推荐的条目：角标放图区右上角，不与左上的分类胶囊抢位 */
.card__pick {
  position: absolute; top: 14px; right: 14px;
  font-size: 12px; letter-spacing: .1em; color: #fff;
  padding: 4px 12px; border-radius: 999px;
  background: linear-gradient(95deg, var(--blue), var(--cyan));
}
.card__body { padding: 22px 24px 24px; }
.card__code { font-family: var(--en); font-size: 12.5px; letter-spacing: .06em; color: var(--cyan); font-weight: 600; }
.card__body h3 { font-family: var(--serif); font-size: 21px; font-weight: 700; margin: 6px 0 8px; letter-spacing: .04em; }
.card__spec { font-size: 13.5px; color: var(--ink-soft); }
.card__foot {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line);
  font-size: 13px;
}
.card__foot span { color: var(--ink-soft); }
.card__price { color: var(--blue-deep); font-family: var(--en); font-size: 14.5px; font-weight: 600; }
.card__foot a { color: var(--blue); font-weight: 600; transition: letter-spacing .25s; }
.card__foot a:hover { letter-spacing: .05em; }

.note-demo {
  margin-top: 8px; font-size: 12.5px; color: var(--ink-soft);
  border: 1px dashed var(--line); border-radius: 10px; padding: 10px 16px; background: #fff;
}
.note-demo::before { content: "ⓘ "; color: var(--cyan); }

/* ── 首页分类排（细胞 / 菌株 / 质粒各一排） ── */
.rail-group { padding-top: 44px; }
.rail-group__head {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto auto;
  align-items: center; gap: 20px; padding-bottom: 14px; border-bottom: 1px solid var(--line);
}
.rail-group__no {
  font-family: var(--en); font-size: 38px; font-weight: 600; line-height: .9; letter-spacing: -.01em;
  background: linear-gradient(95deg, var(--blue), var(--cyan)); -webkit-background-clip: text;
  background-clip: text; color: transparent;
}
.rail-group__txt h3 { font-family: var(--serif); font-size: 21px; font-weight: 700; letter-spacing: .06em; }
.rail-group__txt p { font-size: 13.5px; color: var(--ink-soft); margin-top: 3px; }
.rail-group__count { font-family: var(--en); font-size: 13px; color: var(--ink-soft); letter-spacing: .08em; }
.rail-group__count b { font-size: 22px; font-weight: 600; color: var(--blue-deep); margin-right: 4px; }
.rail-group__all {
  font-size: 14px; font-weight: 600; color: var(--blue); white-space: nowrap;
  padding-bottom: 2px; border-bottom: 1px solid rgba(18, 115, 196, .3); transition: letter-spacing .3s, border-color .3s;
}
.rail-group__all::after { content: " →"; }
.rail-group__all:hover { letter-spacing: .05em; border-color: var(--cyan); }
.rail-group__nav { display: flex; gap: 8px; }
.rail-group__nav button {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: #fff;
  color: var(--blue-deep); font-size: 15px; line-height: 1; cursor: pointer;
  transition: transform .25s cubic-bezier(.2, .7, .2, 1), background .25s, color .25s, border-color .25s;
}
.rail-group__nav button:hover {
  background: linear-gradient(95deg, var(--blue), var(--cyan)); color: #fff; border-color: transparent;
  transform: translateY(-2px);
}
/* 某一库目录为空时整排仍在，只把「暂无」说清楚，不留空白轨道 */
.rail-group__empty {
  margin-top: 20px; font-size: 14.5px; color: var(--ink-soft);
  border-left: 2px solid rgba(18, 115, 196, .28); padding-left: 14px;
}
.rail-group__empty a { color: var(--blue); font-weight: 600; }
@media (max-width: 960px) {
  .rail-group__head { grid-template-columns: auto minmax(0, 1fr) auto; row-gap: 10px; }
  .rail-group__count { grid-column: 2; }
  .rail-group__all { grid-column: 3; justify-self: end; }
  .rail-group__nav { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .rail-group__nav { display: none; }
  .rail-group__no { font-size: 30px; }
}

/* ── 合作机构墙：4 行格子整墙匀速横移，每屏 4×4＝16 家，鼠标进入暂停 ── */
.partners {
  padding: clamp(72px, 9vw, 116px) 0 clamp(56px, 7vw, 88px);
  border-top: 1px solid var(--line); background: linear-gradient(180deg, var(--mist), #fff 62%);
}
.partners__wall {
  margin-top: 44px; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
/* 两半内容完全相同且不带轨道间距，位移 -50% 正好等于半墙宽度，接缝无跳帧 */
.partners__track { display: flex; width: max-content; animation: wall 48s linear infinite; }
.partners__wall:hover .partners__track { animation-play-state: paused; }
.partners__half {
  display: grid; grid-auto-flow: column; grid-template-rows: repeat(2, 1fr);
  grid-auto-columns: 282px; gap: 16px; padding-right: 16px;
}
.partners__item {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  min-width: 0; padding: 20px 12px 16px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: 0 2px 10px rgba(10, 44, 78, .04); transition: transform .3s, box-shadow .3s;
}
/* 条目配了链接：整卡覆盖层可点（figcaption 必须留在 figure 里，不能包进 <a>） */
.partners__go { position: absolute; inset: 0; border-radius: var(--radius); }
.partners__item:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(10, 44, 78, .1); }
.partners__badge {
  width: 84px; height: 84px; border-radius: 50%; overflow: hidden; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  background: var(--mist); border: 1px solid var(--line);
}
.partners__badge img {
  width: 100%; height: 100%; object-fit: cover;
}
.partners__item figcaption {
  font-size: 14px; line-height: 1.35; color: var(--navy); font-weight: 600; text-align: center;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.partners__foot {
  margin-top: 34px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.partners__foot .note-demo { flex: 1 1 420px; margin-top: 0; }
.partners__more {
  font-size: 15px; font-weight: 600; color: var(--blue); transition: letter-spacing .3s;
}
.partners__more::after { content: " →"; }
.partners__more:hover { letter-spacing: .05em; }
@keyframes wall { to { transform: translateX(-50%); } }

/* 每屏列数随视口收窄，行数固定 2 格；标识与字号到 ≤720px 才缩 */
@media (max-width: 1200px) { .partners__half { grid-auto-columns: 244px; } }
@media (max-width: 960px) { .partners__half { grid-auto-columns: 208px; } }
@media (max-width: 720px) {
  .partners__half { grid-auto-columns: 164px; gap: 12px; padding-right: 12px; }
  .partners__item { padding: 16px 8px 13px; gap: 9px; }
  .partners__badge { width: 64px; height: 64px; }
  .partners__item figcaption { font-size: 12.5px; }
}

/* ── 文献精选 ─────────────────────── */
.news { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(28px, 4vw, 56px); }
.news__item {
  padding: 30px 0; border-top: 1px solid var(--line);
  transition: border-color .3s;
}
.news__item:hover { border-color: var(--cyan); }
.news__date {
  font-family: var(--en); font-size: 12.5px; letter-spacing: .22em;
  color: var(--cyan); font-weight: 600; text-transform: uppercase;
}
.news__item h3 {
  font-family: var(--serif); font-size: clamp(19px, 1.7vw, 24px);
  font-weight: 700; line-height: 1.55; margin: 10px 0 12px; letter-spacing: .02em;
}
.news__item h3 a { background-image: linear-gradient(var(--blue), var(--blue)); background-size: 0 2px; background-repeat: no-repeat; background-position: left bottom; transition: background-size .4s; padding-bottom: 2px; }
.news__item:hover h3 a { background-size: 100% 2px; }
.news__excerpt { color: var(--ink-soft); font-size: 14.5px; }
.news__more { display: inline-block; margin-top: 14px; font-size: 14px; font-weight: 600; color: var(--blue); }
.news__item--lead { border-top: 0; padding-left: 0; }
.news__item--lead h3 { font-size: clamp(23px, 2.2vw, 30px); }
.news__item--lead .news__excerpt { font-size: 15.5px; line-height: 1.95; }
.news__item--lead::before {
  content: "精选"; display: inline-block;
  font-size: 12px; letter-spacing: .3em; text-indent: .3em;
  color: #fff; background: linear-gradient(90deg, var(--blue), var(--cyan));
  padding: 4px 12px; border-radius: 4px 4px 4px 0; margin-bottom: 16px;
}
.news > .news__item:not(.news__item--lead):first-child { border-top: 0; }
.news__item--lead + .news__item { border-top: 0; }

/* ── 买家导航 ─────────────────────── */
.promise {
  position: relative; color: #fff;
  padding: clamp(72px, 8vw, 104px) 0;
  background:
    radial-gradient(700px 340px at 12% 0%, rgba(79, 179, 232, .28), transparent 65%),
    radial-gradient(760px 420px at 92% 100%, rgba(18, 115, 196, .5), transparent 60%),
    linear-gradient(150deg, #0a2c4e, #0d3f6e 55%, #0a2c4e);
  overflow: hidden;
}
.promise::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .05) 1px, transparent 1.5px);
  background-size: 26px 26px;
  mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 70%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 70%, transparent);
}
.promise .sec-head__title::after { background: linear-gradient(90deg, var(--cyan), transparent); }
.promise__grid {
  position: relative;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3.5vw, 48px);
}
.promise__col {
  padding: 34px 34px 38px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .05);
  backdrop-filter: blur(4px);
  transition: transform .35s, background .35s, border-color .35s;
}
.promise__col:hover { transform: translateY(-6px); background: rgba(255, 255, 255, .1); border-color: rgba(127, 203, 242, .5); }
.promise__col h3 {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--serif); font-size: 21px; letter-spacing: .08em; margin-bottom: 14px;
}
.promise__col h3 i {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--cyan); box-shadow: 0 0 0 5px rgba(79, 179, 232, .25);
}
.promise__col p { color: rgba(255, 255, 255, .78); font-size: 14.5px; line-height: 2; }

/* ── 关于我们 ─────────────────────── */
.about__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(36px, 5vw, 80px); align-items: center; }
.about__media { position: relative; }
.about__media img { border-radius: 24px; box-shadow: var(--shadow-card); aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.about__media::before {
  content: ""; position: absolute; inset: 18px -18px -18px 18px;
  border: 1.5px solid var(--cyan); border-radius: 24px; z-index: -1;
}
.about__plate {
  position: absolute; right: -14px; bottom: 34px;
  display: flex; align-items: center; gap: 12px;
  background: #fff; border-radius: 16px; padding: 18px 26px;
  box-shadow: var(--shadow-card);
}
.about__plate b {
  font-family: var(--en); font-size: 46px; font-weight: 600; line-height: 1;
  background: linear-gradient(180deg, var(--blue), var(--blue-deep));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.about__plate span { font-size: 13px; color: var(--ink-soft); line-height: 1.6; }
.about__body .sec-head__title { margin-left: 0; }
.about__body .sec-head__title::after { margin-left: 0; }
.about__body > p { color: var(--ink-soft); font-size: 15.5px; margin-top: 18px; }
.about__body strong { color: var(--blue-deep); }
.about__list { list-style: none; margin: 24px 0 34px; display: grid; gap: 12px; }
.about__list li { position: relative; padding-left: 30px; font-size: 15px; color: var(--ink); }
.about__list li::before {
  content: ""; position: absolute; left: 0; top: 10px; width: 16px; height: 8px;
  border-left: 2px solid var(--cyan); border-bottom: 2px solid var(--cyan);
  transform: rotate(-45deg);
}

/* ── 页脚 ─────────────────────────── */
.footer { background: #081f38; color: rgba(255, 255, 255, .72); font-size: 13.5px; }
.footer__grid {
  display: grid; grid-template-columns: 1.4fr 1.4fr .7fr .7fr;
  gap: clamp(28px, 4vw, 56px);
  padding: clamp(52px, 6vw, 76px) 0 44px;
}
.footer__logo {
  font-family: var(--en); font-size: 24px; font-weight: 600; color: #fff;
  font-family: var(--en);
}
.footer__logo em { font-style: normal; color: var(--cyan); }
.footer__logo + .footer__line { margin-top: 14px; }
.footer__line { margin-top: 6px; letter-spacing: .02em; }
.footer__brand { display: flex; flex-direction: column; }
.footer__qr {
  margin-top: 20px; width: 96px; height: 96px; border-radius: 10px;
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,.9) 0 4px, transparent 4px 8px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.9) 0 4px, #0e3358 4px 8px);
  display: flex; flex-direction: column; justify-content: flex-end; position: relative;
}
.footer__qr span {
  font-size: 11px; color: var(--ink); background: #fff; width: 100%; text-align: center;
  padding: 2px 4px; border-radius: 0 0 10px 10px;
}
/* 图占满除说明行之外的空间，contain 保证二维码不被裁掉 */
.footer__qr img { flex: 1 1 auto; min-height: 0; width: 100%; object-fit: contain; background: #fff; border-radius: 10px 10px 0 0; }
.footer__col h4 {
  color: #fff; font-size: 15px; font-weight: 600; letter-spacing: .12em; margin-bottom: 18px;
  padding-bottom: 12px; position: relative;
}
.footer__col h4::after { content: ""; position: absolute; left: 0; bottom: 0; width: 26px; height: 2px; background: var(--cyan); border-radius: 2px; }
.footer__col a { display: block; padding: 5px 0; transition: color .25s, transform .25s; }
.footer__col a::before { content: "›"; margin-right: 8px; color: var(--cyan); }
.footer__col a:hover { color: #fff; transform: translateX(4px); }
.footer__base { border-top: 1px solid rgba(255, 255, 255, .1); }
.footer__base-inner { display: flex; justify-content: space-between; padding: 20px 0; font-size: 12.5px; color: rgba(255, 255, 255, .45); }

/* ── 侧边联系挂件 ─────────────────── */
.dock { position: fixed; top: 50%; transform: translateY(-50%); z-index: 80; }
.dock--left { left: 0; }
.dock--right { right: 0; }
.dock__panel {
  width: var(--dock-w, 54px); padding: 12px 9px;
  display: grid; gap: 2px;
  background: linear-gradient(168deg, #0a2c4e, #0e4272 60%, #0a2c4e);
  border: 1px solid rgba(127, 203, 242, .22);
  box-shadow: 0 26px 60px -26px rgba(4, 24, 46, .85);
  transition: width .42s cubic-bezier(.2, .7, .2, 1);
  overflow: hidden;
}
.dock--left .dock__panel { border-radius: 0 16px 16px 0; border-left: 0; }
.dock--right .dock__panel { border-radius: 16px 0 0 16px; border-right: 0; }
.dock:hover .dock__panel, .dock.is-open .dock__panel { width: var(--dock-open, 236px); }
.dock__title {
  font-family: var(--en); font-size: 11px; letter-spacing: .22em; text-transform: uppercase;
  color: rgba(159, 216, 245, .85); padding: 6px 8px 10px; white-space: nowrap;
  border-bottom: 1px solid rgba(127, 203, 242, .18); margin-bottom: 6px;
  opacity: 0; transition: opacity .3s;
}
.dock:hover .dock__title, .dock.is-open .dock__title,
.dock:hover .dock__demo, .dock.is-open .dock__demo { opacity: 1; }
.dock__title b { font-family: var(--serif); font-weight: 600; letter-spacing: .12em; color: #fff; }
.dock__row {
  display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 12px;
  width: 100%; padding: 9px 8px; border: 0; border-radius: 10px; cursor: pointer;
  background: none; text-align: left; color: rgba(255, 255, 255, .82);
  font-family: var(--sans); transition: background .25s, color .25s;
}
.dock__row > span:first-child { display: grid; place-items: center; }
.dock__row > svg { justify-self: center; }
.dock__row:hover { background: rgba(79, 179, 232, .16); color: #fff; }
.dock__label { min-width: 0; opacity: 0; transform: translateX(-8px); transition: opacity .3s .06s, transform .3s .06s; white-space: nowrap; }
.dock:hover .dock__label, .dock.is-open .dock__label { opacity: 1; transform: none; }
.dock__label strong { display: block; font-size: 13.5px; font-weight: 500; letter-spacing: .04em; }
.dock__label em { display: block; font-style: normal; font-family: var(--en); font-size: 11.5px; letter-spacing: .06em; color: rgba(159, 216, 245, .8); }
.dock__badge {
  justify-self: end; display: grid; place-items: center;
  font-size: 10px; letter-spacing: .08em; color: rgba(159, 216, 245, .7);
  opacity: 0; transition: opacity .3s .12s;
}
.dock:hover .dock__badge, .dock.is-open .dock__badge { opacity: 1; }
.dock__demo { font-size: 10.5px; color: rgba(159, 216, 245, .55); letter-spacing: .1em; padding: 8px 8px 2px; white-space: nowrap; border-top: 1px solid rgba(127, 203, 242, .14); margin-top: 6px; opacity: 0; transition: opacity .3s; }
.dock__qr {
  grid-column: 1 / -1; display: none; margin: 6px 0 4px; padding: 10px;
  background: #fff; border-radius: 10px; text-align: center;
}
.dock:hover .dock__qr, .dock.is-open .dock__qr { display: block; }
.dock__qr .qr {
  width: 108px; height: 108px; margin-inline: auto; border-radius: 6px;
  background:
    repeating-linear-gradient(0deg, #0a2440 0 3px, transparent 3px 7px),
    repeating-linear-gradient(90deg, #0a2440 0 3px, #fff 3px 7px);
}
/* 后台上传了真实二维码时用图片替换上面的占位纹理 */
.dock__qr img.qr { object-fit: contain; background: #fff; padding: 4px; }
.dock__qr span { display: block; font-size: 11px; color: var(--ink-soft); margin-top: 6px; letter-spacing: .06em; }
.dock__row--wrap { grid-template-columns: 22px 1fr; }
/* 后台打开「默认展开」后挂件常驻展开；≤720px 不套用，仍按点按展开的移动端版式 */
@media (min-width: 721px) {
  .dock--pinned .dock__panel { width: var(--dock-open, 236px); }
  .dock--pinned .dock__title, .dock--pinned .dock__demo,
  .dock--pinned .dock__label, .dock--pinned .dock__badge { opacity: 1; }
  .dock--pinned .dock__label { transform: none; }
  .dock--pinned .dock__qr { display: block; }
}
/* 常驻展开会盖住版心：宽屏时让内容区按展开宽度（--dock-open）给两侧各让出 16px 间距。
   顶栏与导航不参与（它们 z-index 更高、且压缩后导航项会折行），窄屏仍按悬浮处理 */
@media (min-width: 1360px) {
  body.is-dock-pinned .container:not(.topbar__inner):not(.nav__inner) {
    width: min(1200px, calc(100vw - 2 * var(--dock-open, 236px) - 32px));
  }
}

.dock__toast {
  position: fixed; left: 50%; bottom: 40px; transform: translate(-50%, 14px); z-index: 130;
  background: rgba(10, 36, 64, .94); color: #fff; font-size: 13.5px; letter-spacing: .06em;
  padding: 10px 22px; border-radius: 999px; border: 1px solid rgba(127, 203, 242, .3);
  opacity: 0; transition: opacity .3s, transform .3s; pointer-events: none;
}
.dock__toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ── 在线咨询抽屉 ─────────────────── */
.consult { position: fixed; inset: 0; z-index: 120; }
.consult[hidden] { display: none; }
.consult__mask { position: absolute; inset: 0; background: rgba(7, 27, 48, .5); backdrop-filter: blur(3px); animation: fade .3s both; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.consult__panel {
  position: absolute; right: 0; top: 0; bottom: 0; width: min(392px, 100vw);
  background: var(--mist); display: flex; flex-direction: column;
  box-shadow: -30px 0 70px -30px rgba(4, 24, 46, .6);
  animation: slideIn .42s cubic-bezier(.2, .7, .2, 1) both;
}
@keyframes slideIn { from { transform: translateX(100%); } to { transform: none; } }
.consult__head {
  position: relative; padding: 26px 26px 22px; color: #fff;
  background:
    radial-gradient(420px 200px at 88% -20%, rgba(79, 179, 232, .45), transparent 60%),
    linear-gradient(150deg, #0a2c4e, #0e4272);
}
.consult__eyebrow { font-family: var(--en); font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: #9fd8f5; }
.consult__head h3 { font-family: var(--serif); font-size: 20px; font-weight: 700; letter-spacing: .08em; margin: 6px 0 8px; }
.consult__state { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: rgba(255, 255, 255, .78); }
.consult__state i { width: 7px; height: 7px; border-radius: 50%; background: #4ade9b; box-shadow: 0 0 0 4px rgba(74, 222, 155, .22); }
.consult__close {
  position: absolute; top: 18px; right: 18px; width: 34px; height: 34px; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, .3); border-radius: 50%; background: none; color: #fff;
  font-size: 18px; line-height: 1; transition: background .25s, transform .25s;
}
.consult__close:hover { background: rgba(255, 255, 255, .16); transform: rotate(90deg); }
.consult__log { flex: 1; overflow-y: auto; padding: 22px 20px; display: flex; flex-direction: column; gap: 14px; }
.msg { max-width: 84%; animation: rise .5s both; }
.msg__body { font-size: 14px; line-height: 1.85; padding: 12px 16px; border-radius: 14px; }
.msg--in { align-self: flex-start; }
.msg--in .msg__body { background: #fff; border: 1px solid var(--line); border-top-left-radius: 4px; color: var(--ink); }
.msg--out { align-self: flex-end; text-align: left; }
.msg--out .msg__body { background: linear-gradient(95deg, var(--blue), var(--cyan)); color: #fff; border-top-right-radius: 4px; }
.msg__who { font-size: 11px; letter-spacing: .12em; color: var(--ink-soft); margin-top: 5px; }
.msg--out .msg__who { text-align: right; }
.consult__form { display: flex; gap: 10px; padding: 16px 20px; background: #fff; border-top: 1px solid var(--line); }
.consult__quick { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 20px 14px; background: #fff; }
.consult__quick button {
  font-family: var(--sans); font-size: 12.5px; cursor: pointer; color: var(--blue-deep);
  background: none; border: 1px dashed var(--line); border-radius: 999px; padding: 4px 14px;
  transition: all .25s;
}
.consult__quick button:hover { border-style: solid; border-color: var(--cyan); background: var(--sky); }
.consult__form input {
  flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 999px;
  padding: 12px 18px; font-family: var(--sans); font-size: 14px; color: var(--ink); outline: 0;
  transition: border-color .25s, box-shadow .25s; background: var(--mist);
}
.consult__form input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(18, 115, 196, .12); background: #fff; }
.consult__form button {
  flex: none; border: 0; cursor: pointer; color: #fff; font-family: var(--sans);
  font-size: 14.5px; font-weight: 600; letter-spacing: .08em; padding: 0 24px; border-radius: 999px;
  background: linear-gradient(95deg, var(--blue), var(--cyan));
  box-shadow: 0 12px 26px -12px rgba(31, 139, 214, .8); transition: transform .25s;
}
.consult__form button:hover { transform: translateY(-2px); }
.consult__note { padding: 0 22px 16px; font-size: 11.5px; color: var(--ink-soft); background: #fff; letter-spacing: .04em; }

/* ── 滚动显现 ─────────────────────── */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .9s ease, transform .9s cubic-bezier(.2, .7, .2, 1); }
.reveal.is-in { opacity: 1; transform: none; }

/* ── 响应式 ───────────────────────── */
@media (max-width: 1359px) {
  .dock--left { display: none; }
}

@media (max-width: 960px) {
  /* 头部搜索转为独立一行，避免挤压六个一级导航 */
  .nav__inner { flex-wrap: wrap; height: auto; padding: 10px 0; }
  .navsearch { order: 4; flex: 1 1 100%; margin: 8px 0 0; height: 42px; }
  .navsearch:focus-within { flex-basis: 100%; }
  .hero__grid { grid-template-columns: 1fr; padding: 84px 0 96px; }
  .hero__rail { grid-auto-flow: column; gap: 18px; margin-top: 30px; }
  .hero__rail button { min-width: 0; }
  .hero__rail button i { grid-row: auto; }
  .hero__rail button span { display: none; }
  .mega { display: none; }
  .stats__grid { grid-template-columns: repeat(3, 1fr); gap: 26px 0; }
  .stat:nth-child(4)::before { display: none; }
  .biz__item, .biz__item--flip .biz__media, .about__grid { grid-template-columns: 1fr; }
  .biz__item { grid-template-columns: 1fr; }
  .biz__item--flip .biz__media { order: 0; }
  .biz__item--flip .biz__body { order: 1; }
  .news { grid-template-columns: 1fr; }
  .promise__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .about__media { margin-bottom: 30px; }
  .card { flex-basis: 78%; }
}

@media (max-width: 720px) {
  .topbar__slogan { display: none; }
  .nav__inner { padding: 9px 0; }
  .nav__burger {
    display: flex; flex-direction: column; gap: 5px;
    background: none; border: 0; cursor: pointer; padding: 8px;
  }
  .nav__burger span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: .3s; }
  .nav__burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav__burger.is-open span:nth-child(2) { opacity: 0; }
  .nav__burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav__links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; background: #fff; border-bottom: 1px solid var(--line);
    padding: 12px 6vw 20px; gap: 2px;
    display: none; box-shadow: 0 24px 40px -24px rgba(11, 61, 110, .3);
    max-height: calc(100vh - 118px); overflow-y: auto;
  }
  .nav__links.is-open { display: flex; }
  /* 移动端：mega 折叠为内联子分类列表 */
  .nav__item { display: block; }
  .mega { display: block; position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; background: none; backdrop-filter: none; }
  .mega__inner, .mega__cols { display: grid; grid-template-columns: 1fr; gap: 2px; padding: 0; }
  .mega__feature { display: none; }
  .mega__col { border-left: 0; padding-left: 0; margin-bottom: 6px; }
  .mega__head { font-size: 14.5px; margin-bottom: 0; padding: 6px 0 6px 12px; }
  .mega__head small { display: inline; margin: 0 0 0 8px; }
  .mega__col ul { display: flex; flex-wrap: wrap; gap: 2px 14px; padding-left: 26px; }
  .mega__col li a { padding: 3px 0; font-size: 12.5px; }
  .hero__grid { padding: 64px 0 88px; }
  .hero__title { letter-spacing: .08em; }
  .hero__rail { display: none; }
  .finder__bar { flex-wrap: wrap; border-radius: 22px; padding: 12px 12px 12px 18px; gap: 10px; }
  .finder__bar input { flex: 1 1 100%; font-size: 15px; }
  .finder__go { flex: 1 1 100%; padding: 12px; font-size: 14px; }
  .finder__suggest { position: static; margin-top: 10px; box-shadow: var(--shadow-card); }
  .dock--right { top: auto; bottom: 18px; transform: none; right: 0; }
  .dock--right .dock__panel { border-radius: 14px 0 0 14px; width: 48px; padding: 8px 6px; }
  .dock--right:hover .dock__panel, .dock--right.is-open .dock__panel { width: 208px; }
  .dock__row { grid-template-columns: 20px 1fr; gap: 8px; padding: 7px 6px; }
  .dock__title, .dock__qr { display: none !important; }
  .dock--right [data-copy], .dock--right #openWechat { display: none; }
  .consult__panel { width: 100vw; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stat::before { display: none; }
  .sec-head--row { flex-direction: column; align-items: flex-start; gap: 18px; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__base-inner { flex-direction: column; gap: 6px; }
  .about__plate { right: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  /* 机构墙改成手动横向滚动，不靠自动位移 */
  .partners__track { animation: none; }
  .partners__wall { overflow-x: auto; scrollbar-width: none; }
  .partners__wall::-webkit-scrollbar { display: none; }
}
