/* =========================================================
   深圳菲常好生物科技有限公司 · 企业官网
   设计系统 / Design system
   ========================================================= */

:root {
  --g900: #0a271b;
  --g800: #103b28;
  --g700: #17603f;
  --g600: #1f7a51;
  --g500: #2e9e63;
  --g300: #8ecfa9;
  --g100: #e5f2ea;
  --g50: #f3f8f4;
  --gold: #c09a52;
  --gold-soft: #e6d3a6;
  --ink: #16211c;
  --ink-soft: #55665d;
  --line: #e0e9e3;
  --white: #fff;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 6px 18px rgba(10, 39, 27, 0.05);
  --shadow: 0 18px 44px rgba(10, 39, 27, 0.09);
  --shadow-lg: 0 30px 70px rgba(10, 39, 27, 0.16);
  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.85;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }

h1, h2, h3, h4 { margin: 0; line-height: 1.3; font-weight: 600; }
p { margin: 0; }

.wrap { width: min(1200px, 92vw); margin-inline: auto; }
.wrap-narrow { width: min(920px, 92vw); margin-inline: auto; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

:focus-visible { outline: 2px solid var(--g500); outline-offset: 3px; border-radius: 4px; }

/* ---------------- 通用排版 ---------------- */

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--gold);
}

.eyebrow::before {
  content: ""; width: 30px; height: 1px; background: currentColor; opacity: 0.8;
}

.sec-title {
  font-family: var(--serif);
  font-size: clamp(26px, 3.1vw, 38px);
  color: var(--g900);
  letter-spacing: 0.01em;
  margin-top: 18px;
}

.sec-title em { font-style: normal; color: var(--g600); }

.sec-lead {
  margin-top: 18px; color: var(--ink-soft); font-size: 16.5px; max-width: 720px;
}

.sec { padding: 96px 0; }
.sec.tight { padding: 72px 0; }
.sec.tint { background: var(--g50); }
.sec[id], .expert-panel[id], .news-item[id] { scroll-margin-top: 106px; }

.sec-head { max-width: 780px; }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head.center .eyebrow { justify-content: center; }
.sec-head.center .eye-line::before { display: none; }

.sec-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; }
@media (max-width: 820px) { .sec-top { flex-direction: column; align-items: flex-start; } }

/* ---------------- 按钮 ---------------- */

.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 26px; border-radius: 999px;
  font-size: 15px; font-weight: 600; letter-spacing: 0.02em;
  border: 1px solid transparent; transition: all 0.28s ease; white-space: nowrap;
}

.btn svg { width: 16px; height: 16px; }

.btn-primary {
  background: linear-gradient(120deg, var(--g600), var(--g500));
  color: #fff; box-shadow: 0 12px 26px rgba(31, 122, 81, 0.28);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 34px rgba(31, 122, 81, 0.34); }

.btn-outline { border-color: rgba(255, 255, 255, 0.55); color: #fff; }
.btn-outline:hover { background: rgba(255, 255, 255, 0.14); border-color: #fff; }

.btn-ghost { border-color: var(--line); color: var(--g700); background: #fff; }
.btn-ghost:hover { border-color: var(--g300); background: var(--g50); }

.btn-gold { background: var(--gold); color: #fff; box-shadow: 0 12px 26px rgba(192, 154, 82, 0.3); }
.btn-gold:hover { transform: translateY(-2px); }

.btn-sm { padding: 10px 20px; font-size: 14px; }

.link-more {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--g600); font-weight: 600; font-size: 15px;
}
.link-more svg { width: 16px; height: 16px; transition: transform 0.28s ease; }
.link-more:hover svg { transform: translateX(4px); }

/* ---------------- 顶部信息条 ---------------- */

.topbar {
  background: var(--g900); color: rgba(255, 255, 255, 0.72);
  font-size: 13px; letter-spacing: 0.02em; overflow: hidden;
}

.topbar-in {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px 24px; min-height: 40px; flex-wrap: wrap; padding: 6px 0;
}

.tb-group { display: flex; align-items: center; gap: 22px; min-width: 0; }
.tb-item { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.tb-item svg { width: 14px; height: 14px; opacity: 0.75; }
.tb-item a:hover { color: #fff; }
.tb-sep { width: 1px; height: 12px; background: rgba(255, 255, 255, 0.22); }
.tb-hot { color: var(--gold-soft); font-weight: 600; }

@media (max-width: 900px) {
  .topbar-in { justify-content: center; text-align: center; }
  .tb-hide { display: none; }
}

/* ---------------- 页头 ---------------- */

.site-header { position: sticky; top: 0; z-index: 80; background: #fff; }

.header-in {
  display: flex; align-items: center; justify-content: space-between;
  gap: 28px; min-height: 78px; transition: min-height 0.3s ease;
}

.site-header.stuck { box-shadow: 0 10px 30px rgba(10, 39, 27, 0.09); }
.site-header.stuck .header-in { min-height: 66px; }
.site-header.stuck .logo-company { font-size: 18px; }

.logo { display: flex; align-items: center; flex: none; }
.logo-company {
  color: var(--g800); font-family: var(--serif); font-size: clamp(16px, 1.45vw, 20px);
  font-weight: 700; line-height: 1.35; letter-spacing: 0.03em; white-space: nowrap;
}

.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }

.nav > li { position: relative; }

.nav a {
  display: block; padding: 12px 14px; font-size: 15.5px; font-weight: 500;
  color: var(--ink); border-radius: 10px; transition: color 0.2s ease, background 0.2s ease;
}

.nav a:hover { color: var(--g600); background: var(--g50); }
.nav a.active { color: var(--g700); font-weight: 700; }
.nav a.active::after {
  content: ""; display: block; width: 22px; height: 2px; margin: 6px auto -8px;
  background: var(--g500); border-radius: 2px;
}

.nav .caret { display: inline-block; margin-left: 5px; font-size: 10px; color: var(--g500); }

/* 不可点击的一级栏目（只作为下拉分组） */
.nav .nav-parent {
  display: inline-flex; align-items: center; height: 100%; padding: 10px 14px;
  font-size: 15.5px; font-weight: 600; color: var(--ink); border-radius: 10px; cursor: default;
}
.nav .nav-parent.active { color: var(--g700); }

.dropdown {
  position: absolute; top: calc(100% + 6px); left: 50%; transform: translate(-50%, 8px);
  min-width: 218px; background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow); padding: 10px; opacity: 0; visibility: hidden;
  transition: all 0.26s ease;
}

.nav li:hover > .dropdown, .nav li:focus-within > .dropdown {
  opacity: 1; visibility: visible; transform: translate(-50%, 0);
}
.dropdown a { padding: 11px 14px; font-size: 14.5px; border-radius: 9px; }
.dropdown a.active::after { display: none; }

.header-cta { display: flex; align-items: center; gap: 14px; flex: none; }

.nav-toggle {
  display: none; width: 44px; height: 44px; border-radius: 12px;
  border: 1px solid var(--line); background: #fff; padding: 0;
  align-items: center; justify-content: center;
}
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--g800); border-radius: 2px; position: relative; }
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--g800); border-radius: 2px;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

@media (max-width: 1140px) {
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column;
    align-items: stretch; gap: 0; background: #fff; border-top: 1px solid var(--line);
    box-shadow: 0 24px 40px rgba(10, 39, 27, 0.12); padding: 10px 4vw 20px;
    display: none; max-height: 78vh; overflow-y: auto;
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 6px; border-radius: 0; border-bottom: 1px dashed var(--line); }
  .nav a.active::after { display: none; }
  .dropdown {
    position: static; transform: none; opacity: 1; visibility: visible; box-shadow: none;
    border: none; padding: 4px 0 4px 16px; min-width: 0;
  }
  .nav-toggle { display: inline-flex; }
  .header-cta .btn { display: none; }
}

/* ---------------- 首页主视觉轮播 ---------------- */

.hero { position: relative; height: clamp(500px, 72vh, 660px); background: var(--g900); overflow: hidden; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.1s ease; }
.hero-slide.on { opacity: 1; }
.hero-slide img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.03); transition: transform 7s linear;
}
.hero-slide.on img { transform: scale(1.13); }
.hero-slide::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(8, 32, 22, 0.9) 0%, rgba(8, 32, 22, 0.74) 42%, rgba(8, 32, 22, 0.28) 100%);
  z-index: 1;
}

.hero-inner { position: absolute; inset: 0; display: flex; align-items: center; z-index: 2; }
.hero-copy { max-width: 660px; color: #fff; padding: 20px 0; }

.hero-tag {
  display: inline-flex; align-items: center; gap: 9px; padding: 8px 16px;
  border: 1px solid rgba(230, 211, 166, 0.45); border-radius: 999px;
  color: var(--gold-soft); font-size: 13px; letter-spacing: 0.14em;
}
.hero-tag svg { width: 14px; height: 14px; }

.hero h1 {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(30px, 4.3vw, 52px); line-height: 1.28;
  margin: 22px 0 0; letter-spacing: 0.01em;
}
.hero h1 em { font-style: normal; color: var(--gold-soft); }
.hero-copy > p { margin-top: 20px; font-size: 17px; color: rgba(255, 255, 255, 0.82); max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.hero-nav { position: absolute; left: 0; right: 0; bottom: 96px; z-index: 3; }
.hero-nav-in { display: flex; align-items: center; justify-content: space-between; gap: 20px; }

.hero-dots { display: flex; gap: 10px; }
.hero-dots button {
  width: 34px; height: 3px; border: 0; border-radius: 3px; padding: 0;
  background: rgba(255, 255, 255, 0.32); transition: background 0.3s ease, width 0.3s ease;
}
.hero-dots button.on { background: var(--gold-soft); width: 54px; }

.hero-arrows { display: flex; gap: 10px; }
.hero-arrows button {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.08); color: #fff; display: grid; place-items: center;
  transition: all 0.26s ease;
}
.hero-arrows button:hover { background: rgba(255, 255, 255, 0.2); }
.hero-arrows svg { width: 18px; height: 18px; }

/* ---------------- 浮动快捷入口 ---------------- */

.quick { position: relative; z-index: 4; margin-top: -66px; padding-bottom: 8px; }
.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.qcard {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 26px; box-shadow: var(--shadow); display: block;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.qcard:hover { transform: translateY(-6px); border-color: var(--g300); box-shadow: var(--shadow-lg); }
.qcard .ic {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--g100); color: var(--g600); margin-bottom: 18px;
}
.qcard .ic svg { width: 22px; height: 22px; }
.qcard h3 { font-size: 18px; color: var(--g900); }
.qcard p { margin-top: 8px; font-size: 14px; color: var(--ink-soft); line-height: 1.75; }

@media (max-width: 1024px) { .quick-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) {
  .quick { margin-top: -40px; }
  .quick-grid { grid-template-columns: 1fr; gap: 14px; }
  .qcard { padding: 22px; }
}

/* ---------------- 图文分栏 ---------------- */

.split { display: grid; grid-template-columns: 1.04fr 0.96fr; gap: clamp(36px, 5vw, 72px); align-items: center; }
.split.rev { grid-template-columns: 0.96fr 1.04fr; }
.split.rev .split-media { order: -1; }
.split.top { align-items: start; }

.split-body p { color: var(--ink-soft); margin-top: 14px; line-height: 1.85; }
.split-body p.lead { color: var(--ink); font-size: 17px; line-height: 1.8; }

.split-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

.checklist { margin-top: 22px; display: grid; gap: 11px; }
.checklist.cols2 { grid-template-columns: repeat(2, 1fr); gap: 10px 20px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; color: var(--ink); }
.checklist li svg { width: 18px; height: 18px; flex: none; margin-top: 5px; color: var(--g500); }
@media (max-width: 900px) { .checklist.cols2 { grid-template-columns: 1fr; } }

.media-frame { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.media-frame img { width: 100%; height: 100%; object-fit: cover; }

.media-stack { position: relative; }
.media-stack .media-frame { aspect-ratio: 4 / 3; }
.media-badge {
  position: absolute; left: -18px; bottom: -18px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px 22px; box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 14px; max-width: 300px;
}
.media-badge .ic { width: 40px; height: 40px; border-radius: 10px; background: var(--g100); color: var(--g600); display: grid; place-items: center; flex: none; }
.media-badge .ic svg { width: 20px; height: 20px; }
.media-badge b { display: block; font-size: 15px; color: var(--g900); }
.media-badge span { font-size: 13px; color: var(--ink-soft); }

@media (max-width: 900px) {
  .split, .split.rev { grid-template-columns: 1fr; }
  .split.rev .split-media { order: 0; }
  .media-badge { left: 12px; bottom: 12px; }
}

/* ---------------- 数据条 ---------------- */

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 46px; }
.stat { padding: 26px 22px; border-left: 2px solid var(--g300); }
.stat b { font-family: var(--serif); font-size: clamp(30px, 3.4vw, 42px); color: var(--g700); line-height: 1; }
.stat i { font-style: normal; font-size: 15px; color: var(--g600); margin-left: 4px; }
.stat span { display: block; margin-top: 10px; font-size: 14px; color: var(--ink-soft); }

@media (max-width: 860px) { .stats { grid-template-columns: repeat(2, 1fr); } .stat { padding: 18px 16px; } }

/* ---------------- 优势卡片 ---------------- */

.adv-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 52px; }

.adv {
  position: relative; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 34px 28px 30px; overflow: hidden;
  transition: transform 0.32s ease, box-shadow 0.32s ease, border-color 0.32s ease;
}
.adv::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--g500), var(--gold)); transform: scaleX(0); transform-origin: left;
  transition: transform 0.42s ease;
}
.adv:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.adv:hover::before { transform: scaleX(1); }

.adv-no {
  font-family: var(--serif); font-size: 40px; color: var(--g100); font-weight: 700; line-height: 1;
}
.adv .ic { width: 48px; height: 48px; border-radius: 14px; background: var(--g50); color: var(--g600); display: grid; place-items: center; margin: 14px 0 18px; }
.adv .ic svg { width: 24px; height: 24px; }
.adv h3 { font-size: 19px; color: var(--g900); }
.adv p { margin-top: 12px; font-size: 14.5px; color: var(--ink-soft); line-height: 1.8; }

@media (max-width: 1024px) { .adv-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .adv-grid { grid-template-columns: 1fr; gap: 16px; } }

/* ---------------- 产品矩阵 ---------------- */

.prod-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 52px; }

.pcard {
  position: relative; display: grid; grid-template-columns: 96px 1fr; gap: 26px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 34px 34px 30px; overflow: hidden;
  transition: transform 0.32s ease, box-shadow 0.32s ease, border-color 0.32s ease;
}
.pcard:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--g300); }

.pcard-mark {
  position: absolute; right: 22px; top: -10px; font-family: var(--serif);
  font-size: 92px; font-weight: 700; color: var(--g50); line-height: 1; pointer-events: none;
}

.pcard-ic {
  width: 96px; height: 96px; border-radius: 22px; display: grid; place-items: center;
  background: linear-gradient(140deg, var(--g700), var(--g500)); color: #fff; position: relative; z-index: 1;
}
.pcard-ic svg { width: 42px; height: 42px; }

.pcard-body { position: relative; z-index: 1; }
.pcard-en { font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--gold); }
.pcard h3 { font-family: var(--serif); font-size: 22px; color: var(--g900); margin-top: 8px; }
.pcard p { margin-top: 12px; font-size: 14.5px; color: var(--ink-soft); line-height: 1.8; }

.tagrow { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.tag {
  font-size: 12.5px; padding: 5px 12px; border-radius: 999px;
  background: var(--g50); color: var(--g700); border: 1px solid var(--g100);
}

@media (max-width: 900px) {
  .prod-grid { grid-template-columns: 1fr; }
  .pcard { grid-template-columns: 72px 1fr; gap: 18px; padding: 26px 22px; }
  .pcard-ic { width: 72px; height: 72px; border-radius: 18px; }
  .pcard-ic svg { width: 32px; height: 32px; }
}

/* ---------------- 深色科研板块 ---------------- */

.dark {
  background:
    radial-gradient(900px 420px at 88% -10%, rgba(46, 158, 99, 0.26), transparent 60%),
    linear-gradient(160deg, var(--g900), #0d3524 62%, #0a271b);
  color: rgba(255, 255, 255, 0.8);
}
.dark .sec-title, .dark h3 { color: #fff; }
.dark .sec-lead, .dark p { color: rgba(255, 255, 255, 0.72); }
.dark .eyebrow { color: var(--gold-soft); }
.dark .eyebrow::before { background: var(--gold-soft); }

/* 国家级科研平台板块：文字整宽平铺，六张数字卡排在下面一行 */
.npec .sec-title { max-width: 900px; }
.npec .sec-lead { max-width: none; }

.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 34px; }
.facts-row { grid-template-columns: repeat(6, 1fr); gap: 16px; margin-top: 42px; }
@media (max-width: 1180px) { .facts-row { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .facts-row { grid-template-columns: repeat(2, 1fr); gap: 12px; } }
.fact {
  border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 14px; padding: 20px 18px;
  background: rgba(255, 255, 255, 0.04);
}
.fact b { font-family: var(--serif); font-size: 24px; color: var(--gold-soft); display: block; line-height: 1.2; }
.fact span { font-size: 13px; color: rgba(255, 255, 255, 0.66); display: block; margin-top: 6px; }

@media (max-width: 620px) { .facts { grid-template-columns: repeat(2, 1fr); } }

.gold-frame {
  border-radius: var(--radius-lg); overflow: hidden; position: relative;
  border: 1px solid rgba(230, 211, 166, 0.34); box-shadow: 0 34px 70px rgba(0, 0, 0, 0.34);
}
.gold-frame img { width: 100%; }

/* ---------------- 专家团队 ---------------- */

.expert-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 52px; }

.expert {
  background: rgba(255, 255, 255, 0.045); border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius); overflow: hidden;
  transition: transform 0.32s ease, border-color 0.32s ease, background 0.32s ease;
}
.expert:hover { transform: translateY(-6px); border-color: rgba(230, 211, 166, 0.5); background: rgba(255, 255, 255, 0.075); }

.expert-photo { aspect-ratio: 3 / 4; overflow: hidden; background: #0d3524; }
.expert-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; filter: saturate(0.96); }

.expert-body { padding: 20px 20px 24px; }
.expert-body h3 { font-family: var(--serif); font-size: 20px; color: #fff; }
.expert-field {
  display: inline-block; margin-top: 10px; font-size: 12px; letter-spacing: 0.06em;
  color: var(--gold-soft); border: 1px solid rgba(230, 211, 166, 0.4);
  border-radius: 999px; padding: 3px 11px;
}
.expert-body p { margin-top: 12px; font-size: 13.5px; line-height: 1.75; color: rgba(255, 255, 255, 0.66); }

@media (max-width: 1024px) { .expert-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .expert-grid { grid-template-columns: 1fr; } }

/* 专家板块（科研实力页）：标签切换 + 单面板详情 */
.expert-tabs { display: none; flex-wrap: wrap; gap: 10px; margin-top: 44px; }
[data-expert-tabs].js-ready .expert-tabs { display: flex; }
.expert-tab {
  display: inline-flex; align-items: center; gap: 12px; padding: 7px 18px 7px 7px;
  border: 1px solid var(--line); border-radius: 999px; background: #fff; cursor: pointer;
  font: inherit; text-align: left; transition: border-color 0.22s ease, background 0.22s ease;
}
.expert-tab:hover { border-color: var(--g300); }
.expert-tab .et-photo { width: 42px; height: 42px; border-radius: 50%; overflow: hidden; flex: none; background: var(--g50); }
.expert-tab .et-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.expert-tab .et-text { display: grid; }
.expert-tab .et-text b { font-size: 15px; color: var(--ink); }
.expert-tab .et-text span { font-size: 12.5px; color: var(--ink-soft); }
.expert-tab[aria-selected="true"] { border-color: var(--g600); background: var(--g50); }
.expert-tab[aria-selected="true"] b { color: var(--g700); }

.expert-panel {
  display: grid; grid-template-columns: 190px 1fr; gap: 34px; align-items: start;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); padding: 32px 34px; margin-top: 48px; scroll-margin-top: 120px;
}
[data-expert-tabs].js-ready .expert-panel { margin-top: 22px; }
[data-expert-tabs] .expert-panel[hidden] { display: none; }
.expert-panel .photo {
  aspect-ratio: 3 / 4; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); background: var(--g50);
}
.expert-panel .photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.expert-panel h3 { font-family: var(--serif); font-size: 26px; color: var(--g900); }
.expert-panel .role { margin-top: 10px; color: var(--g600); font-size: 15px; font-weight: 600; }
.expert-panel dl { margin: 22px 0 0; }
.expert-panel dt { font-size: 13px; letter-spacing: 0.14em; color: var(--gold); font-weight: 600; margin-top: 18px; }
.expert-panel dd { margin: 6px 0 0; color: var(--ink-soft); font-size: 15px; line-height: 1.75; }

@media (max-width: 820px) {
  .expert-panel { grid-template-columns: 1fr; gap: 22px; padding: 26px 24px; }
  .expert-panel .photo { max-width: 200px; }
  .expert-tab { padding: 6px 14px 6px 6px; }
  .expert-tab .et-photo { width: 36px; height: 36px; }
}

/* ---------------- 相册 / 瀑布流 ---------------- */

/* ---------------- 新闻分页 ---------------- */

/* ---------------- 常见问题 ---------------- */

.faq-list { display: grid; gap: 12px; margin-top: 46px; }
.faq-item {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: 4px 24px;
}
.faq-item summary {
  display: flex; align-items: baseline; gap: 14px; padding: 18px 0; cursor: pointer;
  list-style: none; font-size: 16.5px; font-weight: 600; color: var(--g900);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .q-no { font-family: var(--serif); font-size: 15px; color: var(--gold); flex: none; }
.faq-item summary::after {
  content: "＋"; margin-left: auto; color: var(--g500); font-size: 17px; line-height: 1;
}
.faq-item[open] summary::after { content: "－"; }
.faq-item[open] summary { color: var(--g700); }
.faq-item .a {
  padding: 0 0 20px 44px; color: var(--ink-soft); font-size: 15px; line-height: 1.85;
  white-space: pre-line;   /* 后台答案里的换行按原文分段显示 */
}

/* 列表被后台清空时的占位提示（新闻 / 首页资讯 / FAQ） */
.list-empty {
  padding: 46px 0; text-align: center; color: var(--ink-soft); font-size: 15px;
  border: 1px dashed var(--line); border-radius: var(--radius); background: rgba(255, 255, 255, 0.6);
}
@media (max-width: 560px) {
  .faq-item { padding: 4px 18px; }
  .faq-item summary { font-size: 15.5px; gap: 10px; }
  .faq-item .a { padding-left: 0; }
}

.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 9px; margin-top: 46px; }
.pager a, .pager span {
  min-width: 42px; height: 42px; padding: 0 15px; display: inline-flex; align-items: center;
  justify-content: center; border: 1px solid var(--line); border-radius: 12px; background: #fff;
  font-size: 14.5px; color: var(--ink-soft); transition: color 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}
.pager button {
  min-width: 42px; height: 42px; padding: 0 15px; display: inline-flex; align-items: center;
  justify-content: center; border: 1px solid var(--line); border-radius: 12px; background: #fff;
  font: inherit; font-size: 14.5px; color: var(--ink-soft); cursor: pointer;
  transition: color 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}
.pager a:hover, .pager button:hover:not([disabled]) { border-color: var(--g500); color: var(--g700); }
.pager button[disabled] { opacity: 0.42; cursor: default; }
.pager button.is-current { background: var(--g700); border-color: var(--g700); color: #fff; font-weight: 600; }
.pager .is-current { background: var(--g700); border-color: var(--g700); color: #fff; font-weight: 600; }
.pager .is-disabled { opacity: 0.42; }
@media (max-width: 560px) {
  .pager a, .pager span, .pager button { min-width: 38px; height: 38px; padding: 0 12px; font-size: 13.5px; }
}

/* 车间实景分页：无 JS 时隐藏分页器、相册全部铺开 */
[data-gallery] .gallery-pager { display: none; }
[data-gallery].js-ready .gallery-pager { display: flex; }
[data-gallery] .masonry figure[hidden] { display: none; }

/* ---------------- 品牌故事 · 生产实拍轮播 ---------------- */

.story-slider { position: relative; }
.story-frame {
  position: relative; aspect-ratio: 3 / 2; border-radius: var(--radius-lg);
  overflow: hidden; background: var(--g50); box-shadow: var(--shadow-lg);
}
.story-slide {
  position: absolute; inset: 0; opacity: 0; visibility: hidden;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}
.story-slide.on { opacity: 1; visibility: visible; }
.story-slide img { width: 100%; height: 100%; object-fit: cover; }
.story-slide figcaption {
  position: absolute; inset: auto 0 0 0; padding: 40px 20px 16px;
  font-size: 14px; color: #fff; letter-spacing: 0.02em;
  background: linear-gradient(transparent, rgba(8, 32, 22, 0.8));
}
.story-nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 16px; }
.story-arrow {
  appearance: none; display: grid; place-items: center; flex: none;
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line); background: #fff; color: var(--g700);
  cursor: pointer; transition: border-color 0.25s ease, color 0.25s ease, background 0.25s ease;
}
.story-arrow:hover { border-color: var(--g500); color: var(--g600); background: var(--g50); }
.story-arrow svg { width: 18px; height: 18px; }
.story-dots { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; }
.story-dots button {
  appearance: none; width: 8px; height: 8px; padding: 0; border-radius: 50%;
  border: 0; background: var(--g300); cursor: pointer; transition: width 0.3s ease, background 0.3s ease;
}
.story-dots button.on { width: 22px; border-radius: 4px; background: var(--g600); }

@media (max-width: 640px) {
  .story-nav { justify-content: center; }
  .story-arrow { width: 36px; height: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  .story-slide { transition: none; }
  .story-dots button { transition: none; }
}

.masonry { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 52px; }
.masonry figure {
  position: relative; margin: 0; aspect-ratio: 4 / 3; border-radius: var(--radius);
  overflow: hidden; cursor: zoom-in; background: var(--g50);
}
.masonry img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.masonry figure:hover img { transform: scale(1.05); }
.masonry figcaption {
  position: absolute; inset: auto 0 0 0; padding: 34px 16px 14px;
  font-size: 13.5px; color: #fff; background: linear-gradient(transparent, rgba(8, 32, 22, 0.82));
}

@media (max-width: 1100px) { .masonry { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .masonry { grid-template-columns: repeat(2, 1fr); gap: 12px; } }

/* 灯箱 */
.lb {
  position: fixed; inset: 0; z-index: 200; display: none;
  background: rgba(6, 20, 14, 0.94); align-items: center; justify-content: center; padding: 4vh 4vw;
}
.lb.on { display: flex; }
.lb img { max-width: 100%; max-height: 84vh; border-radius: 10px; }
.lb-cap { position: absolute; bottom: 5vh; left: 0; right: 0; text-align: center; color: rgba(255, 255, 255, 0.82); font-size: 14px; }
.lb button {
  position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px;
  border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.34); background: rgba(255, 255, 255, 0.1);
  color: #fff; display: grid; place-items: center;
}
.lb button:hover { background: rgba(255, 255, 255, 0.24); }
.lb .lb-prev { left: 2vw; }
.lb .lb-next { right: 2vw; }
.lb .lb-close { top: 3vh; right: 3vw; transform: none; width: 44px; height: 44px; }
.lb svg { width: 20px; height: 20px; }

/* ---------------- 资质证书 ---------------- */

.cert-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 52px; }
.cert {
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.cert:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.cert-img { background: #fff; aspect-ratio: 4 / 3; overflow: hidden; cursor: zoom-in; padding: 10px; }
.cert-img img { width: 100%; height: 100%; object-fit: contain; }
.cert-body { padding: 18px 20px 22px; }
.cert-body h3 { font-size: 16px; color: var(--g900); }
.cert-body .meta { margin-top: 8px; font-size: 13px; color: var(--g600); font-weight: 600; }
.cert-body p { margin-top: 8px; font-size: 13px; color: var(--ink-soft); line-height: 1.7; }

@media (max-width: 1024px) { .cert-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cert-grid { grid-template-columns: 1fr; } }

/* ---------------- 流程步骤 ---------------- */

.steps { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; margin-top: 52px; }
.step {
  position: relative; background: #fff; border: 1px solid var(--line);
  border-radius: 14px; padding: 26px 20px 22px;
}
.step b {
  display: block; font-family: var(--serif); font-size: 15px; color: var(--gold);
  letter-spacing: 0.1em; margin-bottom: 10px;
}
.step h3 { font-size: 16px; color: var(--g900); }
.step p { margin-top: 10px; font-size: 13.5px; color: var(--ink-soft); line-height: 1.72; }
.step::after {
  content: ""; position: absolute; top: 42px; right: -10px; width: 20px; height: 1px;
  background: var(--g300);
}
.step:last-child::after { display: none; }

@media (max-width: 1080px) { .steps { grid-template-columns: repeat(3, 1fr); } .step::after { display: none; } }
@media (max-width: 620px) { .steps { grid-template-columns: 1fr; } }

/* ---------------- 企业文化 ---------------- */

.culture-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 50px; }
.culture {
  border: 1px solid var(--line); border-radius: 14px; padding: 26px 22px;
  background: #fff; transition: border-color 0.28s ease, transform 0.28s ease;
}
.culture:hover { border-color: var(--g300); transform: translateY(-4px); }
.culture span { font-size: 12px; letter-spacing: 0.2em; color: var(--gold); font-weight: 600; }
.culture p { margin-top: 12px; font-size: 15.5px; color: var(--g900); line-height: 1.8; }

.culture-wide { grid-column: span 2; background: linear-gradient(140deg, var(--g700), var(--g600)); border-color: transparent; }
.culture-wide span { color: var(--gold-soft); }
.culture-wide p { color: #fff; font-family: var(--serif); font-size: 19px; }

@media (max-width: 1024px) { .culture-grid { grid-template-columns: repeat(2, 1fr); } .culture-wide { grid-column: span 2; } }
@media (max-width: 620px) { .culture-grid { grid-template-columns: 1fr; } .culture-wide { grid-column: span 1; } }

/* ---------------- 新闻 ---------------- */

.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 52px; }

.ncard {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px 28px; transition: all 0.3s ease;
}
.ncard:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--g300); }
.ncard-top { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--ink-soft); }
.ncard .tag { background: var(--g50); color: var(--g700); border-color: var(--g100); }
.ncard h3 { margin-top: 16px; font-size: 17.5px; line-height: 1.6; color: var(--g900); }
.ncard p { margin-top: 12px; font-size: 14px; color: var(--ink-soft); flex: 1; }
.ncard .link-more { margin-top: 20px; font-size: 14px; }

@media (max-width: 1024px) { .news-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px) { .news-grid { grid-template-columns: 1fr; gap: 16px; } }

/* 新闻列表（新闻资讯页） */
.news-list { margin-top: 52px; display: grid; gap: 26px; }
.news-item {
  display: grid; grid-template-columns: 148px 1fr; gap: 34px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 36px 38px; transition: all 0.3s ease;
}
.news-item:hover { border-color: var(--g300); box-shadow: var(--shadow); }
.news-date { font-family: var(--serif); font-size: 30px; color: var(--g700); line-height: 1.1; }
.news-date span { display: block; margin-top: 8px; font-family: var(--sans); font-size: 13px; color: var(--ink-soft); letter-spacing: 0.04em; }
.news-item h3 { font-size: 21px; color: var(--g900); line-height: 1.5; }
.news-item .body { margin-top: 16px; display: grid; gap: 12px; }
.news-item .body p { color: var(--ink-soft); font-size: 15px; }

@media (max-width: 760px) {
  .news-item { grid-template-columns: 1fr; gap: 16px; padding: 26px 22px; }
  .news-date { font-size: 24px; }
}

/* 新闻列表 v2：顶部分类按钮 + 整宽摘要列表（点击进详情页） */
.news-cats { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.news-cat {
  display: inline-flex; align-items: center; padding: 9px 20px;
  border: 1px solid var(--line); border-radius: 999px; background: #fff;
  color: var(--ink-soft); font-size: 14.5px; transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.news-cat:hover { border-color: var(--g300); color: var(--g700); }
.news-cat.is-active { background: var(--g700); border-color: var(--g700); color: #fff; }
.news-list { margin-top: 0; gap: 14px; }
.news-row {
  display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 24px; align-items: stretch;
  padding: 18px 26px 18px 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.news-row:hover { transform: translateY(-2px); border-color: var(--g300); box-shadow: var(--shadow); }
.news-row .news-date {
  position: relative; display: grid; align-content: center; gap: 5px; min-height: 96px;
  padding-left: 22px; border-left: 1px solid #cddbd3; white-space: nowrap;
}
.news-row .news-date::before {
  position: absolute; top: 50%; left: -4px; width: 7px; height: 7px;
  border: 2px solid #fff; border-radius: 50%; background: var(--gold);
  box-shadow: 0 0 0 1px var(--gold); content: ""; transform: translateY(-50%);
}
.news-date .d-md { font-family: var(--serif); font-size: 27px; line-height: 1.05; color: var(--g700); font-weight: 500; }
.news-date .d-year { font-size: 12px; letter-spacing: 0.12em; color: var(--ink-soft); }
.news-row.no-date { grid-template-columns: minmax(0, 1fr); }
.news-row-body { min-width: 0; }
.news-cat-chip {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  background: var(--g50); color: var(--g600); font-size: 12.5px;
}
.news-row h3 { margin-top: 10px; font-size: 19px; color: var(--g900); line-height: 1.55; }
.news-excerpt {
  margin-top: 10px; color: var(--ink-soft); font-size: 14.5px; line-height: 1.8;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.news-more { display: inline-block; margin-top: 12px; color: var(--g600); font-size: 13.5px; }
.news-more::after { content: " →"; }
@media (max-width: 560px) {
  .logo-company { font-size: 14px; letter-spacing: 0; }
  .site-header.stuck .logo-company { font-size: 14px; }
  .news-row { grid-template-columns: 86px minmax(0, 1fr); gap: 14px; padding: 16px 16px 16px 10px; }
  .news-row .news-date { min-height: 88px; padding-left: 16px; }
  .news-date .d-md { font-size: 24px; }
  .news-date .d-year { font-size: 11px; }
  .news-cat { padding: 8px 16px; font-size: 14px; }
}

/* 新闻详情页 */
.news-detail-hero .news-cat-chip { background: rgba(255, 255, 255, 0.16); color: #fff; margin-bottom: 10px; }
.page-hero.news-detail-hero h1 { font-size: clamp(22px, 2.1vw, 31px); line-height: 1.35; }
.news-detail-meta { margin-top: 12px; color: rgba(255, 255, 255, 0.74); font-size: 14px; }
.news-article { max-width: 880px; }
.news-article-body p { margin-top: 16px; color: var(--ink-soft); font-size: 16px; line-height: 1.95; }
.news-cover { margin: 0 0 28px; }
.news-cover img {
  display: block; width: 100%; height: auto; margin: 0;
  border-radius: var(--radius-lg); box-shadow: var(--shadow);
}
.news-article-body h2, .news-article-body h3 { margin-top: 30px; color: var(--g900); font-family: var(--serif); }
.news-article-body img { max-width: 100%; height: auto; border-radius: var(--radius); margin-top: 18px; }
.news-article-foot { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }

/* ---------------- CTA / 留言 ---------------- */

.cta {
  border-radius: var(--radius-lg); overflow: hidden;
  background:
    radial-gradient(700px 320px at 92% 0%, rgba(230, 211, 166, 0.22), transparent 62%),
    linear-gradient(120deg, var(--g800), var(--g600));
  color: #fff; padding: clamp(34px, 5vw, 60px);
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(30px, 4vw, 60px);
  align-items: center; box-shadow: var(--shadow-lg);
}
.cta h2 { font-family: var(--serif); font-size: clamp(24px, 2.9vw, 34px); color: #fff; line-height: 1.4; }
.cta p { margin-top: 16px; color: rgba(255, 255, 255, 0.78); }
.cta-list { margin-top: 26px; display: grid; gap: 12px; }
.cta-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: rgba(255, 255, 255, 0.86); }
.cta-list svg { width: 18px; height: 18px; color: var(--gold-soft); flex: none; margin-top: 4px; }

.form-card { background: #fff; border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.form-card h3 { font-size: 19px; color: var(--g900); }
.form-card p.hint { margin-top: 8px; font-size: 13.5px; color: var(--ink-soft); }

.form-grid { display: grid; gap: 14px; margin-top: 20px; }
.form-grid .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .form-grid .row2 { grid-template-columns: 1fr; } }

.field label { display: block; font-size: 13px; color: var(--ink-soft); margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border: 1px solid var(--line); border-radius: 11px;
  background: #fbfdfb; font: inherit; font-size: 14.5px; color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--g500); box-shadow: 0 0 0 3px rgba(46, 158, 99, 0.14); background: #fff;
}
.field textarea { min-height: 108px; resize: vertical; }

.form-note { margin-top: 14px; font-size: 12.5px; color: var(--ink-soft); line-height: 1.7; }
.form-msg {
  margin-top: 14px; padding: 13px 16px; border-radius: 11px; font-size: 14px;
  background: var(--g50); color: var(--g700); border: 1px solid var(--g100); display: none;
}
.form-msg.on { display: block; }

@media (max-width: 900px) { .cta { grid-template-columns: 1fr; } }

/* ---------------- 内页头图 ---------------- */

.page-hero {
  position: relative; min-height: 340px; display: flex; align-items: center;
  background: var(--g900); overflow: hidden;
}
.page-hero img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.46;
}
.page-hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(8, 32, 22, 0.9), rgba(8, 32, 22, 0.42));
}
.page-hero .wrap { position: relative; z-index: 2; color: #fff; padding: 76px 0; }
.crumb { font-size: 13.5px; color: rgba(255, 255, 255, 0.66); letter-spacing: 0.04em; }
.crumb a:hover { color: #fff; }
.page-hero h1 { font-family: var(--serif); font-size: clamp(28px, 3.6vw, 42px); margin-top: 16px; }
.page-hero .sub { margin-top: 14px; max-width: 680px; color: rgba(255, 255, 255, 0.78); font-size: 16px; }

/* ---------------- 页脚 ---------------- */

.footer { background: #08211a; color: rgba(255, 255, 255, 0.62); padding: 76px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 42px; }

.footer h4 {
  font-size: 15px; color: #fff; letter-spacing: 0.06em; margin-bottom: 20px; position: relative; padding-bottom: 12px;
}
.footer h4::after { content: ""; position: absolute; left: 0; bottom: 0; width: 26px; height: 2px; background: var(--gold); }

.footer-brand p { margin-top: 16px; font-size: 14px; line-height: 1.85; max-width: 340px; }
.footer-company-name {
  display: block; margin-bottom: 16px; color: #fff; font-family: var(--serif);
  font-size: 20px; font-weight: 700; line-height: 1.5; letter-spacing: 0.04em;
}

.footer-links { display: grid; gap: 11px; font-size: 14.5px; }
.footer-links a:hover { color: #fff; }

.footer-contact { display: grid; gap: 14px; font-size: 14.5px; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact svg { width: 16px; height: 16px; color: var(--gold-soft); flex: none; margin-top: 5px; }
.footer-contact b { color: #fff; font-weight: 600; }

.footer-bottom {
  margin-top: 60px; border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 24px 0 30px; display: flex; flex-wrap: wrap; gap: 12px 26px;
  align-items: center; justify-content: space-between; font-size: 13px;
}

@media (max-width: 1024px) { .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 34px; } }
@media (max-width: 620px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------------- 侧边悬浮 ---------------- */

.rail { position: fixed; right: 18px; bottom: 96px; z-index: 70; display: grid; gap: 10px; }
.rail a, .rail button {
  width: 50px; height: 50px; border-radius: 14px; border: 1px solid var(--line);
  background: #fff; color: var(--g700); display: grid; place-items: center;
  box-shadow: var(--shadow-sm); transition: all 0.26s ease; position: relative;
}
.rail a:hover, .rail button:hover { background: var(--g600); color: #fff; border-color: var(--g600); transform: translateY(-3px); }
.rail svg { width: 21px; height: 21px; }
.rail .tip {
  position: absolute; right: calc(100% + 12px); top: 50%; transform: translateY(-50%);
  background: var(--g900); color: #fff; font-size: 12.5px; padding: 6px 12px; border-radius: 8px;
  white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity 0.24s ease;
}
.rail a:hover .tip, .rail button:hover .tip { opacity: 1; }

@media (max-width: 700px) { .rail { right: 12px; bottom: 74px; } .rail a, .rail button { width: 44px; height: 44px; border-radius: 12px; } }

/* ---------------- 入场动画 ---------------- */

html.js .rv { opacity: 0; transform: translateY(24px); transition: opacity 0.75s ease, transform 0.75s ease; }
html.js .rv.in { opacity: 1; transform: none; }
.rv.d1 { transition-delay: 0.08s; }
.rv.d2 { transition-delay: 0.16s; }
.rv.d3 { transition-delay: 0.24s; }
.rv.d4 { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .rv { opacity: 1; transform: none; transition: none; }
  .hero-slide img, .hero-slide.on img { transform: none; transition: none; }
  .masonry img { transition: none; }
}

/* ---------------- 杂项 ---------------- */

.note {
  margin-top: 26px; padding: 16px 20px; border-left: 3px solid var(--gold);
  background: var(--g50); border-radius: 0 12px 12px 0; font-size: 14px; color: var(--ink-soft);
}

.quote {
  font-family: var(--serif); font-size: clamp(19px, 2.2vw, 25px); line-height: 1.8;
  color: var(--g800); padding-left: 26px; border-left: 3px solid var(--gold);
}

.info-list { display: grid; gap: 22px; margin-top: 34px; }
.info-list li { display: flex; gap: 16px; align-items: flex-start; }
.info-list .ic {
  width: 46px; height: 46px; border-radius: 13px; background: var(--g50); color: var(--g600);
  display: grid; place-items: center; flex: none;
}
.info-list .ic svg { width: 21px; height: 21px; }
.info-list b { display: block; font-size: 15px; color: var(--g900); }
.info-list span { font-size: 14.5px; color: var(--ink-soft); }

.map-frame { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--g50); padding: 34px; }
.map-frame .pin-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (max-width: 700px) { .map-frame .pin-row { grid-template-columns: 1fr; } }
.map-frame h3 { font-size: 16px; color: var(--g900); }
.map-frame p { margin-top: 8px; font-size: 14.5px; color: var(--ink-soft); }
.map-frame .addr { margin-top: 6px; font-size: 14px; color: var(--g700); font-weight: 600; }

/* 联系页·地图定位（定位卡 + 一键导航） */
.map-experience { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 46px; }
.map-switcher { display: none; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.map-switcher button {
  min-height: 38px; padding: 0 17px; border: 1px solid var(--line); border-radius: 999px;
  background: #fff; color: var(--ink-soft); cursor: pointer; font: inherit; font-size: 14px;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.map-switcher button:hover { border-color: var(--g300); color: var(--g700); }
.map-switcher button.is-active { border-color: var(--g700); background: var(--g700); color: #fff; }
.baidu-map-shell { display: none; position: relative; min-height: 360px; overflow: hidden; border-radius: var(--radius-lg); background: var(--g50); }
.baidu-map { width: 100%; height: 360px; }
.map-runtime-status {
  position: absolute; z-index: 2; left: 14px; bottom: 14px; max-width: calc(100% - 28px);
  margin: 0; padding: 9px 12px; border-radius: 9px; background: rgba(10, 39, 27, 0.84); color: #fff;
  font-size: 13px; line-height: 1.5; backdrop-filter: blur(8px);
}
.map-runtime-status:empty { display: none; }
.map-experience.is-map-ready { grid-template-columns: minmax(0, 1.55fr) minmax(260px, 0.8fr); }
.map-experience.is-map-ready .map-switcher { display: flex; grid-column: 1 / -1; }
.map-experience.is-map-ready .baidu-map-shell { display: block; }
.map-experience.is-map-ready .map-grid { grid-template-columns: minmax(0, 1fr); gap: 0; margin-top: 0; }
.map-experience.is-map-ready .map-card { display: none; min-height: 360px; }
.map-experience.is-map-ready .map-card.is-map-active { display: block; }
.map-experience.is-map-ready .map-card .map-pin { display: none; }
.map-experience.is-map-ready .map-card h3 { margin-top: 0; }
.map-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 46px; }
.map-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); padding: 30px 30px 32px;
}
.map-card .map-pin {
  width: 46px; height: 46px; border-radius: 13px; background: var(--g50); color: var(--g600);
  display: grid; place-items: center;
}
.map-card .map-pin svg { width: 21px; height: 21px; }
.map-card h3 { margin-top: 18px; font-family: var(--serif); font-size: 20px; color: var(--g900); }
.map-card .addr { margin-top: 10px; font-size: 14.5px; color: var(--g700); font-weight: 600; line-height: 1.7; }
.map-card .duty { margin-top: 8px; font-size: 14px; color: var(--ink-soft); line-height: 1.7; }
.map-card .map-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
@media (max-width: 820px) {
  .map-grid { grid-template-columns: 1fr; }
  .map-experience.is-map-ready { grid-template-columns: 1fr; }
  .map-experience.is-map-ready .map-switcher { justify-content: flex-start; }
  .baidu-map-shell, .map-experience.is-map-ready .map-card { min-height: 300px; }
  .baidu-map { height: 300px; }
}

/* ---------------- 剂型能力 ---------------- */

.dosage-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 52px; }
.dosage {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 26px; transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.dosage:hover { transform: translateY(-5px); border-color: var(--g300); box-shadow: var(--shadow); }
.dosage .ic {
  width: 46px; height: 46px; border-radius: 13px; background: var(--g100); color: var(--g600);
  display: grid; place-items: center; margin-bottom: 16px;
}
.dosage .ic svg { width: 22px; height: 22px; }
.dosage h3 { font-size: 17.5px; color: var(--g900); }
.dosage p { margin-top: 10px; font-size: 14px; color: var(--ink-soft); }

@media (max-width: 900px) { .dosage-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .dosage-grid { grid-template-columns: 1fr; } }

/* ---------------- 产品线视觉面板 ---------------- */

.cap-panel {
  position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius-lg); overflow: hidden;
  display: grid; place-items: center; box-shadow: var(--shadow-lg);
  background:
    radial-gradient(520px 320px at 82% 12%, rgba(230, 211, 166, 0.28), transparent 62%),
    linear-gradient(148deg, var(--g800) 0%, var(--g600) 58%, var(--g500) 100%);
}
.cap-panel::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1px);
  background-size: 26px 26px; opacity: 0.5;
}
.cap-panel .big { width: 118px; height: 118px; color: #fff; opacity: 0.95; position: relative; z-index: 1; }
.cap-panel .code {
  position: absolute; right: 26px; top: 6px; font-family: var(--serif); font-size: 84px;
  font-weight: 700; color: rgba(255, 255, 255, 0.18); line-height: 1; z-index: 1;
}
.cap-panel .cap-txt { position: absolute; left: 30px; bottom: 26px; z-index: 1; }
.cap-panel .cap-txt b { display: block; font-family: var(--serif); font-size: 22px; color: #fff; }
.cap-panel .cap-txt span {
  display: block; margin-top: 4px; font-size: 11.5px; letter-spacing: 0.26em;
  text-transform: uppercase; color: rgba(255, 255, 255, 0.72);
}

/* ---------------- 栅格补充 ---------------- */

.adv-grid.c3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1024px) { .adv-grid.c3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .adv-grid.c3 { grid-template-columns: 1fr; } }

.steps.c4 { grid-template-columns: repeat(4, 1fr); }
.steps.c3 { grid-template-columns: repeat(3, 1fr); }

@media (max-width: 1080px) {
  .steps.c4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .steps.c4, .steps.c3 { grid-template-columns: 1fr; }
}

/* ---------------- 小屏细化 ---------------- */

@media (max-width: 700px) {
  .sec { padding: 64px 0; }
  .sec.tight { padding: 52px 0; }
  .rail { right: 12px; bottom: 14px; grid-auto-flow: column; }
  .rail .tip { display: none; }
}

@media (max-width: 520px) {
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }
  .hero h1 { font-size: 27px; }
  .hero-copy > p { font-size: 15.5px; }
}

@media (max-width: 560px) {
  .expert { display: grid; grid-template-columns: 116px 1fr; }
  .expert-photo { aspect-ratio: 3 / 4; }
  .expert-body { padding: 16px 18px 18px; }
  .expert-body h3 { font-size: 17px; }
  .expert-body p { font-size: 12.5px; }
  .expert-field { font-size: 11px; padding: 2px 9px; }
}
/* 新闻分页：后台在新闻超过每页 6 条时自动生成分页页，单页时不显示 */
.pager {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: center;
  margin-top: 30px;
}
.pager__link,
.pager__now {
  min-width: 40px;
  padding: 8px 14px;
  border-radius: 999px;
  text-align: center;
  font-size: 15px;
  line-height: 1;
}
.pager__link {
  border: 1px solid rgba(28, 107, 82, 0.25);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}
.pager__link:hover { border-color: var(--g700); color: var(--g700); }
.pager__now { background: var(--g700); color: #fff; }
