/* ============================================
   首页 — 电脑端整页滚动（一屏一栏目）
   ============================================ */

/* 首页轮播图：从固定 Header 底部边缘开始显示，顶部不被导航栏遮挡 */
body[data-page="home"] .home-snap--hero {
  padding-top: var(--header-h);
  box-sizing: border-box;
}

/* Hero 下移到 Header 下方后，去掉原先为躲避 Header 而加的顶部内边距，让文案在轮播区内居中 */
body[data-page="home"] .home-snap--hero .hero-content {
  padding-top: 0;
}

@media (min-width: 1024px) {
  :root {
    --home-snap-bottom: 96px;
  }

  html.home-fullpage-scroll {
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
  }

  body.home-fullpage {
    overflow-x: hidden;
  }

  body.home-fullpage .home-snap,
  body.home-fullpage .future-mission,
  body.home-fullpage .section {
    min-height: 100vh;
    min-height: 100dvh;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    box-sizing: border-box;
    position: relative;
  }

  /* 页脚：保持原有内容高度，作为末段吸附点避免被弹回上一屏 */
  body.home-fullpage .site-footer {
    scroll-snap-align: start;
    scroll-snap-stop: normal;
    scroll-margin-top: 0;
  }

  /* 公司动态：末屏吸附后允许继续滚入页脚 */
  body.home-fullpage .section--home-news {
    scroll-snap-stop: normal;
    justify-content: flex-start;
    padding: calc(var(--header-h) + 6px) 0 max(8px, calc(var(--home-snap-bottom) - 76px));
    overflow: hidden;
  }

  body.home-fullpage.theme-classic2 .section--home-news {
    padding: calc(var(--c2-header-h, 76px) + 6px) 0 max(8px, calc(var(--home-snap-bottom) - 76px));
  }

  body.home-fullpage.theme-future .section--home-news {
    padding: 16px 0 max(8px, calc(var(--home-snap-bottom) - 76px));
  }

  body.home-fullpage .section--home-news > .container {
    flex: 1;
    min-height: 0;
    width: min(1200px, 92vw);
    margin: 0 auto;
    max-height: none !important;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: clamp(6px, 0.8vh, 10px);
    align-items: stretch;
    overflow: hidden;
  }

  body.home-fullpage .section--home-news .section-header {
    margin-bottom: 0;
  }

  body.home-fullpage .section--home-news .section-cta,
  body.home-fullpage .section--home-news [style*="margin-top"] {
    flex: 0 0 auto;
    flex-shrink: 0;
    margin-top: auto !important;
    margin-bottom: auto !important;
    padding: 0;
    text-align: center;
    align-self: center;
  }

  /* Hero Banner 满铺到视口最顶部（左上角与导航栏左上角重合，顶到 0,0）：
     去掉包裹层为避让导航栏而加的顶部内边距，导航栏不透明浮于其上方、遮挡图片顶部一条。
     图片使用 cover 等比铺满整个首屏，避免宽屏两侧出现背景空白。 */
  body.home-fullpage .home-snap--hero {
    padding-top: 0;
  }

  body.home-fullpage .home-snap--hero .hero {
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    max-height: none;
    background: #f2f2f0;
  }

  /* 桌面端 Hero 图片统一 cover：保持原始比例并铺满首屏，裁切从画面中心均匀发生。
     js/main.js 的 applyHeroAspect 同样设置 cover，避免内联样式覆盖此规则。 */
  body.home-fullpage .home-snap--hero .hero-slide img,
  body.home-fullpage .home-snap--hero .hero-slide-media {
    object-fit: cover;
    object-position: center center;
  }

  /* 品牌视频屏：视频顶到视口顶部（与导航栏顶部重合），铺满整屏，无内边距。
     导航栏在该屏透明浮于视频上方，使视频顶部字母完整可见、不被裁切。
     双类选择器 .section.section--home-video 提高特异性，
     压过下方通用 body.home-fullpage .section 的 padding/justify-content。 */
  body.home-fullpage .section.section--home-video {
    padding: 0;
    justify-content: flex-start;
    min-height: 100vh;
    min-height: 100dvh;
  }

  body.home-fullpage .section--home-video .home-video-wrap {
    height: 100vh;
    height: 100dvh;
  }

  /* 视频屏激活时导航栏透明，浮在视频上方 */
  body.home-fullpage.on-home-video .site-header {
    background: transparent !important;
    box-shadow: none;
    border-bottom-color: transparent;
  }

  /* 内容区垂直居中 */
  body.home-fullpage .section,
  body.home-fullpage .future-mission {
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
  }

  body.home-fullpage .section {
    padding: calc(var(--header-h) + 12px) 0 var(--home-snap-bottom);
  }

  body.home-fullpage.theme-classic2 .section {
    padding-top: calc(var(--c2-header-h, 76px) + 16px);
  }

  body.home-fullpage.theme-future .section,
  body.home-fullpage.theme-future .future-mission {
    padding: 32px 0 var(--home-snap-bottom);
  }

  body.home-fullpage .section > .container,
  body.home-fullpage .future-mission > .container {
    width: min(1200px, 92vw);
    margin: 0 auto;
    max-height: calc(100dvh - var(--header-h) - var(--home-snap-bottom) - 40px);
    overflow: visible;
  }

  body.home-fullpage.theme-classic2 .section > .container {
    max-height: calc(100dvh - var(--c2-header-h, 76px) - var(--home-snap-bottom) - 40px);
  }

  body.home-fullpage.theme-future .section > .container,
  body.home-fullpage.theme-future .future-mission > .container {
    max-height: calc(100dvh - var(--home-snap-bottom) - 64px);
  }

  /* 标题区紧凑 */
  body.home-fullpage .section-header {
    margin-bottom: clamp(16px, 2.5vh, 36px);
  }

  body.home-fullpage .section-title {
    font-size: clamp(1.45rem, 2.6vw, 2.15rem);
    margin-bottom: 10px;
  }

  body.home-fullpage .section-desc {
    font-size: clamp(0.9rem, 1.05vw, 1rem);
    line-height: 1.65;
  }

  /* 关于我们 / 科学循证：减少上下留白，放大内容区 */
  body.home-fullpage .section:has(.brand-intro),
  body.home-fullpage .section:has(.science-grid) {
    justify-content: flex-start;
    padding-top: calc(var(--header-h) + 6px);
    padding-bottom: calc(var(--home-snap-bottom) - 32px);
  }

  body.home-fullpage.theme-classic2 .section:has(.brand-intro),
  body.home-fullpage.theme-classic2 .section:has(.science-grid) {
    padding-top: calc(var(--c2-header-h, 76px) + 8px);
  }

  body.home-fullpage.theme-future .section:has(.brand-intro),
  body.home-fullpage.theme-future .section:has(.science-grid) {
    padding-top: 24px;
  }

  body.home-fullpage .section:has(.brand-intro) > .container {
    max-height: calc(100dvh - var(--header-h) - var(--home-snap-bottom) - 8px);
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* 关于我们：容器不裁切，让按钮永远可见 */
    overflow: visible;
  }

  body.home-fullpage .section:has(.science-grid) > .container,
  body.home-fullpage .section--home-science > .container {
    max-height: calc(100dvh - var(--header-h) - var(--home-snap-bottom) - 8px);
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: clamp(6px, 0.8vh, 10px);
    height: 100%;
    min-height: 0;
    overflow: visible;
  }

  body.home-fullpage.theme-classic2 .section:has(.brand-intro) > .container {
    max-height: calc(100dvh - var(--c2-header-h, 76px) - var(--home-snap-bottom) - 8px);
  }

  body.home-fullpage.theme-classic2 .section:has(.science-grid) > .container,
  body.home-fullpage.theme-classic2 .section--home-science > .container {
    max-height: calc(100dvh - var(--c2-header-h, 76px) - var(--home-snap-bottom) - 8px);
  }

  body.home-fullpage.theme-future .section:has(.brand-intro) > .container {
    max-height: calc(100dvh - var(--home-snap-bottom) - 32px);
  }

  body.home-fullpage.theme-future .section:has(.science-grid) > .container,
  body.home-fullpage.theme-future .section--home-science > .container {
    max-height: calc(100dvh - var(--home-snap-bottom) - 32px);
  }

  body.home-fullpage .section:has(.brand-intro) .brand-intro {
    width: 100%;
    gap: clamp(28px, 4.5vw, 52px);
    align-items: center;
  }

  body.home-fullpage .section:has(.brand-intro) .brand-intro-text .section-title {
    font-size: clamp(1.7rem, 3.1vw, 2.4rem);
    margin-bottom: 12px;
  }

  body.home-fullpage .section:has(.brand-intro) .brand-intro-text .section-desc {
    font-size: clamp(0.95rem, 1.15vw, 1.06rem);
    line-height: 1.72;
  }

  body.home-fullpage .section:has(.brand-intro) .brand-intro-visual img {
    max-height: min(50vh, 440px);
    aspect-ratio: 4/3;
    width: 100%;
    object-fit: cover;
  }

  body.home-fullpage .section:has(.brand-intro) .brand-pillars {
    margin-top: clamp(10px, 1.2vh, 16px);
    gap: 10px;
  }

  body.home-fullpage .section--home-about .home-section-stats--about {
    margin-top: clamp(8px, 1.2vh, 14px);
    margin-bottom: clamp(2px, 0.4vh, 6px);
  }

  body.home-fullpage .section--home-products .home-section-stats--products {
    margin-top: clamp(2px, 0.4vh, 6px);
    margin-bottom: 0;
  }

  body.home-fullpage .section--home-science .home-section-stats--science {
    margin-top: clamp(8px, 1.2vh, 14px);
    margin-bottom: clamp(6px, 1vh, 12px);
  }

  body.home-fullpage .section:has(.brand-intro) .pillar-card {
    padding: 14px 14px;
  }

  body.home-fullpage .section:has(.brand-intro) .pillar-icon {
    width: 52px;
    height: 52px;
    margin-bottom: 10px;
  }

  body.home-fullpage .section:has(.brand-intro) .btn-primary {
    margin-top: clamp(12px, 1.8vh, 20px) !important;
    align-self: flex-start;
    position: relative;
    z-index: 3;
  }

  body.home-fullpage .section:has(.science-grid) .section-header {
    margin-bottom: 0;
  }

  body.home-fullpage .section:has(.science-grid) .science-grid {
    flex: 1 1 auto;
    min-height: 0;
    height: auto;
    gap: clamp(14px, 2vw, 20px);
    align-items: start;
  }

  body.home-fullpage .section:has(.science-grid) .patent-showcase {
    padding: clamp(16px, 2vh, 22px);
    height: auto;
    display: flex;
    flex-direction: column;
  }

  body.home-fullpage .section:has(.science-grid) .patent-carousel {
    flex: 0 0 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    margin: 12px 0 8px;
  }

  /* 轮播模式下 viewport 只是箭头的定位参照，让它按内容取高，
     避免在受限高度的全屏列里被 flex 压扁（flex: 1 1 auto 会允许收缩）。 */
  body.home-fullpage .section:has(.science-grid) .patent-carousel__viewport {
    flex: 0 0 auto;
    min-height: 0;
  }

  body.home-fullpage .section:has(.science-grid) .patent-carousel__track {
    flex: 0 0 auto;
    height: auto;
    min-height: 0;
    align-items: start;
  }

  body.home-fullpage .section:has(.science-grid) .patent-carousel__slide {
    height: auto;
    min-height: 0;
    display: flex;
    align-items: flex-start;
  }

  body.home-fullpage .section:has(.science-grid) .patent-carousel__slide img {
    width: 100%;
    height: auto;
    max-height: 100%;
    margin: 0 auto;
    object-fit: contain;
  }

  body.home-fullpage .section:has(.science-grid) .research-list {
    max-height: none;
    min-height: 0;
    height: auto;
    gap: clamp(10px, 1.4vh, 14px);
    /* 让卡片的边框永远画完整；container 已有 overflow: hidden 兜底 */
    overflow: visible;
  }

  body.home-fullpage .section:has(.science-grid) .research-card {
    grid-template-columns: min(100px, 12vw) 1fr;
    gap: 14px;
    padding: clamp(10px, 1.4vh, 14px);
    flex: 1;
    min-height: 0;
  }

  body.home-fullpage .section:has(.science-grid) .research-card img {
    width: 100%;
    height: 100%;
    max-height: min(13vh, 110px);
    object-fit: cover;
  }

  body.home-fullpage .section--home-science .section-cta,
  body.home-fullpage .section:has(.science-grid) .section-cta,
  body.home-fullpage .section:has(.science-grid) [style*="margin-top:40px"] {
    flex: 0 0 auto;
    flex-shrink: 0;
    /* 按钮下移，靠近专利卡片底部 */
    margin-top: auto !important;
    margin-bottom: 0 !important;
    padding: 0;
    text-align: center;
    align-self: center;
    position: relative;
    z-index: 3;
  }

  /* 产品家族：网格撑满中间区域，消除底部留白 */
  body.home-fullpage .section--home-products {
    --home-product-col-gap: clamp(12px, 1.4vh, 16px);
    --home-product-row-gap: clamp(11px, 1.44vh, 18px);
    --home-product-card-w: calc((min(1200px, 92vw) - 2 * var(--home-product-col-gap)) / 3);
    /* 经典版全屏首页单行卡片高度基准（900px 视口 ≈ 224px） */
    --home-product-card-h: clamp(200px, 24.9vh, 224px);
    justify-content: flex-start;
    padding: calc(var(--header-h) + 6px) 0 max(8px, calc(var(--home-snap-bottom) - 76px));
    overflow: hidden;
  }

  body.home-fullpage.theme-classic2 .section--home-products {
    padding: calc(var(--c2-header-h, 76px) + 6px) 0 max(8px, calc(var(--home-snap-bottom) - 76px));
  }

  body.home-fullpage.theme-future .section--home-products {
    padding: 16px 0 max(8px, calc(var(--home-snap-bottom) - 76px));
  }

  body.home-fullpage .section--home-products > .container {
    flex: 1;
    min-height: 0;
    width: min(1200px, 92vw);
    margin: 0 auto;
    max-height: none !important;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: clamp(10px, 1.2vh, 16px);
    align-items: stretch;
    overflow: hidden;
  }

  body.home-fullpage .section--home-products .section-header {
    margin-bottom: 0;
  }

  body.home-fullpage .section--home-products .section-header .section-title {
    margin-bottom: 4px;
    font-size: clamp(1.38rem, 2.3vw, 1.95rem);
  }

  body.home-fullpage .section--home-products .section-header .section-desc {
    line-height: 1.5;
    font-size: clamp(0.86rem, 0.98vw, 0.94rem);
  }

  body.home-fullpage .section--home-products .section-cta,
  body.home-fullpage .section--home-products [style*="margin-top:40px"] {
    flex: 0 0 auto;
    margin-top: auto !important;
    margin-bottom: auto !important;
    padding: 0;
    text-align: center;
    align-self: center;
  }

  /* 产品卡片：左图右文 */
  body.home-fullpage .section--home-products .product-card {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap;
    align-items: stretch;
    min-height: 0 !important;
    height: 100%;
    overflow: hidden;
  }

  body.home-fullpage .section--home-products .product-card.is-filtered-out {
    display: none !important;
  }

  body.home-fullpage .section--home-products .product-card-img,
  body.home-fullpage .section--home-products .product-card:nth-child(1) .product-card-img,
  body.home-fullpage .section--home-products .product-card:nth-child(2) .product-card-img,
  body.home-fullpage .section--home-products .product-card:nth-child(n) .product-card-img {
    flex: 0 0 46%;
    width: 46%;
    max-width: 46%;
    min-width: 0;
    min-height: 0 !important;
    max-height: none !important;
    height: 100%;
    align-self: stretch;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(6px, 1vh, 11px);
    background: #ffffff;
    border-right: none;
    border-radius: 0;
  }

  body.home-fullpage .section--home-products .product-card-img img {
    max-height: 92%;
    max-width: 96%;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 8px 18px rgba(0, 60, 120, 0.14));
  }

  body.home-fullpage .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;
    overflow: hidden;
    padding: clamp(8px, 1vh, 11px) clamp(10px, 1.2vh, 14px) clamp(6px, 0.8vh, 10px) !important;
  }

  body.home-fullpage .section--home-products .product-card-body h3 {
    font-size: clamp(0.84rem, 0.98vw, 0.94rem);
    line-height: 1.35;
    margin-top: auto;
    margin-bottom: 2px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--color-text);
  }

  body.home-fullpage .section--home-products .product-card-body p {
    font-size: clamp(0.74rem, 0.88vw, 0.82rem);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--color-text-muted);
  }

  body.home-fullpage .section--home-products .product-card-tags {
    margin-bottom: 0;
    flex-shrink: 0;
  }

  body.home-fullpage .section--home-products .tag {
    font-size: 0.62rem;
    padding: 2px 7px;
  }

  body.home-fullpage .section--home-products .product-card-meta {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    font-size: 0.68rem;
    margin-top: auto;
    padding: 6px 0 0;
    border-top: none;
    flex-shrink: 0;
  }

  /* 经典企业版：3×2 网格撑满可用高度 */
  body.home-fullpage:not(.theme-classic2):not(.theme-future) .section--home-products .product-bento {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
    column-gap: clamp(12px, 1.4vh, 16px);
    row-gap: clamp(11px, 1.44vh, 18px);
    height: 100%;
    min-height: 0;
    align-self: stretch;
    align-content: stretch;
  }

  body.home-fullpage:not(.theme-classic2):not(.theme-future) .section--home-products .product-card,
  body.home-fullpage:not(.theme-classic2):not(.theme-future) .section--home-products .product-card:nth-child(n) {
    grid-column: auto !important;
  }

  /* 经典版2 / 科技版：横条撑满中间行 */
  body.home-fullpage .section--home-products .c2-product-strip,
  body.home-fullpage .section--home-products .future-product-strip {
    height: 100%;
    min-height: 0;
    align-self: stretch;
    display: flex;
    flex-direction: column;
  }

  body.home-fullpage .section--home-products .c2-product-strip__viewport {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
  }

  body.home-fullpage .section--home-products .c2-product-strip__track,
  body.home-fullpage .section--home-products .future-product-strip__track {
    flex: 1;
    min-height: 0;
    display: flex;
    align-items: stretch;
  }

  body.home-fullpage .section--home-products .product-bento--home {
    height: 100%;
    align-items: stretch;
    gap: var(--home-product-col-gap);
  }

  body.home-fullpage .section--home-products .product-bento--home .product-card,
  body.home-fullpage .section--home-products .product-bento--home .product-card:nth-child(n) {
    flex: 0 0 var(--home-product-card-w) !important;
    width: var(--home-product-card-w) !important;
    height: 100%;
    min-height: 0 !important;
  }

  /* 经典版2 / 科技版轮播：筛选 / 轨道 / 提示分行排列，避免绝对定位叠压 */
  body.home-fullpage.theme-classic2 .section--home-products .c2-product-strip {
    position: relative;
    display: grid !important;
    grid-template-rows: auto minmax(0, 1fr) auto;
    row-gap: clamp(8px, 1vh, 14px);
    align-content: stretch;
    min-height: 0;
  }

  body.home-fullpage.theme-classic2 .section--home-products .c2-product-strip__filters {
    position: static;
    grid-row: 1;
    z-index: auto;
    margin: 0;
    padding: 0;
    flex-shrink: 0;
  }

  body.home-fullpage.theme-classic2 .section--home-products .c2-product-strip__viewport {
    grid-row: 2;
    min-height: 0;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  body.home-fullpage.theme-future .section--home-products .future-product-strip {
    position: relative;
    display: grid !important;
    grid-template-rows: auto minmax(0, 1fr) auto;
    row-gap: clamp(14px, 1.6vh, 22px);
    align-content: stretch;
    justify-items: stretch;
    min-height: 0;
    margin-top: clamp(14px, 2.2vh, 28px);
    flex: 1 1 auto;
    max-height: none;
  }

  body.home-fullpage.theme-future .section--home-products .future-product-strip__filters {
    position: static;
    grid-row: 1;
    z-index: auto;
    margin: 0 0 clamp(4px, 0.6vh, 8px);
    padding: 0;
    flex-shrink: 0;
  }

  body.home-fullpage.theme-future .section--home-products .future-product-strip__viewport {
    grid-row: 2;
    min-height: 0;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-top: clamp(8px, 1.2vh, 14px);
  }

  body.home-fullpage.theme-classic2 .section--home-products .c2-product-strip__track,
  body.home-fullpage.theme-future .section--home-products .future-product-strip__track {
    flex: 0 0 auto !important;
    min-height: 0;
    height: var(--home-product-card-h) !important;
    max-height: var(--home-product-card-h) !important;
    align-items: stretch;
    align-self: center;
    width: 100%;
    box-sizing: border-box;
    padding-block: 0 !important;
    overflow-x: auto;
    overflow-y: hidden;
  }

  body.home-fullpage.theme-classic2 .section--home-products .c2-product-strip__hint {
    position: static;
    grid-row: 3;
    margin: 0;
    padding-top: 2px;
    flex-shrink: 0;
  }

  /* 经典版2 产品区：上部分行距加大、文案单行、轮播下移 */
  body.home-fullpage.theme-classic2 .section--home-products > .container {
    gap: clamp(14px, 1.8vh, 22px);
  }

  body.home-fullpage.theme-classic2 .section--home-products .section-header .section-label {
    margin-bottom: clamp(14px, 1.8vh, 20px);
  }

  body.home-fullpage.theme-classic2 .section--home-products .section-header .section-title {
    margin-bottom: clamp(12px, 1.6vh, 18px);
    white-space: nowrap;
  }

  body.home-fullpage.theme-classic2 .section--home-products .section-header .section-desc {
    max-width: none;
    white-space: nowrap;
    line-height: 1.55;
    margin-bottom: clamp(10px, 1.4vh, 16px);
  }

  body.home-fullpage.theme-classic2 .section--home-products .home-section-stats--products {
    margin-top: clamp(10px, 1.4vh, 16px);
    margin-bottom: clamp(10px, 1.4vh, 16px);
    gap: clamp(14px, 1.8vh, 20px);
  }

  body.home-fullpage.theme-classic2 .section--home-products .home-section-stats__value,
  body.home-fullpage.theme-classic2 .section--home-products .home-section-stats__label {
    white-space: nowrap;
  }

  body.home-fullpage.theme-classic2 .section--home-products .home-section-stats__label {
    margin-top: clamp(8px, 1vh, 12px);
  }

  body.home-fullpage.theme-classic2 .section--home-products .c2-product-strip {
    margin-top: clamp(14px, 2.2vh, 28px);
    row-gap: clamp(14px, 1.6vh, 22px);
    flex: 1 1 auto;
    max-height: none;
  }

  body.home-fullpage.theme-classic2 .section--home-products .c2-product-strip__filters {
    margin-bottom: clamp(4px, 0.6vh, 8px);
  }

  body.home-fullpage.theme-classic2 .section--home-products .c2-product-strip__viewport {
    margin-top: clamp(8px, 1.2vh, 14px);
  }

  body.home-fullpage.theme-classic2 .section--home-products .section-cta {
    margin-top: clamp(12px, 1.6vh, 20px) !important;
    margin-bottom: 0 !important;
  }

  body.home-fullpage.theme-future .section--home-products .future-product-strip__hint {
    position: static;
    grid-row: 3;
    margin: 0;
    padding-top: 2px;
    flex-shrink: 0;
  }

  /* 科技版 产品区：对齐经典版2行距与布局 */
  body.home-fullpage.theme-future .section--home-products > .container {
    gap: clamp(14px, 1.8vh, 22px);
  }

  body.home-fullpage.theme-future .section--home-products .section-header .section-label {
    margin-bottom: clamp(14px, 1.8vh, 20px);
  }

  body.home-fullpage.theme-future .section--home-products .section-header .section-title {
    margin-bottom: clamp(12px, 1.6vh, 18px);
    white-space: nowrap;
  }

  body.home-fullpage.theme-future .section--home-products .section-header .section-desc {
    max-width: none;
    white-space: nowrap;
    line-height: 1.55;
    margin-bottom: clamp(10px, 1.4vh, 16px);
  }

  body.home-fullpage.theme-future .section--home-products .home-section-stats--products {
    margin-top: clamp(10px, 1.4vh, 16px);
    margin-bottom: clamp(10px, 1.4vh, 16px);
    gap: clamp(14px, 1.8vh, 20px);
  }

  body.home-fullpage.theme-future .section--home-products .home-section-stats__value,
  body.home-fullpage.theme-future .section--home-products .home-section-stats__label {
    white-space: nowrap;
  }

  body.home-fullpage.theme-future .section--home-products .home-section-stats__label {
    margin-top: clamp(8px, 1vh, 12px);
  }

  body.home-fullpage.theme-future .section--home-products .section-cta {
    margin-top: clamp(12px, 1.6vh, 20px) !important;
    margin-bottom: 0 !important;
  }

  body.home-fullpage.theme-classic2 .section--home-products .product-bento--home,
  body.home-fullpage.theme-future .section--home-products .product-bento--home {
    display: grid !important;
    grid-auto-flow: column;
    grid-auto-columns: max-content;
    grid-auto-rows: minmax(0, 1fr) !important;
    align-items: stretch;
    align-content: stretch;
    flex: 0 0 auto !important;
    height: 100% !important;
    max-height: 100% !important;
    min-height: 0 !important;
    align-self: stretch !important;
  }

  body.home-fullpage.theme-classic2 .section--home-products .product-bento--home .product-card,
  body.home-fullpage.theme-classic2 .section--home-products .product-bento--home .product-card:nth-child(n),
  body.home-fullpage.theme-future .section--home-products .product-bento--home .product-card,
  body.home-fullpage.theme-future .section--home-products .product-bento--home .product-card:nth-child(n) {
    height: 100% !important;
    max-height: 100% !important;
    min-height: 0 !important;
    align-self: stretch !important;
    overflow: hidden !important;
  }

  body.home-fullpage.theme-classic2 .section--home-products .product-bento--home .product-card-img,
  body.home-fullpage.theme-classic2 .section--home-products .product-bento--home .product-card:nth-child(n) .product-card-img,
  body.home-fullpage.theme-future .section--home-products .product-bento--home .product-card-img,
  body.home-fullpage.theme-future .section--home-products .product-bento--home .product-card:nth-child(n) .product-card-img {
    flex: 0 0 46% !important;
    width: 46% !important;
    max-width: 46% !important;
    height: 100% !important;
    min-height: 0 !important;
    min-width: 0 !important;
    overflow: hidden;
  }

  body.home-fullpage.theme-classic2 .section--home-products .product-bento--home .product-card-img img,
  body.home-fullpage.theme-future .section--home-products .product-bento--home .product-card-img img {
    display: block;
    max-height: 92% !important;
    max-width: 96% !important;
    width: auto !important;
    height: auto !important;
    margin: 0 auto;
    object-fit: contain !important;
  }

  /* 产品区限定高度：经典网格与轮播条共用 flex 分配，保证单行卡片与经典版同高 */
  body.home-fullpage .section--home-products .product-bento,
  body.home-fullpage .section--home-products .c2-product-strip,
  body.home-fullpage .section--home-products .future-product-strip {
    flex: 0 1 80%;
    min-height: 0;
    height: 100%;
    max-height: 80%;
    align-self: stretch;
  }

  body.home-fullpage.theme-future .section--home-products .product-card-img {
    background: linear-gradient(145deg, rgba(224, 247, 250, 0.95) 0%, rgba(178, 235, 242, 0.75) 100%);
    border-right-color: rgba(8, 145, 178, 0.14);
  }

  /* 科学循证（通用兜底，:has 规则优先） */
  body.home-fullpage .science-grid {
    gap: 14px;
    align-items: stretch;
  }

  body.home-fullpage .patent-showcase {
    padding: 16px;
  }

  body.home-fullpage .patent-carousel__slide img {
    max-height: min(18vh, 130px);
    width: 100%;
    margin: 0 auto;
    object-fit: contain;
  }

  body.home-fullpage .research-list {
    gap: 10px;
    max-height: min(42vh, 320px);
    overflow: hidden;
  }

  body.home-fullpage .research-card {
    grid-template-columns: 88px 1fr;
    gap: 12px;
    padding: 12px;
  }

  body.home-fullpage .research-card img {
    width: 88px;
    height: 108px;
  }

  body.home-fullpage .research-card h4 {
    font-size: 0.92rem;
  }

  body.home-fullpage .research-card .abstract {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  /* 公司动态：左图右卡同高，高度约为此前 2 倍，底部 CTA 仍保留 */
  body.home-fullpage .section--home-news .news-featured {
    flex: 0 1 auto;
    min-height: 0;
    max-height: min(80vh, 536px);
    width: 100%;
    grid-template-columns: 0.85fr 1fr;
    gap: clamp(12px, 1.4vh, 16px);
    margin-bottom: 0;
    align-self: center;
    overflow: visible;
    align-items: stretch;
  }

  body.home-fullpage .section--home-news .news-featured-main {
    align-self: start;
    min-height: 0 !important;
    max-height: none;
  }

  body.home-fullpage .section--home-news .news-featured-main__img {
    flex: 0 0 auto;
    min-height: 0;
  }

  body.home-fullpage .section--home-news .news-featured-main__img img {
    width: 100%;
    height: auto;
    min-height: 0;
    display: block;
    background: #ffffff;
  }

  body.home-fullpage .section--home-news .news-featured-main__body {
    flex: 0 0 auto;
    padding: clamp(10px, 1.2vh, 16px) clamp(16px, 1.8vh, 20px);
  }

  body.home-fullpage .section--home-news .news-featured-main__body h3 {
    font-size: clamp(0.95rem, 1.1vw, 1.15rem) !important;
    margin-bottom: 4px !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  body.home-fullpage .section--home-news .news-featured-side {
    min-height: 0;
    max-height: none;
    gap: clamp(6px, 0.8vh, 8px);
    overflow: visible;
  }

  body.home-fullpage .section--home-news .news-mini-card {
    flex: 1 1 0;
    min-height: 0;
    padding: clamp(8px, 1vh, 11px);
    overflow: hidden;
  }

  body.home-fullpage .section--home-news .news-mini-card .news-date {
    font-size: 0.66rem;
    margin-bottom: 2px;
  }

  body.home-fullpage .section--home-news .news-mini-card h3 {
    font-size: clamp(0.8rem, 0.92vw, 0.9rem) !important;
    margin-bottom: 2px !important;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  body.home-fullpage .section--home-news .news-mini-card p {
    font-size: clamp(0.7rem, 0.8vw, 0.76rem) !important;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  /* 经典版2 公司动态：CTA 在下方空白区垂直居中 */
  body.home-fullpage.theme-classic2 .section--home-news .news-featured {
    flex: 0 1 auto;
    height: auto;
  }

  body.home-fullpage.theme-classic2 .section--home-news .section-cta {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    min-height: 0;
  }

  body.home-fullpage .hero-scroll {
    bottom: calc(var(--home-snap-bottom) + 16px);
  }

  /* Future 核心理念区 */
  body.home-fullpage .future-mission__header {
    margin-bottom: clamp(16px, 2vh, 28px);
  }

  body.home-fullpage .future-mission__grid {
    gap: 12px;
  }

  body.home-fullpage .future-mission__card {
    padding: 18px 16px;
  }

  body.home-fullpage.theme-future .hero--future {
    min-height: 100vh;
    min-height: 100dvh;
    max-height: none;
  }

  body.home-fullpage.theme-future .hero-content--future {
    min-height: calc(100dvh - 80px);
    padding: 40px 0 72px;
  }

  body.home-fullpage.theme-classic2 .c2-product-strip__track {
    scroll-snap-type: x proximity;
  }

  /* 右侧圆点导航 */
  .home-snap-nav {
    position: fixed;
    right: max(18px, env(safe-area-inset-right));
    top: 50%;
    transform: translateY(-50%);
    z-index: 1050;
    pointer-events: none;
    animation: homeSnapNavIn 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.35s both;
  }

  @keyframes homeSnapNavIn {
    from {
      opacity: 0;
      transform: translateY(-50%) translateX(12px);
    }
    to {
      opacity: 1;
      transform: translateY(-50%) translateX(0);
    }
  }

  .home-snap-nav__list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
    padding: 12px 10px;
    pointer-events: auto;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(0, 120, 193, 0.14);
    border-radius: 100px;
    box-shadow: 0 6px 28px rgba(0, 60, 120, 0.12);
  }

  .home-snap-nav__item {
    display: flex;
    justify-content: center;
  }

  .home-snap-nav__dot {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
    border-radius: 50%;
    transition: transform 0.25s ease;
  }

  .home-snap-nav__dot:hover {
    transform: scale(1.06);
  }

  .home-snap-nav__marker {
    display: block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(0, 120, 193, 0.28);
    transition:
      width 0.25s ease,
      height 0.25s ease,
      background 0.25s ease,
      box-shadow 0.25s ease;
  }

  .home-snap-nav__dot:hover .home-snap-nav__marker,
  .home-snap-nav__dot.is-active .home-snap-nav__marker {
    width: 10px;
    height: 10px;
    background: var(--color-primary, #0078C1);
  }

  .home-snap-nav__dot.is-active .home-snap-nav__marker {
    box-shadow: 0 0 0 4px rgba(0, 120, 193, 0.18);
  }

  .home-snap-nav__label {
    position: absolute;
    right: calc(100% + 12px);
    top: 50%;
    transform: translateY(-50%) translateX(8px);
    padding: 6px 12px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(0, 120, 193, 0.12);
    box-shadow: 0 4px 16px rgba(0, 60, 120, 0.1);
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--color-primary, #0078C1);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition:
      opacity 0.22s ease,
      transform 0.22s ease;
  }

  .home-snap-nav__dot:hover .home-snap-nav__label,
  .home-snap-nav__dot.is-active .home-snap-nav__label,
  .home-snap-nav__dot:focus-visible .home-snap-nav__label {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
  }

  .home-snap-nav__dot:focus-visible {
    outline: 2px solid var(--color-primary, #0078C1);
    outline-offset: 2px;
  }

  body.theme-future.home-fullpage .home-snap-nav__list {
    background: rgba(10, 18, 36, 0.86);
    border-color: rgba(56, 189, 248, 0.22);
    box-shadow: 0 6px 28px rgba(0, 0, 0, 0.35), 0 0 24px rgba(56, 189, 248, 0.08);
  }

  body.theme-future.home-fullpage .home-snap-nav__marker {
    background: rgba(56, 189, 248, 0.35);
  }

  body.theme-future.home-fullpage .home-snap-nav__dot:hover .home-snap-nav__marker,
  body.theme-future.home-fullpage .home-snap-nav__dot.is-active .home-snap-nav__marker {
    background: #38bdf8;
    box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.22);
  }

  body.theme-future.home-fullpage .home-snap-nav__label {
    background: rgba(10, 18, 36, 0.94);
    border-color: rgba(56, 189, 248, 0.22);
    color: #7dd3fc;
  }

  body.theme-future.home-fullpage .home-snap-nav__dot:focus-visible {
    outline-color: #38bdf8;
  }
}

@media (min-width: 1024px) and (prefers-reduced-motion: reduce) {
  html.home-fullpage-scroll {
    scroll-snap-type: none;
    scroll-behavior: auto;
  }
}

/* 首页内容布局：用明确的内容尺寸代替百分比高度与自动外边距。
   仅作用于信谊红首页；内页和其他布局继续使用各自的样式。 */
body.theme-classic3[data-page="home"] .section--home-news .news-mini-card {
  flex: 1 0 auto;
  min-height: 84px;
}

@media (min-width: 1024px) {
  body.theme-classic3.home-fullpage .section:not(.section--home-video) {
    --home-content-gap: clamp(16px, 2.4vh, 28px);
    justify-content: center;
    padding: calc(var(--header-h) + clamp(24px, 4vh, 48px)) 0 clamp(24px, 4vh, 48px);
    overflow: visible;
  }

  body.theme-classic3.home-fullpage .section:not(.section--home-video) > .container {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: var(--home-content-gap);
    width: min(1280px, calc(100% - 144px));
    height: auto;
    min-height: 0;
    max-height: none !important;
    overflow: visible;
  }

  body.theme-classic3.home-fullpage .section .section-header {
    flex: 0 0 auto;
    margin: 0;
  }

  body.theme-classic3.home-fullpage .section .section-label {
    margin-bottom: clamp(10px, 1.5vh, 16px);
  }

  body.theme-classic3.home-fullpage .section .section-title {
    margin-bottom: 10px;
    font-size: clamp(1.65rem, 2.3vw, 2.25rem);
    line-height: 1.3;
  }

  body.theme-classic3.home-fullpage .section .section-desc {
    line-height: 1.65;
    font-size: clamp(0.9rem, 1vw, 1rem);
  }

  body.theme-classic3.home-fullpage .section .section-cta {
    flex: 0 0 auto;
    align-self: center;
    margin: 0 !important;
    padding: 0;
  }

  body.theme-classic3.home-fullpage .section--home-products #home-products.product-bento {
    flex: 0 0 auto;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: none;
    grid-auto-rows: 196px;
    gap: clamp(14px, 1.8vh, 22px);
    height: auto;
    max-height: none;
  }

  body.theme-classic3.home-fullpage .section--home-products #home-products .product-card-img {
    flex-basis: 34%;
    width: 34%;
    max-width: 34%;
    padding: 16px 12px;
  }

  body.theme-classic3.home-fullpage .section--home-products #home-products .product-card-img img {
    width: 100%;
    height: 100%;
    max-width: 120px;
    max-height: 152px;
    object-fit: contain;
  }

  body.theme-classic3.home-fullpage .section--home-products #home-products .product-card-body {
    justify-content: center;
    gap: 7px;
    padding: 18px 18px 18px 4px !important;
  }

  body.theme-classic3.home-fullpage .section--home-products #home-products .product-card-body h3 {
    flex-shrink: 0;
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
    text-wrap: pretty;
  }

  body.theme-classic3.home-fullpage .section--home-products #home-products .product-card-body p {
    flex-shrink: 0;
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
  }

  body.theme-classic3.home-fullpage .section--home-products #home-products .product-card-meta {
    width: auto;
    align-self: flex-start;
    justify-content: flex-start;
    margin: 5px 0 0;
    padding: 0;
  }

  body.theme-classic3.home-fullpage .section--home-science .science-grid {
    flex: 0 0 auto;
    height: auto;
    max-height: none;
  }

  body.theme-classic3.home-fullpage .section--home-science .patent-showcase {
    height: auto;
    padding: clamp(20px, 2.8vh, 32px);
  }

  body.theme-classic3.home-fullpage .section--home-science .patent-carousel {
    flex: 0 0 auto;
    height: auto;
    margin: 8px 0 0;
  }

  body.theme-classic3.home-fullpage .section--home-science .patent-carousel__track {
    align-items: center;
  }

  body.theme-classic3.home-fullpage .section--home-science .patent-carousel__slide {
    display: flex;
    align-items: center;
    justify-content: center;
    height: clamp(280px, 45vh, 540px);
  }

  body.theme-classic3.home-fullpage .section--home-science .patent-carousel__slide img {
    width: 100% !important;
    height: 100%;
    max-height: 100%;
    object-fit: contain;
    box-shadow: none;
    border-radius: 0;
  }

  body.theme-classic3.home-fullpage .section--home-news .news-featured {
    flex: 0 0 auto;
    height: auto;
    max-height: none;
  }
}

/* 平板和手机采用自然内容高度，不继承桌面端的全屏限制。 */
@media (max-width: 1023px) {
  body.theme-classic3[data-page="home"] .section:not(.section--home-video) {
    min-height: 0;
    padding: clamp(40px, 7vw, 64px) 0;
  }

  body.theme-classic3[data-page="home"] .section:not(.section--home-video) > .container {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

  body.theme-classic3[data-page="home"] .section .section-header,
  body.theme-classic3[data-page="home"] .section .section-cta {
    margin: 0;
  }

  body.theme-classic3[data-page="home"] .section--home-products #home-products.product-bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  body.theme-classic3[data-page="home"] .section--home-products #home-products .product-card:nth-child(n) {
    grid-column: auto;
  }

  body.theme-classic3[data-page="home"] .section--home-products #home-products .product-card {
    display: flex;
    flex-direction: row;
    height: 188px;
    min-width: 0;
  }

  body.theme-classic3[data-page="home"] .section--home-products #home-products .product-card-img {
    flex: 0 0 34%;
    width: 34%;
    height: 100%;
    min-height: 0;
    padding: 14px 10px;
  }

  body.theme-classic3[data-page="home"] .section--home-products #home-products .product-card-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    padding: 14px 14px 14px 0;
  }

  body.theme-classic3[data-page="home"] .section--home-products #home-products .product-card-body h3 {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    text-wrap: pretty;
  }

  body.theme-classic3[data-page="home"] .section--home-products #home-products .product-card-body p {
    margin: 0;
    font-size: 12px;
    line-height: 1.5;
  }

  body.theme-classic3[data-page="home"] .section--home-products #home-products .product-card-meta {
    width: auto;
    align-self: flex-start;
    justify-content: flex-start;
    margin: 5px 0 0;
    padding: 0;
  }

  body.theme-classic3[data-page="home"] .section--home-products #home-products .product-card-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  body.theme-classic3[data-page="home"] .section--home-science .patent-carousel__slide img {
    width: 100% !important;
    height: clamp(300px, 48vw, 420px);
    object-fit: contain;
    box-shadow: none;
  }
}

@media (max-width: 480px) {
  body.theme-classic3[data-page="home"] .section--home-products #home-products.product-bento {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 1024px) and (max-width: 1199px) {
  body.theme-classic3.home-fullpage .section--home-products #home-products.product-bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 196px;
  }
}

/* 最新资讯按内容收尾，避免末屏为了占满视口产生大段留白。 */
body.theme-classic3[data-page="home"] .section--home-news .news-mini-card {
  gap: 16px;
  padding: 10px;
  min-height: 0;
}

body.theme-classic3[data-page="home"] .section--home-news .news-mini-card__thumb {
  width: 128px;
  height: auto;
  aspect-ratio: auto;
  overflow: visible;
  border-radius: 3px;
}

body.theme-classic3[data-page="home"] .section--home-news .news-mini-card__thumb img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
}

body.theme-classic3[data-page="home"] .section--home-news .news-mini-card h3 {
  font-size: 15px !important;
  line-height: 1.55;
  margin: 4px 0 0 !important;
  text-wrap: pretty;
}

body.theme-classic3[data-page="home"] .section--home-news .news-mini-card .news-date {
  font-size: 12px;
  margin: 0;
}

body.theme-classic3[data-page="home"] .section--home-news .news-mini-card__text p {
  margin-top: 6px;
}

@media (min-width: 1024px) {
  body.theme-classic3.home-fullpage .section.section--home-news {
    min-height: 0;
    justify-content: flex-start;
    padding: calc(var(--header-h) + 28px) 0 40px;
  }

  body.theme-classic3.home-fullpage .section--home-news #news-featured {
    grid-template-columns: 1fr 1.15fr;
    gap: 20px;
    align-items: stretch;
  }

  body.theme-classic3.home-fullpage .section--home-news .news-featured-side {
    gap: 10px;
  }

  body.theme-classic3.home-fullpage .section--home-news .news-featured-main {
    align-self: stretch;
  }

  body.theme-classic3.home-fullpage .section--home-news .news-featured-main__body {
    flex: 1;
    justify-content: center;
    padding: 20px 24px;
  }
}

@media (max-width: 767px) {
  body.theme-classic3[data-page="home"] .section--home-news .news-mini-card {
    gap: 12px;
  }

  body.theme-classic3[data-page="home"] .section--home-news .news-mini-card__thumb {
    width: 112px;
  }

  body.theme-classic3[data-page="home"] .section--home-news .news-mini-card h3 {
    font-size: 14px !important;
  }
}

/* 折叠屏按实际窗口宽度重排；产品列数与整屏滚动模式互相独立。 */
body.theme-classic3[data-page="home"] .section:not(.section--home-video) > .container {
  width: min(1280px, calc(100% - 48px));
  min-width: 0;
}

body.theme-classic3[data-page="home"] .section-title {
  overflow-wrap: anywhere;
  text-wrap: pretty;
}

body.theme-classic3[data-page="home"] .section--home-products #home-products.product-bento {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: none;
  grid-auto-rows: minmax(188px, auto);
  gap: 16px;
}

body.theme-classic3[data-page="home"] .section--home-products #home-products .product-card:nth-child(n) {
  grid-column: auto !important;
  display: flex;
  flex-direction: row;
  min-width: 0;
  min-height: 188px !important;
  height: auto;
}

body.theme-classic3[data-page="home"] .section--home-products #home-products .product-card-img {
  flex: 0 0 34%;
  width: 34%;
  max-width: 34%;
  height: auto;
  min-height: 0 !important;
  align-self: stretch;
  padding: 14px 10px;
}

body.theme-classic3[data-page="home"] .section--home-products #home-products .product-card-img img {
  width: 100%;
  height: auto;
  max-width: 120px;
  max-height: 152px;
  object-fit: contain;
}

body.theme-classic3[data-page="home"] .section--home-products #home-products .product-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  width: auto;
  min-width: 0;
  height: auto;
  padding: 18px 16px 18px 4px !important;
}

body.theme-classic3[data-page="home"] .section--home-products #home-products .product-card-body h3,
body.theme-classic3[data-page="home"] .section--home-products #home-products .product-card-body p {
  flex-shrink: 0;
  margin: 0;
}

body.theme-classic3[data-page="home"] .section--home-products #home-products .product-card-meta {
  width: auto;
  align-self: flex-start;
  justify-content: flex-start;
  margin: 5px 0 0;
}

body.theme-classic3[data-page="home"]:not(.home-fullpage) .section:not(.section--home-video) {
  min-height: 0;
  padding: clamp(32px, 5vw, 64px) 0;
  scroll-margin-top: calc(var(--header-h) + 8px);
}

body.theme-classic3[data-page="home"]:not(.home-fullpage) .section:not(.section--home-video) > .container {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

body.theme-classic3[data-page="home"]:not(.home-fullpage) .section .section-header,
body.theme-classic3[data-page="home"]:not(.home-fullpage) .section .section-cta {
  margin: 0;
}

body.theme-classic3[data-page="home"]:not(.home-fullpage) .section .section-cta {
  align-self: center;
  text-align: center;
}

@media (max-width: 1199px) {
  body.theme-classic3[data-page="home"] .section--home-products #home-products.product-bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.theme-classic3[data-page="home"] .site-header .nav-desktop {
    display: none !important;
  }

  body.theme-classic3[data-page="home"] .site-header .header-inner {
    display: flex;
    width: calc(100% - 32px);
    gap: 12px;
  }

  body.theme-classic3[data-page="home"] .site-header .logo {
    min-width: 0;
  }

  body.theme-classic3[data-page="home"] .site-header .logo-svg--sine {
    height: clamp(34px, 5vw, 48px);
    max-width: min(180px, 48vw);
  }

  body.theme-classic3[data-page="home"] .site-header .menu-toggle {
    display: flex;
  }

  body.theme-classic3[data-page="home"] .site-header .header-tools {
    margin-left: auto;
  }

  body.theme-classic3[data-page="home"] .brand-intro {
    grid-template-columns: 1fr;
  }

  body.theme-classic3[data-page="home"] .section--home-news #news-featured {
    grid-template-columns: 1fr;
    margin-bottom: 0;
  }

  body.theme-classic3[data-page="home"] .section--home-science .science-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 719px) {
  body.theme-classic3[data-page="home"] .section:not(.section--home-video) > .container {
    width: calc(100% - 32px);
  }

  body.theme-classic3[data-page="home"] .section--home-products #home-products.product-bento {
    grid-template-columns: minmax(0, 1fr);
  }

  body.theme-classic3[data-page="home"] .section--home-products #home-products .product-card-body {
    padding: 14px 14px 14px 0 !important;
    gap: 5px;
  }

  body.theme-classic3[data-page="home"] .section--home-news .news-mini-card__thumb {
    width: clamp(88px, 28vw, 112px);
  }

  body.theme-classic3[data-page="home"] .section--home-science .patent-showcase {
    padding: 18px 16px;
  }

  body.theme-classic3[data-page="home"] .section-title {
    font-size: clamp(24px, 5.5vw, 30px);
    line-height: 1.4;
  }
}

.home-video-status { position:absolute; bottom:72px; left:50%; transform:translateX(-50%); padding:8px 16px; border-radius:4px; background:rgba(0,0,0,.7); color:#fff; font-size:14px; z-index:3; }

/* 产品家族按内容高度排版；桌面整屏模式单独保持一屏一栏目。 */
body.theme-classic3[data-page="home"] .section.section--home-products {
  min-height: 0;
  height: auto;
  justify-content: flex-start;
  padding: 32px 0;
}

body.theme-classic3[data-page="home"] .section.section--home-products > .container {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 24px;
  height: auto;
}

body.theme-classic3[data-page="home"] .section.section--home-products .section-header,
body.theme-classic3[data-page="home"] .section.section--home-products .section-cta {
  margin: 0 !important;
}

body.theme-classic3[data-page="home"] .section.section--home-products .section-cta {
  align-self: center;
  padding: 0;
}

body.theme-classic3[data-page="home"]:not(.home-fullpage) .section.section--home-products {
  padding: 32px 0;
}

body.theme-classic3[data-page="home"]:not(.home-fullpage) .section.section--home-products > .container {
  gap: 24px;
}

@media (min-width: 1200px) and (min-height: 700px) {
  body.theme-classic3.home-fullpage[data-page="home"] .section.section--home-products {
    min-height: 100vh;
    min-height: 100dvh;
    justify-content: center;
    padding: calc(var(--header-h) + 24px) 0 32px;
  }

  body.theme-classic3.home-fullpage[data-page="home"] .section.section--home-products > .container {
    gap: clamp(28px, 4vh, 40px);
  }

  body.theme-classic3.home-fullpage[data-page="home"] .section.section--home-products .section-cta {
    margin-top: 8px !important;
  }

  /* 相邻科研区也保持独立整屏，统一圆点导航及滚轮切屏行为。 */
  body.theme-classic3.home-fullpage[data-page="home"] .section.section--home-science {
    min-height: 100vh;
    min-height: 100dvh;
    height: auto;
    justify-content: center;
    padding: calc(var(--header-h) + 24px) 0 32px;
  }
}

/* 首页包装图按可见主体适配；图片原文件和后台主图入口保持一致。 */
body.theme-classic3[data-page="home"] .section--home-products #home-products .product-card-img {
  background: transparent;
  overflow: hidden;
}
body.theme-classic3[data-page="home"] .section--home-products #home-products .home-product-visual {
  display: block;
  width: 100%;
  max-width: 128px;
  height: 132px;
  overflow: hidden;
  mix-blend-mode: multiply;
  filter: none;
}
@media (max-width: 719px) {
  body.theme-classic3[data-page="home"] .section--home-products #home-products .home-product-visual {
    height: 120px;
  }
}

/* 品牌视频在首页内全屏，退出后保留页面和播放进度。 */
.home-video-fullscreen { position:absolute; right:74px; bottom:14px; z-index:6; height:46px; padding:0 16px; border:0; border-radius:24px; color:#fff; background:rgba(0,0,0,.55); font-size:14px; cursor:pointer; }
.home-video-fullscreen:focus-visible { outline:2px solid #fff; outline-offset:3px; }
.home-video-wrap:fullscreen, .home-video-wrap:-webkit-full-screen { width:100vw!important; height:100dvh!important; margin:0!important; transform:none!important; background:#000; }
.home-video-wrap:fullscreen .home-video, .home-video-wrap:-webkit-full-screen .home-video, .home-video-wrap.is-expanded .home-video { object-fit:contain; }
.home-video-wrap.is-expanded { position:fixed!important; inset:0!important; width:100vw!important; height:100dvh!important; margin:0!important; transform:none!important; z-index:4000; background:#000; }
body.home-video-expanded { overflow:hidden; }
