/* 基础容器样式 */
.honors-container {
    max-width: 1400px;
    margin: 60px auto;
    padding: 60px 20px;
    background-color: #f9f9f9;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    position: relative;
}

/* 波浪背景装饰 */
.honors-decoration-top,
.honors-decoration-bottom {
    position: absolute;
    width: 100%;
    height: 60px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

.honors-decoration-top {
    top: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%233498db' fill-opacity='0.05' d='M0,192L48,176C96,160,192,128,288,133.3C384,139,480,181,576,181.3C672,181,768,139,864,122.7C960,107,1056,117,1152,138.7C1248,160,1344,192,1392,208L1440,224L1440,0L1392,0C1344,0,1248,0,1152,0C1056,0,960,0,864,0C768,0,672,0,576,0C480,0,384,0,288,0C192,0,96,0,48,0L0,0Z'%3E%3C/path%3E%3C/svg%3E");
}

.honors-decoration-bottom {
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%233498db' fill-opacity='0.05' d='M0,224L48,213.3C96,203,192,181,288,181.3C384,181,480,203,576,213.3C672,224,768,224,864,202.7C960,181,1056,139,1152,133.3C1248,128,1344,160,1392,176L1440,192L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E");
}

/* 标题样式 */
.section-title {
    text-align: center;
    font-size: 2.8rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

/* 分隔线样式 */
.section-divider {
    height: 4px;
    width: 80px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    margin: 0 auto 50px;
    border-radius: 2px;
    position: relative;
    z-index: 1;
}

/* 证书网格布局 */
.certificate-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    position: relative;
    z-index: 1;
}

/* 证书项样式 */
.certificate-item {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    cursor: pointer;
}

.certificate-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* 证书缩略图样式 */
.certificate-thumbnail {
    position: relative;
    padding-top: 150%;
    overflow: hidden;
}

.certificate-frame {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 15px;
    box-sizing: border-box;
    background: white;
}

.cert-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
    transition: transform 0.5s ease;
}

.certificate-item:hover .cert-thumb-img {
    transform: scale(1.05);
}

/* 证书覆盖层 */
.certificate-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 5px;
}

.certificate-item:hover .certificate-overlay {
    opacity: 1;
}

.view-certificate {
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    padding: 10px 20px;
    background: rgba(52, 152, 219, 0.8);
    border-radius: 30px;
    transition: all 0.3s ease;
}

.certificate-item:hover .view-certificate {
    background: rgba(52, 152, 219, 1);
    transform: scale(1.05);
}

/* 证书名称样式 */
.certificate-name {
    padding: 15px;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
}

/* 证书查看器样式 */
.certificate-viewer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.certificate-viewer.active {
    opacity: 1;
    visibility: visible;
}

.viewer-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.viewer-close:hover {
    transform: rotate(90deg);
}

.viewer-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
}

.viewer-img {
    max-width: 100%;
    max-height: 80vh;
    border: 5px solid white;
    border-radius: 5px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .section-title {
        font-size: 2.2rem;
    }

    .certificate-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .honors-container {
        padding: 40px 15px;
    }

    .section-title {
        font-size: 1.8rem;
    }
}
