/* ============================================ */
/* 企业荣誉列表页样式 - 证书墙风格 */
/* ============================================ */

/* ========== 荣誉页布局 ========== */
.content-wrapper--honor {
    grid-template-columns: 1fr;
}

/* ========== 荣誉列表容器 ========== */
.honor-wrapper {
    min-height: 600px;
}

/* ========== 分类标签栏（与产品页一致）========== */
.honor-tabs {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.honor-tab-item {
    display: inline-flex;
    align-items: center;
    padding: 10px 24px;
    font-size: 15px;
    color: var(--color-text-secondary);
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.honor-tab-item:hover {
    color: var(--color-primary);
    border-color: var(--color-primary);
    background: rgba(var(--color-primary-rgb), 0.04);
}

.honor-tab-item.honor-tab-active,
.honor-tab-active {
    color: var(--color-white) !important;
    background: var(--color-primary) !important;
    border-color: var(--color-primary) !important;
    font-weight: 600;
}

/* ========== 页面标题区域 ========== */

.honor-tab-item {
    display: inline-flex;
    align-items: center;
    padding: 10px 28px;
    font-size: 14px;
    color: var(--color-text-secondary);
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
    letter-spacing: 1px;
}

.honor-tab-item:hover {
    color: var(--color-primary);
    border-color: var(--color-primary);
    background: rgba(var(--color-primary-rgb), 0.04);
    box-shadow: 0 2px 12px rgba(var(--color-primary-rgb), 0.08);
}

.honor-tab-item.honor-tab-active,
.honor-tab-active {
    color: var(--color-white) !important;
    background: linear-gradient(135deg, #c9a227 0%, #d4af37 50%, #c9a227 100%) !important;
    border-color: transparent !important;
    font-weight: 600;
    box-shadow: 0 4px 16px rgba(201, 162, 39, 0.35);
}

/* ========== 页面标题区域 ========== */
.honor-header {
    text-align: center;
    margin-bottom: 48px;
    position: relative;
}

.honor-header-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin-bottom: 16px;
    color: #d4af37;
}

.honor-header-icon svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 2px 8px rgba(212, 175, 55, 0.25));
}

.honor-header-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--color-text-primary);
    margin: 0 0 10px 0;
    letter-spacing: 6px;
}

.honor-header-subtitle {
    font-size: 15px;
    color: var(--color-text-light);
    margin: 0 0 20px 0;
    letter-spacing: 2px;
}

.honor-header-line {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #d4af37, transparent);
    margin: 0 auto;
    border-radius: 2px;
}

/* ========== 荣誉证书墙网格 ========== */
.honor-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    margin-bottom: 44px;
}

/* ========== 荣誉证书卡片 ========== */
.honor-card {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.honor-card-frame {
    background: var(--color-white);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(201, 162, 39, 0.15);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    transition: all 0.45s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.honor-card:hover .honor-card-frame {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 52px rgba(201, 162, 39, 0.18);
    border-color: rgba(201, 162, 39, 0.35);
}

/* 卡片图片区域 */
.honor-card-img {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: linear-gradient(135deg, #f8f6f0 0%, #efe9dc 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.honor-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.honor-card:hover .honor-card-img img {
    transform: scale(1.08);
}

/* hover 遮罩层 */
.honor-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(26, 93, 156, 0.65) 100%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 20px;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.honor-card:hover .honor-card-overlay {
    opacity: 1;
}

.honor-card-view {
    color: var(--color-white);
    font-size: 13px;
    padding: 8px 24px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 50px;
    backdrop-filter: blur(4px);
    letter-spacing: 2px;
    transform: translateY(12px);
    transition: transform 0.35s ease;
}

.honor-card:hover .honor-card-view {
    transform: translateY(0);
}

/* 卡片内容区 */
.honor-card-body {
    padding: 20px 18px 18px;
    position: relative;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* 角标装饰 */
.honor-card-badge {
    position: absolute;
    top: -14px;
    right: 16px;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #d4af37, #f0d77a);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    box-shadow: 0 2px 10px rgba(212, 175, 55, 0.3);
    z-index: 2;
}

.honor-card-badge svg {
    width: 14px;
    height: 14px;
}

.honor-card-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text-primary);
    margin: 0 0 8px 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.honor-card:hover .honor-card-title {
    color: #b8860b;
}

.honor-card-desc {
    font-size: 13px;
    color: var(--color-text-light);
    line-height: 1.7;
    margin: 0 0 12px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.honor-card-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    padding-top: 10px;
    border-top: 1px solid var(--color-border);
    margin-top: auto;
}

.honor-card-date {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--color-text-light);
}

.honor-card-date svg {
    flex-shrink: 0;
}

/* ============================================ */
/* 响应式 */
/* ============================================ */

@media (max-width: 1200px) {
    .honor-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }
}

@media (max-width: 900px) {
    .honor-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .honor-header-title {
        font-size: 28px;
        letter-spacing: 4px;
    }

    .honor-tabs {
        margin-bottom: 32px;
    }
}

@media (max-width: 768px) {
    .honor-tabs {
        margin-bottom: 24px;
        gap: 6px;
    }

    .honor-tab-item {
        padding: 8px 18px;
        font-size: 13px;
    }

    .honor-header {
        margin-bottom: 32px;
    }

    .honor-header-title {
        font-size: 24px;
        letter-spacing: 3px;
    }

    .honor-header-subtitle {
        font-size: 13px;
    }

    .honor-grid {
        gap: 16px;
        margin-bottom: 32px;
    }

    .honor-card-body {
        padding: 16px 14px 14px;
    }

    .honor-card-title {
        font-size: 15px;
    }

    .honor-card-desc {
        -webkit-line-clamp: 1;
        line-clamp: 1;
    }
}

@media (max-width: 480px) {
    .honor-tabs {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .honor-tabs::-webkit-scrollbar {
        display: none;
    }

    .honor-tab-item {
        padding: 7px 16px;
        font-size: 12px;
    }

    .honor-header-title {
        font-size: 20px;
        letter-spacing: 2px;
    }

    .honor-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .honor-card-img {
        aspect-ratio: 3 / 2;
    }

    .honor-card-body {
        padding: 12px 10px 10px;
    }

    .honor-card-badge {
        width: 24px;
        height: 24px;
        top: -12px;
        right: 10px;
    }

    .honor-card-badge svg {
        width: 12px;
        height: 12px;
    }

    .honor-card-title {
        font-size: 13px;
        margin-bottom: 4px;
    }

    .honor-card-desc {
        font-size: 12px;
        margin-bottom: 8px;
        -webkit-line-clamp: 1;
        line-clamp: 1;
    }

    .honor-card-meta {
        padding-top: 8px;
    }

    .honor-card-view {
        font-size: 12px;
        padding: 6px 16px;
    }
}
