html {
    scroll-snap-type: none !important;

}
/* --- 基础设置 --- */
body { margin: 0; font-family: "Helvetica Neue", Helvetica, Arial, "Microsoft YaHei", sans-serif; color: #333; background-color: #fff; overflow-x: hidden; }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f9f9f9; }
::-webkit-scrollbar-thumb { background: #ccc; border-radius: 3px; }
#navbar { position: sticky; top: 0; z-index: 1050; background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,0.05); width: 100%; }


#mainCarousel {
    width: 100vw;
    /* PC端：强制全屏高度 */
    height: 100vh;

    position: relative;
    overflow: hidden;

    /* --- 核心：背景图设置 --- */
    background-image: url('../image/homebg.png'); /* 替换为您的图片路径 */
    background-size: cover;       /* 关键：自动缩放填满，不留白 */
    background-position: center;  /* 关键：始终居中显示 */
    background-repeat: no-repeat;

    /* 视差滚动效果 (可选，去掉这行就是普通背景) */
    background-attachment: fixed;
}
/* ======== 轮播图样式（自适应高度） ======== */
.carousel-item {
    height: 100%;
    width: 100%
}

.carousel-item img {
    width: 100%;
    height: 100%; /* 强制高度填满 */
    display: block;

    object-fit: cover;

    /* 保证图片居中裁剪 */
    object-position: center;
}


.carousel-indicators [data-bs-target] {
    background-color: white;
}
/* ========================================= */
@media (max-width: 768px) {
    #mainCarousel {
        /* 手机端通常不需要全屏那么高，建议设为 50% - 60% 屏幕高度 */
        height: 50vh;
        min-height: 300px; /* 最小高度兜底 */

        /* 手机端取消视差滚动，兼容性更好 */
        background-attachment: scroll;
    }

    .carousel-item {
        /* 核心修改：容器高度随内容撑开 */
        height: auto !important;
    }

    .carousel-item img {
        /* 核心修改：图片高度自动，按原比例显示 */
        height: auto !important;

        /* 手机端通常希望看到完整图片，而不是被裁剪，所以改回 contain 或默认 */
        /* 如果希望手机上也铺满但允许截断，保留 cover；如果希望完全展示，用 contain */
        object-fit: contain;

        /* 消除图片底部的微小缝隙 */
        vertical-align: middle;
    }
}

/* --- 业务布局 (带进场动画版) --- */
.company-intro {
    position: relative;
    width: 100vw;
    height: 100vh;           /* 强制全屏 */

    display: flex;
    align-items: center;     /* 垂直居中 */
    justify-content: center; /* 水平居中 */

    background-color: #ffffff;
    background-image: url("../image/img_3.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    overflow: hidden;

    /* 滚动吸附相关 */
    scroll-snap-align: none !important;
    scroll-snap-stop: normal !important;
}

/* --- 内容容器 --- */
.intro-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 95%;
    max-width: 1800px;
    margin: 0 auto;
    gap: 4vw;
}

/* --- 左侧文字模块 --- */
.intro-text {
    flex: 0 0 40%; /* 稍微加宽一点给大字体腾空间 */
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
    z-index: 2;
}

/* 标题区域 */
.intro-text .title-area {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 3vh;

    /* 动画初始状态：隐藏 + 左移 */
    opacity: 0;
    transform: translateX(-100px);
    transition: all 1s ease-out;
}

.intro-text .icon-img {
    width: 3vw; /* 图标加大 */
    min-width: 40px;
    height: auto;
}

/* 标题文字 (加大) */
.intro-text h1 {
    font-size: clamp(40px, 5vw, 90px); /* 加大 */
    font-weight: 800;
    color: #333;
    line-height: 1;
    margin: 0;
    letter-spacing: 2px;
}

.intro-text h2 {
    font-size: clamp(14px, 1.5vw, 25px); /* 加大 */
    font-weight: 300;
    color: #888;
    margin-top: 8px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* --- 描述区域 (逐行显示) --- */
.desc-area p {
    /* 字体加大 */
    font-size: clamp(18px, 1.6vw, 28px);
    line-height: 1.8;
    color: #555;
    margin-bottom: 2vh;

    /* 动画初始状态 */
    opacity: 0;
    transform: translateX(-100px);
    transition: all 1s ease-out;
}

/* 高亮数字 (加大) */
.intro-text .highlight {
    font-weight: 900;
    color: #143477;
    font-family: "Impact", sans-serif;
    font-size: clamp(50px, 5vw, 100px); /* 数字特大 */
    margin: 0 8px;
    line-height: 1;
}

/* --- 右侧图片模块 --- */
.intro-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    height: 100%;
}

.intro-image img {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 85vh;
    object-fit: contain;

    border: none;
    border-radius: 0;
    box-shadow: none;

    /* 动画初始状态：隐藏 + 右移 */
    opacity: 0;
    transform: translateX(100px) scale(0.9); /* 初始稍微小一点 */
    transition: all 1.2s cubic-bezier(0.25, 1, 0.5, 1); /* 缓动效果 */
}

/* 鼠标悬停微动 */
.company-intro:hover .intro-image img {

    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.1));
}
/* 标题进场 */
.company-intro.active .intro-text .title-area {
    opacity: 1;
    transform: translateX(0);
}

/* 第一段文字进场 (延迟 0.2s) */
.company-intro.active .desc-area p:nth-child(1) {
    opacity: 1;
    transform: translateX(0);
    transition-delay: 0.2s;
}

/* 第二段文字进场 (延迟 0.4s) */
.company-intro.active .desc-area p:nth-child(2) {
    opacity: 1;
    transform: translateX(0);
    transition-delay: 0.4s;
}

/* 第三段文字进场 (延迟 0.6s) */
.company-intro.active .desc-area p:nth-child(3) {
    opacity: 1;
    transform: translateX(0);
    transition-delay: 0.6s;
}
/* --- 新增：第四段文字进场 (延迟 0.8s) --- */
.company-intro.active .desc-area p:nth-child(4) {
    opacity: 1;
    transform: translateX(0);
    transition-delay: 0.8s;
}
/* 图片从右侧进场 (延迟 0.3s) */
.company-intro.active .intro-image img {
    opacity: 1;
    transform: translateX(0) scale(1);
    transition-delay: 0.3s;
}


/* ========================================= */
/* --- 响应式适配 --- */
/* ========================================= */

/* 1200px 以下 */
@media (max-width: 1200px) {
    .intro-text {
        flex: 0 0 50%;
    }
}

/* 992px 以下 (平板/手机) */
@media (max-width: 992px) {
    .company-intro {
        height: auto;       /* 取消固定高度 */
        min-height: auto;   /* 取消最小全屏高度，根据内容自适应 */
        padding: 60px 20px; /* 减小内边距，高度更紧凑 */
    }

    .intro-container {
        flex-direction: column; /* 上下堆叠 */
        gap: 40px;
        text-align: center;
    }

    .intro-text {
        width: 100%;
        align-items: center;
        text-align: center;
    }

    .intro-text .title-area {
        justify-content: center;
        margin-bottom: 20px;
    }

    .intro-image {
        width: 100%;
        justify-content: center;
    }

    .intro-image img {
        width: 100%;
        max-height: 40vh;   /* 限制图片高度，防止在手机上太长 */
    }

    /* 手机端动画方向调整：改为从下往上飘，更自然 */
    .intro-text .title-area,
    .desc-area p,
    .intro-image img {
        transform: translateY(50px); /* 初始向下 */
    }
    .company-intro.active .intro-text .title-area,
    .company-intro.active .desc-area p,
    .company-intro.active .intro-image img {
        transform: translateY(0);
    }
}


/*业务能力*/
.containers {
    position: relative;
    width: 100vw;
    height: 80vh;
    margin: 0 auto;
    padding: 50px 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 12px;
    overflow: hidden;
    z-index: 1;
    background-image: url(../image/WechatIMG104.jpg);
    scroll-snap-align: none !important;
    scroll-snap-stop: normal !important;
}
.main-container{
    position: relative;
    max-width: 1600px;
    width: 70vw;
    height: 50vh;
    margin: 0px auto;
    margin-top: 50px;
    padding: 100px 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 12px;
    overflow: hidden;
    z-index: 1;
}

/* 左边文字模块 */
.intro-texts{
    max-width: 1600px;
    margin: 0 auto;
    transition: all 0.5s ease; /* 平滑过渡 */
}

#slide{
    width:max-content;
    margin-top:100px;
}
.item{
    width:200px;
    height:300px;
    background-position: 50% 50%;
    display: inline-block;
    transition: 0.5s;
    background-size: cover;
    position: absolute;
    z-index: 1;
    top:50%;
    transform: translate(0,-50%);
    border-radius: 20px;
    box-shadow:  0 30px 50px #505050;
}

.item:nth-child(1),
.item:nth-child(2){
    left:0;
    top:0;
    transform: translate(0,0);
    border-radius: 0;
    width:100%;
    height:100%;
    box-shadow: none;
}
.item:nth-child(3){
    left:50%;
}
.item:nth-child(4){
    left:calc(50% + 220px);
}
.item:nth-child(5){
    left:calc(50% + 440px);
}
.item:nth-child(n+6){
    left:calc(50% + 660px);
    opacity: 0;
}
.item .content{
    position: absolute;
    top:50%;
    left:100px;
    width:300px;
    text-align: left;
    padding:0;
    color:#eee;
    transform: translate(0,-50%);
    display: none;
    font-family: system-ui;
}
.item:nth-child(2) .content{
    display: block;
    z-index: 11111;
}
.item .name{
    font-size: 40px;
    font-weight: bold;
    opacity: 0;
    animation:showcontent 1s ease-in-out 1 forwards
}
.item .des{
    margin:20px 0;
    opacity: 0;
    animation:showcontent 1s ease-in-out 0.3s 1 forwards
}
.item button{
    padding:10px 20px;
    border:none;
    opacity: 0;
    animation:showcontent 1s ease-in-out 0.6s 1 forwards
}
@keyframes showcontent{
    from{
        opacity: 0;
        transform: translate(0,100px);
        filter:blur(33px);
    }to{
         opacity: 1;
         transform: translate(0,0);
         filter:blur(0);
     }
}
.buttons {
    position: absolute;
    bottom: 30px;
    z-index: 222222;
    text-align: center;
    width: 100%;
}

.buttons button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid #555;
    background-color: transparent;
    color: #333;
    font-size: 20px;
    margin: 0 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.buttons button:hover {
    background-color: #143477;
    color: white;
    transform: scale(1.1);
}

.buttons button i {
    pointer-events: none; /* 防止点击图标失效 */
}


/* --- 全屏容器 --- */
.fullscreen-slider {
    position: relative;
    width: 100vw;
    height: 100vh; /* 强制占满视口高度 */
    overflow: hidden;
    background-color: #000;
    scroll-snap-align: none !important;
    scroll-snap-stop: normal !important;
}

/* 背景图层样式 - 完整显示版 */
.background {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;

    /* 1. 强制铺满，绝不留白 */
    background-size: cover;

    /* 2. 关键：锁定右侧 */
    /* 当页面缩放或变窄时，右边的设备永远不动，只裁剪左边的背景 */
    background-position: right center;

    background-repeat: no-repeat;

    /* 过渡动画 */
    transition: opacity 1s cubic-bezier(0.45, 0, 0.55, 1);
    z-index: 0;
}

/* --- 左侧文字区域 (自适应缩放) --- */
.slide-text-content {
    position: absolute;
    top: 20%;
    left: 5%;
    max-width: 600px; /* 限制宽度，防止文字太长不好看 */
    z-index: 20;
    text-align: left;
    color: #fff;

    /* --- 1. 初始状态：透明 + 向左偏移 100px --- */
    opacity: 0;
    transform: translateX(-100px);

    /* 缓动效果：贝塞尔曲线让运动更有质感 */
    transition: opacity 1s cubic-bezier(0.215, 0.610, 0.355, 1.000),
    transform 1s cubic-bezier(0.215, 0.610, 0.355, 1.000);
}

.slide-text-content.start-anim {
    opacity: 1;
    transform: translateX(0); /* 回到原位 */
}

/* --- 3. 鼠标切换时的隐藏状态 (用于切换内容) --- */
.slide-text-content.hidden {
    opacity: 0;
    /* 切换时稍微往右飘一点，产生更自然的淡出感 */
    transform: translateX(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.slide-text-content h2 {
    /* 字体大小自适应 */
    font-size: clamp(32px, 4vw, 64px);
    font-weight: 800; /* 特粗 */
    line-height: 1.2;
    margin-bottom: 20px;
    letter-spacing: 1px;
    /* 文字阴影，增强在复杂背景上的可读性 */
    text-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

/* 描述：同样使用 clamp */
.slide-text-content p {
    font-size: clamp(14px, 1.5vw, 20px);
    line-height: 1.8;
    margin-bottom: 4vh;
    opacity: 0.9;
    text-shadow: 0 1px 5px rgba(0,0,0,0.5);
    max-width: 600px;
}

/* 按钮自适应 */
.slide-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    /* 尺寸与内边距 */
    padding: 15px 40px;

    /* 文字样式 */
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;

    /* 移除之前的背景和圆角，由伪元素接管 */
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;

    /* 确保文字在边框之上 */
    z-index: 1;
    transition: color 0.3s ease;
}
/* --- 核心：利用伪元素制作“斜切边框” --- */
.slide-btn::before {
    content: '';
    position: absolute;
    inset: 0; /* 占满按钮区域 */

    /* 1. 边框实线稍微粗一点 (3px) */
    border: 3px solid #fff;

    /* 2. 背景半透明 (可选，增加可读性) */
    background: rgba(0, 0, 0, 0.1);

    /* 3. 斜切效果 (左上角切一刀，右下角切一刀) */
    /* polygon(左上X 左上Y, 右上X 右上Y, 右下X 右下Y, 左下X 左下Y...) */
    clip-path: polygon(
            15px 0, 100% 0,
            100% calc(100% - 15px),
            calc(100% - 15px) 100%,
            0 100%,
            0 15px
    );

    z-index: -1; /* 放在文字后面 */

    /* 4. 动画过渡 */
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    background-color 0.3s ease,
    border-color 0.3s ease;
}

.slide-btn:hover {
    background: #18278C;
    border-color: #18278C;
}
.slide-btn:hover::before {
    /* 1. 边框向前移动 (向左上方偏移) */
    transform: translate(-6px, -6px);

    /* 2. 边框变色 (可选，例如变成品牌蓝) */
    border-color: #007AFF;

    /* 3. 背景稍微加深 */
    background: rgba(0, 122, 255, 0.2);
}
/* 为了增加立体感，可以加一个阴影伪元素在原位 (可选) */
.slide-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.1);
    clip-path: polygon(15px 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%, 0 15px);
    z-index: -2;
    opacity: 0;
    transition: opacity 0.3s;
}

.slide-btn:hover::after {
    opacity: 1; /* 悬停时显示原位的底影，增强"移动"的错觉 */
}

/* 箭头动画 */
.slide-btn i {
    transition: transform 0.3s ease;
}
.slide-btn:hover i {
    transform: translateX(5px);
}

/* --- 底部按钮容器 (核心修改) --- */
.button-container {
    position: absolute;
    bottom: 0; /* 贴底 */
    left: 0;
    width: 100vw;
    /* 高度自适应：PC端高一些，手机端低一些 */
    height: 10vh;
    min-height: 100px; /* 最小高度 */
    max-height: 140px; /* 最大高度 */

    display: flex;
    justify-content: center;
    align-items: flex-end;
    z-index: 10;
    gap: 0;
    margin: 0;
}

/* --- 单个卡片 Div (自适应宽度) --- */
.color-fill-div {
    position: relative;
    /* 核心：使用 flex: 1 自动平分宽度，而不是写死 300px */
    flex: 1;
    height: 100%;

    display: flex;
    justify-content: center;
    align-items: center;

    border-right: 1px solid rgba(255, 255, 255, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.2);

    overflow: hidden;
    cursor: pointer;
    isolation: isolate;
}
.color-fill-div:first-child { border-left: none; }
.color-fill-div:last-child { border-right: none; }

/* 蓝色填充层 */
.filter-layer {
    position: absolute; inset: 0;
    background-color: #10259B;
    transform: scale(0);
    z-index: 1; opacity: 0.9;
    /* transform 由 JS 控制，CSS不写 transition */
}

/* 内容层 */
.content-wrapper {
    position: relative; z-index: 2;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 10px; pointer-events: none;
    width: 100%;
}

/* 文字自适应 */
.content-text {
    font-size: clamp(12px, 1.2vw, 18px); /* 字体随宽度缩放 */
    color: #fff;
    font-weight: 500;
    white-space: nowrap; /* 防止文字换行 */
}

/* --- 移动端适配 (Media Queries) --- */
/* --- 移动端适配 (核心修改) --- */
@media (max-width: 768px) {
    /* 1. 容器高度变矮 */
    .fullscreen-slider {
        width: 100vw;
        /* 手机端高度设为 60vh 或者固定 400px，不再全屏 */
        height: 60vh;
        min-height: 400px;
        background-color: #000;
    }

    /* 2. 背景图自适应 */
    .background {
        background-size: cover;
        background-position: center;
    }

    /* 3. 文字区域居中 */
    .slide-text-content {
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 90%;
        max-width: 90%;
        text-align: center; /* 文字居中 */
    }

    /* 进场动画位置修正 (居中) */
    .slide-text-content.start-anim {
        transform: translate(-50%, -50%);
    }

    .slide-text-content h2 {
        font-size: 28px; /* 字体改小 */
        margin-bottom: 10px;
    }

    .slide-text-content p {
        font-size: 14px;
        margin-bottom: 20px;
        /* 显示完整描述 */
        display: block;
        -webkit-line-clamp: unset;
    }

    .slide-btn {
        margin: 0 auto; /* 按钮居中 */
        display: inline-flex;
    }

    /* 4. 隐藏底部按钮容器 */
    .button-container {
        display: none !important;
    }

    /* 5. 显示左右切换箭头 (仅手机端显示) */
    .mobile-nav-btn {
        display: flex !important;
    }
}

/* --- 手机端左右箭头样式 (默认隐藏) --- */
.mobile-nav-btn {
    display: none; /* PC端隐藏 */
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    z-index: 30;
    cursor: pointer;
    backdrop-filter: blur(5px);
}
.mobile-prev { left: 10px; }
.mobile-next { right: 10px; }

/* ===== 合作客户板块 ===== */
.clients-section {
    text-align: center;
    padding: 80px 5vw 60px;
    background: linear-gradient(180deg, #f9fafc 0%, #ffffff 100%);
    scroll-snap-align: none !important;
    scroll-snap-stop: normal !important;
}

/* 标题部分整体布局 */
.clients-title {
    font-size: 40px;
    color: #222;
    margin-bottom: 15px;
    letter-spacing: 2px;
    font-weight: 600;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

/* 标题下的蓝色线条装饰 */
.clients-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #007bff, #00bcd4);
    border-radius: 2px;
}

/* 副标题样式 */
.clients-section p {
    font-size: 16px;
    color: #666;
    margin-top: 20px;
    margin-bottom: 40px;
    letter-spacing: 1px;
}


/* 图片网格（无缝隙 + 居中） */
.clients-grid {
    display: grid;
    grid-template-columns: repeat(9, 1fr); /* 每行 9 张 */
    gap: 0;
    justify-items: center;
    align-items: center;
    max-width: 70vw;  /* 不占满全屏 */
    margin: 0 auto;
}

/* 单个 logo 容器 */
.client {
    width: 100%;
    aspect-ratio: 1 / 0.5; /* 确保每个格子是正方形，统一比例 */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* 图片统一大小与比例 */
.client img {
    width: 80%;
    height: 80%;
    object-fit: contain; /* 保持比例不拉伸 */
    display: block;
}

/* 悬停效果 */
.client:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.15);
}

/* 响应式布局 */
@media (max-width: 1400px) {
    .clients-grid {
        grid-template-columns: repeat(8, 1fr);
    }
}

@media (max-width: 1200px) {
    .clients-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

@media (max-width: 900px) {
    .clients-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 600px) {
    .clients-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 400px) {
    .clients-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ========================================= */
/* --- 新闻中心板块 (Windows/Mac 兼容版) --- */
/* ========================================= */

.news-section {
    min-height: 100vh;
    /* 核心修复：使用 clamp 动态调整顶部留白 */
    /* 最小120px (手机), 理想值20vh (屏幕高度的20%), 最大320px (大屏) */
    padding: clamp(120px, 20vh, 320px) 0 100px;
    background-color: #f7f7f7;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;

    overflow: hidden;
    scroll-snap-align: none !important;
    scroll-snap-stop: normal !important;
}

/* 顶部标题栏 */
.news-header-wrapper {
    /* 核心修复：防止在缩放比例高的屏幕上溢出 */
    width: 90%;
    max-width: 1600px; /* 限制最大宽度，防止带鱼屏太散 */
    margin: 0 auto 60px; /* 居中 */

    display: flex;
    justify-content: space-between;
    align-items: flex-end;

    opacity: 0;
    transform: translateY(30px);
    animation: fadeInMove 0.8s ease-out forwards;
}

.news-title {
    /* 核心修复：字体大小自适应，防止在小笔记本上巨大 */
    font-size: clamp(32px, 3vw, 48px);
    font-weight: 800;
    color: #333;
    margin: 0;
    line-height: 1;
}

/* 了解更多按钮 */
.more-btn-link {
    font-size: 16px;
    color: #333;
    text-decoration: none;
    border: 1px solid #ddd;
    background: #fff;
    padding: 10px 30px; /* 稍微减小 padding */
    border-radius: 50px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    white-space: nowrap; /* 防止按钮文字换行 */
}

.more-btn-link:hover {
    background: #18278C;
    color: #fff;
    border-color: #18278C;
    box-shadow: 0 10px 20px rgba(24, 39, 140, 0.3);
}

/* ===== 轮播视口 ===== */
.news-carousel {
    width: 100%; /* 不再强制 100vw，防止横向滚动条 */
    max-width: 100vw;
    overflow: hidden;
    padding: 40px 0;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInMove 0.8s ease-out 0.2s forwards;
}

.news-container {
    display: flex;
    width: 100%;
    padding: 0;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

/* ===== 单卡样式 ===== */
.news-card {
    /* 保持 33.33% 宽度 */
    flex: 0 0 33.3333%;
    box-sizing: border-box;

    border-right: 1px solid #e5e5e5;
    border-top: 1px solid #e5e5e5;
    border-bottom: 1px solid #e5e5e5;

    background: #f7f7f7;
    border-radius: 0;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s ease;

    /* 核心修复：高度改为相对视口高度，且设置最大最小值 */
    height: 55vh;
    min-height: 450px;
    max-height: 650px; /* 防止在超大屏上卡片过长 */

    display: flex;
    flex-direction: column;
}

.news-card:first-child { border-left: 1px solid #e5e5e5; }

/* 图片 */
.news-card img {
    width: 100%;
    /* 高度改为相对比例 */
    height: 55%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

/* 内容区 */
.news-content {
    flex: 1;
    /* 核心修复：内边距改小一点，适应 Windows 字体渲染 */
    padding: 35px 30px;

    background: #f7f7f7;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* 动态分割线 */
.news-content::before {
    content: '';
    display: block;
    width: 0;
    height: 3px;
    background-color: #18278C;
    margin-bottom: 0;
    opacity: 0;
    transition: width 0.6s cubic-bezier(0.25, 1, 0.5, 1),
    margin-bottom 0.4s ease,
    opacity 0.3s ease;
}

/* 标题 */
.news-content h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: clamp(20px, 1.5vw, 24px); /* 字体自适应 */
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.4;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;

    transition: margin-top 0.4s ease;
}

/* 简介 */
.news-content p {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;

    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    opacity: 0.8;
}

/* 日期 */
.news-date {
    color: #999;
    font-size: 13px;
    display: block;
    margin-top: auto;
    font-weight: 600;
    letter-spacing: 1px;
}

/* Hover 效果 */
.news-card:hover {
    transform: translateY(-10px); /* 稍微减小上浮距离，防止出框 */
    background: #fff;
    box-shadow: 0 30px 60px rgba(0,0,0,0.1);
    z-index: 10;
    border-color: transparent;
}

.news-card:hover .news-content { background: #fff; }
.news-card:hover img { transform: scale(1.05); }

.news-card:hover .news-content::before {
    width: 100%;
    margin-bottom: 20px;
    opacity: 1;
}
.news-card:hover h3 { color: #1a1a1a; }

/* ===== 底部按钮 ===== */
.buttonss {
    margin-top: 40px; /* 减小间距 */
    display: flex;
    gap: 30px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInMove 0.8s ease-out 0.4s forwards;
}

.nav-btn {
    width: 45px; /* 按钮改小一点 */
    height: 45px;
    border: 1px solid #999;
    background: transparent;
    color: #333;
    font-size: 16px;
    cursor: pointer;
    transform: rotate(45deg);
    border-radius: 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    outline: none;
}

.nav-btn i { transform: rotate(-45deg); }

.nav-btn:hover {
    background-color: #18278C;
    border-color: #18278C;
    color: white;
    transform: rotate(45deg) scale(1.1);
    box-shadow: 5px 5px 15px rgba(24, 39, 140, 0.3);
}

@keyframes fadeInMove { to { opacity: 1; transform: translateY(0); } }

/* ========================================= */
/* --- 响应式适配 --- */
/* ========================================= */

/* 针对笔记本/平板横屏 (1200px 以下) */
@media (max-width: 1200px) {
    .news-card { flex: 0 0 50%; } /* 一行2个 */
    .news-section { padding-top: 150px; } /* 减小顶部留白 */
}

/* 针对手机/竖屏 (768px 以下) */
@media (max-width: 768px) {
    .news-section {
        padding: 100px 0 60px;
        height: auto;
    }
    .news-header-wrapper {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        padding: 0 20px;
        width: 100%;
        margin-bottom: 30px;
    }
    .news-carousel {
        width: 100%;
        overflow: visible;
        padding: 0 20px;
    }
    .news-container {
        flex-direction: column;
        gap: 20px;
        transform: none !important;
    }
    .news-card {
        flex: 0 0 auto;
        width: 100%;
        height: auto;
        min-height: auto;
        border: 1px solid #ddd !important;
        border-radius: 8px;
    }
    .news-card img { height: 200px; }
    .news-content { padding: 30px 20px; }
    .news-title { font-size: 28px; }
    .buttonss { display: none; }
}
