/* ========================================
   案例页面样式 - 炫酷庄重版
   ======================================== */

:root {
    --primary-color: #2196F3;
    --primary-dark: #1565C0;
    --primary-light: #e3f2fd;
    --primary-gradient: linear-gradient(135deg, #2196F3 0%, #1565C0 100%);
    --text-primary: #1a1a1a;
    --text-secondary: #555;
    --text-muted: #888;
    --bg-white: #fff;
    --bg-light: #f8fafc;
    --bg-dark: #0f172a;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
    --shadow-primary: 0 8px 30px rgba(33, 150, 243, 0.3);
}

/* 动画 */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-20px); } }
@keyframes bounce { 0%, 20%, 50%, 80%, 100% { transform: translateY(0); } 40% { transform: translateY(-10px); } 60% { transform: translateY(-5px); } }

.animate-fade-in { animation: fadeIn 0.8s ease forwards; }
.animate-fade-in-up { animation: fadeInUp 0.8s ease forwards; }
.delay-1 { animation-delay: 0.2s; opacity: 0; }
.delay-2 { animation-delay: 0.4s; opacity: 0; }
.reveal-on-scroll { opacity: 0; transform: translateY(40px); transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1); }
.reveal-on-scroll.revealed { opacity: 1; transform: translateY(0); }

/* 通用组件 */
.section-header { text-align: center; margin-bottom: 60px; }
.section-header.light { color: #fff; }
.section-tag { display: inline-block; padding: 6px 16px; background: var(--primary-light); color: var(--primary-color); font-size: 12px; font-weight: 600; letter-spacing: 2px; border-radius: 20px; margin-bottom: 16px; }
.section-header.light .section-tag { background: rgba(255,255,255,0.15); color: #fff; }
.section-header h2 { font-size: 40px; font-weight: 700; color: var(--text-primary); margin-bottom: 16px; }
.section-header.light h2 { color: #fff; }
.section-line { width: 60px; height: 4px; background: var(--primary-gradient); margin: 0 auto; border-radius: 2px; display: block; }
.section-header.light .section-line { background: linear-gradient(135deg, #2196F3 0%, #64B5F6 100%); box-shadow: 0 0 20px rgba(33, 150, 243, 0.5); }

/* Hero Banner */
.cases-hero {
    position: relative;
    padding: 200px 0 120px;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    text-align: center;
    color: #fff;
    overflow: hidden;
}

.cases-hero::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: url('../img/ports-6-scaled.webp') center/cover; opacity: 0.08; }

.hero-bg-shapes { position: absolute; top: 0; left: 0; right: 0; bottom: 0; overflow: hidden; pointer-events: none; }
.shape { position: absolute; border-radius: 50%; background: linear-gradient(135deg, rgba(33, 150, 243, 0.15) 0%, rgba(33, 150, 243, 0.05) 100%); }
.shape-1 { width: 600px; height: 600px; top: -200px; right: -100px; animation: float 8s ease-in-out infinite; }
.shape-2 { width: 400px; height: 400px; bottom: -100px; left: -100px; animation: float 10s ease-in-out infinite reverse; }
.shape-3 { width: 200px; height: 200px; top: 50%; left: 20%; animation: float 6s ease-in-out infinite; }

.cases-hero-container { position: relative; width: 62.5%; max-width: none; margin: 0 auto; z-index: 2; }

.hero-badge { display: inline-flex; align-items: center; gap: 8px; padding: 10px 24px; background: rgba(33, 150, 243, 0.2); border: 1px solid rgba(33, 150, 243, 0.3); border-radius: 30px; margin-bottom: 32px; backdrop-filter: blur(10px); }
.hero-badge svg { width: 18px; height: 18px; stroke: var(--primary-color); }
.hero-badge span { font-size: 14px; font-weight: 500; color: rgba(255,255,255,0.9); }

.cases-hero h1 { font-size: 52px; font-weight: 700; line-height: 1.25; margin-bottom: 24px; background: linear-gradient(135deg, #fff 0%, rgba(255,255,255,0.8) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.cases-hero .hero-subtitle { font-size: 20px; color: rgba(255, 255, 255, 0.85); margin-bottom: 16px; }
.cases-hero .hero-desc { font-size: 16px; color: rgba(255, 255, 255, 0.65); line-height: 1.8; margin-bottom: 40px; }

.hero-stats { display: flex; justify-content: center; gap: 48px; }
.hero-stat { text-align: center; padding: 20px 32px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 16px; }
.hero-stat .stat-num { display: block; font-size: 36px; font-weight: 700; color: var(--primary-color); line-height: 1; margin-bottom: 8px; }
.hero-stat .stat-text { font-size: 14px; color: rgba(255,255,255,0.7); }

.hero-scroll-indicator { position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; color: rgba(255,255,255,0.5); animation: bounce 2s infinite; cursor: pointer; }
.hero-scroll-indicator span { font-size: 12px; letter-spacing: 1px; }
.hero-scroll-indicator svg { width: 20px; height: 20px; }

/* 数据概览 - 优化版 */
.data-overview { 
    padding: 0; 
    background: transparent;
    margin-top: -60px;
    position: relative;
    z-index: 5;
}
.data-container { 
    width: 62.5%; 
    max-width: none; 
    margin: 0 auto; 
}
.data-grid { 
    display: grid; 
    grid-template-columns: repeat(6, 1fr); 
    gap: 0;
    background: var(--bg-white);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}
.data-item { 
    text-align: center; 
    padding: 40px 24px; 
    background: var(--bg-white);
    transition: all 0.4s ease;
    position: relative;
}
.data-item::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 60%;
    background: linear-gradient(180deg, transparent 0%, var(--border-color) 50%, transparent 100%);
}
.data-item:last-child::after {
    display: none;
}
.data-item:hover { 
    background: linear-gradient(180deg, var(--primary-light) 0%, var(--bg-white) 100%);
}
.data-item:hover .data-number {
    transform: scale(1.1);
}
.data-number { 
    display: block; 
    font-size: 36px; 
    font-weight: 800; 
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
    transition: transform 0.3s ease;
    white-space: nowrap;
}
.data-label { 
    font-size: 14px; 
    color: var(--text-secondary);
    font-weight: 500;
}

/* 行业筛选 - 优化版 */
.industry-nav { 
    padding: 60px 0 40px; 
    background: var(--bg-white);
}
.industry-nav-container { 
    width: 62.5%; 
    max-width: none; 
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
}
.industry-nav-title { 
    font-size: 15px; 
    color: var(--text-primary);
    font-weight: 600;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 10px;
}
.industry-nav-title::before {
    content: '';
    width: 4px;
    height: 20px;
    background: var(--primary-gradient);
    border-radius: 2px;
}
.industry-buttons { 
    display: flex; 
    flex-wrap: wrap; 
    gap: 12px;
    flex: 1;
}
.industry-btn { 
    padding: 12px 24px; 
    background: var(--bg-light); 
    border: 2px solid transparent; 
    border-radius: 30px; 
    font-size: 14px; 
    font-weight: 500;
    color: var(--text-secondary); 
    cursor: pointer; 
    transition: all 0.3s ease;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.industry-btn:hover { 
    background: var(--primary-light);
    color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}
.industry-btn.active { 
    background: var(--primary-gradient); 
    border-color: transparent; 
    color: #fff;
    box-shadow: var(--shadow-primary);
}
.industry-btn .count { 
    opacity: 0.8;
    font-size: 12px;
}

/* 案例展示区 */
.cases-section { padding: 40px 0 80px; background: var(--bg-white); }
.cases-container { width: 62.5%; max-width: none; margin: 0 auto; }

/* 行业区块 - 优化版 */
.industry-section { 
    margin-bottom: 80px; 
    padding: 48px;
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-white) 100%);
    border-radius: 24px;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}
.industry-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
}
.industry-section-title { 
    display: flex; 
    align-items: center; 
    gap: 16px; 
    font-size: 26px; 
    font-weight: 700; 
    color: var(--text-primary); 
    margin-bottom: 36px; 
    padding-bottom: 20px; 
    border-bottom: none;
}
.industry-icon { 
    width: 56px; 
    height: 56px; 
    background: var(--primary-gradient); 
    border-radius: 16px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    box-shadow: var(--shadow-primary);
    flex-shrink: 0;
}
.industry-icon svg { width: 28px; height: 28px; stroke: #fff; }

.cases-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }

.case-card { 
    position: relative; 
    background: var(--bg-white); 
    border: 1px solid var(--border-color); 
    border-radius: 20px; 
    overflow: hidden; 
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
}
.case-card::before { 
    content: ''; 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 4px; 
    background: var(--primary-gradient); 
    transform: scaleX(0); 
    transform-origin: left;
    transition: transform 0.4s ease; 
}
.case-card:hover { 
    transform: translateY(-10px); 
    box-shadow: 0 20px 50px rgba(33, 150, 243, 0.15);
    border-color: rgba(33, 150, 243, 0.3);
}
.case-card:hover::before { transform: scaleX(1); }

.case-header { 
    padding: 28px 28px 20px; 
    display: flex; 
    align-items: center; 
    gap: 16px; 
    border-bottom: 1px solid var(--border-color);
    background: linear-gradient(180deg, rgba(33, 150, 243, 0.03) 0%, transparent 100%);
}
.case-icon { 
    width: 52px; 
    height: 52px; 
    background: linear-gradient(135deg, var(--primary-light) 0%, rgba(33, 150, 243, 0.15) 100%); 
    border-radius: 14px; 
    display: flex; 
    align-items: center; 
    justify-content: center;
    transition: all 0.3s ease;
}
.case-card:hover .case-icon {
    background: var(--primary-gradient);
}
.case-icon svg { 
    width: 26px; 
    height: 26px; 
    stroke: var(--primary-color);
    transition: stroke 0.3s ease;
}
.case-card:hover .case-icon svg {
    stroke: #fff;
}
.case-header h3 { 
    font-size: 19px; 
    font-weight: 700; 
    color: var(--text-primary);
    transition: color 0.3s ease;
}
.case-card:hover .case-header h3 {
    color: var(--primary-color);
}

.case-body { padding: 24px 28px; }
.case-section { margin-bottom: 18px; }
.case-section:last-child { margin-bottom: 0; }
.case-section h4 { 
    font-size: 12px; 
    font-weight: 700; 
    color: var(--primary-color); 
    margin-bottom: 10px; 
    text-transform: uppercase; 
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.case-section h4::before {
    content: '';
    width: 3px;
    height: 14px;
    background: var(--primary-gradient);
    border-radius: 2px;
}
.case-section ul { list-style: none; }
.case-section ul li { 
    font-size: 14px; 
    color: var(--text-secondary); 
    line-height: 1.8; 
    padding-left: 18px; 
    position: relative; 
    margin-bottom: 6px; 
}
.case-section ul li::before { 
    content: ''; 
    position: absolute; 
    left: 0; 
    top: 9px; 
    width: 6px; 
    height: 6px; 
    background: var(--border-color); 
    border-radius: 50%;
    transition: all 0.3s ease;
}
.case-section ul.pain-list li::before { background: #ef4444; box-shadow: 0 0 8px rgba(239, 68, 68, 0.4); }
.case-section ul.result-list li::before { background: #22c55e; box-shadow: 0 0 8px rgba(34, 197, 94, 0.4); }
.case-section .solution { 
    font-size: 14px; 
    color: var(--text-primary); 
    font-weight: 600; 
    padding: 14px 18px; 
    background: linear-gradient(135deg, var(--primary-light) 0%, rgba(33, 150, 243, 0.08) 100%); 
    border-radius: 12px;
    border-left: 3px solid var(--primary-color);
}

.case-footer { 
    padding: 18px 28px; 
    background: linear-gradient(180deg, var(--bg-light) 0%, rgba(33, 150, 243, 0.05) 100%); 
    display: flex; 
    justify-content: space-between; 
    font-size: 13px; 
    color: var(--text-muted);
    border-top: 1px solid var(--border-color);
}
.case-footer span { display: flex; align-items: center; gap: 8px; }
.case-footer .footer-icon { width: 16px; height: 16px; stroke: var(--primary-color); }

/* 客户评价 */
.testimonials { padding: 100px 0; background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%); }
.testimonials-container { width: 62.5%; max-width: none; margin: 0 auto; }
.testimonials-title { font-size: 36px; font-weight: 700; color: #fff; text-align: center; margin-bottom: 48px; }
.testimonials-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.testimonial-card { padding: 36px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.1); border-radius: 20px; }
.testimonial-quote { font-size: 16px; color: rgba(255,255,255,0.85); line-height: 1.9; font-style: italic; margin-bottom: 24px; }
.testimonial-author { font-size: 14px; color: var(--primary-color); font-weight: 500; }

/* CTA区域 */
.cases-cta { position: relative; padding: 100px 0; background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%); text-align: center; color: #fff; overflow: hidden; }
.cta-bg-shapes { position: absolute; top: 0; left: 0; right: 0; bottom: 0; pointer-events: none; }
.cta-shape { position: absolute; border-radius: 50%; background: rgba(255,255,255,0.1); }
.cta-shape-1 { width: 400px; height: 400px; top: -150px; right: -100px; }
.cta-shape-2 { width: 300px; height: 300px; bottom: -100px; left: -50px; }
.cta-container { position: relative; width: 62.5%; max-width: none; margin: 0 auto; z-index: 1; }
.cases-cta h2 { font-size: 40px; font-weight: 700; margin-bottom: 16px; }
.cases-cta p { font-size: 18px; color: rgba(255,255,255,0.9); margin-bottom: 40px; line-height: 1.8; }
.cta-buttons { display: flex; justify-content: center; gap: 20px; margin-bottom: 40px; }
.cta-btn-primary { display: inline-flex; align-items: center; gap: 10px; padding: 18px 40px; background: #fff; color: var(--primary-color); border-radius: 30px; font-size: 16px; font-weight: 600; transition: all 0.4s ease; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2); }
.cta-btn-primary:hover { transform: translateY(-4px); box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25); }
.cta-btn-outline { display: inline-flex; align-items: center; gap: 10px; padding: 18px 40px; background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.5); border-radius: 30px; font-size: 16px; font-weight: 600; transition: all 0.4s ease; }
.cta-btn-outline:hover { background: rgba(255, 255, 255, 0.15); border-color: #fff; }
.cta-features { display: flex; justify-content: center; gap: 120px; }
.cta-features span { display: flex; align-items: center; gap: 8px; font-size: 15px; color: rgba(255,255,255,0.9); }

/* 响应式 */
@media (max-width: 1200px) {
    .cases-hero-container, .data-container, .industry-nav-container, .cases-container, .testimonials-container, .cta-container { width: 80%; }
    .data-grid { grid-template-columns: repeat(3, 1fr); }
    .data-item::after { display: none; }
    .data-item:nth-child(3n)::after { display: none; }
    .cases-grid { grid-template-columns: repeat(2, 1fr); }
    .industry-section { padding: 36px; }
}
@media (max-width: 992px) {
    .cases-hero-container, .data-container, .industry-nav-container, .cases-container, .testimonials-container, .cta-container { width: 90%; }
    .cases-hero h1 { font-size: 36px; }
    .hero-stats { flex-wrap: wrap; gap: 16px; }
    .data-grid { grid-template-columns: repeat(2, 1fr); }
    .data-number { font-size: 28px; }
    .data-item { padding: 28px 16px; }
    .industry-nav-container { flex-direction: column; align-items: flex-start; gap: 16px; }
    .cases-grid { grid-template-columns: 1fr; }
    .testimonials-grid { grid-template-columns: 1fr; }
    .industry-section { padding: 28px; }
    .industry-section-title { font-size: 22px; }
    .industry-icon { width: 48px; height: 48px; }
    .industry-icon svg { width: 24px; height: 24px; }
}
@media (max-width: 768px) {
    .cases-hero { padding: 160px 0 100px; }
    .cases-hero h1 { font-size: 30px; }
    .hero-stats { flex-direction: column; }
    .section-header h2 { font-size: 28px; }
    .data-overview { margin-top: -40px; }
    .data-grid { grid-template-columns: repeat(3, 1fr); }
    .data-item { padding: 24px 12px; }
    .data-number { font-size: 24px; }
    .data-label { font-size: 12px; }
    .industry-buttons { justify-content: flex-start; }
    .industry-btn { padding: 10px 18px; font-size: 13px; }
    
    /* CTA按钮一行2个 */
    .cta-buttons { 
        flex-direction: row; 
        flex-wrap: nowrap;
        justify-content: center;
        gap: 8px;
    }
    .cta-btn-primary, .cta-btn-outline { 
        width: auto;
        flex: 1;
        max-width: none;
        justify-content: center;
        padding: 12px 10px;
        font-size: 13px;
        white-space: nowrap;
    }
    
    /* 承诺文本一行3个 */
    .cta-features { 
        flex-direction: row; 
        flex-wrap: nowrap;
        justify-content: center;
        gap: 15px;
    }
    .cta-features span {
        font-size: 12px;
        white-space: nowrap;
    }
    .cta-features span svg {
        width: 14px;
        height: 14px;
    }
    
    /* 隐藏向下滚动提示 */
    .hero-scroll-indicator {
        display: none !important;
    }
    
    .industry-section { padding: 24px; margin-bottom: 40px; }
    .case-header { padding: 20px; }
    .case-body { padding: 20px; }
    .case-footer { padding: 16px 20px; }
}
@media (max-width: 480px) {
    .cases-hero-container, .data-container, .industry-nav-container, .cases-container, .testimonials-container, .cta-container { width: 92%; }
    .data-grid { grid-template-columns: repeat(2, 1fr); }
    .industry-section { padding: 20px; }
}


/* ========================================
   移动端优化补充 - 768px
   ======================================== */
@media (max-width: 768px) {
    /* 案例卡片 */
    .case-card {
        border-radius: 12px;
    }
    
    .case-header {
        padding: 20px 16px;
    }
    
    .case-title {
        font-size: 16px;
    }
    
    .case-body {
        padding: 16px;
    }
    
    .case-metrics {
        gap: 12px;
    }
    
    .metric-value {
        font-size: 20px;
    }
    
    .metric-label {
        font-size: 12px;
    }
    
    /* 行业筛选 */
    .industry-buttons {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .industry-btn {
        padding: 8px 14px;
        font-size: 13px;
    }
    
    /* 客户评价 */
    .testimonial-card {
        padding: 24px 20px;
    }
    
    .testimonial-quote {
        font-size: 15px;
        line-height: 1.7;
    }
    
    .testimonial-author {
        font-size: 14px;
    }
}

/* ========================================
   移动端优化补充 - 480px
   ======================================== */
@media (max-width: 480px) {
    .cases-hero {
        padding: 120px 0 60px;
    }
    
    .cases-hero h1 {
        font-size: 24px;
    }
    
    .cases-hero p {
        font-size: 14px;
    }
    
    .hero-stats .stat-number {
        font-size: 28px;
    }
    
    .section-header h2 {
        font-size: 22px;
    }
    
    .case-header {
        padding: 16px 14px;
    }
    
    .case-title {
        font-size: 15px;
    }
    
    .case-body {
        padding: 14px;
    }
    
    .metric-value {
        font-size: 18px;
    }
    
    .testimonial-card {
        padding: 20px 16px;
    }
    
    .testimonial-quote {
        font-size: 14px;
    }
}