* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    width: 100%;
    font-family: 'Arial', sans-serif;
}

.container {
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 背景 */
.background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background-image: url('bg.jpg');
    background-size: 100% auto;
    background-position: center top;
    background-repeat: no-repeat;
    z-index: 1;
}

/* 转盘容器 */
.wheel-container {
    position: absolute;
    width: 320px;
    height: 320px;
    z-index: 10;
    left: 50%;
    transform: translateX(-50%);
    overflow: hidden;
}

/* 转盘 */
.wheel {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    position: relative;
    transition: transform 0.1s linear;
    background: conic-gradient(
        from 0deg,
        rgba(255, 255, 255, 0.2) 0deg 45deg,
        transparent 45deg 90deg,
        rgba(255, 255, 255, 0.3) 90deg 135deg,
        transparent 135deg 180deg,
        rgba(255, 255, 255, 0.2) 180deg 225deg,
        transparent 225deg 270deg,
        rgba(255, 255, 255, 0.3) 270deg 315deg,
        transparent 315deg 360deg
    );
}

/* 转盘项目 */
.wheel-item {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wheel-item:nth-child(1) .prize {
    transform: rotate(-22.5deg) translateY(-140px);
}

.wheel-item:nth-child(2) .prize {
    transform: rotate(-67.5deg) translateY(-140px);
}

.wheel-item:nth-child(3) .prize {
    transform: rotate(-112.5deg) translateY(-140px);
}

.wheel-item:nth-child(4) .prize {
    transform: rotate(-157.5deg) translateY(-140px);
}

.wheel-item:nth-child(5) .prize {
    transform: rotate(-202.5deg) translateY(-140px);
}

.wheel-item:nth-child(6) .prize {
    transform: rotate(-247.5deg) translateY(-140px);
}

.wheel-item:nth-child(7) .prize {
    transform: rotate(-292.5deg) translateY(-140px);
}

.wheel-item:nth-child(8) .prize {
    transform: rotate(-337.5deg) translateY(-140px);
}

.prize {
    font-size: 16px;
    font-weight: bold;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 4px;
}

.prize-num {
    display: inline-block;
}

.prize-icon {
    height: 18px;
    width: auto;
    display: inline-block;
}

/* 指针 */
.pointer {
    position: absolute;
    top: calc(50% - 60px);
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 25px;
    background: linear-gradient(135deg, #3a9d7a 0%, #2d7a5c 100%);
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    z-index: 20;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* 抽奖按钮 */
.btn-draw {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 30;
    background: transparent;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.btn-draw:hover {

}

.btn-draw:active {
    transform: translate(-50%, -50%) scale(0.95);
}

.btn-draw img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.btn-draw:disabled {
    cursor: not-allowed;
}

/* 结果弹窗 */
.result-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.result-modal.show {
    display: flex;
}

.result-content {
    background: white;
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: popIn 0.3s ease;
}

@keyframes popIn {
    from {
        transform: scale(0.5);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.result-content h2 {
    font-size: 28px;
    color: #FF6B6B;
    margin-bottom: 20px;
}

.prize-text {
    font-size: 36px;
    font-weight: bold;
    color: #FFD700;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-close {
    background: linear-gradient(135deg, #FF6B6B 0%, #FF8E8E 100%);
    color: white;
    border: none;
    padding: 12px 40px;
    font-size: 16px;
    border-radius: 25px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.btn-close:hover {
    transform: scale(1.05);
}

.btn-close:active {
    transform: scale(0.95);
}
.btn-close2{
    margin-top: 10px;
}

/* 活动规则 */
.action-rules {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(245, 245, 245, 0.95) 100%);
    border-radius: 15px;
    padding: 20px 30px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    z-index: 50;
    font-size: 14px;
    line-height: 1.8;
    color: #333;
    animation: slideUp 0.5s ease;
    height: fit-content;
}

/* 规则标题 */
.action-rules strong {
    color: #FF6B6B;
    font-size: 16px;
    display: block;
    margin-bottom: 12px;
    font-weight: 600;
}

.action-rules strong::before {
    content: '📋 ';
    margin-right: 4px;
}

/* 规则项目 */
.rule-item {
    display: flex;
    align-items: center;
    padding: 8px 0;
    font-size: 13px;
    color: #555;
    transition: all 0.3s ease;
}

.rule-item:hover {
    color: #FF6B6B;
    padding-left: 8px;
}

.rule-item::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 4px;
    background: linear-gradient(135deg, #FF6B6B 0%, #FF8E8E 100%);
    border-radius: 50%;
    margin-right: 10px;
    flex-shrink: 0;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* 手机适配 */
@media (max-width: 480px) {

    .btn-draw {
        width: 90px;
        height: 90px;
    }

    .prize {
        font-size: 16px;
        transform: rotate(calc(var(--index) * -45deg + 22.5deg)) translateY(-70px);
    }

    .action-rules {
        padding: 15px 20px;
        font-size: 13px;
        max-width: calc(100% - 20px);
    }
}

