/**
 * 标准产品卡片（可复用）
 * - 整块卡片可点击：前三卡为 <a.pc-card>；含视频的第四卡为 .pc-card--video + .pc-card-hit
 * - 悬停：仅鼠标在文字块上时 .pc-card-body 底色 #00233D，标题与介绍反白（图/视频区不变）
 * - 一行四卡：固定列宽 330 + gap 12，整轨 justify-content:center（满行左右留白对等；不满行仍从左列排）
 * - 图/视频区 205 + 文字块 295；卡片外框 330×500
 */

.pc-section-title {
    font-size: 42px;
    font-family: "HarmonyOS Sans SC Light";
    font-weight: normal;
    color: #132a3e;
    margin: 0 0 40px 0;
    padding: 0;
    line-height: 1.25;
    text-align: center;
}

.pc-products-inner {
    max-width: var(--kyd-container-max, 1920px);
    margin: 0 auto;
    padding: 0 var(--kyd-container-pad, 24px);
    box-sizing: border-box;
}

.pc-grid {
    display: grid;
    grid-template-columns: repeat(4, 330px);
    gap: 12px;
    justify-content: center;
    margin: 0;
    padding: 0;
}

/* 中屏整档（1025–1439）：两列定宽居中；图/视频跟卡同宽 */
@media screen and (min-width: 1025px) and (max-width: 1439px) {
    .pc-products-inner {
        max-width: min(96vw, 1360px);
    }
    .pc-grid {
        grid-template-columns: repeat(2, minmax(0, 330px));
        justify-content: center;
        justify-items: center;
    }
    .pc-card {
        width: 100%;
        max-width: 330px;
        height: auto;
        min-height: 460px;
    }
    .pc-card-img,
    .pc-card-video {
        width: 100%;
    }
}

@media screen and (min-width: 768px) and (max-width: 1024px) {
    .pc-grid {
        grid-template-columns: repeat(2, minmax(0, 330px));
        justify-content: center;
        justify-items: center;
    }
    .pc-card {
        width: 100%;
        max-width: 330px;
        height: auto;
        min-height: 460px;
    }
    .pc-card-img,
    .pc-card-video {
        width: 100%;
    }
}

@media screen and (max-width: 767px) {
    .pc-grid {
        grid-template-columns: minmax(0, 330px);
        justify-content: center;
        justify-items: center;
    }
}

/* 无产品 / 加载失败等提示（各页多用 .rs-empty，亦可 .pc-empty） */
.pc-empty,
.rs-empty {
    display: block;
    width: 100%;
    box-sizing: border-box;
    margin: 0;
    padding: 24px 0;
    text-align: center;
    color: #666666;
    font-size: 16px;
}

a.pc-card {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.pc-card {
    width: 330px;
    height: 500px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
    border: none;
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
}

.pc-card-img {
    width: 330px;
    height: 205px;
    flex-shrink: 0;
    overflow: hidden;
}

.pc-card-img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pc-card-video {
    width: 330px;
    height: 205px;
    flex-shrink: 0;
    overflow: hidden;
    background-color: #000;
    position: relative;
    z-index: 2;
}

.pc-card-video video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pc-card-body {
    flex: none;
    height: 295px;
    min-height: 0;
    padding: 28px 8px 0;
    display: flex;
    flex-direction: column;
    text-align: left;
    overflow: hidden;
    transition: background-color 0.2s ease, color 0.2s ease;
}

/* 视频卡：正文区单独成链，整块可点由前三卡承担；此处仅文字链接触发悬停 */
a.pc-card-body {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    box-sizing: border-box;
}

/* 名称略浅；描述比名称再深一点，层次更清晰 */
.pc-card-title {
    font-size: 23px;
    font-weight: 400;
    line-height: 1.4;
    margin: 0 0 18px 0;
    padding: 0;
    color: #4a4a4a;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    transition: color 0.2s ease;
}

.pc-card-desc {
    font-size: 17px;
    line-height: 1.6;
    color: #222222;
    margin: 0;
    padding: 0;
    flex: none;
    max-height: calc(1.6em * 6);
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 6;
    line-clamp: 6;
    overflow-wrap: break-word;
    transition: color 0.2s ease;
}

/* 悬停：仅文字块区域（不含图/视频） */
.pc-card-body:hover {
    background-color: #00233d;
}

.pc-card-body:hover .pc-card-title,
.pc-card-body:hover .pc-card-desc {
    color: #ffffff;
}

@media screen and (max-width: 1679px) {
    .pc-section-title {
        font-size: max(var(--kyd-text-sm-min, 14px), calc(42px * var(--kyd-text-scale, 1)));
    }
}

@media screen and (max-width: 767px) {
    .pc-section-title {
        margin-bottom: 28px;
    }

    .pc-products-inner {
        padding-left: 16px;
        padding-right: 16px;
    }

    .pc-card {
        width: 100%;
        max-width: 330px;
        height: auto;
        min-height: 500px;
        margin-left: auto;
        margin-right: auto;
    }

    .pc-card-body {
        height: auto;
        min-height: 295px;
    }

    .pc-card-img,
    .pc-card-video {
        width: 100%;
        max-width: 330px;
        margin: 0;
    }
}
