/* 荣誉资质区域样式 */
 .honor-section {
    margin: 10px 0;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    overflow: hidden;
    padding: 15px;
}

.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    margin-bottom: 15px;
}

.title-text {
    font-size: 18px;
    font-weight: bold;
    color: #0056b3;
    position: relative;
    padding-left: 10px;
}

.title-text:before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 18px;
    background-color: #0056b3;
}

.more-link {
    color: #999;
    font-size: 14px;
    text-decoration: none;
}

.more-link:hover {
    color: #0056b3;
}

.honor-slider {
    position: relative;
    margin: 0 auto;
    overflow: hidden;
}

.honor-wrapper {
    display: flex;
    transition: transform 0.5s ease;
    gap: 0;
}

.honor-item {
    flex-shrink: 0;
    padding: 0 10px;
    box-sizing: border-box;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.honor-item:hover {
    transform: translateY(-2px);
}

/* 固定图片容器大小 */
.honor-item .img-container {
    
    width: 100%;
    height: 400px;
    background: #f8f9fa;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.honor-item:hover .img-container {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-color: #0056b3;
}

.honor-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.honor-item:hover img {
    transform: scale(1.05);
}

.honor-caption {
    margin-top: 10px;
    font-size: 14px;
    color: #333;
    text-align: center;
    font-weight: 500;
}

/* 导航按钮样式 */
.honor-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    z-index: 10;
    padding: 0 10px;
    pointer-events: none;
}

.honor-prev, .honor-next {
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 50%;
    font-size: 20px;
    transition: all 0.3s ease;
    pointer-events: auto;
    border: none;
}

.honor-prev:hover, .honor-next:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: scale(1.1);
}

/* 指示点 */
.honor-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
}

.honor-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
}

.honor-dot.active {
    background: #0056b3;
    transform: scale(1.3);
}

/* 图片预览模态框 */
.preview-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.preview-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90%;
    max-height: 90%;
    background: transparent;
    border-radius: 0;
    overflow: visible; /* 允许图片放大后不被裁切 */
    box-shadow: none;
}

.preview-image {
    width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
    display: block;
    transform-origin: center center;
    will-change: transform;
    transition: transform 0.08s linear;
}

/* 响应式调整图片容器高度，避免小屏过高 */
@media (max-width: 1200px) {
    .honor-item .img-container { height: 340px; }
}
@media (max-width: 992px) {
    .honor-item .img-container { height: 300px; }
}
@media (max-width: 768px) {
    .honor-item .img-container { height: 260px; }
}
@media (max-width: 576px) {
    .honor-item .img-container { height: 220px; }
}

.preview-title {
    padding: 20px;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    color: #333;
    background: rgba(248, 249, 250, 0.9);
    border-top: 1px solid rgba(233, 236, 239, 0.9);
}

.preview-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 1001;
}

.preview-close:hover {
    background: white;
    transform: scale(1.1);
}

.preview-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 1001;
}

.preview-nav:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
}

.preview-prev {
    left: 20px;
}

.preview-next {
    right: 20px;
}

/* 响应式样式 */
@media screen and (max-width: 1200px) {
    .honor-item {
        flex: 0 0 25%;
    }
}

@media screen and (max-width: 992px) {
    .honor-item {
        flex: 0 0 33.33%;
    }
    .honor-item .img-container {
        height: 150px;
    }
}

@media screen and (max-width: 768px) {
    .honor-item {
        flex: 0 0 50%;
    }
    .honor-item .img-container {
        height: 140px;
    }
    .honor-caption {
        font-size: 12px;
    }
}

@media screen and (max-width: 576px) {
    .honor-item {
        flex: 0 0 100%;
        padding: 0 5px;
    }
    .honor-item .img-container {
        height: 160px;
    }
    .honor-caption {
        margin-top: 8px;
        margin-bottom: 15px;
    }
}

/* 当图片数量不足时的均匀分布 */
.honor-wrapper.justify-center {
    justify-content: center;
}

.honor-wrapper.justify-space {
    justify-content: space-around;
}