/* ============================================
   Banner CSS - 背景分离版
   修改说明：
   1. ✅ 彩色背景高度330px（不是420px）
   2. ✅ Banner总高度保持420px
   3. ✅ 缩略图放在330px以下的白色区域
   4. ✅ 产品图和文字位置保持不变
   ============================================ */

/* 全局禁止横拉 */
html, body {
    overflow-x: hidden !important;
    max-width: 100% !important;
}

/* ================================
   【不变】Banner主容器 - 总高度420px
   ================================ */
.banner {
    width: 100vw !important;           /* 视口宽度，真正全屏 */
    max-width: 100vw !important;
    position: relative !important;
    left: 50% !important;
    transform: translateX(-50%) !important;  /* 突破居中限制 */
    margin-left: calc(50% - 50vw) !important; /* 强制拉满屏幕 */
    margin-top: 195px !important;
    height: 420px !important;           /* ✅ 总高度保持420px */
    overflow: visible !important;       /* ✅ 允许缩略图在外面显示 */
    z-index: 1 !important;
    padding: 0 !important;
    overflow: hidden !important;  /* ✅ 超出Banner高度的内容自动隐藏 */
}

/* 轮播轨道 */
.banner-track {
    display: flex !important;
    width: 100% !important;
    height: 100% !important;
    transition: transform 0.6s cubic-bezier(0.25, 0.1, 0.25, 1) !important;
    will-change: transform !important;
}

.banner-track.no-transition {
    transition: none !important;
}

/* 每个轮播项 */
.banner-slide {
    flex-shrink: 0 !important;
    width: 100% !important;
    min-width: 100% !important;
    height: 100% !important;
    position: relative !important;
    background-color: #ffffff !important;  /* ✅ 整个slide背景是白色 */
}

/* ================================
   【核心修改1】彩色背景层 - 只有330px高度
   ================================ */
.slide-bg {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 330px !important;           /* ✅ 彩色背景只有330px */
    z-index: 1 !important;
}

/* ===== 风格改造 开始 ===== */
/* 背景色 - 统一为科技蓝渐变（所有帧一致，干净工业科技感，去除每帧变色） */
.slide-bg { background:linear-gradient(120deg, #0e2a4f 0%, #1565c0 100%) !important; }

/* 内容容器 - 1280px居中 */
.slide-content {
    max-width: 1280px !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 auto !important;
    position: relative !important;
    z-index: 10 !important;
}

/* ================================
   【不变】左侧产品图 + CSS倒影
   （在420px总高度内正常定位）
   ================================ */
.slide-product {
    position: absolute !important;
    left: 50px !important;
    bottom: 0px !important;  /* 底部留出缩略图空间 */
    z-index: 20 !important;
}

.slide-product img {
    display: block !important;
    height: 400px !important;
    width: auto !important;
    max-width: none !important;
    /* CSS倒影效果 */
   /* -webkit-box-reflect: below -5px linear-gradient(to bottom, rgba(0,0,0,0) 65%, rgba(0,0,0,0.15) 100%) !important;*/
}

/* 右侧文字区域 - 左对齐（不变） */
.slide-text {
    position: absolute !important;
    left: 620px !important;
    top: 165px !important;   /* 在330px彩色背景内垂直居中 */
    height: auto !important; /* 自适应内容高度，不裁切 */
    transform: translateY(-50%) !important;
    z-index: 20 !important;
    max-width: 49% !important;
    text-align: left !important;
    align-items: center !important;
}

.slide-tag {
    display: inline-block !important;
    background-color: #c00000 !important;
    color: #ffffff !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    padding: 4px 12px !important;
    border-radius: 2px !important;
    margin-bottom: 16px !important;
    letter-spacing: 1px !important;
}

.slide-title {
    font-size: 34px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    margin: 0 0 10px 0 !important;
    padding: 0 !important;
    color: #ffffff !important;
    text-align: left !important;
}

.slide-desc {
    font-size: 16px !important;
    font-weight: 400 !important;
    line-height: 1.6 !important;
    margin: 0 0 24px 0 !important;
    padding: 0 !important;
    color: rgba(255,255,255,0.85) !important;
    text-align: left !important;
}

/* 查看详情按钮 */
.slide-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    background-color: #c00000 !important; /* 品牌红统一 */
    color: #ffffff !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    padding: 12px 28px !important;
    border-radius: 2px !important;
    text-decoration: none !important;
    transition: background-color 0.3s !important;
}

.slide-btn:hover {
    background-color: #a00000 !important;
    color: #ffffff !important;
}

/* ================================
   【核心修改2】缩略图控制栏 - 移到白色区域
   位置：330px彩色背景以下（330px-420px区域）
   ================================ */
.banner-controls {
    position: absolute !important;
    /* ✅ 缩略栏右边缘对齐到 1280px 安全宽度区域的右边缘
          （与 .slide-content 的右边缘对齐，不再贴屏幕边） */
    right: calc(50% - 640px) !important;
    bottom: 10px !important;           /* ✅ 放在Banner底部白色区域 */
    z-index: 100 !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

/* 小屏（≤1280px）回退：安全宽度已铺满，留 20px 边距 */
@media (max-width: 1280px) {
    .banner-controls {
        right: 20px !important;
    }
}

.banner-btn {
    width: 36px !important;
    height: 36px !important;
    background-color: #f5f5f5 !important;  /* ✅ 白色背景按钮 */
    border: 1px solid #e2e8f0 !important;
    border-radius: 2px !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    margin: 0 !important;
    font-size: 16px !important;
    line-height: 1 !important;
}

.banner-btn:hover {
    background-color: #ffffff !important;
}

/* 缩略图 - 在白色背景上 */
.banner-thumbs {
    display: flex !important;
    gap: 6px !important;
    align-items: center !important;
}

.banner-thumb {
    width: 85px !important;
    height: 60px !important;
    border: 2px solid transparent !important;
    border-radius: 2px !important;
    overflow: hidden !important;
    cursor: pointer !important;
    opacity: 0.7 !important;
    background-color: #f5f5f5 !important;
}

.banner-thumb:hover {
    opacity: 1 !important;
}

.banner-thumb.active {
    border-color: #c00000 !important;     /* ✅ 品牌橙红边框高亮（统一去蓝） */
    opacity: 1 !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15) !important;
}

.banner-thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

/* ================================
   响应式
   ================================ */
@media (max-width: 1020px) {
    .banner {
        margin-top: 62px !important;
        height: auto !important;
        overflow: visible !important;
        background: #fff !important;
    }

    .banner-track {
        height: auto !important;
    }

    .banner-slide {
        height: auto !important;
        background: #fff !important;
    }

    .slide-bg {
        display: none !important; /* 手机端不需要彩色背景 */
    }

    .slide-content {
        max-width: 100% !important;
        padding: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        position: relative !important;
        height: auto !important;
    }

    /* 产品图在上，占满宽度 */
    .slide-product {
        position: relative !important;
        left: auto !important;
        bottom: auto !important;
        width: 100% !important;
        background: #f5f6f8 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 24px 0 !important;
    }

    .slide-product img {
        height: auto !important;
        max-width: 80% !important;
        width: auto !important;
        max-height: 240px !important;
    }

    /* 文字在下，白色背景 */
    .slide-text {
        position: relative !important;
        left: auto !important;
        top: auto !important;
        transform: none !important;
        max-width: 100% !important;
        width: 100% !important;
        padding: 20px 16px 16px !important;
        text-align: left !important;
        box-sizing: border-box !important;
        background: #fff !important;
    }

    .slide-title {
        font-size: 20px !important;
        color: #1a1a1a !important;
        margin-bottom: 8px !important;
        line-height: 1.4 !important;
    }

    .slide-desc {
        font-size: 14px !important;
        color: #666 !important;
        margin-bottom: 16px !important;
        line-height: 1.5 !important;
    }

    .slide-tag {
        margin-bottom: 10px !important;
    }

    .slide-btn {
        display: none !important; /* 手机端隐藏查看详情按钮 */
    }

    /* 缩略图移到文字下方，横向滚动 */
    .banner-controls {
        position: relative !important;
        right: auto !important;
        bottom: auto !important;
        justify-content: flex-start !important;
        padding: 12px 16px 20px !important;
        background: #fff !important;
        gap: 10px !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }

    .banner-btn {
        display: none !important; /* 手机端隐藏左右按钮 */
    }

    .banner-thumbs {
        gap: 10px !important;
        flex-wrap: nowrap !important;
    }

    .banner-thumb {
        width: 72px !important;
        height: 54px !important;
        flex-shrink: 0 !important;
    }
}
/* ===== 风格改造 结束 ===== */