/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    color: #fff;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://game.gtimg.cn/images/yxzj/img201606/wallpaper.jpg') center/cover no-repeat;
    opacity: 0.1;
    z-index: -1;
}

/* 背景光斑效果 */
.bg-spot-1 {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0) 70%);
    animation: pulse 8s ease-in-out infinite;
    z-index: -1;
}

.bg-spot-2 {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,170,0,0.1) 0%, rgba(255,170,0,0) 70%);
    animation: pulse 10s ease-in-out infinite reverse;
    z-index: -1;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 0.5;
    }
}

/* 音效控制按钮 */
.audio-controls {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.music-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e62e00, #ff6600);
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(230, 46, 0, 0.4);
    transition: all 0.3s ease;
}

.music-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(230, 46, 0, 0.6);
}

/* 抽奖系统容器 */
.lottery-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
}

/* 页面头部 */
.lottery-header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.logo-container {
    margin-bottom: 20px;
}

.logo {
    width: 200px;
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(255, 255, 255, 0.3));
}

.lottery-header h1 {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 10px;
    background: linear-gradient(45deg, #ff6600, #ffcc00);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 2px 4px rgba(255, 102, 0, 0.2);
}

.subtitle {
    font-size: 18px;
    color: #ffcc00;
    opacity: 0.8;
}

/* 导入区域 */
.import-section {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 102, 0, 0.3);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

.upload-container {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.file-input {
    display: none;
}

.upload-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #e62e00, #ff6600);
    color: white;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(230, 46, 0, 0.3);
}

.upload-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230, 46, 0, 0.5);
}

.file-status {
    font-size: 16px;
    color: #ffcc00;
}

.student-stats {
    display: flex;
    gap: 40px;
    justify-content: center;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.stat-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.stat-value {
    font-size: 24px;
    font-weight: bold;
    color: #ffcc00;
    text-shadow: 0 0 10px rgba(255, 204, 0, 0.5);
}

/* 手动输入区域样式 */
.manual-input-container {
    margin-top: 20px;
    text-align: center;
}

.manual-input-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 30px;
    padding: 12px 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.manual-input-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.manual-input-section {
    margin-top: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: fadeInScale 0.3s ease-out;
}

#studentNamesInput {
    width: 100%;
    height: 120px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: white;
    font-family: 'Microsoft YaHei', sans-serif;
    font-size: 14px;
    resize: vertical;
    margin-bottom: 10px;
}

#studentNamesInput::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.process-btn {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    border: none;
    border-radius: 25px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4);
}

.process-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.6);
}

/* 主要内容区域 */
.lottery-main {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

/* 水晶抽奖容器 */
.crystal-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.crystal-pool {
    position: relative;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle at center, rgba(255, 102, 0, 0.1), rgba(255, 102, 0, 0));
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 40px rgba(255, 102, 0, 0.2);
    animation: poolPulse 4s ease-in-out infinite;
}

@keyframes poolPulse {
    0%, 100% {
        box-shadow: 0 0 40px rgba(255, 102, 0, 0.2);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 60px rgba(255, 102, 0, 0.4);
        transform: scale(1.02);
    }
}

.crystal-shadow {
    position: absolute;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    background: radial-gradient(circle at center, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0));
    z-index: 1;
}

.crystal {
    position: relative;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff6600, #ffcc00, #ff6600);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: crystalRotate 10s linear infinite;
    box-shadow: 
        0 0 30px rgba(255, 102, 0, 0.7),
        inset 0 0 40px rgba(255, 255, 255, 0.3);
    z-index: 2;
    transition: all 0.3s ease;
}

.crystal::before {
    content: '';
    position: absolute;
    top: 15%;
    left: 15%;
    width: 70%;
    height: 70%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0) 70%);
    animation: crystalShine 3s ease-in-out infinite;
}

@keyframes crystalShine {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.1); }
}

.crystal::after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    width: 103%;
    height: 103%;
    border-radius: 50%;
    border: 2px solid rgba(255, 215, 0, 0.5);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
    animation: crystalBorderPulse 2s ease-in-out infinite;
}

@keyframes crystalBorderPulse {
    0%, 100% { border-color: rgba(255, 215, 0, 0.3); }
    50% { border-color: rgba(255, 215, 0, 0.8); }
}

@keyframes crystalRotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.crystal-inner {
    position: relative;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: linear-gradient(135deg, #000, #1a1a1a);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 20px rgba(255, 102, 0, 0.4);
    z-index: 3;
}

.crystal-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 204, 0, 0.5), rgba(0, 0, 0, 0));
    animation: glowPulse 3s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 0.8;
    }
}

.crystal-light {
    position: absolute;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 102, 0, 0.2), rgba(0, 0, 0, 0));
}

.crystal-reflection {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 80px;
    height: 40px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0));
    transform: rotate(-45deg);
}

.particle-container {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
    z-index: 1;
}

/* 抽奖按钮 */
.draw-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.draw-btn {
    position: relative;
    padding: 15px 40px;
    background: linear-gradient(135deg, #e62e00, #ff6600);
    color: white;
    border: none;
    border-radius: 40px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 
        0 6px 20px rgba(230, 46, 0, 0.4),
        0 0 25px rgba(255, 102, 0, 0.3) inset;
    overflow: hidden;
    animation: buttonHover 3s ease-in-out infinite alternate;
}

@keyframes buttonHover {
    0% { box-shadow: 
        0 6px 20px rgba(230, 46, 0, 0.4),
        0 0 25px rgba(255, 102, 0, 0.3) inset;
    }
    100% { box-shadow: 
        0 8px 25px rgba(230, 46, 0, 0.5),
        0 0 30px rgba(255, 102, 0, 0.5) inset;
    }
}

.draw-btn:disabled {
    background: linear-gradient(135deg, #666, #999);
    cursor: not-allowed;
    box-shadow: none;
}

.draw-btn:not(:disabled):hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 
        0 10px 30px rgba(230, 46, 0, 0.7),
        0 0 35px rgba(255, 102, 0, 0.6) inset;
    animation: none;
}

.draw-btn:not(:disabled):active {
    transform: translateY(0) scale(0.98);
    box-shadow: 
        0 4px 15px rgba(230, 46, 0, 0.4),
        0 0 20px rgba(255, 102, 0, 0.4) inset;
}

.btn-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0));
    animation: shine 3s ease-in-out infinite;
}

@keyframes shine {
    0% {
        transform: rotate(0deg) translateY(-100%);
    }
    100% {
        transform: rotate(360deg) translateY(-100%);
    }
}

.draw-cost {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
}

.cost-icon {
    color: #ffcc00;
    font-size: 20px;
}

.cost-text {
    color: white;
    font-weight: 500;
}

/* 信息展示区 */
.lottery-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* 奖池信息 */
.prize-pool {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 102, 0, 0.3);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

.prize-pool h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #ffcc00;
    text-align: center;
}

.prize-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}

.prize-item {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.prize-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.prize-item.special {
    border: 2px solid rgba(255, 215, 0, 0.5);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

.prize-item.special.highlight {
    background: linear-gradient(135deg, #ff6600, #ffcc00, #ff6600);
    border-color: #ffcc00;
    box-shadow: 0 0 20px rgba(255, 204, 0, 0.8), 0 0 40px rgba(255, 102, 0, 0.6);
    animation: highlightPulse 2s ease-in-out infinite;
}

.prize-name {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 5px;
    color: white;
}

.prize-pool {
    font-size: 14px;
    color: #ffcc00;
    margin-bottom: 5px;
}

.prize-effect {
    font-size: 12px;
    color: #ffcc00;
    text-shadow: 0 0 5px rgba(255, 204, 0, 0.8);
    margin-top: 5px;
    font-weight: bold;
}

/* 学生奖池容器 */
.student-pool-container {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 102, 0, 0.3);
}

.student-pool-container h4 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #ffcc00;
    text-align: center;
}

.student-pool {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    max-height: 200px;
    overflow-y: auto;
    padding: 10px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.student-pool::-webkit-scrollbar {
    width: 8px;
}

.student-pool::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.student-pool::-webkit-scrollbar-thumb {
    background: rgba(255, 102, 0, 0.5);
    border-radius: 4px;
}

.student-pool::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 102, 0, 0.7);
}

.pool-empty {
    width: 100%;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    padding: 20px;
    font-style: italic;
}

.student-tag {
    padding: 6px 12px;
    background: linear-gradient(135deg, rgba(255, 102, 0, 0.3), rgba(255, 204, 0, 0.2));
    border: 1px solid rgba(255, 102, 0, 0.5);
    border-radius: 20px;
    color: white;
    font-size: 14px;
    animation: fadeInScale 0.5s ease-out forwards;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
}

.student-tag:hover {
    background: linear-gradient(135deg, rgba(255, 102, 0, 0.5), rgba(255, 204, 0, 0.3));
    transform: scale(1.05);
    box-shadow: 0 0 10px rgba(255, 102, 0, 0.5);
}

@keyframes fadeInScale {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes highlightPulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(255, 204, 0, 0.8), 0 0 40px rgba(255, 102, 0, 0.6);
    }
    50% {
        box-shadow: 0 0 25px rgba(255, 204, 0, 1), 0 0 50px rgba(255, 102, 0, 0.8);
    }
}

.prize-item.rare {
    border: 2px solid rgba(173, 216, 230, 0.5);
    box-shadow: 0 0 10px rgba(173, 216, 230, 0.3);
}

.prize-item.epic {
    border: 2px solid rgba(128, 0, 128, 0.5);
    box-shadow: 0 0 10px rgba(128, 0, 128, 0.3);
}

.prize-item.common {
    border: 2px solid rgba(255, 165, 0, 0.5);
}

.prize-item.normal {
    border: 2px solid rgba(128, 128, 128, 0.5);
}

.prize-icon {
    font-size: 32px;
    margin-bottom: 10px;
}

.prize-item.special .prize-icon {
    color: #ffd700;
    animation: goldGlow 2s ease-in-out infinite;
}

@keyframes goldGlow {
    0%, 100% {
        text-shadow: 0 0 10px rgba(255, 215, 0, 0.7);
    }
    50% {
        text-shadow: 0 0 20px rgba(255, 215, 0, 1);
    }
}

.prize-item.rare .prize-icon {
    color: #add8e6;
}

.prize-item.epic .prize-icon {
    color: #9932cc;
}

.prize-item.common .prize-icon {
    color: #ffa500;
}

.prize-item.normal .prize-icon {
    color: #808080;
}

.prize-name {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 5px;
}

.prize-rate {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

/* 抽奖记录 */
.draw-records {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 102, 0, 0.3);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    max-height: 400px;
    overflow-y: auto;
}

.draw-records h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #ffcc00;
    text-align: center;
}

.record-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.no-records {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    padding: 40px 0;
}

.record-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left: 3px solid #ff6600;
}

.record-item.special {
    border-left-color: #ffd700;
    background: rgba(255, 215, 0, 0.1);
}

.record-student {
    font-weight: 500;
}

.record-prize {
    display: flex;
    align-items: center;
    gap: 8px;
}

.record-prize-icon {
    font-size: 16px;
}

.record-prize-name {
    font-size: 14px;
}

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

.modal-content {
    background: linear-gradient(135deg, #1a1a1a, #0a0a0a);
    border: 2px solid rgba(255, 102, 0, 0.5);
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 20px 60px rgba(255, 102, 0, 0.3);
    overflow: hidden;
    animation: modalAppear 0.3s ease-out;
}

@keyframes modalAppear {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(-50px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-header {
    background: linear-gradient(135deg, #e62e00, #ff6600);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    color: white;
    font-size: 24px;
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    transition: all 0.2s ease;
}

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

.modal-body {
    padding: 30px;
    text-align: center;
}

.winner-info {
    margin-bottom: 30px;
}

.winner-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff6600, #ffcc00);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 24px;
    font-weight: bold;
    color: white;
    box-shadow: 0 0 20px rgba(255, 102, 0, 0.5);
}

.winner-details p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
}

.prize-result {
    margin-bottom: 20px;
}

.result-prize-icon {
    font-size: 60px;
    margin-bottom: 15px;
}

.result-prize-icon.special {
    color: #ffd700;
    animation: goldGlow 2s ease-in-out infinite;
}

.result-prize-icon.rare {
    color: #add8e6;
}

.result-prize-icon.epic {
    color: #9932cc;
}

.result-prize-icon.common {
    color: #ffa500;
}

.result-prize-icon.normal {
    color: #808080;
}

.result-prize-name {
    font-size: 28px;
    font-weight: bold;
    color: white;
}
/* 特殊效果 */
.special-effect {
    position: relative;
    height: 100px;
    overflow: hidden;
    margin-top: 20px;
    width: 100%;
}

/* 金色光芒 */
.golden-ray {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 3px;
    height: 120px;
    background: linear-gradient(to bottom, rgba(255, 215, 0, 0), rgba(255, 215, 0, 0.9), rgba(255, 215, 0, 0));
    transform-origin: top center;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.8);
}

/* 闪电效果 */
.lightning-effect {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    pointer-events: none;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.1s ease;
}

/* 粒子效果 */
.particle {
    pointer-events: none;
}

/* 彩带效果 */
.confetti {
    pointer-events: none;
}

.modal-footer {
    padding: 20px;
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
}

.confirm-btn {
    padding: 12px 40px;
    background: linear-gradient(135deg, #e62e00, #ff6600);
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(230, 46, 0, 0.3);
}

.confirm-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230, 46, 0, 0.5);
}

/* 特效层 */
.confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}

.lightning-effect {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    opacity: 0;
    pointer-events: none;
    z-index: 9998;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .lottery-main {
        flex-direction: column;
        align-items: center;
    }
    
    .lottery-info {
        width: 100%;
        max-width: 500px;
    }
    
    .crystal-pool {
        width: 350px;
        height: 350px;
    }
    
    .crystal {
        width: 240px;
        height: 240px;
    }
    
    .crystal-inner {
        width: 200px;
        height: 200px;
    }
}

@media (max-width: 768px) {
    .lottery-container {
        padding: 15px;
    }
    
    .lottery-header h1 {
        font-size: 28px;
    }
    
    .subtitle {
        font-size: 16px;
    }
    
    .import-section {
        padding: 20px;
    }
    
    .upload-container {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .student-stats {
        gap: 20px;
    }
    
    .crystal-pool {
        width: 300px;
        height: 300px;
    }
    
    .crystal {
        width: 200px;
        height: 200px;
    }
    
    .crystal-inner {
        width: 160px;
        height: 160px;
    }
    
    .draw-btn {
        padding: 12px 30px;
        font-size: 16px;
    }
    
    .prize-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .modal-content {
        width: 90%;
        margin: 20px;
    }
    
    .logo {
        width: 150px;
    }
}

@media (max-width: 480px) {
    .lottery-container {
        padding: 10px;
    }
    
    .lottery-header h1 {
        font-size: 24px;
    }
    
    .crystal-pool {
        width: 250px;
        height: 250px;
    }
    
    .crystal {
        width: 180px;
        height: 180px;
    }
    
    .crystal-inner {
        width: 140px;
        height: 140px;
    }
    
    .student-stats {
        flex-direction: column;
        gap: 15px;
    }
    
    .prize-grid {
        grid-template-columns: 1fr;
    }
    
    .audio-controls {
        top: 10px;
        right: 10px;
    }
    
    .music-btn {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
}