/* ============================================================
   复百澳 - Future Biotechnology
   主样式表 - 高端生物医药科技风
   ============================================================ */

:root {
    --primary: #00489d;        /* 主色：深蓝 */
    --primary-light: #1a6bb8;  /* 浅蓝 */
    --primary-dark: #00306a;   /* 深海蓝 */
    --accent: #00a8e8;         /* 强调色：天蓝 */
    --text: #1f2937;
    --text-light: #6b7280;
    --border: #e5e7eb;
    --bg: #ffffff;
    --bg-light: #f8fafc;
    --bg-gray: #f1f5f9;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.05);
    --shadow: 0 4px 12px rgba(10,61,122,.08);
    --shadow-lg: 0 10px 30px rgba(10,61,122,.12);
    --radius: 8px;
    --radius-lg: 12px;
    --transition: all .25s ease;
    --container: 1280px;
}

/* V14.50: 思源黑体（Noto Sans SC）自托管 webfont — 服务器 /fonts/noto-sans-sc/，unicode-range 按需分片加载 */
@import url('/fonts/noto-sans-sc/400.css');
@import url('/fonts/noto-sans-sc/500.css');
@import url('/fonts/noto-sans-sc/600.css');
@import url('/fonts/noto-sans-sc/700.css');

* { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
    font-family: "Noto Sans SC", "Source Han Sans SC", -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-light); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
button { cursor: pointer; font: inherit; }
input, textarea, select { font: inherit; outline: none; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ====== 按钮 ====== */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    padding: 10px 24px; border: 1px solid transparent; border-radius: var(--radius);
    background: var(--primary); color: #fff; font-size: 14px; font-weight: 500;
    cursor: pointer; transition: var(--transition);
}
.btn:hover { background: var(--primary-light); color: #fff; transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-white { background: #fff; color: var(--primary); }
.btn-white:hover { background: var(--bg-light); color: var(--primary-light); }
.btn-lg { padding: 14px 32px; font-size: 15px; }
.btn-sm { padding: 6px 16px; font-size: 13px; }

/* ====== 顶部导航（单行式 C02） ====== */

/* 🔴 V14.59: sticky 不能穿透父元素 —— 这是全站 Header 一直"吸不住"的根因。
   main.js 把 <header class="header"> 注入到 #app-header 这个空 div 里，
   于是 #app-header 的高度就等于 header 自身的 72px。此时只在 .header 上写 position:sticky，
   它最多只能在这 72px 的父盒子里"粘"，父盒子一被滚走就跟着一起滚出视口 → 视觉上等于完全没吸顶。
   sticky 必须提到外层容器上（#app-header 的父级是 body），才能一直粘到页面底部。
   下面 .header 自身的 sticky 予以保留：它对 #app-header 内的场景无副作用（无粘滞余量），
   同时可防御将来某些页面绕过 #app-header 直接书写 header 的情况。 */
#app-header {
    position: sticky;
    top: 0;
    z-index: 999;
}
.header {
    height: 72px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 999;
    /* V14.59: 吸顶前后阴影切换需要过渡，避免"啪"地跳一下 */
    transition: box-shadow .22s ease;
}
/* V14.59: 已吸顶时加深投影 + 补一条分隔线，与下方滚动内容拉开层级。
   .is-stuck 由 main.js 在滚动时切换（rAF 节流）。 */
#app-header.is-stuck .header {
    box-shadow: 0 4px 16px rgba(0, 22, 60, 0.13), 0 1px 0 rgba(0, 22, 60, 0.06);
}
.header-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    gap: 24px;
}
.logo {
    flex-shrink: 0;
}
.logo img {
    display: block;
    height: 42px;
    width: auto;
}

/* —— 汉堡菜单按钮 ——
   桌面/平板端隐藏（不渲染在原位），仅 ≤768px 由 responsive.css 置为 display:block。
   注意：此处必须显式 display:none，否则按钮会以浏览器默认 inline-block 显示在 logo 右侧。 */
.menu-toggle {
    display: none;
    background: none;
    border: 0;
    padding: 0;
    width: 28px;
    height: 28px;
    font-size: 20px;
    line-height: 1;
    color: var(--text);
    cursor: pointer;
    flex-shrink: 0;
}

/* —— 导航列表 —— */
.nav-list {
    display: flex;
    gap: 36px;
    align-items: center;
    height: 72px;
}
.nav-item {
    position: relative;
    height: 72px;
    display: flex;
    align-items: center;
}
.nav-item > a {
    font-size: 16px;
    font-weight: 500;
    color: var(--text);
    padding: 8px 0;
    position: relative;
    transition: color 0.2s;
    white-space: nowrap;
}
/* 一级菜单悬浮下划线 */
.nav-item > a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.25s ease;
}
.nav-item > a:hover {
    color: var(--primary);
}
.nav-item > a:hover::after {
    width: 100%;
}
/* 当前页高亮 */
.nav-item.active > a {
    color: var(--primary);
}
.nav-item.active > a::after {
    width: 100%;
}

/* —— 二级下拉菜单 —— */
.nav-drop {
    position: absolute;
    top: 72px;
    left: 0;
    min-width: 200px;
    background: #fff;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    border-radius: 0 0 8px 8px;
    overflow: hidden;
    display: none;
    z-index: 100;
    padding: 8px 0;
}
.nav-drop a {
    display: block;
    width: 100%;
    padding: 12px 20px;
    font-size: 14px;
    color: var(--text);
    transition: all 0.2s;
}
.nav-drop a:hover {
    background: var(--bg-light);
    color: var(--primary);
    padding-left: 24px;
}

/* —— 三级飞出子菜单（新闻中心 → 企业新闻/产品上新/市场活动/前沿动态） —— */
.nav-drop .has-flyout {
    position: relative;
}
.nav-drop .has-flyout > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}
.flyout-arrow {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-light);
    transition: transform 0.2s, color 0.2s;
    margin-left: 20px;
    flex-shrink: 0;
}
.nav-drop .has-flyout:hover > a {
    background: var(--bg-light);
    color: var(--primary);
}
.nav-drop .has-flyout:hover .flyout-arrow {
    color: var(--primary);
    transform: translateX(2px);
}
.nav-flyout {
    position: absolute;
    left: 100%;
    top: -8px;
    min-width: 180px;
    background: #fff;
    box-shadow: 4px 4px 16px rgba(0,0,0,0.12);
    border-radius: 0 8px 8px 0;
    display: none;
    z-index: 101;
    padding: 8px 0;
}
.nav-drop .has-flyout:hover .nav-flyout {
    display: block;
}
.nav-flyout a {
    display: block;
    padding: 10px 20px;
    font-size: 14px;
    color: var(--text);
    transition: all 0.2s;
    white-space: nowrap;
}
.nav-flyout a:hover {
    background: var(--bg-light);
    color: var(--primary);
    padding-left: 26px;
}

/* —— 5列 mega 面板（产品服务专用） —— */
.nav-mega {
    position: absolute;
    top: 72px;
    left: 50%;
    transform: translateX(-50%);
    width: 1140px;
    max-width: 95vw;
    background: #fff;
    box-shadow: 0 6px 24px rgba(0,0,0,0.14);
    border-radius: 0 0 8px 8px;
    display: none;
    z-index: 100;
    gap: 0;
    padding: 24px 16px;
}
/* V14.58: 此处原本写 display:grid，与上面 .nav-mega 的 display:none 同特异性且后出现，
   会把它覆盖掉 —— 导致 PC 端一进入页面产品分类面板就默认展开、遮挡 banner。
   显示/隐藏统一交给 JS 控制（PC hover 设 grid、移动端点击设 block），这里只保留列数 */
.nav-mega-5 { grid-template-columns: repeat(5, 1fr); }
.nav-mega-4 { grid-template-columns: repeat(4, 1fr); }
.nav-mega-6 { grid-template-columns: repeat(6, 1fr); }
/* V40: 常规细胞株产品独立为第 7 个顶级分类后，mega 面板列数 6→7 */
.nav-mega-7 { grid-template-columns: repeat(7, 1fr); }
.nav-mega-col {
    padding: 0 12px;
    border-right: 1px solid var(--border);
}
.nav-mega-col:last-child {
    border-right: none;
}
.nav-mega-title {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary);
    text-decoration: none;
}
.nav-mega-title:hover {
    color: var(--primary-dark, #003a7a);
}
.nav-mega-col a {
    display: block;
    padding: 6px 0;
    font-size: 13px;
    color: var(--text);
    transition: color 0.2s, padding-left 0.2s;
    line-height: 1.6;
}
.nav-mega-col a:hover {
    color: var(--primary);
    padding-left: 6px;
}
/* V35: mega 面板中间层（自身无产品、只做归组，如「中和抗体假病毒」）渲染为可展开按钮
   而非链接：点击展开其三级子分类，不跳转 —— 与产品详情页侧栏（V34）行为一致 */
.nav-mega-tgl {
    display: flex;
    align-items: center;
    gap: 5px;
    width: 100%;
    padding: 6px 0;
    border: 0;
    background: none;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    text-align: left;
    line-height: 1.6;
    cursor: pointer;
    transition: color 0.2s;
}
.nav-mega-tgl:hover { color: var(--primary); }
.nav-mega-tgl.is-open { color: var(--primary); }
.nav-mega-caret {
    flex: none;
    font-size: 10px;
    color: #94a3b8;
    transition: transform 0.2s ease, color 0.2s ease;
}
.nav-mega-tgl:hover .nav-mega-caret,
.nav-mega-tgl.is-open .nav-mega-caret { color: var(--primary); }
.nav-mega-tgl.is-open .nav-mega-caret { transform: rotate(90deg); }
/* 三级子分类：默认收起，点击按钮展开 */
.nav-mega-sub {
    display: none;
    padding-left: 14px;
}
.nav-mega-sub.is-open { display: block; }
.nav-mega-sub a {
    font-size: 12.5px;
    color: #6b7280;
    font-weight: 400;
}
/* 悬浮展开二级菜单 */
.nav-item.drop-item:hover .nav-drop {
    display: block;
}
/* 点击展开（桌面端 + 移动端通用） */
.nav-item.drop-item.open .nav-drop {
    display: block;
}
/* 下拉箭头指示 */
.nav-item.drop-item > a::before {
    content: "";
    display: inline-block;
    width: 0;
    height: 0;
    border: 4px solid transparent;
    border-top-color: var(--text-light);
    margin-left: 6px;
    vertical-align: middle;
    transition: border-top-color 0.2s;
}
.nav-item.drop-item:hover > a::before {
    border-top-color: var(--primary);
}

/* —— 右侧工具区（搜索 + 购物车 + 语言） —— */
.header-tools {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.header-search {
    position: relative;
    width: 200px;
}
.header-search input {
    width: 100%;
    padding: 8px 36px 8px 14px;
    border: 1.5px solid var(--border);
    border-radius: 20px;
    background: var(--bg-light);
    color: var(--text);
    font-size: 13px;
    transition: var(--transition);
}
.header-search input:focus {
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(10,61,122,0.08);
    outline: none;
}
.header-search .search-btn {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    border: 0;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
}
.header-search .search-btn:hover {
    background: var(--primary-light);
}
/* 搜索加载状态 */
.header-search .search-btn.loading {
    pointer-events: none;
    opacity: 0.7;
}
.header-search .search-btn.loading::after {
    content: '';
    width: 12px;
    height: 12px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: search-spin 0.6s linear infinite;
}
@keyframes search-spin {
    to { transform: rotate(360deg); }
}
/* 搜索无结果 Toast */
#search-toast {
    position: fixed;
    top: 90px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20001;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: #f59e0b;
    color: #fff;
    border-radius: 24px;
    font-size: 14px;
    box-shadow: 0 4px 20px rgba(245,158,11,0.4);
    pointer-events: auto;
    white-space: nowrap;
    animation: search-toast-in 0.3s ease;
}
@keyframes search-toast-in {
    from { opacity: 0; transform: translateX(-50%) translateY(-10px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.header-icon-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px 8px;
    color: var(--primary);
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
    position: relative;
}
.header-icon-btn:hover {
    color: var(--primary-light);
    background: var(--bg-light);
}
.cart-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 17px;
    height: 17px;
    background: #e74c3c;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 17px;
    text-align: center;
    border-radius: 10px;
    padding: 0 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.lang-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
    min-width: 22px;
    text-align: center;
}

/* —— 登录弹窗 —— */
.login-modal {
    display: flex;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}
.login-card {
    background: #fff;
    border-radius: 12px;
    padding: 40px 36px;
    width: 380px;
    max-width: 90vw;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}
.login-close {
    position: absolute;
    top: 12px; right: 14px;
    background: none; border: none;
    font-size: 22px; cursor: pointer;
    color: var(--text-light); line-height: 1;
}
.login-close:hover { color: var(--text); }
.login-title {
    text-align: center;
    font-size: 20px;
    color: var(--primary);
    margin-bottom: 28px;
    font-weight: 600;
}
.login-card .form-group { margin-bottom: 16px; }
.login-card .form-group input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s;
    box-sizing: border-box;
}
.login-card .form-group input:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0,72,157,0.1);
}
.btn-primary { background: var(--primary); color: #fff; border: none; cursor: pointer; }
.btn-primary:hover { background: var(--primary-light); }
.btn-block { display: block; width: 100%; padding: 12px; font-size: 15px; border-radius: 8px; font-weight: 500; }
.login-error { color: #e53e3e; font-size: 13px; text-align: center; margin-bottom: 12px; min-height: 20px; }
.login-footer { text-align: center; margin-top: 16px; font-size: 13px; color: var(--text-light); }
.login-footer a { color: var(--primary); font-weight: 600; }

/* 登录弹窗 — 登录方式子标签 */
.login-sub-tabs { display: flex; gap: 0; margin-bottom: 18px; border-bottom: 1px solid var(--border); }
.login-sub-tab {
    flex: 1; text-align: center; padding: 8px 0; font-size: 13px; font-weight: 500;
    color: var(--text-light); cursor: pointer; border-bottom: 2px solid transparent;
    margin-bottom: -1px; transition: all 0.2s;
}
.login-sub-tab.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }
.login-sub-tab:hover { color: var(--primary-light); }

.login-panel { display: none; }
.login-panel.active { display: block; }

/* 验证码行 */
.code-row { display: flex; gap: 10px; }
.code-row input { flex: 1; }
.send-code-btn {
    white-space: nowrap; padding: 10px 14px; background: var(--bg-subtle);
    border: 1px solid var(--border); border-radius: var(--radius);
    font-size: 13px; color: var(--primary); cursor: pointer;
    transition: all 0.2s; min-width: 105px; text-align: center; font-family: inherit;
}
.send-code-btn:hover { border-color: var(--primary); background: rgba(0,72,157,0.05); }
.send-code-btn:disabled { color: var(--text-light); cursor: not-allowed; background: var(--bg); }
.send-code-btn.counting { color: var(--text-light); }

/* ====== Banner 轮播 ====== */
.banner { position: relative; width: 100%; height: 560px; overflow: hidden; background: linear-gradient(135deg, #00489d 0%, #1a6bb8 100%); }
.banner-slide {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    color: #fff; opacity: 0; transition: opacity 1s ease;
    background-size: cover; background-position: center;
}
.banner-slide.active { opacity: 1; }
.banner-slide::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(10,61,122,.55) 0%, rgba(30,95,168,.3) 100%), rgba(0,0,0,.15);
}
.banner-slide .container { position: relative; z-index: 1; text-align: center; }
.banner-slide h1 {
    font-size: 56px; font-weight: 700; line-height: 1.2; margin-bottom: 20px;
    text-shadow: 0 2px 20px rgba(0,0,0,.3);
    animation: fadeInUp 1s ease;
}
.banner-slide p {
    font-size: 20px; margin-bottom: 32px; opacity: .95;
    text-shadow: 0 1px 8px rgba(0,0,0,.2);
    animation: fadeInUp 1s ease .2s both;
}
.banner-slide .btn { animation: fadeInUp 1s ease .4s both; }
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
.banner-dot {
    position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
    display: flex; gap: 8px; z-index: 2;
}
.banner-dot span {
    width: 32px; height: 4px; background: rgba(255,255,255,.4);
    border-radius: 2px; cursor: pointer; transition: var(--transition);
}
.banner-dot span.active { background: #fff; width: 48px; }
.banner-arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 48px; height: 48px; background: rgba(255,255,255,.15);
    border: 0; color: #fff; border-radius: 50%;
    cursor: pointer; z-index: 2; display: flex; align-items: center; justify-content: center;
    font-size: 18px; transition: var(--transition);
    backdrop-filter: blur(4px);
}
.banner-arrow:hover { background: rgba(255,255,255,.3); }
.banner-arrow.prev { left: 30px; }
.banner-arrow.next { right: 30px; }

/* ====== 通用区块 ====== */
.section { padding: 80px 0; }
.section-light { background: var(--bg-light); }
.section-gray { background: var(--bg-gray); }
.section-primary { background: var(--primary); color: #fff; }
.section-title { text-align: center; margin-bottom: 50px; }
.section-title .eyebrow {
    color: var(--accent); font-size: 14px; font-weight: 500;
    letter-spacing: 2px; text-transform: uppercase; margin-bottom: 8px;
}
.section-title h2 {
    font-size: 36px; font-weight: 700; color: var(--primary); margin-bottom: 12px;
    line-height: 1.3;
}
.section-title p { color: var(--text-light); font-size: 16px; max-width: 700px; margin: 0 auto; }
.section-primary .section-title h2 { color: #fff; }
.section-primary .section-title p { color: rgba(255,255,255,.8); }

/* ====== 业务板块 ====== */
.business-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.business-card {
    background: #fff; border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition); cursor: pointer;
    border: 1px solid var(--border);
    text-align: center;
}
.business-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}
.business-img {
    width: 100%; height: 180px; overflow: hidden;
    position: relative;
}
.business-img img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .5s ease;
}
.business-card:hover .business-img img {
    transform: scale(1.06);
}
.business-card h3 { font-size: 17px; color: var(--text); margin: 16px 16px 8px; }
.business-card p { color: var(--text-light); font-size: 14px; line-height: 1.6; margin: 0 16px 12px; }
.business-card .more {
    display: inline-block; margin-bottom: 20px; color: var(--primary); font-size: 14px;
    font-weight: 500;
}
.business-card .more::after { content: ' →'; transition: var(--transition); }
.business-card:hover .more::after { margin-left: 4px; }

/* ====== 我们的优势 ====== */
.advantage-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.advantage-card {
    padding: 32px 28px; background: #fff; border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm); transition: var(--transition);
    border: 1px solid var(--border);
}
.advantage-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.advantage-icon {
    width: 56px; height: 56px; border-radius: 12px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--primary-light) 100%);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 24px; margin-bottom: 20px;
}
.advantage-card h3 { color: var(--primary); font-size: 18px; margin-bottom: 12px; }
.advantage-card p { color: var(--text-light); font-size: 14px; line-height: 1.7; }

/* ====== 客户评价 ====== */
/* V55: 3 列横向滑动轮播（参考云舟生物）：滚动视口 + 左右箭头 + 分页指示条 */
.testimonial-viewport { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -ms-overflow-style: none; }
.testimonial-viewport::-webkit-scrollbar { display: none; }
.testimonial-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 48px) / 3); gap: 24px; }
.testimonial-card {
    scroll-snap-align: start;
    background: #fff; padding: 24px; border-radius: var(--radius);
    /* V61: 增强投影（品牌蓝调）+ hover 上浮加深 */
    box-shadow: 0 6px 20px rgba(10, 61, 122, .10), 0 1px 3px rgba(10, 61, 122, .06);
    position: relative; display: flex; flex-direction: column;
    transition: box-shadow .3s ease, transform .3s ease;
}
.testimonial-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 32px rgba(10, 61, 122, .16), 0 2px 6px rgba(10, 61, 122, .08);
}
/* V62: 头部改左右结构——logo 在左，PI 名字+单位/高校在右纵向排列；单位院校加粗 */
/* V63: logo 与文字块间距拉大（18px）；行间距放大；PI 名称缩小 2 号、公司/单位名称放大 2 号；新增「合作项目」行 */
/* V61: 头部与正文之间保留分割线（无单位信息时仍保留，视觉一致） */
.testimonial-author {
    display: flex; flex-direction: row; align-items: center;
    gap: 18px; flex-shrink: 0; text-align: left;
    padding-bottom: 14px; margin-bottom: 14px;
    border-bottom: 1px solid var(--border);
}
.testimonial-meta { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
/* V64: PI 名字与公司/单位名称同一行（baseline 对齐，窄屏自动换行） */
.testimonial-idline { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 10px; min-width: 0; }
.testimonial-avatar {
    width: 56px; height: 56px; border-radius: 50%;
    margin-bottom: 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: #fff; display: flex; align-items: center; justify-content: center;
    font-weight: 600; font-size: 22px; flex-shrink: 0;
}
/* V51: 客户头像支持上传 Logo 图片（学校/企业 logo），白底 + contain 避免裁切变形 */
.testimonial-avatar-logo { background: #fff; border: 1px solid var(--border); overflow: hidden; flex-shrink: 0; }
.testimonial-avatar-logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
/* V63: PI 名称 16→14px */
.testimonial-name { font-weight: 600; color: var(--text); font-size: 14px; line-height: 1.35; }
/* V62: 单位/高校信息加粗显示；V63: 13→15px */
.testimonial-title { font-size: 15px; color: var(--text); font-weight: 600; line-height: 1.4; }
/* V63: 合作项目（后台可填，未填则不渲染） */
.testimonial-project { font-size: 13px; color: var(--text-light); line-height: 1.4; }
/* V60: 正文过长时上下滑动（约 7 行封顶），细滚动条 */
.testimonial-content {
    color: var(--text); font-size: 14px; line-height: 1.7; flex: 1;
    position: relative; z-index: 1;
    max-height: 168px; overflow-y: auto;
    scrollbar-width: thin; scrollbar-color: #c7d7ea transparent;
}
.testimonial-content::-webkit-scrollbar { width: 4px; }
.testimonial-content::-webkit-scrollbar-track { background: transparent; }
.testimonial-content::-webkit-scrollbar-thumb { background: #c7d7ea; border-radius: 2px; }
.testimonial-content::-webkit-scrollbar-thumb:hover { background: #9fbfe0; }
.testimonial-controls { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 28px; }
.testimonial-dots { display: flex; gap: 8px; flex: 1 1 auto; min-width: 0; justify-content: center; }
/* V64: 指示条可压缩（9 条以上时小屏不再撑破容器） */
.testimonial-dot { flex: 0 1 40px; width: 40px; min-width: 8px; height: 3px; border-radius: 2px; background: var(--border); border: none; padding: 0; cursor: pointer; transition: background .3s; }
.testimonial-dot.active { background: var(--accent); }
.testimonial-nav {
    width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
    border: 1px solid var(--border); background: #fff; color: var(--text-light);
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: color .3s, border-color .3s;
}
.testimonial-nav:hover { color: var(--accent); border-color: var(--accent); }
.testimonial-nav svg { width: 18px; height: 18px; }
@media (max-width: 768px) {
    .testimonial-track { grid-auto-columns: 100%; }
    .testimonial-controls { margin-top: 20px; }
}

/* ====== 企业简介 ====== */
.about-block { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-image {
    height: 400px; border-radius: var(--radius-lg);
    overflow: hidden; position: relative;
    box-shadow: var(--shadow-sm); border: 1px solid var(--border);
}
.about-image img {
    width: 100%; height: 100%; object-fit: cover;
    display: block;
}
.about-content h2 { font-size: 32px; color: var(--primary); margin-bottom: 20px; }
.about-content p { color: var(--text-light); font-size: 15px; line-height: 1.9; margin-bottom: 16px; }
/* V14.35: 企业简介关键词高亮 */
.about-content p em {
    font-style: normal;
    font-weight: 600;
    color: var(--primary);
    background: linear-gradient(transparent 62%, rgba(0,168,232,.16) 62%);
    padding: 0 2px;
    border-radius: 2px;
}
.about-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 28px; }
/* V14.35: 统计卡片化 */
.about-stat {
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 12px 10px 10px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.about-stat::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    opacity: 0;
    transition: var(--transition);
}
.about-stat:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    background: var(--bg);
    border-color: rgba(0,72,157,.25);
}
.about-stat:hover::before { opacity: 1; }
.about-stat .stat-icon { font-size: 19px; line-height: 1; margin-bottom: 5px; }
.about-stat .num { font-size: 21px; font-weight: 700; color: var(--primary); font-variant-numeric: tabular-nums; }
/* V14.37: 文字型数值（如"苏州工业园区"）缩小至单行显示 */
.about-stat .num.num-text { font-size: 16px; white-space: nowrap; }
.about-stat .label { font-size: 12px; color: var(--text-light); margin-top: 3px; letter-spacing: .5px; }

/* ====== 新闻动态 ====== */
/* ====== 新闻列表 — 水平卡片，1行2列（参照 vazyme） ====== */
.news-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.news-card {
    background: #fff; border-radius: var(--radius-lg);
    box-shadow: 0 1px 6px rgba(0,0,0,0.06); overflow: hidden;
    transition: var(--transition); cursor: pointer;
    border: 1px solid var(--border);
    display: flex; flex-direction: row;
}
.news-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.1); transform: translateY(-2px); }
.news-cover {
    width: 220px; min-width: 220px; flex-shrink: 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    position: relative; overflow: hidden;
}
.news-cover img { width: 100%; height: 100%; object-fit: cover; position: absolute; top: 0; left: 0; }
.news-body { padding: 16px 20px; flex: 1; display: flex; flex-direction: column; min-width: 0; }
.news-tag {
    display: inline-block; padding: 2px 8px;
    background: var(--bg-light); color: var(--primary);
    font-size: 12px; border-radius: 4px; margin-bottom: 8px; width: fit-content;
}
.news-title { font-size: 15px; font-weight: 600; color: var(--text); margin-bottom: 6px; line-height: 1.5;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-card:hover .news-title { color: var(--primary); }
.news-date { font-size: 13px; color: #999; }

/* ====== 首页新闻 6 宫格 + 分类标签 ====== */
.news-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 36px;
    flex-wrap: wrap;
}
.news-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    background: #fff;
    border: 1.5px solid var(--border);
    border-radius: 28px;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
}
.news-tab .tab-icon {
    font-size: 16px;
    line-height: 1;
}
.news-tab:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-1px);
}
.news-tab.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 4px 12px rgba(10,61,122,0.25);
}
.news-tab.active .tab-icon {
    transform: scale(1.15);
}

/* 6 宫格网格 */
.news-grid-6 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.news-grid-6 .news-card {
    display: flex;
    flex-direction: column;
    border-radius: var(--radius-lg);
}
.news-grid-6 .news-cover {
    height: 180px;
    width: auto; min-width: auto; flex-shrink: 1;
}
.news-grid-6 .news-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.news-grid-6 .news-title {
    font-size: 16px;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-grid-6 .news-summary {
    -webkit-line-clamp: 2;
    margin-bottom: auto;
    font-size: 13px;
}
.news-grid-6 .news-meta {
    margin-top: 12px;
    padding-top: 10px;
    font-size: 12px;
}
/* 卡片入场动画 */
.news-grid-6 .news-card {
    animation: newsFadeIn 0.4s ease both;
}
.news-grid-6 .news-card:nth-child(1) { animation-delay: 0ms; }
.news-grid-6 .news-card:nth-child(2) { animation-delay: 60ms; }
.news-grid-6 .news-card:nth-child(3) { animation-delay: 120ms; }
.news-grid-6 .news-card:nth-child(4) { animation-delay: 180ms; }
.news-grid-6 .news-card:nth-child(5) { animation-delay: 240ms; }
.news-grid-6 .news-card:nth-child(6) { animation-delay: 300ms; }
@keyframes newsFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ====== 合作客户（后台「合作客户」模块驱动） ====== */
.partners { display: grid; grid-template-columns: repeat(8, 1fr); gap: 16px; }
.partner-link { display: block; color: inherit; text-decoration: none; }
.partner-item {
    height: 90px; background: #fff; padding: 12px;
    border: 1px solid var(--border); border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
    color: var(--text-light); font-size: 14px; font-weight: 500;
    transition: transform .28s cubic-bezier(.16, 1, .3, 1), border-color .28s ease, box-shadow .28s ease;
    overflow: hidden;
}
.partner-item img { max-width: 100%; max-height: 100%; object-fit: contain; transition: transform .28s cubic-bezier(.16, 1, .3, 1); }
.partner-name { padding: 0 6px; text-align: center; line-height: 1.5; }
.partner-item:hover { border-color: var(--primary); color: var(--primary); box-shadow: var(--shadow); transform: translateY(-3px); }
.partner-item:hover img { transform: scale(1.08); }
.partner-empty { grid-column: 1 / -1; min-height: 90px; display: flex; align-items: center; justify-content: center; color: var(--text-light); border: 1px dashed var(--border); border-radius: var(--radius); }

/* ====== 底部 ====== */
.footer { background: var(--primary-dark); color: rgba(255,255,255,.7); padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2.5fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.footer-col h4 { color: #fff; font-size: 15px; margin-bottom: 18px; font-weight: 500; }
.footer-col ul li { margin-bottom: 10px; font-size: 13px; }
.footer-col ul li a { color: rgba(255,255,255,.6); }
.footer-col ul li a:hover { color: #fff; }
.footer-about { font-size: 13px; line-height: 1.8; margin-bottom: 20px; }
.footer-contact li { display: flex; align-items: flex-start; gap: 4px; margin-bottom: 6px; font-size: 13px; }
.footer-contact li a { color: rgba(255,255,255,.7); }
.footer-contact li a:hover { color: #fff; }
.contact-label { color: rgba(255,255,255,.5); flex-shrink: 0; }
.footer-logo { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin-bottom: 16px; }
.footer-logo-img { width: 180px; height: auto; object-fit: contain; display: block; filter: brightness(0) invert(1); }
.footer-logo .name { color: #fff; font-size: 14px; font-weight: 500; line-height: 1.4; }
/* V14.57: 页脚 Slogan 高亮 — 纯白加粗，靠亮度与字重和下方联系方式拉开层级 */
.footer-about-text { font-size: 17px; font-weight: 600; color: #fff; letter-spacing: 1px; line-height: 1.6; margin-bottom: 20px; }
.footer-company-bottom { display: flex; gap: 24px; align-items: flex-start; flex-wrap: wrap; }
.footer-contact { flex-shrink: 0; min-width: 0; }
.footer-social-inline { display: flex; gap: 10px; align-items: flex-start; flex-shrink: 0; }
.footer-social-inline .social-item { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.footer-social-inline .social-item img { width: 44px; height: 44px; object-fit: contain; border-radius: 4px; display: block; background: #fff; flex-shrink: 0; }
.footer-social-inline .social-item span { font-size: 10px; color: rgba(255,255,255,.6); white-space: nowrap; }
.footer-social-inline .social-item .social-placeholder { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; font-size: 20px; background: rgba(255,255,255,.08); border-radius: 4px; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.1);
    padding: 20px 0; text-align: center; font-size: 13px;
    color: rgba(255,255,255,.5);
}
.footer-bottom a { color: rgba(255,255,255,.5); margin: 0 8px; }
.footer-bottom a:hover { color: #fff; }

/* ====== 面包屑 ====== */
.breadcrumb {
    background: var(--bg-light);
    padding: 16px 0; font-size: 13px; color: var(--text-light);
    border-bottom: 1px solid var(--border);
}
.breadcrumb a { color: var(--text-light); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep { margin: 0 8px; color: var(--text-light); opacity: .5; }

/* ====== 页面通用标题 ====== */
.page-banner {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: #fff; padding: 80px 0; text-align: center;
    position: relative; overflow: hidden;
}
.page-banner::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(circle at 20% 50%, rgba(255,255,255,.1) 0%, transparent 50%);
}
.page-banner h1 { font-size: 40px; font-weight: 700; margin-bottom: 12px; position: relative; }
.page-banner p { font-size: 16px; opacity: .9; position: relative; }

/* ====== 列表/筛选 ====== */
.products-toolbar {
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px; margin-bottom: 24px; flex-wrap: wrap;
}
.products-toolbar .filter-bar { margin-bottom: 0; flex: 1; min-width: 0; }
.products-search-box {
    display: flex; align-items: center; gap: 0;
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
    box-shadow: var(--shadow-sm); overflow: hidden; flex-shrink: 0;
}
.products-search-box input {
    border: none; outline: none; padding: 10px 16px; font-size: 14px;
    width: 220px; background: transparent; color: var(--text);
}
.products-search-box input::placeholder { color: var(--text-light); }
.page-search-btn {
    border: none; background: var(--primary); color: #fff;
    padding: 10px 14px; cursor: pointer; font-size: 16px;
    transition: var(--transition);
}
.page-search-btn:hover { background: var(--primary-dark, #003a7a); }

.filter-bar {
    background: #fff; padding: 16px 24px; border-radius: var(--radius);
    box-shadow: var(--shadow-sm); margin-bottom: 24px; display: flex;
    flex-wrap: wrap; gap: 12px; align-items: center;
}
.filter-label { color: var(--text-light); font-size: 14px; margin-right: 8px; }
.filter-pill {
    padding: 6px 16px; border: 1px solid var(--border); border-radius: 20px;
    background: #fff; color: var(--text); font-size: 13px; cursor: pointer;
    transition: var(--transition);
}
.filter-pill:hover { border-color: var(--primary); color: var(--primary); }
.filter-pill.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ====== 产品列表 ====== */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.product-card {
    display: block; background: #fff; border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm); overflow: hidden;
    transition: var(--transition); cursor: pointer;
    border: 1px solid var(--border);
    text-decoration: none; color: inherit;
}
.product-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.product-image {
    height: 220px; background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-gray) 100%);
    position: relative; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
}
.product-image img { width: 100%; height: 100%; object-fit: cover; }
.product-image .placeholder {
    color: var(--text-light); font-size: 48px; opacity: .3;
}
.product-tag {
    position: absolute; top: 12px; left: 12px;
    padding: 4px 10px; background: var(--accent); color: #fff;
    font-size: 11px; border-radius: 4px;
}
.product-tag.hot { background: var(--danger); }
.product-tag.new { background: var(--success); }
.product-body { padding: 24px; }
.product-cat { color: var(--accent); font-size: 12px; margin-bottom: 8px; }
.product-name { font-size: 18px; font-weight: 600; color: var(--text); margin-bottom: 8px; line-height: 1.4; cursor: pointer; }
.product-card:hover .product-name { color: var(--primary); }
.product-subtitle { color: var(--text-light); font-size: 13px; margin-bottom: 12px; }
.product-summary { color: var(--text-light); font-size: 13px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 16px; }
.product-btn { display: inline-block; color: var(--primary); font-size: 14px; font-weight: 500; }
.product-btn::after { content: ' →'; transition: var(--transition); }
.product-card:hover .product-btn::after { margin-left: 4px; }

/* ====== 分页 ====== */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 40px; }
.pagination a, .pagination span {
    min-width: 36px; height: 36px; padding: 0 12px;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--border); border-radius: 4px;
    color: var(--text); font-size: 14px;
}
.pagination a:hover { border-color: var(--primary); color: var(--primary); }
.pagination .active { background: var(--primary); color: #fff; border-color: var(--primary); }
.pagination .disabled { opacity: .5; cursor: not-allowed; }

/* ====== 详情页 ====== */
.detail-layout { display: grid; grid-template-columns: 280px 1fr; gap: 40px; }
.sidebar-card {
    background: #fff; border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm); padding: 24px;
    border: 1px solid var(--border);
}
.sidebar-card h3 {
    color: var(--primary); font-size: 16px; margin-bottom: 16px;
    padding-bottom: 12px; border-bottom: 2px solid var(--primary);
}
.sidebar-list li a {
    display: block; padding: 10px 12px; color: var(--text);
    font-size: 14px; border-radius: 4px; transition: var(--transition);
}
.sidebar-list li a:hover, .sidebar-list li a.active { background: var(--bg-light); color: var(--primary); padding-left: 16px; }
.detail-content { background: #fff; border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow-sm); border: 1px solid var(--border); }
.detail-content h1 { font-size: 28px; color: var(--text); margin-bottom: 16px; line-height: 1.4; }
.detail-meta { color: var(--text-light); font-size: 13px; margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.detail-meta span { margin-right: 20px; }
.detail-content img { max-width: 100%; height: auto; border-radius: 4px; margin: 16px 0; }
.detail-body { font-size: 15px; line-height: 1.9; color: var(--text); }
.detail-body p { margin-bottom: 16px; }
.detail-body h2, .detail-body h3, .detail-body h4 { color: var(--primary); margin: 24px 0 12px; }
.detail-body ul, .detail-body ol { padding-left: 24px; margin-bottom: 16px; }
.detail-body li { list-style: disc; margin-bottom: 6px; }

/* ====== V37: AAV 血清型与启动子适配表（分类详情 serotype_info） ====== */
.sero-table-wrap { overflow-x: auto; margin: 8px 0 20px; -webkit-overflow-scrolling: touch; }
.sero-caption { text-align: center; font-weight: 700; color: #e67e22; font-size: 15px; margin: 4px 0 12px; }
.sero-table { width: 100%; min-width: 680px; border-collapse: collapse; font-size: 13.5px; line-height: 1.65; }
/* V37.1: 加 .detail-body 前缀提高优先级 —— product-detail.html 内联 <style> 的
   .detail-body td { vertical-align:top; text-align:left } 与本规则同权重但加载在后，会把
   器官列顶到单元格上方、内容改左对齐 */
.sero-table th, .sero-table td,
.detail-body .sero-table th, .detail-body .sero-table td
{ border: 1px solid #d7e2ef; padding: 7px 10px; text-align: center; vertical-align: middle; }
.sero-table thead th { background: var(--primary); color: #fff; font-size: 14.5px; letter-spacing: 2px; padding: 11px 8px; border-color: var(--primary); }
.sero-table tbody tr:nth-child(even) { background: #f4f8fc; }
.sero-table td.org-cell { font-weight: 600; font-size: 14px; background: #e9f1f9; }
.sero-table td.sero-cell { color: var(--text); }

/* ====== 联系我们 ====== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-info-card {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: #fff; padding: 40px; border-radius: var(--radius-lg);
}
.contact-info-card h2 { font-size: 28px; margin-bottom: 24px; }
.contact-item { display: flex; gap: 16px; margin-bottom: 24px; }
.contact-icon {
    width: 44px; height: 44px; background: rgba(255,255,255,.15); border-radius: 50%;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
    font-size: 18px; backdrop-filter: blur(8px);
}
.contact-text h4 { font-size: 14px; opacity: .8; margin-bottom: 4px; }
.contact-text p { font-size: 15px; }
.contact-form { background: #fff; padding: 40px; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.contact-form h2 { color: var(--primary); margin-bottom: 24px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; color: var(--text); font-size: 14px; margin-bottom: 6px; }
.form-group input, .form-group textarea, .form-group select {
    width: 100%; padding: 12px 16px; border: 1px solid var(--border);
    border-radius: var(--radius); font-size: 14px;
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--primary); }
.form-group textarea { resize: vertical; min-height: 120px; }

/* ====== 二级页面 banner 短版 ====== */
.page-banner-sm { padding: 60px 0; }

/* ====== 加载占位 ====== */
.loading { text-align: center; padding: 60px 0; color: var(--text-light); }
.loading::after {
    content: ''; display: inline-block; width: 32px; height: 32px;
    border: 3px solid var(--border); border-top-color: var(--primary);
    border-radius: 50%; animation: spin 1s linear infinite; margin-left: 12px;
    vertical-align: middle;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ====== 返回顶部 ====== */
.back-top {
    position: fixed; bottom: 40px; right: 40px;
    width: 48px; height: 48px; background: var(--primary);
    color: #fff; border-radius: 50%; border: 0;
    cursor: pointer; display: none; z-index: 99;
    box-shadow: var(--shadow); transition: var(--transition);
}
.back-top:hover { background: var(--primary-light); transform: translateY(-2px); }
.back-top.show { display: flex; align-items: center; justify-content: center; }

/* ====== C13 右侧悬浮辅助栏（客服+购物车+产品试用） ====== */
/* 右侧垂直居中，蓝色图标，动态提醒 */
.float-fixed-box {
    position: fixed;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.float-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: #f5f7fa;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: relative;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: floatItemIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.float-item:nth-child(1) { animation-delay: 0.1s; }
.float-item:nth-child(2) { animation-delay: 0.25s; }
.float-item:nth-child(3) { animation-delay: 0.4s; }
.float-item:nth-child(4) { animation-delay: 0.55s; }

@keyframes floatItemIn {
    from { opacity: 0; transform: translateX(20px); }
    to   { opacity: 1; transform: translateX(0); }
}

.float-item:hover {
    background: #0066cc;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,102,204,.3);
}

/* C13 图标色彩 - 默认蓝色 */
.float-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0066cc;
    transition: all 0.3s ease;
}

.float-item:hover .float-icon {
    color: #fff;
}

/* C13 通知红点（脉冲动画） */
.float-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 10px;
    height: 10px;
    background: #ef4444;
    border-radius: 50%;
    border: 2px solid #fff;
    z-index: 2;
    animation: floatPulse 2s ease-in-out infinite;
}
.float-badge.has-count {
    width: auto;
    height: auto;
    min-width: 18px;
    padding: 0 4px;
    border-radius: 9px;
    font-size: 10px;
    color: #fff;
    text-align: center;
    line-height: 14px;
    font-weight: 600;
    animation: floatPulse 2s ease-in-out infinite;
}

@keyframes floatPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(239,68,68,.6); }
    50%      { box-shadow: 0 0 0 6px rgba(239,68,68,0); }
}

/* C13 悬浮文字提示 */
.float-tips {
    position: absolute;
    right: 60px;
    color: #fff;
    background: #0066cc;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.float-tips::after {
    content: '';
    position: absolute;
    right: -5px;
    top: 50%;
    transform: translateY(-50%);
    border: 5px solid transparent;
    border-left-color: #0066cc;
    border-right: 0;
}

.float-item:hover .float-tips {
    opacity: 1;
    visibility: visible;
}

/* C13 动态轮播提示（无 hover 时自动播） */
.float-item.auto-show-tips .float-tips {
    opacity: 1;
    visibility: visible;
    animation: tipsBreatheOut 3s ease-in-out forwards;
}
@keyframes tipsBreatheOut {
    0%   { opacity: 0; visibility: hidden; }
    15%  { opacity: 1; visibility: visible; }
    85%  { opacity: 1; visibility: visible; }
    100% { opacity: 0; visibility: hidden; }
}

/* ====== 新闻详情页 ====== */
/* Banner */
.news-detail-banner {
    height: 220px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    display: flex; align-items: center; justify-content: center;
    position: relative; overflow: hidden;
}
.news-detail-banner::before {
    content: ''; position: absolute; inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.news-detail-banner .banner-inner { text-align: center; color: #fff; position: relative; z-index: 1; }
.news-detail-banner .banner-en { font-size: 36px; font-weight: 700; letter-spacing: 4px; margin-bottom: 8px; }
.news-detail-banner .banner-cn { font-size: 16px; opacity: .8; letter-spacing: 2px; }

/* 两栏布局 */
.news-detail-layout { display: grid; grid-template-columns: 240px 1fr; gap: 40px; padding: 48px 0; }
.news-detail-layout .news-detail-sidebar { position: sticky; top: 80px; align-self: start; }
.news-detail-sidebar .sidebar-title {
    font-size: 18px; font-weight: 700; color: var(--primary);
    padding-bottom: 16px; margin-bottom: 16px;
    border-bottom: 2px solid var(--primary);
}
.news-detail-sidebar .sidebar-cat {
    display: block; padding: 12px 16px; font-size: 14px; color: var(--text);
    border-radius: var(--radius); transition: var(--transition); margin-bottom: 4px;
}
.news-detail-sidebar .sidebar-cat:hover,
.news-detail-sidebar .sidebar-cat.active {
    background: var(--primary); color: #fff;
}

/* 正文主区域 */
.news-detail-main article {
    background: #fff; border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm); border: 1px solid var(--border);
    padding: 48px 56px;
}
.news-detail-main .detail-title {
    font-size: 28px; font-weight: 700; color: var(--text);
    line-height: 1.4; margin-bottom: 20px;
}
.news-detail-main .detail-line {
    border: none; border-top: 1px solid var(--border); margin: 20px 0;
}
.news-detail-main .detail-meta-row {
    display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
    color: var(--text-light); font-size: 14px;
}
.news-detail-main .detail-meta-row span { display: inline-flex; align-items: center; gap: 6px; }
.news-detail-main .detail-cover {
    width: 100%; border-radius: var(--radius); margin-bottom: 28px;
}
.news-detail-main .detail-body {
    font-size: 15px; line-height: 1.9; color: var(--text);
}
.news-detail-main .detail-body img { max-width: 100%; border-radius: var(--radius); margin: 16px 0; }
.news-detail-main .detail-body p { margin-bottom: 16px; }
.news-detail-main .detail-body h2,
.news-detail-main .detail-body h3 { margin: 32px 0 16px; color: var(--primary); }
.news-detail-main .detail-body ul,
.news-detail-main .detail-body ol { margin: 12px 0 12px 24px; }
.news-detail-main .detail-body li { margin-bottom: 6px; }

/* 上一篇 / 下一篇 */
.news-detail-main .detail-pager {
    display: flex; justify-content: space-between; align-items: center;
    margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--border);
    gap: 16px;
}
.detail-pager .pager-btn {
    display: flex; align-items: center; gap: 12px; padding: 12px 20px;
    border-radius: var(--radius); border: 1px solid var(--border);
    background: var(--bg-light); transition: var(--transition);
    flex: 1; min-width: 0;
}
.detail-pager .pager-btn:hover { border-color: var(--primary); background: #f0f6ff; }
.detail-pager .pager-btn .pager-label {
    font-size: 12px; color: var(--text-light); white-space: nowrap;
}
.detail-pager .pager-btn .pager-link {
    font-size: 14px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.detail-pager .pager-btn .pager-link:hover { color: var(--primary); }
.detail-pager .pager-btn.pager-next { text-align: right; justify-content: flex-end; }
.detail-pager .pager-btn.pager-disabled {
    opacity: .5; pointer-events: none; cursor: default;
}

/* 返回列表 */
.news-detail-back { text-align: center; margin-top: 32px; }
.news-detail-back .btn { min-width: 160px; }

/* ====== 合作案例 — 表格式布局（参照 genechem） ====== */
/* 研究方向筛选 */
.case-filter-bar {
    display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px;
    padding-bottom: 20px; border-bottom: 1px solid var(--border);
}
.case-filter-all {
    display: inline-block; padding: 6px 18px; font-size: 13px;
    border-radius: 4px; cursor: pointer; color: var(--text-light);
    background: var(--bg); border: 1px solid var(--border);
    transition: var(--transition);
}
.case-filter-all:hover, .case-filter-all.active {
    color: #fff; background: var(--primary); border-color: var(--primary);
}
/* 表格头部 */
.case-table-header, .case-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1.2fr 0.7fr 1.2fr 1fr;
    gap: 0; align-items: stretch;
    border-bottom: 1px solid var(--border);
}
.case-table-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff; font-size: 14px; font-weight: 600;
    border-radius: var(--radius) var(--radius) 0 0;
    border-bottom: none;
}
.case-table-header > div {
    padding: 14px 12px; text-align: center;
    border-right: 1px solid rgba(255,255,255,.15);
}
.case-table-header > div:last-child { border-right: none; }
/* 行 */
.case-row {
    background: #fff; transition: var(--transition);
}
.case-row:nth-child(even) { background: #fafbfc; }
.case-row:hover { background: #f0f5ff; }
.case-row > div {
    padding: 16px 12px; font-size: 13px; color: var(--text-light);
    display: flex; flex-direction: column; justify-content: center;
    border-right: 1px solid #eee;
}
.case-row > div:last-child { border-right: none; }
/* 标题列 */
.case-row-title {
    font-size: 15px; font-weight: 600; color: var(--text);
    line-height: 1.5; display: -webkit-box;
    -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden; text-decoration: none;
}
.case-row-title:hover { color: var(--primary); }
.case-row-entitle {
    font-size: 12px; color: #999; margin-top: 4px;
    display: -webkit-box; -webkit-line-clamp: 1;
    -webkit-box-orient: vertical; overflow: hidden;
}
.case-row-more {
    font-size: 12px; color: var(--primary); margin-top: 6px;
    text-decoration: none;
}

/* ====== 案例详情页 ====== */
.case-detail-wrap { max-width: 860px; margin: 0 auto; }
.cd-hero {
    text-align: center; padding: 48px 0 40px;
    border-bottom: 2px solid var(--primary);
    margin-bottom: 40px;
}
.cd-title { font-size: 28px; font-weight: 700; color: var(--text); line-height: 1.4; margin-bottom: 12px; }
.cd-entitle { font-size: 15px; color: #888; line-height: 1.5; margin-bottom: 24px; }
.cd-pdf-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 28px; background: var(--primary); color: #fff;
    border-radius: 6px; font-size: 15px; font-weight: 600;
    text-decoration: none; transition: var(--transition);
}
.cd-pdf-btn:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,72,157,.3); }
/* 元信息网格 */
.cd-meta-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 0; border: 1px solid var(--border); border-radius: var(--radius-lg);
    overflow: hidden; margin-bottom: 40px;
}
.cd-meta-item {
    padding: 20px; border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.cd-meta-item:nth-child(3n) { border-right: none; }
.cd-meta-item:nth-child(n+4) { border-bottom: none; }
.cd-meta-label {
    display: block; font-size: 12px; color: #999; margin-bottom: 6px;
}
.cd-meta-value {
    display: block; font-size: 15px; font-weight: 600; color: var(--text);
}
.cd-meta-highlight { background: #f0f5ff; }
.cd-meta-highlight .cd-meta-label { color: var(--primary); }
.cd-if { color: var(--primary); }
.cd-section-title {
    font-size: 20px; font-weight: 700; color: var(--text);
    padding-bottom: 12px; border-bottom: 1px solid var(--border);
    margin-bottom: 20px;
}
.cd-abstract {
    font-size: 15px; line-height: 1.9; color: var(--text);
    margin-bottom: 40px;
}
.cd-back { text-align: center; padding: 32px 0; }
.cd-back a {
    display: inline-block; padding: 10px 32px; border: 1px solid var(--border);
    border-radius: 6px; color: var(--text-light); text-decoration: none;
    transition: var(--transition);
}
.cd-back a:hover { color: var(--primary); border-color: var(--primary); }
