* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #ff0000 0%, #ff6b6b 100%);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    color: #fff;
}

/* 灯笼样式 */
.lantern {
    position: fixed;
    top: 20px;
    width: 60px;
    height: 80px;
    z-index: 100;
}

.left-lantern {
    left: 20px;
}

.right-lantern {
    right: 20px;
}

.lantern-body {
    width: 100%;
    height: 70px;
    background: linear-gradient(180deg, #ff0000 0%, #ff6b6b 100%);
    border-radius: 50%;
    position: relative;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.5);
}

.lantern-light {
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, #ffff00 0%, #ff9900 100%);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: lanternGlow 2s infinite alternate;
}

@keyframes lanternGlow {
    0% { opacity: 0.7; transform: translate(-50%, -50%) scale(1); }
    100% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
}

.lantern-tassel {
    width: 4px;
    height: 30px;
    background: linear-gradient(to bottom, #ffcc00 0%, #ff9900 100%);
    margin: 0 auto;
    position: relative;
}

.lantern-tassel::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 10px;
    background: #ffcc00;
    border-radius: 50%;
}

/* 福字背景 */
.fu-character {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 300px;
    color: rgba(255, 215, 0, 0.1);
    z-index: 0;
    font-weight: bold;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

/* 注册表单 */
.form-container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    margin-top: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.header {
    text-align: center;
    margin-bottom: 30px;
}

.header h1 {
    font-size: 2.5rem;
    color: #ffcc00;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.2rem;
    color: #fff;
    opacity: 0.9;
}

.input-group {
    position: relative;
    margin-bottom: 20px;
}

.input-group i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #ffcc00;
    font-size: 1.2rem;
}

.input-group input {
    width: 100%;
    padding: 15px 15px 15px 45px;
    border: 2px solid rgba(255, 204, 0, 0.5);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    transition: all 0.3s;
}

.input-group input:focus {
    outline: none;
    border-color: #ffcc00;
    box-shadow: 0 0 15px rgba(255, 204, 0, 0.5);
}

.btn-submit {
    width: 100%;
    padding: 18px;
    background: linear-gradient(45deg, #ffcc00, #ff9900);
    border: none;
    border-radius: 10px;
    color: #ff0000;
    font-size: 1.3rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.agreement {
    margin-top: 20px;
    text-align: center;
    font-size: 0.9rem;
}

/* 抽奖界面 */
.lottery-container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    margin-top: 30px;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.user-info {
    background: rgba(255, 204, 0, 0.2);
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    font-size: 1.1rem;
}

/* 抽奖转盘 */
.lottery-wheel {
    text-align: center;
    margin: 30px 0;
}

.wheel {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 0 auto;
    background: linear-gradient(135deg, #ff0000, #ff6b6b);
    border-radius: 50%;
    padding: 15px;
    box-shadow: 0 0 30px rgba(255, 0, 0, 0.5);
}

.wheel-inner {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ffcc00, #ff9900);
    border-radius: 50%;
    position: relative;
    overflow: hidden;
    transform: rotate(0deg);
    transition: transform 3s cubic-bezier(0.17, 0.67, 0.83, 0.67);
}

.wheel-item {
    position: absolute;
    width: 100%;
    height: 16.666%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
    color: #ff0000;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.wheel-item:nth-child(1) { transform: rotate(0deg); }
.wheel-item:nth-child(2) { transform: rotate(60deg); }
.wheel-item:nth-child(3) { transform: rotate(120deg); }
.wheel-item:nth-child(4) { transform: rotate(180deg); }
.wheel-item:nth-child(5) { transform: rotate(240deg); }
.wheel-item:nth-child(6) { transform: rotate(300deg); }

.lottery-button-container {
    margin-top: 30px;
}

.lottery-btn {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, #ff0000 0%, #cc0000 100%);
    border: 5px solid #ffcc00;
    border-radius: 50%;
    color: #ffcc00;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.7); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 20px rgba(255, 0, 0, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 0, 0, 0); }
}

.lottery-btn:hover {
    animation: none;
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(255, 204, 0, 0.5);
}

.lottery-btn i {
    font-size: 3rem;
    margin-bottom: 10px;
}

/* 结果区域 */
.result-container {
    margin-top: 40px;
}

.result-message {
    background: rgba(255, 255, 255, 0.9);
    color: #ff0000;
    padding: 20px;
    border-radius: 10px;
    font-size: 1.5rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #ffcc00;
}

.round-info, .winners-list {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    color: #333;
}

.round-info h3, .winners-list h3 {
    color: #ff0000;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

#current-prize {
    font-size: 1.3rem;
    color: #ff9900;
    font-weight: bold;
}

#winners-container {
    max-height: 200px;
    overflow-y: auto;
}

.winner-item {
    padding: 10px;
    border-bottom: 1px solid #eee;
    font-size: 1.1rem;
    color: #666;
}

.winner-item:last-child {
    border-bottom: none;
}

.btn-logout {
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 10px;
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-logout:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* 中奖动画 */
.win-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 0, 0, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: winBg 3s;
}

@keyframes winBg {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

.firework {
    position: absolute;
    width: 10px;
    height: 10px;
    background: #ffcc00;
    border-radius: 50%;
    animation: firework 1s infinite;
}

.firework:nth-child(1) {
    top: 20%;
    left: 20%;
    animation-delay: 0s;
}

.firework:nth-child(2) {
    top: 30%;
    right: 30%;
    animation-delay: 0.3s;
}

.firework:nth-child(3) {
    bottom: 40%;
    left: 40%;
    animation-delay: 0.6s;
}

@keyframes firework {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(10); opacity: 0; }
}

.confetti {
    position: absolute;
    width: 20px;
    height: 20px;
    background: #ffcc00;
    animation: confetti 3s linear infinite;
}

.confetti:nth-child(4) {
    top: -20px;
    left: 20%;
    animation-delay: 0s;
}

.confetti:nth-child(5) {
    top: -20px;
    left: 50%;
    animation-delay: 1s;
}

.confetti:nth-child(6) {
    top: -20px;
    left: 80%;
    animation-delay: 2s;
}

@keyframes confetti {
    0% { transform: translateY(0) rotate(0deg); opacity: 1; }
    100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

.win-text {
    font-size: 5rem;
    color: #ffcc00;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    animation: winText 1s infinite alternate;
}

@keyframes winText {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

/* 音乐控制 */
.music-control {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 100;
}

.music-btn {
    width: 60px;
    height: 60px;
    background: #ffcc00;
    border: none;
    border-radius: 50%;
    color: #ff0000;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s;
}

.music-btn:hover {
    transform: scale(1.1);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .form-container {
        padding: 20px;
        margin-top: 30px;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .wheel {
        width: 250px;
        height: 250px;
    }
    
    .lottery-btn {
        width: 150px;
        height: 150px;
        font-size: 1.2rem;
    }
    
    .win-text {
        font-size: 3rem;
    }
    
    .lantern {
        width: 40px;
        height: 60px;
    }
}

@media (max-width: 480px) {
    .wheel {
        width: 200px;
        height: 200px;
    }
    
    .lottery-btn {
        width: 120px;
        height: 120px;
        font-size: 1rem;
    }
    
    .result-message {
        font-size: 1.2rem;
    }
    
    .user-info {
        flex-direction: column;
        gap: 10px;
    }
}


/* 九宫格抽奖补充样式 */
.nine-grid-container {
    width: 360px;
    height: 360px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 5px;
    margin: 0 auto 30px;
    position: relative;
    background: #ffcc00;
    padding: 5px;
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(255, 0, 0, 0.5);
}

.grid-item {
    background: linear-gradient(135deg, #ff0000, #ff6b6b);
    border: 2px solid #ffcc00;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
    color: #ffcc00;
    text-align: center;
    padding: 5px;
    transition: all 0.3s;
    cursor: default;
    user-select: none;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.grid-item.active {
    background: linear-gradient(135deg, #ffcc00, #ff9900);
    color: #ff0000;
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(255, 204, 0, 0.7);
    border-color: #ff0000;
    z-index: 2;
    animation: glow 1s infinite alternate;
}

.grid-item.winner {
    background: linear-gradient(135deg, #00ff00, #00cc00);
    color: #ffffff;
    animation: winGlow 0.8s infinite alternate;
}

.center-btn {
    background: radial-gradient(circle, #ff0000 0%, #cc0000 100%) !important;
    border: 3px solid #ffcc00 !important;
    color: #ffcc00 !important;
    cursor: pointer !important;
    font-size: 18px !important;
    transition: all 0.3s !important;
    animation: centerPulse 2s infinite !important;
}

/* 抽奖状态显示样式 */
.draw-status {
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    color: #ff0000;
    font-weight: bold;
    margin-top: 10px;
    border: 2px solid #ffcc00;
    text-align: center;
    min-height: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.draw-status .status-title {
    font-size: 1.2rem;
    color: #ff9900;
    margin-bottom: 5px;
}

.draw-status .status-detail {
    font-size: 1rem;
    color: #666;
}

.draw-status.winner {
    background: linear-gradient(135deg, #e6ffe6, #ccffcc);
    color: #009900;
    border-color: #00cc00;
}

.draw-status.winner .status-title {
    color: #009900;
}

.draw-status.ended {
    background: linear-gradient(135deg, #fff0e6, #ffd9b3);
    color: #ff6600;
    border-color: #ff9900;
}

.draw-status.ended .status-title {
    color: #ff6600;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .nine-grid-container {
        width: 300px;
        height: 300px;
    }
    
    .grid-item {
        font-size: 14px;
    }
    
    .center-btn {
        font-size: 16px !important;
    }
}

@media (max-width: 480px) {
    .nine-grid-container {
        width: 260px;
        height: 260px;
    }
    
    .grid-item {
        font-size: 12px;
        padding: 3px;
    }
    
    .center-btn {
        font-size: 14px !important;
    }
}


