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

html,
body {
    margin: 0;
    padding: 0;
    font-family: "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
    position: relative;
    cursor:
        url("../img/鼠标移动1.png") 16 16,
        auto;
}

.container {
    width: 100vw;
    height: 100vh;
    position: relative;
    background-image: url("../img/4背景.jpg");
    background-size: 100% 100%;
    background-position: center;
}

/* 左侧抽奖机区域 */
.left-section {
    position: absolute;
    left: 0;
    top: 0;
    width: 50%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    padding: 40px;
    z-index: 10;
}

.slots-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 31px;
    width: 483px;
    height: 425px;
    position: absolute;
    top: 44.75%;
    left: 56.8%;
    transform: translate(-50%, -50%);
}

.slot {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border-radius: 5px;
    width: 138px;
    height: 122px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

.slot.selected {
    /* 移除背景图，使用 slot-content 中的图片 */
    border: 3px solid #ffd700;
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.6);
}

.slot-content {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
}

.slot-content img {
    width: 80%;
    height: 80%;
    object-fit: contain;
}

.machine-footer {
    display: flex;
    justify-content: center;
    align-items: center;
}

.draw-button {
    width: 284px;
    height: 58px;
    position: absolute;
    overflow: hidden;
    bottom: 23%;
    right: 29%;
    border: none;
    background: transparent;
    cursor:
        url("../img/鼠标移动1.png") 16 16,
        auto;
}

.draw-button:after,
.draw-button:before {
    border: none;
}

.draw-button:disabled {
    opacity: 0.6;
    transform: none;
}

/* 右侧信息区域 */
.right-section {
    position: absolute;
    top: 0;
    height: 100%;
    display: flex;
    right: 115px;
    width: 40%;
    flex-direction: column;
    padding: 40px;
    padding-left: 0;
    z-index: 10;
    justify-content: space-between;
}

.qr-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 210px;
    margin-bottom: 10px;
}

.qr-frame {
    position: relative;
    width: 160px;
    height: 160px;
    margin-bottom: 10px;
}

.qr-bg {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.qr-code-placeholder {
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 10px;
    transform: translate(-50%, -50%);
    width: 140px;
    height: 140px;
    display: flex;
    overflow: hidden;
    align-items: center;
    justify-content: center;
}

.qr-code-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.qr-instruction {
    text-align: center;
    color: #fff;
    font-size: 18px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.winner-list-section {
    flex: 1;
    display: flex;
}

.winner-list-container {
    width: 100%;
    border-radius: 15px;
    padding: 0 20px;
    position: relative;
    background-image: url("../img/1中奖名单.png");
    background-size: cover;
}

.winner-list-header {
    text-align: center;
    margin-bottom: 25px;
}

.winner-list-header h2 {
    font-size: 32px;
    color: #8b4513;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.winner-list-content {
    height: 370px;
    overflow-y: hidden; /* 隐藏滚动条，使用自动滚动 */
    position: relative;
    scroll-behavior: smooth; /* 平滑滚动 */
}

.winner-item {
    padding: 12px 15px;
    margin-bottom: 8px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    font-size: 20px;
    color: #333;
    text-align: center;
    animation: slideIn 0.5s ease-out;
    border-left: 4px solid #ff0000;
}

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

/* 动画效果 */
@keyframes twinkle {
    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(0.9);
    }
}

@keyframes glow {
    0%,
    100% {
        text-shadow:
            3px 3px 6px rgba(0, 0, 0, 0.5),
            0 0 20px rgba(255, 215, 0, 0.8);
    }
    50% {
        text-shadow:
            3px 3px 6px rgba(0, 0, 0, 0.5),
            0 0 40px rgba(255, 215, 0, 1),
            0 0 60px rgba(255, 215, 0, 0.8);
    }
}

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

/* 滚动条样式 */
.winner-list-content::-webkit-scrollbar {
    width: 8px;
}

.winner-list-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

.winner-list-content::-webkit-scrollbar-thumb {
    background: #ff0000;
    border-radius: 4px;
}

.winner-list-content::-webkit-scrollbar-thumb:hover {
    background: #cc0000;
}
