/* ==================== 案例详情页样式 ==================== */

/* ==================== 粒子背景 ==================== */
#particles-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.03) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(14, 165, 233, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

/* ==================== 案例头部 ==================== */
.case-hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    padding: 140px 0 80px;
    overflow: hidden;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.case-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08) 0%, rgba(14, 165, 233, 0.05) 100%);
}

.hero-shapes {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
}

.hero-shapes .shape {
    position: absolute;
    border-radius: 50%;
    background: var(--gradient-primary);
    opacity: 0.08;
}

.hero-shapes .shape-1 {
    width: 500px;
    height: 500px;
    top: -150px;
    right: -100px;
}

.hero-shapes .shape-2 {
    width: 350px;
    height: 350px;
    bottom: -100px;
    left: -80px;
}

/* 面包屑导航 */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
    font-size: 14px;
    position: relative;
    z-index: 1;
}

.breadcrumb a {
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: var(--primary);
}

.breadcrumb i {
    font-size: 10px;
    color: var(--text-light);
}

.breadcrumb span {
    color: var(--text-dark);
    font-weight: 500;
}

/* 案例头部内容 */
.case-hero-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.case-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary);
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
}

.case-tag i {
    font-size: 16px;
}

.case-hero-title {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 24px;
    color: var(--text-dark);
}

.case-hero-subtitle {
    font-size: 18px;
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 40px;
}

/* 案例元信息 */
.case-meta {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.meta-item i {
    width: 48px;
    height: 48px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
    flex-shrink: 0;
}

.meta-item > div {
    display: flex;
    flex-direction: column;
}

.meta-label {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 4px;
}

.meta-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
}

/* 视觉卡片 */
.visual-card {
    background: white;
    padding: 40px;
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}

.visual-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 32px;
}

.visual-icon i {
    font-size: 40px;
    color: white;
}

.visual-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.visual-stats .stat-item {
    text-align: center;
}

.visual-stats .stat-number {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}

.visual-stats .stat-label {
    font-size: 13px;
    color: var(--text-gray);
}

/* ==================== 项目概述 ==================== */
.case-overview {
    padding: 100px 0;
    background: white;
}

.overview-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: start;
}

.overview-text .section-title {
    text-align: left;
    margin-bottom: 32px;
}

.overview-description {
    font-size: 16px;
    color: var(--text-gray);
    line-height: 1.9;
}

.overview-description p {
    margin-bottom: 20px;
}

.overview-description strong {
    color: var(--primary);
    font-weight: 600;
}

.overview-highlights {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.highlight-card {
    background: white;
    padding: 28px;
    border-radius: 16px;
    border: 2px solid var(--border);
    transition: all 0.3s ease;
}

.highlight-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.highlight-icon {
    width: 56px;
    height: 56px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.highlight-icon i {
    font-size: 26px;
    color: var(--primary);
}

.highlight-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.highlight-card p {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.6;
    margin: 0;
}

/* ==================== 平台展示 ==================== */
.case-showcase {
    padding: 100px 0;
    background: var(--bg-light);
}

.platform-section {
    margin-bottom: 80px;
}

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

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

.platform-icon {
    width: 64px;
    height: 64px;
    background: var(--gradient-primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.platform-icon i {
    font-size: 32px;
    color: white;
}

.platform-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

.platform-titles {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.platform-subtitles {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.subtitle-item {
    font-size: 16px;
    color: var(--primary);
    font-weight: 600;
}

.subtitle-divider {
    color: var(--text-light);
    font-size: 14px;
}

/* 设备框架 */
.platform-image-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.device-frame {
    position: relative;
    background: #1a1a1a;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.device-frame.laptop {
    width: 100%;
    max-width: 900px;
    border-radius: 12px 12px 0 0;
}

.device-frame.laptop::after {
    content: '';
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 120%;
    height: 30px;
    background: linear-gradient(180deg, #333 0%, #1a1a1a 100%);
    border-radius: 0 0 20px 20px;
    z-index: -1;
}

.device-screen {
    position: relative;
    width: 100%;
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

.platform-image {
    width: 100%;
    height: auto;
    display: block;
}

/* 简化的图片展示（无框架） */
.platform-image-simple {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    padding: 0 20px;
}

.platform-image-simple .platform-image {
    width: 100%;
    max-width: 1000px;
    height: auto;
    display: block;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

/* 移动端设备框架 */
.mobile-showcase {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.device-frame.mobile {
    width: 320px;
    padding: 16px;
    border-radius: 36px;
    background: #1a1a1a;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.device-notch {
    position: absolute;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 24px;
    background: #1a1a1a;
    border-radius: 0 0 16px 16px;
    z-index: 2;
}

.device-frame.mobile .device-screen {
    border-radius: 24px;
    overflow: hidden;
}

/* 移动端完整图片展示 */
.mobile-showcase-full {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    padding: 0 20px;
}

.mobile-full-image {
    width: 100%;
    max-width: 1000px;
    height: auto;
    display: block;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

/* 平台特性 */
.platform-features {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    color: var(--text-gray);
}

.feature-item i {
    color: var(--primary);
    font-size: 18px;
}

/* ==================== 核心功能 ==================== */
.case-features {
    padding: 100px 0;
    background: white;
}

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

.feature-card {
    background: white;
    padding: 36px;
    border-radius: 20px;
    border: 2px solid var(--border);
    transition: all 0.4s ease;
    text-align: center;
}

.feature-card:hover {
    border-color: var(--primary);
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    transition: all 0.4s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.feature-icon i {
    font-size: 36px;
    color: white;
}

.feature-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.feature-description {
    font-size: 15px;
    color: var(--text-gray);
    line-height: 1.7;
    margin: 0;
}

/* ==================== 技术架构 ==================== */
.case-tech {
    padding: 100px 0;
    background: var(--bg-light);
}

.tech-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    align-items: center;
}

.tech-stack {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.tech-category {
    background: white;
    padding: 32px;
    border-radius: 20px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.tech-category:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(5px);
}

.tech-category-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.tech-category-title i {
    color: var(--primary);
    font-size: 24px;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tech-tag {
    padding: 8px 16px;
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

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

.tech-highlights {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.tech-highlight-card {
    background: white;
    padding: 32px;
    border-radius: 20px;
    text-align: center;
    border: 2px solid var(--border);
    transition: all 0.3s ease;
}

.tech-highlight-card:hover {
    border-color: var(--primary);
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.highlight-number {
    font-size: 48px;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
}

.highlight-label {
    font-size: 16px;
    color: var(--text-gray);
    font-weight: 500;
}

/* ==================== 项目成果 ==================== */
.case-results {
    padding: 100px 0;
    background: white;
}

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

.result-card {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    border: 2px solid var(--border);
    transition: all 0.4s ease;
}

.result-card:hover {
    border-color: var(--primary);
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.result-icon {
    width: 70px;
    height: 70px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    transition: all 0.4s ease;
}

.result-card:hover .result-icon {
    background: var(--gradient-primary);
    transform: scale(1.1);
}

.result-icon i {
    font-size: 32px;
    color: var(--primary);
    transition: color 0.3s ease;
}

.result-card:hover .result-icon i {
    color: white;
}

.result-number {
    font-size: 48px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.result-unit {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 12px;
}

.result-label {
    font-size: 15px;
    color: var(--text-gray);
    font-weight: 500;
}

/* ==================== 相关案例 ==================== */
.related-cases {
    padding: 100px 0;
    background: var(--bg-light);
}

.related-cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.related-case-card {
    background: white;
    padding: 36px;
    border-radius: 20px;
    border: 2px solid var(--border);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.related-case-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    background: var(--gradient-primary);
    transition: height 0.4s ease;
}

.related-case-card:hover::before {
    height: 0;
}

.related-case-card:hover {
    border-color: var(--primary);
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.related-case-icon {
    width: 64px;
    height: 64px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: all 0.4s ease;
}

.related-case-card:hover .related-case-icon {
    background: var(--gradient-primary);
    transform: scale(1.1);
}

.related-case-icon i {
    font-size: 28px;
    color: var(--primary);
    transition: color 0.3s ease;
}

.related-case-card:hover .related-case-icon i {
    color: white;
}

.related-case-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.related-case-desc {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.7;
    margin-bottom: 20px;
    flex: 1;
}

.related-case-arrow {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    color: var(--primary);
    font-size: 18px;
    transition: transform 0.3s ease;
}

.related-case-card:hover .related-case-arrow {
    transform: translateX(5px);
}

/* ==================== CTA区域 ==================== */
.case-cta {
    padding: 100px 0;
    background: white;
    position: relative;
    overflow: hidden;
}

.case-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(14, 165, 233, 0.05) 0%, transparent 50%);
}

.cta-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 40px;
    background: white;
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--border);
    position: relative;
    z-index: 1;
}

.cta-title {
    font-size: 42px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.cta-subtitle {
    font-size: 18px;
    color: var(--text-gray);
    margin-bottom: 40px;
}

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

/* 三列布局的特殊样式 */
.overview-highlights-three-col {
    grid-template-columns: repeat(3, 1fr);
    max-width: 100%;
}

/* ==================== 响应式设计 ==================== */
@media (max-width: 1024px) {
    .overview-highlights-three-col {
        grid-template-columns: repeat(2, 1fr);
    }
    .case-hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .overview-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .overview-highlights {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tech-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .results-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .related-cases-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .case-hero {
        padding: 120px 0 60px;
        min-height: auto;
    }
    
    .case-hero-title {
        font-size: 32px;
    }
    
    .case-hero-subtitle {
        font-size: 16px;
    }
    
    .case-meta {
        gap: 24px;
    }
    
    .meta-item {
        gap: 12px;
    }
    
    .meta-item i {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .visual-stats {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .overview-highlights {
        grid-template-columns: 1fr;
    }
    
    .overview-highlights-three-col {
        grid-template-columns: 1fr;
    }
    
    .platform-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .platform-title {
        font-size: 28px;
    }
    
    .subtitle-item {
        font-size: 14px;
    }
    
    .device-frame.laptop {
        padding: 12px;
    }
    
    .device-frame.mobile {
        width: 280px;
    }
    
    .platform-image-simple {
        padding: 0 10px;
    }
    
    .platform-image-simple .platform-image {
        border-radius: 12px;
    }
    
    .mobile-showcase-full {
        padding: 0 10px;
    }
    
    .mobile-full-image {
        border-radius: 12px;
    }
    
    .platform-features {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .tech-highlights {
        grid-template-columns: 1fr;
    }
    
    .results-grid {
        grid-template-columns: 1fr;
    }
    
    .result-card {
        padding: 32px 24px;
    }
    
    .cta-content {
        padding: 40px 24px;
    }
    
    .cta-title {
        font-size: 32px;
    }
    
    .cta-subtitle {
        font-size: 16px;
    }
    
    .cta-actions {
        flex-direction: column;
    }
    
    .cta-actions .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .case-hero-title {
        font-size: 28px;
    }
    
    .case-hero-subtitle {
        font-size: 15px;
    }
    
    .visual-card {
        padding: 28px;
    }
    
    .platform-title {
        font-size: 24px;
    }
    
    .device-frame.mobile {
        width: 260px;
        padding: 12px;
    }
    
    .device-notch {
        width: 100px;
        height: 20px;
    }
    
    .highlight-card {
        padding: 24px;
    }
    
    .feature-card {
        padding: 28px;
    }
    
    .tech-category {
        padding: 24px;
    }
    
    .result-number {
        font-size: 40px;
    }
    
    .result-unit {
        font-size: 20px;
    }
    
    .cta-title {
        font-size: 28px;
    }
}

