/* 案例详情页面样式 */

/* 案例标题区域 */
.case-header {
    background: linear-gradient(135deg, #2c3e50, #3498db);
    color: white;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.case-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.case-title-section {
    position: relative;
    z-index: 1;
}

.case-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.case-meta span {
    background: rgba(255,255,255,0.2);
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 14px;
    backdrop-filter: blur(10px);
}

.case-header h1 {
    font-size: 42px;
    font-weight: bold;
    margin-bottom: 15px;
    line-height: 1.2;
}

.case-subtitle {
    font-size: 18px;
    opacity: 0.9;
    font-weight: 300;
}

/* 案例概览 */
.case-overview {
    padding: 80px 0;
    background: white;
}

.overview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.overview-image {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.overview-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.overview-image:hover .image-overlay {
    opacity: 1;
}

.play-button {
    width: 80px;
    height: 80px;
    background: rgba(52, 152, 219, 0.9);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 24px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.play-button:hover {
    transform: scale(1.1);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.info-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.info-icon {
    font-size: 24px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.info-content h4 {
    color: #2c3e50;
    font-size: 14px;
    margin-bottom: 5px;
    font-weight: 600;
}

.info-content p {
    color: #3498db;
    font-size: 18px;
    font-weight: bold;
    margin: 0;
}

/* 案例章节 */
.case-section {
    padding: 80px 0;
    border-bottom: 1px solid #eee;
}

.case-section:nth-child(even) {
    background: #f8f9fa;
}

.case-section h2 {
    font-size: 36px;
    color: #2c3e50;
    margin-bottom: 40px;
    text-align: center;
    position: relative;
}

.case-section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    border-radius: 2px;
}

.section-content h3 {
    color: #2c3e50;
    font-size: 24px;
    margin-bottom: 20px;
    margin-top: 30px;
}

.section-content ul {
    list-style: none;
    padding: 0;
}

.section-content li {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    position: relative;
    padding-left: 25px;
}

.section-content li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #27ae60;
    font-weight: bold;
}

.section-content li:last-child {
    border-bottom: none;
}

/* 挑战网格 */
.challenge-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.challenge-item {
    background: white;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.challenge-item:hover {
    transform: translateY(-5px);
}

.challenge-icon {
    font-size: 36px;
    margin-bottom: 15px;
}

.challenge-item h4 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 18px;
}

.challenge-item p {
    color: #6c757d;
    line-height: 1.6;
    font-size: 14px;
}

/* 解决方案 */
.solution-section {
    background: white;
}

.solution-overview {
    text-align: center;
    margin-bottom: 50px;
}

.solution-overview h3 {
    color: #2c3e50;
    font-size: 28px;
    margin-bottom: 15px;
}

.solution-overview p {
    color: #6c757d;
    font-size: 16px;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
}

.solution-details {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.solution-item {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.solution-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    font-weight: bold;
    flex-shrink: 0;
}

.solution-content-item {
    flex: 1;
}

.solution-content-item h4 {
    color: #2c3e50;
    font-size: 20px;
    margin-bottom: 15px;
}

.solution-content-item ul {
    list-style: none;
    padding: 0;
}

.solution-content-item li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    position: relative;
    padding-left: 20px;
}

.solution-content-item li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #3498db;
    font-weight: bold;
}

/* 安装时间线 */
.installation-section {
    background: #f8f9fa;
}

.installation-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.installation-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    align-items: center;
    margin-bottom: 50px;
    position: relative;
}

.timeline-item:nth-child(odd) {
    flex-direction: row;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-date {
    width: 120px;
    text-align: center;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    padding: 15px;
    border-radius: 25px;
    font-weight: bold;
    position: relative;
    z-index: 2;
}

.timeline-content {
    flex: 1;
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin: 0 40px;
}

.timeline-content h4 {
    color: #2c3e50;
    font-size: 18px;
    margin-bottom: 10px;
}

.timeline-content p {
    color: #6c757d;
    line-height: 1.6;
    margin: 0;
}

/* 效果对比 */
.results-section {
    background: white;
}

.comparison-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 60px;
}

.comparison-item {
    background: #f8f9fa;
    padding: 40px;
    border-radius: 15px;
    text-align: center;
}

.comparison-item h3 {
    color: #2c3e50;
    font-size: 24px;
    margin-bottom: 30px;
}

.comparison-data {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.data-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-radius: 10px;
    background: white;
}

.data-item.negative {
    border-left: 4px solid #e74c3c;
}

.data-item.positive {
    border-left: 4px solid #27ae60;
}

.data-item .label {
    color: #6c757d;
    font-size: 14px;
}

.data-item .value {
    font-weight: bold;
    font-size: 16px;
}

.data-item.negative .value {
    color: #e74c3c;
}

.data-item.positive .value {
    color: #27ae60;
}

.comparison-arrow {
    font-size: 36px;
    color: #3498db;
    font-weight: bold;
}

/* 效益总结 */
.benefits-summary {
    margin-top: 60px;
}

.benefits-summary h3 {
    text-align: center;
    color: #2c3e50;
    font-size: 28px;
    margin-bottom: 40px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.benefit-item {
    background: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.benefit-item:hover {
    transform: translateY(-5px);
}

.benefit-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.benefit-item h4 {
    color: #2c3e50;
    font-size: 20px;
    margin-bottom: 15px;
}

.benefit-item p {
    color: #6c757d;
    line-height: 1.6;
}

/* 客户评价 */
.testimonial-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.testimonial-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.testimonial-quote blockquote {
    font-size: 20px;
    line-height: 1.8;
    font-style: italic;
    margin: 0 0 40px 0;
    position: relative;
    padding: 0 40px;
}

.testimonial-quote blockquote::before {
    content: '"';
    font-size: 60px;
    position: absolute;
    left: 0;
    top: -10px;
    color: rgba(255,255,255,0.3);
}

.testimonial-quote blockquote::after {
    content: '"';
    font-size: 60px;
    position: absolute;
    right: 0;
    bottom: -30px;
    color: rgba(255,255,255,0.3);
}

.testimonial-author {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255,255,255,0.1);
    padding: 20px 30px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.author-info h4 {
    margin: 0 0 5px 0;
    font-size: 18px;
}

.author-info p {
    margin: 0;
    opacity: 0.8;
    font-size: 14px;
}

.rating {
    text-align: right;
}

.stars {
    color: #f1c40f;
    font-size: 18px;
    display: block;
    margin-bottom: 5px;
}

.score {
    font-size: 14px;
    opacity: 0.9;
}

/* 相关案例推荐 */
.related-cases {
    padding: 80px 0;
    background: #f8f9fa;
}

.related-cases h2 {
    text-align: center;
    color: #2c3e50;
    font-size: 36px;
    margin-bottom: 50px;
}

.related-cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.related-case-item {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.related-case-item:hover {
    transform: translateY(-5px);
}

.related-case-item .case-image {
    height: 180px;
    overflow: hidden;
}

.related-case-item .case-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-case-item:hover .case-image img {
    transform: scale(1.05);
}

.related-case-item .case-info {
    padding: 25px;
}

.related-case-item .case-info h4 {
    color: #2c3e50;
    font-size: 18px;
    margin-bottom: 10px;
    line-height: 1.4;
}

.related-case-item .case-info p {
    color: #6c757d;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.related-case-item .case-link {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: color 0.3s ease;
}

.related-case-item .case-link:hover {
    color: #2980b9;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .case-header {
        padding: 100px 0 60px;
    }
    
    .case-header h1 {
        font-size: 28px;
    }
    
    .case-subtitle {
        font-size: 16px;
    }
    
    .overview-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .challenge-grid {
        grid-template-columns: 1fr;
    }
    
    .solution-item {
        flex-direction: column;
        text-align: center;
    }
    
    .installation-timeline::before {
        left: 30px;
    }
    
    .timeline-item {
        flex-direction: column !important;
        align-items: flex-start;
        padding-left: 80px;
    }
    
    .timeline-date {
        position: absolute;
        left: 0;
        width: 60px;
        padding: 10px;
        font-size: 12px;
    }
    
    .timeline-content {
        margin: 0;
        width: 100%;
    }
    
    .comparison-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .comparison-arrow {
        transform: rotate(90deg);
        justify-self: center;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .related-cases-grid {
        grid-template-columns: 1fr;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.case-section {
    animation: fadeInUp 0.6s ease forwards;
}

/* 滚动进度条 */
.scroll-progress {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(52, 152, 219, 0.2);
    z-index: 1000;
}

.scroll-progress-bar {
    height: 100%;
    background: linear-gradient(135deg, #3498db, #2980b9);
    width: 0%;
    transition: width 0.1s ease;
}