/* ============================================================
   证书/荣誉列表页 · Honor/Certificate Page Styles
   ============================================================ */

/* 页面容器 */
.honor-page-wrap {
    max-width: 1400px;
    margin: 0 auto;
    padding: 50px 20px 60px;
}

/* 页面标题 */
.honor-page-title {
    text-align: left;
    margin-bottom: 40px;
    padding-bottom: 15px;
    border-bottom: 3px solid #4ec548;
}

.honor-page-title h1 {
    font-size: 28px;
    color: #222;
    margin: 0;
    font-weight: bold;
    letter-spacing: 1px;
}

.honor-page-title h1::after {
    content: '';
    display: inline-block;
    width: 4px;
    height: 4px;
    background: #4ec548;
    border-radius: 50%;
    margin-left: 10px;
    vertical-align: middle;
}

/* 分组标题 */
.honor-section-title {
    margin: 50px 0 25px;
    padding-left: 16px;
    border-left: 4px solid #4ec548;
}

.honor-section-title h2 {
    font-size: 20px;
    color: #333;
    margin: 0;
    font-weight: bold;
    letter-spacing: 1px;
}

/* 证书卡片网格 */
.honor-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

/* 单个证书卡片 */
.honor-card {
    background: #fafafa;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                box-shadow 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: zoom-in;
}

.honor-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(10, 153, 2, 0.15),
                0 10px 20px rgba(0, 0, 0, 0.08);
}

/* 证书图片 */
.honor-image-box {
    width: 100%;
    aspect-ratio: 3 / 4;
    position: relative;
    overflow: hidden;
    background: #f5f5f5;
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
}

.honor-image-box img {
    width: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    display: block;
}

.honor-card:hover .honor-image-box img {
    transform: scale(1.05);
}

/* hover 遮罩提示 */
.honor-image-box::after {
    content: '点击查看大图';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.65), transparent);
    color: #fff;
    font-size: 13px;
    text-align: center;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.honor-card:hover .honor-image-box::after {
    opacity: 1;
    transform: translateY(0);
}

/* 证书信息 */
.honor-info {
    padding: 18px 15px 22px;
    text-align: center;
    background: #fafafa;
    border-top: 2px solid transparent;
    transition: border-color 0.3s ease, background 0.3s ease;
}

.honor-card:hover .honor-info {
    border-top-color: #4ec548;
    background: #fff;
}

.honor-title {
    font-size: 15px;
    color: #333;
    font-weight: 500;
    margin: 0;
    line-height: 1.5;
}

.honor-card:hover .honor-title {
    color: #4ec548;
    transition: color 0.3s ease;
}

/* ========= 图片放大弹窗 Lightbox ========= */

.honor-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.88);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    animation: fadeIn 0.3s ease;
}

.honor-overlay.active {
    display: flex;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.honor-overlay-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    animation: zoomIn 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.honor-overlay-content img {
    max-width: 100%;
    max-height: 90vh;
    display: block;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border-radius: 4px;
}

.honor-overlay-caption {
    text-align: center;
    color: #fff;
    padding: 15px 20px 0;
    font-size: 16px;
    letter-spacing: 1px;
}

.honor-overlay-close {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 40px;
    height: 40px;
    background: #4ec548;
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, background 0.2s ease;
    box-shadow: 0 4px 12px rgba(10, 153, 2, 0.4);
    z-index: 10;
}

.honor-overlay-close:hover {
    transform: rotate(90deg) scale(1.1);
    background: #087a01;
}

.honor-overlay-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    transition: background 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.honor-overlay-nav:hover {
    background: #4ec548;
}

.honor-overlay-prev {
    left: -70px;
}

.honor-overlay-next {
    right: -70px;
}

.honor-overlay-counter {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    color: #999;
    font-size: 13px;
    letter-spacing: 1px;
}

/* ========= 响应式 Responsive ========= */
@media screen and (max-width: 1600px) and (max-height: 992px) {
.honor-grid {
    grid-template-columns: repeat(5, 1fr);
}
    .honor-title{
        font-size: 14px;
    }
}


@media screen and (max-width: 992px) {
    .honor-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 20px;
    }

    .honor-page-title h1 {
        font-size: 24px;
    }

    .honor-section-title {
        margin: 35px 0 18px;
    }

    .honor-section-title h2 {
        font-size: 17px;
    }

    .honor-title {
        font-size: 14px;
    }

    .honor-image-box::after {
        font-size: 12px;
        padding: 10px;
    }

    .honor-overlay-nav {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .honor-overlay-prev {
        left: 10px;
    }

    .honor-overlay-next {
        right: 10px;
    }
}

@media screen and (max-width: 640px) {
    .honor-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .honor-page-wrap {
        padding: 30px 15px 40px;
    }

    .honor-page-title h1 {
        font-size: 20px;
    }

    .honor-info {
        padding: 12px 10px 15px;
    }

    .honor-title {
        font-size: 12px;
    }

    .honor-overlay-close {
        top: -12px;
        right: -12px;
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
}
