/* 案例页面专用样式 */
body {
    background: linear-gradient(135deg, #f5f7ff 0%, #e8f2ff 100%);
    min-height: 100vh;
}

.case-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    font-family: 'Noto Sans SC', sans-serif;
}

/* 返回按钮样式 */
.back-button {
    position: fixed;
    top: 30px;
    left: 30px;
    z-index: 1001;
}

.back-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.95);
    color: #667eea;
    text-decoration: none;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.back-btn:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.back-btn i {
    font-size: 1rem;
}

.case-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 40px;
    border-radius: 16px;
    margin-bottom: 40px;
    text-align: center;
}

.case-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.case-meta {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.case-meta-item {
    background: rgba(255,255,255,0.2);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
}

.case-summary {
    font-size: 1.2rem;
    opacity: 0.9;
    line-height: 1.6;
}

.case-content {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    margin-bottom: 40px;
}

.case-main {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    overflow: hidden;
}

.case-section {
    padding: 30px;
    border-bottom: 1px solid #f0f0f0;
}

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

.case-section h2 {
    color: #2c3e50;
    font-size: 1.5rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.case-section h2:before {
    content: '';
    width: 4px;
    height: 24px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 2px;
}

.case-section p {
    line-height: 1.8;
    color: #555;
    margin-bottom: 16px;
}

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

.case-section li {
    padding: 12px 0;
    border-bottom: 1px solid #f5f5f5;
    position: relative;
    padding-left: 24px;
}

.case-section li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #27ae60;
    font-weight: bold;
}

.case-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.case-stats {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.case-stats h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    text-align: center;
}

.stat-item {
    text-align: center;
    padding: 16px;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #f8f9ff, #e8f2ff);
    border-radius: 8px;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 4px;
}

.stat-label {
    color: #666;
    font-size: 0.9rem;
}

.case-timeline {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.timeline-item {
    position: relative;
    padding-left: 30px;
    margin-bottom: 20px;
}

.timeline-item:before {
    content: '';
    position: absolute;
    left: 8px;
    top: 6px;
    width: 8px;
    height: 8px;
    background: #667eea;
    border-radius: 50%;
}

.timeline-item:after {
    content: '';
    position: absolute;
    left: 11px;
    top: 18px;
    width: 2px;
    height: calc(100% + 8px);
    background: #e0e0e0;
}

.timeline-item:last-child:after {
    display: none;
}

.timeline-date {
    font-size: 0.85rem;
    color: #999;
    margin-bottom: 4px;
}

.timeline-content {
    font-size: 0.9rem;
    color: #555;
}

.case-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 40px;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.btn-secondary {
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
}

.btn-secondary:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}

.related-cases {
    margin-top: 60px;
    padding: 40px;
    background: #f8f9ff;
    border-radius: 16px;
}

.related-cases h3 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 30px;
    font-size: 1.5rem;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.related-card {
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.related-card:hover {
    transform: translateY(-4px);
}

.related-card h4 {
    color: #2c3e50;
    margin-bottom: 12px;
}

.related-card p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 16px;
}

/* 案例库宫格布局 */
.cases-grid-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.case-grid-item {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    position: relative;
    overflow: hidden;
}

.case-grid-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
    border-color: #667eea;
}

.case-grid-item .service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.case-grid-item .service-icon i {
    font-size: 2rem;
    color: white;
}

.case-grid-item h3 {
    color: #2c3e50;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 16px;
    line-height: 1.3;
}

.case-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.tag {
    background: #f8f9ff;
    color: #667eea;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 500;
}

.case-grid-item p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.case-results {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.result-item {
    text-align: center;
    flex: 1;
}

.result-number {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 4px;
}

.result-label {
    color: #888;
    font-size: 0.85rem;
}

.case-grid-item .btn {
    width: 100%;
    text-align: center;
    margin-top: auto;
}

/* 浮窗样式 - 与首页保持一致 */
.floating-widgets {
    position: fixed;
    right: 30px;
    bottom: 120px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.float-widget {
    width: 60px;
    height: 60px;
    background: #667eea;
    color: white;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.float-widget:hover {
    background: #5a6fd8;
    transform: translateY(-2px) scale(1.1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

.float-widget i {
    font-size: 1.2rem;
    margin-bottom: 2px;
}

.float-widget span {
    font-size: 0.6rem;
    font-weight: 500;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .cases-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .case-content {
        grid-template-columns: 1fr;
    }
    
    .case-header {
        padding: 40px 20px;
    }
    
    .case-title {
        font-size: 2rem;
    }
    
    .case-meta {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .case-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
    
    .cases-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .case-grid-item {
        padding: 24px;
    }
    
    .floating-widgets {
        right: 15px;
        bottom: 100px;
    }
    
    .float-widget {
        width: 55px;
        height: 55px;
    }
    
    .float-widget i {
        font-size: 1.1rem;
    }
    
    .float-widget span {
        font-size: 0.55rem;
    }
    
    .case-results {
        gap: 12px;
    }
    
    .back-button {
        top: 20px;
        left: 20px;
    }
    
    .back-btn {
        padding: 10px 16px;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .back-button {
        top: 15px;
        left: 15px;
    }
    
    .back-btn {
        padding: 8px 12px;
        font-size: 0.8rem;
        gap: 6px;
    }
    .floating-widgets {
        right: 10px;
        bottom: 80px;
        gap: 12px;
    }
    
    .float-widget {
        width: 50px;
        height: 50px;
    }
    
    .float-widget i {
        font-size: 1rem;
        margin-bottom: 1px;
    }
    
    .float-widget span {
        font-size: 0.5rem;
    }
}
