/* ============================================
   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: 0 !important;           /* body 已全局预留 195px，避免首页出现双重空白 */
    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: 420px !important;           /* ✅ 背景图铺满整张banner（全高420px，刚好等于设计图尺寸） */
    z-index: 1 !important;
}

/* ===== 风格改造 开始 ===== */
/* 背景图 - 使用设计图 skin/images/banner-bg.jpg，铺满整张banner（全高420px，刚好等于设计图尺寸） */
.slide-bg { background:url(../images/banner-bg.jpg) center center/cover no-repeat !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::before {
    content: "" !important;
    position: absolute !important;
    left: 50% !important;
    bottom: 10% !important;
    width: 110% !important;
    height: 85% !important;
    transform: translateX(-50%) !important;
    background: radial-gradient(ellipse at center, rgba(0,210,255,0.45) 0%, rgba(0,150,255,0.25) 40%, rgba(0,100,255,0) 72%) !important;
    filter: blur(18px) !important;
    z-index: -1 !important;
    pointer-events: none !important;
}

.slide-product img {
    display: block !important;
    height: 400px !important;
    width: auto !important;
    max-width: none !important;
    /* ✅ 沿产品轮廓的青色立体炫光 */
    filter: drop-shadow(0 0 10px rgba(0,210,255,0.55))
            drop-shadow(0 0 24px rgba(0,150,255,0.40))
            drop-shadow(0 0 45px rgba(0,120,255,0.25)) !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;*/
}

/* 右侧文字区域 - 左对齐，占满Banner纵向空间 */
.slide-text {
    position: absolute !important;
    left: 620px !important;
    top: 50px !important;
    bottom: 80px !important;
    height: auto !important;
    transform: none !important;
    z-index: 20 !important;
    max-width: 49% !important;
    text-align: left !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    padding-left: 50px !important;
}

/* ===== 白底蓝边 + 青色外发光标签（缩小版） ===== */
.tech-tag {
    display: inline-block !important;
    padding: 4px 14px !important;       /* 中文原始内边距 */
    background: #ffffff !important;
    border: 6px solid #0080ff !important;  /* 中文原始边框 */
    border-radius: 13px !important;
    color: #004da5 !important;
    font-size: 16px !important;          /* 中文恢复原始字号（外语由 html.lang-foreign 缩小） */
    font-weight: 600 !important;
    letter-spacing: 1px !important;
    text-align: center !important;
    box-shadow: 0 0 12px 3px rgba(0, 210, 255, 0.85) !important;
    margin-bottom: 18px !important;      /* 中文原始间距 */
}

.slide-title {
    font-size: 34px !important;          /* 中文恢复原始字号（外语由 html.lang-foreign 缩小） */
    font-weight: 700 !important;
    line-height: 1.3 !important;
    margin: 16px 0 24px 0 !important;    /* 中文原始间距 */
    padding: 0 !important;
    color: #ffffff !important;
    text-align: left !important;
    /* 翻译过长时最多两行，避免撑入缩略图区（中英文通用） */
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

.slide-desc {
    font-size: 22px !important;          /* 中文恢复原始字号（外语由 html.lang-foreign 缩小） */
    font-weight: 400 !important;
    line-height: 1.6 !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #fbfbfb !important;
    text-align: left !important;
    /* 描述最多 3 行，超出省略，防止长翻译侵入缩略图区（中英文通用） */
    max-height: 7.2em !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    overflow-wrap: break-word !important;
    word-break: break-word !important;
}

/* ===== 按钮外层：承载外发光（避免被按钮 clip-path 裁掉）===== */
.tech-btn-wrap {
    display: inline-block !important;
    margin-top: auto !important;   /* 让按钮沉到文字区底部 */
    /* 青色外发光：沿箭头轮廓，对应 PS 外发光 大小18px/扩展30%/不透明度100% */
    filter: drop-shadow(0 0 18px rgba(0, 234, 255, 0.85)) !important;
    transition: filter 0.3s ease !important;
}

.tech-btn-wrap:hover {
    filter: drop-shadow(0 0 24px rgba(0, 234, 255, 0.95)) !important;
}

/* ===== 深蓝箭头按钮（右指箭头 · 缩小版）===== */
.tech-btn {
    display: inline-block !important;
    position: relative !important;
    padding: 8px 30px 8px 18px !important;  /* 中文原始内边距 */
    background: linear-gradient(180deg, #0a5fc4 0%, #0640a0 50%, #022b7a 100%) !important;
    color: #ffffff !important;
    font-size: 14px !important;             /* 中文恢复原始字号（外语由 html.lang-foreign 缩小） */
    font-weight: 600 !important;
    text-decoration: none !important;
    letter-spacing: 1px !important;
    /* 右指箭头形状 */
    clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 50%, calc(100% - 16px) 100%, 0 100%) !important;
    transition: all 0.3s ease !important;
    box-shadow:
        0 4px 12px rgba(0, 50, 110, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
    box-shadow: 0 0 12px 3px rgba(44, 216, 255, 0.85) !important;
}

/* 按钮顶部高光 */
.tech-btn::before {
    content: "" !important;
    position: absolute !important;
    top: 1px !important;
    left: 0 !important;
    right: 12px !important;
    height: 1px !important;
    background: rgba(255, 255, 255, 0.35) !important;
    pointer-events: none !important;
}

.tech-btn:hover {
    background: linear-gradient(180deg, #187be6 0%, #0b52c4 50%, #063a9e 100%) !important;
    filter: drop-shadow(0 0 24px rgba(0, 234, 255, 0.95)) !important;
    box-shadow:
        0 6px 16px rgba(0, 50, 110, 0.50),
        inset 0 1px 0 rgba(255, 255, 255, 0.30) !important;
}

.tech-btn .arrow {
    margin-left: 8px !important;
    display: inline-block !important;
    transition: transform 0.3s ease !important;
}

.tech-btn:hover .arrow {
    transform: translateX(5px) !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 边距 */
/* ============================================================
   外语（非简体中文）时缩小 banner 字号
   由 foot.html 的 applyBannerLang() 依据当前翻译语言，
   给 <html> 切换 .lang-foreign 类触发；中文（默认）用上方原始字号。
   ============================================================ */
html.lang-foreign .tech-tag {
    font-size: 13px !important;
    padding: 4px 12px !important;
    border-width: 5px !important;
    border-radius: 9px !important;
    margin-bottom: 14px !important;
}
html.lang-foreign .slide-title {
    font-size: 24px !important;
    margin: 14px 0 20px 0 !important;
}
html.lang-foreign .slide-desc {
    font-size: 15px !important;
}
html.lang-foreign .tech-btn {
    font-size: 12px !important;
    padding: 7px 26px 7px 16px !important;
}

@media (max-width: 1280px) {
    .banner-controls {
        right: 20px !important;
    }
}

.banner-btn {
    width: 28px !important;
    height: 28px !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: 0 !important;          /* 移动端由 header.css 的 body padding-top:52px 推开固定头部，banner 不再额外 margin-top */
        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-product 局部铺 m-bg.jpg */
    }

    .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;
        top: auto !important;
        right: auto !important;
        bottom: auto !important;
        left: auto !important;
        width: 100% !important;
        background: url(../images/m-bg.jpg) center center/cover no-repeat !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;
        top: auto !important;
        right: auto !important;
        bottom: auto !important;
        left: 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;          /* 文字区仍为白底，深色文字可读 */
        display: block !important;            /* 手机端不用 flex，避免隐藏按钮后留下 flex 间隙 */
    }

    .slide-title {
        font-size: 20px !important;           /* 中文恢复移动端原始字号（外语由 html.lang-foreign 缩小） */
        color: #1a1a1a !important;            /* 白底恢复深字 */
        margin-bottom: 16px !important;        /* 中文原始间距 */
        line-height: 1.4 !important;
        /* 移动端标题最多两行（中英文通用） */
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }

    .slide-desc {
        font-size: 14px !important;           /* 中文恢复移动端原始字号（外语由 html.lang-foreign 缩小） */
        color: #666 !important;               /* 白底恢复深灰字 */
        margin-bottom: 16px !important;       /* 恢复描述与缩略图区的正常间距，避免大片空白错觉 */
        line-height: 1.5 !important;
        /* 移动端描述最多 4 行，防止长翻译压到缩略图（中英文通用） */
        max-height: 8.5em !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 4 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        overflow-wrap: break-word !important;
        word-break: break-word !important;
    }

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

    /* 外语时移动端 banner 文字同步缩小 */
    html.lang-foreign .slide-title {
        font-size: 16px !important;
        margin-bottom: 12px !important;
    }
    html.lang-foreign .slide-desc {
        font-size: 12px !important;
        margin-bottom: 14px !important;
    }

    .tech-btn,
    .tech-btn-wrap {
        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;
    }
}
/* ===== 风格改造 结束 ===== */