/* Banner样式 */
.banner {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.banner-slider {
    position: relative;
    width: 100%;
    height: auto;
}

.banner-slide {
    position: absolute; /* 绝对定位 */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.banner-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* 指示器样式 */
.banner-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    padding: 0 15px;
    height: 30px;
    background: rgba(0, 0, 0, 0.35);
    border-radius: 20px;
    z-index: 20;
}

.banner-indicator {
    width: 12px;
    height: 12px;
    margin: 0 6px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.banner-indicator.active {
    background-color: #fff;
    transform: scale(1.2);
}

/* 二级页面特别样式 */
/* .sub-page .banner {
    height: auto;
} */

/* 设置首张幻灯片显示，确保banner有高度 */
.banner-slide:first-child {
    position: relative;
    opacity: 1;
    visibility: visible;
}

/* 移动端适配 */
@media screen and (max-width: 1055px) {
    
    .banner-slider {
        height: 100%;
    }
    
    .banner-slide {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        opacity: 0;
        visibility: hidden;
        transition: opacity 1.5s ease, visibility 1.5s ease;
    }
    
    .banner-slide.active {
        opacity: 1;
        visibility: visible;
    }
    
    .banner-img {
        height: 100%;
        object-fit: cover;
        object-position: center;
    }
    
    /* 移动端指示器样式 */
    .banner-indicators {
        bottom: 20px;
        padding: 0 10px;
        height: 24px;
    }
    
    .banner-indicator {
        width: 10px;
        height: 10px;
        margin: 0 4px;
    }
}

/* 面包屑导航 */
.breadcrumb {
    padding: 20px 0;
    margin-top: 30px;
    color: #666;
    font-size: 14px;
    border-bottom: 1px solid #eee;
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb a:hover {
    color: var(--secondary-color);
}

/* 公共section样式 */
.section {
    padding: 80px 0;
}

.section:nth-child(even) {
    background-color: #f8f8f8;
}

/* 公司简介 */
.intro-content {
    max-width: 1000px;
    margin: 0 auto;
    line-height: 2;
    color: #333;
    font-size: 16px;
}

.intro-content p {
    margin-bottom: 10px;
    text-align: justify;
}

.intro-content p:last-child {
    margin-bottom: 0;
}

/* 资质展示区域 */
.cert-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin-top: 40px;
}

.qualification-list {
    display: flex;
    flex-wrap: wrap; /* PC端需要换行 */
    transition: transform 0.3s ease-out;
}

.cert-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    width: calc(33.33% - 20px);
    margin: 20px 10px;
    position: relative;
}

.cert-img {
    width: 100%;
    padding-bottom: 75%; /* 3:2比例 */
    position: relative;
    background: #fff;
    overflow: hidden; /* 确保放大的图片不会溢出容器 */
}

.cert-img img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 12px;
    transition: transform 0.4s ease; /* 添加过渡效果 */
}

/* 当鼠标悬停在cert-item上时，图片放大 */
.cert-item:hover .cert-img img {
    transform: scale(1.1); /* 图片放大到1.1倍 */
}

/* 移除cert-img的下划线特效 */
.cert-item p {
    padding: 15px;
    margin: 0;
    text-align: center;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background: #fff;
    border-top: 1px solid #eee;
    position: relative;
}

.cert-item p::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 0;
    height: 3px;
    background: #ff5733;
    transition: width 0.4s ease, left 0.4s ease;
}

/* 修改触发条件：当鼠标悬停在cert-item上时，显示标题下划线 */
.cert-item:hover p::after {
    width: 100%;
    left: 0;
}

/* 企业文化 */
.culture-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 40px;
}

.culture-item {
    background: #f2f2f2;
    padding: 40px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.culture-item:hover {
    transform: translateY(-5px);
    background: #fff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.culture-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s, transform 0.3s; /* 添加过渡效果 */
}

.culture-icon i {
    font-size: 36px;
    color: #fff;
}

.culture-item:hover .culture-icon {
    transform: scale(1.1); /* 鼠标悬停时放大 */
    background: #e5955c; /* 鼠标悬停时改变背景色 */
}

.culture-item h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #333;
}

.culture-item p {
    color: #666;
    line-height: 1.6;
}

/* 分页控制样式 */
.cert-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 15px;
    gap: 10px;
}

.cert-prev,
.cert-next {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #f2f2f2;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 16px;
    color: #666;
}

.cert-prev:hover,
.cert-next:hover {
    background: var(--secondary-color);
    color: #fff;
}

/* 响应式调整 */
/*@media screen and (max-width: 1024px) {
    .cert-item p {
        padding: 10px;
        font-size: 14px;
    }
}*/

@media screen and (max-width: 1055px) {
    .cert-wrapper {
        overflow: hidden;
    }

    .qualification-list {
        display: flex;
        flex-wrap: nowrap; /* 移动端不换行，实现滑动 */
        transition: transform 0.3s ease-out;
    }

    .cert-item {
        flex: 0 0 100%;
        width: 100%;
        margin: 5px 0;
    }

}

@media screen and (max-width: 480px) {
    .cert-item p {
        padding: 8px;
    }
}

.honor-list {
    display: flex;
    flex-wrap: wrap;
    transition: transform 0.3s ease-out;
}

@media screen and (max-width: 1055px) {
    .honor-list {
        display: flex;
        flex-wrap: nowrap;
        transition: transform 0.3s ease-out;
    }
}

/* 2K屏幕适配 */
@media screen and (min-width: 2000px) {
    
    .intro-content {
        max-width: 1500px;
        font-size: 18px;
    }
    
    .cert-item {
        width: calc(33.33% - 30px);
        margin: 30px 15px;
    }
    
    .cert-item p {
        font-size: 18px;
    }
    
    .culture-item {
        padding: 50px;
    }
    
    .culture-icon {
        width: 100px;
        height: 100px;
    }
    
    .culture-item h3 {
        font-size: 24px;
    }
    
    .culture-item p {
        font-size: 18px;
    }
}

/* 4K屏幕适配 */
@media screen and (min-width: 3000px) {
    
    .intro-content {
        max-width: 1800px;
        font-size: 20px;
    }
    
    .cert-item {
        width: calc(33.33% - 40px);
        margin: 40px 20px;
    }
    
    .cert-item p {
        font-size: 20px;
    }
    
    .culture-item {
        padding: 60px;
    }
    
    .culture-icon {
        width: 120px;
        height: 120px;
    }
    
    .culture-item h3 {
        font-size: 28px;
    }
    
    .culture-item p {
        font-size: 20px;
    }
}

/* 弹窗样式 */
/* 弹窗样式 */
.qualification-modal,
.honor-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    overflow-y: auto;
    display: none;
}

.modal-content {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    width: 90%;
    max-width: 1000px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    color: #333;
    cursor: pointer;
    z-index: 1001;
    transition: color 0.3s;
}

.modal-close:hover {
    color: var(--secondary-color);
}

.modal-body {
    padding: 20px;
    text-align: center;
}

.modal-img {
    width: 100%;
    max-height: 80vh;
    height: auto;
    border-radius: 4px;
    object-fit: contain;
}

.modal-title {
    margin-top: 15px;
    font-size: 20px;
    color: #333;
    text-align: center;
}

/* 响应式弹窗 */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
    }
    .modal-img {
        max-height: 60vh;
    }
}    