/* ==========================================================================
   上海宝吉生物技术有限公司 · 移动端适配层
   responsive.css —— 在 main.css / pages.css 之后加载，专门覆盖手机与触屏形态

   断点划分
     ≤ 1200px  小笔记本 / 横屏平板
     ≤ 1024px  平板竖屏
     ≤  900px  大屏手机横屏 / 平板（启用抽屉导航与底部操作栏）
     ≤  768px  主流手机（375 ~ 430px 逻辑宽度）
     ≤  480px  小屏手机（iPhone SE 等）
     ≤  380px  超小屏兜底
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. 触屏基础：字号、点击反馈、输入框防缩放
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
  }

  /* iOS 在 input 字号 < 16px 时会自动放大页面，这里统一提到 16px */
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
  select,
  textarea {
    font-size: 16px;
  }

  /* 所有可横向滑动的容器：滚动更顺、不把页面一起带走 */
  .subnav,
  .prose table,
  .admin-table,
  .admin-tabs,
  .table-wrap {
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
  }

  /* 触屏没有 hover，取消鼠标态的位移与抬起，避免「点一下就卡住」 */
  .btn,
  .icon-btn,
  .page-btn,
  .pn-item,
  .search-item,
  .dropdown-list a {
    transition-duration: .12s;
  }
}

/* 触摸设备：只保留颜色/描边反馈，去掉所有 translateY 位移 */
@media (hover: none) {
  .list-card:hover,
  .product-card:hover,
  .service-card:hover,
  .solution-item:hover,
  .why-card:hover,
  .page-card:hover,
  .news-resource:hover,
  .contact-card:hover,
  .flow-step:hover .flow-num {
    transform: none;
  }
  .product-card:hover .product-media img,
  .list-card:hover .list-card-media img {
    transform: none;
    box-shadow: 0 8px 20px rgba(11, 38, 66, .09);
  }
  .btn:hover,
  .btn-primary:hover {
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   2. 全站骨架：容器宽度、段落节奏、头部高度基准
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  :root { --hdr-h: 70px; }
}

@media (max-width: 768px) {
  :root { --hdr-h: 62px; }

  .container { width: calc(100% - 32px); }
  .section { padding: 44px 0; }
  .section-head { margin-bottom: 26px; }
  .section-head.with-link,
  .section-head.compact.with-link { flex-direction: column; align-items: flex-start; gap: 10px; }
  .section-head.compact.with-link h2 { font-size: 22px; }
  .section-head h2 { font-size: 23px; line-height: 1.35; }
  .section-head p { margin-top: 12px; font-size: 14.5px; line-height: 1.75; }
  .kicker { font-size: 11px; letter-spacing: .14em; margin-bottom: 12px; }

  /* 中文标题按语义断行，避免末行只剩一个字 */
  .section-head h2,
  .why-head h2,
  .cta-inner h2,
  .hero-copy h1,
  .page-hero h1,
  .article-hero h1,
  .cta-mini-inner h2,
  .form-head h2,
  .news-resource h3,
  .list-card-body h3,
  .product-body h3 { text-wrap: balance; }

  /* 移动端已有底部「顶部」按钮，隐藏浮动球避免重复 */
  .back-top { display: none; }

  /* 头部：吸顶 + 刘海安全区 */
  .site-header { padding-top: env(safe-area-inset-top, 0px); }
  .header-inner { height: var(--hdr-h); gap: 12px; }
  .brand img { height: 34px; max-width: 190px; object-fit: contain; }
  .header-actions { gap: 8px; }
  .icon-btn { width: 38px; height: 38px; }
  .menu-toggle { width: 38px; height: 38px; padding: 9px; margin-right: -4px; }

  /* 二级导航吸附在头部下方，与头部高度保持一致 */
  .subnav-bar { top: var(--hdr-h); }
  .subnav { gap: 2px; padding-right: 12px; }
  .subnav-item { padding: 13px 13px; font-size: 13.5px; }
  .subnav-item::after { left: 13px; right: 13px; }
}

/* --------------------------------------------------------------------------
   3. 移动端抽屉导航
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .main-nav {
    width: min(86vw, 380px);
    padding: calc(74px + env(safe-area-inset-top, 0px)) 20px calc(30px + env(safe-area-inset-bottom, 0px));
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }
  .main-nav::-webkit-scrollbar { width: 0; }

  .nav-close {
    top: calc(16px + env(safe-area-inset-top, 0px));
    right: 16px;
    width: 38px; height: 38px;
  }

  .nav-item { position: relative; }
  .nav-item > a { padding: 15px 30px 15px 2px; font-size: 16px; }

  /* 子菜单指示箭头（桌面端隐藏） */
  .nav-caret {
    display: block;
    position: absolute; right: 10px; top: 24px;
    width: 7px; height: 7px; margin: 0;
    border-right: 1.5px solid var(--ink-400);
    border-bottom: 1.5px solid var(--ink-400);
    transform: rotate(45deg);
    transition: transform .28s var(--ease), border-color .28s var(--ease);
    pointer-events: none;
  }
  .nav-item.is-active > .nav-caret { border-color: var(--blue-600); }
  .nav-item.is-expanded > .nav-caret { transform: rotate(-135deg); border-color: var(--blue-600); }

  .nav-dropdown { padding: 0 0 10px 2px; }
  /* 触屏点击后 :hover 会滞留，必须强制取消桌面端的居中位移，否则子菜单被推出可视区 */
  .nav-dropdown,
  .nav-item:hover .nav-dropdown,
  .nav-item.is-expanded .nav-dropdown {
    transform: none !important;
    left: auto;
    top: auto;
  }
  .dropdown-list a { padding: 11px 8px; border-radius: 6px; }
  .dd-name { font-size: 15px; }
  .dropdown-list a:hover { background: transparent; }

  .mobile-extra { margin-top: 22px; }
  .mobile-extra .btn { height: 48px; font-size: 15.5px; }
  .mobile-contact { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line-soft); font-size: 13.5px; line-height: 1.9; }
  .mobile-contact strong { color: var(--ink-900); margin-right: 4px; }
  .mobile-contact a { color: var(--blue-600); }
}

/* --------------------------------------------------------------------------
   4. 底部快捷操作栏（仅手机 / 平板）
   -------------------------------------------------------------------------- */
.mobile-bar { display: none; }

@media (max-width: 900px) {
  .mobile-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 88;
    display: grid; grid-template-columns: repeat(4, 1fr);
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: rgba(255, 255, 255, .97);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--line);
    box-shadow: 0 -6px 22px rgba(11, 26, 42, .07);
  }
  .mb-item {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    height: 54px; border: 0; background: none; padding: 0;
    font-size: 11.5px; color: var(--ink-500); letter-spacing: .01em;
    position: relative;
  }
  .mb-item + .mb-item::before {
    content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 1px;
    background: var(--line-soft);
  }
  .mb-item .ico { color: var(--blue-600); }
  .mb-item:active { background: var(--bg-soft); }
  .mb-item.is-primary { color: var(--blue-700); }
  .mb-item.is-primary .ico { color: var(--blue-600); }

  /* 软键盘弹起时收起底栏，避免遮挡输入区域 */
  .mobile-bar { transition: transform .22s var(--ease); }
  body.kb-open .mobile-bar { transform: translateY(105%); }

  /* 给底栏让出空间，页脚不被遮挡 */
  body.has-mobile-bar { padding-bottom: calc(54px + env(safe-area-inset-bottom, 0px)); }
  body.has-mobile-bar .back-top { bottom: calc(68px + env(safe-area-inset-bottom, 0px)); right: 14px; width: 40px; height: 40px; }
}

/* 微信二维码弹层 */
.qr-pop {
  position: fixed; inset: 0; z-index: 210;
  display: flex; align-items: center; justify-content: center;
  background: rgba(4, 16, 29, .6);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  opacity: 0; visibility: hidden; transition: opacity .25s var(--ease), visibility .25s;
}
.qr-pop.is-open { opacity: 1; visibility: visible; }
.qr-pop-card {
  width: 236px; padding: 22px 20px 18px; border-radius: 16px; background: #fff; text-align: center;
  box-shadow: 0 24px 60px rgba(4, 16, 29, .35);
  transform: translateY(10px) scale(.97); transition: transform .28s var(--ease);
}
.qr-pop.is-open .qr-pop-card { transform: none; }
.qr-pop-card img { width: 168px; height: 168px; object-fit: cover; margin: 0 auto 10px; border-radius: 8px; border: 1px solid var(--line); padding: 4px; background: #fff; }
.qr-pop-card strong { display: block; font-size: 14.5px; color: var(--ink-900); }
.qr-pop-card span { display: block; margin-top: 4px; font-size: 12px; color: var(--ink-400); }
.qr-pop-card button { margin-top: 14px; width: 100%; height: 40px; border-radius: 6px; border: 1px solid var(--line); background: #fff; font-size: 13.5px; color: var(--ink-700); }

/* --------------------------------------------------------------------------
   5. 首页 Hero
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .hero { padding: 56px 0 64px; }
  .hero-inner { gap: 16px; }
  .hero-visual { height: 300px; max-width: 400px; }
  .molecule { max-width: 330px; }
}

@media (max-width: 768px) {
  .hero { padding: 40px 0 46px; }
  .hero-copy h1 { font-size: clamp(26px, 7.8vw, 33px); line-height: 1.24; letter-spacing: -.02em; }
  .hero-sub { margin-top: 14px; font-size: 14.5px; line-height: 1.8; }

  .hero-actions { margin-top: 24px; gap: 10px; }
  /* 两个 CTA 各占一行，点击区域更大、文案不换行 */
  .hero-actions .btn { flex: 1 1 100%; height: 48px; font-size: 15px; }

  .hero-points { margin-top: 22px; gap: 9px 16px; }
  .hero-points li { font-size: 12.5px; }

  .hero-visual { height: 230px; margin-top: 10px; }
  .molecule { max-width: 250px; }
  .molecule-caption { font-size: 9.5px; letter-spacing: .1em; bottom: 0; gap: 6px; }
  .orb-1 { width: 300px; height: 300px; top: -120px; left: -100px; }
  .orb-2 { width: 260px; height: 260px; bottom: -140px; }
  .orb-3 { display: none; }
  .hero::after { height: 90px; }
}

/* --------------------------------------------------------------------------
   6. 数据条 / 服务 / 优势 / 流程 / 方案 / 产品
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .statbar-inner { padding: 14px 0; }
  .stat { padding: 12px 0; }
  .stat-num { font-size: 26px; }
  .stat-num em { font-size: 15px; }
  .stat-label { margin-top: 6px; font-size: 12px; }

  .service-card { padding: 22px 20px 20px; }
  .service-top { margin-bottom: 16px; }
  .service-icon { width: 46px; height: 46px; border-radius: 11px; }
  .service-card h3 { font-size: 17px; }
  .service-desc { min-height: 0; font-size: 13px; }
  .service-list { margin: 14px 0 0; padding-top: 12px; }
  /* 服务名允许折行，避免长条目被省略号截断 */
  .service-list li { font-size: 13px; white-space: normal; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

  .why-card { padding: 22px 20px; }
  .why-icon { width: 40px; height: 40px; margin-bottom: 14px; }
  .why-card h3 { font-size: 16px; }
  .why-card p { font-size: 13px; }

  .flow-step { gap: 14px; }
  .flow-num { width: 42px; height: 42px; font-size: 13px; }
  .flow-step h3 { font-size: 15.5px; margin-bottom: 4px; }
  .flow-step p { font-size: 13px; }

  .solution-item { padding: 20px 18px; gap: 14px; }
  .solution-body h3 { font-size: 16px; }
  .solution-body p { font-size: 13px; }
  .solution-arrow { display: none; }

  .product-card { border-radius: 12px; }
  .product-body { padding: 13px 13px 14px; }
  .product-body h3 { font-size: 14px; line-height: 1.45; }
  .product-body p { font-size: 12.5px; }
  .product-more { padding-top: 11px; font-size: 12.5px; }
  .product-card::after { font-size: 20px; top: 10px; right: 11px; }

  .partners { padding: 44px 0 48px; }
  .partner-chip { padding: 10px 18px; font-size: 13px; }
  .partner-track { gap: 10px; animation-duration: 38s; }

  .cta-band { padding: 44px 0; }
  .cta-inner h2 { font-size: 23px; line-height: 1.35; }
  .cta-inner p { font-size: 14px; margin-top: 10px; }
  .cta-actions { gap: 14px; width: 100%; }
  .cta-actions .btn { flex: 1 1 100%; }
  .cta-phone { font-size: 16px; }

  .news-resource { padding: 20px 18px; }
  .news-resource h3 { font-size: 16px; }
}

/* --------------------------------------------------------------------------
   7. 页脚
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .site-footer { padding: 48px 0 0; }
  .footer-main { gap: 26px; padding-bottom: 34px; }
  .footer-logo img { height: 34px; }
  .footer-desc { margin-top: 14px; font-size: 12.5px; }
  .footer-badges { margin-top: 14px; }
  .footer-col h4 { margin-bottom: 12px; font-size: 13.5px; }
  .footer-col ul li { margin-bottom: 8px; }
  .footer-col ul a { font-size: 13px; }
  .footer-contact p { font-size: 13px; margin-bottom: 9px; }
  /* 移动端把联系方式与二维码并列，避免纵向过长 */
  .footer-bottom { padding: 18px 0; }
  .footer-bottom-inner { font-size: 12px; line-height: 1.7; }
}

/* --------------------------------------------------------------------------
   8. 列表页
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .page-hero { padding: 34px 0 38px; }
  .page-hero-inner { margin-top: 18px; gap: 20px; }
  .page-hero h1 { font-size: clamp(24px, 5.6vw, 32px); }
  .page-hero-sub { margin-top: 10px; font-size: 14px; line-height: 1.7; }
  .breadcrumb ol { font-size: 12px; gap: 6px; }
  .section-list { padding: 32px 0 54px; }
}

@media (max-width: 768px) {
  /* 三列在手机上过于局促，768 以下统一单列；600 以下卡片横向排布更省屏 */
  .list-grid, .list-grid.three { grid-template-columns: 1fr; gap: 14px; }
  .list-card-body { padding: 16px 16px 16px; }
  .list-card-body h3 { font-size: 16px; line-height: 1.5; margin-bottom: 6px; }
  .list-card-body p { font-size: 13px; line-height: 1.68; -webkit-line-clamp: 2; }
  .list-card-body .link-arrow { padding-top: 12px; font-size: 12.5px; }
  .list-card::after { font-size: 22px; top: 10px; right: 12px; }

  .pagination { margin-top: 30px; gap: 5px; }
  .page-btn { min-width: 42px; height: 42px; padding: 0 12px; font-size: 13.5px; }

  .section-cta-mini { padding-bottom: 48px; }
  .cta-mini-inner { padding: 24px 20px; gap: 18px; }
  .cta-mini-inner h2 { font-size: 19px; }
  .cta-mini-inner p { font-size: 13px; }
  .cta-mini-inner .btn { width: 100%; }

  .empty-state { padding: 48px 18px; }
  .empty-icon { width: 64px; height: 64px; }
  .empty-state h3 { font-size: 16.5px; }
}

/* 竖屏小卡片：600 以下把列表卡改成「图左文右」，一屏可看更多 */
@media (max-width: 600px) {
  .list-card { flex-direction: row; align-items: stretch; }
  .list-card-media {
    width: 118px; min-width: 118px; height: auto; min-height: 118px;
    border-right: 1px solid var(--line-soft);
  }
  .list-card-media img { max-width: 84%; max-height: 76px; padding: 6px; border-radius: 8px; }
  .list-card-media::after { display: none; }
  .list-badge { left: 8px; top: 8px; font-size: 10px; padding: 3px 7px; }
  .list-card::after { display: none; }
  .list-card-body { padding: 13px 14px; justify-content: center; }
  .list-card-body h3 { font-size: 15px; -webkit-line-clamp: 2; }
  .list-card-body p { -webkit-line-clamp: 2; font-size: 12.5px; }
  .list-card-body .link-arrow { display: none; }
  .list-date { font-size: 11.5px; margin-bottom: 5px; }
}

/* --------------------------------------------------------------------------
   9. 详情页
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .article-hero { padding: 30px 0 34px; }
  .article-hero-inner { margin-top: 18px; }
  .article-hero h1 { font-size: clamp(21px, 5vw, 28px); line-height: 1.4; }
  .article-sub { margin-top: 10px; font-size: 13.5px; line-height: 1.7; }
  .article-meta { margin-top: 16px; gap: 10px 18px; font-size: 12px; }
  .article-type { margin-bottom: 12px; }
  .section-article { padding: 32px 0 48px; }
  .article-layout { gap: 30px; }
}

@media (max-width: 768px) {
  /* 封面 + 订购信息：小屏改为上下排列 */
  .article-head { grid-template-columns: minmax(0, 1fr) !important; gap: 14px; margin-bottom: 24px; }
  .article-head .article-cover { height: 168px; min-height: 168px; }
  .article-head .article-cover img { max-height: 150px; padding: 8px; }

  .order-card { padding: 16px 15px; border-radius: 12px; }
  .order-head h3 { font-size: 16px; }
  .order-row { font-size: 13px; padding: 8px 0; gap: 10px; }
  .order-row dt { width: 66px; flex: none; font-size: 12.5px; }
  .order-row dd { line-height: 1.6; }
  .order-note { font-size: 11.5px; }
  .order-foot { gap: 12px; padding-top: 14px; }
  .order-foot .btn { height: 44px; flex: 1 1 100%; font-size: 14.5px; }
  .order-tel { font-size: 13.5px; }

  .prose { font-size: 15px; line-height: 1.92; }
  .prose h2 { font-size: 19px; padding-left: 11px; border-left-width: 3px; margin: 28px 0 12px; }
  .prose h3 { font-size: 16.5px; gap: 8px; }
  .prose h4 { font-size: 15px; }
  .prose p { margin-bottom: 15px; }
  .prose ul, .prose ol { padding-left: 19px; margin-bottom: 16px; }
  .prose blockquote { padding: 13px 16px; margin: 18px 0; font-size: 14px; }
  .prose img { max-width: 100%; max-height: 300px; margin: 18px auto; padding: 8px; border-radius: 10px; }
  .prose figure { margin: 18px 0; }
  .prose figcaption { font-size: 12px; max-width: 100%; }

  /* 宽表格：外层容器横滑，表格保持 table 布局不出现空列 */
  .table-scroll {
    overflow-x: auto; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain;
    margin: 20px 0;
  }
  .prose .table-scroll table, .prose table, .prose table.data-table {
    display: table; width: 100%; min-width: 100%;
    white-space: normal; font-size: 12.5px; margin: 0;
    border: 1px solid var(--line); border-radius: 8px;
  }
  .prose table th, .prose table td { padding: 9px 11px; white-space: normal; word-break: break-word; }
  .prose table th { background: #f1f7fd; }

  .article-foot { margin-top: 26px; padding-top: 18px; gap: 12px; }
  .article-pn { margin-top: 20px; gap: 10px; }
  .pn-item { padding: 14px 15px; }
  .pn-item strong { font-size: 13px; }

  .article-side { gap: 14px; }
  .side-inquiry { padding: 22px 20px; }
  .side-inquiry h3 { font-size: 17px; }
  .side-box { padding: 18px 16px; }
  .side-qr img { width: 112px; height: 112px; }
  .section-related { padding: 40px 0; }
}

/* --------------------------------------------------------------------------
   10. 单页 / 联系 / 搜索 / 404
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .section-single { padding: 32px 0 54px; }
  .single-side { position: static; }
  .single-nav { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .single-nav::-webkit-scrollbar { display: none; }
  .single-nav a { white-space: nowrap; padding: 9px 14px; font-size: 13.5px; }
  .page-cards { gap: 12px; margin-top: 26px; }
  .page-card { padding: 18px; }

  .section-contact { padding: 32px 0 54px; }
  .contact-layout { gap: 26px; }
  .contact-cards { grid-template-columns: 1fr; gap: 10px; }
  .contact-card { padding: 15px 16px; }
  .contact-card strong { font-size: 14px; }
  .contact-form-wrap { padding: 22px 18px 20px; }
  .form-head h2 { font-size: 20px; }
  .form-head p { font-size: 13px; }
  .field > span { font-size: 13px; margin-bottom: 6px; }
  .field input, .field select, .field textarea { padding: 12px 13px; }
  .field textarea { min-height: 110px; }
  .form-actions { gap: 12px; }
  .form-actions .btn { width: 100%; height: 48px; }
  .form-privacy { font-size: 11.5px; min-width: 0; }
  .map-visual { height: 168px; }
  .map-foot { padding: 13px 16px; }

  .search-page-form { flex-direction: column; gap: 10px; margin-bottom: 22px; }
  .search-page-form input { height: 46px; font-size: 16px; }
  .search-page-form .btn { width: 100%; height: 44px; }
  .search-item { padding: 18px 2px; }
  .search-item:hover { padding-left: 2px; }
  .search-item h3 { font-size: 16px; }

  .error-page { padding: 80px 0 90px; }
  .error-code { font-size: clamp(72px, 26vw, 120px); }
  .error-page h1 { font-size: 21px; }
  .error-page p { font-size: 14px; }
  .error-actions .btn { width: 100%; }
}

@media (max-width: 768px) {
  /* 搜索浮层：手机全屏，键盘弹起也不被裁切 */
  .search-overlay { padding-top: 0; align-items: flex-start; }
  .search-panel {
    width: 100%; min-height: 100%;
    border-radius: 0; padding: calc(24px + env(safe-area-inset-top, 0px)) 18px 24px;
    transform: translateY(-8px);
  }
  .search-panel input { height: 48px; }
  .search-panel form .btn { height: 46px; }
  .search-hints { font-size: 12.5px; gap: 8px 12px; }
  .search-close { top: calc(14px + env(safe-area-inset-top, 0px)); right: 14px; }
}

/* --------------------------------------------------------------------------
   11. 后台管理（登录后的移动端）—— 具体规则见 admin.css 的 Responsive 段
   -------------------------------------------------------------------------- */

/* --------------------------------------------------------------------------
   12. 平板中间态（601 ~ 900）：列表用两列，比单列更省滚动
   -------------------------------------------------------------------------- */
@media (min-width: 601px) and (max-width: 900px) {
  .list-grid, .list-grid.three { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .contact-cards { grid-template-columns: 1fr 1fr; }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 30px; }
  .footer-qr { display: block; }
}

/* --------------------------------------------------------------------------
   13. 手机横屏：压缩纵向留白，保证首屏能看到内容
   -------------------------------------------------------------------------- */
@media (max-width: 900px) and (orientation: landscape) and (max-height: 520px) {
  .hero { padding: 34px 0 38px; }
  .hero-visual { display: none; }
  .hero-copy h1 { font-size: 28px; }
  .hero-actions { margin-top: 18px; }
  .hero-actions .btn { flex: 1 1 46%; height: 44px; }
  .hero-points { margin-top: 16px; }
  .section { padding: 36px 0; }
  .main-nav { padding-top: 60px; }
  .mobile-bar { display: none; }
  body.has-mobile-bar { padding-bottom: 0; }
}

/* --------------------------------------------------------------------------
   14. 安全区与可访问性收尾
   -------------------------------------------------------------------------- */
body.qr-open { overflow: hidden; }

@media (max-width: 900px) {
  /* 底部固定元素统一避开 iPhone 手势条 */
  .back-top { bottom: calc(18px + env(safe-area-inset-bottom, 0px)); }
  body.has-mobile-bar .back-top { bottom: calc(68px + env(safe-area-inset-bottom, 0px)); }

  /* 触摸目标不小于 44px */
  .lang-link { padding: 6px 4px; display: inline-block; }
  .breadcrumb a { display: inline-block; padding: 3px 0; }
}

/* 尊重系统「减少动态效果」设置 */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* 单列产品卡：小屏图片区放大，减少两侧空档 */
@media (max-width: 480px) {
  .product-media { height: 152px; }
  .product-media img { max-width: 54%; max-height: 114px; padding: 9px; }
  .product-card::after { font-size: 20px; top: 11px; right: 13px; }

  .list-card-media { width: 124px; min-width: 124px; }
  .list-card-media img { max-height: 86px; padding: 6px; }

  .cta-inner h2 { font-size: 21px; }
  .why-head h2 { font-size: 22px; }
  .page-hero h1 { font-size: 24px; }
  .article-hero h1 { font-size: 20px; }
  .section-head h2 { font-size: 21px; }

  /* 长英文型号/链接不撑破版面 */
  .prose, .list-card-body h3, .product-body h3, .order-row dd { overflow-wrap: break-word; word-break: break-word; }
}

/* 首页「案例 + 资讯」在手机上的紧凑排布 */
@media (max-width: 900px) {
  .section-insights { padding: 44px 0; }
  .insights-grid { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .case-media { height: 210px; }
  .case-body { padding: 16px 16px 18px; }
  .case-body h3 { font-size: 16px; }
  .news-list a { padding: 13px 0; gap: 12px; }
}
@media (max-width: 600px) {
  .case-media { height: 172px; }
  .case-media img { padding: 10px; }
  .case-body h3 { font-size: 15px; -webkit-line-clamp: 2; }
  .case-body p { font-size: 12.5px; -webkit-line-clamp: 2; }
  .news-list a { grid-template-columns: 62px minmax(0, 1fr); gap: 10px; }
  .news-list time { font-size: 11px; }
  .news-list h3 { font-size: 14px; }
  .news-list p { display: none; }
}

/* 超小屏兜底（320 ~ 380） */
@media (max-width: 380px) {
  .container { width: calc(100% - 24px); }
  .hero-copy h1 { font-size: 24px; }
  .hero-sub { font-size: 13.5px; }
  .stat-num { font-size: 23px; }
  .section { padding: 36px 0; }
  .section-head h2 { font-size: 21px; }
  .btn { padding: 0 18px; font-size: 14px; }
  .list-card-media { width: 100px; min-width: 100px; }
  .order-row dt { width: 60px; font-size: 12px; }
  .subnav-item { padding: 12px 11px; font-size: 13px; }
  .mb-item { font-size: 11px; }
}

/* ==========================================================================
   15. 移动端重排（v2.2）
   --------------------------------------------------------------------------
   上一版手机端只是把桌面「三列 / 四列」压成单列，信息密度和阅读节奏仍按桌面走：
   首页要滚 9900px（约 12 屏），服务、方案、产品各占 1~2 屏，一屏只能看一张卡。
   这一版按手机的真实使用方式重新组织：
     · 同类信息并列（2 列宫格 / 2×2 矩阵），一屏看到 4 张而不是 1 张
     · 关键数据上提（首屏就给信任指标），装饰图让位
     · 次要信息折叠（卡片只留名字与关键字段，详情页承接）
     · 竖向时间轴替代横向四列流程
   目标：首页 9900px → 4600px 上下，一屏一个重点。
   ========================================================================== */
@media (max-width: 768px) {

  /* 全站纵向节奏收紧一档 */
  .section { padding: 34px 0; }
  .section-head { margin-bottom: 20px; }
  .section-head h2 { font-size: 21px; line-height: 1.38; }
  .section-head p { margin-top: 9px; font-size: 13.5px; line-height: 1.7; }
  .kicker { font-size: 10.5px; letter-spacing: .13em; margin-bottom: 9px; }

  /* ---------- 15.1 首屏：一屏讲完「是谁 / 做什么 / 下一步」 ---------- */
  .hero { padding: 26px 0 24px; }
  .hero-copy h1 { font-size: 27px; line-height: 1.34; letter-spacing: -.02em; }
  .hero-sub {
    margin-top: 13px; font-size: 13.6px; line-height: 1.72; max-width: none;
    display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
  }
  /* 两个按钮并排，各占一半，不再一人一行 */
  .hero-actions { margin-top: 19px; gap: 10px; flex-wrap: nowrap; }
  .hero-actions .btn {
    flex: 1 1 0; min-width: 0; height: 46px; padding: 0 8px;
    font-size: 14px; border-radius: 10px; justify-content: center;
  }
  .hero-actions .btn .ico { display: none; }
  .hero-points { margin-top: 15px; gap: 6px 16px; }
  .hero-points li { font-size: 12px; gap: 5px; }
  .hero-points .ico { width: 13px; height: 13px; }

  /* 装饰性蛋白网络图信息量低，手机上换成两条真实指标并排 */
  .hero-visual {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
    height: auto; margin-top: 18px;
  }
  .hero-visual .molecule-card { display: none; }
  .hero-visual .float-card {
    display: block;
    position: static; inset: auto; animation: none; padding: 11px 13px; border-radius: 12px;
    background: rgba(255, 255, 255, .07); border: 1px solid rgba(120, 190, 255, .2);
    box-shadow: none; backdrop-filter: none;
  }
  .hero-visual .float-label { font-size: 10.5px; }
  .hero-visual .float-card strong { font-size: 19px; }
  .hero-visual .float-card small { font-size: 10.5px; }

  /* ---------- 15.2 数据条：4 个数字改 2×2，一眼看全 ---------- */
  .statbar-inner {
    display: grid; grid-template-columns: 1fr 1fr;
    padding: 0; gap: 0;
  }
  .stat { padding: 18px 10px; text-align: left; }
  .stat:nth-child(odd) { border-right: 1px solid rgba(120, 190, 255, .12); }
  .stat:nth-child(-n+2) { border-bottom: 1px solid rgba(120, 190, 255, .12); }
  .stat-divider { display: none; }
  .stat-num { font-size: 24px; }
  .stat-num em { font-size: 13px; margin-left: 2px; }
  .stat-label { margin-top: 5px; font-size: 11.5px; letter-spacing: 0; }

  /* ---------- 15.3 服务：3 列卡变 2×4 宫格，一屏看到全部 ---------- */
  .service-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .service-card {
    padding: 15px 14px 14px; border-radius: 14px;
    display: flex; flex-direction: column; gap: 0;
  }
  .service-top { margin-bottom: 11px; align-items: flex-start; }
  .service-icon { width: 36px; height: 36px; border-radius: 10px; }
  .service-icon .ico { width: 19px; height: 19px; }
  .service-count { font-size: 11px; padding: 2px 7px; }
  .service-count small { font-size: 9.5px; margin-left: 1px; }
  .service-card h3 { font-size: 14.5px; line-height: 1.44; margin-bottom: 0; }
  /* 简介与子项在手机上退到栏目页承载，卡片只保留「入口」语义 */
  .service-desc, .service-list, .service-card .link-arrow { display: none; }
  .service-card::after {
    content: ""; position: absolute; right: 13px; bottom: 13px; width: 6px; height: 6px;
    border-right: 1.5px solid var(--ink-300); border-top: 1.5px solid var(--ink-300);
    transform: rotate(45deg); opacity: .55;
  }
  /* 按下即时反馈，避免「点了没反应」的错觉 */
  .service-card:active { background: #f3f9ff; border-color: rgba(27, 127, 212, .3); }

  /* ---------- 15.4 优势：4 张竖排改 2×2 ---------- */
  .why-head { gap: 12px; }
  .why-head h2 { font-size: 21px; line-height: 1.38; }
  .why-head p { font-size: 13.5px; line-height: 1.68; }
  .why-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .why-card { padding: 16px 14px 15px; border-radius: 14px; }
  .why-icon { width: 34px; height: 34px; border-radius: 9px; margin-bottom: 11px; }
  .why-icon .ico { width: 17px; height: 17px; }
  .why-card h3 { font-size: 14px; line-height: 1.4; margin-bottom: 6px; }
  .why-card p {
    font-size: 12px; line-height: 1.62;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  }

  /* ---------- 15.5 流程：横向四列改 2×2 步骤卡 ---------- */
  .flow { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .flow::before { display: none; }
  .flow-step {
    display: block; position: relative; padding: 15px 14px 14px; text-align: left; gap: 0;
    background: #fff; border: 1px solid var(--line); border-radius: 14px;
  }
  .flow-num {
    position: static; width: auto; height: auto; margin: 0 0 8px;
    background: none; border: 0; display: block;
    font: 600 19px/1 Inter, "Helvetica Neue", Arial, sans-serif;
    color: var(--blue-600); letter-spacing: -.02em; opacity: .85;
  }
  .flow-step h3 { font-size: 14px; line-height: 1.42; margin: 0 0 6px; }
  .flow-step p {
    font-size: 12px; line-height: 1.62;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  }

  /* ---------- 15.6 解决方案：2 列，标题截断两行，摘要退到栏目页 ---------- */
  .solution-list { grid-template-columns: 1fr 1fr; gap: 9px; }
  .solution-item { padding: 13px 13px; border-radius: 12px; gap: 9px; align-items: flex-start; }
  .solution-idx { font-size: 10.5px; padding-top: 2px; flex: none; }
  .solution-body h3 {
    font-size: 13.5px; line-height: 1.44; margin-bottom: 0;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  }
  .solution-body p { display: none; }
  .solution-arrow { display: none; }

  /* ---------- 15.7 试剂产品：4 张竖排改 2 列 ---------- */
  .product-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .product-card { border-radius: 14px; }
  .product-card::after { font-size: 15px; top: 8px; right: 10px; }
  .product-media { height: 108px; }
  .product-media img { max-width: 64%; max-height: 78px; padding: 6px; border-radius: 8px; }
  .product-body { padding: 11px 12px 13px; }
  .product-body h3 {
    font-size: 13.5px; line-height: 1.45;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    min-height: 39px;
  }
  .product-body p, .product-card .product-more { display: none; }

  /* ---------- 15.8 案例与资讯：案例图降高，资讯条目紧凑 ---------- */
  .insights-grid { gap: 26px; }
  .case-media { height: 168px; }
  .case-body { padding: 14px 14px 15px; }
  .case-body h3 { font-size: 15px; line-height: 1.5; }
  .news-list a { padding: 12px 0; }

  /* ---------- 15.9 合作伙伴 / CTA ---------- */
  .partners { padding: 28px 0; }
  .partners-head h2 { font-size: 15px; }
  .partners-head p { font-size: 12px; }
  .partner-chip { font-size: 12.5px; padding: 7px 13px; }
  .cta-band { padding: 36px 0; }
  .cta-inner { gap: 18px; }
  .cta-inner h2 { font-size: 20px; line-height: 1.42; }
  .cta-inner p { font-size: 13.5px; line-height: 1.7; margin-top: 9px; }
  .cta-actions { gap: 10px; }
  .cta-actions .btn { height: 46px; font-size: 14px; width: 100%; justify-content: center; }
  .cta-phone { font-size: 14px; justify-content: center; }

  /* ---------- 15.10 页脚：从 1050px 压到 560px ---------- */
  .site-footer { padding: 0; }
  .footer-main {
    grid-template-columns: 1fr 1fr; gap: 22px 18px; padding: 30px 0 22px;
  }
  .footer-brand { grid-column: 1 / -1; }
  .footer-logo img { height: 30px; }
  .footer-desc {
    margin-top: 12px; font-size: 12.5px; line-height: 1.7;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  }
  .footer-badges { gap: 7px; margin-top: 12px; }
  .footer-badges span { font-size: 10.5px; padding: 4px 9px; }
  .footer-col h4 { font-size: 13px; margin-bottom: 11px; }
  .footer-col ul { gap: 8px; }
  .footer-col li a { font-size: 12.5px; }
  .footer-contact { grid-column: 1 / -1; }
  .footer-contact p { font-size: 12.5px; gap: 7px; margin-bottom: 8px; }
  /* 二维码已在底部固定栏有入口，页脚不再重复占位 */
  .footer-qr { display: none; }
  .footer-bottom { padding: 14px 0 calc(14px + env(safe-area-inset-bottom, 0px)); }
  .footer-bottom-inner { font-size: 11px; gap: 5px; flex-direction: column; text-align: center; }

  /* ---------- 15.11 详情页：图片让位，订购信息一屏内看全 ---------- */
  .article-hero { padding: 14px 0 16px; }
  .article-hero h1 { font-size: 20px; line-height: 1.45; }
  .article-meta { margin-top: 11px; gap: 9px 14px; font-size: 11.5px; }
  .article-meta .ico { width: 13px; height: 13px; }

  .article-head { display: flex; flex-direction: column; gap: 12px; margin-bottom: 6px; }
  .article-head .article-cover {
    width: 100%; max-width: none; height: 112px; min-height: 0; margin: 0; border-radius: 14px;
  }
  .article-head .article-cover img { max-height: 92px; padding: 8px; }

  .order-card { padding: 13px 14px 13px; border-radius: 14px; }
  .order-head h3 { font-size: 14.5px; }
  .order-kicker { font-size: 9.5px; }
  .order-row { padding: 7px 0; }
  .order-row dt { width: 62px; font-size: 11.5px; }
  .order-row dd { font-size: 13px; }
  .order-note { margin-top: 9px; font-size: 11.5px; line-height: 1.6; }
  .order-foot { margin-top: 13px; gap: 10px; }
  .order-foot .btn { height: 42px; font-size: 14px; }
  .order-tel { font-size: 12.5px; }

  /* 正文：手机上以「读得下去」为第一优先 */
  .prose { font-size: 15px; line-height: 1.9; }
  .prose p { margin-bottom: 15px; }
  .prose h2 { font-size: 17.5px; margin: 26px 0 11px; padding-left: 11px; }
  .prose h3 { font-size: 16px; margin: 22px 0 10px; }
  .prose h4 { font-size: 15px; margin: 18px 0 8px; }
  .prose ul, .prose ol { padding-left: 18px; }
  .prose ul li, .prose ol li { margin-bottom: 7px; }
  .prose img { margin: 18px auto; padding: 8px; }
  .prose blockquote { margin: 18px 0; padding: 13px 16px; font-size: 14px; }
  .prose table { font-size: 12.5px; }
  .prose table th, .prose table td { padding: 8px 9px; }

  /* 底部咨询卡 */
  .article-side { margin-top: 26px; gap: 14px; }
  .side-inquiry { padding: 20px 18px; border-radius: 14px; }
  .side-inquiry h3 { font-size: 17px; }

  /* ---------- 15.12 列表页：筛选条横滑 + 卡片密度 ---------- */
  .page-hero { padding: 22px 0 24px; }
  .page-hero h1 { font-size: 22px; line-height: 1.4; }
  .page-hero p { margin-top: 9px; font-size: 13px; line-height: 1.65; }

  .filter-bar {
    flex-wrap: nowrap; overflow-x: auto; gap: 7px; padding-bottom: 4px;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .filter-bar::-webkit-scrollbar { display: none; }
  .filter-chip, .filter-bar a, .filter-bar button, .filter-bar select { flex: none; font-size: 12.5px; }
  .section-list { padding-top: 22px; }
  .list-grid { gap: 11px; }
}

/* 大屏手机（414 ~ 768）：宫格可再宽松一点 */
@media (min-width: 520px) and (max-width: 768px) {
  .service-grid { gap: 12px; }
  .service-card { padding: 18px 16px 16px; }
  .product-media { height: 132px; }
  .product-media img { max-height: 96px; }
  .why-card { padding: 20px 18px 18px; }
}

/* 超小屏（≤ 380）：宫格内文字再收一档，避免两行变三行 */
@media (max-width: 380px) {
  .hero-copy h1 { font-size: 24px; }
  .service-card h3 { font-size: 13.5px; }
  .why-card p { -webkit-line-clamp: 3; font-size: 11.5px; }
  .solution-body h3 { font-size: 13px; }
  .product-body h3 { font-size: 12.5px; }
  .flow-step h3 { font-size: 14px; }
}

/* 打印：隐藏交互层 */
@media print {
  .mobile-bar, .back-top, .search-overlay, .qr-pop, .site-header, .topbar, .subnav-bar { display: none !important; }
}
