﻿/* 基础布局（局部样式，放在部分页引用） */
.lottery-root {
    font-family: "Segoe UI", Roboto, "Helvetica Neue", "Microsoft Yahei", Arial;
    color: #fff;
    background:var(--btn_bg_s);
}

.lottery-header {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    height: 10%;
    gap: 10px;
}
    .lottery-header .left {
        width: 100%;
        background: #00000026;
        text-align: center;
    }

    .lottery-header .right {
        width: 100%;
        display: flex;
        justify-content: flex-end;
        align-items: center;
        gap:4px;
    }

    .lottery-header .diamond-count, .lottery-header .common-item-count, .lottery-header .adv-item-count {
        background: rgb(0 0 0 / 20%);
        padding: 6px 10px;
        border-radius: 6px;
        font-size: 14px;
    }
.lottery-body{
    height:80%;
}
.lottery-tabs {
    display: flex;
    gap: 8px;
    padding: 10px;
    height: 10%;
    background: #00000026;
    align-items: center;
}

    .lottery-tabs .tab-common, .lottery-tabs .tab-adv {
        padding: 4px;
        cursor: pointer;
        border-radius: 6px;
        background: var(--btn_bg_s);
        color: var(--btn_color_q);
        border: 1px solid var(--btn_border_s);
        width: 100px;
        height: 35px;
        font-size: 16px;
        font-weight: 700;
        text-align: center;
    }

    .lottery-tabs .active {
        background: var(--btn_bg_q);
        color: var(--btn_color_s);
        border: 1px solid var(--btn_border_q);
    }

.lottery-wish-panel {
    padding: 2px;
    background: #0b0b0b36;
    border-radius: 8px;
    margin: 8px 12px;
}
    .lottery-wish-panel .title {
        background-image: url('/Resource/Image/Test1/lottery_wish_title_bg.png');
        background-size: cover;
        padding: 4px;
        color: var(--btn_color_q);
        font-weight: 700;
    }
.lottery-common{
    height:100%;
    text-align:center;
}
.lottery-wish-notice {
    padding: 12px;
    color: #ffd;
    margin: 8px 12px;
}

.lottery-wish-list {
    display: flex;
    gap: 8px;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 6px;
}

    .lottery-wish-list .wish-hero {
        border-radius: 6px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        position: relative;
        cursor: pointer;
    }

        .lottery-wish-list .wish-hero img {
            object-fit: cover;
            border-radius: 4px;
            border: 1px solid var(--btn_border_q);
        }

        .lottery-wish-list .wish-hero .del {
            position: absolute;
            top: 4px;
            right: 6px;
            background: rgba(255,0,0,0.8);
            border-radius: 50%;
            width: 20px;
            height: 20px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
        }

    .lottery-wish-list .wish-add {
        width: 72px;
        height: 96px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

.wish-add-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    color: #fff;
    border: none;
    font-size: 22px;
}

.lottery-actions {
    display: flex;
    gap: 12px;
    padding: 12px;
    justify-content: center;
    align-items: center;
}

    .lottery-actions .btn {
        padding: 6px 0px;
        border-radius: 8px;
        cursor: pointer;
        background: var(--btn_bg_q);
        color: var(--btn_color_s);
        border:2px solid var(--btn_border_q);
        width:130px;
        display: flex;
        gap: 2px;
        align-items: center;
        justify-content:center;
    }

.lottery-ten-checkbox {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    margin-left: 12px;
    color: #fffd98;
    justify-content: center;
}
.lottery-adv{
    padding:0px;
    height:100%;
    text-align:center;
}
.lottery-common-up {
    height: 50%;
    padding: 8px;
    border-radius: 8px;
    background: var(--bg_bg_q);
}
.lottery-common-down {
    height: 49%;
    margin-top: 1%;
    background-image: url('/Resource/Image/Test1/lottery_bottom.png');
    background-repeat: no-repeat; /* 不平铺 */
    background-position: center bottom; /* 背景贴底 */
    background-size: cover; /* 需要完整显示可改 contain */

    display: flex; /* 内容靠底部 */
    flex-direction: column;
    justify-content: flex-end;
}
.lottery-common-btn {
    background: var(--btn_bg_q);
    color: var(--btn_color_s);
    border: 2px solid var(--btn_border_q);
    border-radius: 6px;
    font-weight: 700;
    padding: 4px 16px;
}
    .lottery-common-btn,
    .lottery-common-btn:active,
    .lottery-common-btn:focus {
        transform: none !important;
        transition: none !important;
        animation: none !important;
    }

.lottery-adv-selected {
    width: 72px;
    height: 72px;
    display: inline-block;
    cursor: pointer;
    padding: 4px;
    background: #ffffff17;
    border-radius: 8px;
}

    .lottery-adv-selected img {
        display: block;
        border-radius:6px;
        border:2px solid var(--btn_border_q);
    }

.lottery-hero-picker, .lottery-result-modal {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.8);
    z-index: 120;
}

    .lottery-hero-picker .panel, .lottery-result-modal .panel {
        width: 100%;
        height: 100%;
        background: var(--btn_bg_s);
        border-radius: 8px;
        overflow: auto;
        color: #fff;
        height: 70%;
    }

.lottery-hero-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px;
    height:92%;
}

.hero-pick-item {
    width: 100px;
    text-align: center;
    cursor: pointer;
    padding: 4px 0px;
    background: var(--bg_bg_q);
    border-radius: 6px;
}

    .hero-pick-item img {
        width: 72px;
        height: 72px;
        border-radius: 6px;
    }

.lottery-result-panels {
    height:90%;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    padding: 12px;
}

.draw-panel {
    width: 120px;
    height: 160px;
    background: #0f0f0f;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

    .draw-panel .panel-cover {
        position: absolute;
        inset: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        background: linear-gradient(180deg,#222,#111);
        color: #fff;
        font-weight: bold;
    }

    .draw-panel .panel-content {
        padding: 8px;
        text-align: center;
    }

    .draw-panel.closed .panel-content {
        display: none;
    }

.hidden {
    display: none !important;
}
/* 放到现有 .lottery-root 或末尾，确保容器为定位上下文 */
.lottery-root {
    position: relative;
}

/* 右下角关闭按钮样式 */
.lottery-close-btn {
    position: absolute;
    right: 4px;
    bottom: 4px;
    width: 40px;
    height: 40px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    z-index: 100;
}

    .lottery-close-btn img {
        width: 100%;
        height: 100%;
        display: block;
        object-fit: contain;
    }

/* 使 result panel 成为定位上下文，并添加右下角关闭按钮样式 */
.lottery-result-modal .panel {
    position: relative;
}

.lottery-result-close-btn {
    position: absolute;
    right: 4px;
    bottom: 4px;
    width: 36px;
    height: 36px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    z-index: 110;
}

    .lottery-result-close-btn img {
        width: 100%;
        height: 100%;
        display: block;
        object-fit: contain;
    }

/* 顶部右侧资源显示：图标 + 数值 */
.lottery-header .right > div {
    display: flex;
    align-items: center;
    gap: 6px;
}

.lottery-header .right img.icon {
    width: 18px;
    height: 18px;
    display: block;
    object-fit: contain;
}

/* 许愿池面板：铺满父容器 */
.lottery-wish-panel {
    width: 100%;
    height: 100%;
    margin: 0;
    box-sizing: border-box;
}

/* 许愿池列表：5列 * 2行（共10格） */
.lottery-wish-list {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(2, 70px);
    gap: 8px;
    padding: 6px;
    overflow: hidden;
}

    /* 统一每个格子尺寸 */
    .lottery-wish-list .wish-hero,
    .lottery-wish-list .wish-add {
        width: 100%;
        height: 96px;
    }

/* ===== 高级抽：相对定位布局（顶部选择、中部视频、底部按钮） ===== */
.lottery-adv {
    position: relative;
    height: 100%;
    padding: 12px;
    text-align: center;
    overflow: hidden; /* 防止内部滚动露黑边 */
}

.lottery-adv-top {
    border-radius: 10px;
    padding: 0px;
    box-sizing: border-box;
    z-index:110;
}

.lottery-adv-title {
    color: #ffbd48;
    font-weight: 700;
    margin-bottom: 8px;
}

.lottery-adv-selected {
    width: 72px;
    height: 72px;
    display: inline-block;
    cursor: pointer;
    padding: 4px;
    background: #ffffff17;
    border-radius: 8px;
}

    .lottery-adv-selected img {
        width: 72px;
        height: 72px;
        display: block;
        border-radius: 6px;
    }

/* 中部视频区域 */
.lottery-adv-video-wrap {
    position: absolute;
    left: 0px;
    right: 0px;
    top: 0px;
    bottom:0px;
    background: #00000026;
    border-radius: 10px;
    overflow: hidden;
    z-index: 100;
}

.lottery-adv-video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

/* 底部按钮区域 */
.lottery-adv-bottom {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 12px;
    height: 220px;
    background-image: url('/Resource/Image/Test1/lottery_avg_bg.png');
    background-repeat: no-repeat;
    background-position: center bottom;
    background-size: cover;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-bottom: 6px;
    box-sizing: border-box;
    z-index: 110;
}

    /* 复用你现有的按钮排版 */
    .lottery-adv-bottom .lottery-actions {
        padding: 6px 12px;
    }

    .lottery-adv-bottom .lottery-ten-checkbox {
        margin: 0 0 8px 0;
    }

/* hidden 保持你现有逻辑 */
.hidden {
    display: none !important;
}