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

body {
    font-family: 'Microsoft YaHei', 'Arial Black', Arial, sans-serif;
    background-color: #000;
    color: #fff;
    overflow-x: hidden;
    background: #000;
}

.container {
    min-height: 100vh;
    background-size: cover;
    background-position: top center;
    background-repeat: no-repeat;
    padding: 20px;
    position: relative;
}

/* 背景遮罩 */
.container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.85));
    z-index: -1;
}

.container > * {
    position: relative;
    z-index: 2;
}

header {
    text-align: center;
    margin-bottom: 30px;
    padding: 0;
    background: transparent;
    border-radius: 0;
    border: none;
    max-width: 100%;
    margin: 0 auto 30px;
    box-shadow: none;
}

header h1 {
    font-size: 2.5rem;
    color: #ffd700;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.9), 0 0 30px rgba(255, 215, 0, 0.5);
    margin-bottom: 15px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.user-info {
    display: flex;
    justify-content: center;
    gap: 20px;
    font-size: 1rem;
    background: rgba(0, 0, 0, 0.7);
    padding: 10px 20px;
    border-radius: 25px;
    border: 2px solid #ffd700;
    flex-wrap: wrap;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
    max-width: 800px;
    margin: 0 auto;
}

.user-info span {
    color: #fff;
    font-weight: bold;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    gap: 6px;
}

.user-info span::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #ffd700;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.8);
}

.admin-btn {
    background: linear-gradient(135deg, #ffd700, #ffaa00);
    color: #000;
    padding: 8px 20px;
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: 0 3px 12px rgba(255, 215, 0, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.admin-btn:hover {
    background: linear-gradient(135deg, #ffaa00, #ffd700);
    transform: scale(1.05);
    border-color: #fff;
    box-shadow: 0 5px 18px rgba(255, 215, 0, 0.6);
}

/* 主奖池 */
.prize-pool {
    text-align: center;
    margin-bottom: 30px;
    background: rgba(0, 0, 0, 0.8);
    padding: 15px;
    border-radius: 15px;
    border: 2px solid #2196F3;
    max-width: 1000px;
    margin: 0 auto 30px;
    box-sizing: border-box;
}

.prize-pool h2 {
    font-size: 1.5rem;
    color: #2196F3;
    margin-bottom: 15px;
    text-shadow: 0 0 10px rgba(33, 150, 243, 0.8);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.prize-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(5, auto);
    gap: 8px;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    align-items: center;
    justify-items: center;
    box-sizing: border-box;
}

/* 空占位符样式 */
.empty-space {
    background: transparent;
    border: none;
    height: 160px;
}

/* 抽奖按钮区域 */
.lottery-controls {
    grid-column: 2 / span 3;
    grid-row: 3 / span 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border: none;
    border-radius: 15px;
    padding: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    text-align: center;
    transition: all 0.3s ease;
    transform-origin: center;
    will-change: transform;
    position: relative;
    z-index: 10;
    height: 180px;
    box-sizing: border-box;
}

/* 第五行的奖品样式 */
.prize-grid > .prize-item:nth-child(n+16) {
    grid-column: auto / span 1;
    justify-self: center;
    width: 100%;
    max-width: 180px;
}

/* 抽奖信息区域 */
.lottery-info {
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 400px;
    margin-bottom: 10px;
    font-size: 1rem;
    color: #fff;
    font-weight: bold;
    padding: 10px 15px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    border: none;
    box-sizing: border-box;
}

.key-remaining {
    color: #2196F3;
    display: flex;
    align-items: center;
    gap: 6px;
    text-shadow: 0 0 10px rgba(33, 150, 243, 0.5);
}

.key-remaining::before {
    content: '🔑';
    font-size: 1.2rem;
}

.coupon-record {
    color: #ffd700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    font-size: 0.9rem;
}

.coupon-record:hover {
    color: #fff;
    transform: scale(1.05);
}

/* 全局链接样式 */
a {
    text-decoration: none;
    cursor: pointer;
}

/* 抽奖按钮容器 */
.lottery-buttons {
    display: flex;
    gap: 20px;
    margin: 10px 0;
    justify-content: center;
    flex-wrap: wrap;
}

/* 抽奖选项 */
.lottery-options {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: #fff;
    background: rgba(0, 0, 0, 0.5);
    padding: 8px 15px;
    border-radius: 8px;
    border: 1px solid rgba(33, 150, 243, 0.5);
    box-sizing: border-box;
}

.lottery-options input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: #2196F3;
    cursor: pointer;
    transform: scale(1.2);
}

.lottery-options label {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: color 0.3s ease;
}

.lottery-options label:hover {
    color: #2196F3;
}



.prize-item {
    background-image: url('/images/ep/p1-prize-item.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* border: 2px solid #2196F3; */
    border-radius: 12px;
    padding: 12px 0 0 0;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    height: 160px;
    width: 100%;
    max-width: 200px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    transform-origin: center;
    will-change: transform;
    overflow: hidden;
    color: white;
    z-index: 1;
    box-sizing: border-box;
}

/* 妮妮道具特殊背景图 */
.prize-item[data-prize-id="4"] {
    background-image: url('/images/ep/light-bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* 道具标识样式 */
.prize-item::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 10px;
    width: 120px;
    height: 50px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 5;
    pointer-events: none;
}

/* 幻神，qbz道具左上角增加图片skin-tag11.png标识 */
.prize-item[data-prize-id="8"]::before,
.prize-item[data-prize-id="5"]::before {
    background-image: url('/images/ep/skin-tag11.png');
}

/* 妮妮道具左上角增加skin-tag77.png标识 */
.prize-item[data-prize-id="4"]::before {
    background-image: url('/images/ep/skin-tag77.png');
}

/* 柯尔特道具左上角增加skin-tag44.png标识 */
.prize-item[data-prize-id="9"]::before {
    background-image: url('/images/ep/skin-tag44.png');
}

/* 烟雾弹和C4道具左上角增加skin-tag33.png标识 */
.prize-item[data-prize-id="1"]::before,
.prize-item[data-prize-id="7"]::before {
    background-image: url('/images/ep/skin-tag33.png');
}

/* 炫彩背包，击杀图标和收纳包左上角增加skin-tag55.png标识 */
.prize-item[data-prize-id="6"]::before,
.prize-item[data-prize-id="2"]::before,
.prize-item[data-prize-id="3"]::before {
    background-image: url('/images/ep/skin-tag55.png');
}

/* 奖品卡片悬停效果 */
.prize-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(33, 150, 243, 0.6);
    border-color: #fff;
    z-index: 2;
}

/* 积分道具特殊样式 */
.prize-item[data-prize-id="10"],
.prize-item[data-prize-id="11"],
.prize-item[data-prize-id="12"],
.prize-item[data-prize-id="13"],
.prize-item[data-prize-id="14"],
.prize-item[data-prize-id="15"] {
    background-image: url('/images/ep/p1-prize-item.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* border-color: #ffd700; */
    color: #000;
}

/* 积分道具文字样式 - 保持与其他道具一致 */
.prize-item[data-prize-id="10"] div,
.prize-item[data-prize-id="11"] div,
.prize-item[data-prize-id="12"] div,
.prize-item[data-prize-id="13"] div,
.prize-item[data-prize-id="14"] div,
.prize-item[data-prize-id="15"] div {
    background: transparent;
    color: #fff;
    border: none;
    text-shadow: none;
    min-width: auto;
}

/* 积分道具轮动时的特殊样式增强 */
.prize-item[data-prize-id="10"].spinning,
.prize-item[data-prize-id="11"].spinning,
.prize-item[data-prize-id="12"].spinning,
.prize-item[data-prize-id="13"].spinning,
.prize-item[data-prize-id="14"].spinning,
.prize-item[data-prize-id="15"].spinning {
    border-color: #ffd700 !important;
    box-shadow: 0 25px 60px rgba(255, 215, 0, 1), 0 0 40px rgba(255, 215, 0, 0.8) !important;
    filter: brightness(1.4) !important;
}

/* 奖品名称样式增强 */
.prize-item p {
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 0;
    color: #fff;
    line-height: 1.3;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.9);
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.7);
    padding: 10px 15px;
    border-radius: 8px;
    border: 1px solid rgba(33, 150, 243, 0.5);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 1;
    flex-grow: 0;
    text-align: center;
    width: 100%;
    max-width: 190px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    white-space: normal;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

/* 奖品卡片背景装饰 */
.prize-item::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: -50px;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 0;
}

.prize-item:hover::after {
    transform: scale(1.5);
    opacity: 0.5;
}

/* 奖品卡片流光效果 */
.prize-item .shine-effect {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
    z-index: 0;
}

/* 抽奖轮动动画 */
@keyframes lotterySpin {
    0% {
        transform: scale(1);
        border-color: #ffd700;
        box-shadow: 0 10px 30px rgba(255, 215, 0, 0.6), 0 0 20px rgba(255, 215, 0, 0.4);
        filter: brightness(1.1);
        border-width: 4px;
    }
    50% {
        transform: scale(1.1);
        border-color: #ffd700;
        box-shadow: 0 20px 50px rgba(255, 215, 0, 0.9), 0 0 35px rgba(255, 215, 0, 0.7);
        filter: brightness(1.3);
        border-width: 5px;
    }
    100% {
        transform: scale(1);
        border-color: #ffd700;
        box-shadow: 0 10px 30px rgba(255, 215, 0, 0.6), 0 0 20px rgba(255, 215, 0, 0.4);
        filter: brightness(1.1);
        border-width: 4px;
    }
}

/* 轮动动画类 */
.prize-item.spinning {
    animation: lotterySpin 0.3s ease-in-out;
    z-index: 10;
    border-color: #ffd700 !important;
    box-shadow: 0 15px 40px rgba(255, 215, 0, 0.8), 0 0 30px rgba(255, 215, 0, 0.6) !important;
    filter: brightness(1.2) !important;
    border-width: 4px !important;
    border-style: solid !important;
}

/* 中奖动画 */
@keyframes lotteryWin {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.3);
        border-color: #ff0066;
        box-shadow: 0 0 50px rgba(255, 0, 102, 0.8);
    }
    100% {
        transform: scale(1.1);
        border-color: #ffd700;
        box-shadow: 0 10px 30px rgba(255, 215, 0, 0.6);
    }
}

/* 中奖状态类 */
.prize-item.winning {
    animation: lotteryWin 1s ease-in-out forwards;
    transform: scale(1.1);
    border-color: #ffd700;
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.6);
}

.prize-item img {
    width: 100%;
    max-width: 160px;
    height: auto;
    aspect-ratio: 1.5 / 1;
    object-fit: contain;
    margin-bottom: auto;
    transition: transform 0.3s ease, filter 0.3s ease;
    filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.6));
    display: block;
    flex-shrink: 0;
    background: none;
    transform-origin: center;
    will-change: transform;
    position: relative;
    z-index: 1;
    flex-grow: 1;
}

.prize-item:hover img {
    transform: scale(1.1);
    filter: drop-shadow(0 5px 15px rgba(33, 150, 243, 0.5));
}

.prize-item div {
    font-size: 1rem;
    font-weight: bold;
    margin: 5px 0 0 0;
    color: #fff;
    line-height: 1.4;
    text-shadow: none;
    min-height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    padding: 8px 0;
    border-radius: 0;
    border: none;
    box-shadow: none;
    position: relative;
    z-index: 1;
    flex-grow: 0;
    text-align: center;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    white-space: normal;
    align-self: stretch;
}

/* 抽奖按钮 */


.lottery-btn {
    padding: 15px 35px;
    font-size: 1.2rem;
    font-weight: 900;
    border: 3px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    z-index: 2;
    color: white;
    width: 100%;
    max-width: 180px;
    box-sizing: border-box;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.8);
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    /* 移除transform过渡效果，避免按钮点击导致页面闪烁 */
    transition: none;
}

/* 移除:active样式，避免按钮点击导致页面闪烁 */

.lottery-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* 抽1次按钮 - 蓝色 */
.lottery-btn.single {
    background: linear-gradient(135deg, #2196F3, #0b7dda);
    background-size: 100% 100%;
    box-shadow: 
        0 6px 20px rgba(33, 150, 243, 0.6),
        inset 0 2px 5px rgba(255, 255, 255, 0.3),
        0 0 15px rgba(33, 150, 243, 0.3);
    border-color: rgba(33, 150, 243, 0.8);
}

/* 抽10次按钮 - 金色 */
.lottery-btn.multi {
    background: linear-gradient(135deg, #ffd700, #ffaa00);
    background-size: 100% 100%;
    box-shadow: 
        0 6px 20px rgba(255, 215, 0, 0.6),
        inset 0 2px 5px rgba(255, 255, 255, 0.3),
        0 0 15px rgba(255, 215, 0, 0.3);
    border-color: rgba(255, 215, 0, 0.8);
    color: #000;
    text-shadow: 0 2px 5px rgba(255, 255, 255, 0.8);
}









/* 抽奖钥匙购买 */
.key-purchase {
    text-align: center;
    background: rgba(0, 0, 0, 0.8);
    padding: 15px 20px;
    border-radius: 15px;
    border: 2px solid #2196F3;
    max-width: 1100px;
    margin: 0 auto 30px;
    box-shadow: 0 5px 20px rgba(33, 150, 243, 0.3);
}

.key-purchase h2 {
    font-size: 1.5rem;
    color: #2196F3;
    margin-bottom: 10px;
    text-shadow: 0 0 10px rgba(33, 150, 243, 0.8);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* 钥匙信息区域 */
.key-info {
    background: rgba(33, 150, 243, 0.3);
    padding: 10px 20px;
    border-radius: 20px;
    border: 2px solid #2196F3;
    margin: 0 auto 15px;
    max-width: 850px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.5);
    z-index: 3;
    position: relative;
    color: #fff;
    font-weight: bold;
}

.remaining-keys {
    font-size: 1rem;
    font-weight: bold;
    color: #2196F3;
    text-shadow: 0 0 10px rgba(33, 150, 243, 0.8);
}

#remaining-keys-count {
    color: #ffd700;
    font-size: 1.2rem;
    margin: 0 5px;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.9);
}

.key-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    max-width: 850px;
    margin: 0 auto 15px;
}

.key-item {
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.2), rgba(33, 150, 243, 0.1));
    border: 2px solid #2196F3;
    border-radius: 12px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    font-size: 1rem;
    font-weight: bold;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
    transform-origin: center;
    will-change: transform;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.key-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
    z-index: 1;
}

.key-item:hover {
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.3), rgba(33, 150, 243, 0.2));
    transform: translateY(-5px);
    border-color: #fff;
    box-shadow: 0 10px 25px rgba(33, 150, 243, 0.6);
}

.key-item:hover::before {
    left: 100%;
}

.key-name {
    display: block;
    margin-bottom: 8px;
    font-size: 1rem;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.9);
    position: relative;
    z-index: 2;
}

.key-price {
    color: #2196F3;
    font-size: 1.3rem;
    margin-right: 8px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.9);
    position: relative;
    z-index: 2;
}

.key-count {
    font-size: 0.9rem;
    color: #ffaa00;
    position: relative;
    z-index: 2;
}

.coupon-info {
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.2), rgba(33, 150, 243, 0.1));
    padding: 15px 20px;
    border-radius: 12px;
    border: 2px solid #2196F3;
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    box-shadow: inset 0 0 20px rgba(33, 150, 243, 0.1);
    font-size: 0.9rem;
}

.buy-btn {
    background: linear-gradient(135deg, #2196F3, #0b7dda);
    color: white;
    padding: 10px 25px;
    border: 2px solid transparent;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 5px 15px rgba(33, 150, 243, 0.5);
}

.buy-btn:hover {
    background: linear-gradient(135deg, #0b7dda, #2196F3);
    transform: scale(1.05);
    border-color: #fff;
    box-shadow: 0 6px 20px rgba(33, 150, 243, 0.8);
}

/* 积分兑换 */
.exchange-section {
    text-align: center;
    margin-bottom: 40px;
    background: rgba(0, 0, 0, 0.8);
    padding: 25px;
    border-radius: 15px;
    border: 2px solid #ff6b00;
    max-width: 1100px;
    margin: 0 auto 40px;
    position: relative;
    box-sizing: border-box;
}

/* 我的积分样式 */
.my-points {
    position: absolute;
    top: 15px;
    left: 25px;
    font-size: 1.2rem;
    font-weight: bold;
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.8);
    background: rgba(0, 0, 0, 0.7);
    padding: 8px 15px;
    border-radius: 8px;
    border: 1px solid rgba(255, 215, 0, 0.5);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.exchange-section h2 {
    font-size: 2rem;
    color: #ff6b00;
    margin-bottom: 25px;
    text-shadow: 0 0 10px rgba(255, 107, 0, 0.8);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 0;
}

.exchange-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    max-width: 1050px;
    margin: 0 auto;
}

.exchange-item {
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.2), rgba(33, 150, 243, 0.1));
    border: 2px solid #2196F3;
    border-radius: 15px;
    padding: 15px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform-origin: center;
    will-change: transform;
}

.exchange-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.exchange-item:hover {
    transform: translateY(-8px);
    border-color: #fff;
    box-shadow: 0 12px 30px rgba(33, 150, 243, 0.6);
}

.exchange-item:hover::before {
    left: 100%;
}

.exchange-item img {
    width: 100%;
    max-width: 180px;
    height: 160px;
    object-fit: contain;
    margin-bottom: 10px;
    transition: transform 0.3s ease, filter 0.3s ease;
    filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.6));
    display: block;
    flex-shrink: 0;
    background: none;
    transform-origin: center;
    will-change: transform;
    position: relative;
    z-index: 1;
}

.exchange-item:hover img {
    transform: scale(1.2);
    filter: drop-shadow(0 5px 15px rgba(33, 150, 243, 0.5));
}

.exchange-item p {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: #fff;
    line-height: 1.4;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.9);
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.7);
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid rgba(33, 150, 243, 0.5);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 1;
    flex-grow: 0;
    text-align: center;
    width: 100%;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.exchange-stock {
    display: none;
}

.exchange-btn {
    border-radius: 5px;
    background: linear-gradient(135deg, #ffd700, #ffaa00);
    color: #000;
    padding: 15px 30px;
    border: none;
    font-size: 1.3rem;
    font-weight: 900;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
    position: relative;
    overflow: hidden;
    width: 100%;
    margin-top: 10px;
    text-align: center;
    line-height: 1.2;
}

.exchange-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.3s ease;
}

.exchange-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.6);
    background: linear-gradient(135deg, #ffaa00, #ffd700);
}

.exchange-btn:hover::before {
    left: 100%;
}

.exchange-btn:active {
    transform: scale(0.98);
}

/* 我的暂存箱 */
.storage-section {
    text-align: center;
    margin-bottom: 40px;
    background: rgba(0, 0, 0, 0.8);
    padding: 25px;
    border-radius: 15px;
    border: 2px solid #ffd700;
    max-width: 1100px;
    margin: 0 auto 40px;
}

.storage-section h2 {
    font-size: 2rem;
    color: #ffd700;
    margin-bottom: 25px;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.8);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.storage-container {
    max-width: 1050px;
    margin: 0 auto;
    overflow-x: auto;
}

.storage-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid #ffd700;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
}

.storage-table th {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.3), rgba(255, 165, 0, 0.2));
    color: #fff;
    font-weight: bold;
    padding: 15px;
    text-align: center;
    border-bottom: 2px solid #ffd700;
}

/* 分解按钮样式 */
.decompose-btn {
    background: linear-gradient(135deg, #ffd700, #ffaa00);
    color: #000;
    padding: 8px 16px;
    border: none;
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 3px 10px rgba(255, 215, 0, 0.4);
    position: relative;
    overflow: hidden;
}

.decompose-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.3s ease;
}

.decompose-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.6);
    background: linear-gradient(135deg, #ffaa00, #ffd700);
}

.decompose-btn:hover::before {
    left: 100%;
}

.decompose-btn:active {
    transform: scale(0.98);
}

.storage-table th,
.storage-table td {
    font-size: 1.1rem;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.9);
}

.storage-table td {
    padding: 15px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 215, 0, 0.3);
    color: #fff;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.9);
    vertical-align: middle;
    white-space: normal;
    word-wrap: break-word;
    line-height: 1.5;
}

.storage-table tbody tr {
    background: rgba(255, 215, 0, 0.1);
    transition: all 0.3s ease;
    height: auto;
}

.storage-table tbody tr:hover {
    background: rgba(255, 215, 0, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

.storage-table tbody tr:last-child td {
    border-bottom: none;
}

.storage-table img {
    width: 80px;
    height: auto;
    max-height: 120px;
    object-fit: contain;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.6));
    display: block;
    margin: 0 auto;
}

.storage-table tbody tr:hover img {
    transform: scale(1.1);
}

/* 分页控件样式 */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid #ffd700;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
}

.pagination-btn {
    background: linear-gradient(135deg, #ffd700, #ffaa00);
    color: #000;
    padding: 10px 20px;
    border: 2px solid transparent;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}

.pagination-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #ffaa00, #ffd700);
    transform: scale(1.05);
    border-color: #fff;
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.6);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.page-numbers {
    display: flex;
    gap: 8px;
}

.page-number {
    background: rgba(255, 215, 0, 0.2);
    color: #fff;
    padding: 8px 15px;
    border: 2px solid #ffd700;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 40px;
    text-align: center;
}

.page-number:hover:not(.active) {
    background: rgba(255, 215, 0, 0.3);
    transform: translateY(-2px);
}

.page-number.active {
    background: linear-gradient(135deg, #ffd700, #ffaa00);
    color: #000;
    border-color: #fff;
    box-shadow: 0 3px 10px rgba(255, 215, 0, 0.6);
}

.page-info {
    color: #fff;
    font-size: 1rem;
    font-weight: bold;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.9);
}

/* 中奖记录 */
.winning-records {
    text-align: center;
    margin-bottom: 30px;
}

.winning-records h2 {
    font-size: 1.8rem;
    color: #ff6b00;
    margin-bottom: 20px;
    text-shadow: 0 0 8px rgba(255, 107, 0, 0.6);
}

.records-list {
    background-color: rgba(0, 0, 0, 0.7);
    border: 2px solid #ff6b00;
    border-radius: 15px;
    padding: 20px;
    max-width: 1000px;
    margin: 0 auto;
    max-height: 300px;
    overflow-y: auto;
    text-align: left;
}

.record-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 12px;
    margin-bottom: 10px;
    border-radius: 8px;
    border-left: 4px solid #ff6b00;
    font-size: 0.95rem;
}

.record-item:last-child {
    margin-bottom: 0;
}

/* 弹窗 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    opacity: 1;
}

.modal-content {
    background-color: rgba(0, 0, 0, 0.8);
    margin: 5% auto;
    padding: 30px;
    border: 3px solid #ff6b00;
    border-radius: 20px;
    width: 90%;
    max-width: 1000px;
    text-align: center;
    position: relative;
    box-sizing: border-box;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-50px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.modal.show .modal-content {
    opacity: 1;
    transform: translateY(0);
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    right: 20px;
    top: 15px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: #fff;
}

.modal-content h3 {
    color: #ff6b00;
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.result-content {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 15px;
    align-items: center;
    justify-items: center;
    max-width: 100%;
    margin: 0 auto;
    padding: 10px;
    box-sizing: border-box;
}

/* 单次抽奖特殊处理 */
.result-content:has(> .winning-prize:only-child) {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

/* 响应式设计 */
@media (max-width: 900px) {
    .result-content {
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .result-content {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(4, 1fr);
    }
    
    .modal-content {
        width: 95%;
        max-width: 95%;
        padding: 20px;
    }
}

@media (max-width: 500px) {
    .result-content {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(5, 1fr);
    }
    
    .winning-prize {
        max-width: 120px;
    }
    
    .winning-prize img {
        width: 60px;
        height: 60px;
    }
    
    .winning-prize p {
        font-size: 0.8rem;
    }
}

.winning-prize {
    background-color: rgba(255, 107, 0, 0.2);
    padding: 15px;
    border-radius: 12px;
    border: 2px solid #ff6b00;
    text-align: center;
    max-width: 160px;
    width: 100%;
    box-sizing: border-box;
}

.winning-prize img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 10px;
}

.winning-prize p {
    font-size: 0.9rem;
    font-weight: bold;
    color: #fff;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    min-height: 36px;
}

/* 自定义提示框 */
.custom-alert {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.custom-alert.show {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
}

.custom-alert-content {
    background-color: rgba(0, 0, 0, 0.95);
    padding: 30px;
    border: 3px solid #ff6b00;
    border-radius: 20px;
    width: 80%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(255, 107, 0, 0.5);
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* 反馈内容弹窗特殊样式 */
.feedback-content {
    max-width: 80%;
    width: 80%;
    text-align: left;
}

.custom-alert.show .custom-alert-content {
    opacity: 1;
    transform: translateY(0);
}

.custom-alert-content h3 {
    color: #ff6b00;
    font-size: 1.5rem;
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(255, 107, 0, 0.8);
    font-weight: bold;
}

.custom-alert-content p {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 25px;
    line-height: 1.5;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.9);
}

.alert-btn {
    background: linear-gradient(135deg, #ff6b00, #ff8c00);
    color: white;
    padding: 12px 35px;
    border: 2px solid transparent;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 6px 20px rgba(255, 107, 0, 0.5);
    transform-origin: center;
}

.alert-btn:hover {
    background: linear-gradient(135deg, #ff8c00, #ff6b00);
    transform: scale(1.05);
    border-color: #fff;
    box-shadow: 0 8px 25px rgba(255, 107, 0, 0.8);
}

.alert-btn:active {
    transform: scale(0.98);
}

/* 确认弹窗按钮容器 */
.confirm-btn-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 25px;
}

/* 取消按钮样式 */
.cancel-btn {
    background: linear-gradient(135deg, #6c757d, #5a6268);
    box-shadow: 0 6px 20px rgba(108, 117, 125, 0.5);
}

.cancel-btn:hover {
    background: linear-gradient(135deg, #5a6268, #6c757d);
    box-shadow: 0 8px 25px rgba(108, 117, 125, 0.8);
}

/* 确定按钮样式 - 保持原有橙色 */
.confirm-btn {
    background: linear-gradient(135deg, #ff6b00, #ff8c00);
    box-shadow: 0 6px 20px rgba(255, 107, 0, 0.5);
}

.confirm-btn:hover {
    background: linear-gradient(135deg, #ff8c00, #ff6b00);
    box-shadow: 0 8px 25px rgba(255, 107, 0, 0.8);
}

/* 反馈相关样式 */
.feedback-btn-container {
    text-align: center;
    margin: 20px 0;
}

.feedback-btn {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    padding: 12px 35px;
    border: 2px solid transparent;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.5);
    transform-origin: center;
}

.feedback-btn:hover {
    background: linear-gradient(135deg, #45a049, #4CAF50);
    transform: scale(1.05);
    border-color: #fff;
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.8);
}

.feedback-content {
    max-width: 80%;
    width: 80%;
    padding: 20px;
    min-height: 60vh;
    max-height: 90vh;
    height: auto;
    overflow-y: hidden;
}

.feedback-content h3 {
    margin-bottom: 20px;
    text-align: center;
}

.form-group {
    margin-bottom: 15px;
    text-align: left;
}

.form-group label {
    display: block;
    color: #ff6b00;
    font-weight: bold;
    margin-bottom: 6px;
    text-shadow: 0 0 5px rgba(255, 107, 0, 0.5);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 2px solid #333;
    border-radius: 8px;
    background-color: #1a1a1a;
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ff6b00;
    box-shadow: 0 0 15px rgba(255, 107, 0, 0.5);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
    max-height: 200px;
    font-family: inherit;
}

.form-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    padding: 15px 0 0 0;
    /* border-top: 1px solid rgba(255, 107, 0, 0.3); */
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .user-info {
        flex-direction: column;
        gap: 10px;
    }
    
    .prize-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(8, 1fr);
        gap: 10px;
        padding: 15px;
    }
    
    .exchange-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 15px;
    }
    
    .lottery-controls {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .lottery-btn {
        width: 200px;
        padding: 12px 30px;
        font-size: 1.2rem;
    }
    
    .key-grid {
        grid-template-columns: 1fr;
    }
    
    .coupon-info {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.5rem;
    }
    
    .prize-item img {
        width: 60px;
        height: 60px;
    }
    
    .prize-item p {
        font-size: 0.8rem;
    }
}