/* ========================================
   TONRY Qualifications Gallery Styles
   资质证书专用样式 - 1:1.41 标准比例
   ======================================== */

/* 资质证书页面专用样式 - 覆盖荣誉墙的样式 */
.qualifications-gallery-section .honor-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    grid-auto-rows: auto;
}

/* 资质证书单元格 - 使用 aspect-ratio 保持 1:1.41 比例 */
.qualifications-gallery-section .honor-gallery-item {
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    width: 100%;
    height: auto;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.qualifications-gallery-section .honor-gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* 图片容器 - 保持 1:1.41 的宽高比（资质证书标准比例） */
.qualifications-gallery-section .honor-item-image {
    position: relative;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1.41;
    overflow: hidden;
    background: linear-gradient(135deg, #f8f8f8 0%, #f0f0f0 100%);
    flex-shrink: 0;
}

/* 图片样式 - 居中显示，保持比例，不变形 */
.qualifications-gallery-section .honor-item-image img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 92%;
    max-height: 92%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.qualifications-gallery-section .honor-gallery-item:hover .honor-item-image img {
    transform: translate(-50%, -50%) scale(1.05);
}

/* 遮罩层效果 */
.qualifications-gallery-section .honor-item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background: linear-gradient(135deg, rgba(250, 108, 36, 0.85), rgba(221, 88, 46, 0.9)); */
    background: none;
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.qualifications-gallery-section .honor-gallery-item:hover .honor-item-overlay {
    opacity: 1;
}

/* 放大图标 */
.qualifications-gallery-section .honor-zoom-icon {
    font-style: normal;
    width: 50px;
    height: 50px;
    line-height: 46px;
    text-align: center;
    background: #fa6c24;
    border-radius: 50%;
    font-size: 28px;
    font-weight: 300;
    color: #fff;
    transform: scale(0.5);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.qualifications-gallery-section .honor-gallery-item:hover .honor-zoom-icon {
    transform: scale(1);
}

/* 标题样式 */
.qualifications-gallery-section .honor-item-title {
    padding: 15px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 0.3s ease;
    background: #fff;
    line-height: 3.5;
    min-height: 50px;
    display: block;
}

.qualifications-gallery-section .honor-gallery-item:hover .honor-item-title {
    color: #fa6c24;
}

/* ========================================
   响应式布局适配
   ======================================== */
@media (max-width: 1200px) {
    .qualifications-gallery-section .honor-gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }
}

@media (max-width: 992px) {
    .qualifications-gallery-section .honor-gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    .qualifications-gallery-section .honor-item-title {
        font-size: 13px;
        padding: 12px;
        min-height: 45px;
    }

    .qualifications-gallery-section .honor-zoom-icon {
        width: 45px;
        height: 45px;
        line-height: 41px;
        font-size: 24px;
    }
}

@media (max-width: 768px) {
    .qualifications-gallery-section .honor-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .qualifications-gallery-section .honor-gallery-item {
        border-radius: 10px;
    }

    .qualifications-gallery-section .honor-item-title {
        font-size: 12px;
        padding: 10px;
        min-height: 40px;
    }

    .qualifications-gallery-section .honor-zoom-icon {
        width: 40px;
        height: 40px;
        line-height: 36px;
        font-size: 20px;
    }
}

@media (max-width: 480px) {

    .layui-layer-setwin .layui-layer-close2 {
        right: -3px;
    }


    .qualifications-gallery-section .honor-gallery-grid {
        grid-template-columns: repeat(1, 1fr);
        gap: 10px;
    }

    .qualifications-gallery-section .honor-gallery-item {
        border-radius: 8px;
    }

    .qualifications-gallery-section .honor-item-title {
        font-size: 13px;
        padding: 8px;
        min-height: 36px;
        line-height: 2.5;
    }

    .qualifications-gallery-section .honor-zoom-icon {
        width: 36px;
        height: 36px;
        line-height: 32px;
        font-size: 18px;
    }
}

/* ========================================
   动画效果
   ======================================== */
.qualifications-gallery-section .honor-gallery-item {
    opacity: 0;
    transform: translateY(30px);
    animation: qualificationsFadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.qualifications-gallery-section .honor-gallery-item:nth-child(1) {
    animation-delay: 0.1s;
}

.qualifications-gallery-section .honor-gallery-item:nth-child(2) {
    animation-delay: 0.15s;
}

.qualifications-gallery-section .honor-gallery-item:nth-child(3) {
    animation-delay: 0.2s;
}

.qualifications-gallery-section .honor-gallery-item:nth-child(4) {
    animation-delay: 0.25s;
}

.qualifications-gallery-section .honor-gallery-item:nth-child(5) {
    animation-delay: 0.3s;
}

.qualifications-gallery-section .honor-gallery-item:nth-child(6) {
    animation-delay: 0.35s;
}

.qualifications-gallery-section .honor-gallery-item:nth-child(7) {
    animation-delay: 0.4s;
}

.qualifications-gallery-section .honor-gallery-item:nth-child(8) {
    animation-delay: 0.45s;
}

@keyframes qualificationsFadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}