/* 荣誉资质页面样式 */

/* 英雄区域 */
.hero {
    position: relative;
    margin-top: 96px;
    width: 100%;
    height: 488px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url(../images/honors/banner.jpg);
    background-size: cover;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-bg-1,
.hero-bg-2 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-bg-2 {
    z-index: 2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(3.43, 21.60, 35.79, 0.80) 0%, rgba(3, 22, 36, 0.24) 66%);
    z-index: 3;
}

.hero-content {
    position: relative;
    z-index: 4;
    text-align: center;
}

.hero-content h1 {
    background: white;
    color: transparent;
    background-clip: text;
    -webkit-background-clip: text;
    font-size: 48px;
    font-family: 'Helvetica', sans-serif;
    font-weight: 700;
    margin: 0;
}

/* 主要内容 */
.main-content {
    width: 100%;
    background: white;
}

/* 通用区域样式 */
.section-container {
    margin: 0 auto;
}

.section-title {
    background: #333333;
    color: transparent;
    background-clip: text;
    -webkit-background-clip: text;
    font-size: 30px;
    font-family: 'Source Han Sans CN', sans-serif;
    font-weight: 700;
    text-align: center;
}

section{
    padding: 0 ;
    padding-top: 80px;
}
/* 轮播图样式 */
.patents-swiper,
.compulsory-swiper,
.compulsory2-swiper,
.honor-swiper {
    width: 100%;
    height: 246px;
    background-color: #F4F4F4;
}

.patents-swiper .swiper-wrapper,
.compulsory-swiper .swiper-wrapper,
.compulsory2-swiper .swiper-wrapper,
.honor-swiper .swiper-wrapper {
    display: flex;
    align-items: center;
}

.patents-swiper .swiper-slide,
.compulsory-swiper .swiper-slide,
.compulsory2-swiper .swiper-slide,
.honor-swiper .swiper-slide {
    width: 150px !important;
    height: 206px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.patent-slide,
.compulsory-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.patent-image,
.compulsory-image {
    width: 150px;
    height: 206px;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.patent-image:hover,
.compulsory-image:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.patent-image.loaded,
.compulsory-image.loaded {
    opacity: 1;
}

.patent-image.error,
.compulsory-image.error {
    opacity: 0.5;
    background: #f0f0f0;
}

/* 证书滚动容器 */
.certificates-scroll {
    width: 100%;
    height: 266px;
    background: #F4F4F4;
    overflow: hidden;
    position: relative;
    padding: 0 20px;
    box-sizing: border-box;
}

.certificates-container {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 30px 0;
    animation: scroll-left 30s linear infinite;
    gap: 40px;
}

.certificate {
    height: 206px;
    width: auto;
    flex-shrink: 0;
    object-fit: contain;
}

/* 荣誉证书特殊样式 */
.honor-cert {
    width: 146px;
}

.honor-cert.wide {
    width: auto;
    max-width: 307px;
}

.insurance-section{
    margin-bottom: 85px;
}

/* 滚动动画 */
@keyframes scroll-left {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* 鼠标悬停暂停动画 */
.certificates-scroll:hover .certificates-container {
    animation-play-state: paused;
}

/* 专利区域 */
/* 3C认证区域 */
.ccc-certificates {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.certificates-row {
    width: 100%;
}

.certificates-row .certificates-scroll {
    height: 272px;
}

.certificates-row .certificate {
    height: 212px;
}

/* 保险单区域 */
.insurance-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.insurance-item {
    display: flex;
    justify-content: center;
    align-items: center;
}

.insurance-doc {
    width: 192px;
    /* height: 270px; */
    object-fit: cover;
    border: 1px solid #EEEEEE;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.insurance-doc:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* 响应式设计 */
@media (max-width: 1440px) {
    .section-container {
        padding: 0 60px;
    }
}

@media (max-width: 1024px) {
    .section-container {
        padding: 0 40px;
    }
    
    .hero-content h1 {
        font-size: 36px;
    }
    
    .section-title {
        font-size: 24px;
        margin-bottom: 60px;
        padding-top: 80px;
    }
    
    .insurance-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 15px;
    }
    
    .insurance-doc {
        width: 150px;
        height: 210px;
    }
}

@media (max-width: 768px) {
    .section-container {
        padding: 0 20px;
    }
    
    .hero {
        height: 300px;
    }
    
    .hero-content h1 {
        font-size: 28px;
    }
    
    .section-title {
        font-size: 20px;
        margin-bottom: 40px;
        padding-top: 60px;
    }
    
    .certificates-scroll {
        height: 200px;
    }
    
    .certificate {
        height: 140px;
    }
    
    .certificates-row .certificates-scroll {
        height: 200px;
    }
    
    .certificates-row .certificate {
        height: 140px;
    }
    
    .insurance-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .insurance-doc {
        width: 120px;
        height: 168px;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 24px;
    }
    
    .section-title {
        font-size: 18px;
    }
    
    .insurance-grid {
        grid-template-columns: 1fr;
    }
    
    .insurance-doc {
        width: 160px;
        height: 224px;
    }
}

/* 证书点击放大效果 */
.certificate {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.certificate:hover {
    transform: scale(1.1);
    z-index: 10;
    position: relative;
}

/* 加载动画 */
.certificate {
    opacity: 0;
    animation: fadeIn 0.6s ease forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* 为不同的证书添加延迟 */
.certificate:nth-child(1) { animation-delay: 0.1s; }
.certificate:nth-child(2) { animation-delay: 0.2s; }
.certificate:nth-child(3) { animation-delay: 0.3s; }
.certificate:nth-child(4) { animation-delay: 0.4s; }
.certificate:nth-child(5) { animation-delay: 0.5s; }
.certificate:nth-child(6) { animation-delay: 0.6s; }
.certificate:nth-child(7) { animation-delay: 0.7s; }
.certificate:nth-child(8) { animation-delay: 0.8s; }
.certificate:nth-child(9) { animation-delay: 0.9s; }