﻿/*荣誉详情*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "微软雅黑", Arial, sans-serif;
}

body {
    background-color: #fff;
    color: #333;
    line-height: 1.6;
}

/* 页面横幅 */
.page-banner {
    background: url('../images/index_banner2.jpg') no-repeat center center;
    background-size: cover;
    background-position: center;
    height: 400px;
    position: relative;
    margin-top: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    padding: 0 20px;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
}

.banner-content-w {
    position: relative;
    z-index: 1;
}

.banner-title {
    font-size: 36px;
    margin-bottom: 15px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.banner-title.animate {
    opacity: 1;
    transform: translateY(0);
}

.banner-subtitle {
    font-size: 20px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease 0.3s;
}

.banner-subtitle.animate {
    opacity: 1;
    transform: translateY(0);
}

.breadcrumb {
    position: absolute;
    bottom: 20px;
    left: 20px;
    display: flex;
    align-items: center;
    color: white;
    font-size: 15px;
    z-index: 1;
}

.breadcrumb a {
    color: white;
    text-decoration: none;
    margin: 0 5px;
}

/* 荣誉详情内容 */
.article-section {
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 20px;
}

.article-header {
    text-align: center;
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.article-header.animate {
    opacity: 1;
    transform: translateY(0);
}

.article-title {
    font-size: 28px;
    margin-bottom: 15px;
    color: #333;
}

.article-divider {
    width: 60px;
    height: 3px;
    background-color: #006ed3;
    margin: 0 auto 20px;
}

/* 图片展示区域 */
.image-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 50px;
}

.image-item {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.image-item.animate {
    opacity: 1;
    transform: translateY(0);
}

.image-item img {
    width: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.image-item:hover img {
    transform: scale(1.05);
}

/* 文章导航 */
.article-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
}

.nav-btn {
    padding: 10px 20px;
    background-color: #006ed3;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease;
}

.nav-btn.animate {
    opacity: 1;
    transform: translateY(0);
}

.nav-btn:hover {
    background-color: #0056a3;
}

/* ===== 点击图片放大 ===== */
#imgZoomOverlay{
    position:fixed; inset:0; background:rgba(0,0,0,.8); z-index:9999;
    display:flex; align-items:center; justify-content:center;
    opacity:0; pointer-events:none; transition:.3s;
    overflow: hidden; /* 改为hidden，内部通过transform控制 */
}
#imgZoomOverlay.show{opacity:1;pointer-events:auto;}

/* 图片容器，用于控制拖拽 */
.zoom-image-container {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    transition: transform 0.2s ease;
}

#imgZoomOverlay img{
    max-width: 100%;
    max-height: 100%;
    box-shadow:0 0 20px rgba(0,0,0,.5);
    transform-origin: center center;
    transition: transform 0.2s ease;
    display: block;
    cursor: grab;
}

#imgZoomOverlay img:active {
    cursor: grabbing;
}

#imgZoomOverlay.show img{transform:scale(1);}

#imgZoomOverlay .close{
    position:fixed; top:20px; right:20px; color:#fff; font-size:30px;
    cursor:pointer; line-height:1; z-index: 10000;
    background: rgba(0,0,0,0.5);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}
#imgZoomOverlay .close:hover{
    background: rgba(0,0,0,0.8);
}

/* 缩放控制提示 */
.zoom-controls {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    background: rgba(0,0,0,0.5);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    opacity: 0.8;
    transition: opacity 0.3s;
    z-index: 10000;
    pointer-events: none;
    text-align: center;
}

.zoom-controls:hover {
    opacity: 1;
}

/* 响应式设计 - 小屏样式 */
@media (max-width: 768px) {
    .page-banner {
        height: 300px;
        margin-top: 80px;
    }

    .banner-title {
        font-size: 28px;
    }

    .banner-subtitle {
        font-size: 16px;
    }

    .breadcrumb {
        display: none;
    }

    .image-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .article-navigation {
        flex-direction: column;
        gap: 15px;
    }

    .nav-btn {
        text-align: center;
    }

    /* 小屏下调整图片查看器 */
    .zoom-image-container {
        max-width: 95%;
        max-height: 95%;
    }

    .zoom-controls {
        font-size: 12px;
        padding: 6px 12px;
        bottom: 10px;
    }

    #imgZoomOverlay .close {
        top: 10px;
        right: 10px;
        width: 35px;
        height: 35px;
        font-size: 25px;
    }
}

/* 响应式设计 - 更小屏幕 */
@media (max-width: 480px) {
    .image-gallery {
        grid-template-columns: 1fr;
    }

    .zoom-image-container {
        max-width: 98%;
        max-height: 98%;
    }

    .zoom-controls {
        font-size: 11px;
        padding: 5px 10px;
        width: 90%;
    }
}

