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

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    gap: 20px;
}

.main-content {
    flex: 1;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* 统计信息样式 */
.stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: 30px;
    padding: 20px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.stat-item {
    text-align: center;
    color: white;
}

.stat-label {
    font-size: 14px;
    font-weight: normal;
    display: block;
    margin-bottom: 5px;
}

.stat-value {
    font-size: 28px;
    font-weight: bold;
    display: block;
}

/* 盲盒网格样式 */
.box-grid {
    display: grid;
    gap: 15px;
    justify-content: center;
}

.box {
    position: relative;
    aspect-ratio: 1;
    cursor: pointer;
    transition: transform 0.3s ease;
    background: white;
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.box:hover:not(.opened) {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.box.opened {
    cursor: default;
    background: #f0f0f0;
}

.box-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.box-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.prize-text {
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: #4CAF50;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    white-space: nowrap;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    animation: prizeAppear 0.5s ease;
}

.box.opened .prize-text {
    background: #ff9800;
}

.box.opened .prize-text:empty::after {
    content: '空奖';
}

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

.box-number {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: bold;
}

/* 中奖记录侧边栏样式 */
.records-sidebar {
    width: 300px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-height: calc(100vh - 40px);
    display: flex;
    flex-direction: column;
}

.records-sidebar h3 {
    text-align: center;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #667eea;
    font-size: 20px;
}

.records-list {
    flex: 1;
    overflow-y: auto;
    padding-right: 5px;
}

.records-list::-webkit-scrollbar {
    width: 6px;
}

.records-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.records-list::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 10px;
}

.record-item {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 15px;
    margin-bottom: 10px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    animation: recordAppear 0.5s ease;
}

.record-item.empty {
    background: linear-gradient(135deg, #bdc3c7 0%, #95a5a6 100%);
}

@keyframes recordAppear {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.record-box {
    display: block;
    font-size: 12px;
    opacity: 0.9;
    margin-bottom: 5px;
}

.record-prize {
    display: block;
    font-size: 16px;
    font-weight: bold;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .container {
        flex-direction: column;
    }
    
    .records-sidebar {
        width: 100%;
        max-height: 300px;
    }
}

@media (max-width: 768px) {
    .stats {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .stat-item {
        flex: 1 1 45%;
    }
    
    .box-grid {
        gap: 10px;
    }
}