/* =========================================================
   湖南科研科学仪器研究院
   检验检测与技术协作列表页
   文件：testing-list.css
   版本：2026080507
   ========================================================= */

.testing-page,
.testing-page * {
    box-sizing: border-box;
}

.testing-page {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: #ffffff;
}

.testing-container {
    width: calc(100% - 40px);
    max-width: 1200px;
    margin: 0 auto;
}

/* =========================================================
   通栏业务头图
   ========================================================= */

.testing-hero {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: linear-gradient(125deg, #07375f 0%, #0b538e 58%, #1475ad 100%);
}

.testing-hero::before {
    position: absolute;
    top: -230px;
    right: -70px;
    width: 540px;
    height: 540px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    content: "";
    pointer-events: none;
}

.testing-hero::after {
    position: absolute;
    right: 18%;
    bottom: -320px;
    width: 520px;
    height: 520px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    content: "";
    pointer-events: none;
}

/* 面包屑放在蓝色头图内部 */

.testing-breadcrumb {
    position: relative;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
    margin: 0;
    padding: 24px 0 0;
    font-size: 13px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.58);
}

.testing-breadcrumb a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.2s ease;
}

.testing-breadcrumb a:hover {
    color: #ffffff;
}

.testing-breadcrumb span {
    color: rgba(255, 255, 255, 0.42);
}

.testing-breadcrumb strong {
    font-weight: 400;
    color: #ffffff;
}

/* 头图主体 */

.testing-hero-main {
    position: relative;
    z-index: 2;
    display: flex;
    min-height: 290px;
    padding: 40px 0 46px;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.testing-hero-content {
    max-width: 850px;
}

.testing-hero-en {
    display: block;
    margin-bottom: 11px;
    font-family: Arial, sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2.3px;
    color: rgba(255, 255, 255, 0.62);
}

.testing-hero h1 {
    margin: 0;
    padding: 0;
    font-size: 40px;
    line-height: 1.3;
    font-weight: 600;
    letter-spacing: 1px;
    color: #ffffff;
}

.testing-hero-content p {
    max-width: 820px;
    margin: 17px 0 0;
    padding: 0;
    font-size: 16px;
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.82);
}

.testing-hero-side {
    flex: 0 0 auto;
    min-width: 175px;
    padding-left: 30px;
    border-left: 1px solid rgba(255, 255, 255, 0.22);
    text-align: right;
}

.testing-hero-side strong {
    display: block;
    font-family: Arial, sans-serif;
    font-size: 30px;
    line-height: 1.2;
    font-weight: 600;
    letter-spacing: 4px;
    color: rgba(255, 255, 255, 0.94);
}

.testing-hero-side span {
    display: block;
    margin-top: 9px;
    font-size: 13px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.62);
}

/* =========================================================
   业务横向导航
   ========================================================= */

.testing-business-nav {
    position: relative;
    z-index: 5;
    width: 100%;
    margin: 0;
    border-bottom: 1px solid #dce4eb;
    background: #ffffff;
    box-shadow: 0 5px 18px rgba(20, 48, 72, 0.05);
}

.testing-business-nav-inner {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.testing-business-nav a {
    position: relative;
    display: flex;
    min-height: 64px;
    padding: 10px 12px;
    align-items: center;
    justify-content: center;
    border-right: 1px solid #e6ebef;
    font-size: 14px;
    line-height: 1.55;
    text-align: center;
    color: #4e6071;
    text-decoration: none;
    transition: color 0.2s ease, background 0.2s ease;
}

.testing-business-nav a:first-child {
    border-left: 1px solid #e6ebef;
}

.testing-business-nav a::after {
    position: absolute;
    right: 22%;
    bottom: 0;
    left: 22%;
    height: 3px;
    background: #0b5c9d;
    content: "";
    opacity: 0;
    transform: scaleX(0);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.testing-business-nav a:hover {
    background: #f6f9fb;
    color: #0b5c9d;
}

.testing-business-nav a.active {
    background: #f3f8fc;
    font-weight: 600;
    color: #0b5c9d;
}

.testing-business-nav a.active::after {
    opacity: 1;
    transform: scaleX(1);
}

/* =========================================================
   主体
   ========================================================= */

.testing-main {
    width: 100%;
    margin: 0;
    padding: 54px 0 0;
    background: #f5f7f9;
}

.testing-section-number {
    margin-bottom: 12px;
    font-family: Arial, sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    color: #0b5c9d;
}

.testing-section-heading > span {
    display: block;
    margin-bottom: 7px;
    font-family: Arial, sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.8px;
    color: #0b5c9d;
}

.testing-section-heading h2 {
    margin: 0;
    padding: 0;
    font-size: 28px;
    line-height: 1.45;
    font-weight: 600;
    color: #192c3e;
}

/* =========================================================
   服务定位
   ========================================================= */

.testing-position {
    padding: 0 0 48px;
}

.testing-position-content {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 42px;
    margin-top: 21px;
}

.testing-position-content p {
    margin: 0;
    padding: 0;
    font-size: 15px;
    line-height: 2;
    color: #566776;
}

.testing-position-points {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 30px;
    border-top: 1px solid #dce4ea;
    border-left: 1px solid #dce4ea;
    background: #ffffff;
}

.testing-position-point {
    display: flex;
    min-height: 70px;
    padding: 14px 18px;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border-right: 1px solid #dce4ea;
    border-bottom: 1px solid #dce4ea;
}

.testing-position-point strong {
    font-family: Arial, sans-serif;
    font-size: 12px;
    color: #0b5c9d;
}

.testing-position-point span {
    font-size: 14px;
    color: #405264;
}

/* =========================================================
   检测设备列表
   ========================================================= */

.testing-equipment {
    padding: 48px 0;
    border-top: 1px solid #dce4ea;
}

.testing-equipment-heading {
    display: flex;
    margin-bottom: 24px;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
}

.testing-equipment-heading > p {
    max-width: 430px;
    margin: 0;
    padding: 0;
    font-size: 14px;
    line-height: 1.75;
    text-align: right;
    color: #7b8996;
}

/* 大屏每行4台 */

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

.testing-card {
    display: flex;
    min-width: 0;
    height: 100%;
    margin: 0;
    padding: 0;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #dce4ea;
    background: #ffffff;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.testing-card:hover {
    border-color: #b4c8d8;
    box-shadow: 0 13px 30px rgba(24, 52, 76, 0.11);
    transform: translateY(-4px);
}

.testing-card-image {
    position: relative;
    display: block;
    width: 100%;
    height: 190px;
    overflow: hidden;
    background: #e8eef3;
    text-decoration: none;
}

.testing-card-image::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(5, 35, 59, 0.18), transparent 48%);
    content: "";
    pointer-events: none;
}

.testing-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.testing-card:hover .testing-card-image img {
    transform: scale(1.04);
}

.testing-card-label {
    position: absolute;
    z-index: 2;
    top: 13px;
    left: 13px;
    display: inline-flex;
    min-height: 26px;
    padding: 3px 10px;
    align-items: center;
    background: rgba(7, 55, 95, 0.92);
    font-size: 11px;
    color: #ffffff;
}

.testing-card-body {
    display: flex;
    flex: 1;
    padding: 19px;
    flex-direction: column;
}

.testing-card-en {
    display: block;
    margin-bottom: 8px;
    font-family: Arial, sans-serif;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 1.25px;
    color: #0b5c9d;
}

.testing-card h3 {
    margin: 0;
    padding: 0;
    font-size: 17px;
    line-height: 1.55;
    font-weight: 600;
}

.testing-card h3 a {
    color: #1b2d3e;
    text-decoration: none;
    transition: color 0.2s ease;
}

.testing-card h3 a:hover {
    color: #0b5c9d;
}

.testing-card-description {
    display: -webkit-box;
    min-height: 69px;
    margin: 11px 0 0;
    padding: 0;
    overflow: hidden;
    font-size: 13px;
    line-height: 1.75;
    color: #5a6b7a;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.testing-card-more {
    display: flex;
    margin-top: auto;
    padding-top: 15px;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid #ebf0f3;
    color: #0b5c9d;
    text-decoration: none;
}

.testing-card-more span {
    font-size: 13px;
    font-weight: 500;
}

.testing-card-more strong {
    font-family: Arial, sans-serif;
    font-size: 19px;
    line-height: 1;
    font-weight: 400;
    transition: transform 0.2s ease;
}

.testing-card-more:hover strong {
    transform: translateX(4px);
}

/* =========================================================
   分页
   ========================================================= */

.testing-pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 7px;
    margin: 32px 0 0;
}

.testing-pagination:empty {
    display: none;
    margin: 0;
    padding: 0;
}

.testing-pagination a,
.testing-pagination span,
.testing-pagination b {
    display: inline-flex;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    align-items: center;
    justify-content: center;
    border: 1px solid #d8e1e8;
    background: #ffffff;
    font-size: 14px;
    font-weight: 400;
    color: #586978;
    text-decoration: none;
}

.testing-pagination a:hover,
.testing-pagination b,
.testing-pagination .current {
    border-color: #0b5c9d;
    background: #0b5c9d;
    color: #ffffff;
}

/* =========================================================
   服务流程
   ========================================================= */

.testing-process {
    padding: 48px 0;
    border-top: 1px solid #dce4ea;
}

.testing-process-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 25px;
    border-top: 1px solid #dce4ea;
    border-left: 1px solid #dce4ea;
    background: #ffffff;
}

.testing-process-item {
    min-height: 155px;
    padding: 23px;
    border-right: 1px solid #dce4ea;
    border-bottom: 1px solid #dce4ea;
}

.testing-process-item > strong {
    display: block;
    margin-bottom: 20px;
    font-family: Arial, sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #0b5c9d;
}

.testing-process-item h3 {
    margin: 0 0 8px;
    padding: 0;
    font-size: 17px;
    line-height: 1.5;
    font-weight: 600;
    color: #1d2e3f;
}

.testing-process-item p {
    margin: 0;
    padding: 0;
    font-size: 13px;
    line-height: 1.75;
    color: #5d6e7d;
}

/* =========================================================
   底部项目合作
   ========================================================= */

.testing-cooperation {
    display: flex;
    margin: 0;
    padding: 34px 38px;
    align-items: center;
    justify-content: space-between;
    gap: 42px;
    background: linear-gradient(120deg, #07375f 0%, #0b5c9d 100%);
}

.testing-cooperation-content {
    max-width: 830px;
}

.testing-cooperation-content > span {
    display: block;
    margin-bottom: 7px;
    font-family: Arial, sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.8px;
    color: rgba(255, 255, 255, 0.55);
}

.testing-cooperation-content h2 {
    margin: 0;
    padding: 0;
    font-size: 25px;
    line-height: 1.45;
    font-weight: 600;
    color: #ffffff;
}

.testing-cooperation-content p {
    margin: 11px 0 0;
    padding: 0;
    font-size: 14px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.74);
}

.testing-cooperation > a {
    display: inline-flex;
    flex: 0 0 auto;
    min-width: 135px;
    min-height: 44px;
    padding: 0 21px;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    color: #0b5c9d;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.testing-cooperation > a:hover {
    background: #edf4f8;
    color: #07375f;
}

/* 页面主体直接衔接公共底部 */

.testing-main {
    padding-bottom: 0;
}

.testing-main .testing-container > :last-child {
    margin-bottom: 0;
}

.testing-page + footer,
.testing-page + .site-footer {
    margin-top: 0 !important;
}

/* =========================================================
   普通电脑
   ========================================================= */

@media (max-width: 1100px) {
    .testing-card-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .testing-process-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .testing-business-nav a {
        padding-right: 8px;
        padding-left: 8px;
        font-size: 13px;
    }
}

/* =========================================================
   平板
   ========================================================= */

@media (max-width: 820px) {
    .testing-container {
        width: calc(100% - 28px);
    }

    .testing-breadcrumb {
        padding-top: 18px;
        font-size: 12px;
    }

    .testing-hero-main {
        display: block;
        min-height: auto;
        padding: 29px 0 34px;
    }

    .testing-hero h1 {
        font-size: 30px;
    }

    .testing-hero-content p {
        font-size: 14px;
        line-height: 1.8;
    }

    .testing-hero-side {
        display: none;
    }

    .testing-business-nav-inner {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .testing-business-nav a {
        min-height: 54px;
        border-bottom: 1px solid #e6ebef;
    }

    .testing-main {
        padding-top: 38px;
    }

    .testing-section-heading h2 {
        font-size: 23px;
    }

    .testing-position-content {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .testing-position-content p {
        font-size: 14px;
        line-height: 1.9;
    }

    .testing-position-points {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .testing-equipment-heading {
        display: block;
    }

    .testing-equipment-heading > p {
        max-width: none;
        margin-top: 9px;
        text-align: left;
    }

    .testing-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 15px;
    }

    .testing-card-image {
        height: auto;
        aspect-ratio: 4 / 3;
    }

    .testing-process-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .testing-cooperation {
        align-items: flex-start;
        flex-direction: column;
        padding: 28px 24px;
    }

    .testing-cooperation > a {
        width: 100%;
    }
}

/* =========================================================
   手机
   ========================================================= */

@media (max-width: 520px) {
    .testing-container {
        width: calc(100% - 24px);
    }

    .testing-breadcrumb {
        gap: 6px;
        padding-top: 15px;
    }

    .testing-hero-main {
        padding: 24px 0 29px;
    }

    .testing-hero h1 {
        font-size: 27px;
    }

    .testing-hero-en {
        font-size: 10px;
        letter-spacing: 1.5px;
    }

    .testing-business-nav-inner {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .testing-business-nav a {
        min-height: 51px;
        font-size: 12px;
    }

    .testing-main {
        padding-top: 30px;
    }

    .testing-position {
        padding-bottom: 38px;
    }

    .testing-position-points {
        grid-template-columns: 1fr;
    }

    .testing-equipment,
    .testing-process {
        padding: 38px 0;
    }

    .testing-card-grid {
        grid-template-columns: 1fr;
    }

    .testing-card-image {
        aspect-ratio: 16 / 10;
    }

    .testing-card-body {
        padding: 19px;
    }

    .testing-card h3 {
        font-size: 18px;
    }

    .testing-card-description {
        min-height: auto;
    }

    .testing-process-grid {
        grid-template-columns: 1fr;
    }

    .testing-process-item {
        min-height: auto;
        padding: 20px;
    }

    .testing-cooperation {
        padding: 25px 21px;
    }

    .testing-cooperation-content h2 {
        font-size: 22px;
    }
}