/* 年会抽奖工具 - 全局样式 */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;700&display=swap');

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

:root {
    --primary-color: #e74c3c;
    --secondary-color: #f39c12;
    --accent-color: #3498db;
    --dark-color: #2c3e50;
    --light-color: #ecf0f1;
    --special-color: #e74c3c;
    --first-color: #f39c12;
    --success-color: #27ae60;
    --danger-color: #c0392b;
    --warning-color: #f39c12;
    --info-color: #3498db;
}

body {
    font-family: 'Noto Sans SC', 'Microsoft YaHei', Arial, sans-serif;
    background: linear-gradient(135deg, #8e44ad 0%, #c0392b 100%);
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* 背景装饰 */
.bg-decoration {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.firework {
    position: absolute;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    opacity: 0;
    animation: firework 3s infinite;
}

.firework:nth-child(1) {
    top: 10%;
    left: 10%;
    background-color: #ffcc00;
    animation-delay: 0s;
}

.firework:nth-child(2) {
    top: 20%;
    left: 80%;
    background-color: #ff3366;
    animation-delay: 0.5s;
}

.firework:nth-child(3) {
    top: 70%;
    left: 20%;
    background-color: #33ccff;
    animation-delay: 1s;
}

.firework:nth-child(4) {
    top: 80%;
    left: 70%;
    background-color: #ff9933;
    animation-delay: 1.5s;
}

.firework:nth-child(5) {
    top: 40%;
    left: 50%;
    background-color: #cc33ff;
    animation-delay: 2s;
}

@keyframes firework {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    10% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(20);
        opacity: 0;
    }
}

/* 容器样式 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
}

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

.title {
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
}

.title-bg {
    display: block;
    font-size: 120px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.1);
    line-height: 1;
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.title-main {
    display: block;
    font-size: 60px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    position: relative;
    z-index: 2;
    margin-bottom: 10px;
}

.title-sub {
    display: block;
    font-size: 24px;
    font-weight: 500;
    color: #fff;
    position: relative;
    z-index: 2;
}

.header-decoration {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.lantern {
    width: 40px;
    height: 60px;
    background: linear-gradient(to bottom, #e74c3c, #c0392b);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    margin: 0 30px;
    position: relative;
    animation: swing 3s infinite ease-in-out;
}

.lantern:before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 10px;
    background: #f1c40f;
    border-radius: 50%;
}

.lantern:after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 20px;
    background: #f1c40f;
    border-radius: 50%;
}

.lantern:nth-child(2) {
    animation-delay: 1.5s;
}

@keyframes swing {
    0%, 100% {
        transform: rotate(-5deg);
    }
    50% {
        transform: rotate(5deg);
    }
}

/* 区域样式 */
.section {
    margin-bottom: 30px;
    padding: 25px;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.section-title {
    display: flex;
    align-items: center;
    color: var(--dark-color);
    margin-bottom: 20px;
    font-size: 24px;
    font-weight: 700;
}

.title-icon {
    margin-right: 10px;
    font-size: 28px;
}

/* 轮盘区域 */
.wheel-section {
    text-align: center;
    margin-bottom: 40px;
}

.wheel-container {
    position: relative;
    display: inline-block;
    margin: 0 auto;
}

.wheel-wrapper {
    position: relative;
    width: 400px;
    height: 400px;
    margin: 0 auto;
    /* 添加发光效果 */
    filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.4));
}

.wheel {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.4), 
                inset 0 0 20px rgba(255, 255, 255, 0.2);
    transition: transform 4s cubic-bezier(0.17, 0.67, 0.12, 0.99);
    /* 添加边框装饰 */
    border: 8px solid #FFD700;
}

.wheel-inner {
    width: 100%;
    height: 100%;
    position: relative;
    /* 使用更丰富的渐变色彩 */
    background: conic-gradient(
        #FF6B6B 0% 12.5%,
        #4ECDC4 12.5% 25%,
        #45B7D1 25% 37.5%,
        #96CEB4 37.5% 50%,
        #FFEAA7 50% 62.5%,
        #DDA0DD 62.5% 75%,
        #98D8C8 75% 87.5%,
        #F7DC6F 87.5% 100%
    );
    border-radius: 50%;
    /* 添加内部光晕效果 */
    box-shadow: inset 0 0 30px rgba(255, 255, 255, 0.3);
}

.wheel-pointer {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 25px solid transparent;
    border-right: 25px solid transparent;
    border-top: 50px solid #FFD700;
    z-index: 10;
    filter: drop-shadow(0 5px 5px rgba(0, 0, 0, 0.3));
    /* 添加发光效果 */
    animation: glow 2s infinite alternate;
}

.wheel-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, #FFD700, #FFA500);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5), 
                0 0 40px rgba(255, 165, 0, 0.3),
                inset 0 0 15px rgba(255, 255, 255, 0.5);
    z-index: 10;
    cursor: pointer;
    transition: all 0.3s ease;
    /* 添加边框装饰 */
    border: 5px solid #FFF;
}

.wheel-center:hover {
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.7), 
                0 0 50px rgba(255, 165, 0, 0.4),
                inset 0 0 20px rgba(255, 255, 255, 0.7);
}

.wheel-text {
    font-weight: 700;
    color: #FFF;
    font-size: 16px;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

/* 添加发光动画 */
@keyframes glow {
    from {
        filter: drop-shadow(0 5px 5px rgba(0, 0, 0, 0.3)) drop-shadow(0 0 5px rgba(255, 215, 0, 0.3));
    }
    to {
        filter: drop-shadow(0 5px 5px rgba(0, 0, 0, 0.3)) drop-shadow(0 0 15px rgba(255, 215, 0, 0.7));
    }
}

/* 添加轮盘装饰环 */
.wheel-wrapper::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 50%;
    border: 2px dashed rgba(255, 215, 0, 0.5);
    animation: rotate 30s linear infinite;
    pointer-events: none;
}

/* 添加旋转动画 */
@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* 轮盘外环装饰 */
.wheel-outer-ring {
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    border-radius: 50%;
    border: 3px solid rgba(255, 215, 0, 0.7);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
    pointer-events: none;
    z-index: -1;
}

/* 指针装饰 */
.pointer-decoration {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 10px;
    background: #FFD700;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.8);
}

/* 中心装饰 */
.center-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle, transparent 30%, rgba(255, 215, 0, 0.2) 70%, transparent 100%);
    animation: pulse 2s infinite alternate;
}

/* 脉冲动画 */
@keyframes pulse {
    from {
        transform: scale(0.9);
        opacity: 0.7;
    }
    to {
        transform: scale(1.1);
        opacity: 1;
    }
}

/* 轮盘装饰灯 */
.wheel-lights {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.light {
    position: absolute;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: radial-gradient(circle, #FFF, #FFD700);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.8);
}

.light-1 { top: -7px; left: 50%; transform: translateX(-50%); }
.light-2 { top: 50%; right: -7px; transform: translateY(-50%); }
.light-3 { bottom: -7px; left: 50%; transform: translateX(-50%); }
.light-4 { top: 50%; left: -7px; transform: translateY(-50%); }
.light-5 { top: 15%; right: 15%; }
.light-6 { bottom: 15%; right: 15%; }
.light-7 { bottom: 15%; left: 15%; }
.light-8 { top: 15%; left: 15%; }

/* 灯光闪烁动画 */
.light-1, .light-3 { animation: blink 1.5s infinite alternate; }
.light-2, .light-4 { animation: blink 1.5s 0.5s infinite alternate; }
.light-5, .light-7 { animation: blink 1.5s 0.25s infinite alternate; }
.light-6, .light-8 { animation: blink 1.5s 0.75s infinite alternate; }

@keyframes blink {
    from {
        opacity: 0.4;
        box-shadow: 0 0 5px rgba(255, 215, 0, 0.4);
    }
    to {
        opacity: 1;
        box-shadow: 0 0 15px rgba(255, 215, 0, 0.9);
    }
}

/* 名单管理区域 */
.name-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    padding: 10px;
    background-color: rgba(52, 152, 219, 0.1);
    border-radius: 8px;
}

.name-stats strong {
    color: var(--accent-color);
}

/* 输入组样式 */
.input-group {
    display: flex;
    margin-bottom: 15px;
}

.input-group input[type="text"] {
    flex: 1;
    padding: 12px 15px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 8px 0 0 8px;
    transition: all 0.3s ease;
}

.input-group input[type="text"]:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.5);
    outline: none;
}

/* 按钮样式 */
.btn {
    padding: 12px 20px;
    font-size: 16px;
    border: none;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-icon {
    margin-right: 8px;
}

.btn-primary {
    background-color: var(--accent-color);
    color: white;
}

.btn-primary:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.btn-success {
    background-color: var(--success-color);
    color: white;
}

.btn-success:hover {
    background-color: #229954;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.3);
}

.btn-danger {
    background-color: var(--danger-color);
    color: white;
}

.btn-danger:hover {
    background-color: #a93226;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(192, 57, 43, 0.3);
}

.btn-warning {
    background-color: var(--warning-color);
    color: white;
}

.btn-warning:hover {
    background-color: #e67e22;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(243, 156, 18, 0.3);
}

.btn-info {
    background-color: var(--info-color);
    color: white;
}

.btn-info:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.btn-secondary {
    background-color: #95a5a6;
    color: white;
}

.btn-secondary:hover {
    background-color: #7f8c8d;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(149, 165, 166, 0.3);
}

.btn-special {
    background: linear-gradient(135deg, var(--special-color), #c0392b);
    color: white;
    font-size: 18px;
    padding: 15px 30px;
    margin-right: 15px;
    border-radius: 50px;
}

.btn-special:hover {
    background: linear-gradient(135deg, #c0392b, #a93226);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
}

.btn-first {
    background: linear-gradient(135deg, var(--first-color), #e67e22);
    color: white;
    font-size: 18px;
    padding: 15px 30px;
    margin-right: 15px;
    border-radius: 50px;
}

.btn-first:hover {
    background: linear-gradient(135deg, #e67e22, #d35400);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(243, 156, 18, 0.4);
}

/* 按钮点击波纹效果 */
.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:active::after {
    width: 300px;
    height: 300px;
}

/* 名单样式 */
.name-list {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    background-color: white;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.name-item {
    display: inline-flex;
    align-items: center;
    background-color: var(--accent-color);
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 14px;
    transition: all 0.3s ease;
    position: relative;
}

.name-item:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(52, 152, 219, 0.3);
}

.name-item span {
    cursor: pointer;
    margin-left: 8px;
    font-weight: bold;
    transition: color 0.2s;
}

.name-item span:hover {
    color: #ffdd59;
}

/* 获奖者名字标记 */
.name-item.winner-name {
    background-color: var(--special-color);
    position: relative;
}

.name-item.winner-name::before {
    content: '🏆';
    margin-right: 5px;
}

/* 奖项设置区域 */
.prize-settings {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.prize-card {
    flex: 1;
    min-width: 200px;
    max-width: 300px;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.prize-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.prize-header {
    padding: 15px;
    text-align: center;
    color: white;
}

.special-prize .prize-header {
    background: linear-gradient(135deg, var(--special-color), #c0392b);
}

.first-prize .prize-header {
    background: linear-gradient(135deg, var(--first-color), #e67e22);
}

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

.prize-header h3 {
    margin: 0;
    font-size: 20px;
}

.prize-body {
    padding: 20px;
    text-align: center;
}

.prize-count {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 15px;
}

.winner-display {
    min-height: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.winner-placeholder {
    color: #7f8c8d;
    font-style: italic;
}

/* 抽奖控制区域 */
.draw-controls {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

/* 列表操作区域 */
.list-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.file-input-wrapper {
    position: relative;
    overflow: hidden;
    display: inline-block;
}

.file-input-wrapper input[type=file] {
    position: absolute;
    left: -9999px;
}

/* 抽奖动画区域 */
.animation-section {
    margin-top: 30px;
}

.draw-animation {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.3));
    border-radius: 15px;
    backdrop-filter: blur(5px);
    min-height: 150px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.animation-container {
    text-align: center;
}

.animation-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 20px;
}

.animation-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.animation-name {
    font-size: 36px;
    font-weight: 700;
    color: var(--special-color);
    margin-bottom: 10px;
    animation: pulse 1s infinite;
}

.animation-prize {
    font-size: 20px;
    color: var(--first-color);
    font-weight: 500;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* 中奖通知 */
.notification {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.notification.show {
    opacity: 1;
    visibility: visible;
}

.notification-content {
    background: white;
    border-radius: 15px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.notification.show .notification-content {
    transform: scale(1);
}

.notification-header {
    margin-bottom: 20px;
}

.notification-icon {
    font-size: 50px;
    margin-bottom: 10px;
    display: block;
}

.notification-header h3 {
    font-size: 28px;
    color: var(--dark-color);
    margin: 0;
}

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

.winner-name {
    font-size: 32px;
    font-weight: 700;
    color: var(--special-color);
    margin-bottom: 10px;
}

.winner-prize {
    font-size: 20px;
    color: var(--first-color);
    font-weight: 500;
}

/* 动画增强效果 */
.particle {
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
}

.animated-text {
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    pointer-events: none;
    z-index: 9999;
    animation: textFade 2s ease-out forwards;
}

.firework-particle {
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    box-shadow: 0 0 10px currentColor;
}

.firework-trail {
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
}

.music-control-btn {
    animation: musicPulse 2s infinite alternate;
}

@keyframes musicPulse {
    0% {
        box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    }
    100% {
        box-shadow: 0 4px 16px rgba(231, 76, 60, 0.6);
    }
}

@keyframes textFade {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-50px) scale(1.5);
    }
}

/* 额外的年会氛围元素 */
.lantern {
    position: absolute;
    width: 40px;
    height: 60px;
    background: linear-gradient(to bottom, #e74c3c, #c0392b);
    border-radius: 20px;
    box-shadow: 0 0 20px rgba(231, 76, 60, 0.8);
    animation: swing 3s infinite ease-in-out;
}

.lantern::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 10px;
    background: #f39c12;
    border-radius: 5px;
}

.lantern::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 20px;
    background: #f39c12;
}

@keyframes swing {
    0%, 100% {
        transform: rotate(-3deg);
    }
    50% {
        transform: rotate(3deg);
    }
}

/* 烟花背景动画增强 */
.firework {
    position: absolute;
    border-radius: 50%;
    animation: fireworkAnimation 2s ease-out forwards;
}

@keyframes fireworkAnimation {
    0% {
        opacity: 1;
        transform: scale(0);
    }
    50% {
        opacity: 0.8;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(1.5);
    }
}

/* 轮盘增强动画 */
.wheel-section {
    transition: all 0.3s ease;
}

.wheel-section:hover {
    filter: brightness(1.2);
    z-index: 10;
}

/* 按钮增强动画 */
.btn {
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:active::before {
    width: 300px;
    height: 300px;
}

/* 通知增强动画 */
.notification-toast {
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* 名字列表增强动画 */
.name-item {
    transition: all 0.3s ease;
}

.name-item:hover {
    transform: translateX(5px);
}

.winner-name {
    animation: glow 1s infinite alternate;
}

@keyframes glow {
    from {
        text-shadow: 0 0 5px #f39c12;
    }
    to {
        text-shadow: 0 0 15px #f39c12, 0 0 20px #f39c12;
    }
}

/* 抽奖动画区域增强 */
#drawAnimation {
    perspective: 1000px;
}

#animationName {
    transform-style: preserve-3d;
    animation: flip 0.5s ease-in-out;
}

@keyframes flip {
    0% {
        transform: rotateY(0);
    }
    50% {
        transform: rotateY(90deg);
    }
    100% {
        transform: rotateY(0);
    }
}

/* 年会氛围装饰元素 */
.decorations {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* 灯笼装饰 */
.lantern {
  position: absolute;
  width: 60px;
  height: 80px;
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  box-shadow: 0 0 20px rgba(231, 76, 60, 0.8), inset 0 0 15px rgba(255, 255, 255, 0.3);
  animation: swing 3s ease-in-out infinite;
}

.lantern:before {
  content: '';
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 10px;
  background: #8b4513;
  border-radius: 50%;
}

.lantern:after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 15px;
  background: linear-gradient(to bottom, #ffd700, #ff8c00);
  border-radius: 0 0 50% 50%;
}

.left-lantern-1 {
  top: 10%;
  left: 5%;
  animation-delay: 0.5s;
}

.left-lantern-2 {
  top: 30%;
  left: 3%;
  animation-delay: 1.2s;
}

.right-lantern-1 {
  top: 10%;
  right: 5%;
  animation-delay: 0.8s;
}

.right-lantern-2 {
  top: 30%;
  right: 3%;
  animation-delay: 1.5s;
}

@keyframes swing {
  0%, 100% { transform: rotate(-3deg); }
  50% { transform: rotate(3deg); }
}

/* 顶部装饰 */
.top-decoration {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.decoration-item {
  font-size: 24px;
  animation: bounce 2s ease-in-out infinite;
}

.decoration-1 { animation-delay: 0.1s; }
.decoration-2 { animation-delay: 0.3s; }
.decoration-3 { animation-delay: 0.5s; }
.decoration-4 { animation-delay: 0.7s; }
.decoration-5 { animation-delay: 0.9s; }
.decoration-6 { animation-delay: 1.1s; }

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* 底部装饰 */
.bottom-decoration {
  position: absolute;
  bottom: 20px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.decoration-7 { animation-delay: 0.2s; }
.decoration-8 { animation-delay: 0.4s; }
.decoration-9 { animation-delay: 0.6s; }
.decoration-10 { animation-delay: 0.8s; }

/* 飘落的红包 */
.falling-items {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.falling-item {
  position: absolute;
  font-size: 20px;
  animation: fall linear infinite;
}

.red-packet-1 {
  left: 10%;
  animation-duration: 8s;
  animation-delay: 0s;
}

.red-packet-2 {
  left: 25%;
  animation-duration: 10s;
  animation-delay: 2s;
}

.red-packet-3 {
  left: 40%;
  animation-duration: 12s;
  animation-delay: 4s;
}

.red-packet-4 {
  left: 65%;
  animation-duration: 9s;
  animation-delay: 1s;
}

.red-packet-5 {
  left: 80%;
  animation-duration: 11s;
  animation-delay: 3s;
}

@keyframes fall {
  0% {
    top: -50px;
    transform: translateX(0) rotate(0deg);
  }
  25% {
    transform: translateX(20px) rotate(90deg);
  }
  50% {
    transform: translateX(-10px) rotate(180deg);
  }
  75% {
    transform: translateX(15px) rotate(270deg);
  }
  100% {
    top: 100%;
    transform: translateX(0) rotate(360deg);
  }
}

/* 侧边装饰 */
.side-decoration {
  position: absolute;
  top: 0;
  height: 100%;
  width: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
}

.left-side {
  left: 0;
}

.right-side {
  right: 0;
}

.side-pattern {
  width: 30px;
  height: 30px;
  background: linear-gradient(45deg, #e74c3c, #f39c12);
  border-radius: 50%;
  opacity: 0.7;
  box-shadow: 0 0 10px rgba(231, 76, 60, 0.5);
}

.pattern-1 { animation: pulse 2s infinite 0.2s; }
.pattern-2 { animation: pulse 2s infinite 0.7s; }
.pattern-3 { animation: pulse 2s infinite 1.2s; }
.pattern-4 { animation: pulse 2s infinite 0.4s; }
.pattern-5 { animation: pulse 2s infinite 0.9s; }
.pattern-6 { animation: pulse 2s infinite 1.4s; }

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.2); opacity: 0.9; }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .title-main {
        font-size: 40px;
    }
    
    .title-bg {
        font-size: 80px;
        top: -30px;
    }
    
    .wheel-wrapper {
        width: 300px;
        height: 300px;
    }
    
    .prize-settings {
        flex-direction: column;
        align-items: center;
    }
    
    .prize-card {
        width: 100%;
        max-width: 300px;
    }
    
    .draw-controls {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-special, .btn-first {
        width: 100%;
        max-width: 300px;
    }
    
    .lantern {
        width: 40px;
        height: 60px;
    }
    
    .decoration-item {
        font-size: 18px;
    }
    
    .falling-item {
        font-size: 16px;
    }
    
    .side-pattern {
        width: 20px;
        height: 20px;
    }
    
    .music-control-btn {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
}

@media (max-width: 600px) {
    .section {
        padding: 15px;
    }
    
    .title-main {
        font-size: 30px;
    }
    
    .title-sub {
        font-size: 18px;
    }
    
    .wheel-wrapper {
        width: 250px;
        height: 250px;
    }
    
    .list-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .input-group {
        flex-direction: column;
    }
    
    .input-group input[type="text"] {
        border-radius: 8px;
        margin-bottom: 10px;
    }
    
    .btn {
        border-radius: 8px;
    }
    
    .lantern {
        width: 20px;
        height: 30px;
    }
    
    .music-control-btn {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
}