/* ==========================================================================
   码因科技官网 · 视觉系统 v4
   配色与信息架构对齐原站 www.neofect.cn，执行层面现代化：
   —— 原站 UI 主色 绿 #1FA67A｜Logo 橙 #E0A848 + 青 #5098B0｜正文 #6B6B6B
   —— 白底、浅灰分隔、绿色强调；首屏沿用原站式全宽轮播
   —— 零依赖、无框架、无 webfont
   ========================================================================== */

:root {
  /* ---- 品牌主色（原站 UI 绿） ---- */
  --brand: #1fa67a;
  --brand-deep: #178a64;
  --brand-strong: #0f6e4f;
  --brand-tint: rgba(31, 166, 122, .07);
  --brand-tint-2: rgba(31, 166, 122, .13);
  --brand-line: rgba(31, 166, 122, .26);

  /* ---- Logo 橙（NEO） ---- */
  --accent: #e0a848;
  --accent-deep: #bf8a29;
  --accent-tint: rgba(224, 168, 72, .14);

  /* ---- Logo 青（FECT） ---- */
  --teal: #5098b0;
  --teal-deep: #3d7b90;
  --teal-tint: rgba(80, 152, 176, .10);

  /* ---- 文字（原站正文 #6B6B6B） ---- */
  --ink: #6b6b6b;
  --ink-head: #29383f;
  --ink-soft: #838c91;
  --ink-faint: #a6aeb2;

  /* ---- 面 / 线（原站分隔 #E8E8E8） ---- */
  --bg: #ffffff;
  --bg-warm: #f7faf9;
  --bg-gray: #f1f1f1;
  --surface: #ffffff;
  --line: #e8e8e8;
  --line-soft: #f0f2f1;

  /* ---- 圆角：对齐原站 VI，全站直角 ---- */
  --r-pill: 0;
  --r-card: 0;
  --r-panel: 0;
  --r-media: 0;
  --r-sm: 0;

  /* ---- 阴影（克制） ---- */
  --sh-soft: 0 1px 2px rgba(41, 56, 63, .04), 0 4px 14px rgba(41, 56, 63, .055);
  --sh-float: 0 2px 6px rgba(41, 56, 63, .07), 0 14px 34px rgba(41, 56, 63, .10);

  --maxw: 1180px;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
               "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC",
               "Noto Sans SC", "Helvetica Neue", sans-serif;
  font-size: 15px;
  line-height: 1.78;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* ---------- 排版 ---------- */
h1, h2, h3, h4 { margin: 0 0 .5em; color: var(--ink-head); }
h1 {
  font-size: clamp(28px, 3.1vw, 40px);
  font-weight: 600;
  line-height: 1.24;
  letter-spacing: -.018em;
}
h2 {
  font-size: clamp(22px, 2.3vw, 30px);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -.014em;
}
h3 { font-size: 18px; font-weight: 600; line-height: 1.44; letter-spacing: -.006em; }
h4 { font-size: 15.5px; font-weight: 600; line-height: 1.5; }
p { margin: 0 0 1em; }
a { color: var(--brand-deep); text-decoration: none; transition: color .16s ease; }
a:hover { color: var(--brand); }
/* 正文段落里的行内链接加下划线，否则和普通文字分不出来 */
main p a:not(.btn) {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: rgba(23, 138, 100, .42);
}
main p a:not(.btn):hover { text-decoration-color: currentColor; }
img { max-width: 100%; display: block; }
b, strong { font-weight: 600; color: var(--ink-head); }
sup { font-size: .56em; vertical-align: super; line-height: 0; letter-spacing: 0; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}

/* 小标签 */
.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--brand-deep);
  margin-bottom: 12px;
}
.eyebrow::before {
  content: '';
  display: inline-block;
  width: 18px;
  height: 2px;
  margin-right: 9px;
  vertical-align: 4px;
  background: var(--accent);
}
/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: #fff;
  border-bottom: 1px solid var(--line);
  transition: box-shadow .28s ease;
}
/* 页眉常驻：不做收起/回缩，访客在任何滚动位置都能直接点导航切页 */
.site-header.scrolled { box-shadow: 0 2px 14px rgba(41, 56, 63, .08); }
.nav-wrap {
  display: flex;
  align-items: center;
  gap: 26px;
  height: 78px;
}
.logo { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.logo img { width: 114px; height: auto; }

.nav {
  display: flex;
  align-items: center;
  gap: 1px;
  margin-left: auto;
}
.nav-item { position: relative; }
.nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 15px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-head);
  border-radius: var(--r-sm);
  white-space: nowrap;
  transition: background .16s ease, color .16s ease;
}
.nav-link svg { width: 15px; height: 15px; flex: 0 0 auto; opacity: .62; }
.nav-link:hover { background: var(--brand-tint); color: var(--brand-deep); }
.nav-link:hover svg { opacity: 1; }
.nav-link.active { color: var(--brand-deep); background: var(--brand-tint); }
.nav-link.active svg { opacity: 1; }
.nav-link .caret {
  display: inline-block;
  width: 5px; height: 5px;
  margin-left: 3px;
  border-right: 1.4px solid currentColor;
  border-bottom: 1.4px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  opacity: .5;
}
.dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 308px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
  box-shadow: var(--sh-float);
  padding: 7px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: .18s cubic-bezier(.4, 0, .2, 1);
}
.nav-item:hover .dropdown,
.nav-item.open .dropdown { opacity: 1; visibility: visible; transform: none; }
.dropdown::before {
  content: '';
  position: absolute;
  top: -6px; left: 0; right: 0;
  height: 6px;
}
.dropdown a {
  display: block;
  padding: 9px 12px;
  font-size: 14px;
  color: var(--ink);
  border-radius: var(--r-sm);
  border-left: 2px solid transparent;
  transition: background .14s ease, border-color .14s ease, color .14s ease;
}
.dropdown a:hover {
  background: var(--brand-tint);
  border-left-color: var(--brand);
  color: var(--brand-deep);
}
.dropdown a small {
  display: block;
  color: var(--ink-faint);
  font-size: 12px;
  line-height: 1.5;
  margin-top: 1px;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 42px; height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: #fff;
  cursor: pointer;
}
.nav-toggle i {
  display: block;
  width: 17px; height: 1.8px;
  margin: 3.6px auto;
  background: var(--ink-head);
  border-radius: 2px;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 11px 23px;
  font-size: 14.5px;
  font-family: inherit;
  font-weight: 500;
  line-height: 1.4;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease,
              box-shadow .18s ease, transform .18s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 1px 2px rgba(15, 110, 79, .18), 0 3px 10px rgba(31, 166, 122, .22);
}
.btn-primary:hover {
  background: var(--brand-deep);
  color: #fff;
  box-shadow: 0 2px 5px rgba(15, 110, 79, .2), 0 8px 20px rgba(31, 166, 122, .28);
  transform: translateY(-1px);
}
.btn-ghost {
  background: #fff;
  color: var(--ink-head);
  border-color: var(--line);
}
.btn-ghost:hover {
  color: var(--brand-deep);
  border-color: var(--brand-line);
  box-shadow: var(--sh-soft);
  transform: translateY(-1px);
}
.btn-sm { padding: 8px 16px; font-size: 13.5px; }
.btn-block { width: 100%; }

/* ---------- 首屏轮播（原站式全宽） ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: #eef4f2;
}
.hero-slides { position: relative; }
.hero-slide {
  display: none;
  position: relative;
}
.hero-slide.active { display: block; }
.hero-slide img {
  width: 100%;
  height: clamp(280px, 34vw, 430px);
  object-fit: cover;
  display: block;
}
.hero-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 32, 44, 0) 44%, rgba(6, 32, 44, .40) 100%);
  pointer-events: none;
}
.hero-caption {
  position: absolute;
  left: 0; right: 0;
  bottom: 0;
  z-index: 2;
  padding-bottom: 78px;
}
.hero-card {
  display: block;
  max-width: 520px;
  background: rgba(255, 255, 255, .95);
  border-left: 4px solid var(--brand);
  border-radius: var(--r-card);
  padding: 20px 24px;
  box-shadow: 0 12px 34px rgba(6, 32, 44, .22);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.hero-card:hover {
  transform: translateY(-3px);
  border-left-color: var(--accent);
  box-shadow: 0 18px 44px rgba(6, 32, 44, .28);
}
.hero-card .k {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--brand-deep);
  font-weight: 600;
  margin-bottom: 7px;
}
/* 首屏「发表于 Nature」那一屏的 [喜讯] 标记（logo 橙 / 直角 / 白字） */
.news-badge {
  display: inline-block;
  margin-right: 9px;
  padding: 1px 6px;
  background: var(--accent);
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
               "Microsoft YaHei", "Source Han Sans SC", sans-serif;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: .02em;
  text-transform: none;
  vertical-align: 1px;
}
.hero-card h2 {
  color: var(--ink-head);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.34;
  letter-spacing: -.012em;
  margin: 0 0 10px;
}
.hero-card .go {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 600;
  color: var(--brand-deep);
}
.hero-card .go::after {
  content: '';
  width: 6px; height: 6px;
  border-right: 1.8px solid currentColor;
  border-top: 1.8px solid currentColor;
  transform: rotate(45deg);
  transition: transform .2s ease;
}
.hero-card:hover .go::after { transform: rotate(45deg) translate(2px, -2px); }
.hero-nav {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--maxw);
  padding: 0 28px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 14px;
}
.hero-dots { display: flex; gap: 7px; }
.hero-dots button {
  width: 26px; height: 4px;
  padding: 0;
  border: 0;
  border-radius: 2px;
  background: rgba(255, 255, 255, .42);
  cursor: pointer;
  transition: .24s ease;
}
.hero-dots button.active { background: #fff; width: 42px; }
.hero-arrows { display: flex; gap: 8px; margin-left: auto; }
.hero-arrows button {
  width: 38px; height: 38px;
  border-radius: 0;
  border: 1px solid rgba(255, 255, 255, .45);
  background: rgba(255, 255, 255, .14);
  color: #fff;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: .18s ease;
}
.hero-arrows button:hover { background: #fff; color: var(--brand-deep); border-color: #fff; }

/* ---------- 首屏第 3 页：Nature 顶刊引用（深底 + 期刊封面） ---------- */
.hero-slide--paper {
  height: clamp(280px, 34vw, 430px);
  background: #0e2b34 url('../img/hero-nature-bg.jpg') center center / cover no-repeat;
}
.hero-cover {
  position: absolute;
  top: 50%;
  right: clamp(24px, 6vw, 96px);
  transform: translateY(-54%);
  margin: 0;
  text-align: center;
  pointer-events: none;
}
.hero-slide .hero-cover img {
  display: block;
  width: clamp(96px, 11vw, 150px);
  height: auto;
  object-fit: unset;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .45);
}
.hero-cover figcaption {
  margin-top: 10px;
  max-width: 172px;
  font-size: 11px;
  line-height: 1.55;
  color: rgba(255, 255, 255, .5);
}

/* ---------- 内页页头 ---------- */
.page-head {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #f2f8f6 0%, #ffffff 100%);
  border-bottom: 1px solid var(--line-soft);
  padding: 34px 0 40px;
}
.page-head::after {
  content: '';
  position: absolute;
  right: -80px; top: -80px;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--brand-tint-2), transparent 68%);
  pointer-events: none;
}
.page-head .container { position: relative; z-index: 2; }
.page-head .breadcrumb {
  font-size: 12.5px;
  color: var(--ink-faint);
  margin-bottom: 14px;
}
.page-head .breadcrumb a { color: var(--ink-faint); }
.page-head .breadcrumb a:hover { color: var(--brand-deep); }
.page-head h1 { margin-bottom: 12px; }
.page-head h1::after {
  content: '';
  display: block;
  width: 42px; height: 3px;
  margin-top: 16px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
}
.page-head p { color: var(--ink); max-width: 780px; margin: 0; font-size: 15.5px; }
.page-head .eyebrow { margin-bottom: 10px; }

/* ---------- 区块 ---------- */
.section { padding: 68px 0; }
.section-alt { background: var(--bg-warm); }
.section-head { margin-bottom: 36px; }
.section-head.center { text-align: center; }
.section-head.center h2::after { margin-left: auto; margin-right: auto; }
.section-head h2 { margin-bottom: 12px; }
.section-head h2::after {
  content: '';
  display: block;
  width: 36px; height: 3px;
  margin-top: 14px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
}
.section-head p { color: var(--ink); margin: 0; font-size: 15.5px; max-width: 760px; }
.section-head.center p { margin-left: auto; margin-right: auto; }
/* 副行：公司定位句之后过渡到发表文献 */
.section-head .head-note { margin-top: 13px; font-size: 14px; line-height: 1.75; color: var(--ink-soft); max-width: 700px; }
.section-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.section-head-row .section-head { margin-bottom: 0; }

/* ---------- 网格 ---------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- 卡片 ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 26px;
  transition: box-shadow .24s ease, border-color .24s ease, transform .24s ease;
}
.card:hover { box-shadow: var(--sh-soft); border-color: #e0e6e4; }
.card h3 { margin-bottom: 8px; }
.card h4 { margin-bottom: 8px; }
.card p:last-child { margin-bottom: 0; }
.card ul { margin: 0 0 16px; padding-left: 18px; color: var(--ink); }
.card ul:last-child { margin-bottom: 0; }
.card li { margin-bottom: 7px; }
.card-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }

/* 信息位（首页三栏区，对齐原站 widget） */

/* 产品卡 */
.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 26px;
  overflow: hidden;
  transition: box-shadow .26s ease, border-color .26s ease, transform .26s ease;
}
.product-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  opacity: 0;
  transition: opacity .26s ease;
}
.product-card:hover {
  box-shadow: var(--sh-float);
  border-color: transparent;
  transform: translateY(-3px);
}
.product-card:hover::after { opacity: 1; }
.product-card .tag {
  align-self: flex-start;
  display: inline-block;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .06em;
  padding: 3px 11px;
  border-radius: var(--r-pill);
  background: var(--brand-tint);
  color: var(--brand-deep);
  margin-bottom: 15px;
}
.product-card .tag.accent { background: var(--accent-tint); color: var(--accent-deep); }
.product-card .tag.teal { background: var(--teal-tint); color: var(--teal-deep); }
.product-card h3 { font-size: 19px; margin-bottom: 6px; }
.product-card .en {
  font-size: 12.5px;
  color: var(--ink-faint);
  margin-bottom: 16px;
  line-height: 1.6;
  letter-spacing: .01em;
}
.product-card ul { margin: 0 0 18px; padding-left: 18px; color: var(--ink); font-size: 14.5px; }
.product-card li { margin-bottom: 7px; }
.product-card p { color: var(--ink); font-size: 14.5px; }
.spec-line {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  padding: 13px 0;
  margin: 0 0 18px;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
}
.product-card .spec-line { margin-top: auto; }
.spec-line span { color: var(--ink-faint); }
.spec-line b { color: var(--ink-head); font-weight: 600; font-family: var(--font-mono); font-size: 12.5px; }

/* ---------- TAB ---------- */
.tabs-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0;
}
.tabs-scroll::-webkit-scrollbar { display: none; }
.tabs { display: inline-flex; gap: 4px; }
.tab-btn {
  position: relative;
  flex: 0 0 auto;
  padding: 11px 20px;
  font-size: 14.5px;
  font-family: inherit;
  font-weight: 500;
  color: var(--ink-soft);
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  cursor: pointer;
  white-space: nowrap;
  transition: color .18s ease, border-color .18s ease;
}
.tab-btn:hover { color: var(--ink-head); }
.tab-btn.active { color: var(--brand-deep); border-bottom-color: var(--brand); }
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fade .3s cubic-bezier(.4, 0, .2, 1); }
@keyframes fade { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }

/* ---------- 表格 ---------- */
.table-wrap {
  overflow-x: auto;
  margin: 24px 0;
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
}
table.data {
  width: 100%;
  min-width: 520px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 14px;
  background: #fff;
}
table.data th, table.data td {
  padding: 12px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line-soft);
}
table.data thead th {
  background: var(--bg-warm);
  color: var(--brand-strong);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .02em;
  white-space: nowrap;
  border-bottom: 1px solid var(--line);
}
table.data tbody tr:last-child td { border-bottom: 0; }
table.data tbody tr:nth-child(even) { background: #fcfdfd; }
table.data tbody tr:hover { background: var(--brand-tint); }
table.data td.num { font-variant-numeric: tabular-nums; white-space: nowrap; font-family: var(--font-mono); font-size: 13px; }
table.data td b { color: var(--ink-head); }
table.data .hint { color: var(--ink-faint); font-size: 12.5px; }

/* ---------- 提示块 ---------- */
.callout {
  background: var(--brand-tint);
  border: 1px solid var(--brand-line);
  border-left: 3px solid var(--brand);
  border-radius: var(--r-sm);
  padding: 14px 18px;
  margin: 24px 0;
  font-size: 14.5px;
  color: var(--ink);
}
.callout strong { color: var(--brand-strong); }
.callout.warn {
  background: rgba(217, 131, 36, .06);
  border-color: rgba(217, 131, 36, .25);
  border-left-color: #d98324;
}
.callout.warn strong { color: #a2611a; }

/* ---------- 步骤 ---------- */
.steps { counter-reset: step; list-style: none; margin: 0; padding: 0; }
.steps li {
  position: relative;
  counter-increment: step;
  padding-left: 46px;
  margin-bottom: 22px;
}
.steps li:last-child { margin-bottom: 0; }
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: 1px;
  width: 28px; height: 28px;
  border-radius: 0;
  background: var(--brand-tint);
  color: var(--brand-deep);
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 0 1px var(--brand-line);
}
.steps li b { display: block; color: var(--ink-head); font-weight: 600; }
.steps li p { margin: 3px 0 0; color: var(--ink); font-size: 14.5px; }

/* ---------- 图片 / 图注 ---------- */
.figure {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 18px;
  margin: 26px 0;
}
.figure img { border-radius: var(--r-media); margin: 0 auto; }
.figure .figure-box {
  position: relative;
  background:
    repeating-linear-gradient(135deg, rgba(31, 166, 122, .04), rgba(31, 166, 122, .04) 12px, rgba(31, 166, 122, .075) 12px, rgba(31, 166, 122, .075) 24px);
  border: 1px solid var(--brand-line);
  border-radius: var(--r-media);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-faint);
  font-size: 14px;
  aspect-ratio: 16 / 8;
  max-height: 460px;
  padding: 20px;
  text-align: center;
}
.figure figcaption { font-size: 13.5px; color: var(--ink-soft); margin-top: 13px; line-height: 1.66; }

/* 图文并茂：图与说明/表格/步骤并排 */
.fig-pair { align-items: start; }
.fig-pair > * { min-width: 0; }   /* grid item 默认 min-width:auto，会被内部宽表格撑破 */
.fig-pair > .figure { margin: 0; }
.fig-pair--data { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: center; }
/* 半栏里的表格不再强制 520px 最小宽度，改为随栏宽自适应（否则桌面端也要横滑） */
.fig-pair--data table.data { min-width: 0; }
.fig-pair--data table.data thead th { white-space: normal; }
.fig-pair .figure img { width: auto; max-width: 100%; }
/* 操作流程：竖长示意图限宽居中，与右侧步骤文字高度更接近 */
.fig-pair--flow { align-items: center; }
.fig-pair--flow .figure img { max-width: min(340px, 100%); margin: 0 auto; }

/* ==========================================================================
   图文带（产品介绍页用）：把「一整块文字 + 一整块图」拆成左右并排的叙事带，
   图片与说明文字逐段交替，避免文字堆与图片堆各自成坨。
   ========================================================================== */

/* ---------- 关键指标条 ---------- */
.key-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  background: var(--bg-warm);
  margin: 0 0 52px;
}
.key-strip > div { padding: 22px 24px; }
.key-strip > div + div { border-left: 1px solid var(--line); }
.key-strip .kv {
  font-size: 25px;
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -.02em;
  color: var(--brand-strong);
  font-variant-numeric: tabular-nums;
}
.key-strip .kv b { color: inherit; font-weight: inherit; }
.key-strip .kv span { font-size: 14px; font-weight: 500; margin-left: 1px; letter-spacing: 0; }
.key-strip .kv--t { font-size: 21px; letter-spacing: 0; padding-top: 2px; }
.key-strip p { margin: 9px 0 0; font-size: 13.6px; line-height: 1.66; color: var(--ink-soft); }

/* ---------- 小节标题（带左侧渐变竖条） ---------- */
.block-title {
  position: relative;
  font-size: 20px;
  padding-left: 15px;
  margin: 54px 0 8px;
}
.block-title:first-child { margin-top: 0; }
.block-title::before {
  content: '';
  position: absolute;
  left: 0; top: .3em; bottom: .3em;
  width: 3px;
  background: linear-gradient(180deg, var(--brand), var(--accent));
}
.block-note { margin: 0; font-size: 14px; color: var(--ink-soft); max-width: 720px; }

/* ---------- 为什么选择：左标题 + 右编号清单 ---------- */
.why {
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr);
  gap: 48px;
  align-items: start;
}
.why > * { min-width: 0; }
.why-head h3 { font-size: 22px; margin-bottom: 12px; }
.why-head p { margin: 0; font-size: 14.6px; color: var(--ink-soft); line-height: 1.74; }

.why-list { list-style: none; margin: 0; padding: 0; }
.why-list li { display: flex; gap: 17px; padding: 19px 0; border-top: 1px solid var(--line-soft); }
.why-list li:first-child { border-top: 0; padding-top: 2px; }
.why-list .idx {
  flex: 0 0 auto;
  padding-top: 3px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--brand);
}
.why-list h4 { margin: 0 0 5px; font-size: 15.5px; }
.why-list p { margin: 0; font-size: 14.2px; line-height: 1.72; color: var(--ink-soft); }

/* ---------- 小程序推广块（sgRNA 设计页：左侧小程序码 + 右侧要点） ---------- */
.miniprog {
  display: grid;
  grid-template-columns: minmax(0, 268px) minmax(0, 1fr);
  gap: 46px;
  align-items: start;
}
.miniprog > * { min-width: 0; }   /* grid item 默认 min-width:auto，会被内容撑破 */
.miniprog-qr {
  border: 1px solid var(--line);
  background: var(--bg-warm);
  padding: 26px 22px 22px;
  text-align: center;
}
.miniprog-qr img {
  display: block;
  width: 100%;
  max-width: 236px;
  height: auto;
  margin: 0 auto;
  background: #fff;
}
.miniprog-cap { margin: 16px 0 0; font-size: 13px; color: var(--ink); line-height: 1.62; }
.miniprog-cap b { display: block; font-size: 15.5px; color: var(--brand-strong); font-weight: 600; margin-bottom: 3px; }
.miniprog-alt {
  margin: 13px 0 0;
  padding-top: 13px;
  border-top: 1px solid var(--line);
  font-size: 12.8px;
  line-height: 1.7;
  color: var(--ink-soft);
}
.miniprog-alt em { font-style: normal; font-weight: 600; color: var(--ink-head); }
.miniprog-list em { font-style: italic; }
.miniprog-note { margin: 30px 0 0; font-size: 12.8px; line-height: 1.85; color: var(--ink-faint); }
.miniprog-note b { color: var(--ink-soft); font-weight: 600; }

/* ---------- 图文带 ---------- */
.band {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  gap: 46px;
  align-items: center;
  padding: 46px 0;
}
.band + .band { border-top: 1px solid var(--line-soft); }
.band > * { min-width: 0; }
.band--flip .band-figure { order: 2; }

.band-figure { position: relative; margin: 0; }
/* 编号标签放在图片上方独立一行，避免压住图内的原始标注 */
.band-figure .shot { display: block; position: relative; padding-top: 23px; }
.band-figure img {
  width: 100%;
  height: auto;
  padding: 14px;
  border: 1px solid var(--line);
  background: #fff;
}
/* 竖长示意图：整体居中，编号标签跟着图片左边走 */
.band-figure--tall .shot { width: fit-content; max-width: 100%; margin: 0 auto; }
.band-figure--tall img { width: 420px; max-width: 100%; }
.band-figure--tall figcaption { max-width: 420px; margin-left: auto; margin-right: auto; }
.band-figure figcaption { margin-top: 12px; font-size: 13px; line-height: 1.64; color: var(--ink-soft); }
.fig-tag {
  position: absolute;
  left: 0; top: 0;
  z-index: 2;
  padding: 4px 11px;
  background: var(--ink-head);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .07em;
  line-height: 1.5;
}

.band-text h3 { font-size: 21px; margin-bottom: 13px; }
.band-text p { font-size: 14.8px; line-height: 1.78; }
.band-text p:last-child { margin-bottom: 0; }
.band-text .table-mini { margin-top: 20px; }
.band-text .table-mini table.data { min-width: 0; }
.band-text table.data thead th { white-space: normal; }
.band-text .steps { margin-top: 4px; }

/* 小节引导语（小标签 + 短横线） */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 12px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--brand-deep);
}
.kicker::before { content: ''; width: 16px; height: 2px; background: var(--accent); }

/* 结论条 */
.band-note {
  margin-top: 20px;
  padding: 12px 16px;
  background: var(--brand-tint);
  border-left: 3px solid var(--brand);
  font-size: 13.8px;
  line-height: 1.7;
  color: var(--brand-strong);
}

/* ---------- 文献背书条 ---------- */
.proof-band {
  display: grid;
  grid-template-columns: minmax(0, 208px) minmax(0, 1fr);
  border: 1px solid var(--line);
  background: #fff;
  margin-top: 22px;
}
.proof-band > * { min-width: 0; }
.pb-journal {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 26px 26px;
  border-right: 1px solid var(--line);
  background: var(--bg-warm);
}
.pb-journal .j-name {
  font-size: 27px;
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -.025em;
  color: var(--ink-head);
}
.pb-journal .j-cite {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .01em;
  color: var(--ink-faint);
}
.pb-body { padding: 24px 28px 26px; }
.pb-body .pb-lead { margin: 0 0 13px; font-size: 14.4px; line-height: 1.76; color: var(--ink); }
.pb-body blockquote {
  margin: 0;
  padding-left: 16px;
  border-left: 2px solid var(--brand-line);
  font-size: 13.8px;
  line-height: 1.74;
  font-style: italic;
  color: var(--ink-head);
}
.pb-body .pb-doi {
  display: inline-block;
  margin-top: 13px;
  font-family: var(--font-mono);
  font-size: 12.5px;
}

/* ---------- 测算器 ---------- */
.calc {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 28px;
}
.calc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: end; }
.field label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 7px;
}
.field input {
  width: 100%;
  padding: 10px 13px;
  font-size: 15px;
  font-family: var(--font-mono);
  color: var(--ink-head);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: #fff;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.field input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-tint-2);
}
.calc-presets { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.calc-presets button {
  font-family: inherit;
  font-size: 13px;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-soft);
  cursor: pointer;
  transition: .18s ease;
}
.calc-presets button:hover {
  border-color: var(--brand-line);
  color: var(--brand-deep);
  background: var(--brand-tint);
}
.calc-out {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.calc-out .out-item {
  background: var(--bg-warm);
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
  padding: 15px 17px;
}
.calc-out .out-item span { display: block; font-size: 12.5px; color: var(--ink-faint); margin-bottom: 4px; }
.calc-out .out-item b {
  font-size: 18px;
  color: var(--brand-strong);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.calc-out .out-item small { font-size: 12px; font-weight: 400; color: var(--ink-faint); }
.calc-note { font-size: 13px; color: var(--ink-faint); margin: 18px 0 0; line-height: 1.7; }
.calc-note b { color: var(--brand-strong); font-weight: 600; }

/* 关键输入（预实验实测值）——整块高亮，视觉上从三个常规输入中拎出来 */
.field--key label { color: var(--brand-strong); }
.field--key input {
  border-color: var(--brand-line);
  background: var(--brand-tint);
  color: var(--brand-strong);
  font-weight: 600;
}

/* 计算公式块 */
.formula {
  margin: 18px 0 0;
  padding: 16px 20px;
  background: var(--bg-warm);
  border: 1px solid var(--line);
  font-size: 14.5px;
  line-height: 2.1;
  color: var(--ink-head);
}

/* 核心产出高亮（感染预实验唯一必须带走的参数） */
.pin {
  background: var(--brand-tint-2);
  border: 1px solid var(--brand-line);
  border-left: 4px solid var(--brand);
  padding: 18px 22px;
  margin: 28px 0 0;
}
.pin-label {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brand-strong);
  margin-bottom: 8px;
}
.pin p { margin: 0; font-size: 15.5px; line-height: 1.82; color: var(--ink-head); }
.pin p b { color: var(--brand-strong); font-weight: 600; }

/* ---------- CTA 带 ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  color: #fff;
  border-radius: var(--r-card);
  padding: 38px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  background: linear-gradient(118deg, #15805d 0%, var(--brand-deep) 46%, #1b6f5b 100%);
}
.cta-band::after {
  content: '';
  position: absolute;
  right: -70px; top: -70px;
  width: 260px; height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(224, 168, 72, .34), transparent 66%);
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h3 { color: #fff; font-weight: 600; margin-bottom: 6px; font-size: 21px; }
.cta-band p { margin: 0; color: rgba(255, 255, 255, .84); font-size: 14.5px; max-width: 560px; }
.cta-band .btn-primary { background: #fff; color: var(--brand-strong); }
.cta-band .btn-primary:hover { background: #f3fbf8; color: var(--brand-strong); }

/* ---------- 代表性引用（重点文献 + 检索量宣传点） ---------- */
.pub-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--brand);
  margin-bottom: 40px;
}
.pf-main { padding: 30px 34px 28px; min-width: 0; }
.pf-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: 18px;
}
.pf-journal {
  font-family: Georgia, "Times New Roman", "Songti SC", "SimSun", serif;
  font-size: 31px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.015em;
  color: var(--ink-head);
}
.pf-cite {
  font-size: 12.5px;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.pf-title {
  font-size: 18.5px;
  line-height: 1.45;
  letter-spacing: -.01em;
  color: var(--ink-head);
  margin: 0 0 8px;
}
.pf-title-cn { font-size: 14px; color: var(--ink-soft); margin: 0 0 13px; }
.pf-authors { font-size: 13px; line-height: 1.7; color: var(--ink); margin: 0 0 20px; }
.pf-quote {
  margin: 0 0 16px;
  padding: 15px 18px;
  background: var(--brand-tint);
  border-left: 3px solid var(--brand);
}
.pf-quote-lead { font-size: 12.5px; color: var(--ink-soft); margin: 0 0 9px; }
.pf-quote blockquote { margin: 0; font-size: 13.5px; line-height: 1.78; color: var(--ink-head); }
.pf-quote blockquote b { color: var(--brand-strong); font-weight: 600; }
.pf-quote figcaption {
  margin-top: 9px;
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.pf-doi { font-size: 12.5px; color: var(--brand-deep); word-break: break-all; }

/* 双文献并排（crispr 页） */
.pub-duo {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.pub-duo > * { min-width: 0; }
.pub-duo .pf-main {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--brand);
}
.pub-duo .pf-title { font-size: 17px; }

.pf-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 30px;
  border-left: 1px solid var(--line);
  background: var(--brand-tint);
}
.pf-num { display: flex; align-items: baseline; gap: 4px; }
.pf-num b {
  font-size: clamp(44px, 5.4vw, 60px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.035em;
  color: var(--brand-strong);
  font-variant-numeric: tabular-nums;
}
.pf-num span { font-size: 15px; color: var(--ink-soft); }
.pf-label { font-size: 13px; line-height: 1.7; color: var(--ink); margin: 13px 0 16px; }

/* ---------- 文献引用（标准参考文献列表） ---------- */
.refs {
  list-style: none;
  counter-reset: ref;
  margin: 0;
  padding: 0;
  columns: 2;
  column-gap: 56px;
}
.refs li {
  position: relative;
  break-inside: avoid;
  padding: 0 0 0 30px;
  margin: 0 0 15px;
  font-size: 13.5px;
  line-height: 1.72;
  color: var(--ink);
}
.refs li::before {
  content: "[" counter(ref) "]";
  counter-increment: ref;
  position: absolute;
  left: 0;
  top: 1px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--brand-deep);
  font-variant-numeric: tabular-nums;
}
.refs li em { font-style: italic; color: var(--ink-head); }

/* ---------- Google 学术截图：977 卡片内的小缩略图 ---------- */
/* 977 已是卡片里的大号数字，截图退成「来源佐证」的小图，不做通栏铺开 */
.scholar-thumb {
  display: block;
  width: 170px;
  margin: 2px 0 20px;
  border: 1px solid var(--line);
  background: #fff;
  transition: box-shadow .2s ease, border-color .2s ease;
}
.scholar-thumb:hover { box-shadow: var(--sh-soft); border-color: #cfdad6; }
.scholar-thumb img { display: block; width: 100%; height: auto; }


/* ---------- 页脚 ---------- */
.site-footer {
  background: var(--bg-gray);
  border-top: 3px solid var(--brand);
  padding: 48px 0 0;
  font-size: 14px;
  color: var(--ink);
}
.site-footer h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-head);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e2e2e2;
}
.footer-grid { display: grid; grid-template-columns: 1.25fr 1fr 1.5fr 1.15fr; gap: 34px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 9px; }
.footer-grid a { color: var(--ink); font-size: 13.5px; }
.footer-grid a:hover { color: var(--brand-deep); }
.footer-grid p { color: var(--ink); margin: 0 0 8px; font-size: 13.5px; line-height: 1.7; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.footer-brand img { width: 132px; height: auto; }

/* 品牌所有权变更通知 */

/* 技术文档页：左目录 + 右正文 */
.docs-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 34px;
  align-items: start;
}
/* grid item 默认 min-width:auto，内部宽表会把整列撑破 → 必须显式归零 */
.docs-layout > * { min-width: 0; }
.docs-layout > aside { position: sticky; top: 100px; }

/* 侧栏「文档目录」：只有当前页那一项是激活态（绿色加粗），其余为中性灰 */
.docs-nav { list-style: none; margin: 0; padding: 0; font-size: 14.5px; }
.docs-nav li { margin-bottom: 8px; }
.docs-nav li:last-child { margin-bottom: 0; }
.docs-nav a { display: block; color: var(--ink); line-height: 1.55; }
.docs-nav a:hover { color: var(--brand); }
.docs-nav a.active { color: var(--brand-strong); font-weight: 600; }
.docs-nav .soon { color: var(--ink-faint); }
.footer-bottom {
  margin-top: 40px;
  padding: 18px 0;
  border-top: 1px solid #e2e2e2;
  color: var(--ink-soft);
  font-size: 12.5px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}
.footer-bottom a { color: var(--ink-soft); }
.footer-bottom a:hover { color: var(--brand-deep); }

/* ---------- 模态窗 ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 44px 20px;
  overflow-y: auto;
}
.modal.open { display: flex; }
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(23, 42, 38, .46);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  animation: fade .2s ease;
}
.modal-dialog {
  position: relative;
  width: 100%;
  max-width: 530px;
  background: #fff;
  border-radius: var(--r-card);
  padding: 32px;
  box-shadow: 0 24px 60px rgba(23, 42, 38, .3);
  animation: pop .28s cubic-bezier(.4, 0, .2, 1);
  margin: auto;
}
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }
.modal-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 32px; height: 32px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: #fff;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
  transition: .18s ease;
}
.modal-close:hover { background: var(--brand-tint); color: var(--brand-deep); border-color: var(--brand-line); }
.modal h3 { margin-bottom: 6px; }
.modal .modal-sub { font-size: 13.5px; color: var(--ink-soft); margin-bottom: 24px; }

/* ---------- 表单 ---------- */
.form-row { margin-bottom: 15px; }
.form-row label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-head); margin-bottom: 6px; }
.form-row label .req { color: #d9534f; }
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 11px 13px;
  font-size: 15px;
  font-family: inherit;
  color: var(--ink-head);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: #fff;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.form-row textarea { min-height: 90px; resize: vertical; }
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-tint-2);
}
.form-note { font-size: 12.5px; color: var(--ink-faint); margin-top: 13px; line-height: 1.66; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg {
  display: none;
  padding: 13px 16px;
  border-radius: var(--r-sm);
  font-size: 14px;
  margin-top: 15px;
}
.form-msg.show { display: block; }
.form-msg.ok { background: var(--brand-tint); color: var(--brand-strong); border: 1px solid var(--brand-line); }
.form-msg.err { background: rgba(217, 83, 79, .07); color: #b03b37; border: 1px solid rgba(217, 83, 79, .22); }

/* ---------- 提交反馈浮层（发送中 / 成功 / 失败） ---------- */
.send-layer {
  position: fixed;
  inset: 0;
  z-index: 120;                 /* 高于模态窗（100），故弹窗内提交时也能盖住 */
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.send-layer.open { display: flex; }
.send-layer-bg {
  position: absolute;
  inset: 0;
  background: rgba(23, 42, 38, .52);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  animation: fade .2s ease;
}
.send-card {
  position: relative;
  width: 100%;
  max-width: 400px;
  background: #fff;
  border-radius: var(--r-card);
  padding: 40px 32px 30px;
  text-align: center;
  box-shadow: 0 24px 60px rgba(23, 42, 38, .3);
  animation: pop .28s cubic-bezier(.4, 0, .2, 1);
}
/* 发送中：旋转圆环 */
.send-spin {
  width: 46px;
  height: 46px;
  margin: 0 auto 20px;
  border: 3px solid var(--brand-line);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
/* 结果图标：直角方块（随全站直角 VI），内嵌 SVG */
.send-mark {
  width: 54px;
  height: 54px;
  margin: 0 auto 20px;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  animation: pop .3s cubic-bezier(.4, 0, .2, 1);
}
.send-mark.ok { background: var(--brand); }
.send-mark.err { background: #d9534f; }
.send-mark svg { display: block; }
.send-title { font-size: 18px; font-weight: 600; color: var(--ink-head); margin-bottom: 10px; }
.send-text { font-size: 14.5px; line-height: 1.78; color: var(--ink-soft); }
.send-text b { color: var(--brand-strong); font-weight: 600; }
.send-actions { margin-top: 26px; }
.send-actions .btn { min-width: 136px; }
.send-help { margin-top: 18px; font-size: 12.8px; line-height: 1.7; color: var(--ink-faint); }

/* 按状态显隐 */
.send-layer[data-state="sending"] .send-mark,
.send-layer[data-state="sending"] .send-actions,
.send-layer[data-state="sending"] .send-help { display: none; }
.send-layer:not([data-state="sending"]) .send-spin { display: none; }
.send-layer[data-state="done"] .send-mark.err,
.send-layer[data-state="error"] .send-mark.ok { display: none; }

@media (prefers-reduced-motion: reduce) {
  .send-card, .send-mark { animation: none; }
}

/* ---------- 滚动显影（无 JS 时保持可见） ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s cubic-bezier(.2, .8, .3, 1), transform .7s cubic-bezier(.2, .8, .3, 1);
}
.js .reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .06s; }
.reveal.d2 { transition-delay: .12s; }
.reveal.d3 { transition-delay: .18s; }

/* ---------- 打印 ---------- */
@media print {
  .site-header, .site-footer, .modal, .hero-nav { display: none !important; }
}

/* ---------- 响应式 ---------- */
/* 导航到 ~1070px 以下装不下（logo + 5 项 + 按钮），提前收成汉堡，
   否则会出现整页横向滚动条 */
@media (max-width: 1100px) {
  .nav-wrap { height: 68px; }
  .nav-toggle { display: block; }
  .nav {
    position: absolute;
    top: 68px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 8px 16px 18px;
    display: none;
    box-shadow: 0 14px 30px rgba(41, 56, 63, .1);
    max-height: calc(100vh - 68px);
    overflow-y: auto;
  }
  .nav.open { display: flex; }
  .nav-item { width: 100%; border-bottom: 1px solid var(--line-soft); }
  .nav-link { border-radius: 0; padding: 13px 8px; justify-content: space-between; }
  .nav-link .caret { margin-left: auto; }
  .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: 0;
    padding: 0 0 8px 12px;
    display: none;
  }
  .dropdown::before { display: none; }
  .nav-item.open .dropdown { display: block; }
  .nav .btn { margin: 14px 8px 0; }
}

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .calc-grid { grid-template-columns: repeat(2, 1fr); }
  .calc-out { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .docs-layout { grid-template-columns: 1fr; gap: 24px; }
  .docs-layout > aside { position: static; }
  .pub-feature { grid-template-columns: 1fr; }
  .pub-duo { grid-template-columns: 1fr; }
  .pf-side { border-left: 0; border-top: 1px solid var(--line); padding: 26px 24px; }
  .fig-pair--data { grid-template-columns: 1fr; }

  /* 图文带：窄屏收起为单列，图在上、文在下 */
  .key-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .key-strip > div:nth-child(odd) { border-left: 0; }
  .key-strip > div:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .why { grid-template-columns: 1fr; gap: 24px; }
  .miniprog { grid-template-columns: minmax(0, 230px) minmax(0, 1fr); gap: 32px; }
  .band { grid-template-columns: 1fr; gap: 26px; padding: 38px 0; }
  .band--flip .band-figure { order: 0; }
  .proof-band { grid-template-columns: 1fr; }
  .pb-journal {
    flex-direction: row;
    align-items: baseline;
    gap: 14px;
    padding: 18px 24px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 768px) {
  body { font-size: 14.5px; }
  .container { padding: 0 20px; }
  .logo img { width: 98px; }
  .hero-slide img { height: 330px; object-position: 68% center; }
  .hero-caption { padding-bottom: 66px; }
  .hero-card { padding: 15px 17px; }
  .hero-card h2 { font-size: 17px; }
  .hero-card .k { font-size: 10px; }
  .hero-nav { bottom: 16px; padding: 0 20px; }
  .hero-arrows { display: none; }
  .hero-slide--paper { height: 330px; }
  .hero-cover { right: 18px; }
  .hero-slide .hero-cover img { width: 78px; box-shadow: 0 6px 20px rgba(0, 0, 0, .42); }
  .hero-cover figcaption { display: none; }
  .page-head { padding: 26px 0 30px; }
  .page-head p { font-size: 15px; }
  .section { padding: 46px 0; }
  .section-head { margin-bottom: 28px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .miniprog { grid-template-columns: 1fr; gap: 28px; }
  .miniprog-qr { max-width: 300px; margin: 0 auto; padding: 22px 20px 20px; }
  .miniprog-qr img { max-width: 216px; }
  .miniprog-note { margin-top: 24px; }
  /* 窄屏下表格按内容自适应，能放下就不横滑（放不下时仍由 .table-wrap 内部横滑） */
  table.data { min-width: 0; }
  table.data th, table.data td { padding: 11px 12px; }
  .key-strip { grid-template-columns: 1fr; margin-bottom: 38px; }
  .key-strip > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .key-strip > div { padding: 18px 20px; }
  .block-title { margin-top: 42px; }
  .band { padding: 32px 0; }
  .band-figure img { padding: 10px; }
  .band-figure--tall img { width: 330px; }
  .band-figure--tall figcaption { max-width: 330px; }
  .band-text h3 { font-size: 19px; }
  .pb-body { padding: 20px 20px 22px; }
  .pb-journal { padding: 16px 20px; }
  .refs { columns: 1; }
  .refs li { font-size: 13px; padding-left: 26px; }
  .pf-main { padding: 24px 22px 22px; }
  .pf-journal { font-size: 26px; }
  .pf-title { font-size: 17px; }
  .pf-head { flex-direction: column; gap: 7px; align-items: flex-start; }
  .card, .product-card, .calc { padding: 22px; }
  .tabs-scroll { margin-bottom: 28px; }
  .tab-btn { padding: 10px 15px; font-size: 14px; }
  .calc-out { grid-template-columns: 1fr; }
  .field--key { grid-column: 1 / -1; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .cta-band { padding: 28px 24px; }
  .modal { padding: 0; }
  .modal-dialog { border-radius: 0; min-height: 100vh; max-width: none; padding: 26px 20px; }
}

/* 中窄屏：卡片近满宽，封面挪到右上并缩小，避免与文案叠压 */
@media (max-width: 660px) {
  .hero-cover { top: 10px; transform: none; right: 14px; }
  .hero-slide .hero-cover img { width: 64px; }
}

/* ---------- 无障碍：减弱动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
