/* ===========================================
   VTS 智能仿真平台 - 应用示例页专用样式
   包含：应用案例展示、统计数据、案例详情等
   =========================================== */

/* ===========================================
   应用示例展示样式
   =========================================== */
.applications-showcase {
    padding: 100px 0;
    background: #ffffff;
}

/* 为整个应用案例添加卡片效果 */
.application-case {
    margin-bottom: 120px;
    padding: 4rem 2rem;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(52, 152, 219, 0.08);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.application-case::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #3498db, #2980b9, #8e44ad);
}

.application-case:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

/* 增强案例标题的视觉效果 */
.case-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    padding-bottom: 2rem;
}

.case-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    border-radius: 2px;
}

.case-header h2 {
    font-size: 2.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, #2c3e50, #34495e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.2rem;
    letter-spacing: -0.02em;
}

.case-subtitle {
    font-size: 1.3rem;
    color: #5a6c7d;
    line-height: 1.6;
    font-weight: 400;
    max-width: 600px;
    margin: 0 auto;
}

/* ===========================================
   案例内容布局
   =========================================== */
.case-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.application-case.reverse .case-content {
    grid-template-columns: 1fr 1fr;
}

.application-case.reverse .case-details {
    order: 1;
}

.application-case.reverse .case-images {
    order: 2;
}

/* ===========================================
   案例图片样式
   =========================================== */
.case-images {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
}

.case-img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.case-img:hover {
    transform: scale(1.02);
}

.sub-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.sub-img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.sub-img:hover {
    transform: scale(1.05);
}

/* ===========================================
   案例详情样式优化 - 与视频高度保持一致
   =========================================== */
.case-details {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 450px; /* 匹配视频总高度：主视频300px + 子视频150px */
}

.case-details h3 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    flex-shrink: 0; /* 防止标题被压缩 */
}

/* 美化应用特点列表 */
.case-features {
    list-style: none;
    padding: 0;
    margin: 0;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.8rem;
}

.case-features li {
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #f8fafc, #e3f2fd);
    border-radius: 12px;
    /* border-left: 4px solid #3498db; */
    position: relative;
    color: #2c3e50;
    line-height: 1.6;
    font-size: 1.05rem;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.08);
}

.case-features li:hover {
    transform: translateX(8px);
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    box-shadow: 0 4px 16px rgba(52, 152, 219, 0.15);
}

.case-features li::before {
    content: "▶";
    position: absolute;
    left: -10px;
    top: 50%;
    transform: translateY(-50%);
    color: #3498db;
    font-size: 1.2rem;
    background: #ffffff;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.2);
}

/* 确保按钮区域在底部 */
.case-action {
    flex-shrink: 0;
    margin-top: 20px;
}

/* ===========================================
   统计数据样式
   =========================================== */
.case-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8fafc, #e3f2fd);
    border-radius: 8px;
    border: 1px solid #e8f4fd;
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(52, 152, 219, 0.15);
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #3498db;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: #7f8c8d;
    font-weight: 500;
}

/* ===========================================
   视频演示区域样式
   =========================================== */
.video-demo {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.video-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.demo-video {
    width: 100%;
    max-width: 800px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.video-description {
    text-align: center;
    max-width: 800px;
}

.video-description h3 {
    margin-bottom: 15px;
    color: #333;
    font-size: 1.5rem;
}

.video-description p {
    color: #666;
    line-height: 1.6;
}

/* ===========================================
   视频样式优化
   =========================================== */
.case-video, .sub-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
    transition: all 0.4s ease;
}

/* 视频容器美化 */
.main-video {
    grid-column: 1 / -1;
    height: 320px;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    transition: all 0.4s ease;
}

.main-video::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(52, 152, 219, 0.1), rgba(155, 89, 182, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
    pointer-events: none;
}

.main-video:hover::before {
    opacity: 1;
}

.main-video:hover {
    transform: scale(1.02) translateY(-4px);
    box-shadow: 0 30px 80px rgba(52, 152, 219, 0.25);
}

.sub-videos {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    height: 200px;
}

.sub-video {
    height: 100%;
}

.case-video:hover, .sub-video:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 50px rgba(52, 152, 219, 0.2);
}

/* ===========================================
   查看更多按钮美化
   =========================================== */
.view-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.4s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.3);
}

.view-more-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.view-more-btn:hover::before {
    left: 100%;
}

.view-more-btn:hover {
    background: linear-gradient(135deg, #2980b9, #1f5f8b);
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(52, 152, 219, 0.4);
}

.view-more-btn svg {
    transition: transform 0.3s ease;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

.view-more-btn:hover svg {
    transform: translateX(4px) scale(1.1);
}

/* ===========================================
   响应式布局 - 平板端适配 (768px及以下)
   =========================================== */
@media (max-width: 768px) {
    /* 应用示例展示区域 */
    .applications-showcase {
        padding: 60px 0;
    }
    
    .application-case {
        margin-bottom: 80px;
        padding: 3rem 1.5rem;
        border-radius: 20px;
    }
    
    /* 案例标题 */
    .case-header h2 {
        font-size: 2.2rem;
        margin-bottom: 0.8rem;
    }
    
    .case-subtitle {
        font-size: 1.1rem;
    }
    
    /* 案例内容布局 - 改为单列 */
    .case-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    /* 重置反向布局 */
    .application-case.reverse .case-content {
        grid-template-columns: 1fr;
    }
    
    .application-case.reverse .case-details,
    .application-case.reverse .case-images {
        order: unset;
    }
    
    /* 案例详情高度调整 */
    .case-details {
        min-height: auto;
        padding: 0;
    }
    
    .case-details h3 {
        font-size: 1.5rem;
        margin-bottom: 1.2rem;
    }
    
    /* 特点列表优化 */
    .case-features li {
        padding: 0.8rem 1.2rem;
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .case-features li::before {
        left: -10px;
        font-size: 1rem;
        width: 20px;
        height: 20px;
    }
    
    /* 视频和图片样式 */
    .main-video {
        height: 280px;
        border-radius: 14px;
    }
    
    .sub-videos {
        height: 150px;
        gap: 10px;
    }
    
    /* 统计数据 */
    .case-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-top: 1.5rem;
    }
    
    .stat-item {
        padding: 1.2rem;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    /* 视频演示区域 */
    .video-demo {
        padding: 60px 0;
    }
    
    .video-container {
        gap: 20px;
    }
    
    .video-description h3 {
        font-size: 1.3rem;
    }
    
    .video-description p {
        font-size: 0.95rem;
    }
    
    /* 按钮样式 */
    .view-more-btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }
}

/* ===========================================
   响应式布局 - 手机端适配 (480px及以下)
   =========================================== */
@media (max-width: 480px) {
    /* 应用示例展示区域 */
    .applications-showcase {
        padding: 40px 0;
    }
    
    .application-case {
        margin-bottom: 60px;
        padding: 2rem 1rem;
        border-radius: 16px;
    }
    
    /* 案例标题 */
    .case-header {
        margin-bottom: 2.5rem;
    }
    
    .case-header h2 {
        font-size: 1.8rem;
        margin-bottom: 0.6rem;
    }
    
    .case-subtitle {
        font-size: 1rem;
        line-height: 1.5;
    }
    
    /* 案例内容布局 */
    .case-content {
        gap: 2rem;
    }
    
    /* 案例详情 */
    .case-details h3 {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }
    
    /* 特点列表优化 */
    .case-features li {
        padding: 0.7rem 1rem;
        font-size: 0.95rem;
        line-height: 1.5;
        border-radius: 10px;
    }
    
    .case-features li::before {
        font-size: 0.9rem;
        width: 18px;
        height: 18px;
        left: -9px;
    }
    
    /* 视频和图片样式 */
    .main-video {
        height: 220px;
        border-radius: 12px;
    }
    
    .sub-videos {
        height: 120px;
        gap: 8px;
    }
    
    .case-img, .sub-img {
        border-radius: 8px;
    }
    
    /* 统计数据 */
    .stat-item {
        padding: 1rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 0.85rem;
    }
    
    /* 视频演示区域 */
    .video-demo {
        padding: 40px 0;
    }
    
    .video-container {
        gap: 15px;
    }
    
    .video-description h3 {
        font-size: 1.2rem;
        margin-bottom: 10px;
    }
    
    .video-description p {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    /* 按钮样式 */
    .view-more-btn {
        padding: 10px 20px;
        font-size: 0.85rem;
        gap: 6px;
    }
    
    .view-more-btn svg {
        width: 14px;
        height: 14px;
    }
}

/* ===========================================
   响应式布局 - 小屏手机适配 (375px及以下)
   =========================================== */
@media (max-width: 375px) {
    /* 应用示例展示区域 */
    .applications-showcase {
        padding: 30px 0;
    }
    
    .application-case {
        margin-bottom: 50px;
        padding: 1.5rem 0.8rem;
        border-radius: 14px;
    }
    
    /* 案例标题 */
    .case-header h2 {
        font-size: 1.6rem;
    }
    
    .case-subtitle {
        font-size: 0.95rem;
    }
    
    /* 案例内容布局 */
    .case-content {
        gap: 1.5rem;
    }
    
    /* 案例详情 */
    .case-details h3 {
        font-size: 1.2rem;
    }
    
    /* 特点列表 */
    .case-features li {
        padding: 0.6rem 0.8rem;
        font-size: 0.9rem;
        border-radius: 8px;
    }
    
    .case-features li::before {
        font-size: 0.8rem;
        width: 16px;
        height: 16px;
        left: -8px;
    }
    
    /* 视频样式 */
    .main-video {
        height: 180px;
        border-radius: 10px;
    }
    
    .sub-videos {
        height: 100px;
        gap: 6px;
    }
    
    /* 视频演示区域 */
    .video-demo {
        padding: 30px 0;
    }
    
    .video-description h3 {
        font-size: 1.1rem;
    }
    
    .video-description p {
        font-size: 0.85rem;
    }
    
    /* 按钮样式 */
    .view-more-btn {
        padding: 8px 16px;
        font-size: 0.8rem;
        border-radius: 20px;
    }
}

/* ===========================================
   横屏模式优化 (768px及以下)
   =========================================== */
@media (max-width: 768px) and (orientation: landscape) {
    .applications-showcase {
        padding: 40px 0;
    }
    
    .application-case {
        margin-bottom: 60px;
    }
    
    .main-video {
        height: 200px;
    }
    
    .sub-videos {
        height: 120px;
    }
    
    .video-demo {
        padding: 40px 0;
    }
}