/* AIDC / RG-ONC Analyzer 页面局部样式 */

/* 覆盖 main-v1.1.css 的 crisp-edges，避免侧栏/页脚 SVG 图标发粗发糊 */
img {
    image-rendering: unset;
    image-rendering: unset;
    image-rendering: unset;
    image-rendering: unset;
    -ms-interpolation-mode: unset;
}

.l_sideli img,
.l_back img {
    width: 24px;
    max-width: 24px;
    height: auto;
}

/* Figma 83:530 常态公告条 */
.aidc-notice {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 88px;
    padding: 8px 40px;
    box-sizing: border-box;
    overflow: hidden;
    background: #0035CF url(../RJ-img/notice-bar.webp) center / cover no-repeat;
    color: #fff;
}

.aidc-notice::before,
.aidc-notice::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 228px;
    pointer-events: none;
}

.aidc-notice::before {
    left: 0;
    background: linear-gradient(-86deg, rgba(0, 49, 203, 1) 49%, rgba(0, 49, 203, 0) 100%);
}

.aidc-notice::after {
    right: 0;
    background: linear-gradient(86deg, rgba(0, 113, 236, 1) 47%, rgba(0, 113, 236, 0) 100%);
}

.aidc-notice-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 24px;
    max-width: 1400px;
    width: 100%;
}

.aidc-notice-text {
    margin: 0;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.5;
    text-align: center;
}

.aidc-notice-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 6px 16px;
    border-radius: 4px;
    background: #E60039;
    color: #fff;
    font-size: 14px;
    line-height: 1.5;
    text-decoration: none;
    white-space: nowrap;
    box-sizing: border-box;
}

.aidc-notice-btn:hover {
    background: #CC002D;
    color: #fff;
}

.n-banner-text .whiteBtn {
    background: #FFFFFF;
    color: #E60039;
    border: none;
    cursor: pointer;
}

.n-banner-text .whiteBtn:hover {
    background: #CC002D;
    color: #FFF;
}

.n-project-page .nav-show img {
    width: 14px !important;
    max-width: 14px !important;
    height: 7px !important;
    margin-left: 8px;
    float: none;
    object-fit: contain;
    flex-shrink: 0;
}

.aidc-section {
    background: #F7F9FA;
}

.aidc-section .n-page-title {
    margin-bottom: 40px;
}

#ops .aidc-cat-tabs {
    margin-bottom: 16px;
}

#ops .aidc-ops-desc {
    margin-top: 0;
    margin-bottom: 40px;
}

#ops .aidc-cat-panel > .aidc-ops-desc {
    display: block;
}

.aidc-section-note {
    margin: 24px auto 0;
    max-width: 1400px;
    text-align: center;
    color: #9B9FA8;
    font-size: 12px;
    line-height: 150%;
}

.aidc-section-desc {
    margin: 0 auto 40px;
    max-width: 1080px;
    text-align: center;
    color: #6A6B6D;
    font-size: 20px;
    line-height: 150%;
}

/* 顶部品类切换（方案相关产品-品类切换） */
.aidc-cat-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 1400px;
    margin: 0 auto 40px;
}

.aidc-cat-tabs h3 {
    position: relative;
    padding: 12px 32px;
    margin: 0;
    color: #6A6B6D;
    font-size: 20px;
    font-weight: 400;
    line-height: 150%;
    cursor: pointer;
}

.aidc-cat-tabs h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: #E3E5E6;
}

.aidc-cat-tabs h3.active {
    color: #E60039;
    font-weight: 400;
}

.aidc-cat-tabs h3.active::after {
    background: #E60039;
}

.aidc-cat-panel {
    width: 100%;
}

.aidc-full-media {
    max-width: 1400px;
    margin: 0 auto;
}

.aidc-full-media img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    background: #fff;
}

/* 左 tab + 右媒体 */
.aidc-value-desktop {
    display: block;
}

.aidc-value-body {
    display: flex;
    gap: 40px;
    align-items: stretch;
    max-width: 1400px;
    margin: 0 auto;
}

.aidc-value-left-wrap {
    width: 400px;
    flex-shrink: 0;
    background: #FFFFFF;
    border-radius: 8px;
    padding: 16px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
    align-self: stretch;
}

.aidc-value-left-tab {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
    padding: 40px 16px;
    border-radius: 0;
    background: transparent;
    border-left: 2px solid transparent;
    cursor: pointer;
    box-sizing: border-box;
    gap: 12px;
    flex: 1;
}

.aidc-value-left-tab.is-active {
    padding: 16px;
    background: #F7F9FA;
    border-left-color: #0175E8;
    flex: none;
}

.aidc-left-label {
    color: #2A2B2E;
    font-size: 24px;
    font-weight: 700;
    line-height: 150%;
}

.aidc-value-left-tab.is-active .aidc-left-label {
    color: #0175E8;
}

.aidc-left-desc {
    display: none;
    color: #6A6B6D;
    font-size: 16px;
    line-height: 150%;
}

.aidc-value-left-tab.is-active .aidc-left-desc {
    display: block;
}

.aidc-value-content {
    flex: 1;
    min-width: 0;
    position: relative;
    background: #FFFFFF;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    max-width: 960px;
    aspect-ratio: 960 / 554;
}

.aidc-value-content video,
.aidc-value-content > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 点击播放封面：避免 preload/seek 后 poster 被首帧顶掉 */
.aidc-video-cover {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    pointer-events: none;
}

.aidc-value-content.is-playing .aidc-video-cover,
.aidc-m-media.is-playing .aidc-video-cover {
    display: none;
}

/* Figma 83:541 点击后在当前位置播放 */
.aidc-value-content.is-paused::after,
.aidc-m-media.is-paused::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    pointer-events: none;
    z-index: 2;
}

.aidc-play-btn {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 3;
    width: 64px;
    height: 64px;
    padding: 0;
    border: 0;
    background: transparent;
    transform: translate(-50%, -50%);
    cursor: pointer;
}

.aidc-play-btn img {
    width: 64px;
    height: 64px;
    display: block;
    object-fit: contain;
}

.aidc-value-content.is-playing .aidc-play-btn,
.aidc-m-media.is-playing .aidc-play-btn {
    display: none;
}

.aidc-value-content.is-playing,
.aidc-m-media.is-playing {
    cursor: pointer;
}

.aidc-m-media {
    position: relative;
}

.aidc-value-mobile {
    display: none;
}

.aidc-cat-bar {
    display: none;
}

/* 开放兼容架构图 */
#open-compat .n-page-content {
    max-width: 1400px;
}

#open-compat .aidc-arch-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

/* 相关方案：复用 fa-1 组件，Figma 83:762 双卡居中 */
#related-fa {
    background: #FFFFFF;
    padding-bottom: 40px;
}

#related-fa .aidc-fa-box {
    justify-content: center;
    gap: 24px;
}

#related-fa .n-fa-card {
    width: 451px;
    height: 520px;
    background: #F1F8FE;
}

#related-fa .n-fa-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#related-fa .n-fa-more {
    color: #0174E8;
}

/* 客户案例样式2 背景覆盖 */
#anli-2 {
    background-image:
        linear-gradient(90deg, rgba(241, 248, 255, 1) 24%, rgba(241, 248, 255, 0.75) 73%, rgba(241, 248, 255, 0.95) 92%),
        url(../RJ-img/caseBg.webp);
    background-size: cover;
    background-position: center;
}

#anli-2 .transparent-commonlink::after {
    background-image: url(../RJ-img/link.svg);
}

#anli-2 .caseImg img {
    border-radius: 4px;
}

@media screen and (max-width: 1600px) {
    .aidc-section-desc {
        font-size: 16px;
    }

    .aidc-left-label {
        font-size: 20px;
    }
}

@media screen and (max-width: 1200px) {
    .aidc-value-body {
        gap: 24px;
    }

    .aidc-value-left-wrap {
        width: 320px;
    }

    .aidc-left-label {
        font-size: 18px;
    }
}

@media screen and (max-width: 768px) {
    .aidc-notice {
        min-height: 72px;
        padding: 12px 16px;
        background: #0031CB;
    }

    .aidc-notice::before,
    .aidc-notice::after {
        display: none;
    }

    .aidc-notice-inner {
        gap: 12px;
    }

    .aidc-notice-text {
        font-size: 14px;
    }

    /* Figma 52:337 / 52:1824 移动端样式2：品类条展开收起 + 卡片列表 */
    .aidc-feature.aidc-section {
        background: #FFFFFF;
    }

    .aidc-cat-tabs-pc {
        display: none;
    }

    .aidc-feature .aidc-cat-panel {
        display: block !important;
        margin-bottom: 8px;
    }

    .aidc-feature .aidc-cat-panel > .aidc-value-desktop,
    .aidc-feature .aidc-cat-panel > .aidc-section-desc,
    .aidc-feature .aidc-cat-panel > .aidc-full-media,
    .aidc-feature .aidc-cat-panel > .aidc-value-mobile {
        display: none;
    }

    .aidc-feature .aidc-cat-panel.is-active > .aidc-value-desktop {
        display: none;
    }

    .aidc-feature .aidc-cat-panel.is-active > .aidc-value-mobile,
    .aidc-feature .aidc-cat-panel.is-active > .aidc-section-desc,
    .aidc-feature .aidc-cat-panel.is-active > .aidc-full-media {
        display: block;
    }

    .aidc-cat-bar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        box-sizing: border-box;
        min-height: 46px;
        padding: 0 12px;
        margin: 0 0 24px;
        background: #F1F3F5;
        border-bottom: 1px solid transparent;
        color: #6A6B6D;
        font-size: 16px;
        font-weight: 400;
        line-height: 1.5;
        cursor: pointer;
    }

    .aidc-cat-bar span {
        padding-right: 12px;
    }

    .aidc-cat-bar .aidc-cat-arrow {
        width: 24px;
        height: 24px;
        flex-shrink: 0;
        transform: rotate(270deg);
        transition: transform .2s;
    }

    .aidc-cat-bar.is-open {
        margin-bottom: 24px;
        border-bottom-color: #E60039;
        color: #2A2B2E;
        font-weight: 700;
    }

    .aidc-cat-bar.is-open .aidc-cat-arrow {
        transform: none;
    }

    .aidc-feature .aidc-cat-panel.is-active .aidc-cat-bar {
        margin-bottom: 24px;
    }

    .aidc-feature .aidc-cat-panel:not(.is-active) .aidc-cat-bar {
        margin-bottom: 8px;
    }

    #ops .aidc-ops-desc {
        margin: 0 0 24px;
        padding: 0;
        font-size: 16px;
        text-align: left;
    }

    .aidc-feature .aidc-cat-panel > .aidc-ops-desc {
        display: none;
    }

    .aidc-feature .aidc-cat-panel.is-active > .aidc-ops-desc {
        display: block;
    }

    .aidc-value-desktop {
        display: none;
    }

    .aidc-feature .aidc-cat-panel.is-active > .aidc-value-mobile {
        display: flex;
        flex-direction: column;
        gap: 24px;
        padding: 0;
    }

    .aidc-m-card {
        display: flex;
        flex-direction: column;
        gap: 16px;
        padding: 16px;
        border-radius: 8px;
        background: #F7F9FA !important;
        box-sizing: border-box;
    }

    .aidc-m-title {
        color: #0175E8;
        font-size: 20px;
        font-weight: 700;
        line-height: 1.5;
    }

    .aidc-m-card .aidc-m-desc {
        margin-top: 0;
        color: #6A6B6D;
        font-size: 14px;
        line-height: 1.5;
    }

    .aidc-m-card .aidc-m-media {
        margin-top: 0;
    }

    .aidc-full-media {
        padding: 0;
    }

    .aidc-section-desc {
        font-size: 14px;
        margin-bottom: 16px;
        padding: 0;
        text-align: left;
    }

    .aidc-feature {
        padding-left: 20px;
        padding-right: 20px;
    }

    .aidc-section-note {
        padding: 0 16px;
        margin-top: 16px;
    }

    #related-fa .aidc-fa-box {
        gap: 16px;
    }

    #related-fa .n-fa-card {
        width: 100%;
        max-width: 451px;
        height: auto;
        aspect-ratio: 451 / 520;
    }

    .aidc-m-media {
        margin-top: 12px;
        border-radius: 8px;
        overflow: hidden;
        background: #fff;
    }

    .aidc-m-media:has(video) {
        aspect-ratio: 960 / 554;
    }

    .aidc-m-media video {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    .aidc-m-media > img:not(.aidc-video-cover) {
        width: 100%;
        height: auto;
        display: block;
    }

    .aidc-m-media .aidc-play-btn img {
        width: 64px;
        height: 64px;
    }

    .aidc-m-desc {
        color: #6A6B6D;
        font-size: 14px;
        line-height: 150%;
        margin-top: 8px;
    }
    .caseInfo {
        padding: 0px!important;
    }
}
