/* ============================================================
   产品中心 · 分类页 cp.html
   与首页 / yfsl / jsfw / jszc / jszl 统一：
   品牌红 #E73216 + 品牌橙 #EA5B16、思源黑体、rem 字号节奏、
   WOW fadeInUp 进场动效、991 / 767 响应式断点

   本页只做「分类导航」：仪器产品 / 试剂产品 两大类，
   试剂下按 8 个产品分类列出对应产品；
   单个产品的介绍与参数在详情页 cp_wz.html。

   注：本站 html 根字号为 calc(100vw/19.2)，1920 下 1rem = 100px。
   ============================================================ */
.cp-page {
    background: #f6f8f8;
    color: #625F5D;
}

/* ---------- Hero ---------- */
.cp-page .cp-hero {
    background: #101d22;
    color: #fff;
    min-height: 6.6rem;
    overflow: hidden;
    position: relative;
}

/* ---------- Banner 背景图 ----------
   图片由页面 HTML 提供（<div class="cp-hero-bg"><img src="..."></div>），
   这样每页可单独替换，不再依赖本文件里的统一图片。 */
.cp-page .cp-hero-bg {
    inset: 0;
    overflow: hidden;
    position: absolute;
}
.cp-page .cp-hero-bg::after {
    background: rgba(16,29,34,.42);
    content: "";
    inset: 0;
    position: absolute;
}
.cp-page .cp-hero-bg img {
    display: block;
    height: 100%;
    object-fit: cover;
    object-position: center;
    width: 100%;
}
.cp-hero-grid {
    background-image:
        linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
    background-size: 42px 42px;
    inset: 0;
    position: absolute;
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 20%, transparent 72%);
    mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 20%, transparent 72%);
}
.cp-hero-glow {
    background: radial-gradient(circle, rgba(244, 123, 104, .34) 0%, transparent 62%);
    height: 4.6rem;
    position: absolute;
    right: -.6rem;
    top: -1.2rem;
    width: 5.4rem;
}
.cp-hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(3.2rem, 4.6rem);
    min-height: 5.2rem;
    padding-top: .5rem;
    position: relative;
    z-index: 2;
}
.cp-breadcrumb {
    align-items: center;
    color: rgba(255, 255, 255, .62);
    display: flex;
    flex-wrap: wrap;
    font-size: 13px;
    gap: 10px;
    grid-column: 1/-1;
    margin-bottom: .22rem;
}
.cp-breadcrumb a { color: rgba(255, 255, 255, .62); }
.cp-breadcrumb strong { color: #fff; font-weight: 400; }
.cp-hero-copy {
    align-self: center;
    padding-bottom: .3rem;
}
.cp-eyebrow {
    color: #f47b68;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .17em;
    line-height: 1.4;
}
.cp-hero h1 {
    font-size: clamp(40px, 3.2vw, 46px);
    font-weight: 700;
    letter-spacing: -.03em;
    line-height: 1.12;
    margin-top: .14rem;
}
.cp-hero h1 em,
.cp-cats h2 em,
.cp-group h2 em,
.cp-cta h2 em {
    color: #f47b68;
    font-style: normal;
}
.cp-hero-copy > p {
    color: rgba(255, 255, 255, .72);
    font-size: clamp(15px, 1.05vw, 18px);
    line-height: 1.8;
    margin-top: .22rem;
    max-width: 6.6rem;
}
.cp-hero-actions {
    align-items: center;
    display: flex;
    gap: .26rem;
    margin-top: .32rem;
}
.cp-primary-action {
    align-items: center;
    background: var(--brand-primary, #E73216);
    border: 1px solid var(--brand-primary, #E73216);
    border-radius: 999px;
    color: #fff;
    display: inline-flex;
    font-size: 15px;
    font-weight: 600;
    gap: .12rem;
    line-height: 1;
    padding: .16rem .34rem;
    text-decoration: none;
    transition: background-color .3s, box-shadow .3s, transform .3s;
}
.cp-primary-action span {
    font-size: 17px;
    font-weight: 400;
    line-height: 1;
    transition: transform .3s;
}
.cp-primary-action:hover {
    background: #c92b11;
    box-shadow: 0 10px 24px rgba(231, 50, 22, .3);
    color: #fff;
    transform: translateY(-2px);
}
.cp-primary-action:hover span { transform: translateX(3px); }
.cp-text-action {
    border: 1px solid rgba(255, 255, 255, .34);
    border-radius: 999px;
    color: rgba(255, 255, 255, .9);
    display: inline-flex;
    font-size: 15px;
    gap: .1rem;
    line-height: 1;
    padding: .16rem .32rem;
    text-decoration: none;
    transition: border-color .3s, color .3s, background-color .3s;
}
.cp-text-action:hover {
    background: rgba(255, 255, 255, .1);
    border-color: #fff;
    color: #fff;
}
.cp-hero-badge {
    align-items: center;
    display: flex;
    justify-content: center;
    position: relative;
}
.cp-badge-halo {
    background: radial-gradient(circle, rgba(244, 123, 104, .5) 0%, transparent 64%);
    border-radius: 50%;
    height: 3.4rem;
    position: absolute;
    width: 3.4rem;
}
.cp-badge-core {
    align-items: center;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    height: 2.1rem;
    justify-content: center;
    position: relative;
    text-align: center;
    width: 2.1rem;
}
.cp-badge-core small {
    color: #f47b68;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
}
.cp-badge-core strong {
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .04em;
    line-height: 1.25;
    margin-top: .05rem;
}

/* ---------- 区块通用 ---------- */
.cp-section-head {
    align-items: flex-end;
    display: flex;
    gap: .4rem;
    justify-content: space-between;
    margin-bottom: .42rem;
}
.cp-section-head h2,
.cp-cats h2,
.cp-group h2 {
    color: #231815;
    font-size: clamp(28px, 2.35vw, 42px);
    font-weight: 700;
    letter-spacing: -.01em;
    line-height: 1.25;
    margin: .14rem 0 0;
}
.cp-section-head > p {
    color: #9A9591;
    flex: 0 1 auto;
    font-size: 15px;
    line-height: 1.7;
    margin: 0 0 .05rem;
    min-width: 4rem;
    text-align: right;
}
.cp-subhead {
    color: #231815;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 .22rem;
}

/* ---------- 两大分类 ---------- */
.cp-cats {
    background: #fff;
    padding: .8rem 0;
}
.cp-cats-grid {
    display: grid;
    gap: .34rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.cp-cat-card {
    background: #f6f8f8;
    border: 1px solid #f0f2f3;
    border-radius: .12rem;
    box-sizing: border-box;
    display: grid;
    gap: .3rem;
    grid-template-columns: minmax(0, .72fr) minmax(0, 1fr);
    overflow: hidden;
    padding: .34rem;
    text-decoration: none;
    transition: border-color .3s, box-shadow .3s, transform .3s;
}
.cp-cat-card:hover {
    border-color: rgba(231, 50, 22, .2);
    box-shadow: 0 18px 38px rgba(35, 24, 21, .1);
    transform: translateY(-4px);
}
.cp-cat-media {
    align-items: center;
    background: linear-gradient(160deg, #fff 0%, #eef2f3 100%);
    border: 1px solid #eef1f2;
    border-radius: .1rem;
    display: flex;
    height: 1.9rem;
    justify-content: center;
    overflow: hidden;
    padding: .2rem;
}
.cp-cat-media img {
    display: block;
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    transition: transform .5s;
    width: auto;
}
.cp-cat-card:hover .cp-cat-media img { transform: scale(1.04); }
.cp-cat-body { align-self: center; min-width: 0; }
.cp-cat-tag {
    color: var(--brand-primary, #E73216);
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
}
.cp-cat-body h3 {
    color: #231815;
    font-size: clamp(20px, 1.7vw, 26px);
    font-weight: 700;
    line-height: 1.35;
    margin: .1rem 0 .1rem;
}
.cp-cat-body p {
    color: #625F5D;
    font-size: 14px;
    line-height: 1.75;
    margin: 0 0 .16rem;
}
.cp-cat-count {
    align-items: baseline;
    display: flex;
    gap: .2rem;
    margin-bottom: .18rem;
}
.cp-cat-count b {
    color: var(--brand-primary, #E73216);
    font-size: 26px;
    font-weight: 800;
    line-height: 1;
}
.cp-cat-count small { color: #9A9591; font-size: 13px; }
.cp-cat-link {
    color: var(--brand-primary, #E73216);
    display: inline-flex;
    font-size: 14px;
    font-weight: 600;
    gap: .08rem;
}
.cp-cat-link span { transition: transform .3s; }
.cp-cat-card:hover .cp-cat-link span { transform: translateX(3px); }

/* ---------- 分类区块（仪器 / 试剂） ---------- */
.cp-group {
    padding: .8rem 0;
}
.cp-group--mist { background: #f6f8f8; }
.cp-group--white { background: #fff; }

/* 仪器产品：单列产品卡 */
.cp-product-grid {
    display: grid;
    gap: .34rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.cp-product-card {
    background: #fff;
    border: 1px solid #f0f2f3;
    border-radius: .12rem;
    box-sizing: border-box;
    display: grid;
    gap: .34rem;
    grid-template-columns: minmax(0, .95fr) minmax(0, 1fr);
    overflow: hidden;
    padding: .34rem;
    text-decoration: none;
    transition: border-color .3s, box-shadow .3s, transform .3s;
}
.cp-product-card:hover {
    border-color: rgba(231, 50, 22, .2);
    box-shadow: 0 18px 38px rgba(35, 24, 21, .1);
    transform: translateY(-4px);
}
.cp-product-media {
    align-items: center;
    background: linear-gradient(160deg, #fff 0%, #eef2f3 100%);
    border: 1px solid #eef1f2;
    border-radius: .1rem;
    display: flex;
    height: 2.1rem;
    justify-content: center;
    overflow: hidden;
    padding: .2rem;
}
.cp-product-media img {
    display: block;
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    transition: transform .5s;
    width: auto;
}
.cp-product-card:hover .cp-product-media img { transform: scale(1.04); }
.cp-product-body { align-self: center; min-width: 0; }
.cp-product-tag {
    color: var(--brand-primary, #E73216);
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
}
.cp-product-body h3 {
    color: #231815;
    font-size: clamp(19px, 1.5vw, 23px);
    font-weight: 700;
    line-height: 1.35;
    margin: .1rem 0 .1rem;
}
.cp-product-body p {
    color: #625F5D;
    font-size: 14px;
    line-height: 1.75;
    margin: 0 0 .16rem;
}
.cp-product-meta {
    color: #9A9591;
    display: flex;
    flex-wrap: wrap;
    font-size: 12px;
    gap: .06rem .18rem;
    line-height: 1.6;
    margin-bottom: .16rem;
}
.cp-product-meta b { color: #625F5D; font-weight: 600; }
.cp-product-link {
    color: var(--brand-primary, #E73216);
    display: inline-flex;
    font-size: 14px;
    font-weight: 600;
    gap: .08rem;
}
.cp-product-link span { transition: transform .3s; }
.cp-product-card:hover .cp-product-link span { transform: translateX(3px); }

/* 试剂产品：按 8 个产品分类列出对应产品 */
.cp-series-grid {
    align-items: start;
    display: grid;
    gap: .24rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.cp-series {
    background: #f6f8f8;
    border: 1px solid #f0f2f3;
    border-radius: .12rem;
    box-sizing: border-box;
    overflow: hidden;
    transition: border-color .3s, box-shadow .3s, transform .3s;
}
.cp-series:hover {
    border-color: rgba(231, 50, 22, .18);
    box-shadow: 0 16px 34px rgba(35, 24, 21, .09);
    transform: translateY(-3px);
}
.cp-series-head {
    align-items: center;
    background: #fff;
    border-bottom: 1px solid #f0f2f3;
    display: flex;
    gap: .2rem;
    padding: .22rem .28rem;
}
/* 试剂分类统一使用同一张试剂盒效果图 */
.cp-series-thumb {
    align-items: center;
    background: linear-gradient(160deg, #fff 0%, #eef2f3 100%);
    border: 1px solid #eef1f2;
    border-radius: .08rem;
    display: flex;
    flex: 0 0 auto;
    height: .78rem;
    justify-content: center;
    overflow: hidden;
    padding: .06rem;
    width: .78rem;
}
.cp-series-thumb img {
    display: block;
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    width: auto;
}
.cp-series-title { min-width: 0; }
.cp-series-title h3 {
    color: #231815;
    font-size: clamp(16px, 1.2vw, 19px);
    font-weight: 700;
    line-height: 1.35;
    margin: 0;
}
.cp-series-title small {
    color: #9A9591;
    display: block;
    font-size: 12px;
    letter-spacing: .04em;
    margin-top: .02rem;
}
.cp-series-list {
    display: grid;
    gap: 1px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.cp-series-item {
    align-items: center;
    background: #f6f8f8;
    color: #231815;
    display: flex;
    flex-wrap: wrap;
    font-size: 15px;
    font-weight: 600;
    gap: .06rem .14rem;
    line-height: 1.5;
    padding: .18rem .28rem;
    text-decoration: none;
    transition: background .3s, color .3s;
}
.cp-series-item:hover {
    background: #fff;
    color: var(--brand-primary, #E73216);
}
.cp-series-item em {
    color: #9A9591;
    flex: 0 0 auto;
    font-size: 12px;
    font-style: normal;
    font-weight: 600;
    letter-spacing: .02em;
    transition: color .3s;
}
.cp-series-item:hover em { color: var(--brand-primary, #E73216); }
.cp-series-item i {
    color: #C9C4C0;
    flex: 0 0 auto;
    font-style: normal;
    margin-left: auto;
    transition: color .3s, transform .3s;
}
.cp-series-item:hover i { color: var(--brand-primary, #E73216); transform: translateX(3px); }

/* ---------- CTA ---------- */
.cp-cta {
    background: #f6f8f8;
    padding: 0 0 .8rem;
}
.cp-cta-inner {
    align-items: center;
    background: linear-gradient(120deg, #E73216 0%, #EA5B16 100%);
    border-radius: .12rem;
    box-shadow: 0 14px 30px rgba(234, 91, 22, .22);
    color: #fff;
    display: flex;
    gap: .4rem;
    justify-content: space-between;
    overflow: hidden;
    padding: .5rem .6rem;
    position: relative;
}
.cp-cta-inner::after {
    background: radial-gradient(circle, rgba(255, 255, 255, .3) 0%, transparent 60%);
    content: "";
    height: 3rem;
    position: absolute;
    right: -.6rem;
    top: -1rem;
    width: 3.6rem;
}
.cp-cta .cp-eyebrow { color: rgba(255, 255, 255, .82); }
.cp-cta h2 {
    color: #fff;
    font-size: clamp(22px, 2vw, 30px);
    font-weight: 700;
    line-height: 1.35;
    margin: .12rem 0 .1rem;
}
.cp-cta p {
    color: rgba(255, 255, 255, .92);
    font-size: 15px;
    line-height: 1.8;
    margin: 0;
}
.cp-cta-inner > a {
    position: relative;
    white-space: nowrap;
    z-index: 1;
}
.cp-cta-inner .cp-primary-action {
    background: #fff;
    border-color: #fff;
    color: var(--brand-primary, #E73216);
}
.cp-cta-inner .cp-primary-action:hover {
    background: #fff3ec;
    border-color: #fff;
    color: var(--brand-primary, #E73216);
}

/* ---------- 响应式 ---------- */
@media (max-width: 1199px) {
    .cp-cat-card,
    .cp-product-card { grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); }
}
@media (max-width: 991px) {
    .cp-hero-inner { grid-template-columns: 1fr; }
    .cp-hero-badge { display: none; }
    .cp-section-head { align-items: flex-start; flex-direction: column; gap: .1rem; }
    .cp-section-head > p { max-width: none; text-align: left; }
    .cp-cats-grid { grid-template-columns: 1fr; }
    .cp-product-grid { grid-template-columns: 1fr; }
    .cp-series-grid { grid-template-columns: 1fr; }
    .cp-cta-inner { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 767px) {
    .cp-hero-inner {
        grid-template-columns: 1fr;
        min-height: 4.8rem;
        padding-top: .34rem;
    }
    .cp-hero h1 { font-size: clamp(30px, 8vw, 44px); }
    .cp-cats,
    .cp-group { padding: .62rem 0; }
    .cp-cat-card,
    .cp-product-card {
        grid-template-columns: 1fr;
        gap: .22rem;
        padding: .26rem;
    }
    .cp-cat-media { height: 1.6rem; }
    .cp-product-media { height: 1.8rem; }
    .cp-series-head { padding: .2rem .24rem; }
    .cp-series-item { padding: .16rem .24rem; }
    .cp-cta-inner { padding: .42rem .36rem; }
}
@media (max-width: 380px) {
    .cp-hero-actions { align-items: flex-start; flex-direction: column; }
    .cp-series-thumb { height: .68rem; width: .68rem; }
}
