/* ============================================
   上药信谊微生态 — 官网样式
   上药蓝企业色 · 专业医药品牌风格
   ============================================ */

:root {
  /* 上药蓝 — 取自上海医药 Logo 标准色 */
  --color-primary: #0078C1;
  --color-primary-dark: #005BAC;
  --color-primary-light: #00A0E9;
  --color-accent: #00A0E9;
  --color-accent-hover: #33B8EE;
  --color-accent-warm: #D4A017;
  --color-bg: #FFFFFF;
  --color-bg-alt: #F5F7FA;
  --color-surface: #ffffff;
  --color-text: #1A2B3C;
  --color-text-muted: #5C6B7A;
  --color-border: rgba(0, 120, 193, 0.12);
  --color-primary-rgb: 0, 120, 193;
  --color-primary-dark-rgb: 0, 91, 172;
  --color-accent-rgb: 0, 160, 233;
  --gradient-sph: linear-gradient(180deg, #00A0E9 0%, #005BAC 100%);
  --gradient-sph-h: linear-gradient(135deg, #00A0E9 0%, #0078C1 50%, #005BAC 100%);
  --font-sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-display: "Outfit", var(--font-sans);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --shadow-sm: 0 2px 8px rgba(0, 120, 193, 0.06);
  --shadow-md: 0 8px 32px rgba(0, 120, 193, 0.1);
  --shadow-lg: 0 20px 60px rgba(0, 120, 193, 0.15);
  --header-h: 72px;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container {
  width: min(1200px, 92vw);
  margin: 0 auto;
}

.container-wide {
  width: min(1400px, 94vw);
  margin: 0 auto;
}

/* ---- Typography ---- */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1.0rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 12px;
}

.section-label::before {
  content: "";
  width: 24px;
  height: 2px;
  background: var(--color-accent);
  border-radius: 2px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-text);
  margin-bottom: 16px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  max-width: 640px;
}

/* ---- Header ---- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  background: var(--gradient-sph-h);
  color: #ffffff;
  border-bottom: none;
  box-shadow: none;
  transition: none;
}

/* Header 整条统一为 footer 同款渐变（蓝/红随主题），强制全站 + 所有 inner page 均为该色，无须再按滚动/hero 切换背景 */
.site-header.on-hero,
.site-header.scrolled,
.site-header:not(.on-hero):not(.scrolled) {
  background: var(--gradient-sph-h) !important;
}

.site-header.on-hero {
  background: var(--gradient-sph-h);
}

.site-header.scrolled {
  background: var(--gradient-sph-h);
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.logo-svg {
  height: 44px;
  width: auto;
  display: block;
}

.logo-text,
.logo-dot,
.logo-sub {
  fill: #ffffff !important;
  transition: none;
}

.site-header .logo-text,
.site-header .logo-dot,
.site-header .logo-sub {
  fill: #ffffff !important;
}

.site-header .logo .logo-text,
.site-header .logo .logo-dot,
.site-header .logo .logo-sub {
  fill: #ffffff !important;
}

.site-header.on-hero .logo-text,
.site-header.on-hero .logo-dot,
.site-header.on-hero .logo-sub {
  /* header 整条蓝/红渐变，logo 强制白 */
  fill: #ffffff !important;
}

.logo--light .logo-text,
.logo--light .logo-dot,
.logo--light .logo-sub,
.site-header .logo--light .logo-text,
.site-header .logo--light .logo-dot,
.site-header .logo--light .logo-sub {
  fill: #ffffff !important;
}

.site-header .logo--light .logo-sine-main,
.theme-classic3 .site-header .logo--light .logo-sine-main {
  fill: #ffffff !important;
}

.site-header .logo--light .logo-sine-sub,
.theme-classic3 .site-header .logo--light .logo-sine-sub {
  fill: rgba(255, 255, 255, 0.82) !important;
}

/* Header 顶部导航：扁平化分格（仅竖线分隔）+ 纯白文字 */
.site-header.on-hero .nav-desktop,
.site-header .nav-desktop {
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  padding: 0 !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  gap: 0 !important;
}

.site-header.on-hero .nav-desktop .nav-item > a:not(.nav-cta),
.site-header .nav-desktop .nav-item > a:not(.nav-cta) {
  color: #ffffff !important;
  text-shadow: none !important;
  padding: 8px 18px !important;
  border-radius: 0 !important;
  font-weight: 500 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.site-header.on-hero .nav-desktop .nav-item > a:not(.nav-cta):hover,
.site-header.on-hero .nav-desktop .nav-item > a:not(.nav-cta).active,
.site-header.on-hero .nav-desktop .nav-item:focus-within > a:not(.nav-cta),
.site-header.on-hero .nav-desktop .nav-item:hover > a:not(.nav-cta),
.site-header .nav-desktop .nav-item > a:not(.nav-cta):hover,
.site-header .nav-desktop .nav-item > a:not(.nav-cta).active,
.site-header .nav-desktop .nav-item:focus-within > a:not(.nav-cta),
.site-header .nav-desktop .nav-item:hover > a:not(.nav-cta) {
  color: #ffffff !important;
  background: transparent !important;
  opacity: 0.85;
}

.site-header.on-hero .nav-cta,
.site-header .nav-cta {
  margin-left: 0 !important;
  padding: 8px 18px !important;
  box-shadow: none !important;
  background: transparent !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 0 !important;
}

.site-header.on-hero .menu-toggle span,
.site-header.on-hero .menu-toggle span::before,
.site-header.on-hero .menu-toggle span::after {
  background: #ffffff;
}

/* ================================================================
 * 首页 Hero 轮播导航：白字扁平分格，统一与全站 header 蓝渐变背景
 * ============================================================== */
body[data-page="home"] .site-header.on-hero .nav-desktop.nav-tiered,
body[data-page="home"] .site-header .nav-desktop.nav-tiered {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  transition: none !important;
}

body[data-page="home"] .site-header.on-hero .nav-tiered .nav-item > a:not(.nav-cta),
body[data-page="home"] .site-header .nav-tiered .nav-item > a:not(.nav-cta) {
  color: #ffffff !important;
  font-weight: 500 !important;
  text-shadow: none !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

body[data-page="home"] .site-header.on-hero .nav-tiered .nav-item > a:not(.nav-cta):hover,
body[data-page="home"] .site-header.on-hero .nav-tiered .nav-item > a:not(.nav-cta).active,
body[data-page="home"] .site-header.on-hero .nav-tiered .nav-item:focus-within > a:not(.nav-cta),
body[data-page="home"] .site-header.on-hero .nav-tiered .nav-item:hover > a:not(.nav-cta),
body[data-page="home"] .site-header .nav-tiered .nav-item > a:not(.nav-cta):hover,
body[data-page="home"] .site-header .nav-tiered .nav-item > a:not(.nav-cta).active,
body[data-page="home"] .site-header .nav-tiered .nav-item:focus-within > a:not(.nav-cta),
body[data-page="home"] .site-header .nav-tiered .nav-item:hover > a:not(.nav-cta) {
  color: #ffffff !important;
  background: transparent !important;
  opacity: 0.85;
}

body[data-page="home"] .site-header.on-hero .menu-toggle span,
body[data-page="home"] .site-header.on-hero .menu-toggle span::before,
body[data-page="home"] .site-header.on-hero .menu-toggle span::after {
  background: #ffffff;
}

body[data-page="home"] .site-header.on-hero .logo-text,
body[data-page="home"] .site-header.on-hero .logo-dot,
body[data-page="home"] .site-header.on-hero .logo-sub {
  fill: #ffffff;
}

/* 滚动后 / 浅色区域：保持与初始一致的蓝渐变 */
.site-header.scrolled {
  background: var(--gradient-sph-h);
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}


.site-header.scrolled .nav-desktop {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  padding: 0;
  border-radius: 0;
  border: none;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 100%;
}

.header-inner .logo {
  flex-shrink: 0;
}

.header-inner .nav-desktop {
  flex: 0 1 auto;
  width: fit-content;
  justify-content: flex-start;
  margin-inline: auto;
  min-width: 0;
}

.theme-classic2 .header-inner .nav-desktop {
  flex: 0 0 auto !important;
  justify-content: flex-start !important;
  width: auto;
  margin-inline: 0;
}

.header-inner .menu-toggle {
  flex-shrink: 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--color-primary);
}

.logo--image {
  min-width: 132px;
}

.logo-image {
  display: block;
  width: auto;
  height: 80px;
  max-width: 172px;
  object-fit: contain;
}

.logo-image--young {
  height: 80px;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: var(--gradient-sph);
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: white;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  box-shadow: 0 2px 8px rgba(0, 91, 172, 0.25);
}

.footer-brand .logo-svg {
  height: 36px;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 0;
  position: relative;
  z-index: 1200;
}

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
}

/* 扁平化分格：用竖直分隔线代替胶囊 */
.nav-item + .nav-item {
  border-left: none;
}

.nav-desktop .nav-item > a {
  padding: 8px 18px;
  font-size: 0.88rem;
  font-weight: 500;
  color: #ffffff !important;
  border-radius: 0 !important;
  background: transparent !important;
  border: none !important;
  transition: opacity 0.2s ease;
  position: relative;
  white-space: nowrap;
  box-shadow: none !important;
}

.nav-desktop .nav-item > a:not(.nav-cta):hover,
.nav-desktop .nav-item > a:not(.nav-cta).active,
.nav-desktop .nav-item:hover > a:not(.nav-cta),
.nav-desktop .nav-item:focus-within > a:not(.nav-cta) {
  color: #ffffff !important;
  background: transparent !important;
  opacity: 0.85;
  box-shadow: none !important;
}

.nav-item.has-submenu > a::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-left: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  opacity: 0.72;
  transition: none;
}

.nav-item.has-submenu:hover > a::after,
.nav-item.has-submenu:focus-within > a::after {
  transform: translateY(1px) rotate(225deg);
  opacity: 1;
}

.nav-submenu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  min-width: 166px;
  padding: 10px;
  border: 1px solid rgba(217, 35, 46, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 44px rgba(45, 18, 24, 0.18);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transform: translate(-50%, 8px) scale(0.98);
  transform-origin: top center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.22s ease, visibility 0.2s ease;
  z-index: 1400;
}

.nav-submenu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -14px;
  height: 14px;
}

.nav-item:hover > .nav-submenu,
.nav-item:focus-within > .nav-submenu,
.nav-item.is-open > .nav-submenu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0) scale(1);
}

.nav-submenu-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 9px 12px;
  border-radius: 9px;
  color: #5c3b40;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.25;
  white-space: nowrap;
  transition: color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.nav-submenu-link:hover,
.nav-submenu-link:focus-visible {
  color: #d9232e;
  background: rgba(217, 35, 46, 0.08);
  transform: translateX(2px);
  outline: none;
}

.nav-submenu-group {
  padding-bottom: 8px;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(217, 35, 46, 0.1);
}

.nav-submenu-group:last-child {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: 0;
}

.nav-submenu-link--parent {
  color: #d9232e;
  background: rgba(217, 35, 46, 0.07);
}

.nav-submenu-nested {
  display: grid;
  grid-template-columns: repeat(2, minmax(64px, 1fr));
  gap: 4px;
  padding: 6px 2px 0;
}

.nav-submenu-nested .nav-submenu-link {
  justify-content: center;
  padding: 7px 8px;
  font-size: 0.82rem;
  color: #8a6065;
  background: rgba(217, 35, 46, 0.045);
}

.nav-submenu-nested .nav-submenu-link:hover,
.nav-submenu-nested .nav-submenu-link:focus-visible {
  color: #d9232e;
  background: rgba(217, 35, 46, 0.11);
  transform: none;
}

.nav-cta {
  margin-left: 0 !important;
  padding: 8px 18px !important;
  background: transparent !important;
  color: #ffffff !important;
  border-radius: 0 !important;
  font-weight: 500 !important;
  box-shadow: none !important;
  border: none !important;
}

.nav-cta:hover,
.nav-cta.active,
.nav-item:hover > .nav-cta,
.nav-item:focus-within > .nav-cta {
  background: transparent !important;
  color: #ffffff !important;
  transform: none !important;
  opacity: 0.85;
  box-shadow: none !important;
}

.theme-classic3 .nav-cta,
.theme-classic3 .nav-cta:hover,
.theme-classic3 .nav-cta.active,
.theme-classic3 .nav-item:hover > .nav-cta,
.theme-classic3 .nav-item:focus-within > .nav-cta {
  background: transparent !important;
  color: #ffffff !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #ffffff;
  position: relative;
  transition: var(--transition);
}

.menu-toggle span::before,
.menu-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: #ffffff;
  transition: var(--transition);
}

.menu-toggle span::before { top: -7px; }
.menu-toggle span::after { top: 7px; }

/* 移动端导航：右侧滑出抽屉 + 分组二级子菜单 */
.nav-mobile {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(320px, 86vw);
  z-index: 1001;
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: var(--gradient-sph-h);
  color: #ffffff;
  padding: max(18px, env(safe-area-inset-top)) 20px max(24px, env(safe-area-inset-bottom));
  overflow-y: auto;
  transform: translateX(102%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  box-shadow: -18px 0 44px rgba(20, 42, 70, 0.22);
  transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
}

.nav-mobile.open {
  transform: translateX(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.nav-mobile a {
  display: block;
  padding: 12px 14px;
  font-size: 0.98rem;
  font-weight: 500;
  color: #ffffff;
  border-radius: 10px;
  background: transparent;
  border: none;
  box-shadow: none;
  text-decoration: none;
  transition: opacity 0.2s ease, background 0.2s ease;
}

.nav-mobile a:hover,
.nav-mobile a.active {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  opacity: 1;
}

/* 抽屉头部：品牌名 + 关闭按钮 */
.nav-mobile__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  padding: 2px 2px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.nav-mobile__brand {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  opacity: 0.92;
}

.nav-mobile__close {
  -webkit-appearance: none;
  appearance: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: transparent;
  color: #ffffff;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.nav-mobile__close:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.5);
}

/* 分组：标题链接 + 展开箭头 */
.nav-mobile__group-head {
  display: flex;
  align-items: center;
}

.nav-mobile__group-link {
  flex: 1;
}

.nav-mobile__group-toggle {
  -webkit-appearance: none;
  appearance: none;
  width: 42px;
  height: 42px;
  margin-right: 2px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: #ffffff;
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.nav-mobile__group-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
}

.nav-mobile__caret {
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.25s ease;
}

.nav-mobile__group.is-expanded .nav-mobile__caret {
  transform: translateY(2px) rotate(225deg);
}

/* 二级子菜单：展开/收起动画 */
.nav-mobile__sub {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.28s ease;
}

.nav-mobile__sub > div {
  overflow: hidden;
}

.nav-mobile__group.is-expanded .nav-mobile__sub {
  grid-template-rows: 1fr;
}

.nav-mobile__sub a {
  padding: 10px 14px 10px 26px;
  font-size: 0.9rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.86);
}

.nav-mobile__sub a.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

/* 抽屉遮罩 + 打开时锁定背景滚动 */
.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(12, 26, 44, 0.45);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.nav-backdrop.show {
  opacity: 1;
  visibility: visible;
}

body.nav-open {
  overflow: hidden;
}

/* ---- Hero Carousel ---- */
.hero {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 380px;
  overflow: hidden;
  background: var(--color-primary);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
  pointer-events: none;
}

.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
}

/* 图片默认按容器比例铺满裁切（cover）、内容居中。js/main.js 的 applyHeroAspect
   会对非 16:9 的图片动态改为 object-fit: contain，完整显示不裁切（两侧露出品牌蓝背景）。 */
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero-slide-media-old {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-slide-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero-slide--video .hero-slide-media {
  background: var(--color-primary);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 51, 122, 0.55);
}

.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding-top: var(--header-h);
}

.hero-text {
  max-width: 620px;
  color: white;
}

.hero-badge {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 4px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
  backdrop-filter: none;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5.5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  opacity: 0.9;
  margin-bottom: 32px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 4px;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  box-shadow: none;
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: none;
  border: 1px solid var(--color-primary);
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  transform: none;
  box-shadow: none;
}

.btn-outline {
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: white;
  background: transparent;
  box-shadow: none;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: white;
  transform: none;
  box-shadow: none;
}

.hero-dots {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  transition: var(--transition);
  cursor: pointer;
}

.hero-dot.active {
  width: 32px;
  border-radius: 5px;
  background: var(--color-accent);
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  right: 8%;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.8rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: float 2s ease-in-out infinite;
}

.hero-scroll::after {
  content: "";
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* ---- Stats Bar (legacy / inner pages) ---- */
.stats-bar {
  background: var(--gradient-sph-h);
  padding: 40px 0;
  margin-top: -1px;
}

/* ---- Home section stats (distributed by section) ---- */
.home-section-stats {
  display: grid;
  gap: 12px;
}

.home-section-stats--about {
  /* 与下方 .brand-pillars 使用相同的列模板和间距，使「1916」卡片与「自有菌种」卡片宽度精确对齐 */
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: clamp(16px, 2.5vh, 24px);
}

.home-section-stats--products {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 560px;
  margin: clamp(10px, 1.4vh, 16px) auto clamp(6px, 0.8vh, 10px);
}

.home-section-stats--science {
  grid-template-columns: minmax(0, 220px);
  margin: clamp(12px, 1.8vh, 20px) 0 clamp(8px, 1.5vh, 16px);
}

.home-section-stats__item {
  padding: 14px 16px;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  text-align: center;
  box-shadow: none;
}

.home-section-stats__value {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.4vw, 1.95rem);
  font-weight: 800;
  color: var(--color-primary-dark);
  line-height: 1;
}

.home-section-stats__value small {
  font-size: 0.55em;
  font-weight: 600;
}

.home-section-stats__label {
  margin-top: 6px;
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

.home-section-stats-mount:empty {
  display: none;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.stat-item {
  text-align: center;
  color: white;
  padding: 16px;
  position: relative;
}

.stat-item:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: rgba(255, 255, 255, 0.15);
}

.stat-value {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

.stat-value small {
  font-size: 0.55em;
  font-weight: 600;
}

.stat-label {
  margin-top: 8px;
  font-size: 0.88rem;
  opacity: 0.75;
}

/* ---- Sections ---- */
.section {
  padding: 30px 0;
}

.section-alt {
  background: var(--color-bg-alt);
}

.section-header {
  margin-bottom: 56px;
}

.section-header.center {
  text-align: center;
}

.section-header.center .section-desc {
  margin: 0 auto;
}

/* ---- Brand Intro (Home) ---- */
.brand-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.brand-official-link {
  margin-top: 24px;
}

.brand-intro-visual {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: none;
  border: 1px solid var(--color-border);
}

.brand-intro-visual img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.brand-intro-visual::before {
  display: none;
}

.brand-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 32px;
}

.pillar-card {
  padding: 24px 20px;
  background: var(--color-surface);
  border-radius: 4px;
  border: 1px solid var(--color-border);
  transition: border-color 0.2s ease, background-color 0.2s ease;
  box-shadow: none;
}

.pillar-card:hover {
  border-color: var(--color-primary);
  transform: none;
  box-shadow: none;
  background: var(--color-bg-alt);
}

.pillar-icon {
  width: 64px;
  height: 64px;
  background: var(--color-bg-alt);
  border-radius: 4px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  border: 1px solid var(--color-border);
  box-shadow: none;
  flex-shrink: 0;
}

.pillar-icon svg {
  width: 36px;
  height: 36px;
  display: block;
}

.pillar-card--row {
  display: flex;
  gap: 16px;
  align-items: center;
}

.pillar-card--row .pillar-icon {
  margin-bottom: 0;
}

.pillar-card h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.pillar-card p {
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

/* ---- Culture Values (品牌页) ---- */
.culture-values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.culture-card {
  padding: 40px 32px;
  background: var(--color-surface);
  border-radius: 4px;
  border: 1px solid var(--color-border);
  text-align: center;
  transition: border-color 0.2s ease, background-color 0.2s ease;
  box-shadow: none;
}

.culture-card:hover {
  border-color: var(--color-primary);
  transform: none;
  box-shadow: none;
  background: var(--color-bg-alt);
}

.culture-card-icon {
  width: 88px;
  height: 88px;
  margin: 0 auto 24px;
  background: var(--color-bg-alt);
  border-radius: 4px;
  display: grid;
  place-items: center;
  border: 1px solid var(--color-border);
  box-shadow: none;
}

.culture-card-icon svg {
  width: 48px;
  height: 48px;
  display: block;
}

.culture-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 12px;
}

.culture-card p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--color-text-muted);
}

/* ---- Product Grid (Bento) ---- */
.product-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.filter-btn {
  padding: 10px 20px;
  font-size: 0.88rem;
  font-weight: 500;
  border-radius: 4px;
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  background: var(--color-surface);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: white;
}

@media (min-width: 1024px) {
  body.home-fullpage .section--home-news .news-featured-main {
    min-height: 0 !important;
  }

  .section--home-products .product-card-img,
  .section--home-products .product-card:nth-child(1) .product-card-img,
  .section--home-products .product-card:nth-child(2) .product-card-img,
  .section--home-products .product-card:nth-child(n) .product-card-img {
    min-height: 0 !important;
  }

  .section--home-products .product-card {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
  }

  .section--home-products .product-card-img {
    flex: 0 0 44%;
    width: 44%;
    max-width: 44%;
    min-height: 0;
    border-right: 1px solid rgba(0, 120, 193, 0.1);
    border-radius: 0;
  }

  .section--home-products .product-card-body {
    flex: 1 1 0;
    width: 0;
    min-width: 0;
    height: 100%;
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 6px;
    padding-top: 11px;
    padding-bottom: 10px;
  }

  .section--home-products .product-card-tags {
    margin-bottom: 0;
  }

  .section--home-products .product-card-body h3 {
    margin-top: auto;
  }

  .section--home-products .product-card-meta {
    margin-top: auto;
    padding-top: 8px;
    border-top: none;
  }
}

.product-bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}

.product-card {
  background: var(--color-surface);
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: border-color 0.2s ease, background-color 0.2s ease;
  cursor: pointer;
  grid-column: span 4;
  box-shadow: none;
}

.product-card:nth-child(1) { grid-column: span 6; }
.product-card:nth-child(2) { grid-column: span 6; }

.product-card:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--color-primary);
}

.product-card-img {
  position: relative;
  background: var(--color-bg-alt);
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  border-bottom: 1px solid var(--color-border);
}

.product-card:nth-child(1) .product-card-img,
.product-card:nth-child(2) .product-card-img {
  min-height: 280px;
}

.product-card-img img {
  max-height: 200px;
  object-fit: contain;
  filter: none;
  transition: none;
}

.product-card:hover .product-card-img img {
  transform: none;
}

.product-card-body {
  padding: 24px;
}

.product-card-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.tag {
  padding: 3px 10px;
  font-size: 0.72rem;
  font-weight: 600;
  border-radius: 4px;
  background: var(--color-bg-alt);
  color: var(--color-primary);
}

.tag-warm {
  background: #E8F4FC;
  color: var(--color-primary);
}

.product-card-body h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.product-card-body p {
  font-size: 0.88rem;
  color: var(--color-text-muted);
}

.product-card-body .product-card-spec {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  margin: 0;
}

.product-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--color-border);
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

.product-card-meta .arrow {
  color: var(--color-primary);
  font-weight: 700;
  transition: var(--transition);
}

.product-card:hover .arrow {
  transform: translateX(4px);
}

/* ---- Science Cards ---- */
.science-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.patent-showcase {
  background: var(--color-surface);
  border-radius: 4px;
  padding: 28px;
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  box-shadow: none;
}

.patent-carousel {
  position: relative;
  margin: 16px 0 8px;
}

.patent-carousel__viewport {
  position: relative;
}

.patent-carousel__track {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.patent-carousel__slide {
  min-width: 0;
}

.patent-carousel__slide img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  display: block;
  object-fit: contain;
  background: #fff;
}

.patent-carousel__btn {
  display: none;
}

@media (max-width: 1024px) {
  .patent-carousel__track {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .patent-carousel__track {
    grid-template-columns: 1fr;
  }
}

.patent-showcase h3 {
  font-size: 1.05rem;
  font-weight: 700;
}

.patent-meta {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  margin-top: 8px;
}

.research-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.research-card {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 20px;
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: 20px;
  border: 1px solid var(--color-border);
  transition: var(--transition);
}

.research-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--color-primary-light);
}

.research-card img {
  width: 140px;
  height: 180px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.research-card h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
  line-height: 1.4;
}

.research-card .journal {
  font-size: 0.82rem;
  color: var(--color-primary);
  font-weight: 600;
  margin-bottom: 8px;
}

.research-card .abstract {
  font-size: 0.88rem;
  color: var(--color-text-muted);
}

.strain-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.strain-card {
  min-height: 160px;
  padding: 18px 18px;
  border: 1px solid rgba(217, 35, 46, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.96), rgba(255,247,248,.92)),
    radial-gradient(circle at 80% 0%, rgba(217,35,46,.12), transparent 120px);
  box-shadow: 0 12px 32px rgba(40, 20, 24, 0.06);
  transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
}

.strain-card:hover {
  transform: translateY(-4px);
  border-color: rgba(217, 35, 46, 0.24);
  box-shadow: 0 18px 42px rgba(40, 20, 24, 0.12);
}

.strain-card span {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 4px 10px;
  border-radius: 999px;
  color: #d9232e;
  background: rgba(217, 35, 46, 0.08);
  font-size: .78rem;
  font-weight: 800;
}

.strain-card h3 {
  margin: 0 0 10px;
  color: var(--color-text);
  font-size: 1.02rem;
  line-height: 1.35;
}

.strain-card p {
  color: var(--color-text-muted);
  font-size: .9rem;
  line-height: 1.65;
}

/* 菌株卡片整卡可点击：a 包裹 article，去掉默认链接样式 */
.strain-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.strain-card-link .strain-card {
  height: 100%;
}

/* ---- 菌株详情页 ---- */
.strain-detail {
  max-width: 860px;
  margin: 0 auto;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 48px);
  box-shadow: var(--shadow-sm);
}

.strain-detail-empty {
  text-align: center;
}

.strain-detail-empty p {
  margin-bottom: 20px;
  color: var(--color-text-muted);
}

.strain-detail-actions {
  margin-top: clamp(28px, 4vw, 44px);
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
}

/*
 * 富文本正文：内容由后台编辑器产出，标签组合不可预知，
 * 这里给 img/标题/列表/表格/引用等补齐排版，避免图片溢出容器。
 */
.strain-body {
  font-size: 1.02rem;
  line-height: 1.9;
  color: var(--color-text);
  overflow-wrap: break-word;
}

.strain-body > *:first-child {
  margin-top: 0;
}

.strain-body > *:last-child {
  margin-bottom: 0;
}

.strain-body p {
  margin: 0 0 1.25em;
}

.strain-body img,
.strain-body video {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 1.5em auto;
  border-radius: var(--radius-md);
}

.strain-body h1,
.strain-body h2,
.strain-body h3,
.strain-body h4 {
  margin: 1.8em 0 .7em;
  line-height: 1.4;
  color: var(--color-text);
}

.strain-body h1 { font-size: 1.5rem; }
.strain-body h2 { font-size: 1.32rem; }
.strain-body h3 { font-size: 1.15rem; }
.strain-body h4 { font-size: 1.02rem; }

.strain-body ul,
.strain-body ol {
  margin: 0 0 1.25em;
  padding-left: 1.6em;
}

.strain-body li {
  margin-bottom: .5em;
}

.strain-body a {
  color: var(--color-primary);
  text-decoration: underline;
  overflow-wrap: break-word;
}

.strain-body blockquote {
  margin: 1.5em 0;
  padding: 14px 20px;
  border-left: 4px solid var(--color-primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  background: rgba(217, 35, 46, .05);
  color: var(--color-text-muted);
}

.strain-body blockquote p:last-child {
  margin-bottom: 0;
}

.strain-body table {
  display: block;
  width: 100%;
  margin: 1.5em 0;
  overflow-x: auto;
  border-collapse: collapse;
  font-size: .94rem;
}

.strain-body th,
.strain-body td {
  padding: 10px 14px;
  border: 1px solid var(--color-border);
  text-align: left;
}

.strain-body th {
  background: rgba(217, 35, 46, .06);
  font-weight: 700;
}

.strain-body hr {
  margin: 2em 0;
  border: 0;
  border-top: 1px solid var(--color-border);
}

.strain-body pre {
  margin: 1.5em 0;
  padding: 14px 18px;
  overflow-x: auto;
  border-radius: var(--radius-md);
  background: #f5f7fa;
  font-size: .9rem;
}

.science-asset-grid {
  display: grid;
  gap: 14px;
}

.science-asset-grid--patents {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.science-asset-grid img {
  width: 100%;
  height: 220px;
  object-fit: contain;
  padding: 14px;
  border: 1px solid rgba(217, 35, 46, .1);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(20, 42, 70, .07);
}

.research-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 28px;
}

.research-feature-card {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 18px;
  padding: 18px;
  border: 1px solid rgba(217, 35, 46, .12);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(20, 42, 70, .07);
}

.research-feature-card__body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.research-feature-card__content {
  flex: 1 1 auto;
  min-width: 0;
}

.research-feature-card__link {
  align-self: flex-start;
  margin-top: 12px;
  padding: 6px 14px 6px 0;
  color: #d9232e;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border: 0;
  background: transparent;
  cursor: pointer;
  transition: color 0.15s ease, transform 0.15s ease;
}

.research-feature-card__link:hover,
.research-feature-card__link:focus-visible {
  color: #B81822;
  transform: translateX(2px);
  text-decoration: none;
  outline: none;
}

.research-feature-card img {
  width: 160px;
  height: 132px;
  object-fit: cover;
  border-radius: 8px;
  background: #f4f7fa;
}

.research-feature-card span {
  color: #d9232e;
  font-size: .78rem;
  font-weight: 800;
}

.research-feature-card h3 {
  margin: 6px 0 8px;
  font-size: 1rem;
  line-height: 1.45;
}

.research-feature-card p {
  color: var(--color-text-muted);
  font-size: .9rem;
  line-height: 1.65;
}

.partner-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.partner-grid article {
  display: grid;
  place-items: center;
  min-height: 150px;
  padding: 22px;
  border: 1px solid rgba(217, 35, 46, .1);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(20, 42, 70, .06);
}

.partner-grid img {
  width: 100%;
  max-width: none;
  height: auto;
  max-height: 120px;
  object-fit: contain;
  margin: auto;
  display: block;
}

.partner-grid span {
  color: var(--color-text-muted);
  font-weight: 700;
}

.honor-showcase {
  display: grid;
  grid-template-columns: minmax(260px, .8fr) minmax(0, 1.2fr);
  gap: 22px;
  align-items: start;
}

.honor-cover {
  width: 100%;
  border-radius: 8px;
  border: 1px solid rgba(217, 35, 46, .12);
  background: #fff;
  box-shadow: 0 16px 42px rgba(20, 42, 70, .1);
}

.honor-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.honor-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(217, 35, 46, .1);
  background: #fff;
  box-shadow: 0 10px 26px rgba(20, 42, 70, .07);
}

/* ---- News ---- */
.news-featured {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: 24px;
  margin-bottom: 32px;
}

.news-featured-main {
  display: flex;
  flex-direction: column;
  align-self: start;
  border-radius: 4px;
  overflow: hidden;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  text-decoration: none;
  color: inherit;
  box-shadow: none;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.news-featured-main:hover {
  border-color: var(--color-primary);
  background: var(--color-bg-alt);
}

.news-featured-main__img {
  width: 100%;
  overflow: hidden;
  background: #ffffff;
  flex-shrink: 0;
}

.news-featured-main__img img {
  width: 100%;
  height: auto;
  display: block;
}

.news-featured-main__body {
  padding: 16px 24px 20px;
  display: flex;
  flex-direction: column;
}

.news-featured-main__body h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
}

.news-featured-main__body .news-date {
  margin-bottom: 6px;
}

.news-featured-main__body .news-card__more {
  margin-top: 4px;
}

.news-featured-side {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
}

.news-list-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.news-card {
  background: var(--color-surface);
  border-radius: 4px;
  padding: 28px;
  border: 1px solid var(--color-border);
  transition: border-color 0.2s ease, background-color 0.2s ease;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  box-shadow: none;
}

.news-card:hover {
  box-shadow: none;
  transform: none;
  border-color: var(--color-primary);
  background: var(--color-bg-alt);
}

.news-card__more {
  margin-top: auto;
  padding-top: 16px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-primary);
}

.news-card__more--light {
  color: rgba(255, 255, 255, 0.92);
  display: inline-block;
  margin-top: 12px;
}

.news-date {
  font-size: 0.8rem;
  color: var(--color-primary);
  font-weight: 600;
  margin-bottom: 10px;
}

.news-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 10px;
  flex: 1;
}

.news-card p {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  margin-bottom: 16px;
}

.news-tag {
  align-self: flex-start;
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 100px;
  background: var(--color-bg-alt);
  color: var(--color-primary);
}

/* ---- Article Detail ---- */
.article-hero {
  position: relative;
  margin-top: var(--header-h);
  min-height: 320px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: #fff;
}

.article-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 91, 172, 0.35) 0%,
    rgba(0, 40, 80, 0.82) 100%
  );
}

.article-hero > .container {
  position: relative;
  z-index: 1;
  padding-top: 48px;
  padding-bottom: 48px;
}

.article-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.78);
}

.article-breadcrumb a {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
}

.article-breadcrumb a:hover {
  text-decoration: underline;
}

.article-hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.article-hero__meta .news-date {
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 0;
}

.article-hero__meta .news-tag {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.article-hero h1 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  line-height: 1.35;
  max-width: 900px;
  margin-bottom: 14px;
}

.article-hero__desc {
  max-width: 760px;
  font-size: 1rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.88);
}

.article-detail {
  max-width: 780px;
  margin: 0 auto;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 48px);
  box-shadow: var(--shadow-sm);
}

.article-body {
  font-size: 1.02rem;
  line-height: 1.9;
  color: var(--color-text);
}

.article-body p + p {
  margin-top: 1.25em;
}

.article-lead {
  font-size: 1.12rem;
  font-weight: 600;
  line-height: 1.85;
  color: var(--color-text);
  margin-bottom: 1.5em;
}

.article-highlight {
  margin-top: 2em;
  padding: 20px 24px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(0, 160, 233, 0.08), rgba(0, 91, 172, 0.06));
  border-left: 4px solid var(--color-primary);
}

.article-highlight__label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.article-highlight p {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.7;
}

.article-quote {
  margin-top: 2em;
  padding: 24px 28px;
  border-radius: var(--radius-md);
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
}

.article-quote p {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.6;
  color: var(--color-primary-dark);
}

.article-quote cite {
  display: block;
  margin-top: 10px;
  font-style: normal;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.article-subheading {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  margin: 2em 0 0.75em;
  line-height: 1.4;
}

.article-figure {
  margin: 2em 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-bg-alt);
}

.article-figure img {
  width: 100%;
  display: block;
  object-fit: cover;
  max-height: 420px;
}

.article-figure--wide img {
  max-height: 480px;
}

.article-figure figcaption {
  padding: 12px 16px;
  font-size: 0.82rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  border-top: 1px solid var(--color-border);
}

.article-gallery {
  display: grid;
  gap: 16px;
  margin: 2em 0;
}

.article-gallery--duo {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.article-gallery--trio {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.article-gallery__item {
  margin: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-bg-alt);
}

.article-gallery__item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.article-gallery__item figcaption {
  padding: 10px 12px;
  font-size: 0.78rem;
  color: var(--color-text-muted);
  line-height: 1.45;
}

.article-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 2em 0;
}

.article-stat {
  text-align: center;
  padding: 20px 12px;
  border-radius: var(--radius-md);
  background: linear-gradient(145deg, rgba(0, 160, 233, 0.08), rgba(0, 91, 172, 0.04));
  border: 1px solid var(--color-border);
}

.article-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1.2;
  margin-bottom: 6px;
}

.article-stat span {
  font-size: 0.78rem;
  color: var(--color-text-muted);
}

.article-list-block {
  margin: 2em 0;
  padding: 20px 24px;
  border-radius: var(--radius-md);
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
}

.article-list-block__title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--color-primary-dark);
}

.article-list-block ul {
  margin: 0;
  padding-left: 1.2em;
}

.article-list-block li {
  margin-bottom: 8px;
  line-height: 1.7;
  color: var(--color-text);
}

.article-list-block li:last-child {
  margin-bottom: 0;
}

.news-card__cover {
  margin: -28px -28px 20px;
  border-radius: 4px 4px 0 0;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--color-bg-alt);
}

.news-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: none;
}

.news-card:hover .news-card__cover img {
  transform: none;
}

.news-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.news-mini-card {
  flex: 1;
  min-height: 0;
  background: var(--color-surface);
  border-radius: 4px;
  padding: 10px 14px;
  border: 1px solid var(--color-border);
  transition: border-color 0.2s ease, background-color 0.2s ease;
  display: flex;
  flex-direction: row;
  gap: 12px;
  align-items: center;
  text-decoration: none;
  color: inherit;
  box-shadow: none;
  overflow: hidden;
}

.news-mini-card__thumb {
  width: 96px;
  height: 60px;
  flex-shrink: 0;
  align-self: center;
  border-radius: 4px;
  overflow: hidden;
  background: transparent;
}

.news-mini-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.news-mini-card__text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.news-mini-card__text p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.35;
  margin: 0;
}

.news-mini-card:hover {
  border-color: var(--color-primary);
  transform: none;
  background: var(--color-bg-alt);
}

.article-nav {
  max-width: 780px;
  margin: 28px auto 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  align-items: stretch;
}

.article-nav__link {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
  min-height: 100%;
}

.article-nav__link:hover {
  border-color: var(--color-primary-light);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.article-nav__link--next {
  text-align: right;
}

.article-nav__label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-primary);
}

.article-nav__title {
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.45;
}

.article-nav__back {
  align-self: center;
  white-space: nowrap;
}

.article-nav__spacer {
  display: block;
}

.article-empty {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
  padding: 48px 24px;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
}

.article-empty p {
  margin-bottom: 20px;
  color: var(--color-text-muted);
}

/* ---- Timeline (Brand) ---- */
.timeline {
  position: relative;
  padding-left: 40px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--gradient-sph);
}

.timeline-item {
  position: relative;
  margin-bottom: 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -40px;
  top: 8px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-accent);
  border: 3px solid white;
  box-shadow: 0 0 0 3px var(--color-primary-light);
}

.timeline-year {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  color: var(--color-primary);
  opacity: 0.2;
  line-height: 1;
  margin-bottom: 8px;
}

.timeline-item img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.timeline-item:nth-child(even) .timeline-text { order: 2; }
.timeline-item:nth-child(even) .timeline-img { order: 1; }

/* ---- Contact ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.contact-info-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 40px;
  border: 1px solid var(--color-border);
}

.contact-info-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 24px;
}

.contact-methods {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.contact-methods .contact-item {
  min-width: 0;
  margin-bottom: 0;
}

.contact-item {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
  align-items: flex-start;
}

.contact-item-icon {
  width: 44px;
  height: 44px;
  background: var(--color-bg-alt);
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-item-icon--email {
  color: var(--color-primary);
}

.contact-item-icon--email svg {
  width: 22px;
  height: 22px;
}

.contact-item strong {
  display: block;
  font-size: 0.88rem;
  margin-bottom: 2px;
}

.contact-item span {
  font-size: 0.92rem;
  color: var(--color-text-muted);
}

.contact-visual {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  min-height: 400px;
}

.contact-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact-qr {
  display: flex;
  gap: 24px;
  margin-top: 32px;
}

.qr-card {
  text-align: center;
  padding: 20px;
  background: var(--color-bg-alt);
  border-radius: var(--radius-md);
}

.qr-card img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  margin: 0 auto 10px;
  border-radius: var(--radius-sm);
}

.qr-card span {
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

/* ---- Official Stores ---- */
.official-stores {
  margin-top: 32px;
}

.official-stores-label {
  display: block;
  font-size: 0.82rem;
  color: var(--color-text-muted);
  margin-bottom: 14px;
}

.official-stores-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.official-store-link {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  min-width: 0;
  min-height: 72px;
  padding: 10px 14px 10px 10px;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: var(--transition);
}

.official-store-link:hover {
  border-color: rgba(181, 73, 58, 0.35);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.official-store-link--pending {
  cursor: default;
}

.official-store-link--pending:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--color-border);
}

.official-store-link:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.official-store-icon {
  width: 58px;
  height: 58px;
  flex-shrink: 0;
  border-radius: 14px;
  background: transparent;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.official-store-icon-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.official-store-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  min-width: 0;
  overflow: hidden;
}

.official-store-title {
  font-size: clamp(0.82rem, 1.02vw, 0.94rem);
  font-weight: 700;
  color: #b5493a;
  line-height: 1.24;
  overflow-wrap: anywhere;
}

.official-store-sub {
  font-size: clamp(0.68rem, 0.85vw, 0.76rem);
  color: #b5493a;
  opacity: 0.82;
  line-height: 1.28;
  overflow-wrap: anywhere;
}

.official-shops {
  /* 独立成块，置于「商务合作 / 加入我们」两张卡片下方 */
  margin-top: 40px;
  padding: 32px 40px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

.official-shops .section-label {
  display: inline-flex;
}

.official-shops h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 8px 0 24px;
}

.official-shops-grid {
  display: grid;
  /* 桌面端：2 行 3 列（共 6 个店铺） */
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.official-shop-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 148px;
  padding: 14px 12px 12px;
  background: #fff;
  border: none;
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}

.official-shop-item:hover {
  border-color: rgba(181, 73, 58, 0.35);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.official-shop-item img {
  max-width: 100%;
  max-height: 90px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.official-shop-name {
  display: block;
  width: 100%;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-text);
  text-align: center;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

@media (max-width: 768px) {
  .official-shops { padding: 24px 20px; margin-top: 24px; }
  .official-shops-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---- Product Detail Modal ---- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(var(--color-primary-dark-rgb), 0.65);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal {
  background: white;
  border-radius: var(--radius-xl);
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.95) translateY(20px);
  transition: var(--transition);
}

.modal-overlay.open .modal {
  transform: scale(1) translateY(0);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 32px;
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  background: white;
  z-index: 1;
}

.modal-close {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-bg-alt);
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  transition: var(--transition);
}

.modal-close:hover {
  background: var(--color-primary);
  color: white;
}

.modal-body {
  padding: 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.modal-product-img {
  background: var(--color-bg-alt);
  border-radius: var(--radius-md);
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-product-img img {
  max-height: 280px;
  object-fit: contain;
}

.modal-detail h2 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.modal-detail .spec-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin: 16px 0;
}

.spec-badge {
  padding: 6px 14px;
  background: var(--color-bg-alt);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
}

.modal-detail .highlight {
  padding: 16px;
  background: linear-gradient(135deg, #E8F4FC, #F5FAFF);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--color-accent);
  font-size: 0.92rem;
  margin: 16px 0;
}

.modal-detail .ingredients {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  line-height: 1.8;
}

.modal-gallery {
  grid-column: 1 / -1;
  display: flex;
  gap: 12px;
}

.modal-gallery img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
}

.modal-gallery img:hover {
  border-color: var(--color-primary);
}

/* ---- Product Detail Page ---- */
.product-detail-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

.product-detail-media,
.product-detail-copy {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: white;
  box-shadow: var(--shadow-md);
}

.product-detail-media {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  padding: clamp(22px, 3vw, 36px);
}

.product-detail-media > img {
  display: block;
  width: 100%;
  max-height: 460px;
  object-fit: contain;
}

.product-detail-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(76px, 1fr));
  gap: 10px;
  margin-top: 22px;
}

.product-detail-gallery__item {
  padding: 8px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-bg-alt);
  cursor: pointer;
  transition: var(--transition);
}

.product-detail-gallery__item:hover {
  border-color: var(--color-primary);
  transform: translateY(-2px);
}

.product-detail-gallery__item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
}

.product-detail-copy {
  padding: clamp(24px, 3.2vw, 42px);
}

.product-detail-back {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--color-primary);
  font-weight: 700;
}

.product-detail-copy h2 {
  margin: 14px 0 8px;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.08;
}

.product-detail-series {
  color: var(--color-text-muted);
  font-size: 1.05rem;
}

.product-detail-specs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0;
}

.product-detail-specs div {
  padding: 16px;
  border: 1px solid rgba(var(--color-primary-rgb), 0.12);
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #fff, var(--color-bg-alt));
}

.product-detail-specs span {
  display: block;
  margin-bottom: 6px;
  color: var(--color-text-muted);
  font-size: 0.82rem;
}

.product-detail-specs strong {
  color: var(--color-primary-dark);
}

.product-detail-section {
  padding: 22px 0;
  border-top: 1px solid var(--color-border);
}

.product-detail-section h3 {
  margin-bottom: 10px;
  font-size: 1.08rem;
}

.product-detail-section p {
  color: var(--color-text-muted);
  line-height: 1.9;
}

.product-detail-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 10px;
}

/* 购买按钮（主按钮，位于操作区首位） */
.product-detail-actions .product-detail-cart {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* 「联系我们」靠右对齐 */
.product-detail-actions a[href="contact.html"] {
  margin-left: auto;
}

.product-detail-cart svg {
  width: 18px;
  height: 18px;
}

.product-detail-empty {
  min-height: 260px;
  display: grid;
  place-items: center;
  gap: 18px;
  text-align: center;
}

/* ---- Page Hero (inner pages) ---- */
.page-hero {
  --page-hero-h: 380px;
  height: var(--page-hero-h);
  color: white;
  position: relative;
  overflow: hidden;
  background: #0078C1;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 75% center;
  z-index: 0;
  display: block;
  transform: scale(1.04);
  transform-origin: 75% center;
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(0, 91, 172, 0.78) 0%,
    rgba(0, 120, 193, 0.45) 30%,
    rgba(0, 120, 193, 0.15) 50%,
    transparent 68%
  );
  z-index: 1;
  pointer-events: none;
}

/* 内页 banner：与 header 同色蒙版，让图片观感与 header 协调。
   蒙版采用主色（classic3 下为品牌红，其它主题为品牌蓝），
   通过 ::after 在原图之上再叠一层柔色，让白字仍清晰可读。 */
.page-hero.page-hero--brand,
.page-hero.page-hero--science,
.page-hero.page-hero--news,
.page-hero.page-hero--contact {
  background: transparent;
}
.page-hero--brand .page-hero-bg,
.page-hero--science .page-hero-bg,
.page-hero--news .page-hero-bg,
.page-hero--contact .page-hero-bg {
  transform: none;
}
.page-hero--brand .page-hero-overlay,
.page-hero--science .page-hero-overlay,
.page-hero--news .page-hero-overlay,
.page-hero--contact .page-hero-overlay {
  display: block;
  background: linear-gradient(
    120deg,
    rgba(var(--color-primary-rgb), 0.78) 0%,
    rgba(var(--color-primary-rgb), 0.55) 45%,
    rgba(var(--color-primary-dark-rgb), 0.5) 100%
  );
}
.page-hero--brand::after,
.page-hero--science::after,
.page-hero--news::after,
.page-hero--contact::after {
  display: none;
}
.page-hero--brand .section-label,
.page-hero--brand h1,
.page-hero--brand p,
.page-hero--science .section-label,
.page-hero--science h1,
.page-hero--science p,
.page-hero--news .section-label,
.page-hero--news h1,
.page-hero--news p,
.page-hero--contact .section-label,
.page-hero--contact h1,
.page-hero--contact p {
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.page-hero::after {
  content: "";
  position: absolute;
  right: -8%;
  top: -20%;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--color-accent-rgb), 0.12), transparent 70%);
  z-index: 2;
  pointer-events: none;
}

.page-hero .container {
  position: absolute;
  top: calc(var(--header-h) + 48px);
  left: 0;
  right: 0;
  bottom: auto;
  z-index: 3;
  width: min(1200px, 92vw);
  margin: 0 auto;
  padding-left: clamp(20px, 4vw, 48px);
  padding-right: clamp(20px, 4vw, 48px);
}

.page-hero .section-label {
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 14px;
}

.page-hero .section-label::before {
  background: rgba(255, 255, 255, 0.75);
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 14px;
  min-height: calc(clamp(2rem, 4vw, 3rem) * 1.25);
  text-shadow: 0 2px 12px rgba(0, 40, 80, 0.2);
}

.page-hero p {
  font-size: 1.05rem;
  opacity: 0.92;
  max-width: 520px;
  line-height: 1.65;
  min-height: calc(1.05rem * 1.65 * 2);
  margin: 0;
  text-shadow: 0 1px 6px rgba(0, 40, 80, 0.15);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}


/* ---- Microbe Decoration ---- */
.microbe-bg {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.15;
  pointer-events: none;
}

.microbe-bg-1 {
  width: 400px;
  height: 400px;
  background: var(--color-accent);
  top: 10%;
  right: -5%;
}

.microbe-bg-2 {
  width: 300px;
  height: 300px;
  background: var(--color-primary-light);
  bottom: 20%;
  left: -5%;
}

/* ---- Footer ---- */
.site-footer {
  background: var(--gradient-sph-h);
  color: rgba(255, 255, 255, 0.75);
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand .logo {
  color: white;
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.7;
  max-width: 320px;
}

.footer-col h4 {
  color: white;
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  font-size: 0.88rem;
  padding: 4px 0;
  transition: var(--transition);
}

.footer-col a:hover {
  color: var(--color-accent);
}

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

/* ICP 备案链接：紧跟版权所有文字后，与页脚文字同色，hover 高亮下划线 */
.footer-icp {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
  margin-left: 4px;
}
.footer-icp:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* ---- Animations ---- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .product-card { grid-column: span 6 !important; }
  .product-bento { grid-template-columns: repeat(6, 1fr); }
  .science-grid { grid-template-columns: 1fr; }
  .strain-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .research-feature-grid { grid-template-columns: 1fr; }
  .science-asset-grid--patents { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .partner-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .honor-showcase { grid-template-columns: 1fr; }
  .honor-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .brand-intro { grid-template-columns: 1fr; }
  .news-featured { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2)::after { display: none; }
  .timeline-item { grid-template-columns: 1fr; }
  .timeline-item:nth-child(even) .timeline-text,
  .timeline-item:nth-child(even) .timeline-img { order: unset; }
}

.product-series-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 40px;
}

.series-intro-card {
  padding: 20px 22px;
  background: var(--color-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}

.series-intro-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 14px;
  line-height: 1.3;
}

.series-intro-card__group + .series-intro-card__group {
  margin-top: 12px;
}

.series-intro-card__label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.series-intro-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
}

.series-intro-card__tags span {
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--color-text-muted);
  padding: 4px 10px;
  background: rgba(0, 120, 193, 0.04);
  border-radius: 6px;
  border: 1px solid var(--color-border);
}

@media (max-width: 768px) {
  .product-series-intro {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-bottom: 28px;
  }

  .series-intro-card {
    padding: 16px 18px;
  }

  .series-intro-card__title {
    font-size: 1rem;
    margin-bottom: 12px;
  }

  .series-intro-card__tags span {
    font-size: 0.76rem;
    padding: 3px 8px;
  }
  .nav-desktop { display: none; }
  .menu-toggle { display: flex; }
  .product-bento { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .product-card { grid-column: span 1 !important; }
  .product-card-img { min-height: 120px; padding: 14px; }
  .product-card:nth-child(1) .product-card-img,
  .product-card:nth-child(2) .product-card-img { min-height: 120px; }
  .product-card-img img { max-height: 96px; }
  .product-card-body { padding: 12px 14px; }
  .product-card-body h3 { font-size: 0.88rem; line-height: 1.35; }
  .product-card-body p {
    font-size: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .product-card-body .product-card-spec {
    font-size: 0.72rem;
    display: block;
    -webkit-line-clamp: unset;
    overflow: visible;
  }
  .product-card-tags { margin-bottom: 6px; }
  .tag { font-size: 0.65rem; padding: 2px 8px; }
  .product-card-meta { margin-top: 8px; padding-top: 8px; font-size: 0.72rem; }
  .brand-pillars {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 24px;
  }
  /* about 统计卡片与品牌支柱卡片保持相同列模板/间距，窄屏下依然宽度对齐 */
  .home-section-stats--about {
    gap: 8px;
  }
  .brand-pillars .pillar-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 14px 8px;
  }
  .brand-pillars .pillar-icon {
    width: 44px;
    height: 44px;
    margin-bottom: 8px;
    border-radius: 12px;
  }
  .brand-pillars .pillar-icon svg { width: 26px; height: 26px; }
  .brand-pillars .pillar-card h4 { font-size: 0.8rem; margin-bottom: 2px; }
  .brand-pillars .pillar-card p { font-size: 0.68rem; line-height: 1.35; }
  .culture-values {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
  .culture-card {
    padding: 18px 10px;
    text-align: center;
    border-radius: var(--radius-md);
  }
  .culture-card-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 10px;
    border-radius: 14px;
  }
  .culture-card-icon svg { width: 30px; height: 30px; }
  .culture-card h3 { font-size: 0.92rem; margin-bottom: 6px; }
  .culture-card p { font-size: 0.72rem; line-height: 1.45; }
  .news-list-grid { grid-template-columns: 1fr; }
  .article-nav {
    grid-template-columns: 1fr;
  }
  .article-nav__link--next {
    text-align: left;
  }
  .article-nav__back {
    width: 100%;
    justify-content: center;
  }
  .article-gallery--duo,
  .article-gallery--trio {
    grid-template-columns: 1fr;
  }
  .article-stats {
    grid-template-columns: 1fr;
  }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-methods { grid-template-columns: 1fr; }
  .official-stores-grid { grid-template-columns: 1fr; }
  .modal-body { grid-template-columns: 1fr; }
  .product-detail-layout { grid-template-columns: 1fr; }
  .product-detail-media { position: relative; top: auto; }
  .product-detail-specs { grid-template-columns: 1fr; }
  .science-grid { gap: 16px; }
  .patent-showcase { padding: 18px; }
  .patent-showcase h3 { font-size: 0.92rem; }
  .strain-grid,
  .partner-grid,
  .honor-gallery,
  .science-asset-grid--patents {
    grid-template-columns: 1fr;
  }
  .strain-card { min-height: auto; }
  .research-feature-card { grid-template-columns: 1fr; }
  .research-feature-card img {
    width: 100%;
    height: 180px;
  }
  .research-card {
    grid-template-columns: 72px 1fr;
    gap: 12px;
    padding: 12px;
  }
  .research-card img {
    width: 72px;
    height: 96px;
  }
  .research-card h4 { font-size: 0.88rem; }
  .research-card .journal { font-size: 0.72rem; margin-bottom: 4px; }
  .research-card .abstract {
    font-size: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px 16px;
  }
  .footer-brand {
    grid-column: 1 / -1;
    margin-bottom: 4px;
  }
  .footer-brand p { max-width: none; font-size: 0.82rem; }
  .footer-col h4 { font-size: 0.82rem; margin-bottom: 10px; }
  .footer-col a { font-size: 0.78rem; padding: 2px 0; }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.75rem;
  }
  .hero-scroll { display: none; }
  .hero {
    /* 移动端也交给 aspect-ratio 决定高度，图片完整显示 */
    min-height: 0;
  }
  .hero-slide--video .hero-slide-media {
    object-position: center center;
  }
  .hero-title {
    font-size: clamp(1.65rem, 6.5vw, 2.2rem);
  }
  .hero-subtitle {
    font-size: 0.92rem;
    line-height: 1.6;
  }
  .hero-actions {
    flex-wrap: wrap;
    gap: 10px;
  }
  .hero-actions .btn {
    padding: 12px 20px;
    font-size: 0.88rem;
  }
  .hero-dots {
    bottom: 22px;
    gap: 8px;
  }
  .hero-dot {
    width: 8px;
    height: 8px;
  }
  .stats-grid { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .stat-item { padding: 12px 6px; }
  .stat-item .stat-value { font-size: 1.35rem; }
  .stat-item .stat-label { font-size: 0.68rem; }
  .stat-item::after { display: none !important; }
  .page-hero { --page-hero-h: 300px; }
  .page-hero .container { top: calc(var(--header-h) + 32px); }
  .page-hero-overlay {
    background: linear-gradient(
      180deg,
      rgba(0, 91, 172, 0.93) 0%,
      rgba(0, 120, 193, 0.88) 100%
    ) !important;
  }
  /* 上述内页 banner 保持原图亮度，也不叠加移动端的深蓝蒙层 */
  .page-hero--brand .page-hero-overlay,
  .page-hero--science .page-hero-overlay,
  .page-hero--news .page-hero-overlay,
  .page-hero--contact .page-hero-overlay {
    display: none !important;
    background: none !important;
  }
}

@media (max-width: 420px) {
  .brand-pillars { gap: 6px; }
  .home-section-stats--about { gap: 6px; }
  .brand-pillars .pillar-card { padding: 12px 6px; }
  .brand-pillars .pillar-icon { width: 38px; height: 38px; }
  .brand-pillars .pillar-card h4 { font-size: 0.74rem; }
  .brand-pillars .pillar-card p { font-size: 0.62rem; }
  .culture-card h3 { font-size: 0.82rem; }
  .culture-card p { font-size: 0.66rem; }
  .product-bento { gap: 10px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

/* 开发版持续迭代中 — 全站标识（右侧，不遮挡导航） */
.demo-draft-badge {
  position: fixed;
  top: calc(var(--header-h) + 6px);
  right: 16px;
  left: auto;
  transform: none;
  z-index: 1200;
  padding: 5px 14px;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #7a3e00;
  background: linear-gradient(135deg, #ffe8b8 0%, #ffd080 100%);
  border: 1px solid rgba(212, 160, 23, 0.55);
  border-radius: 100px;
  box-shadow: 0 4px 16px rgba(180, 120, 0, 0.22);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}

.theme-classic2 .demo-draft-badge {
  top: calc(var(--c2-header-h) + 6px);
}

.theme-future .demo-draft-badge {
  top: 12px;
  color: #ffe8b8;
  background: linear-gradient(135deg, rgba(180, 100, 0, 0.92) 0%, rgba(140, 70, 0, 0.95) 100%);
  border-color: rgba(255, 200, 80, 0.45);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

@media (max-width: 768px) {
  .demo-draft-badge {
    top: 10px;
    right: auto;
    left: 12px;
    font-size: 0.65rem;
    padding: 4px 10px;
    letter-spacing: 0.05em;
  }

  .theme-future .demo-draft-badge {
    top: calc(var(--topbar-h) + 8px);
    left: auto;
    right: 12px;
  }
}

/* ---- Acceptance fixes: brand pages, product catalog, news waterfall ---- */
.hero-actions {
  align-items: center;
  gap: 18px;
}

.hero-actions .btn {
  min-width: 148px;
  min-height: 52px;
  padding-inline: 24px;
  white-space: nowrap;
  line-height: 1.2;
  overflow: visible;
}

.static-art-page {
  margin-top: var(--header-h);
  min-height: calc(100vh - var(--header-h));
  background: #fff;
}

.static-art-page img {
  display: block;
  width: 100%;
  height: auto;
}

.brand-culture-page {
  background: #fff;
}

.brand-culture-panel {
  width: min(1500px, 90vw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(420px, 1.1fr);
  gap: clamp(48px, 7vw, 110px);
  align-items: center;
  padding: clamp(60px, 9vh, 110px) 0;
}

.brand-culture-copy h1 {
  margin: 0 0 18px;
  color: #e60012;
  font-size: clamp(2.7rem, 5.2vw, 5.6rem);
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0;
}

.brand-culture-copy h2 {
  margin: 0 0 42px;
  color: #111;
  font-size: clamp(1.35rem, 2.1vw, 2rem);
  font-weight: 800;
}

.brand-culture-copy p {
  max-width: 680px;
  margin: 0 0 78px;
  color: #4f5864;
  font-size: clamp(1rem, 1.25vw, 1.2rem);
  line-height: 1.9;
}

.brand-culture-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 44px 72px;
}

.brand-culture-metrics strong {
  display: block;
  margin-bottom: 8px;
  color: #2e3238;
  font-size: clamp(1.55rem, 2.2vw, 2.35rem);
  line-height: 1.2;
  font-weight: 500;
}

.brand-culture-metrics span {
  color: #686f78;
  font-size: clamp(.98rem, 1.1vw, 1.18rem);
  line-height: 1.45;
}

.brand-culture-media {
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
}

.brand-culture-media img {
  display: block;
  width: 100%;
  aspect-ratio: 1.58 / 1;
  object-fit: cover;
}

.product-gateway {
  position: relative;
  margin-top: var(--header-h);
  min-height: calc(100vh - var(--header-h));
  overflow: hidden;
  display: grid;
  place-items: center;
  background: #eaf6fb;
}

.product-gateway__bg,
.product-gateway__overlay {
  position: absolute;
  inset: 0;
}

.product-gateway__bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

.product-gateway__overlay {
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(255,255,255,.14), rgba(255,255,255,.3) 70%, rgba(255,255,255,.62)),
    linear-gradient(90deg, rgba(255,255,255,.35), transparent 36%, rgba(255,255,255,.22));
  pointer-events: none;
}

.product-gateway__content {
  position: relative;
  z-index: 2;
  width: min(920px, 86vw);
  margin-top: -8vh;
  text-align: center;
}

.product-gateway__content .section-label {
  justify-content: center;
  color: #d9232e;
}

.product-gateway__content .section-label::before {
  background: #d9232e;
}

.product-gateway__content h1 {
  margin: 12px 0 18px;
  color: #0f2438;
  font-size: clamp(2.2rem, 5vw, 5rem);
  line-height: 1.08;
  font-weight: 900;
}

.product-gateway__content p {
  max-width: 720px;
  margin: 0 auto;
  color: #4d5f70;
  font-size: clamp(1rem, 1.25vw, 1.22rem);
  line-height: 1.8;
}

.product-gateway__actions {
  position: absolute;
  left: 50%;
  bottom: clamp(38px, 8vh, 86px);
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 18px;
  padding: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.78);
  box-shadow: 0 20px 48px rgba(20,42,70,.14);
  backdrop-filter: blur(14px);
}

.product-gateway__actions a {
  min-width: 156px;
  padding: 14px 28px;
  border-radius: 999px;
  color: #d9232e;
  background: rgba(255,255,255,.9);
  font-weight: 900;
  text-align: center;
  transition: transform .18s ease, box-shadow .18s ease, color .18s ease, background .18s ease;
}

.product-gateway__actions a:hover {
  color: #fff;
  background: linear-gradient(135deg, #ef4a54 0%, #d9232e 60%, #b81822 100%);
  box-shadow: 0 14px 34px rgba(217,35,46,.26);
  transform: translateY(-2px);
}

.product-channel-hero {
  position: relative;
  margin-top: var(--header-h);
  min-height: 54vh;
  overflow: hidden;
  background: #edf7fb;
  display: grid;
  align-items: center;
}

.product-channel-hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.34;
}

.product-channel-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,.96), rgba(255,255,255,.72) 46%, rgba(255,255,255,.18));
}

.product-channel-hero .container {
  position: relative;
  z-index: 1;
}

.product-channel-hero h1 {
  margin: 10px 0 14px;
  font-size: clamp(2.4rem, 6vw, 5.4rem);
  line-height: 1;
  color: #13283d;
  font-weight: 800;
}

.product-channel-hero p {
  max-width: 560px;
  color: #516274;
  font-size: 1.05rem;
}

.product-catalog-section {
  min-height: calc(100vh - var(--header-h));
  padding-top: 42px;
}

.product-channel-tabs {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin: 0 auto 22px;
}

.product-channel-tabs a {
  min-width: 132px;
  padding: 12px 24px;
  border-radius: 999px;
  border: 1px solid rgba(217,35,46,.18);
  background: #fff;
  color: #4a5662;
  font-weight: 800;
  text-align: center;
  box-shadow: 0 10px 24px rgba(30,45,70,.06);
  transition: transform .18s ease, box-shadow .18s ease, color .18s ease, background .18s ease;
}

.product-channel-tabs a:hover,
.product-channel-tabs a.active {
  color: #fff;
  background: linear-gradient(135deg, #ef4a54 0%, #d9232e 60%, #b81822 100%);
  box-shadow: 0 14px 32px rgba(217,35,46,.22);
  transform: translateY(-2px);
}

.product-age-pills {
  justify-content: center;
  margin-bottom: 30px;
}

.product-age-pills .filter-btn {
  min-width: 78px;
  font-weight: 800;
}

.product-bento.product-bento--catalog {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.product-bento--catalog .product-card,
.product-bento--catalog .product-card:nth-child(1),
.product-bento--catalog .product-card:nth-child(2) {
  grid-column: auto !important;
  border-radius: 8px;
  border-color: rgba(217,35,46,.1);
  box-shadow: 0 10px 28px rgba(20,42,70,.06);
}

.product-bento--catalog .product-card-img,
.product-bento--catalog .product-card:nth-child(1) .product-card-img,
.product-bento--catalog .product-card:nth-child(2) .product-card-img {
  min-height: 190px;
  padding: 24px;
  background: #f3f5f7;
}

.product-bento--catalog .product-card-img img {
  max-width: 100%;
  max-height: 155px;
}

.product-bento--catalog .product-card-body {
  min-height: 156px;
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
}

.product-bento--catalog .product-card-tags {
  display: none;
}

.product-bento--catalog .product-card-body h3 {
  min-height: 2.8em;
  margin-bottom: 8px;
  font-size: .98rem;
  line-height: 1.4;
}

.product-bento--catalog .product-card-body p {
  min-height: 2.9em;
  font-size: .82rem;
  line-height: 1.55;
}

.product-bento--catalog .product-card-meta {
  margin-top: auto;
  gap: 10px;
}

.news-waterfall-section {
  min-height: calc(100vh - var(--header-h));
  padding-top: 44px;
}

.news-list-grid.news-list-grid--waterfall {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
}

.news-list-grid--waterfall .news-card {
  padding: 0;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(20,42,70,.07);
}

.news-list-grid--waterfall .news-card__cover {
  /* 按 898×378 等比例缩放，图片完整显示且底部不留空白 */
  aspect-ratio: 898 / 378;
  margin: 0;
  background: #ffffff;
}

.news-list-grid--waterfall .news-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: #ffffff;
}

.news-list-grid--waterfall .news-card__body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
}

/* 日期与标题上下一列显示 */
.news-list-grid--waterfall .news-card__meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 8px;
}

.news-list-grid--waterfall .news-card__meta .news-date {
  margin: 0;
  font-size: 0.78rem;
}

.news-list-grid--waterfall .news-card h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.4;
}

.news-list-grid--waterfall .news-card p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 10px;
}

/* 阅读原文上移、右对齐：取消贴底，减小上边距，整体收紧卡片高度 */
.news-list-grid--waterfall .news-card__more {
  margin-top: 0;
  padding-top: 0;
  align-self: flex-end;
  text-align: right;
}

.news-card .news-tag {
  display: none;
}

#strains {
  min-height: calc(100vh - var(--header-h) - 350px);
  display: grid;
  align-items: center;
}
#partners {
  min-height: calc(100vh - var(--header-h) - 400px);
  display: grid;
  align-items: center;
}

#strains .section-header,
#partners .section-header {
  margin-bottom: clamp(34px, 5vh, 64px);
}

#strains .strain-grid {
  gap: clamp(16px, 1.6vw, 24px);
}

#strains .strain-card {
  min-height: clamp(160px, 18vh, 210px);
  padding: clamp(16px, 1.4vw, 22px);
}

#partners .partner-grid article {
  min-height: clamp(190px, 24vh, 280px);
}

@media (max-width: 1180px) {
  .brand-culture-panel {
    grid-template-columns: 1fr;
  }

  .brand-culture-copy p {
    margin-bottom: 46px;
  }

  .product-bento.product-bento--catalog,
  .news-list-grid.news-list-grid--waterfall {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .brand-culture-panel {
    width: min(680px, 90vw);
  }

  .brand-culture-metrics {
    gap: 30px;
  }

  .product-bento.product-bento--catalog,
  .news-list-grid.news-list-grid--waterfall {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .brand-culture-metrics {
    grid-template-columns: 1fr;
  }

  .product-gateway__actions {
    flex-direction: column;
    width: min(280px, 86vw);
    border-radius: 28px;
  }

  .product-gateway__actions a {
    width: 100%;
  }

  .product-bento.product-bento--catalog,
  .news-list-grid.news-list-grid--waterfall {
    grid-template-columns: 1fr;
  }

  .product-channel-tabs {
    flex-direction: column;
  }

  .product-channel-hero {
    min-height: 42vh;
  }
}

/* ---- Product Story Catalog ---- */
body[data-page="brand-culture"] .reveal {
  opacity: 1;
  transform: none;
}

.product-showcase-section {
  display: grid;
  align-items: center;
  padding: clamp(34px, 5vw, 64px) 0 clamp(50px, 6vw, 82px);
  background:
    linear-gradient(180deg, rgba(255, 248, 241, 0.78) 0%, rgba(255, 255, 255, 0.96) 34%),
    #fff;
}

.product-showcase-section > .container {
  width: min(1160px, 92vw);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

body[data-page="products"] .product-channel-hero {
  min-height: 32vh;
}

body[data-page="products-all"] .product-channel-hero {
  min-height: 32vh;
}

body[data-page="products-child"] .product-channel-hero,
body[data-page="products-adult"] .product-channel-hero {
  min-height: clamp(360px, 45vh, 500px);
  align-items: start;
  padding-top: clamp(42px, 6.5vh, 78px);
  background: #fff;
}

/* 成人产品页：单独压缩 hero，让卡片上方间距更紧凑 */
body[data-page="products-adult"] .product-channel-hero {
  min-height: clamp(240px, 30vh, 340px);
  padding-top: clamp(28px, 4vh, 52px);
  padding-bottom: clamp(12px, 1.6vh, 24px);
}

/* 婴童产品页：压缩 hero，缩小分类按钮与下方产品卡片的间距 */
body[data-page="products-child"] .product-channel-hero {
  min-height: clamp(260px, 32vh, 360px);
}

body[data-page="products-child"] .product-channel-hero > img,
body[data-page="products-adult"] .product-channel-hero > img {
  display: none;
}

body[data-page="products-child"] .product-channel-hero::after,
body[data-page="products-adult"] .product-channel-hero::after {
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(255,255,255,0.94));
}

body[data-page="products-child"] .product-channel-hero .container,
body[data-page="products-adult"] .product-channel-hero .container,
body[data-page="products-child"] .product-catalog-section > .container,
body[data-page="products-adult"] .product-catalog-section > .container {
  width: min(1320px, 88vw);
}

body[data-page="products-child"] .product-channel-hero h1,
body[data-page="products-adult"] .product-channel-hero h1 {
  max-width: 640px;
  font-size: clamp(2.8rem, 5.2vw, 5.4rem);
}

body[data-page="products-child"] .product-channel-hero p,
body[data-page="products-adult"] .product-channel-hero p {
  max-width: 680px;
  font-size: clamp(1.02rem, 1.2vw, 1.22rem);
}

body[data-page="products-child"] .product-catalog-section,
body[data-page="products-adult"] .product-catalog-section {
  position: relative;
  z-index: 3;
  min-height: auto;
  padding-top: clamp(18px, 2.4vh, 30px);
  margin-top: clamp(-64px, -6vh, -36px);
}

/* 成人产品页：卡片区更贴近标题，间距压到合适大小 */
body[data-page="products-adult"] .product-catalog-section {
  padding-top: clamp(8px, 1.2vh, 16px);
  margin-top: clamp(-24px, -2.5vh, -12px);
}

body[data-page="products-child"] .product-catalog-section > .container,
body[data-page="products-adult"] .product-catalog-section > .container {
  position: relative;
}

body[data-page="products-child"] .product-channel-tabs,
body[data-page="products-adult"] .product-channel-tabs {
  position: absolute;
  top: clamp(-160px, -17vh, -110px);
  right: 0;
  z-index: 8;
  justify-content: flex-end;
  margin: 0;
}

/* 成人产品页 tabs：hero 已经压缩，tabs 相对定位也同步上抬到 hero 内 */
body[data-page="products-adult"] .product-channel-tabs {
  top: clamp(-160px, -17vh, -110px);
}

/* 婴童产品页 tabs：上移与 hero 说明文字（“婴童线产品，面向日常营养管理…”）垂直对齐。
   公式 = hero 顶部留白(clamp 42..78px) + 文字行相对容器顶偏移(≈91px) - 按钮半高(≈21.5px)
        - hero 高度(clamp 360..500px) + 卡片区上移 margin(36..64px) - 卡片区 padding-top(18..30px) */
body[data-page="products-child"] .product-channel-tabs {
  top: calc(
    clamp(42px, 6.5vh, 78px)
    + 69.5px
    - clamp(260px, 32vh, 360px)
    + clamp(36px, 6vh, 64px)
    - clamp(18px, 2.4vh, 30px)
  );
}

body[data-page="products-child"] .product-age-pills {
  position: absolute;
  top: clamp(-198px, -20vh, -128px);
  right: 0;
  z-index: 8;
  justify-content: flex-end;
  margin: 0;
}

body[data-page="products-child"] .product-bento.product-bento--catalog,
body[data-page="products-adult"] .product-bento.product-bento--catalog {
  margin-top: 0;
}

.product-showcase-section .section-header {
  margin-bottom: 26px;
}

.product-showcase-section .product-channel-tabs {
  position: relative;
  z-index: 5;
}

.product-showcase-section .product-filters {
  position: relative;
  z-index: 5;
  justify-content: center;
  margin-bottom: clamp(28px, 4vw, 44px);
}

.product-showcase-section .filter-btn,
.product-showcase-section .product-channel-tabs a {
  pointer-events: auto;
}

.product-bento.product-bento--catalog,
.product-bento.product-bento--more {
  width: 100%;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(18px, 2vw, 26px);
  align-items: start;
  justify-content: center;
}

.product-bento--catalog .product-card,
.product-bento--catalog .product-card:nth-child(1),
.product-bento--catalog .product-card:nth-child(2),
.product-bento--more .product-card,
.product-bento--more .product-card:nth-child(1),
.product-bento--more .product-card:nth-child(2) {
  position: relative;
  display: block;
  grid-column: auto !important;
  width: 100%;
  justify-self: stretch;
  aspect-ratio: 5 / 6;
  min-height: 0;
  overflow: hidden;
  border-radius: 34px;
  border: 1px solid rgba(232, 194, 102, 0.58);
  background: #FFF8F1;
  box-shadow: 0 24px 60px rgba(80, 45, 20, 0.12);
  container-type: inline-size;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.product-bento--catalog .product-card::before,
.product-bento--more .product-card::before {
  content: "";
  position: absolute;
  inset: 8px;
  z-index: 4;
  pointer-events: none;
  border: 1px solid rgba(239, 203, 118, 0.42);
  border-radius: 28px;
}

.product-bento--catalog .product-card:hover,
.product-bento--more .product-card:hover {
  transform: translateY(-5px);
  border-color: rgba(226, 161, 63, 0.7);
  box-shadow: 0 30px 72px rgba(80, 45, 20, 0.16);
}

.product-card-link {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  color: inherit;
  text-decoration: none;
  background: #FFF8F1;
}

.product-bento--catalog .product-card-img,
.product-bento--catalog .product-card:nth-child(1) .product-card-img,
.product-bento--catalog .product-card:nth-child(2) .product-card-img,
.product-bento--more .product-card-img,
.product-bento--more .product-card:nth-child(1) .product-card-img,
.product-bento--more .product-card:nth-child(2) .product-card-img {
  position: absolute;
  left: 0;
  right: 0;
  top: clamp(10px, 3.4cqw, 26px);
  width: 100%;
  height: 54%;
  max-width: none;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  display: block;
  border: 0;
  border-radius: 0;
  background: #FFF8F1;
}

.product-bento--catalog .product-card-img::after,
.product-bento--more .product-card-img::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 30%;
  background: linear-gradient(to bottom, rgba(255, 248, 241, 0) 0%, #FFF8F1 85%);
  pointer-events: none;
}

.product-bento--catalog .product-card-img img,
.product-bento--more .product-card-img img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  object-position: center;
  filter: none;
  transition: transform 0.28s ease;
}

.product-bento--catalog .product-card:hover .product-card-img img,
.product-bento--more .product-card:hover .product-card-img img {
  transform: scale(1.025);
}

.product-bento--catalog .product-card-body,
.product-bento--more .product-card-body {
  position: absolute;
  z-index: 2;
  left: 9%;
  right: 8%;
  top: 55%;
  bottom: clamp(20px, 4.5cqw, 34px);
  width: auto;
  min-width: 0;
  height: auto;
  padding: 0;
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr);
  align-content: space-between;
}

.product-card-title,
.product-bento--catalog .product-card-body h3,
.product-bento--more .product-card-body h3 {
  min-height: 0;
  margin: 0;
  color: #2B1A12;
  font-size: clamp(1.2rem, 7.6cqw, 2.2rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: 0;
  overflow-wrap: anywhere;
  align-self: end;
}

.product-bento--catalog .product-card .product-card-title,
.product-bento--more .product-card .product-card-title {
  font-size: clamp(1rem, 5.8cqw, 1.7rem);
  line-height: 1.06;
  overflow-wrap: normal;
  white-space: nowrap;
  word-break: keep-all;
}

.product-title-model {
  color: #E93516;
  font-family: Outfit, Arial, Helvetica, sans-serif;
  font-weight: 900;
}

.product-card .product-title-model {
  white-space: nowrap;
}

.product-title-text {
  color: #2B1A12;
  font-weight: 900;
}

.product-card .product-title-text {
  display: inline-block;
  margin-left: 0.38em;
  font-size: clamp(0.72rem, 3.1cqw, 0.92rem);
  line-height: 1.12;
  vertical-align: baseline;
  white-space: nowrap;
  word-break: keep-all;
}

.product-title-nowrap {
  white-space: nowrap;
}

.product-card-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: clamp(142px, 42cqw, 208px);
  height: clamp(42px, 10cqw, 54px);
  margin-top: clamp(10px, 3.2cqw, 14px);
  border: 1px solid var(--color-primary);
  border-radius: 4px;
  color: var(--color-primary);
  background: transparent;
  font-size: clamp(0.95rem, 4.6cqw, 1.24rem);
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  transform-origin: left center;
  transition: background-color 0.2s ease, color 0.2s ease;
  box-shadow: none;
}

.product-card:hover .product-card-cta,
.product-card-cta:hover,
.product-card-link:focus-visible .product-card-cta {
  width: clamp(142px, 42cqw, 208px);
  transform: none;
  border-color: var(--color-primary);
  background: var(--color-primary);
  color: #fff;
  box-shadow: none;
}

.product-card-cta span {
  font-size: 1.18em;
  transform: none;
  transition: none;
}

.product-card:hover .product-card-cta span,
.product-card-cta:hover span,
.product-card-link:focus-visible .product-card-cta span {
  transform: none;
}

.product-card-divider {
  display: block;
  width: 100%;
  margin: clamp(13px, 3.8cqw, 20px) 0 clamp(10px, 3cqw, 14px);
  border-top: 1px dashed rgba(190, 140, 100, 0.35);
}

.product-empty-state {
  grid-column: 1 / -1;
  min-height: 220px;
  display: grid;
  place-items: center;
  color: rgba(43, 26, 18, 0.55);
  font-size: 1rem;
  font-weight: 700;
  border: 1px dashed rgba(190, 140, 100, 0.32);
  border-radius: 18px;
  background: rgba(255, 248, 241, 0.58);
}

.product-card-desc,
.product-bento--catalog .product-card-body p,
.product-bento--more .product-card-body p {
  min-height: 0;
  margin: 0;
  color: #241914;
  font-size: clamp(0.8rem, 3.6cqw, 1.06rem);
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: 0;
  text-align: left;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-bento--catalog .product-card-tags,
.product-bento--catalog .product-card-meta,
.product-bento--more .product-card-tags,
.product-bento--more .product-card-meta {
  display: none;
}

.product-more-action {
  display: flex;
  justify-content: center;
  margin: clamp(28px, 4vw, 46px) 0 0;
}

.product-more-action[hidden],
.product-more-panel[hidden],
.product-more-pill[hidden] {
  display: none !important;
}

.product-more-pill {
  min-width: 176px;
  min-height: 52px;
  padding: 0 32px;
  border-radius: 999px;
  border: 1.5px solid rgba(217, 35, 46, 0.24);
  background: #fff;
  color: #d9232e;
  font-weight: 850;
  font-size: 1rem;
  box-shadow: 0 16px 38px rgba(80, 45, 20, 0.1);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.product-more-pill:hover {
  transform: translateY(-2px);
  color: #fff;
  background: linear-gradient(135deg, #EF4A54 0%, #D9232E 58%, #B81822 100%);
  box-shadow: 0 18px 42px rgba(217, 35, 46, 0.22);
}

.product-more-panel {
  padding-top: clamp(42px, 6vw, 74px);
}

.product-more-panel .section-header {
  margin-bottom: 28px;
}

.products-all-summary {
  margin: clamp(12px, 2vw, 20px) 0 clamp(18px, 2.4vw, 26px);
  color: #6b6f75;
  font-size: 0.94rem;
  text-align: center;
}

.product-pager-wrap {
  display: flex;
  justify-content: center;
  margin-top: clamp(28px, 4vw, 46px);
}

.product-pager {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.product-pager__nav,
.product-pager__page {
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(217, 35, 46, 0.18);
  background: #fff;
  color: #333;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.product-pager__nav:hover:not(:disabled),
.product-pager__page:hover:not(.product-pager__page--active) {
  color: #d9232e;
  border-color: rgba(217, 35, 46, 0.5);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(217, 35, 46, 0.12);
}

.product-pager__nav:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.product-pager__page--active {
  color: #fff;
  background: linear-gradient(135deg, #EF4A54 0%, #D9232E 58%, #B81822 100%);
  border-color: transparent;
  box-shadow: 0 10px 24px rgba(217, 35, 46, 0.28);
  cursor: default;
}

.product-pager__ellipsis {
  min-width: 24px;
  text-align: center;
  color: #999;
}

@media (max-width: 1180px) {
  .product-bento.product-bento--catalog,
  .product-bento.product-bento--more {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .product-bento.product-bento--catalog,
  .product-bento.product-bento--more {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  body[data-page="products"] .site-header .logo-image--young,
  body[data-page="products-all"] .site-header .logo-image--young,
  body[data-page="products-child"] .site-header .logo-image--young,
  body[data-page="products-adult"] .site-header .logo-image--young,
  body[data-page="product-detail"] .site-header .logo-image--young {
    max-width: 172px;
  }

  .product-bento.product-bento--catalog,
  .product-bento.product-bento--more {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .product-bento--catalog .product-card,
  .product-bento--more .product-card {
    max-width: 420px;
    margin: 0 auto;
  }
}

/* ============================================
   首页 - 品牌视频（Hero 下方独立一屏，铺满导航栏下方）
   ============================================ */
.section--home-video {
  /* 顶部让开固定导航栏，视频占据剩余一个视口高度 */
  padding: 0;
  padding-top: var(--header-h, 72px);
  background: #000;
  box-sizing: border-box;
  min-height: 100vh;
  display: flex;
}

/* 无视频记录时整块隐藏：作者样式的 display:flex 会压过 [hidden] 的 UA 样式，需显式声明 */
.section--home-video[hidden] {
  display: none;
}

.home-video-wrap {
  position: relative;
  width: 100%;
  flex: 1;
  height: calc(100dvh - var(--header-h, 72px));
  margin: 0;
  /* 取消四周圆角，整屏铺满 */
  border-radius: 0;
  overflow: hidden;
  isolation: isolate;
  box-shadow: none;
  background: #000;
}

.home-video {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 0;
  /* 全屏铺满：与首屏轮播视频一致，按比例裁切填满整屏，无黑边 */
  object-fit: cover;
  object-position: center;
  background: #000;
  outline: none;
}

/* 多视频轮播：与首屏 Hero 一致的淡入切换 */
.home-video-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
  pointer-events: none;
}

.home-video-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.home-video-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 5;
}

.home-video-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.home-video-dot:hover {
  background: rgba(255, 255, 255, 0.8);
}

.home-video-dot.active {
  background: #ffffff;
  transform: scale(1.2);
}

/* 品牌视频播放/暂停按钮（默认隐藏，仅移动端显示） */
.home-video-toggle {
  position: absolute;
  right: 16px;
  bottom: 14px;
  z-index: 6;
  width: 46px;
  height: 46px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.2s ease, transform 0.2s ease;
}

.home-video-toggle:hover {
  background: rgba(0, 0, 0, 0.6);
}

.home-video-toggle:active {
  transform: scale(0.94);
}

.home-video-toggle svg {
  width: 22px;
  height: 22px;
  display: block;
}

/* 播放中显示暂停图标，暂停时显示播放图标 */
.home-video-toggle .home-video-toggle__icon--pause { display: block; }
.home-video-toggle .home-video-toggle__icon--play { display: none; }
.home-video-toggle.is-paused .home-video-toggle__icon--pause { display: none; }
.home-video-toggle.is-paused .home-video-toggle__icon--play { display: block; }

/* 移动端：品牌视频改为按 16:9 等比铺满宽度、高度自动，
   完整显示整个画面（不裁切）。去掉黑底与上下留白，
   让视频紧贴上下内容，不再出现上下黑色区域。 */
@media (max-width: 768px) {
  .section--home-video {
    min-height: 0;
    padding: 0;
    background: var(--color-bg-alt, #F5F7FA);
  }

  .home-video-wrap {
    height: auto;
    flex: none;
    aspect-ratio: 16 / 9;
    background: var(--color-bg-alt, #F5F7FA);
  }

  .home-video {
    object-fit: contain;
    background: #000;
  }

  .home-video-dots {
    bottom: 12px;
  }

  .home-video-dot {
    width: 8px;
    height: 8px;
  }

  /* 移动端显示播放/暂停按钮 */
  .home-video-toggle {
    display: flex;
  }
}

/* ---------- 研发实力页面新增样式 ---------- */

/* 专利模块统计 */
.home-section-stats--patents {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 560px;
  margin: clamp(10px, 1.4vh, 16px) auto clamp(20px, 2.8vh, 28px);
}

/* 专利卡片 */
.patent-card {
  padding: 20px;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.patent-card img {
  width: 100%;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.patent-card h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-text-main);
  margin-bottom: 4px;
}

.patent-card ul {
  margin: 0;
  padding: 0 0 0 20px;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.patent-card li {
  margin-bottom: 6px;
}

.patent-card li:last-child {
  margin-bottom: 0;
}

/* 合作专家网格 */
.collab-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.collab-card {
  padding: 28px 24px;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border-top: 3px solid var(--color-primary);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.collab-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.collab-badge {
  display: inline-block;
  padding: 4px 12px;
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
}

.collab-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text-main);
  margin-bottom: 10px;
  line-height: 1.4;
}

.collab-card p {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin: 0;
}

/* 医院合作 logo 网格 */
.hospital-logos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 1080px;
  margin: 0 auto;
}

.hospital-logos-grid--inspections {
  grid-template-columns: repeat(2, 1fr);
  max-width: 1080px;
}

.hospital-logo-item {
  display: flex;
  flex-direction: column;
  align-items: center;    /* 垂直居中 */
  justify-content: center;/* 可选：水平居中 */
  gap: 12px;
  height: 100%;
  min-height: 160px;
  padding: 20px;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.hospital-logo-item img {
  width: 100%;
  max-width: 180px;
  max-height: 120px;
  height: auto;
  object-fit: contain;
}

/* 同济医院、上海儿童医学中心 logo 撑满父容器 90% 并居中 */
.hospital-logo-item img[src*="logo-tongji-hospital"],
.hospital-logo-item img[src*="logo-scmc"] {
  width: 100%;
  max-width: none;
  max-height: 120px;
  margin: 0 auto;
  display: block;
}

/* 保利、PLA logo 撑满父容器宽度并居中 */
.hospital-logo-item img[src*="logo-baoli"],
.hospital-logo-item img[src*="logo-pla"] {
  width: 100%;
  max-width: none;
  max-height: 120px;
  margin: auto;
  display: block;
  object-fit: contain;
}

/* 中国检验认证集团、谱尼测试 logo 放大，撑满卡片宽度 */
.hospital-logo-item img[src*="inspection-cti"] {
  max-width: 260px;
  max-height: 170px;
}

.hospital-logo-item img[src*="inspection-cai"],
.hospital-logo-item img[src*="inspection-fy"] {
  max-width: 380px;
  max-height: 170px;
}

.hospital-logo-item span {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  text-align: center;
  font-weight: 500;
}

/* 响应式 */
@media (max-width: 1024px) {
  .hospital-logos-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 720px;
  }
}

@media (max-width: 768px) {
  .home-section-stats--patents {
    grid-template-columns: 1fr;
    max-width: 280px;
  }

  .collab-grid {
    grid-template-columns: 1fr;
  }

  .hospital-logos-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .hospital-logo-item {
    padding: 16px;
  }
}

/* ---- Research Modal (PDF / external link) ---- */
.research-modal-overlay {
  padding: clamp(6px, 1.4vw, 16px);
  background: rgba(230, 232, 235, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.research-modal {
  max-width: min(1200px, 98vw);
  width: 100%;
  height: 96vh;
  max-height: 96vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #f2ede4;
}

.research-modal .modal-header {
  padding: 16px 24px;
  gap: 16px;
  background: #f2ede4;
}

.research-modal__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: #13283d;
  line-height: 1.4;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.research-modal__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.research-modal__open {
  color: #d9232e;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 6px;
  transition: background 0.15s ease;
}

.research-modal__open:hover {
  background: rgba(217, 35, 46, 0.08);
  text-decoration: none;
}

.research-modal__body {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  overflow: hidden;
  background: #f2ede4;
}

.research-modal__frame {
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 0;
  background: #fff;
}

.research-modal__frame[hidden] {
  display: none;
}

.research-modal__pdf {
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  overflow-y: auto;
  padding: 20px 20px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  background: #f2ede4;
  scroll-behavior: smooth;
}

.research-modal__pdf[hidden] {
  display: none;
}

.research-modal__pdf-page {
  display: block;
  background: #fff;
  box-shadow: 0 6px 18px rgba(20, 42, 70, 0.14);
  max-width: 100%;
  height: auto;
}

.research-modal__pdf-loading {
  padding: 40px 20px;
  color: #6a7a8b;
  font-size: 0.95rem;
}

.research-modal__status {
  font-size: 0.82rem;
  color: #6a7a8b;
  margin-right: 4px;
  white-space: nowrap;
}
.research-modal__status:empty {
  display: none;
}

.research-modal__fallback {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 32px 24px;
  text-align: center;
  color: #516274;
  min-height: 40vh;
}

.research-modal__fallback[hidden] {
  display: none;
}

.research-modal__fallback p {
  font-size: 0.95rem;
  max-width: 520px;
  line-height: 1.6;
}

.research-modal__fallback-link {
  min-width: 200px;
}

body.is-modal-open {
  overflow: hidden;
}

@media (max-width: 620px) {
  .research-modal .modal-header {
    flex-direction: column;
    align-items: flex-start;
    padding: 14px 18px;
  }

  .research-modal__title {
    white-space: normal;
    font-size: 0.98rem;
  }

  .research-modal__frame {
    min-height: 0;
    height: 100%;
  }
}
