/* 本页描述统一：20px，宽度与内容区一致 */
.n-page-desc {
    width: 1400px;
    margin: 16px auto 0;
    font-size: 20px !important;
    line-height: 1.5;
    box-sizing: border-box;
}

/* 移动端导航下拉箭头：公共 24px 过大，缩小对齐 14px 文案 */
@media screen and (max-width: 768px) {
    .nav-show div {
        min-width: 0;
    }

    .nav-show span {
        white-space: nowrap;
    }

    .nav-show img {
        width: 24px !important;
        height: 24px !important;
        margin-left: 6px;
        flex-shrink: 0;
        object-fit: contain;
    }
}

/* 方案概览：架构图（对齐支柱页 #jiagou）+ 三价值 */
#solution {
    padding: 80px 0 0;
}

#solution .n-page-content {
    width: 100%;
}

.ps-value-cards-wrap {
    width: 100%;
    background: #181818;
    padding: 40px 0 80px;
    box-sizing: border-box;
}

.ps-value-cards {
    display: flex;
    gap: 24px;
    justify-content: center;
    box-sizing: border-box;
    width: 1400px;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
}

.ps-value-card {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
    justify-content: flex-end;
    padding: 24px;
    border-radius: 4px;
    background: rgba(42, 43, 46, 0.5);
    backdrop-filter: blur(10px);
    box-sizing: border-box;
    text-align: center;
}

.ps-value-card__title {
    margin: 0;
    color: #ffffff;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.5;
}

.ps-value-card__desc {
    margin: 0;
    color: rgba(255, 255, 255, 0.75);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
}

/* 两大核心产品 */
#value {
    background: #ffffff;
}

#value .n-page-content {
    margin-top: 32px;
}

.ps-core-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-bottom: 60px;
}

.ps-core-top-tabs {
    display: flex;
    justify-content: center;
    align-items: stretch;
    width: fit-content;
    max-width: 100%;
    border-bottom: 1px solid #e3e5e6;
    box-sizing: border-box;
}

.ps-core-top-tabs > div {
    position: relative;
    padding: 12px 32px;
    color: #6a6b6d;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.5;
    text-align: center;
    white-space: nowrap;
    cursor: pointer;
    background: transparent;
    border: none;
}

.ps-core-top-tabs > div.is-active {
    color: #e60039;
}

.ps-core-top-tabs > div.is-active::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 100%;
    height: 2px;
    background: #e60039;
    z-index: 1;
}

.ps-core-panel {
    display: none;
}

.ps-core-panel.is-active {
    display: block;
}

.ps-core-body {
    display: flex;
    gap: 40px;
    align-items: stretch;
}

.ps-core-left-tabs {
    width: 400px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 16px;
    box-sizing: border-box;
    background: #f7f9fa;
    border-radius: 8px;
    align-self: stretch;
}

.ps-core-left-tab {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
    padding: 40px 16px;
    border-radius: 4px;
    background: transparent;
    cursor: pointer;
    box-sizing: border-box;
    min-height: 0;
}

.ps-core-left-tab.is-active {
    flex: 0 0 auto;
    padding: 24px 16px;
    background: #ffffff;
}

.ps-core-left-label {
    color: #2a2b2e;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.5;
}

.ps-core-left-tab.is-active .ps-core-left-label {
    color: #0175e8;
}

.ps-core-left-desc {
    display: none;
    color: #6a6b6d;
    font-size: 16px;
    line-height: 1.5;
    margin-top: 12px;
}

.ps-core-left-tab.is-active .ps-core-left-desc {
    display: block;
}

.ps-core-content {
    flex: 1;
    min-width: 0;
    position: relative;
    background: #f7f9fa;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
}

.ps-core-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.ps-core-video {
    width: 100%;
    height: auto;
    display: none;
    object-fit: contain;
    background: #f7f9fa;
}

.ps-core-video::-webkit-media-controls-fullscreen-button,
.ps-core-m-video::-webkit-media-controls-fullscreen-button {
    display: none !important;
}

.ps-core-mobile {
    display: none;
}

.ps-core-mobile .n-tabs-resource_m {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    margin-bottom: 8px;
    background: #f7f9fa;
    border-radius: 4px;
    color: #2a2b2e;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.5;
    cursor: pointer;
    box-sizing: border-box;
}

.ps-core-mobile .n-tabs-resource_m img {
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
}

.ps-core-mobile .n-tabs-resource-active_m img {
    transform: rotate(180deg);
}

@media screen and (max-width: 1440px) {
    .n-page-desc {
        width: 1200px;
    }

    .ps-value-cards {
        width: 1200px;
    }
}

@media screen and (max-width: 1280px) {
    .n-page-desc {
        width: 1080px;
    }

    .ps-value-cards {
        width: 1080px;
    }

    .ps-core-left-tabs {
        width: 320px;
        padding: 12px;
        gap: 12px;
    }

    .ps-core-top-tabs > div {
        padding: 10px 20px;
        font-size: 16px;
    }

    .ps-core-left-tab {
        padding: 24px 12px;
    }

    .ps-core-left-tab.is-active {
        padding: 16px 12px;
    }

    .ps-core-left-label {
        font-size: 20px;
    }

    .ps-core-left-desc {
        font-size: 14px;
    }

    .ps-value-card__title {
        font-size: 18px;
    }

    .ps-value-card__desc {
        font-size: 14px;
    }

    .ps-core-content {
        min-height: 400px;
    }
}

@media screen and (max-width: 768px) {
    .n-page-desc {
        width: 100%;
        padding: 0 20px;
        font-size: 14px !important;
    }

    /* 方案架构移动端：对齐 Figma 41:1211，PC 样式不变 */
    #solution {
        padding: 40px 0;
        background: #ffffff;
    }

    #solution .n-page-title {
        width: 100%;
        padding: 0 20px;
        box-sizing: border-box;
        font-size: 24px;
        line-height: 1.2;
        color: #2a2b2e;
    }

    #solution .n-page-desc {
        margin-top: 16px;
        padding: 0 20px;
        font-size: 14px !important;
        line-height: 1.5;
        color: #6a6b6d;
        text-align: center;
    }

    #solution .n-page-desc br {
        display: none;
    }

    #solution .n-page-content {
        margin-top: 20px;
        padding: 0 20px;
        box-sizing: border-box;
    }

    #solution .n-jiagou-img {
        display: block;
        width: 100%;
        height: auto;
        border-radius: 4px;
    }

    #solution .zoomBtn {
        right: 28px;
        bottom: 12px;
        width: 32px;
        height: 32px;
        margin: 0;
        padding: 0;
        line-height: 0;
    }

    #solution .zoomBtn img {
        display: block;
        width: 32px;
        height: 32px;
        object-fit: contain;
    }

    #solution .ps-value-cards-wrap {
        background: transparent;
        padding: 20px 20px 0;
    }

    #solution .ps-value-cards {
        width: 100%;
        flex-direction: column;
        gap: 24px;
        padding: 0;
    }

    #solution .ps-value-card {
        flex: none;
        width: 100%;
        gap: 12px;
        padding: 16px;
        border-radius: 4px;
        background: #f7f9fa;
        backdrop-filter: none;
        justify-content: center;
    }

    #solution .ps-value-card__title {
        color: #2a2b2e;
        font-size: 20px;
        font-weight: 700;
        line-height: 1.5;
    }

    #solution .ps-value-card__desc {
        color: #6a6b6d;
        font-size: 14px;
        font-weight: 400;
        line-height: 1.5;
    }

    .ps-core-header {
        display: none;
    }

    .ps-core-desktop {
        display: none;
    }

    .ps-core-mobile {
        display: block;
        width: 100%;
    }

    .ps-core-mobile-block {
        margin-bottom: 8px;
    }

    .ps-core-mobile-item {
        background: #f7f9fa;
        border-radius: 8px;
        padding: 16px;
        box-sizing: border-box;
        margin-bottom: 16px;
    }

    .ps-core-mobile-text .ps-core-left-label {
        font-size: 18px;
        color: #2a2b2e;
        margin-bottom: 8px;
    }

    .ps-core-mobile-text .ps-core-left-desc {
        display: block;
        margin-top: 0;
        font-size: 14px;
    }

    .ps-core-mobile-media {
        margin-top: 16px;
        border-radius: 4px;
        overflow: hidden;
        background: #ffffff;
    }

    .ps-core-mobile-media img,
    .ps-core-mobile-media video {
        display: block;
        width: 100%;
        height: auto;
        max-height: none;
        object-fit: contain;
        background: #f7f9fa;
        /* 避免部分机型把 video 当全屏层拉起 */
        position: relative;
        z-index: 1;
    }
}
