﻿/* ===========================================================
   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: 400px;
    max-height: 400px;
    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. 图片层：始终铺满浏览器宽度（突破 wrapper，覆盖左侧导航让位区），高度 100% */
#jitheme_slider .jitheme_slider_wrapper_full {
    --ji-sbw: 92px;
    position: absolute;
    top: 0;
    left: calc(-1 * var(--ji-sbw, 92px));
    width: calc(100vw + var(--ji-sbw, 92px));
    height: 100%; /* 继承父容器高度 */
    overflow: hidden;
    border-radius: 0;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}
body.jitheme-cnav-row #jitheme_slider .jitheme_slider_wrapper_full {
    --ji-sbw: 160px;
}
/* 背景色层与图片层同步全宽 */
#jitheme_slider .jitheme_full_width_bg {
    left: calc(-1 * var(--ji-sbw, 92px));
    width: calc(100vw + var(--ji-sbw, 92px));
}
body.jitheme-cnav-row #jitheme_slider .jitheme_full_width_bg {
    --ji-sbw: 160px;
}
@media screen and (max-width: 768px) {
    #jitheme_slider .jitheme_slider_wrapper_full,
    #jitheme_slider .jitheme_full_width_bg {
        left: 0;
        width: 100%;
    }
}

#jitheme_slider .jitheme_slides {
    position: relative;
    height: 100%;
    width: 100%;
}

#jitheme_slider .jitheme_slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%; /* 填满父容器高度 */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

#jitheme_slider .jitheme_slide.active {
    opacity: 1;
    visibility: visible;
}

/* 图片：填满容器，保持比例裁剪 */
#jitheme_slider .jitheme_slide img {
    display: block;
    width: 100%;
    height: 100%; /* 填满父容器高度 */
    object-fit: cover; /* 覆盖模式，保持比例并裁剪 */
}

/* 4. 定宽内容层（叠加在图片之上） */
#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;
}

/* ===========================================================
   5. 文字内容层 — 淡入淡出切换
   =========================================================== */
#jitheme_slider .jitheme_slide_content_wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: calc(100% - 360px);
    height: 100%;
    pointer-events: none;
    overflow: visible;
}

#jitheme_slider .jitheme_slide_content {
    position: absolute;
    left: 0;
    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%);
}

/* 强制隐藏：设置了 hidden-content 类时完全不可见 */
#jitheme_slider .jitheme_slide_content.hidden-content,
#jitheme_slider .jitheme_slide_content.hidden-content.active {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !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: 4px;
    font-size: var(--fs-sm);
    letter-spacing: 1px;
    margin-bottom: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

#jitheme_slider .jitheme_slide_title {
    font-size: 38px;
    line-height: 1.2;
    margin-bottom: 14px;
    letter-spacing: 1px;
}

#jitheme_slider .jitheme_slide_desc {
    font-size: var(--fs-md);
    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: flex;
    padding: 5px 32px;
    border-radius: 4px;
    font-size: var(--fs-base);
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    pointer-events: auto;
    align-items: center;
}

/* 主按钮：浮于轮播图上，保持白色反白样式 */
#jitheme_slider .jitheme_slide_btn_primary {
    background: var(--bg-card);
    color: #222;
}

#jitheme_slider .jitheme_slide_btn_primary:hover {
    transform: translateY(-2px);
    box-shadow: none;
}

#jitheme_slider .jitheme_slide_btn_outline {
    background: transparent;
    color: #fff;
    border: 1px 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: 300px;
    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: linear-gradient(to right, rgba(51, 51, 51, 0.32), rgba(51, 51, 51, 0.3) calc(100% - 6px), rgba(51, 51, 51, 0.15));
    backdrop-filter: blur(8px);
    border-radius: var(--b2radius);
    padding: 16px 0 12px 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-right: none;
    width: 100%;
    flex-shrink: 0;
    max-width: 100%;
    position: relative;
    /* 遮掉右边缘深色伪影（backdrop-filter 边缘线），避免出现黑色竖杠 */
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 3px), rgba(0, 0, 0, 0.4) calc(100% - 2px), transparent calc(100% - 1px));
    mask-image: linear-gradient(to right, #000 calc(100% - 3px), rgba(0, 0, 0, 0.4) calc(100% - 2px), transparent calc(100% - 1px));
}

/* 菜单列表项 */
#jitheme_slider .jitheme_list_item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 18px;
    border-radius: var(--b2radius);
    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: var(--fs-md);
    color: #fff;
    flex-shrink: 0;
    transition: all 0.3s ease;
    background: var(--overlay);
}

#jitheme_slider .jitheme_list_item:hover .jitheme_list_icon {
    transform: scale(1.1);
}

#jitheme_slider .jitheme_list_text {
    font-size: var(--fs-base);
    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: 10px;
    /* 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 .jitheme_ico {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: var(--fs-lg);
    border: 1px solid;
    color: #fff;
    margin-bottom: 4px;
    transition: transform 0.3s ease;
}

#jitheme_slider .jitheme_bottom_icon_item h3 {
    font-size: var(--fs-xs);
    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: var(--bg-card);
    border-radius: var(--b2radius);
    padding: 16px 14px 12px 14px;
    box-shadow: none;
    color: var(--text-primary);
    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: var(--fs-base);
    margin-bottom: 10px;
    color: var(--text-primary);
    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: var(--bg-subtle);
    border-radius: var(--b2radius);
    padding: 10px 0;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
    cursor: pointer;
    width: 100%;
}

#jitheme_slider .jitheme_popup_item .jitheme_item_wrap:hover {
    color: var(--text-primary);
    background-color: var(--bg-subtle);
}

#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: var(--fs-md);
    color: #fff;
    margin-bottom: 4px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

#jitheme_slider .jitheme_popup_item .jitheme_item_wrap h3 {
    font-size: var(--fs-xs);
    margin: 0;
    text-align: center;
    line-height: 1.3;
    word-break: keep-all;
    color: var(--text-secondary);
    transition: color 0.2s;
}

#jitheme_slider .jitheme_popup_item .jitheme_item_wrap:hover h3 {
    color: var(--text-primary);
}

/* ===========================================================
   9. 胶囊导航样式
   =========================================================== */
#jitheme_slider .jitheme_nav_capsule {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 30px;
    background: var(--overlay);
    backdrop-filter: blur(4px);
    border-radius: 999px;
    transition: background 0.2s;
}

#jitheme_slider .jitheme_nav_capsule:hover {
    background: var(--overlay-deep);
}

#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: var(--fs-base);
    user-select: none;
}

#jitheme_slider .jitheme_dots_capsule {
    padding: 0 16px;
    gap: 10px;
    cursor: default;
}

#jitheme_slider .jitheme_dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    transform: scale(1);
}

#jitheme_slider .jitheme_dot.jitheme_dot_active {
    background: var(--bg-card);
    width: 16px;
    border-radius: 4px;
    transform: scale(1);
}

/* ===========================================================
   10. 响应式适配
   =========================================================== */
@media (max-width: 768px) {
    #jitheme_slider .jitheme_center_content {
        padding: 0 16px;
        box-sizing: border-box;
    }

    #jitheme_slider .jitheme_slide_content {
        left: 24px;
        max-width: 70%;
    }

    #jitheme_slider .jitheme_slide_title {
        font-size: var(--fs-lg);
    }

    #jitheme_slider .jitheme_slide_desc {
        font-size: var(--fs-base);
    }

    #jitheme_slider .jitheme_slide_btn {
        padding: 8px 20px;
        font-size: var(--fs-sm);
    }

    #jitheme_slider .jitheme_right_panel_wrapper {
        width: 300px;
    }

    #jitheme_slider .jitheme_right_panel {
        width: 300px;
    }

    #jitheme_slider .jitheme_menu_box {
        width: 300px;
    }

    #jitheme_slider .jitheme_popup_card {
        width: 240px;
        right: 100%;
    }

    #jitheme_slider .jitheme_bottom_nav_container {
        left: -8px;
        margin-bottom: 10px;
    }

    #jitheme_slider .jitheme_slide_content_wrapper {
        width: 100%;
    }
}

/* ========== 右侧信息面板（方案1 用户信息卡片 / 方案2 登录未登录切换） ========== */
.jitheme_user_panel {
    /* background: rgba(30, 30, 30, 0.65); */
    /* backdrop-filter: blur(12px); */
    -webkit-backdrop-filter: blur(12px);
    /* border-radius: var(--b2radius, 16px); */
    /* border: 1px solid rgba(255, 255, 255, 0.1); */
    /* box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37); */
    padding: 10px 20px;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    gap: 10px;
    /* margin-bottom: 12px; */
    transition: transform 0.3s ease;
}
.jitheme_panel_header { display: flex; align-items: center; gap: 14px; }
.jitheme_panel_avatar { position: relative; flex-shrink: 0; }
.jitheme_panel_avatar img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    /* border: 2px solid rgba(255, 255, 255, 0.2); */
    object-fit: cover;
    display: block;
}
.jitheme_panel_avatar svg { color: rgba(255, 255, 255, 0.5); display: block; }
.jitheme_panel_info {flex: 1;min-width: 0;display: flex;height: 45px;flex-direction: column;justify-content: space-around;}
.jitheme_panel_name {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    line-height: 1.5;
}
.jitheme_panel_name_text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jitheme_panel_desc { font-size: 11px; color: rgba(255, 255, 255, 0.6); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.jitheme_panel_stats { display: flex; background: rgba(255, 255, 255, 0.05); border-radius: 10px; padding: 10px 0; }
.jitheme_panel_stat { flex: 1; text-align: center; cursor: pointer; }
.jitheme_panel_stat:not(:last-child) { border-right: 1px solid rgba(255, 255, 255, 0.1); }
.jitheme_panel_stat span { display: block; font-size: 15px; font-weight: 700; color: #fff; }
.jitheme_panel_stat i { font-style: normal; font-size: 10px; color: rgba(255, 255, 255, 0.5); }
.jitheme_panel_assets { display: flex; gap: 10px; }
.jitheme_panel_asset { flex: 1; background: rgba(255, 255, 255, 0.08); border-radius: 8px; padding: 8px 10px; }
.jitheme_panel_asset span { display: block; font-size: 13px; font-weight: 600; color: #FFD700; }
.jitheme_panel_asset:last-child span { color: #10b981; }
.jitheme_panel_asset i { font-style: normal; font-size: 10px; color: rgba(255, 255, 255, 0.5); }
.jitheme_panel_actions { display: flex; gap: 10px; }
.jitheme_panel_btn { flex: 1; display: block; text-align: center; padding: 8px 0; border-radius: 8px; font-size: 13px; font-weight: 500; text-decoration: none; transition: all 0.2s; }
.jitheme_panel_btn_primary { background: linear-gradient(90deg, #2f6bff, #8b5cf6); color: #fff; }
.jitheme_panel_btn_primary:hover { opacity: 0.9; }
.jitheme_panel_btn_ghost { background: rgba(255, 255, 255, 0.1); color: #fff; border: 1px solid rgba(255, 255, 255, 0.2); }
.jitheme_panel_btn_ghost:hover { background: rgba(255, 255, 255, 0.2); }
/* 未登录引导面板 */
.jitheme_panel_benefits { display: flex; flex-direction: column; gap: 10px; background: rgba(255, 255, 255, 0.03); border-radius: 10px; padding: 14px; border: 1px solid rgba(255, 255, 255, 0.05); }
.jitheme_panel_benefit { display: flex; align-items: center; gap: 10px; font-size: 12px; color: rgba(255, 255, 255, 0.8); }
.jitheme_panel_benefit_ico { width: 22px; height: 22px; border-radius: 6px; background: rgba(47, 107, 255, 0.15); color: #2f6bff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 11px; }
.jitheme_panel_benefit i { font-style: normal; }
.jitheme_panel_benefit .jitheme_panel_ann_item { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
