
/* ==========================================================================
   安全产品矩阵页（/products）
   设计稿：1920 宽，内容区 1200px（container 1248 - 左右 24 内边距）
   首屏按 1920×839 等比缩放（与 mlps / security 一致），其余板块用常规流式布局。
   ========================================================================== */

.prd-page {
    background: #fff;
    color: #333;
}

.prd-page .prd-title {
    margin: 0;
    font-family: var(--font-bold);
    font-size: 36px;
    font-weight: 700;
    line-height: 50px;
    letter-spacing: .5px;
    color: #333;
    text-align: center;
}

.prd-page .prd-subtitle {
    margin: 6px 0 0;
    font-family: var(--font-normal);
    font-size: 20px;
    font-weight: 400;
    line-height: 28px;
    color: #666;
    text-align: center;
}


/* ------------------------------ 首屏 ------------------------------ */

.prd-hero {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #e9f3ff;
    container-type: inline-size;
    min-height: calc(100vw * 839 / 1920);
    height: auto;
}

.prd-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.prd-hero-scale {
    --cqw-length: 100cqw; /* 先按容器宽度解析成 px 再进 atan2，避免部分浏览器跨单位返回 0 */
    --hero-scale: tan(atan2(var(--cqw-length), 1920px)); /* hero 实际宽度 / 1920 */
    position: relative;
    z-index: 1;
    max-width: 1920px;
    min-height: 839px;
    margin: 0 auto;
    zoom: var(--hero-scale);
}

.prd-hero-copy {
    padding: 136px 0 0 34px;
}

.prd-hero-title {
    margin: 0;
    font-family: var(--font-bold);
    font-size: 60px;
    font-weight: 700;
    line-height: 72px;
    letter-spacing: 1px;
    color: #000;
}

.prd-hero-desc {
    max-width: 781px;
    margin: 36px 0 0;
    font-family: var(--font-normal);
    font-size: 26px;
    font-weight: 400;
    line-height: 44px;
    color: #333;
}

.prd-hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 76px 0 0;
    padding: 0;
    list-style: none;
}

.prd-hero-tags li {
    display: inline-flex;
    align-items: center;
    height: 53px;
    padding: 0 24px;
    border: 1px solid #4b75a3;
    border-radius: 14px;
    font-family: var(--font-normal);
    font-size: 26px;
    line-height: 1;
    color: #333;
}


/* --------------------------- 首屏快捷入口 --------------------------- */

.prd-quick-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 8cqh;
}

.prd-quick-card {
    display: flex;
    min-height: 142px;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 20px 18px;
    background: url("../images/quick-card-bg.png") center / 100% 100% no-repeat;
    border-radius: 10px;
    text-decoration: none;
    transition: box-shadow .22s ease, transform .22s ease;
}

.prd-quick-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 26px rgba(35, 87, 145, .16);
}

.prd-quick-icon {
    display: block;
    width: 36px;
    height: 34px;
    flex: 0 0 auto;
}

.prd-quick-title {
    margin-top: 2px;
    font-family: var(--font-medium);
    font-size: 30px;
    font-weight: 500;
    line-height: 40px;
    color: #000;
}

.prd-quick-desc {
    margin-top: 3px;
    font-family: var(--font-normal);
    font-size: 20px;
    line-height: 28px;
    color: #666;
}


/* --------------------------- 产品卡片列表 --------------------------- */

.prd-products {
    padding: 66px 0 78px;
    background: #fff;
}

.prd-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 61px;
}

.prd-card {
    display: flex;
    width: calc((100% - 60px) / 4);
    min-height: 602px;
    flex-direction: column;
    padding: 37px 30px 20px;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 6px 18px rgba(120, 178, 232, .28);
    transition: box-shadow .22s ease, transform .22s ease;
}

.prd-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 34px -18px rgba(78, 162, 255, .55);
}

.prd-card-icon {
    display: block;
    width: 80px;
    height: 80px;
    margin: 0 auto;
}

.prd-card-title {
    margin: 31px 0 0;
    font-family: var(--font-bold);
    font-size: 30px;
    font-weight: 700;
    line-height: 40px;
    color: #333;
    text-align: center;
}

.prd-card-title a {
    color: inherit;
    text-decoration: none;
}

.prd-card-title a:hover {
    color: var(--primary);
}

.prd-card-desc {
    min-height: 210px;
    margin: 14px 0 0;
    font-family: var(--font-normal);
    font-size: 20px;
    line-height: 30px;
    color: #666;
}

.prd-card-offer {
    margin-top: auto;
    padding-top: 12px;
}

.prd-card-offer strong {
    display: block;
    font-family: var(--font-normal);
    font-size: 20px;
    font-weight: 400;
    line-height: 28px;
    color: #1c6fef;
}

.prd-card-offer span {
    display: block;
    margin-top: 5px;
    font-family: var(--font-normal);
    font-size: 20px;
    line-height: 28px;
    color: #1c6fef;
}

.prd-card-btn {
    display: flex;
    width: 151px;
    height: 41px;
    align-items: center;
    justify-content: center;
    margin: 17px auto 0;
    border-radius: 8px;
    background: #1c6fef;
    font-family: var(--font-medium);
    font-size: 18px;
    font-weight: 500;
    line-height: 1;
    color: #fff;
    text-decoration: none;
    transition: background .2s ease;
}

.prd-card-btn:hover {
    background: #1760ce;
    color: #fff;
}

.prd-products .u-consult-wrap {
    margin-top: 52px;
}

.prd-products .u-consult {
    height: 56px;
}

.prd-products .u-consult-btn {
    width: 258px;
}


/* --------------------------- 产品区别对比 --------------------------- */

.prd-compare {
    padding: 54px 0 102px;
    background:
        radial-gradient(96% 46% at 50% 26%, rgba(255, 255, 255, .92) 0%, rgba(255, 255, 255, 0) 62%),
        linear-gradient(180deg, #dcedfd 0%, #cfe4fa 26%, #e6f2fd 54%, #f5fafd 80%, #f7fbfe 100%);
}

.prd-table {
    margin-top: 51px;
    overflow: hidden;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 14px 36px rgba(96, 154, 214, .18);
}

.prd-thead,
.prd-tr {
    display: grid;
    grid-template-columns: 124px minmax(0, 1fr);
    padding: 0 12px;
}

.prd-thead {
    grid-template-columns: 124px repeat(6, minmax(0, 1fr));
    height: 93px;
    align-items: center;
    background: linear-gradient(180deg, #f4f9ff 0%, #eaf2ff 100%);
}

.prd-th {
    padding: 0 4px;
    font-family: var(--font-medium);
    font-size: 22px;
    font-weight: 500;
    line-height: 30px;
    color: #333;
    text-align: center;
}

.prd-th-label {
    width: 110px;
}

.prd-tr {
    border-top: 1px solid transparent;
}

.prd-tr.is-line {
    border-top-color: #e6e6e6;
}

.prd-td-label {
    display: flex;
    width: 110px;
    align-items: center;
    justify-content: center;
    margin: 2px 0;
    border-radius: 8px;
    background: linear-gradient(180deg, #11aefd 0%, #0e77ef 100%);
    font-family: var(--font-bold);
    font-size: 24px;
    font-weight: 700;
    line-height: 30px;
    color: #fff;
}

.prd-tr-body {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.prd-tr.is-alt .prd-tr-body {
    background: linear-gradient(90deg, #f3f9fe 0%, #d7eaff 100%);
    border-radius: 0 8px 8px 0;
}

/* 单元格内容上下左右居中（行高由该行最高的单元格撑开，其余单元格垂直居中） */
.prd-td {
    display: grid;
    align-content: center;
    padding: 22px 8px;
    font-family: var(--font-normal);
    font-size: 18px;
    line-height: 30px;
    color: #333;
    text-align: center;
}

.prd-td-last {
    padding: 22px 3px;
    text-align: center;
}

.prd-td-tags {
    padding-top: 12px;
    padding-bottom: 12px;
}

.prd-tags {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.prd-tag {
    display: inline-flex;
    height: 27px;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    border: 1px solid #4f85df;
    border-radius: 14px;
    background: #e6effe;
    font-family: var(--font-normal);
    font-size: 16px;
    line-height: 1;
    color: #4f85df;
    white-space: nowrap;
}


/* --------------------------- 场景架构图 --------------------------- */

.prd-arch {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #d9e8ff;
    container-type: inline-size;
}

.prd-arch-bg {
    display: block;
    width: 100%;
    height: auto;
}

.prd-arch-scale {
    --cqw-length: 100cqw; /* 先按容器宽度解析成 px 再进 atan2，避免部分浏览器跨单位返回 0 */
    --arch-scale: tan(atan2(var(--cqw-length), 1920px));
    position: absolute;
    top: 0;
    left: 0;
    width: 1920px;
    padding-top: 49px;
    zoom: var(--arch-scale);
}


/* --------------------------- 选择我们的理由 --------------------------- */

.prd-why {
    padding: 135px 0 35px;
    background: #fff;
}

.prd-why-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    column-gap: 16px;
    row-gap: 22px;
    margin-top: 52px;
}

.prd-why-card {
    width: calc((100% - 32px) / 3);
    overflow: hidden;
    border-radius: 8px;
    background: #fff;
}

.prd-why-card-wide {
    width: calc((100% - 16px) / 2);
}

.prd-why-head {
    display: flex;
    height: 57px;
    align-items: center;
    justify-content: center;
    margin: 0;
    border-radius: 8px 8px 0 0;
    background: #0659d5;
    font-family: var(--font-bold);
    font-size: 30px;
    font-weight: 700;
    line-height: 1;
    color: #fff;
}

.prd-why-body {
    display: flex;
    min-height: 152px;
    align-items: center;
    gap: 15px;
    padding: 13px 22px 19px;
    background: linear-gradient(180deg, #f2f9fe 0%, #ffffff 100%);
}

.prd-why-body p {
    flex: 1 1 auto;
    margin: 0;
    font-family: var(--font-normal);
    font-size: 18px;
    line-height: 30px;
    color: #333;
}

.prd-why-icon {
    display: block;
    width: 90px;
    height: 90px;
    flex: 0 0 auto;
    margin-left: auto;
}


/* ------------------------------ 响应式 ------------------------------ */

@media (max-width: 1280px) {
    .prd-card {
        padding: 30px 24px 18px;
        min-height: 0;
    }

    .prd-card-desc {
        min-height: 0;
    }

    .prd-card-offer {
        padding-top: 22px;
    }

    .prd-td-label {
        font-size: 21px;
    }

    .prd-td {
        font-size: 17px;
        line-height: 28px;
        padding: 20px 6px;
    }

    .prd-tag {
        padding: 0 14px;
        font-size: 15px;
    }
}

@media (max-width: 1024px) {
    .prd-products {
        padding: 56px 0 60px;
    }

    .prd-grid {
        margin-top: 42px;
    }

    .prd-card {
        width: calc((100% - 20px) / 2);
    }

    .prd-compare {
        padding: 48px 0 64px;
    }

    .prd-thead,
    .prd-tr {
        grid-template-columns: 96px minmax(0, 1fr);
    }

    .prd-thead {
        grid-template-columns: 96px repeat(6, minmax(0, 1fr));
        height: 76px;
        padding: 0 8px;
    }

    .prd-tr {
        padding: 0 8px;
    }

    .prd-th {
        font-size: 17px;
        line-height: 24px;
        padding: 0 4px;
    }

    .prd-th-label,
    .prd-td-label {
        width: 86px;
    }

    .prd-td-label {
        font-size: 18px;
        line-height: 24px;
    }

    .prd-td {
        font-size: 15px;
        line-height: 25px;
        padding: 16px 5px;
    }

    .prd-tags {
        gap: 3px;
    }

    .prd-tag {
        height: 24px;
        padding: 0 10px;
        font-size: 13px;
    }

    .prd-why {
        padding: 84px 0 30px;
    }

    .prd-why-card,
    .prd-why-card-wide {
        width: calc((100% - 16px) / 2);
    }

    .prd-why-head {
        height: 52px;
        font-size: 24px;
    }

    .prd-why-body {
        min-height: 0;
        padding: 16px 14px 18px 18px;
    }

    .prd-why-body p {
        font-size: 16px;
        line-height: 27px;
    }

    .prd-why-icon {
        width: 68px;
        height: 68px;
    }
}

/* 首屏文案：桌面/平板按档位放大，避免等比缩得太小 */
@media (min-width: 1024px) {
    .prd-hero-title {
        font-size: calc(60px * max(var(--hero-typo), var(--hero-scale)) / var(--hero-scale));
        line-height: calc(72px * max(var(--hero-typo), var(--hero-scale)) / var(--hero-scale));
    }

    .prd-hero-desc {
        font-size: calc(26px * max(var(--hero-typo), var(--hero-scale)) / var(--hero-scale));
        line-height: calc(44px * max(var(--hero-typo), var(--hero-scale)) / var(--hero-scale));
    }

    .prd-hero-tags li {
        font-size: calc(26px * max(var(--hero-typo), var(--hero-scale)) / var(--hero-scale));
    }
}

/* 平板及以下：首屏不再整体等比缩放，改为常规流式排布，保证小屏可读 */
@media (max-width: 1023px) {
    .prd-hero {
        min-height: 0;
        height: auto;
        background: linear-gradient(180deg, #eaf4ff 0%, #f2f8ff 62%, #ffffff 100%);
    }

    .prd-hero-bg {
        position: static;
        display: block;
        width: 100%;
        height: auto;
    }

    .prd-hero-scale {
        zoom: 1;
        min-height: 0;
        padding-bottom: 26px;
    }

    .prd-hero-copy {
        padding: 26px 0 0;
    }

    .prd-hero-title {
        font-size: 34px;
        line-height: 46px;
        letter-spacing: 0;
    }

    .prd-hero-desc {
        max-width: 100%;
        margin-top: 14px;
        font-size: 15px;
        line-height: 26px;
    }

    .prd-hero-tags {
        gap: 10px;
        margin-top: 18px;
    }

    .prd-hero-tags li {
        height: 36px;
        padding: 0 14px;
        border-radius: 9px;
        font-size: 14px;
    }

    .prd-quick-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        margin-top: 22px;
    }

    .prd-quick-card {
        min-height: 0;
        padding: 14px 16px 16px;
    }

    .prd-quick-icon {
        width: 30px;
        height: 28px;
    }

    .prd-quick-title {
        margin-top: 8px;
        font-size: 18px;
        line-height: 26px;
    }

    .prd-quick-desc {
        margin-top: 2px;
        font-size: 12px;
        line-height: 18px;
    }

    /* 架构图：小屏不再叠字，标题在上、整图在下 */
    .prd-arch {
        display: flex;
        flex-direction: column-reverse;
    }

    .prd-arch-scale {
        position: static;
        width: 100%;
        padding: 28px 0 18px;
        zoom: 1;
    }
}

@media (max-width: 760px) {
    .prd-page .prd-title {
        font-size: 26px;
        line-height: 38px;
    }

    .prd-page .prd-subtitle {
        font-size: 15px;
        line-height: 24px;
    }

    .prd-hero-copy {
        padding: 22px 0 0;
    }

    .prd-hero-title {
        font-size: 27px;
        line-height: 38px;
    }

    .prd-quick-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .prd-quick-card {
        min-height: 0;
        padding: 14px 18px 16px;
    }

    .prd-products {
        padding: 40px 0 46px;
    }

    .prd-grid {
        gap: 14px;
        margin-top: 28px;
    }

    .prd-card {
        width: 100%;
        padding: 26px 24px 22px;
    }

    .prd-card-title {
        font-size: 24px;
        line-height: 34px;
        margin-top: 18px;
    }

    .prd-card-offer {
        padding-top: 16px;
    }

    .prd-products .u-consult-wrap {
        margin-top: 30px;
    }

    .prd-compare {
        padding: 40px 0 46px;
    }

    .prd-table {
        margin-top: 26px;
        padding: 10px;
        background: transparent;
        box-shadow: none;
        border-radius: 0;
    }

    .prd-thead {
        display: none;
    }

    .prd-tr {
        display: block;
        margin-bottom: 12px;
        padding: 0;
        border-top: 0;
        border-radius: 10px;
        background: #fff;
        box-shadow: 0 6px 16px rgba(120, 178, 232, .22);
        overflow: hidden;
    }

    .prd-td-label {
        width: 100%;
        margin: 0;
        border-radius: 0;
        padding: 12px 0;
        font-size: 19px;
        line-height: 26px;
    }

    .prd-tr-body {
        grid-template-columns: 1fr;
        padding: 6px 16px 14px;
        background: none;
    }

    .prd-tr.is-alt .prd-tr-body {
        background: linear-gradient(90deg, #f3f9fe 0%, #d7eaff 100%);
    }

    .prd-td {
        display: block;
        padding: 10px 0;
        font-size: 15px;
        line-height: 26px;
        text-align: left;
    }

    .prd-td-last {
        padding: 10px 0;
    }

    .prd-td::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 2px;
        font-family: var(--font-medium);
        font-size: 13px;
        line-height: 20px;
        color: #7a8aa6;
    }

    .prd-tags {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 6px;
    }

    .prd-arch-scale {
        padding-top: 22px;
    }

    .prd-why {
        padding: 46px 0 24px;
    }

    .prd-why-grid {
        margin-top: 26px;
        row-gap: 14px;
    }

    .prd-why-card,
    .prd-why-card-wide {
        width: 100%;
    }

    .prd-why-head {
        height: 46px;
        font-size: 20px;
    }

    .prd-why-body {
        padding: 14px 16px 16px;
    }

    .prd-why-body p {
        font-size: 15px;
        line-height: 25px;
    }

    .prd-why-icon {
        width: 60px;
        height: 60px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .prd-card,
    .prd-card:hover,
    .prd-quick-card,
    .prd-quick-card:hover,
    .prd-card-btn {
        transform: none;
        transition: none;
    }
}
