/* =========================================================== */
/* ★ 1. 外层容器 ★ */
/* =========================================================== */
#jitheme_slider { 
    position: relative; 
    width: 100%; 
    max-width: 100vw; 
    margin: 0 auto; 
    overflow: visible;
}

/* 2. 内部包裹层 */
#jitheme_slider .jitheme_banner_wrapper { 
    position: relative; 
    width: 100%; 
    height: 620px; 
    max-height: 620px; 
    overflow: visible;
}

/* ★ 背景层 ★ */
#jitheme_slider .jitheme_full_width_bg { 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    transition: background-color 0.8s ease; 
}

/* 3. 定宽内容层 */
#jitheme_slider .jitheme_center_content { 
    position: relative; 
    height: 100%; 
    margin: 0 auto; 
    overflow: visible; 
    pointer-events: none;
}
#jitheme_slider .jitheme_center_content > * {
    pointer-events: auto;
}

/* =========================================================== */
/* ★ 4. 幻灯片图片 — 宽度为 wrapper 减去菜单宽度 ★ */
/* =========================================================== */
#jitheme_slider .jitheme_slider_wrapper { 
    position: absolute; 
    top: 0; 
    left: 0;
    width: calc(100% - 320px);
    height: 100%; 
    overflow: hidden;
    border-radius: 0;
    pointer-events: none;
}
#jitheme_slider .jitheme_slides { 
    position: relative;
    height: 100%; 
    width: 100%;
}
#jitheme_slider .jitheme_slide { 
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%; 
    background-position: center center; 
    background-size: cover;
    background-repeat: no-repeat; 
    background-color: transparent;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

#jitheme_slider .jitheme_slide.active {
    opacity: 1;
    visibility: visible;
}

/* =========================================================== */
/* ★ 5. 文字内容层 — 淡入淡出切换 ★ */
/* =========================================================== */
#jitheme_slider .jitheme_slide_content_wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: calc(100% - 320px);
    height: 100%;
    pointer-events: none;
    overflow: visible;
}

#jitheme_slider .jitheme_slide_content {
    position: absolute;
    left: 60px;
    top: 50%;
    transform: translateY(-50%);
    max-width: 480px;
    color: #fff;
    text-shadow: 0 2px 12px rgba(0,0,0,0.3);
    pointer-events: auto;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease, transform 0.8s ease;
    transform: translateY(-20px);
}

#jitheme_slider .jitheme_slide_content.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%);
}

/* ★ 隐藏文字内容 ★ */
#jitheme_slider .jitheme_slide_content.hidden-content {
    display: none !important;
}

#jitheme_slider .jitheme_slide_content * {
    pointer-events: auto;
}

#jitheme_slider .jitheme_slide_badge {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(4px);
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 13px;
    letter-spacing: 1px;
    margin-bottom: 12px;
    border: 1px solid rgba(255,255,255,0.15);
}

#jitheme_slider .jitheme_slide_title {
    font-size: 38px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 14px;
    letter-spacing: 1px;
}

#jitheme_slider .jitheme_slide_desc {
    font-size: 16px;
    opacity: 0.9;
    line-height: 1.6;
    margin-bottom: 24px;
    max-width: 420px;
}

#jitheme_slider .jitheme_slide_btn_group {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

#jitheme_slider .jitheme_slide_btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    pointer-events: auto;
}

#jitheme_slider .jitheme_slide_btn_primary {
    background: #ffffff;
    color: #222;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}
#jitheme_slider .jitheme_slide_btn_primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}

#jitheme_slider .jitheme_slide_btn_outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.6);
    backdrop-filter: blur(4px);
}
#jitheme_slider .jitheme_slide_btn_outline:hover {
    background: rgba(255,255,255,0.15);
    border-color: #fff;
}

/* =========================================================== */
/* ★ 6. 右侧面板 ★ */
/* =========================================================== */
#jitheme_slider .jitheme_right_panel_wrapper { 
    position: absolute; 
    top: 0; 
    right: 0; 
    width: 320px;
    height: 100%; 
    pointer-events: none; 
    overflow: visible;
}
#jitheme_slider .jitheme_right_panel { 
    position: absolute; 
    right: 0; 
    top: 50%; 
    transform: translateY(-50%); 
    width: 100%;
    pointer-events: auto; 
    display: flex; 
    flex-direction: row; 
    align-items: flex-end;
    gap: 0; 
    justify-content: flex-end; 
}

/* ★ 胶囊导航容器 — 底部对齐，不拉伸 ★ */
#jitheme_slider .jitheme_bottom_nav_container { 
    flex-shrink: 0; 
    position: relative; 
    left: -15px; 
    display: flex; 
    align-items: center; 
    gap: 15px; 
    align-self: flex-end;
    margin-bottom: 0px;
}

/* ★ 菜单+弹出卡的父容器 ★ */
#jitheme_slider .jitheme_menu_group {
    position: relative;
    flex-shrink: 0;
    display: flex;
    align-items: stretch;
    width: 100%;
}

/* ★★★ 7. 菜单主体 — 使用指定颜色 ★★★ */
#jitheme_slider .jitheme_menu_box { 
    background: rgba(51, 51, 51, 0.3);
    backdrop-filter: blur(8px);
    border-radius: var(--b2radius); 
    padding: 16px 0 12px 0; 
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    flex-shrink: 0; 
    max-width: 100%;
    position: relative;
}

/* ★★★ 菜单列表项 — 使用指定文字颜色 ★★★ */
#jitheme_slider .jitheme_list_item { 
    display: flex; 
    align-items: center; 
    gap: 12px; 
    padding: 10px 18px; 
    border-radius: 6px; 
    text-decoration: none; 
    color: rgba(255, 255, 255, 0.95);
    margin: 2px 10px; 
    cursor: pointer; 
    transition: all 0.2s ease; 
}
#jitheme_slider .jitheme_list_item:hover { 
    background: rgba(255, 255, 255, 0.08);
}
#jitheme_slider .jitheme_list_icon { 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    width: 30px; 
    height: 30px; 
    border-radius: 50%; 
    font-size: 13px; 
    font-weight: bold; 
    color: #fff; 
    flex-shrink: 0; 
    transition: all 0.3s ease;
    background: rgba(0, 0, 0, 0.4);
}
#jitheme_slider .jitheme_list_item:hover .jitheme_list_icon {
    transform: scale(1.1);
}
#jitheme_slider .jitheme_list_text { 
    font-size: 15px; 
    font-weight: normal; 
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.95);
}

/* ★★★ 底部图标按钮 — 文字颜色使用指定颜色 ★★★ */
#jitheme_slider .jitheme_bottom_icons { 
    display: flex; 
    justify-content: space-around; 
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 14px; 
    margin-top: 6px;
}
#jitheme_slider .jitheme_bottom_icon_item { 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    text-decoration: none; 
    color: rgba(255, 255, 255, 0.95);
    cursor: pointer; 
    transition: transform 0.3s ease;
}
#jitheme_slider .jitheme_bottom_icon_item:hover {
    transform: translateY(-2px);
}
#jitheme_slider .jitheme_bottom_icon_item .jitheme_ico { 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    width: 44px; 
    height: 44px; 
    border-radius: 50%; 
    font-size: 18px; 
    font-weight: bold; 
    color: #fff; 
    margin-bottom: 4px; 
    transition: transform 0.3s ease;
}
#jitheme_slider .jitheme_bottom_icon_item:hover .jitheme_ico {
    transform: scale(1.1);
}
#jitheme_slider .jitheme_bottom_icon_item h3 { 
    font-size: 12px; 
    font-weight: normal; 
    color: rgba(255, 255, 255, 0.95);
    margin: 0;
    transition: color 0.3s ease;
}
#jitheme_slider .jitheme_bottom_icon_item:hover h3 { 
    color: #fff;
}

/* =========================================================== */
/* ★ 8. 弹出卡片 — 保持白色背景（不改） ★ */
/* =========================================================== */
#jitheme_slider .jitheme_popup_card { 
    position: absolute; 
    top: 0;
    right: 100%;
    height: 100%;
    width: 280px; 
    background: #ffffff;
    border-radius: var(--b2radius); 
    padding: 16px 14px 12px 14px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15); 
    color: #333; 
    opacity: 0; 
    visibility: hidden; 
    transform: translateX(20px); 
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); 
    box-sizing: border-box; 
    display: flex;
    flex-direction: column;
}
#jitheme_slider .jitheme_popup_card.jitheme_popup_active { 
    opacity: 1; 
    visibility: visible; 
    transform: translateX(0); 
}

#jitheme_slider .jitheme_popup_title { 
    font-size: 15px; 
    font-weight: 600; 
    margin-bottom: 10px; 
    color: #222; 
    padding-left: 2px;
    flex-shrink: 0;
}

#jitheme_slider .jitheme_popup_grid { 
    display: flex;
    flex-wrap: wrap;
    flex: 1 1 auto;
    margin: 0 -4px;
    justify-content: space-between;
    align-content: space-around;
    flex-direction: row;
    gap: 4px 0;
    padding: 2px 0;
}

#jitheme_slider .jitheme_popup_item { 
    width: 33.3333%; 
    padding: 0 4px; 
    box-sizing: border-box; 
    display: flex;
    justify-content: center;
    margin-bottom: 0;
}

#jitheme_slider .jitheme_popup_item .jitheme_item_wrap { 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    background-color: #f5f8fa;
    border-radius: var(--b2radius); 
    padding: 10px 0;
    text-decoration: none; 
    color: #444; 
    transition: all 0.3s ease; 
    cursor: pointer; 
    width: 100%; 
}
#jitheme_slider .jitheme_popup_item .jitheme_item_wrap:hover { 
    transform: scale(1.05); 
    color: #333; 
    background-color: #eef2f5;
}
#jitheme_slider .jitheme_popup_item .jitheme_item_wrap .jitheme_popup_ico { 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    width: 38px;
    height: 38px;
    border-radius: 50%; 
    font-size: 16px; 
    font-weight: bold; 
    color: #fff; 
    margin-bottom: 4px; 
    flex-shrink: 0;
    transition: transform 0.3s ease;
}
#jitheme_slider .jitheme_popup_item .jitheme_item_wrap:hover .jitheme_popup_ico {
    transform: scale(1.1);
}
#jitheme_slider .jitheme_popup_item .jitheme_item_wrap h3 { 
    font-size: 11px; 
    font-weight: normal; 
    margin: 0; 
    text-align: center;
    line-height: 1.3;
    word-break: keep-all;
    color: #555;
    transition: color 0.2s;
}
#jitheme_slider .jitheme_popup_item .jitheme_item_wrap:hover h3 {
    color: #222;
}

/* =========================================================== */
/* ★ 胶囊导航样式 ★ */
/* =========================================================== */
#jitheme_slider .jitheme_nav_capsule { 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    height: 30px; 
    background: rgba(0, 0, 0, 0.35); 
    backdrop-filter: blur(4px); 
    border-radius: 999px; 
    transition: background 0.2s; 
}
#jitheme_slider .jitheme_nav_capsule:hover { 
    background: rgba(0, 0, 0, 0.55); 
}
#jitheme_slider .jitheme_nav_arrow_capsule { 
    padding: 0 6px; 
    gap: 2px; 
    cursor: pointer; 
}
#jitheme_slider .jitheme_nav_arrow_btn { 
    width: 22px; 
    height: 22px; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    border-radius: 50%; 
    color: #fff; 
    font-size: 14px; 
    font-weight: 300; 
    user-select: none; 
}
#jitheme_slider .jitheme_dots_capsule { 
    padding: 0 16px; 
    gap: 10px; 
    cursor: default; 
}
#jitheme_slider .jitheme_dot { 
    width: 6px; 
    height: 6px; 
    background: rgba(255, 255, 255, 0.4); 
    border-radius: 50%; 
    cursor: pointer; 
    transition: all 0.3s ease; 
    transform: scale(1); 
}
#jitheme_slider .jitheme_dot.jitheme_dot_active { 
    background: #ffffff; 
    width: 16px; 
    border-radius: 4px; 
    transform: scale(1); 
}

/* =========================================================== */
/* ★ wrapper 类 ★ */
/* =========================================================== */
.wrapper {
    width: 1400px; 
    max-width: 100%;
    margin: 0 auto;
    position: relative;
    height: 100%;
}

/* =========================================================== */
/* ★ 响应式适配 ★ */
/* =========================================================== */
@media (max-width: 768px) {
    #jitheme_slider .jitheme_slide_content {
        left: 24px;
        max-width: 70%;
    }
    #jitheme_slider .jitheme_slide_title {
        font-size: 24px;
    }
    #jitheme_slider .jitheme_slide_desc {
        font-size: 14px;
    }
    #jitheme_slider .jitheme_slide_btn {
        padding: 8px 20px;
        font-size: 13px;
    }
    #jitheme_slider .jitheme_right_panel {
        width: 280px;
    }
    #jitheme_slider .jitheme_menu_box {
        width: 280px;
    }
    #jitheme_slider .jitheme_popup_card {
        width: 240px;
        right: 100%;
    }
    #jitheme_slider .jitheme_bottom_nav_container {
        left: -8px;
        margin-bottom: 10px;
    }
    
    /* 移动端调整 */
    #jitheme_slider .jitheme_slider_wrapper {
        width: 100%;
    }
    #jitheme_slider .jitheme_slide_content_wrapper {
        width: 100%;
    }
    #jitheme_slider .jitheme_right_panel_wrapper {
        width: 280px;
    }
}