/**
 * 烽云官网 - 企业荣誉页面样式
 * 设计风格：扁平化浅色科技风
 * 主色调：#1a72b3
 * 作者：Bruce
 * 创建时间：2026-03-02
 */


/* ==================== 选项卡区域 ==================== */
.cert-tabs-section {
    background: #ffffff;
    padding: 0;
    position: sticky;
    top: 70px;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.cert-tabs {
    display: flex;
    justify-content: center;
    gap: 0;
    max-width: 1200px;
    margin: 0 auto;
    border-bottom: 1px solid #e2e8f0;
}

.tab-item {
    flex: 1;
    max-width: 200px;
    padding: 20px 30px;
    background: none;
    border: none;
    font-size: 16px;
    font-weight: 500;
    color: #64748b;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.tab-item:hover {
    color: #1a72b3;
    background: #f0f9ff;
}

.tab-item.active {
    color: #1a72b3;
    font-weight: 600;
}

.tab-item.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #1a72b3, #3d8bc7);
    border-radius: 2px 2px 0 0;
}

/* ==================== 荣誉内容区域 ==================== */
.cert-content {
    background: #f8fafc;
    padding: 60px 0 80px;
    min-height: 500px;
}

.cert-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 区域标题 */
.region-header {
    text-align: center;
    margin-bottom: 50px;
}

.region-title {
    font-size: 32px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 12px;
    position: relative;
    display: inline-block;
}

.region-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #1a72b3, #3d8bc7);
    border-radius: 2px;
}

.region-desc {
    font-size: 16px;
    color: #64748b;
    margin-top: 20px;
}

/* 荣誉网格布局 */
.honor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

/* 荣誉卡片 */
.honor-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -1px rgba(0,0,0,0.03);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid #e2e8f0;
}

.honor-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
    border-color: #1a72b3;
}

.honor-image-wrapper {
    position: relative;
    height: 260px;
    overflow: hidden;
    background: #f1f5f9;
}

.honor-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: #f8fafc;
}

.honor-card:hover .honor-image {
    /* 移除放大效果，完整显示图片 */
}

/* 图片悬停遮罩 */
.honor-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 114, 179, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.honor-card:hover .honor-overlay {
    opacity: 1;
}

.honor-view-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #ffffff;
    color: #1a72b3;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.honor-view-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.honor-view-btn svg {
    width: 18px;
    height: 18px;
}

/* 荣誉卡片内容 */
.honor-content {
    padding: 16px 20px 20px;
}

.honor-title {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.5;
    text-align: center;
}

/* ==================== 分页组件 ==================== */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 60px;
}

.pagination-wrapper .pagination {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    padding: 8px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    list-style: none;
    margin: 0;
}

.pagination-wrapper .pagination li {
    display: flex;
}

.pagination-wrapper .pagination li a,
.pagination-wrapper .pagination li span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #64748b;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    background: transparent;
}

.pagination-wrapper .pagination li a:hover:not(.active):not(.disabled) {
    background: #f0f9ff;
    color: #1a72b3;
}

.pagination-wrapper .pagination li.active span,
.pagination-wrapper .pagination li.current span {
    background: linear-gradient(135deg, #1a72b3, #3d8bc7);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(26,114,179,0.3);
}

.pagination-wrapper .pagination li.disabled span {
    color: #cbd5e1;
    cursor: not-allowed;
}

/* ==================== 动画效果 ==================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.honor-card {
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
}

.honor-card:nth-child(1) { animation-delay: 0.05s; }
.honor-card:nth-child(2) { animation-delay: 0.1s; }
.honor-card:nth-child(3) { animation-delay: 0.15s; }
.honor-card:nth-child(4) { animation-delay: 0.2s; }
.honor-card:nth-child(5) { animation-delay: 0.25s; }
.honor-card:nth-child(6) { animation-delay: 0.3s; }
.honor-card:nth-child(7) { animation-delay: 0.35s; }
.honor-card:nth-child(8) { animation-delay: 0.4s; }
.honor-card:nth-child(9) { animation-delay: 0.45s; }
.honor-card:nth-child(10) { animation-delay: 0.5s; }
.honor-card:nth-child(11) { animation-delay: 0.55s; }
.honor-card:nth-child(12) { animation-delay: 0.6s; }

/* ==================== 响应式设计 ==================== */

/* 平板端 (768px - 1199px) */
@media (max-width: 1199px) {
    .cert-banner {
        height: 420px;
    }
    
    .cert-banner .banner-title {
        font-size: 36px;
    }
    
    .cert-banner .banner-stats {
        gap: 40px;
    }
    
    .cert-banner .stat-number {
        font-size: 28px;
    }
    
    .cert-tabs {
        padding: 0 20px;
    }
    
    .tab-item {
        padding: 16px 20px;
        font-size: 14px;
    }
    
    .honor-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 24px;
    }
    
    .honor-image-wrapper {
        height: 220px;
    }
    
    .region-title {
        font-size: 28px;
    }
}

/* 移动端 (< 768px) */
@media (max-width: 767px) {
    .cert-banner {
        height: 380px;
        margin-top: 60px;
    }
    
    .cert-banner .banner-title {
        font-size: 28px;
        letter-spacing: 1px;
    }
    
    .cert-banner .banner-subtitle {
        font-size: 14px;
    }
    
    .cert-banner .banner-stats {
        gap: 24px;
        margin-top: 30px;
    }
    
    .cert-banner .stat-number {
        font-size: 24px;
    }
    
    .cert-banner .stat-label {
        font-size: 12px;
    }
    
    .cert-tabs-section {
        top: 60px;
    }
    
    .cert-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding: 0;
        justify-content: flex-start;
    }
    
    .cert-tabs::-webkit-scrollbar {
        display: none;
    }
    
    .tab-item {
        min-width: 100px;
        padding: 14px 16px;
        font-size: 13px;
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    .tab-icon {
        width: 16px;
        height: 16px;
    }
    
    .cert-content {
        padding: 40px 0 60px;
    }
    
    .region-title {
        font-size: 24px;
    }
    
    .region-title::after {
        width: 40px;
        height: 3px;
    }
    
    .region-desc {
        font-size: 14px;
    }
    
    .honor-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .honor-image-wrapper {
        height: 160px;
    }
    
    .honor-content {
        padding: 14px 16px 16px;
    }
    
    .honor-title {
        font-size: 14px;
        margin-bottom: 10px;
        min-height: 42px;
    }
    
    .honor-meta {
        gap: 8px;
        padding-top: 10px;
    }
    
    .honor-year,
    .honor-issuer {
        font-size: 12px;
    }
    
    .honor-view-btn {
        padding: 8px 16px;
        font-size: 12px;
    }
    
    .lightbox-close {
        top: 20px;
        right: 20px;
        background: rgba(0,0,0,0.5);
    }
    
    .lightbox-title {
        font-size: 16px;
        padding: 0 20px;
    }
    
    .pagination-wrapper .pagination {
        padding: 6px;
    }
    
    .pagination-wrapper .pagination li a,
    .pagination-wrapper .pagination li span {
        min-width: 36px;
        height: 36px;
        font-size: 13px;
    }
}

/* 小屏移动端 (< 375px) */
@media (max-width: 374px) {
    .cert-banner {
        height: 340px;
    }
    
    .cert-banner .banner-title {
        font-size: 24px;
    }
    
    .cert-banner .banner-stats {
        flex-direction: column;
        gap: 16px;
    }
    
    .tab-item {
        min-width: 90px;
        padding: 12px 14px;
        font-size: 12px;
    }
    
    .honor-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .honor-image-wrapper {
        height: 200px;
    }
}

/* 减少动画偏好支持 */
@media (prefers-reduced-motion: reduce) {
    .honor-card {
        animation: none;
        opacity: 1;
    }
    
    .honor-card:hover {
        transform: none;
    }
    
    .honor-image {
        transition: none;
    }
    
    .honor-overlay {
        transition: none;
    }
    
    .lightbox-modal {
        transition: none;
    }
    
    .lightbox-close:hover {
        transform: none;
    }
}
