/* 西安建筑科技大学案例页 - 按设计稿补充 */
.n-banner {
    overflow: hidden;
    border-bottom-right-radius: 160px;
}
.n-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #235C95 24.26%, rgba(1, 65, 130, 0) 79.92%);
    pointer-events: none;
    z-index: 1;
}
.n-banner-text {
    position: absolute;
    z-index: 2;
}
.n-main-btn:hover{
    color: #fff;
}
/* Banner 文案间距：主标→副标 24px，副标→按钮 56px（设计稿 Frame 17887） */
.n-banner-text h1 {
    line-height: 150%;
}
.n-banner-text h2 {
    margin-top: 24px;
    font-size: 16px;
    font-weight: 400;
    line-height: 150%;
}
.n-banner-text a {
    margin-top: 56px;
}
.n-banner picture,
.n-banner img {
    display: block;
}

/* 板块标题：红线距标题 22px、高 6px；概述正文距红线 34px */
.n-project-page .n-page-title::after {
    content: '';
    display: block;
    width: 43px;
    height: 6px;
    margin: 22px auto 0;
    background: #E60039;
}

.n-project-page .n-page-desc {
    width: 1400px;
    max-width: 100%;
    margin-top: 34px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

/* 内容区上间距：设计稿 40px（覆盖公共 60px） */
.n-project-page .n-page-content {
    margin-top: 40px;
}

.n-project-info:has(.n-fa-box) > .n-page-title::after {
    display: none;
}

/* 产品卡：标题 / 描述 / 链接 均为 16px 间距 */
.n-fa-desc {
    margin-bottom: 0;
}
.n-fa-more {
    margin-top: 16px;
    padding: 0;
}

.n-overview-video {
    position: relative;
    width: 960px;
    max-width: 100%;
    margin: 0 auto;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
}
.n-overview-video img {
    width: 100%;
    display: block;
}

.n-problem-box {
    display: flex;
    gap: 24px;
}
.n-problem-card {
    flex: 1;
    background: #f7f9fa;
    padding: 24px;
    border-bottom: 1px solid #e60039;
}
.n-problem-title {
    color: #2a2b2e;
    font-size: 20px;
    font-weight: 700;
    line-height: 150%;
    margin-bottom: 16px;
}
.n-problem-desc {
    color: #6a6b6d;
    font-size: 16px;
    line-height: 150%;
}

.n-solution-box {
    display: flex;
    gap: 24px;
    align-items: center;
}
#solution .n-solution-img {
    width: 688px;
    max-width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}
.n-solution-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}
.n-solution-item {
    background: #f1f3f5;
    border-left: 3px solid #e60039;
    padding: 16px 22px;
}
.n-solution-item .n-title {
    color: #2a2b2e;
    font-size: 20px;
    font-weight: 700;
    line-height: 150%;
    margin-bottom: 8px;
}
.n-solution-item .n-desc {
    color: #6a6b6d;
    font-size: 16px;
    line-height: 150%;
}

.n-mid-cta {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
    background: #fafbfc url("../RJ-img/cta-bg.webp") center / cover no-repeat;
}
.n-mid-cta p {
    color: #2a2b2e;
    font-size: 18px;
    line-height: 150%;
}
.n-mid-cta .n-main-btn {
    height: 48px;
    padding: 0 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

#results .n-result-box {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}
#results .n-result-content {
    width: calc(50% - 12px);
    display: flex;
    align-items: center;
    gap: 16px;
    background: #f7f9fa;
    border-radius: 8px;
    padding: 24px;
    box-sizing: border-box;
}
#results .n-result-content img {
    width: 90px;
    height: 90px;
    flex-shrink: 0;
}
#results .n-result-content .n-title {
    color: #2a2b2e;
    font-size: 20px;
    font-weight: 700;
    line-height: 150%;
    margin-bottom: 16px;
}
#results .n-result-content .n-desc {
    color: #6a6b6d;
    font-size: 16px;
    line-height: 150%;
}

#contactus {
    padding: 40px 0;
    margin: 0;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.5) 100%),
        url("../RJ-img/contact-bg.webp") center / cover no-repeat,
        #fff;
}
#contactus .n-page-content {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin: 0 auto;
    gap: 24px;
}
#contactus .n-contact-left {
    display: flex;
    align-items: center;
    order: 1;
    flex-shrink: 0;
}
#contactus .n-contact-left img {
    width: 289px;
    height: 220px;
    object-fit: cover;
    object-position: top center;
    flex-shrink: 0;
}
#contactus .n-box-title {
    order: 2;
    flex: 1;
    color: #2a2b2e;
    font-size: 30px;
    font-weight: 700;
    line-height: 150%;
    margin-bottom: 0;
    text-align: left;
}
#contactus .n-contact-btns {
    order: 3;
    display: flex;
    align-items: center;
    gap: 24px;
    flex-shrink: 0;
}
#contactus .n-contact-btns .n-main-btn {
    width: 200px;
    height: 46px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.n-case-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.7);
    align-items: center;
    justify-content: center;
}
.n-case-modal.is-open {
    display: flex;
}
.n-case-modal > div {
    position: relative;
    width: min(960px, 90vw);
}
.n-case-modal video {
    width: 100%;
    display: block;
    background: #000;
}
.n-case-modal .n-close-btn {
    position: absolute;
    right: -12px;
    top: -40px;
    width: 28px;
    height: 28px;
    cursor: pointer;
}

@media screen and (max-width: 1600px) {
    .n-project-page .n-page-desc {
        width: 1200px;
    }
    .n-overview-video {
        width: 820px;
    }
    #solution .n-solution-img {
        width: 588px;
    }
    .n-banner {
        border-bottom-right-radius: 120px;
    }
    .n-banner-text h2 {
        margin-top: 24px;
        font-size: 16px;
        font-weight: 400;
    }
    .n-banner-text a {
        margin-top: 56px;
    }
    #contactus .n-box-title {
        font-size: 24px;
    }
    #contactus .n-contact-left img {
        width: 240px;
        height: 182px;
    }
    .n-solution-item .n-desc {
        font-size: 14px;
    }
    .n-solution-item .n-title {
        font-size: 18px;
        margin-bottom: 6px;
    }
    .n-solution-item {
        padding: 12px 22px;
    }
}

@media screen and (max-width: 1280px) {
    .n-project-page .n-page-desc {
        width: 1080px;
    }
    .n-overview-video {
        width: 720px;
    }
    .n-problem-title,
    .n-solution-item .n-title,
    #results .n-result-content .n-title {
        font-size: 18px;
    }
    .n-problem-desc,
    .n-solution-item .n-desc,
    #results .n-result-content .n-desc {
        font-size: 14px;
    }
    #solution .n-solution-img {
        width: 480px;
    }
    .n-banner-text h2 {
        margin-top: 24px;
        font-size: 16px;
        font-weight: 400;
    }
    .n-banner-text a {
        margin-top: 48px;
    }
    .n-mid-cta {
        height: 100px;
        gap: 32px;
    }
    .n-mid-cta p {
        font-size: 16px;
    }
    #results .n-result-content img {
        width: 72px;
        height: 72px;
    }
    #contactus .n-box-title {
        font-size: 20px;
    }
    #contactus .n-contact-left img {
        width: 200px;
        height: 152px;
    }
    #contactus .n-contact-btns .n-main-btn {
        width: 160px;
    }
    .n-solution-item .n-desc {
        font-size: 12px;
    }
    .n-solution-item .n-title {
        font-size: 16px;
        margin-bottom: 4px;
    }
    .n-solution-item {
        padding: 8px 22px;
    }
}

@media screen and (max-width: 768px) {
    /* 移动端 Banner：上图下文 + 深色文案底（设计稿 916:3449） */
    .n-banner {
        display: flex;
        flex-direction: column;
        border-bottom-right-radius: 0;
        overflow: hidden;
    }
    .n-banner::after {
        display: none !important;
        content: none !important;
    }
    .n-banner picture {
        order: 1;
        display: block;
        width: 100%;
        line-height: 0;
    }
    .n-banner picture img {
        width: 100%;
        display: block;
    }
    .n-banner-text {
        position: relative !important;
        order: 2;
        left: 0 !important;
        top: auto !important;
        transform: none !important;
        width: 100% !important;
        padding: 20px;
        box-sizing: border-box;
        background: #081829;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        column-gap: 16px;
    }
    .n-banner-text h1,
    .n-banner-text h2 {
        width: 100%;
        flex: 0 0 100%;
    }
    .n-banner-text h1 {
        font-size: 24px;
        font-weight: 700;
        line-height: 150%;
    }
    .n-banner-text h1 span,
    .n-banner-text h2 span {
        color: #ffffff !important;
    }
    .n-banner-text h2 {
        margin-top: 16px;
        font-size: 14px;
        font-weight: 400;
        line-height: 150%;
    }
    .n-banner-text a {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        flex: 1 1 0;
        width: auto;
        min-width: 0;
        margin-top: 40px;
        margin-right: 0 !important;
        height: 40px;
        padding: 0 12px;
        line-height: 1.5;
        text-align: center;
        box-sizing: border-box;
        font-size: 14px;
    }
    .n-banner-text a:last-child {
        margin-right: 0;
    }
    .n-banner-text .whiteBtn {
        background: #ffffff !important;
        color: #e60039 !important;
        border: 1px solid #e60039 !important;
    }
    .n-banner-text .whiteBtn:hover {
        background: #cc002d !important;
        color: #ffffff !important;
    }

    .n-project-page .n-page-title::after {
        margin-top: 16px;
    }
    .n-project-page .n-page-desc {
        width: 100%;
        margin-top: 24px;
        padding: 0 20px;
        box-sizing: border-box;
        text-align: left;
    }
    .n-project-page .n-page-content {
        margin-top: 24px;
    }
    .n-overview-video {
        width: 100%;
    }
    .n-problem-box {
        flex-direction: column;
        gap: 16px;
    }
    .n-problem-title {
        margin-bottom: 16px;
    }
    .n-solution-item .n-title {
        margin-bottom: 8px;
    }
    .n-solution-box {
        flex-direction: column;
    }
    #solution .n-solution-img {
        width: 100%;
        height: auto;
    }
    .n-mid-cta {
        height: auto;
        flex-direction: column;
        gap: 16px;
        padding: 32px 20px;
        text-align: center;
    }
    .n-mid-cta .n-main-btn {
        height: 44px;
        padding: 0 40px;
        font-size: 16px;
    }

    /* 移动端成效卡：上图标下文案（设计稿 916:3516） */
    #results .n-result-box {
        gap: 16px;
    }
    #results .n-result-content {
        width: 100%;
        flex-direction: column;
        align-items: center;
        gap: 16px;
        padding: 16px;
    }
    #results .n-result-content img {
        width: 90px;
        height: 90px;
    }
    #results .n-result-content > div {
        width: 100%;
    }
    #results .n-result-content .n-title {
        margin-bottom: 16px;
        font-size: 18px;
        text-align: left;
    }
    #results .n-result-content .n-desc {
        text-align: left;
        font-size: 14px;
    }

    /* 移动端联系我们：标题 → 并排按钮 → 头像（设计稿 916:3583） */
    #contactus {
        padding: 40px 20px;
        background:
            linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.5) 100%),
            url("../RJ-img/contact-bg.webp") center / cover no-repeat,
            #f9fbff;
    }
    #contactus .n-page-content {
        width: 100%;
        flex-direction: column;
        align-items: center;
        gap: 24px;
        padding: 0;
        margin: 0 auto;
        text-align: center;
    }
    #contactus .n-box-title {
        order: 1;
        font-size: 20px;
        text-align: center;
    }
    #contactus .n-contact-btns {
        order: 2;
        width: 100%;
        flex-direction: row;
        justify-content: center;
        gap: 16px;
    }
    #contactus .n-contact-btns .n-main-btn {
        flex: 1;
        width: auto;
        height: 44px;
    }
    #contactus .n-contact-btns .whiteBtn {
        background: #fff !important;
        color: #e60039 !important;
        border: 1px solid #e60039 !important;
    }
    #contactus .n-contact-left {
        order: 3;
    }
    #contactus .n-contact-left img {
        width: 100%;
        height: auto;
    }
    .n-case-modal .n-close-btn {
        right: 0;
        top: -36px;
    }
}
