* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

/* 自定义动画类 */
.nsd-animate-left {
    animation: nsdSlideInLeft 1s ease-out;
}

.nsd-animate-right {
    animation: nsdSlideInRight 1s ease-out;
}

@keyframes nsdSlideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes nsdSlideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 容器样式 */
.nsd-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Banner区域 - 不再全屏 */
.nsd-banner {
    height: 50vh;
    min-height: 500px;
    background-image: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)), url('https://cdn1.hsdxchina.com/static/image/service/p_xcp/banner.webp');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 0px;
}

/* Banner区域 - 不再全屏 */
.sphc {
    height: 50vh;
    min-height: 500px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: left;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 0px;
    padding-left: 400px;
}

.nsd-banner-content {
    z-index: 2;
    padding: 0 20px;
    max-width: 900px;
}

.nsd-banner-content .vilogo{
    position: absolute;
    left: 157px;
    top: 125px;
    width: 145px;
}

.nsd-banner-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.nsd-banner-subtitle {
    font-size: 1.3rem;
    font-weight: 300;
    margin-bottom: 30px;
    line-height: 1.8;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
}

/* 场景介绍区域 */
.nsd-scenes-section {
    padding: 20px 0 20px;
    background-color: #f5f5f5;
}

.nsd-section-title {
    text-align: center;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #222;
}

.nsd-section-desc {
    text-align: center;
    font-size: 1.2rem;
    max-width: 900px;
    margin: 0 auto 40px;
    color: #555;
    line-height: 1.8;
}

.nsd-section-subtitle {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 40px;
    color: #d32f2f;
}

/* 场景项目 - 文字与图片分离布局 */
.nsd-scenes-list {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.nsd-scene-item {
    background-color: white;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s ease;
}

.nsd-scene-item:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

/* 文字容器 - 在图片上方 */
.nsd-scene-text-container {
    padding: 30px 30px 20px;
    border-bottom: 1px solid #eee;
}

.nsd-scene-header {
    display: flex;
    align-items: baseline;
    margin-bottom: 15px;
}

.nsd-scene-number {
    font-size: 2.2rem;
    font-weight: 800;
    color: #d20031; /* 修改为指定颜色 */
    margin-right: 15px;
}

.nsd-scene-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #222;
}

.nsd-scene-desc {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.7;
}

/* 图片容器 - 去掉固定高度 */
.nsd-scene-img-container {
    width: 100%;
    overflow: hidden;
}

.nsd-scene-img {
    width: 100%;
    height: auto;
    display: block;
    /* 移除悬停效果 */
}

/* 案例区域 - 链接形式 */
.nsd-cases-section {
    padding: 30px 0 80px;
    /*background-color: #eef1f5;*/
}

.nsd-cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.nsd-cases-gridvi {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

@media (max-width: 1200px) {
    .nsd-cases-grid,.nsd-cases-gridvi {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .nsd-cases-grid,.nsd-cases-gridvi {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nsd-cases-grid,.nsd-cases-gridvi {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.nsd-case-item {
    display: block;
    position: relative;
    height: 300px;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    text-decoration: none;
}

.nsd-cases-gridvi .nsd-case-item {
    height: 600px;
}

.nsd-cases-gridppt .nsd-case-item {
    height: 300px;
}

.nsd-case-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}

.nsd-case-item:hover .nsd-case-bg {
    transform: scale(1.05);
}

/* 默认显示标题 */
.nsd-case-title {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 50%, transparent 100%);
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    z-index: 1;
}

/* 鼠标悬停时的链接图标 - 改为透明黑遮罩 */
.nsd-case-link-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* 改为透明黑 */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.nsd-case-item:hover .nsd-case-link-overlay {
    opacity: 1;
}

.nsd-link-icon {
    color: white;
    font-size: 2rem; /* 缩小图标 */
    transition: transform 0.3s ease;
}

.nsd-case-item:hover .nsd-link-icon {
    transform: scale(1.05);
}

/* 响应式调整 - 手机端优化 */
@media (max-width: 1920px) {
    .nsd-banner {
        height: 50vh;
        min-height: 50vh;
    }

    .nsd-banner-content .vilogo{
        width: 100px;
    }
    .nsd-banner-title{
            font-size: 3rem;
    }
}

@media (max-width: 1200px) {
    .nsd-banner-title {
        font-size: 3.5rem;
    }

    .nsd-section-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 992px) {
    .nsd-banner {
        height: 60vh;
        min-height: 450px;
    }

    .nsd-banner-title {
        font-size: 3rem;
    }

    .nsd-banner-subtitle {
        font-size: 1.2rem;
    }

    .nsd-section-title {
        font-size: 2.2rem;
    }

    .nsd-scene-number {
        font-size: 2rem;
    }

    .nsd-scene-title {
        font-size: 2rem;
    }

    .nsd-scene-desc {
        font-size: 1.05rem;
    }

    .nsd-scene-text-container {
        padding: 25px 25px 15px;
    }

    .nsd-case-title {
        font-size: 1.4rem;
        padding: 18px;
    }
}

@media (max-width: 768px) {
    .nsd-banner {
        height: 50vh;
        min-height: 400px;
        margin-top: 40px;
    }

    .nsd-banner-title {
        font-size: 2.5rem;
    }

    .nsd-banner-subtitle {
        font-size: 1.1rem;
    }

    .nsd-section-title {
        font-size: 2rem;
    }

    .nsd-section-desc {
        font-size: 1.1rem;
        margin-bottom: 30px;
    }

    .nsd-section-subtitle {
        font-size: 1.3rem;
        margin-bottom: 30px;
    }

    .nsd-scene-number {
        font-size: 1.8rem;
    }

    .nsd-scene-title {
        font-size: 1.8rem;
    }

    .nsd-scene-desc {
        font-size: 1rem;
    }

    .nsd-scene-text-container {
        padding: 20px 20px 10px;
    }

    .nsd-case-item {
        height: 250px;
    }

    .nsd-case-title {
        font-size: 1.3rem;
        padding: 15px;
    }

    .nsd-link-icon {
        font-size: 2.2rem;
    }

    .nsd-cases-section {
        padding: 40px 0 60px;
    }

    .nsd-scenes-section,.nsd-cases-section {
        padding: 20px 0 50px;
    }
}

@media (max-width: 576px) {
    .nsd-banner {
        height: 45vh;
        min-height: 350px;
    }

    .nsd-banner-title {
        font-size: 2.2rem;
    }

    .nsd-banner-subtitle {
        font-size: 1rem;
        line-height: 1.6;
    }

    .nsd-container {
        padding: 6px 15px;
    }

    .nsd-section-title {
        font-size: 1.8rem;
    }

    .nsd-section-desc {
        font-size: 1rem;
    }

    .nsd-scenes-list {
        gap: 35px;
    }

    .nsd-scene-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .nsd-scene-number {
        margin-bottom: 5px;
    }

    .nsd-scene-title {
        font-size: 1.6rem;
    }

    .nsd-scene-desc {
        font-size: 0.95rem;
    }

    .nsd-scene-text-container {
        padding: 18px 18px 10px;
    }

    .nsd-case-item {
        height: 220px;
    }

    .nsd-case-title {
        font-size: 1.2rem;
        padding: 12px;
    }

    .nsd-link-icon {
        font-size: 2rem;
    }
    .nsd-scenes-section, .nsd-cases-section {
        padding: 0px;
    }
    .cnsd-banner{
        margin-bottom: 15px;
    }
    .mbx {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .nsd-banner {
        height: 40vh;
        min-height: 300px;
    }

    .nsd-banner-title {
        font-size: 1.7rem;
    }

    .nsd-banner-subtitle {
        font-size: 0.95rem;
    }

    .nsd-section-title {
        font-size: 1.3rem;
    }

    .nsd-scene-title {
        font-size: 1rem;
    }

    .nsd-scene-number {
        font-size: 1.6rem;
    }

    .nsd-case-item {
        height: 200px;
    }

    .nsd-case-title {
        font-size: 1.1rem;
    }
    .nsd-banner-content .vilogo {
        width: 50px;
    }
    .nsd-banner-content .vilogo{
        left: 45px;
        top: 115px;
    }
    .sphc{
        padding-left: unset;
        justify-content: center;
    }
}

/* 极小型设备优化 */
@media (max-width: 360px) {
    .nsd-banner-title {
        font-size: 1.8rem;
    }

    .nsd-section-title {
        font-size: 1.5rem;
    }

    .nsd-scene-number {
        font-size: 1.5rem;
    }

    .nsd-scene-title {
        font-size: 1.4rem;
    }

    .nsd-case-item {
        height: 180px;
    }
}

/* 工具类 */
.nsd-mt-20 {
    margin-top: 20px;
}

.nsd-mb-30 {
    margin-bottom: 30px;
}

.nsd-text-center {
    text-align: center;
}

/* 解决iOS Safari的100vh问题 */
@supports (-webkit-touch-callout: none) {
    .nsd-banner {
        height: -webkit-fill-available;
        min-height: -webkit-fill-available;
    }
}





/*服务案例详情*/
/* 自定义命名空间前缀 */
.cnsd-container {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 30px 20px;
}

/* Banner区域样式 */
.cnsd-banner {
    width: 100%;
    height: 50vh;
    min-height: 500px;
    overflow: hidden;
    margin-bottom: 0px;
    position: relative;
}

.cnsd-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 视频区域样式 */
.cnsd-video-section {
    padding: 0px 0;
    margin-bottom: 80px;
}

.cnsd-video-item {
    /*background-color: white;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    padding: 40px;*/
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cnsd-video-item:hover {
    /*transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);*/
}

.cnsd-video-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 30px;
    line-height: 1.2;
    text-align: center;
}

.cnsd-video-desc {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 40px;
    max-width: 90%;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.cnsd-video-wrapper {
    width: 100%; /* 视频占容器的100%宽度 */
    margin: 0 auto;
    border-radius: 8px; /* 圆角改小 */
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.cnsd-video-player {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 16/9;
    background-color: #000;
}

.cnsd-video-iframe {
    width: 100%;
    height: 910px;
    border: none;
    display: block;
    background-color: #fff;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .cnsd-video-title {
        font-size: 2.2rem;
    }
    .cnsd-video-iframe {
        height: 500px;
    }
}

@media (max-width: 768px) {
    .cnsd-banner {
        height: 50vh;
        min-height: 400px;
        margin-bottom: 15px;
    }

    .cnsd-video-title {
        font-size: 1.8rem;
    }

    .cnsd-video-desc {
        font-size: 1rem;
    }
    .cnsd-video-iframe {
                height: 350px;
            }
}
@media (max-width: 480px) {
    .cnsd-video-title {
        font-size: 1.3rem;
    }

    .cnsd-video-iframe {
        height: auto;
        min-height: auto;
    }

    /* 根据id设置不同高度 */
    #video-iframe-131 {
        height: 1313px;
    }
    #video-iframe-132 {
        height: 1100px;
    }
    #video-iframe-133 {
        height: 1215px;
    }
    .cnsd-video-section{
        margin-bottom: 30px;
    }
}

/* 自定义动画 */
.cnsd-animate-fade-up {
    animation-duration: 0.8s;
}

.cnsd-animate-fade-left {
    animation-duration: 0.9s;
}

/* 滚动提示 */
.cnsd-scroll-hint {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.2rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}
