/* ============================================
   Banner Simple Widget
   ============================================ */

.bai_bns_banner-container {
    --bai-slant: 70px;
    --bai-divider: 5px;
    width: 100%;
    max-width: 1200px;
    height: 400px;
    display: flex;
    box-sizing: border-box;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background-color: #126cb5;
}

/* ========== Hero 内容区 ========== */
.bai_bns_hero-content {
    width: 42%;
    height: 100%;
    padding: 40px 30px;
    box-sizing: border-box;
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* ========== 标题 & 描述 ========== */
.bai_bns_hero-title {
    font-size: 32px;
    font-weight: bold;
    margin: 0 0 20px 0;
    line-height: 1.2;
    letter-spacing: 0.5px;
    color: #ffffff;
}

.bai_bns_hero-sub-subtitle {
    font-size: 13px;
    margin: 0 0 10px 0;
    line-height: 1.5;
    color: rgba(255,255,255,0.8);
}

.bai_bns_hero-subtitle {
    font-size: 15px;
    margin: 0 0 35px 0;
    line-height: 1.6;
    font-weight: 500;
    color: #ffffff;
}

/* ========== 按钮 ========== */
.bai_bns_hero-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.bai_bns_btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    font-size: 12px;
    font-weight: bold;
    text-decoration: none;
    border-radius: 3px;
    text-transform: uppercase;
    transition: opacity 0.2s, background-color 0.2s, color 0.2s;
    box-sizing: border-box;
    cursor: pointer;
    line-height: 1.4;
}

.bai_bns_btn:hover {
    opacity: 0.85;
    text-decoration: none;
}

.bai_bns_btn--primary {
    background-color: #ffffff;
    color: #ba2025;
    border: 2px solid #ffffff;
}

.bai_bns_btn--secondary {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.bai_bns_btn-arrow {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* ========== 分页点 ========== */
.bai_bns_dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 8;
}

.bai_bns_dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
}

.bai_bns_dot.active {
    background-color: #ffffff;
    transform: scale(1.3);
}

/* ========== 拖拽状态 ========== */
.bai_bns_carousel-inner.dragging {
    cursor: grabbing;
}

.bai_bns_carousel-inner.dragging .bai_bns_carousel-track {
    transition: none;
}

/* ========== 轮播区域 ========== */
.bai_bns_carousel-wrapper {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 58%;
    background: white;
    clip-path: polygon(var(--bai-slant) 0, 100% 0, 100% 100%, 0 100%);
    z-index: 5;
}

.bai_bns_carousel-inner {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    width: 100%;
    clip-path: polygon(calc(var(--bai-slant) + var(--bai-divider)) 0, 100% 0, 100% 100%, var(--bai-divider) 100%);
    overflow: hidden;
    background: #eee;
}

.bai_bns_carousel-track {
    display: flex;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.bai_bns_carousel-slide {
    width: 100%;
    height: 100%;
    flex-shrink: 0;
    object-fit: cover;
}

/* ========== 平板端（≤ 900px） ========== */
@media (max-width: 900px) {
    .bai_bns_banner-container {
        height: auto !important;
        min-height: 350px;
    }
    .bai_bns_hero-content {
        width: 60% !important;
        padding: 30px 20px;
    }
    .bai_bns_carousel-wrapper {
        width: 50% !important;
    }
}

/* ========== 手机端（≤ 600px） ========== */
@media (max-width: 600px) {
    .bai_bns_banner-container {
        flex-direction: column-reverse;
        min-height: auto;
    }
    .bai_bns_hero-content {
        width: 100% !important;
        height: auto;
        padding: 30px 20px;
    }
    .bai_bns_carousel-wrapper {
        position: relative;
        width: 100% !important;
        height: 250px;
        clip-path: none;
    }
    .bai_bns_carousel-inner {
        clip-path: none;
        border-bottom: var(--bai-divider) solid white;
    }
    .bai_bns_hero-buttons {
        flex-direction: column;
        gap: 10px;
    }
    .bai_bns_btn {
        text-align: center;
    }
}
