/* 企业荣誉页面专用样式 */

/* 主体内容样式 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Arial', 'Microsoft YaHei', sans-serif;
    color: #333;
    line-height: 1.6;
}

/* 简洁标题区域样式 */
.page-title {
    background-color: #163762; /* 行政蓝 */
    color: white;
    padding: 60px 0;
    text-align: center;
}

.page-title h1 {
    font-size: 36px;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-title p {
    font-size: 18px;
    margin: 0;
    opacity: 0.9;
}

/* 荣誉介绍区域样式 */
.honor-intro {
    padding: 60px 0;
    background-color: white;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.honor-intro h2 {
    text-align: center;
    color: #163762; /* 行政蓝 */
    font-size: 32px;
    margin-bottom: 40px;
    position: relative;
}

.intro-content {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
    font-size: 16px;
    color: #555;
}

.intro-content p {
    margin-bottom: 20px;
    text-align: justify;
}

/* 证书展示区域样式 */
.certificates-section {
    padding: 40px 0 80px;
    background-color: #f8f8f8;
}

.certificates-section h2 {
    text-align: center;
    color: #163762; /* 行政蓝 */
    font-size: 32px;
    margin-bottom: 40px;
}

/* 证书网格布局 */
.certificates-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 电脑端一行4个 */
    gap: 30px;
}

/* 证书项样式 */
.certificate-item {
    background-color: rgb(255, 255, 255);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    aspect-ratio: 4/3; /* 设置宽高比为4:3 */
}

.certificate-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.certificate-item img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* 保持图片完整比例 */
    padding: 15px;
    box-sizing: border-box;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.certificate-item img:hover {
    transform: scale(1.05);
}

.certificate-caption {
    padding: 15px;
    text-align: center;
    font-size: 16px;
    color: #333;
    border-top: 1px solid #eee;
    background-color: #f9f9f9;
}

/* 更柔和的渐入动画效果 */
@keyframes gentleAppear {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in-element {
    opacity: 0;
    animation: gentleAppear 0.6s ease-out forwards;
}

/* 图片放大模态框样式 */
.image-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-modal.active {
    display: flex;
    opacity: 1;
}

.modal-image {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.image-modal.active .modal-image {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 2001;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: #ffcc00;
}

.modal-caption {
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 100%;
    text-align: center;
    color: white;
    font-size: 18px;
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.7);
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .page-title {
        padding: 50px 0;
    }
    
    .certificates-grid {
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .page-title {
        padding: 40px 0;
    }
    
    .page-title h1 {
        font-size: 32px;
    }
    
    .page-title p {
        font-size: 16px;
    }
    
    .honor-intro, .certificates-section {
        padding: 40px 0;
    }
    
    .honor-intro h2, .certificates-section h2 {
        font-size: 28px;
        margin-bottom: 30px;
    }
    
    .intro-content {
        font-size: 15px;
    }
    
    /* 平板端一行3个 */
    .certificates-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .certificate-caption {
        font-size: 15px;
    }
}

@media (max-width: 600px) {
    /* 手机端一行2个 */
    .certificates-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .page-title {
        padding: 30px 0;
    }
    
    .page-title h1 {
        font-size: 28px;
    }
    
    .page-title p {
        font-size: 14px;
    }
    
    .honor-intro h2, .certificates-section h2 {
        font-size: 24px;
    }
    
    .intro-content {
        font-size: 14px;
    }
    
    .certificate-caption {
        font-size: 14px;
        padding: 10px;
    }
    
    .modal-close {
        top: 10px;
        right: 15px;
        font-size: 30px;
    }
    
    .modal-caption {
        font-size: 16px;
        bottom: 10px;
    }
}