.raffle-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    padding: 108px 0 68px 0;
    background: url("../../images/activity-raffle/bg.png") no-repeat;
    background-size: contain;
    background-color: #F42522;
    z-index: 1; /*解决遮住菜单问题*/
}
.raffle-nav {
    width: 860px;
    height: 200px;
    background: url("../../images/activity-raffle/nav.png") no-repeat center;
    background-size: 100% 100%;
}
.raffle-nav-en {
    width: 860px;
    height: 200px;
    background: url("../../images/activity-raffle/nav-en.png") no-repeat center;
    background-size: 100% 100%;
}
.rule-container, .raffle-container {
    width: 860px;
    max-width: 100%;
    margin-top: 40px;
    background-color: #FFE1BD;
    border-radius: 12px;
    position: relative;
    padding: 4px;
    box-sizing: border-box;
}
.raffle-container {
    margin-top: 0;
}
.raffle-container-inner {
    background: linear-gradient( 180deg, #FFA251 0%, #FFC62A 100%);
    border-radius: 12px;
    padding: 32px;
}
.rule-container-inner {
    background: linear-gradient(180deg, #FFA251 0%, #FFC62A 100%);
    border-radius: 12px;
    padding: 32px;
}
.rule-content, .raffle-content {
    padding: 42px 80px;
    border-radius: 12px;
    min-height: 400px;
    background: linear-gradient( 180deg, #FFFFFF 0%, #FFEAB3 100%);
    box-shadow: 0px 4px 18px 0px rgba(114, 61, 3, 0.35);
    box-sizing: border-box;
}
.raffle-content {
    padding: 16px;
}
.top-notice-container {
    display: flex;
    justify-content: space-between;
}
.raffle-container .top-notice {
    display: flex;
    align-items: flex-start;
    color: #3D3D3D;
    width: 429px;
    font-size: 14px;
    padding: 0px 10px;
    text-align: center;
    background: linear-gradient(270deg, rgba(243, 44, 29, 0.05) 0%, rgba(243, 45, 32, 0.2) 100%);
    border-radius: 275px;
    overflow: hidden;
    height: 32px;
    line-height: 32px;
}
.raffle-container .top-notice-icon {
    display: inline-block;
    width: 32px;
    height: 32px;
    background: url("../../images/activity-raffle/info.png") no-repeat center;
    background-size: 100% 100%;
    margin-right: 6px;
}
.notice-scroll-content {
    display: flex;
    flex-direction: column;
    transition: transform 0.5s ease;
}
.notice-item {
    display: flex;
    align-items: center;
    height: 32px;
}
.raffle-container .top-notice .top-notice-prize {
    margin-left: 6px;
    color: #F32720;
}
.top-notice-button {
    display: flex;
    gap: 16px;
}
.share-btn, .my-prize-btn {
    display: flex;
    align-items: center;
    border: none;
    cursor: pointer;
    font-size: 14px;
    padding: 0 16px 0 8px;
    color: #FF5500;
    background: rgba(255, 163, 80, 0.2);
    border-radius: 150px 150px 150px 150px;
}
.share-btn i {
    display: inline-block;
    width: 28px;
    height: 28px;
    background: url("../../images/activity-raffle/enjoy.png") no-repeat center;
    background-size: 100% 100%;
}
.my-prize-btn i {
    display: inline-block;
    width: 28px;
    height: 28px;
    background: url("../../images/activity-raffle/gift.png") no-repeat center;
    background-size: 100% 100%;
}

/* 转盘区域 */
.wheel-area {
    position: relative;
    padding: 32px;
}
.wheel-bg {
    position: absolute;
    width: 760px;
    height: 760px;
    top: -8px;
    left: 0;
    background: url(../../images/activity-raffle/wheel-bg.png) no-repeat center;
    background-size: contain;
    z-index: 9;
}
.wheel-bg-en {
    position: absolute;
    width: 760px;
    height: 760px;
    top: -8px;
    left: 0;
    background: url(../../images/activity-raffle/wheel-bg-en.png) no-repeat center;
    background-size: contain;
    z-index: 9;
}
.wheel {
    position: relative;
    width: 700px;
    height: 700px;
    background: url("../../images/activity-raffle/turntable1.png") no-repeat center;
    background-size: cover;
    z-index: 2;
}
.wheel-en {
    position: relative;
    width: 700px;
    height: 700px;
    background: url("../../images/activity-raffle/turntable2.png") no-repeat center;
    background-size: cover;
    z-index: 2;
}
.wheel-bottom {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 592px;
    height: 206px;
    background: url("../../images/activity-raffle/wheel-bottom.png") no-repeat center;
    background-size: 100% 100%;
    z-index: 1;
}
.sector {
    position: absolute;
    top: 0;
    left: 50%;
    width: 50%;
    height: 100%;
    transform-origin: left center;
    overflow: hidden;
}
.prize {
    position: absolute;
    top: calc(50% - 60px);
    left: calc(50% - 60px);
    width: 120px;
    height: 120px;
    transform: translateY(-120%) rotate(60deg);
    transform-origin: left center;
    display: flex;
    align-items: center;
    justify-content: center;
}
.prize img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.wheel-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 178px;
    height: 178px;
    background: url("../../images/activity-raffle/wheel-btn.png") no-repeat center;
    background-size: 100% 100%;
    cursor: pointer;
    border: 0;
    z-index: 9;
}
.wheel-btn-en {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 178px;
    height: 178px;
    background: url("../../images/activity-raffle/wheel-btn-en.png") no-repeat center;
    background-size: 100% 100%;
    cursor: pointer;
    border: 0;
    z-index: 9;
}
.wheel-pointer {
    position: absolute;
    top: calc(50% - 7px); /* 确保指针在中心位置 */
    left: calc(50% + 4px);
    transform: translate(-50%, -50%) rotate(0deg); /* 初始居中，旋转基于自身中心 */
    width: 668px;
    height: 668px;
    background: url("../../images/activity-raffle/wheel-pointer.png") no-repeat center;
    background-size: 100% 100%;
    transition: transform 5s cubic-bezier(0.2, 0.8, 0.2, 1);
    transform-origin: center; /* 明确旋转原点为自身中心 */
    z-index: 3;
}
.prize-pool-container {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    z-index: 10;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
}
.prize-pool-title-container {
    width: 482px;
    height: 146px;
    background: url("../../images/activity-raffle/pool.png") no-repeat center;
    background-size: 100% 100%;
}
.remain-times {
    text-align: center;
    margin-top: 16px;
    font-weight: 400;
    font-size: 16px;
    color: #F00300;
}
.prize-pool-title {
    text-align: center;
    margin-top: 52px;
    font-weight: 600;
    font-size: 24px;
    color: #FFFFFF;
}
.prize-pool {
    width: 592px;
    padding: 20px 56px;
    background: #FCFCED;
    border-radius: 0px 0px 0px 0px;
    box-sizing: border-box;
    margin: 20px auto 0 auto;
}
.prize-pool table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    margin-top: 10px;
}
.prize-pool table th, .prize-pool table td {
    padding: 8px 0;
    text-align: left;
    font-weight: 400;
    font-size: 14px;
    color: #747474;
}
.prize-pool table th {
    font-weight: 600;
    font-size: 14px;
    color: #141414;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}
.text-right, .prize-pool table tr td:last-child {
    text-align: right !important;
}
@keyframes rotate {
    0% {
        transform: translate(-50%, -50%) rotate(0deg); /* 初始：居中 + 0旋转 */
    }
    100% {
        transform: translate(-50%, -50%) rotate(var(--rotate-deg)); /* 旋转 + 保持居中 */
    }
}

/*活动规则*/
.rule-title {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    width: 398px;
    height: 64px;
    line-height: 60px;
    text-align: center;
    font-size: 24px;
    font-weight: 600;
    color: #fff;
    background: url("../../images/activity-raffle/rule.png") no-repeat center;
    background-size: 100% 100%;
}
.rule-content .rule-content-title {
    font-weight: 600;
    font-size: 14px;
    color: #141414;
    margin: 20px 0 10px;
}
.rule-content p, .rule-content ol li {
    font-size: 14px;
    color: #747474;
    line-height: 22px;
    margin-bottom: 4px;
}

/* ———— 弹窗基础样式 ———— */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(2px);
    transition: opacity 0.3s ease;
}
.popup-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 480px;
    max-width: 90vw;
    background: #fff;
    border-radius: 8px;
    padding: 48px;
    box-sizing: border-box;
    box-shadow: 0px 8px 32px 0px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, opacity 0.3s ease;
    z-index: 999;
}
.popup-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 20px;
    height: 20px;
    background: url(../../images/activity-raffle/close.png) no-repeat center;
    background-size: 100% 100%;
    cursor: pointer;
    transition: transform 0.2s ease;
}
.popup-title {
    font-weight: 600;
    font-size: 16px;
    color: #141414;
    text-align: center;
    margin-bottom: 12px;
}

/* ———— 中奖弹窗专属样式 ———— */
.prize-popup .gift-icon {
    text-align: center;
}
.prize-popup .gift-icon img {
    width: 180px;
    height: 108px;
    object-fit: contain;
    animation: bounce 1s ease infinite alternate; /* 轻微弹跳动画，增强喜庆感 */
}
.prize-popup .popup-desc {
    font-weight: 400;
    font-size: 14px;
    color: #747474;
    text-align: center;
    margin-bottom: 20px;
    font-family: PingFang SC, PingFang SC;
}
.prize-popup .popup-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
}
.prize-popup .popup-buttons button {
    padding: 8px 30px;
    font-weight: 400;
    font-size: 14px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.prize-popup .continue-btn {
    color: #FF5500;
    background: #FFFFFF;
    border: 1px solid rgba(0, 0, 0, 0.12);
}
.prize-popup .continue-btn:hover {
    transform: translateY(-2px);
}
.prize-popup .use-btn {
    color: #FFFFFF;
    background-color: #FF5500;
    border: 1px solid #FF5500;
}
.prize-popup .use-btn:hover {
    background-color: #FF5500;
    transform: translateY(-2px);
}
.prize-popup .use-btn:active,
.prize-popup .continue-btn:active {
    transform: translateY(0);
}

/* ———— 我的奖品弹窗专属样式 ———— */
.my-prizes-popup .popup-content {
    width: 90vw;
    max-width: 600px;
    padding: 20px;
    box-shadow: 0px 8px 32px 0px rgba(0, 0, 0, 0.15);
}
.prizes-list {
    margin: 20px 0;
    max-height: 400px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #EEEEEE transparent;
}
.prizes-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}
.prizes-table th,
.prizes-table td {
    padding: 12px 8px;
    border-bottom: 1px solid #eee;
    font-weight: 400;
    font-size: 14px;
    color: #747474;
}
.prizes-table th {
    font-weight: 600;
    font-size: 14px;
    color: #141414;
}
.no-prizes {
    text-align: center;
    padding: 40px 0;
    color: #999;
}
.popup-footer {
    margin-top: 20px;
    text-align: right;
}
.close-btn {
    padding: 8px 24px;
    background: #FFFFFF;
    border-radius: 4px 4px 4px 4px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    font-weight: 400;
    font-size: 14px;
    color: #FF5500;
    cursor: pointer;
}
.close-btn:hover {
    border-color: #FF5500;
}


/* ———— 动画效果 ———— */
@keyframes bounce {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.05);
    }
}

/* ———— 响应式适配 ———— */
@media (max-width: 1024px) {
    .raffle-wrapper {
        width: 100%;
        padding: 100px 32px;
        overflow-x: scroll;
        box-sizing: border-box;
        scrollbar-width: thin;
        scrollbar-color: #EEEEEE transparent;
    }
    .raffle-nav, .raffle-nav-en {
        width: 700px;
        height: 136px;
        background-size: cover;
    }
    .wheel-bg, .wheel-bg-en, .wheel, .wheel-en, .wheel-bottom, .prize-pool {
        width: 100%;
    }
    .wheel-bg, .wheel-bg-en, .wheel, .wheel-en {
        background-size: contain;
    }
    .wheel-area {
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .wheel-pointer {
        left: calc(50%);
    }
    .wheel-btn {
        width: 160px;
        height: 160px;
    }
    .wheel-btn-en {
        width: 160px;
        height: 160px;
    }
    .my-prizes-popup .popup-content {
        width: 68vw;
    }
    .rule-content, .raffle-content {
        padding: 24px;
    }
    .top-notice-container {
        flex-direction: column;
    }
    .top-notice-button {
        justify-content: flex-end;
        margin-top: 20px;
    }
    .popup-content {
        padding: 24px 24px 40px 24px;
        border-radius: 16px;
    }
}

@media (max-width: 768px) {
    .raffle-wrapper {
        width: 100%;
        padding: 100px 16px 48px 16px;
    }
    .rule-container, .raffle-container {
        width: 343px;
        box-sizing: content-box;
    }
    .raffle-nav, .raffle-nav-en {
        width: 350px;
        height: 68px;
    }
    .raffle-content {
        padding: 16px 0;
    }
    .rule-content {
        padding: 16px;
    }
    .top-notice-container {
        width: 291px;
        margin: 0 auto;
    }
    .raffle-container-inner, .rule-container-inner {
        padding: 16px;
    }
    .wheel-bg, .wheel-bg-en, .wheel, .wheel-en {
        width: 100%;
        height: 306px;
    }
    .wheel-btn {
        width: 82px;
        height: 82px;
    }
    .wheel-btn-en {
        width: 82px;
        height: 82px;
    }
    .wheel-pointer {
        width: 308px;
        height: 282px;
    }
    .wheel-bottom {
        bottom: -42px;
        height: 100px;
    }
    .prize-pool-container {
        bottom: -64px;
        width: 296px;
        height: 102px;
    }
    .prize-pool-title-container {
        width: 296px;
        height: 90px;
    }
    .remain-times {
        font-size: 14px;
        margin-top: 8px;
    }
    .prize-pool-title {
        font-size: 18px;
        margin-top: 26px;
    }
    .prize-pool {
        margin-top: 44px;
        padding: 16px;
    }
    .top-notice {
        width: auto !important;
    }
    .rule-title {
        width: 217px;
        height: 35px;
        top: -6px;
        line-height: 35px;
        font-size: 16px;
    }
    .top-notice-button {
        margin-bottom: 20px;
    }
}