/* 轮播图样式 */
.hero-carousel {
    height: 100vh;
    position: relative;
    overflow: hidden;
    /* margin-top: 70px; */
}

.carousel-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.carousel-slides {
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: all 0.8s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
    visibility: visible;
}

.carousel-bg {
    width: 100%;
    height: 100%;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.carousel-content {
    position: absolute;
    top: 50%;
    left: 30%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #cd7f32;
    z-index: 10;
    width: 90%;
    max-width: 800px;
}

.content4 {
    top: 50%;
    left: 70%;
}

.carousel-content h1 {
    font-size: 52px;
    margin-bottom: 20px;
    line-height: 1.2;
}

.carousel-content p {
    font-size: 30px;
    margin-bottom: 30px;
}

.content2 h1 {
    font-size: 80px;
}

.content2 p {
    font-size: 25px;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 54px;
    height: 54px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 24px;
    font-weight: bold;
    z-index: 10;
    transition: all 0.3s ease;
}
.slider-arrow:hover {
    background: rgba(255,255,255,0.9);
}
.arrow-left {
    left: 20px;
}
.arrow-right {
    right: 20px;
}

.carousel-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 20;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(30, 125, 235, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    width: 30px;
    border-radius: 6px;
    background-color: #2c6ed5;
}

@media (max-width: 768px) {
    .hero-carousel {
        height: auto;
        min-height: 30vh;
        margin: 70px auto 0;
        width: 100%;
        overflow: hidden;
    }
    
    .carousel-container {
        width: 100%;
        height: auto;
        min-height: 30vh;
        position: relative;
    }
    
    .carousel-slides {
        width: 100%;
        height: 100%;
        position: relative;
    }
    

    .carousel-slide {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        opacity: 0;
        visibility: hidden;
    }
    
    .carousel-bg {
        width: 100%;
        height: 100%;
        background-position: center;
        background-size: cover;
        background-repeat: no-repeat;
        min-height: 30vh;
    }

    .carousel-content {
        left: 50%;
        top: 120px;
        transform: translate(-50%, -50%);
        padding: 20px 15px;
        position: absolute;
        margin: 0 auto;
        box-sizing: border-box;
        max-width: 90%;

    }
    
    .carousel-content h1 {
        font-size: 18px;
        line-height: 1.3;
    }
    
    .carousel-content p {
        font-size: 10px;
        line-height: 1.4;
    }

    .content4 {
        left: 65%;
        top: 110px;
    }
    
    .slider-arrow {
        width: 40px;
        height: 40px;
        font-size: 20px;
        top: 50%;
    }
    
    .arrow-left {
        left: 10px;
    }
    
    .arrow-right {
        right: 10px;
    }
    
    .carousel-indicators {
        bottom: 10px;
        gap: 10px;
    }
    
    .indicator {
        width: 8px;
        height: 8px;
    }
    
    .indicator.active {
        width: 20px;
    }
}



/* 通用板块样式 */
.section {
    padding-top: 100px;
    background-color: #fff;
}

/* .section-gray {
    background-color: #f8f9fa;
} */

.section-title {
    text-align: center;
    font-size: 26px;
    color: #333;
    margin-bottom: 40px;
    position: relative;
}
.section-title::after {
    content: "";
    display: block;
    width: 70px;
    height: 3px;
    background-color: #4096ff;
    margin: 15px auto 0;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* 关于我们-顶部图片+资质列表容器 */
.about-top-wrap {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    flex-wrap: wrap;
    margin-bottom: 40px;
    align-content: flex-start;
}

/* 左侧图片（保持原有样式，调整宽度） */
.about-img {
    flex: 1;
    min-width: 300px;
    display: flex;
    height: 100%;
}
.about-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 4px;
    background-color: #f5f5f5;
}

/* 右侧资质列表 */
.about-qualification {
    flex: 1;
    min-width: 300px;
    display: flex;
    align-items: flex-start;
}
.qualification-list {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}
.qualification-list li {
    font-size: 16px;
    color: #333;
    line-height: 1.8; /* 行高适配示例 */
}

/* 下方企业介绍文本 */
.about-intro {
    margin-top: 30px;
    font-size: 18px;
    color: #555;
    line-height: 1.8;
    text-indent: 2em;
}

/* 响应式适配（移动端图片和列表上下排列） */
@media (max-width: 768px) {
    .about-top-wrap {
        flex-direction: column;
        gap: 20px;
    }
}

/* 产品列表 */
/* .container-product {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
} */

.services-wrap {
    display: flex;
    flex-direction: column; /* 产品行垂直排列 */
    gap: 140px; /* 产品行之间的间距 */
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.product-row {
    width: 100%;
    background-color: #fff;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.product-row:hover {
    transform: translateY(-5px);
}

.product-img-group {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 50px;
    width: 100%;
    height: 600px;
}

/* 单个图片项样式 */
.product-img-item {
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 6px;
    box-shadow: 20px 20px 10px rgba(0,0,0,0.06);
}

.product-img-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-desc {
    padding: 20px 30px;
    text-align: center;
}

.product-desc h4 {
    font-size: 28px;
    font-weight: 600;
    margin: 0 0 10px 0;
    color: #333;
}

.product-desc p {
    color: #666;
    font-size: 16px;
    line-height: 1.7;
    margin: 10px;
}

@media (max-width: 768px) {
    .services-wrap {
        gap: 30px;
    }

    .product-img-group {
        grid-template-columns: 1fr;
        height: 180px;
    }

    .product-desc {
        padding: 15px 20px;
    }

    .product-desc p {
        font-size: 13px;
    }
}


.card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.services-wrap1 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}
.services-wrap1 .service-card:nth-child(4) {
    grid-column: 1 / 2;
    grid-row: 2 / 3;
}

.service-card {
    background-color: #fff;
    padding: 0; 
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    text-align: center;
    overflow: hidden;
    transition: transform 0.3s ease;
}
.service-card:hover {
    transform: translateY(-5px); 
}

.service-img {
    width: 100%;
    height: 200px; 
    overflow: hidden;
}
.service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    transition: transform 0.3s ease;
}
.service-card:hover .service-img img {
    transform: scale(1.05);
}

.service-card h4 {
    font-size: 18px;
    font-weight: 600;
    margin: 20px 0 15px;
    color: #333;
}
.service-card p {
    color: #666;
    font-size: 14px;
    line-height: 1.7;
}

@media (max-width: 768px) {
    .services-wrap1 {
        grid-template-columns: 1fr;
    }
    .services-wrap1 .service-card:nth-child(4) {
        grid-column: auto;
        grid-row: auto;
    }
    .service-img {
        height: 180px; 
    }
    .service-card p {
        padding: 0 15px 20px;
    }
}

.field {
    padding-top: 100px;
    background-color: #fff;
}

.field-img {
    width: 100%;
    margin: 0 auto;
}

.field-img img {
    width: 100%;
    height: auto;
}

/* 新闻板块整体样式 */
.news-section {
    padding: 100px 0 60px;
    background-color: #fff;
}

/* 新闻主体布局：核心修改 - 添加align-items: stretch 让子元素等高 */
.news-main {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    align-items: stretch; /* 关键：强制左右子元素高度完全一致 */
}

/* 左侧头条：宽度占比+高度自适应（由右侧总高度决定） */
.news-headline {
    flex: 1 1 60%;
    min-width: 300px;
    display: flex; /* 让链接占满整个容器高度 */
}
/* 左侧头条链接：占满父容器，保证高度一致 */
.headline-link {
    display: flex;
    flex-direction: column; /* 图片+文字垂直排列 */
    text-decoration: none;
    color: inherit;
    background-color: #f8f9fa;
    border-radius: 6px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
    height: 100%; /* 关键：链接高度100%继承父容器 */
}
/* 左侧头条图片：核心修改 - 固定比例，适配右侧高度 */
.headline-img {
    width: 100%;
    flex: 0 0 420px; /* 关键：固定图片高度，匹配右侧总高度 */
    overflow: hidden;
}
.headline-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.headline-link:hover .headline-img img {
    transform: scale(1.03);
}
.headline-info {
    padding: 20px;
    flex: 1; /* 文字区域自动填充剩余空间 */
    display: flex;
    flex-direction: column;
    justify-content: center; /* 文字垂直居中，优化视觉 */
}
.news-date {
    font-size: 12px;
    color: #999;
    display: block;
    margin-bottom: 10px;
}
.news-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    transition: color 0.3s ease;
}
.headline-link:hover .news-title {
    color: #4096ff;
}
.news-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.7;
    margin: 0;
}

/* 右侧列表+按钮容器：宽度占比+高度100% */
.news-list-wrap {
    flex: 1 1 35%;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    height: 100%; /* 关键：高度100%继承父容器 */
}
/* 右侧新闻列表：填充剩余空间，优化内间距 */
.news-list {
    flex: 1; /* 占满除按钮外的所有空间 */
    /* margin-bottom: 15px; */
    display: flex;
    flex-direction: column;
    justify-content: space-around; /* 均匀分布列表项，优化高度 */
}
/* 右侧新闻项：调整内间距，保证总高度匹配 */
.news-item {
    display: flex;
    gap: 15px;
    text-decoration: none;
    color: inherit;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    transition: background-color 0.3s ease;
}
.news-item:last-child {
    border-bottom: none;
}
.news-item:hover {
    background-color: #f8f9fa;
}
.item-info {
    flex: 1;
}
.item-title {
    font-size: 15px;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
    transition: color 0.3s ease;
}
.news-item:hover .item-title {
    color: #4096ff;
}
.item-desc {
    font-size: 12px;
    color: #666;
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 二维码区域样式 */
.news-qrcode-wrap {
    text-align: right;
}
.qrcode-text {
    font-size: 14px;
    color: #666;
}
.qrcode-img img {
    border: 1px solid #eee;
    border-radius: 4px;
}

/* 响应式适配 */
@media (max-width: 768px) {
    .news-main {
        flex-direction: column;
        align-items: flex-start; /* 移动端取消等高，恢复默认 */
    }
    .headline-img {
        flex: 0 0 200px; /* 移动端图片高度适配 */
    }
    .news-item {
        padding: 10px 0;
    }
    .news-qrcode-wrap {
        text-align: center;
    }
}


/* 响应式样式 */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background-color: #fff;
        padding: 20px 0;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        gap: 15px;
        text-align: center;
    }

    .nav-menu.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
    }
}