/* 案例展示页面专属样式 */

.page-header {
    padding: 160px 0 80px;
    background: linear-gradient(135deg, var(--dark) 0%, #1e1b4b 100%);
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 50%, rgba(139, 92, 246, 0.15) 0%, transparent 50%);
}

.page-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #fff 0%, #a5b4fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 1;
}

.page-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.7);
    position: relative;
    z-index: 1;
}

/* 案例详情卡片 */
.case-detail-section {
    background: linear-gradient(180deg, var(--light) 0%, var(--white) 100%);
    padding: 100px 0;
}

.case-detail-card {
    background: white;
    border-radius: 32px;
    padding: 60px;
    margin-bottom: 60px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.case-detail-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.12);
}

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

/* 案例视觉区域 */
.case-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.case-icon-wrapper {
    width: 200px;
    height: 200px;
    border-radius: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.case-icon-wrapper::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 35px;
    background: linear-gradient(135deg, rgba(255,255,255,0.3), transparent);
    z-index: -1;
}

.case-icon-wrapper svg {
    width: 80px;
    height: 80px;
    color: white;
}

.gradient-1 {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
}

.gradient-2 {
    background: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 50%, #14b8a6 100%);
}

.gradient-3 {
    background: linear-gradient(135deg, #f59e0b 0%, #f97316 50%, #ef4444 100%);
}

/* 技术栈标签 */
.case-tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.tech-tag {
    padding: 8px 16px;
    background: rgba(99, 102, 241, 0.08);
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 50px;
    border: 1px solid rgba(99, 102, 241, 0.15);
    transition: all 0.3s ease;
}

.tech-tag:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

/* 案例内容区域 */
.case-content {
    padding: 20px 0;
}

.case-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
}

.case-number {
    font-size: 4rem;
    font-weight: 800;
    color: rgba(99, 102, 241, 0.1);
    line-height: 1;
}

.case-header h2 {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--dark);
    margin: 0;
    flex: 1;
}

.case-badge {
    padding: 6px 14px;
    background: linear-gradient(135deg, #f59e0b, #f97316);
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 50px;
    letter-spacing: 1px;
}

.case-desc {
    font-size: 1.1rem;
    color: var(--gray);
    line-height: 1.8;
    margin-bottom: 32px;
}

/* 案例特性 */
.case-features h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.case-features ul {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
}

.case-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    color: var(--gray);
    font-size: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.case-features li:last-child {
    border-bottom: none;
}

.feature-icon {
    color: var(--primary);
    font-weight: 700;
}

/* 特性网格 */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: rgba(99, 102, 241, 0.04);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: rgba(99, 102, 241, 0.08);
    transform: translateX(5px);
}

.feature-emoji {
    font-size: 1.25rem;
}

.feature-item span:last-child {
    font-size: 0.9rem;
    color: var(--gray);
}

/* 算法标签 */
.algorithm-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.algo-tag {
    padding: 6px 14px;
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.algo-tag.primary {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
}

.algo-tag.secondary {
    background: rgba(14, 165, 233, 0.1);
    color: var(--secondary);
}

.algo-tag.accent {
    background: rgba(139, 92, 246, 0.1);
    color: var(--accent);
}

.algo-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* 案例链接 */
.case-links {
    margin-top: 32px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.case-links .btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.case-links .btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.case-links .btn-outline:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}

.case-links .btn svg {
    width: 20px;
    height: 20px;
}

.case-links .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
}

/* CTA区域调整 */
.cta-section .btn {
    padding: 16px 40px;
    font-size: 1.1rem;
}

/* 响应式 */
@media (max-width: 991px) {
    .page-title {
        font-size: 2.5rem;
    }
    
    .case-detail-card {
        padding: 40px 30px;
    }
    
    .case-icon-wrapper {
        width: 150px;
        height: 150px;
        margin-bottom: 20px;
    }
    
    .case-icon-wrapper svg {
        width: 60px;
        height: 60px;
    }
    
    .case-header h2 {
        font-size: 1.75rem;
    }
    
    .case-number {
        font-size: 3rem;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .page-header {
        padding: 120px 0 60px;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .case-detail-card {
        padding: 30px 20px;
        border-radius: 24px;
    }
    
    .case-header {
        flex-wrap: wrap;
    }
    
    .case-number {
        font-size: 2.5rem;
    }
    
    .case-header h2 {
        font-size: 1.5rem;
        width: 100%;
    }
    
    .case-badge {
        margin-left: auto;
    }
}
