﻿/* 1. 案例页标题栏适配（核心覆盖） */
@media (max-width: 1299px) {
    .left_gg-ye {
        width: 100% !important;
        height: auto !important;
        padding: 20px 15px !important;
        font-size: large !important;
        background: #14293E !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        align-items: flex-start !important;
    }
    .zuozhe-nr-bt {
        font-size: 20px !important;
        margin: 0 0 8px 0 !important;
        line-height: 1.3 !important;
    }
    .zuozhe-nr-bt2 {
        font-size: 12px !important;
        line-height: 1.2 !important;
    }
    .zuozhe-nr-bt2 span {
        margin: 0 8px !important;
        display: inline-block !important;
    }
}

/* 2. 路径导航适配 */
@media (max-width: 1299px) {
    .xzfeizi {
        padding-left: 5px !important;
        font-size: 12px !important;
        line-height: 26px !important;
    }
    .xzfeizi a {
        font-size: 12px !important;
    }
}

/* 3. 案例内容容器适配（PC双栏 → 移动端单列） */
@media (max-width: 1299px) {
    #hot_all, #neirong-ye, #zxnr-ye {
        width: 100% !important;
        padding: 0 2px !important;
        margin: 0 !important;
    }
    .columns-container {
        flex-direction: column !important;
        gap: 20px !important;
    }
    .neirong {
        width: 100% !important;
        padding: 15px 0 !important;
        float: none !important;
        font-size: 14px !important;
        line-height: 1.6 !important;
    }
    .longnow {
        width: 100% !important;
        padding: 15px !important;
        background: #fff !important;
        border-radius: 4px !important;
        box-shadow: 0 0 8px rgba(0,0,0,0.05) !important;
    }
}

/* 4. 报价模块适配（强制2列，防单列） */
@media (max-width: 1299px) {
    .budget-container {
        margin: 20px 0 !important;
        padding: 0 10px !important;
        min-width: 300px !important; /* 防容器收缩 */
        box-sizing: border-box !important;
    }
    .budget-grid {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 15px !important;
        justify-content: space-between !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .budget-item {
        flex: 0 0 calc(50% - 7.5px) !important; /* 精准2列 */
        min-width: 140px !important; /* 兜底防换行 */
        height: 60px !important;
        font-size: 13px !important;
        box-sizing: border-box !important; /* 内边距不占宽 */
    }
    .budget-item i {
        font-size: 16px !important;
        margin-bottom: 4px !important;
    }
}

/* 5. 推荐案例/分类列表适配 */
@media (max-width: 1299px) {
    .longnow span[style*="font-size: 20px"],
    .longnow font[color="#00a7b2"] {
        font-size: 16px !important;
    }
    .longnow table {
        width: 100% !important;
    }
    .longnow td {
        padding: 4px 0 !important;
        font-size: 13px !important;
    }
    .longnow div[style*="310px"] {
        width: 100% !important;
        padding-left: 15px !important;
    }
    .stats-text {
        font-size: 14px !important;
        margin: 8px 0 !important;
    }
}

/* 6. 中屏适配（992px，仅加固报价布局） */
@media (max-width: 992px) {
    .budget-container {
        width: 100% !important;
    }
    .budget-grid {
        gap: 15px !important; /* 还原间距，防换行 */
    }
}

/* 7. 小屏手机适配（≤480px，仅优化尺寸） */
@media (max-width: 480px) {
    .zuozhe-nr-bt {
        font-size: 18px !important;
    }
    .longnow td {
        font-size: 12px !important;
    }
    .neirong div[align="left"] {
        font-size: 13px !important;
        line-height: 1.5 !important;
    }
    .budget-item {
        min-width: 130px !important;
        height: 70px !important;
        font-size: 14px !important;
    }
    .budget-item i {
        font-size: 20px !important;
    }
    .neirong {
        padding: 15px !important;
    }
}

/* 8. 大屏还原PC样式（≥1300px） */
@media (min-width: 1300px) {
    .left_gg-ye, .zuozhe-nr-bt, .zuozhe-nr-bt2,
    .columns-container, .neirong, .longnow,
    .budget-container, .budget-grid, .budget-item {
        all: unset !important;
    }
}

/* 9. 移动端表格适配（横向滚动，防纵向拉长） */
@media screen and (max-width: 1299px) {
    .neirong table, .longnow table, #zxnr-ye table {
        width: 100%;
        min-width: 600px;
        border-collapse: collapse;
    }
    .neirong, .longnow, #zxnr-ye {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        padding-bottom: 10px !important;
    }
    .neirong td, .neirong th,
    .longnow td, .longnow th {
        padding: 8px 6px !important;
        font-size: 12px !important;
        line-height: 1.4 !important;
        white-space: nowrap !important;
        border: 1px solid #eee !important;
    }
    .neirong th, .longnow th {
        background-color: #f5f5f5 !important;
        font-weight: 600 !important;
        color: #333 !important;
    }
    /* 滚动条美化 */
    .neirong::-webkit-scrollbar,
    .longnow::-webkit-scrollbar {
        height: 4px;
    }
    .neirong::-webkit-scrollbar-thumb,
    .longnow::-webkit-scrollbar-thumb {
        background-color: #ddd;
        border-radius: 2px;
    }
}