/* 案例展示页面样式 - 统一配色方案 */

/* CSS变量定义 - 与产品页面保持一致 */
:root {
    --primary-color: #050816;
    --accent-color: #4d9eff;
    --text-primary: #ffffff;
    --text-secondary: #c0c8e7;
    --text-muted: #8a94a6;
    --border-color: #1a2332;
    --card-bg: #0a0f1a;
    --card-hover-bg: #111827;
    --gradient-primary: linear-gradient(135deg, #4d9eff 0%, #6bb6ff 100%);
    --gradient-secondary: linear-gradient(135deg, #1a2332 0%, #2d3748 100%);
    --shadow-primary: 0 8px 32px rgba(77, 158, 255, 0.15);
    --shadow-secondary: 0 4px 20px rgba(0, 0, 0, 0.3);
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 页面整体布局 */
.honor-section {
    background: var(--primary-color);
    min-height: 100vh;
    padding: 40px 0; /* 减少顶部内边距，因为移除了banner */
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 页面标题区域 */
.page-header {
    text-align: center;
    margin-bottom: 50px;
    padding: 40px 0;
    background: var(--gradient-secondary);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-secondary);
}

.page-title {
    color: var(--text-primary);
    font-size: 36px;
    font-weight: 700;
    margin: 0 0 15px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.page-title i {
    color: var(--accent-color);
    font-size: 32px;
}

.page-subtitle {
    color: var(--text-secondary);
    font-size: 18px;
    margin: 0;
    line-height: 1.6;
}

/* 案例分类标签 - 首页风格 */
.case-categories {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 50px;
    padding: 30px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-secondary);
}

.category-item {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    background: var(--gradient-secondary);
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 500;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.category-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    transition: var(--transition);
    z-index: 1;
}

.category-item:hover::before,
.category-item.active::before {
    left: 0;
}

.category-item span {
    position: relative;
    z-index: 2;
}

.category-item:hover,
.category-item.active {
    color: var(--text-primary);
    border-color: var(--accent-color);
    box-shadow: var(--shadow-primary);
    transform: translateY(-2px);
}

.category-item.active {
    background: var(--gradient-primary);
    border-color: var(--accent-color);
}

/* 案例网格布局 */
.honor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

/* 单个案例时的特殊布局 */
.honor-grid.single-honor {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    justify-content: start;
}

.honor-grid.single-honor .honor-item {
    max-width: none;
    margin: 0;
}

/* 当只有一个案例时，确保其左对齐 */
.honor-grid:has(.honor-item:only-child) {
    justify-content: flex-start;
}

/* 当只有一个案例时，确保其左对齐 */
.honor-grid:has(.honor-item:only-child) {
    justify-content: flex-start;
}

/* 当只有一个案例时，确保其左对齐 */
.honor-grid:has(.honor-item:only-child) {
    justify-content: start;
}

/* 案例卡片 - 简化版 */
.honor-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-secondary);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.honor-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-primary);
    border-color: var(--accent-color);
}

.honor-item a {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.honor-image {
    position: relative;
    overflow: hidden;
    height: 200px;
    background: var(--card-bg);
}

.honor-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.honor-item:hover .honor-image img {
    transform: scale(1.05);
}

.honor-content {
    padding: 20px;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.honor-title {
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-align: center;
}

/* 分页容器 */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 50px;
}

.pagination-container ul {
    display: flex;
    align-items: center;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.pagination-container a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: var(--card-bg);
    color: var(--text-secondary);
    text-decoration: none;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 16px;
    font-weight: 500;
    transition: var(--transition);
}

.pagination-container a:hover,
.pagination-container a.hover {
    background: var(--gradient-primary);
    color: var(--text-primary);
    border-color: var(--accent-color);
    box-shadow: var(--shadow-primary);
    transform: translateY(-2px);
}

.pagination-container .page-prev,
.pagination-container .page-next {
    width: 45px;
    height: 45px;
}

.pagination-container .page-prev i,
.pagination-container .page-next i {
    font-size: 14px;
}

/* 加载状态 */
.loading-container {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(77, 158, 255, 0.1);
    border-top: 3px solid var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

/* 错误状态 */
.error-container {
    text-align: center;
    padding: 60px 20px;
    color: #ef4444;
}

.error-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.error-container h3 {
    margin: 0 0 10px 0;
    color: #ef4444;
}

.error-container p {
    margin: 0;
    color: var(--text-muted);
}

/* 空状态 - 美化版 */
.empty-container {
    text-align: center;
    padding: 80px 40px;
    color: var(--text-muted);
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-secondary);
    margin: 20px 0;
    /* 覆盖1-3个容器宽度 */
    grid-column: 1 / -1;
    /* 居中显示 */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    position: relative;
    overflow: hidden;
}

.empty-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    animation: shimmer 2s ease-in-out infinite;
}

.empty-icon {
    font-size: 80px;
    margin-bottom: 30px;
    color: var(--accent-color);
    opacity: 0.6;
    animation: float 3s ease-in-out infinite;
}

.empty-container h3 {
    margin: 0 0 20px 0;
    color: var(--text-primary);
    font-size: 28px;
    font-weight: 600;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.empty-container p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.6;
    max-width: 500px;
}

/* 添加装饰元素 */
.empty-container::after {
    content: '';
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: var(--gradient-primary);
    border-radius: 1px;
}

/* 动画效果 */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes shimmer {
    0%, 100% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .honor-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .honor-section {
        padding: 30px 0 20px;
    }
    
    .page-title {
        font-size: 28px;
    }
    
    .page-subtitle {
        font-size: 16px;
    }
    
    .case-categories {
        padding: 20px;
        gap: 10px;
    }
    
    .category-item {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .honor-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 15px;
    }
    
    .honor-content {
        padding: 15px;
    }
    
    .honor-title {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .page-header {
        padding: 30px 20px;
    }
    
    .page-title {
        font-size: 24px;
        flex-direction: column;
        gap: 10px;
    }
    
    .case-categories {
        flex-direction: column;
        align-items: stretch;
    }
    
    .category-item {
        justify-content: center;
    }
    
    .honor-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}
