/* ============================================
   Banner Hero Widget
   ============================================ */

.bai_ban_banner-container {
    --bai-slant: 70px;
    --bai-divider: 5px;
    width: 100%;
    max-width: 1200px;
    height: 400px;
    display: flex;
    gap: 15px;
    box-sizing: border-box;
    margin: 0 auto;
}

/* ========== Hero 主区域 ========== */
.bai_ban_hero-section {
    flex: 1;
    background-color: #126cb5;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    min-width: 0;
}

.bai_ban_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_ban_eyelet {
    position: absolute;
    width: 10px;
    height: 10px;
    border: 3px solid #ffffff;
    border-radius: 50%;
    background-color: #126cb5;
    box-shadow: inset 0 0 4px rgba(0,0,0,0.4), 0 0 2px rgba(0,0,0,0.2);
    z-index: 11;
}

.bai_ban_eyelet--tl {
    top: 15px;
    left: 15px;
}

.bai_ban_eyelet--br {
    bottom: 15px;
    left: calc(42% - 25px);
}

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

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

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

.bai_ban_btn {
    display: inline-block;
    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_ban_btn:hover {
    opacity: 0.85;
    text-decoration: none;
}

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

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

/* ========== 轮播区域 ========== */
.bai_ban_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_ban_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_ban_carousel-track {
    display: flex;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

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

/* ========== 侧边栏卡片 ========== */
.bai_ban_sidebar-section {
    width: 240px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    flex-shrink: 0;
}

.bai_ban_sidebar-card {
    flex: 1;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    text-decoration: none;
    transition: box-shadow 0.2s;
}

.bai_ban_sidebar-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.bai_ban_sidebar-card img {
    width: 100%;
    height: 100%;
    flex: 1;
    object-fit: cover;
    min-height: 0;
}

.bai_ban_sidebar-card-text {
    color: #ba2025;
    font-weight: bold;
    font-size: 13px;
    text-align: center;
    padding: 10px 5px;
    background: #ffffff;
    flex-shrink: 0;
}

/* ========== PC 端 ========== */
@media (min-width: 901px) {
    .bai_ban_banner-container {
        min-width: 0;
    }
}

/* ========== 平板端（≤ 900px） ========== */
@media (max-width: 900px) {
    .bai_ban_banner-container {
        flex-direction: column;
        height: auto !important;
    }
    .bai_ban_hero-section {
        min-height: 350px;
    }
    .bai_ban_sidebar-section {
        width: 100% !important;
        flex-direction: row;
        height: 180px;
    }
    .bai_ban_hero-content {
        width: 60% !important;
        padding: 30px 20px;
    }
    .bai_ban_carousel-wrapper {
        width: 50% !important;
    }
}

/* ========== 手机端（≤ 600px） ========== */
@media (max-width: 600px) {
    .bai_ban_hero-section {
        display: flex;
        flex-direction: column;
        min-height: auto;
    }
    .bai_ban_hero-content {
        width: 100% !important;
        height: auto;
        padding: 30px 20px;
    }
    .bai_ban_carousel-wrapper {
        position: relative;
        width: 100% !important;
        height: 250px;
        clip-path: none;
    }
    .bai_ban_carousel-inner {
        clip-path: none;
        border-top: var(--bai-divider) solid white;
    }
    .bai_ban_eyelet {
        display: none;
    }
    .bai_ban_hero-buttons {
        flex-direction: column;
        gap: 10px;
    }
    .bai_ban_btn {
        text-align: center;
    }
    .bai_ban_sidebar-section {
        height: 120px;
    }
    .bai_ban_sidebar-card-text {
        font-size: 11px;
        padding: 6px 4px;
    }
}
