/* 算力服务器列表与型号详情 */
@font-face {
    font-family: 'Source Han Sans SC Web';
    src: url('../fonts/SourceHanSansSC-Regular-subset.woff2') format('woff2');
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: 'Source Han Sans SC Web';
    src: url('../fonts/SourceHanSansSC-Medium-subset.woff2') format('woff2');
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: 'Source Han Sans SC Web';
    src: url('../fonts/SourceHanSansSC-Bold-subset.woff2') format('woff2');
    font-weight: 700;
    font-display: swap;
}

.computing-server-page {
    color: #1a1a22;
    background: #fff;
    font-family: 'Source Han Sans SC Web', "Noto Sans SC", "思源黑体", "PingFang SC", "Microsoft YaHei", sans-serif;
}

.computing-server-page .head {
    position: relative;
    z-index: 20;
    background: #fff;
}

.cps-wrap {
    width: 1600px;
    max-width: calc(100% - 80px);
    margin: 0 auto;
}

/* —— 列表 Banner：直接显示 1920×510 设计导出图 —— */
.cps-banner {
    position: relative;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 1920 / 510;
    background: #e8e6fb;
}

.cps-banner-art {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.cps-banner-art img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100% !important;
    height: auto !important;
    max-width: none !important;
    object-fit: contain;
    object-position: center center;
}

/* 图片内置“立即咨询”按钮的无障碍可点击热区 */
.cps-banner-hotspot {
    position: absolute;
    z-index: 1;
    left: 8.9%;
    top: 68.2%;
    width: 14.2%;
    height: 16.2%;
    cursor: pointer;
}

/* 智算一体机列表：与首页 banner-1（1920×688）同一张图，铺满方式同算力服务器列表 */
.computing-solution-list-page .cps-banner {
    aspect-ratio: 1920 / 688;
    background: #e8f3fb;
}

.computing-solution-list-page .cps-banner-art img {
    width: 100% !important;
    height: auto !important;
    object-fit: contain;
    object-position: center center;
}

.cps-banner-hotspot-full {
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
}

.cps-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-sizing: border-box;
    height: 44px;
    padding: 0 28px;
    border: 0;
    border-radius: 22px;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    background: linear-gradient(90deg, #5b5cff 0%, #2d7bff 100%);
    box-shadow: 0 8px 18px rgba(45, 123, 255, 0.28);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cps-btn:hover {
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(45, 123, 255, 0.36);
}

.cps-btn svg {
    display: block;
    width: 18px;
    height: 18px;
}

.cps-crumb {
    padding: 18px 0 0;
    color: #999;
    font-size: 14px;
    line-height: 1;
}

.cps-crumb a {
    color: #999;
    text-decoration: none;
}

.cps-crumb a:hover {
    color: #2d71db;
}

.cps-crumb-sep {
    margin: 0 8px;
    color: #bbb;
}

/* —— 四台设备：按设计稿比例展示真实透明产品图 —— */
.cps-devices {
    border: 0;
    outline: 0;
    padding: 62px 0 86px;
    background: #f7faff;
}

.cps-devices-head {
    margin-bottom: 48px;
    text-align: center;
}

.cps-devices-head h2 {
    margin: 0;
    color: #202b3b;
    font-size: clamp(28px, 2.2vw, 42px);
    font-weight: 400;
    line-height: 1.35;
}

.cps-devices-head p {
    margin: 10px 0 0;
    color: #354d6a;
    font-size: clamp(14px, 1.25vw, 24px);
    line-height: 1.5;
}

.cps-device-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(24px, 3.2vw, 64px);
}

.cps-device-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
}

.cps-device-card .cps-device-image {
    display: flex;
    width: 100%;
    height: clamp(150px, 13vw, 250px);
    align-items: center;
    justify-content: center;
}

.cps-device-card img {
    display: block;
    width: auto !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: clamp(150px, 13vw, 250px);
    object-fit: contain;
}

.cps-device-card-3500a img,
.cps-device-card-3500b img {
    max-width: clamp(220px, 22vw, 420px) !important;
}

.cps-device-card-9508a img,
.cps-device-card-9508b img {
    max-width: clamp(260px, 25vw, 480px) !important;
}

.cps-device-card h3 {
    margin: 14px 0 4px;
    color: #1d344f;
    font-size: clamp(14px, 1.15vw, 22px);
    font-weight: 400;
    line-height: 1.4;
    text-align: center;
}

.cps-device-card h3 a {
    color: inherit;
    text-decoration: none;
}

.cps-device-card h3 a:hover {
    color: #2d71db;
}

.cps-device-card > p {
    margin: 0;
    color: #344e6b;
    font-size: clamp(12px, .83vw, 16px);
    line-height: 1.5;
    text-align: center;
}

.cps-btn-query {
    min-width: clamp(64px, 6vw, 114px);
    height: clamp(24px, 2.15vw, 41px);
    margin-top: clamp(14px, 1.1vw, 21px);
    padding: 0 clamp(10px, 1.05vw, 20px);
    border: 1px solid #465462;
    border-radius: 0;
    color: #2f455d;
    font-size: clamp(11px, .78vw, 15px);
    font-weight: 400;
    background: transparent;
    box-shadow: none;
}

.cps-btn-query:hover {
    border-color: #2d71db;
    color: #fff;
    background: #2d71db;
    box-shadow: none;
}

/* —— 详情 Hero —— */
.cps-hero {
    padding: 64px 0 32px;
    background: #fff;
}

.cps-hero-body {
    display: flex;
    align-items: center;
    gap: 72px;
}

.cps-hero-image {
    display: flex;
    flex: 0 0 460px;
    width: 460px;
    height: 280px;
    align-items: center;
    justify-content: center;
}

.cps-hero-image img {
    display: block;
    width: auto !important;
    height: auto !important;
    max-width: 100%;
    max-height: 280px;
    object-fit: contain;
}

.cps-hero-copy {
    flex: 1;
    min-width: 0;
}

.cps-hero-copy h1 {
    margin: 0;
    color: #1a1a22;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.4;
}

.cps-hero-copy .cps-product-series {
    margin: 8px 0 0;
    color: #4a5874;
    font-size: 16px;
    line-height: 1.5;
}

.cps-hero-copy p {
    margin: 20px 0 0;
    color: #4a5874;
    font-size: 17px;
    line-height: 1.7;
    text-align: justify;
}

/* —— 产品特点 —— */
.cps-features {
    padding: 64px 0 24px;
}

.cps-section-title {
    margin: 0 0 40px;
    color: #1a1a22;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 6px;
    text-align: center;
    line-height: 1.4;
}

.cps-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px 40px;
}

.cps-feature-grid article {
    text-align: center;
}

.cps-feature-icon {
    display: flex;
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    align-items: center;
    justify-content: center;
    border: 1px solid #d7e4f7;
    border-radius: 50%;
    background: #f4f8ff;
    color: #2d71db;
}

.cps-feature-icon svg {
    width: 26px;
    height: 26px;
}

.cps-feature-grid h3 {
    margin: 0 0 12px;
    color: #1a1a22;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.45;
}

.cps-feature-grid p {
    margin: 0;
    color: #555;
    font-size: 13px;
    line-height: 1.8;
}

/* —— 规格表 —— */
.cps-spec {
    padding: 64px 0 24px;
}

.cps-spec-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

.cps-spec-table th,
.cps-spec-table td {
    padding: 16px 28px;
    border-bottom: 1px solid #ebeff5;
    text-align: left;
    font-size: 14px;
    line-height: 1.7;
}

.cps-spec-table tr:nth-child(odd) {
    background: #f7f9fc;
}

.cps-spec-table th {
    width: 180px;
    color: #667085;
    font-weight: 400;
}

.cps-spec-table td {
    color: #333;
}

/* —— 相关资源 —— */
.cps-related {
    padding: 64px 0 96px;
}

.cps-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.cps-related-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px 16px 28px;
    border-radius: 8px;
    box-shadow: 0 10px 32px rgba(26, 39, 68, 0.07);
    text-decoration: none;
}

.cps-related-card img {
    display: block;
    width: auto !important;
    height: auto !important;
    max-width: 100%;
    max-height: 140px;
    margin: 0 auto;
    object-fit: contain;
}

.cps-related-card strong {
    display: block;
    margin-top: 14px;
    color: #1a1a22;
    font-size: 15px;
    font-weight: 500;
}

.cps-related-card:hover strong {
    color: #2d71db;
}

@media (max-width: 900px) {
    .cps-banner {
        aspect-ratio: 1920 / 510;
    }

    .cps-hero-image {
        flex-basis: auto;
        width: 100%;
        height: 220px;
    }

    .cps-device-grid,
    .cps-feature-grid,
    .cps-compatibility-grid,
    .cps-related-grid {
        grid-template-columns: 1fr 1fr;
    }

    .cps-devices-head h2 {
        font-size: 32px;
    }

    .cps-devices-head p {
        font-size: 18px;
    }

    .cps-hero-body {
        display: block;
    }

    .cps-hero-image {
        margin-bottom: 24px;
    }
}

@media (max-width: 560px) {
    .cps-device-grid,
    .cps-feature-grid,
    .cps-compatibility-grid,
    .cps-related-grid {
        grid-template-columns: 1fr;
    }
}

/* 型号详情页版式 */
.computing-server-page main {
    background: #fff;
}

.computing-server-detail-page,
.computing-server-detail-page main {
    background: #f5f5f5;
}

.computing-server-detail-page .cps-wrap {
    width: 1360px;
    max-width: calc(100% - 32px);
}

.computing-server-page .cps-crumb {
    padding-top: 18px;
    color: #999;
    font-size: 12px;
}

.computing-server-detail-page .cps-hero {
    padding: 40px 0 32px;
    background: #f5f5f5;
}

.computing-server-page .cps-intro-title {
    margin: 0 0 28px;
    color: #333;
    font-size: 25px;
    font-weight: 700;
    letter-spacing: 5px;
    line-height: 1.4;
    text-align: center;
    white-space: nowrap;
}

.computing-server-page .cps-intro-title::after {
    display: block;
    width: 38px;
    height: 3px;
    margin: 7px auto 0;
    background: #a52b2d;
    content: '';
}

.computing-server-detail-page .cps-hero-body {
    display: flex;
    align-items: center;
    gap: 56px;
    padding: 40px 48px;
    box-sizing: border-box;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.computing-server-detail-page .cps-hero-image {
    display: flex;
    flex: 0 1 42%;
    width: auto;
    max-width: 480px;
    height: auto;
    min-height: 0;
    align-items: center;
    justify-content: center;
}

.computing-server-detail-page .cps-hero-image img {
    width: auto !important;
    height: auto !important;
    max-width: 100%;
    max-height: 280px;
    object-fit: contain;
}

.computing-server-detail-page .cps-hero-copy {
    display: flex;
    flex: 1;
    min-height: 0;
    flex-direction: column;
    justify-content: center;
    padding: 0;
    box-sizing: border-box;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.computing-server-page .cps-title-line {
    display: flex;
    align-items: baseline;
    gap: 5px;
}

.computing-server-detail-page .cps-hero-copy h1 {
    margin: 0;
    color: #333;
    font-size: 18px;
    line-height: 1.5;
}

.computing-server-detail-page .cps-hero-copy .cps-product-series {
    margin: 0;
    color: #333;
    font-size: 18px;
    font-weight: 700;
}

.computing-server-detail-page .cps-hero-copy p:not(.cps-product-series) {
    margin-top: 26px;
    font-family: 'Source Han Sans SC Web', "Noto Sans SC", "思源黑体", "PingFang SC", "Microsoft YaHei", sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #333;
    line-height: 1.7;
    letter-spacing: normal;
    text-align: left;
}

.computing-server-page .cps-features,
.computing-server-page .cps-spec,
.computing-server-page .cps-related {
    padding: 0 0 40px;
}

.computing-server-page .cps-section-title {
    margin: 0 0 22px;
    color: #333;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 5px;
    line-height: 1.4;
    text-align: left;
}

.computing-server-page .cps-section-title::before {
    display: inline-block;
    width: 0;
    height: 0;
    margin: 0 16px 0 8px;
    border-top: 9px solid transparent;
    border-bottom: 9px solid transparent;
    border-left: 10px solid #a52b2d;
    vertical-align: 1px;
    content: '';
}

.computing-server-page .cps-features .cps-section-title {
    text-align: left;
}

.computing-server-page .cps-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    align-items: stretch;
}

.computing-server-page .cps-feature-grid article {
    display: flex;
    height: 100%;
    min-height: 0;
    box-sizing: border-box;
    flex-direction: column;
    padding: 18px 16px 14px;
    text-align: left;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 6px 22px rgba(0, 0, 0, .08);
}

.computing-server-page .cps-feature-icon {
    display: none;
}

.computing-server-page .cps-feature-grid h3 {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin: 0 0 16px;
    color: #1a1a22;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
}

.computing-server-page .cps-feature-num {
    flex: none;
    color: #a52b2d;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.computing-server-page .cps-compatibility {
    margin-top: 36px;
    padding: 0 0 40px;
}

.computing-server-page .cps-compatibility-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    align-items: stretch;
}

.computing-server-page .cps-compatibility-grid article {
    display: flex;
    height: 100%;
    min-height: 0;
    flex-direction: column;
    padding: 16px 18px 14px;
    box-sizing: border-box;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 6px 22px rgba(0, 0, 0, .08);
}

.computing-server-page .cps-compatibility-grid h3 {
    margin: 0 0 10px;
    color: #333;
    font-size: 18px;
    font-weight: 700;
}

.computing-server-page .cps-compatibility-grid p,
.computing-server-page .cps-compatibility-grid ul {
    margin: 0;
    padding: 0;
    color: #333;
    font-size: 14px;
    line-height: 1.7;
    list-style: none;
}

.computing-server-page .cps-compatibility-grid li {
    position: relative;
    margin: 0;
    padding-left: 16px;
    font-family: 'Source Han Sans SC Web', "Noto Sans SC", "思源黑体", "PingFang SC", "Microsoft YaHei", sans-serif;
    font-size: 13px;
    font-weight: 400;
    color: #333;
    line-height: 1.55;
    letter-spacing: normal;
}

.computing-server-page .cps-compatibility-grid li::before {
    position: absolute;
    top: 9px;
    left: 0;
    width: 6px;
    height: 6px;
    background: #222;
    content: '';
}

.computing-server-page .cps-feature-grid ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.computing-server-page .cps-feature-grid li {
    position: relative;
    margin: 0 0 8px;
    padding-left: 16px;
    font-family: 'Source Han Sans SC Web', "Noto Sans SC", "思源黑体", "PingFang SC", "Microsoft YaHei", sans-serif;
    font-size: 13px;
    font-weight: 400;
    color: #333;
    line-height: 1.55;
    letter-spacing: normal;
}

.computing-server-page .cps-feature-grid li:last-child {
    margin-bottom: 0;
}

.computing-server-page .cps-feature-grid li::before {
    position: absolute;
    top: 9px;
    left: 0;
    width: 6px;
    height: 6px;
    background: #222;
    content: '';
}

.computing-server-page .cps-spec-table {
    box-shadow: 0 4px 14px rgba(0, 0, 0, .08);
}

.computing-server-page .cps-spec-table tr:nth-child(odd) {
    background: #fff;
}

.computing-server-page .cps-spec-table th,
.computing-server-page .cps-spec-table td {
    padding: 12px 24px;
    border-bottom: 1px solid #eee;
    font-size: 14px;
    line-height: 1.65;
}

.computing-server-page .cps-spec-table th {
    width: 110px;
    color: #222;
    font-weight: 700;
}

.computing-server-page .cps-spec-table td {
    color: #222;
}

.computing-server-page .cps-resource-heading {
    margin-bottom: 8px;
    letter-spacing: 6px;
    text-align: center;
}

.computing-server-page .cps-resource-heading::before {
    display: none;
}

.computing-server-page .cps-resource-more {
    display: block;
    margin: 0 auto 18px;
    border: 0;
    color: #1474c4;
    background: transparent;
    font-size: 14px;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

.computing-server-page .cps-resource-more:hover {
    color: #0d5fa3;
    text-decoration: none;
}

.computing-server-page .cps-resource-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.computing-server-page .cps-resource-grid-single {
    grid-template-columns: 1fr;
    max-width: 640px;
    margin: 0 auto;
}

.computing-server-page .cps-resource-card {
    display: flex;
    min-height: 78px;
    align-items: center;
    gap: 14px;
    padding: 16px 32px;
    box-sizing: border-box;
    color: #222;
    background: #fafafa;
    font-size: 14px;
}

.computing-server-page .cps-resource-icon {
    display: inline-flex;
    width: 50px;
    height: 50px;
    align-items: center;
    justify-content: center;
    border: 1px dashed #aaa;
    color: #888;
    font-size: 24px;
}

@media (min-width: 1200px) {
    .computing-server-page .cps-feature-grid li,
    .computing-server-page .cps-compatibility-grid li {
        white-space: nowrap;
        font-size: 12px;
    }
}

@media (min-width: 1440px) {
    .computing-server-page .cps-feature-grid li,
    .computing-server-page .cps-compatibility-grid li {
        font-size: 13px;
    }
}

@media (max-width: 1199px) {
    .computing-server-page .cps-feature-grid li,
    .computing-server-page .cps-compatibility-grid li {
        white-space: normal;
    }
}

@media (max-width: 900px) {
    .computing-server-detail-page .cps-hero-body {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 24px;
        padding: 28px 24px;
    }

    .computing-server-detail-page .cps-hero-copy {
        min-height: 0;
        padding: 0;
        width: 100%;
    }

    .computing-server-detail-page .cps-hero-image {
        flex: none;
        width: 100%;
        max-width: 100%;
    }

    .computing-server-page .cps-feature-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 560px) {
    .computing-server-page .cps-feature-grid,
    .computing-server-page .cps-compatibility-grid {
        grid-template-columns: 1fr;
    }

    .computing-server-detail-page .cps-hero-image img {
        max-height: 200px;
    }

    .computing-server-page .cps-resource-grid {
        grid-template-columns: 1fr;
    }
}

/* 相关资源下载卡片：卡片本体是 <a download>，去掉链接默认样式并加 hover 反馈 */
.computing-server-page a.cps-resource-card {
    text-decoration: none;
}

.computing-server-page a.cps-resource-card:hover {
    background: #eef5fc;
}

/* ===== Hover 动效：算力服务器/智算一体机 banner 与设备卡 ===== */
.cps-banner-art img {
    transition: transform .6s ease;
    will-change: transform;
}

.cps-banner:hover .cps-banner-art img {
    transform: scale(1.04);
}

.cps-device-card .cps-device-image img {
    transition: transform .45s cubic-bezier(.22,.61,.36,1), filter .45s ease;
    will-change: transform;
}

.cps-device-card:hover .cps-device-image img {
    animation: cpsDeviceFloat 2.2s ease-in-out infinite;
    filter: drop-shadow(0 18px 24px rgba(29, 52, 79, 0.18));
}

@keyframes cpsDeviceFloat {
    0%, 100% { transform: translateY(-6px) scale(1.05); }
    50%      { transform: translateY(-14px) scale(1.05); }
}
