/* ========================================
   案例页面专属样式
   ======================================== */

/* 页面标题 */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: #fff;
    padding: 60px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 42px;
    margin-bottom: 15px;
    font-weight: 700;
}

.page-header p {
    font-size: 18px;
    opacity: 0.9;
}

/* 案例筛选 */
.case-filter {
    background: var(--bg-light);
    padding: 30px 0;
    position: sticky;
    top: 80px;
    z-index: 100;
}

.filter-list {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-item {
    padding: 10px 25px;
    background: var(--bg-white);
    border-radius: 25px;
    font-size: 15px;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.filter-item:hover,
.filter-item.active {
    background: var(--accent-color);
    color: #fff;
}

/* 案例列表 */
.cases-list {
    padding: 60px 0;
}

.cases-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.case-detail-card {
    background: var(--bg-white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.case-header {
    background: var(--primary-color);
    color: #fff;
    padding: 30px 40px;
}

.case-tags {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.case-type {
    background: rgba(255,255,255,0.2);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 13px;
}

.case-status {
    background: var(--accent-color);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 13px;
}

.case-status.win {
    background: #07c160;
}

.case-header h2 {
    font-size: 28px;
    font-weight: 600;
}

.case-body {
    padding: 40px;
}

.case-section {
    margin-bottom: 30px;
}

.case-section:last-child {
    margin-bottom: 0;
}

.case-section h3 {
    font-size: 18px;
    color: var(--primary-color);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
}

.case-section p {
    font-size: 15px;
    color: var(--text-gray);
    line-height: 1.8;
}

.case-section ul {
    list-style: none;
    padding-left: 0;
}

.case-section li {
    padding: 8px 0 8px 25px;
    position: relative;
    font-size: 15px;
    color: var(--text-gray);
    line-height: 1.6;
}

.case-section li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

.result-box {
    background: var(--bg-light);
    padding: 25px;
    border-radius: 8px;
    border-left: 4px solid var(--accent-color);
}

.result-box p {
    margin-bottom: 15px;
}

.result-box ul {
    margin: 0;
}

.case-meta {
    display: flex;
    gap: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    font-size: 14px;
    color: var(--text-gray);
}

.case-meta strong {
    color: var(--primary-color);
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 50px;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 14px;
    transition: var(--transition);
}

.pagination a:hover,
.pagination .current {
    background: var(--accent-color);
    color: #fff;
    border-color: var(--accent-color);
}

/* 案例统计 */
.case-stats {
    background: var(--bg-light);
    padding: 80px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.stat-item {
    background: var(--bg-white);
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow);
}

.stat-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.stat-num {
    font-size: 42px;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 10px;
}

.stat-text {
    font-size: 15px;
    color: var(--text-gray);
}

/* 底部CTA */
.cta-section {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-hover) 100%);
    padding: 80px 0;
    color: #fff;
    text-align: center;
}

.cta-content h2 {
    font-size: 36px;
    margin-bottom: 15px;
}

.cta-content p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 30px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* ========================================
   响应式适配
   ======================================== */
@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .page-header h1 {
        font-size: 32px;
    }
    
    .case-filter {
        top: 60px;
        padding: 20px 0;
    }
    
    .filter-list {
        gap: 10px;
    }
    
    .filter-item {
        padding: 8px 18px;
        font-size: 14px;
    }
    
    .case-header {
        padding: 25px;
    }
    
    .case-header h2 {
        font-size: 22px;
    }
    
    .case-body {
        padding: 25px;
    }
    
    .case-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }
    
    .stat-item {
        padding: 25px 20px;
    }
    
    .stat-num {
        font-size: 32px;
    }
    
    .cta-content h2 {
        font-size: 28px;
    }
    
    .cta-buttons {
        flex-direction: column;
        padding: 0 20px;
    }
}

@media (max-width: 480px) {
    .page-header {
        padding: 40px 0;
    }
    
    .page-header h1 {
        font-size: 26px;
    }
    
    .case-tags {
        flex-wrap: wrap;
    }
    
    .case-header h2 {
        font-size: 20px;
    }
    
    .case-section h3 {
        font-size: 16px;
    }
    
    .result-box {
        padding: 20px;
    }
    
    .pagination {
        flex-wrap: wrap;
    }
    
    .pagination a,
    .pagination span {
        min-width: 35px;
        height: 35px;
        padding: 0 10px;
        font-size: 13px;
    }
}
