/* ✅ 只作用于案例详情页的内容区域，不影响导航栏 */
.case-detail .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px
}

.back {
    margin-bottom: 20px
}

.back a {
    color: #2563eb;
    text-decoration: none
}

.case-header {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px
}

.case-header h1 {
    font-size: 26px;
    color: #1a2b48;
    margin-bottom: 10px
}

.cate {
    display: inline-block;
    padding: 4px 10px;
    background: #e8f0fe;
    color: #2563eb;
    border-radius: 4px;
    font-size: 14px
}

.section {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: -10px
}

.case-detail .section h2 {
    font-size: 20px;
    color: #1a2b48;
    margin-bottom: 16px;
    border-left: 4px solid #2563eb;
    padding-left: 12px
}

.section p {
    color: #555;
    margin-bottom: 10px;
    text-align: left
}

.section ul {
    padding-left: 20px;
    color: #555;
    text-align: left
}

.section li {
    margin-bottom: 8px;
    text-align: left
}

.img-box {
    height: 500px;
    width: 100%;
    background: transparent;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px auto;
}

.img-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* 项目亮点产品图片单独样式 */
.img-box.img-product {
    height: 700px;
    width: 450px;
    margin: -10px auto;
}

/* 产品图片展示区 */
.case-images {
    background: #fff;
    border-radius: 12px;
    padding: 10px;
    margin-bottom: 10px
}

.main-img {
    height: 350px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 120px;
    margin-bottom: 15px
}

.thumb-list {
    display: flex;
    gap: 10px
}

.thumb {
    width: 80px;
    height: 80px;
    background: #eef2f7;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: .3s
}

.thumb:hover, .thumb.active {
    border-color: #2563eb;
    background: #e8f0fe
}

/* 咨询浮动按钮 */
.consult-float {
    position: fixed;
    bottom: 100px;
    right: 30px;
    z-index: 100
}

.consult-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 15px 25px;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 16px;
    box-shadow: 0 4px 15px rgba(37, 99, 235, .4);
    transition: .3s
}

.consult-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, .5)
}

.cta {
    background: #2563eb;
    color: #fff;
    text-align: center;
    padding: 30px;
    border-radius: 12px
}

.cta h2 {
    margin-bottom: 16px
}

.cta a {
    display: inline-block;
    padding: 10px 24px;
    background: #fff;
    color: #2563eb;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold
}

/* ======================================
   案例详情页响应式媒体查询
   ====================================== */

/* 平板适配 */
@media (max-width: 1024px) {
    .case-detail .container {
        padding: 30px 20px;
    }
}

/* 移动端适配 */
@media (max-width: 768px) {
    .case-detail .container {
        padding: 20px 15px;
    }
    
    .back {
        margin-bottom: 15px;
        font-size: 14px;
    }
    
    .case-header {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .case-header h1 {
        font-size: 22px;
    }
    
    .section {
        padding: 20px;
        margin-bottom: 15px;
    }
    
    .case-detail .section h2 {
        font-size: 18px;
        margin-bottom: 12px;
    }
    
    .section p,
    .section li {
        font-size: 14px;
    }
    
    /* 图片自适应 */
    .img-box {
        height: auto !important;
        width: 100% !important;
        margin: 15px auto !important;
        padding: 0 !important;
    }
    
    .img-box img {
        max-width: 100% !important;
        height: auto !important;
    }
    
    /* CTA区域调整 */
    .cta {
        padding: 20px;
    }
    
    .cta h2 {
        font-size: 18px;
        margin-bottom: 12px;
    }
    
    .cta a {
        padding: 8px 20px;
        font-size: 14px;
    }
}

/* 小屏手机适配 */
@media (max-width: 480px) {
    .case-header h1 {
        font-size: 20px;
    }
    
    .section {
        padding: 15px;
    }
    
    .case-detail .section h2 {
        font-size: 17px;
    }
    
    .section p,
    .section li {
        font-size: 13px;
    }
}