/* ==========================================
   Solution Page Styles (解决方案) - 生产环境优化版
   ========================================== */

/* --- 1. 全局与重置 --- */
* {
    box-sizing: border-box;
    /* 移动端点击高亮消除，提升原生体验 */
    -webkit-tap-highlight-color: transparent; 
}

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

body {
    margin: 0;
    font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    color: #2f3338;
    background: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
    /* 防止图片拖拽影响体验 */
    -webkit-user-drag: none; 
}

.container {
    width: min(100%, 1240px);
    margin: 0 auto;
}

.solution-page {
    min-height: 100vh;
    background: #fff;
}

/* --- 2. Hero 头部视觉 --- */
.solution-hero {
    position: relative;
    background-image: url("https://sld2025.oss-cn-shanghai.aliyuncs.com/gw/jie-jue-fang-an.png");
    background-size: 100% 100%;
    background-repeat: no-repeat;
    min-height: 470px;
    padding-top: 60px;
    overflow: hidden;
    
}

.solution-hero-inner {
    position: relative;
    min-height: 410px;
    display: flex;
    align-items: center;
}

.solution-hero-copy {
    position: relative;
    z-index: 2;
    max-width: 780px;
    padding-top: 20px;
    margin-left: 30px;
}

.solution-hero-copy h1 {
    margin: 0 0 28px;
    font-size: 56px;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: 0;
    color: #fff;
}

.solution-hero-copy p {
    margin: 0;
    font-size: 18px;
    line-height: 1.8;
    font-weight: 600;
    color: #AEAEAE;
}

/* --- 3. Tab 导航 (固定顶部) --- */
.solution-tabs-wrap {
    position: sticky;
    top: 60px;
    z-index: 50;
    background: rgba(255, 255, 255, 0.96);
    /* 配合模糊滤镜提升质感 (iOS 及现代浏览器支持) */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 28px rgba(57, 67, 84, 0.08);
    /* 解决部分浏览器 sticky 定位渲染闪烁问题 */
    transform: translateZ(0); 
}

.solution-tabs {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 82px;
    gap: 200px;
}

.solution-tab {
    position: relative;
    height: 82px;
    border: 0;
    background: transparent;
    color: #2f3338;
    font: inherit;
    font-size: 18px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0 4px;
    transition: color 0.3s;
}

.solution-tab::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 4px;
    background: #ff3010;
    display: none;
}

.solution-tab.active {
    color: #ff3010;
    width: 300px;
}

.solution-tab.active::after {
    display: block;
}

.solution-tab:hover {
    color: #ff3010;
}

/* --- 4. 核心布局容器 --- */
.solution-panel {
    display: block;
    padding-top: 80px;
    /* padding-bottom: 80px; */
}

.section-header-center {
    text-align: center;
    margin-bottom: 60px;
}

.section-header-center h2 {
    margin: 0 0 12px;
    font-size: 32px;
    font-weight: bold;
    color: #2f3338;
}

.section-header-center .header-line {
    width: 60px;
    height: 6px;
    background-color: #ff3010;
    margin: 0 auto;
    border-radius: 2px;
}

.img-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #999;
}

/* --- 5. 解决方案卡片 --- */
.solution-card {
    display: flex;
    gap: 40px;
    align-items: center;
    margin-bottom: 80px;
}

.solution-card:last-child {
    margin-bottom: 0;
}

.solution-card.reverse {
    flex-direction: row-reverse;
}

.solution-card-image {
    border-radius: 12px;
    overflow: hidden;
    /* 硬件加速，防止圆角在执行动画或滚动时出现毛边 */
    transform: translateZ(0); 
}

.solution-card-image .img-placeholder {
    width: 500px;
    height: 400px;
}

/* 确保内部图片铺满容器，避免比例失调导致留白 */
.solution-card-image .img-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.solution-card-content {
    flex: 1;
    padding: 10px 0;
}

.solution-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 5px;
}

.solution-card-header .title-bar {
    width: 6px;
    height: 24px;
    background-color: #ff3010;
    border-radius: 3px;
    flex-shrink: 0;
}

.solution-card-header h2 {
    margin: 0;
    font-size: 26px;
    font-weight: bold;
    color: #2f3338;
}

.solution-desc {
    font-size: 14px;
    line-height: 1.8;
    color: #FF300E;
    margin: 0 0 50px;
}

.solution-features {
    display: flex;
    flex-direction: column;
    gap: 30px;
    /* background: linear-gradient( 270deg, rgba(255,255,255,0.82) 0%, rgba(215,215,215,0) 100%); */
    /* border-radius: 0px 8px 8px 0px; */
    padding: 20px;
    background-image: url("https://sld2025.oss-cn-shanghai.aliyuncs.com/gw/ju-xing-bei-fen-11-2x.png");
    background-repeat: no-repeat;
    background-size: 100% 100%;

}

.solution-features_one{
    background-image: url("https://sld2025.oss-cn-shanghai.aliyuncs.com/gw/ju-xing-bei-fen-11-2x-1.png") !important;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff2ee;
    border-radius: 50%;
    color: #ff3010;
    font-size: 16px;
}

.feature-text {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
}

.feature-text strong {
    font-size: 15px;
    color: #2f3338;
    width: 160px; /* 核心：给标题一个固定宽度（160px 足够装下长英文） */
    flex-shrink: 0; /* 核心：绝对禁止标题被右侧长文本压缩 */
    margin-right: 16px; /* 标题和右侧描述的间距 */
    line-height: 1.6;
}

.feature-text span {
    flex: 1; /* 核心：右侧文字自动填满剩余所有空间 */
    font-size: 14px;
    color: #6d7888;
    line-height: 1.6;
}

/* --- 6. 合作案例网格 --- */
.cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.case-card {
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05); 
    display: block; /* 适配被修改为 a 标签的场景 */
}

/* 优化动画性能：只对 transform 和 box-shadow 进行过渡 */
.case-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    will-change: transform, box-shadow; 
}

.case-image {
    width: 100%;
    height: 240px; 
    position: relative; 
    display: block;
}

.case-image .img-placeholder {
    width: 100%;
    height: 100%;
    background: #333; 
    color: #666;
    border-radius: 0;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.case-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.case-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 50%; 
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 100%);
    display: flex;
    align-items: flex-end;
    padding: 20px 24px;
    pointer-events: none; 
}

.case-card h3 {
    margin: 0;
    font-size: 16px;
    color: #ffffff; 
    font-weight: bold;
    text-align: left;
    width: 100%;
    white-space: nowrap;       
    overflow: hidden;          
    text-overflow: ellipsis;   
}

/* ==========================================
   响应式断点控制
   ========================================== */

/* --- 平板与小屏幕笔记本 (1024px) --- */
@media (max-width: 1024px) {
    .solution-card {
        gap: 40px;
        margin-bottom: 60px;
    }
    .solution-card-image {
        min-height: 260px;
    }
    .solution-card-image .img-placeholder {
        width: 100%;
        min-height: 260px;
    }
    .cases-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* --- 移动端主流设备 (768px) --- */
@media (max-width: 768px) {
    .solution-hero {
        min-height: 360px;
        padding-top: 56px;
        /* 移动端修改焦点，避免背景主体被裁剪 */
        background-position: 60% center; 
    }
    .solution-hero-copy h1 {
        font-size: 36px;
        margin-bottom: 16px;
    }
    .solution-hero-copy p {
        font-size: 15px;
        line-height: 1.6;
    }

    .solution-tabs-wrap {
        top: 56px;
    }
    
    .solution-tabs {
        height: 60px;
        gap: 16px;
        /* 移动端横向平滑滚动防溢出 */
        justify-content: center;
        padding: 0 16px;
        overflow-x: auto;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
    }
    
    .solution-tabs::-webkit-scrollbar {
        display: none; /* 隐藏原生滚动条 */
    }
    
    .solution-tab {
        height: 60px;
        font-size: 15px;
        flex-shrink: 0; 
    }
    
    .solution-tab.active {
        width: auto; 
    }

    .solution-panel {
        padding: 40px 0 50px;
    }

    .solution-card {
        flex-direction: column !important;
        gap: 20px;
        margin-bottom: 40px;
        padding: 0 16px; 
    }
    
    .solution-card-image,
    .solution-card-image .img-placeholder {
        width: 100%;
        height: auto;
        /* 采用 aspect-ratio 提前占位，避免网速慢时产生 CLS (累积布局偏移) */
        aspect-ratio: 5 / 4; 
        min-height: auto;
    }
    
    .solution-card-content {
        width: 100%;
        padding: 0;
    }
    
    .solution-card-header h2 {
        font-size: 22px;
    }
    
    .solution-desc {
        font-size: 14px;
        margin-bottom: 30px;
    }

    .solution-features {
        gap: 20px;
        background: none; 
    }
    
    .feature-item {
        align-items: flex-start; 
    }
    
    .feature-icon {
        width: 36px;
        height: 36px;
    }
    
    .feature-text {
        flex-direction: column; 
    }
    
    .feature-text strong {
        width: auto; /* 手机端取消固定宽度，让它自然显示 */
        margin-bottom: 6px;
        white-space: normal;
    }

    /* 暴力覆盖 HTML 内联样式导致的断层问题 */
    .solution-card-content > div[style*="margin-top: 100px"],
    .solution-card-content > div[style*="margin-top: 80px"] {
        margin-top: 30px !important;
        gap: 15px !important;
        justify-content: flex-start !important;
    }
    
    .solution-card-content > div[style*="margin-top"] .feature-icon {
        width: 48px !important;
        height: 48px !important;
        background: transparent; 
    }

    .cases-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 16px;
    }

    .case-image {
        aspect-ratio: 16 / 9; 
        height: auto;
    }

    .case-overlay {
        padding: 16px;
        height: 60%; 
    }

    .case-card h3 {
        font-size: 15px;
        white-space: normal; 
        /* 多行截断方案，提升长文本阅读体验 */
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        line-height: 1.4;
    }

    .section-header-center h2 {
        font-size: 26px;
    }
}

/* --- 极小尺寸设备 (480px) --- */
@media (max-width: 480px) {
    .solution-hero-copy h1 {
        font-size: 28px;
    }
    .solution-hero-copy p {
        font-size: 13px;
    }
    .solution-card-header h2 {
        font-size: 20px;
    }
    .solution-tab {
        font-size: 14px;
        height: 50px;
    }
    .solution-tabs {
        height: 50px;
    }
    .feature-text strong {
        font-size: 14px;
    }
    .feature-text span {
        font-size: 12px;
    }
}