/* 中奖名单弹窗样式 */
.winner-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.winner-modal.active {
    opacity: 1;
    visibility: visible;
}

.winner-modal-content {
    width: 90%;
    max-width: 400px;
    max-height: 80vh;
    height: 100%;
    overflow: hidden;
    position: relative;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    background-image: url('../h5/diban_pop.png');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
    border: none;
}

.winner-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px 10px;
    background: transparent;
    backdrop-filter: none;
    border-bottom: none;
}

.winner-title-img {
    max-width: 100px;
    height: auto;
    margin: 0;
    display: block;
}

.close-winner-modal,
.close-redeem-modal,
.close-integral-modal,
.close-my-prizes-modal {
    background: transparent;
    border: none;
    cursor: pointer;
    width: auto;
    height: 30px;
    display: block;
    transition: all 0.3s ease;
    padding: 0;
    margin-top: -25px;
}

.close-winner-modal:hover,
.close-redeem-modal:hover,
.close-integral-modal:hover,
.close-my-prizes-modal:hover {
    transform: scale(1.1);
    opacity: 0.8;
}

.winner-modal-body {
    padding: 5px 30px;
    max-height: calc(79vh - 80px);
    overflow-y: auto;
    overflow-x: hidden;
}

/* 隐藏滚动条但保持滚动功能 */
.winner-modal-body::-webkit-scrollbar {
    width: 0;
    height: 0;
}

.winner-modal-body::-webkit-scrollbar-track {
    background: transparent;
}

.winner-modal-body::-webkit-scrollbar-thumb {
    background: transparent;
}

/* 兼容IE和Edge */
.winner-modal-body {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.winner-list,
.redeem-list,
.integral-list {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

/* 积分明细样式 */
.integral-item {
    background: transparent;
    backdrop-filter: none;
    padding: 1px 20px;
    border-radius: 8px;
    border: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    color: #33337a;
    font-size: 0.85rem;
    line-height: 1.5;
}

.integral-footer {
    margin: 20px 0px;
    display: flex;
    justify-content: center;
    padding: 10px 0;
}

.integral-confirm-btn {
    background: transparent;
    border: none;
    padding: 0;
    border-radius: 0;
    font-size: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: none;
    text-shadow: none;
    width: auto;
    height: auto;
    max-width: 200px;
    display: block;
}

.integral-confirm-btn:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

.integral-confirm-btn:active {
    transform: scale(0.95);
    opacity: 0.8;
}

.winner-item {
    background: transparent;
    backdrop-filter: none;
    padding: 5px 15px;
    border-radius: 8px;
    border: none;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
    position: relative;
    overflow: hidden;
}

.winner-item::before {
    content: none;
}

.winner-item:nth-child(even) {
    background: transparent;
}

.winner-item:hover {
    background: transparent;
    border-color: transparent;
    transform: translateX(2px);
    box-shadow: none;
}

.winner-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.winner-name {
    font-size: 0.9rem;
    color: #33337a;
    font-weight: bold;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.winner-prize {
    font-size: 0.75rem;
    color: #33337a;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.winner-time-container {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1px;
    flex-shrink: 0;
}

.winner-date {
    font-size: 0.75rem;
    color: #33337a;
    text-align: right;
    margin: 0;
    font-weight: normal;
    white-space: nowrap;
}

.winner-time {
    font-size: 0.75rem;
    color: #33337a;
    text-align: right;
    margin: 0;
    font-weight: normal;
    white-space: nowrap;
}

/* 我的奖品样式 */
.my-prizes-content {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.prize-section {
    background: transparent;
    padding: 0;
}

.section-title {
    display: block;
    text-align: left;
    margin: 0 0 5px 0;
    padding: 0;
}

.section-title-img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100px;
    margin: 0;
    padding: 0;
}

.prize-list {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.prize-item-detail {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: transparent;
    padding: 5px 10px;
    border-radius: 6px;
    gap: 8px;
}

.prize-icon {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('../h5/慶典抽獎db.png') center center no-repeat;
    background-size: cover;
    border-radius: 50%;
    flex-shrink: 0;
    padding: 3px;
}

.prize-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.prize-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.prize-name {
    font-size: 0.6rem;
    color: #33337a;
    font-weight: bold;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    
    padding: 0;
}

.prize-validity {
    font-size: 0.7rem;
    color: #666;
    margin: 0;
    text-align: left;
    padding: 0;
}

.prize-status {
    font-size: 0.8rem;
    color: #ff6b6b;
    font-weight: bold;
    background: transparent;
    padding: 3px 8px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.prize-status:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

/* 响应式设计 */
@media (max-width: 480px) {
    .winner-modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .winner-modal-header {
        padding: 15px 20px 10px;
    }
    
    .winner-modal-body {
        padding: 2px 20px;
    }
    
    .winner-item {
        padding: 3px 15px;
    }
    
    .winner-name {
        font-size: 0.9rem;
    }
    
    .winner-prize {
        font-size: 0.8rem;
    }
    
    .winner-time {
        font-size: 0.7rem;
    }
}