.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    
    /* 👑 修复：改成 flex: 1，或者干脆删掉这行，让它继承 main.css 的全局拉伸 */
    flex: 1; 
    width: 100%;
}

.panel {
    width: 100%;
    padding: 20px;
}

.panel-header {
    border-bottom: 2px solid #c2d1e5;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

/* --- 文件上传区域 --- */
.upload-area {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    background: #f9f9f9;
    padding: 15px;
    border: 1px dashed #c2d1e5;
}

input[type="file"] {
    font-size: 14px;
}

/* --- 🎰 老虎机抽取区域（代替原本的转盘） --- */
.slot-machine-container {
    width: 100%;
    max-width: 600px;
    margin: 30px auto;
    background: #fff;
    border: 3px solid #003366;
    border-radius: 8px;
    padding: 20px;
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
    transition: background-color 0.3s;
}

.slots-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    width: 100%;
    overflow: hidden; /* 保证不超出父组件 */
}

.slot-box {
    flex: 1 1 0; /* 平分空间，不被挤压 */
    min-width: 0; /* 允许文本缩放 */
    height: 80px;
    background: #f4f7fa;
    border: 2px solid #c2d1e5;
    border-radius: 6px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px; /* 最大30号 */
    font-weight: bold;
    color: #003366;
    overflow: hidden;
    white-space: nowrap;
    user-select: none;
}

/* 文字自适应容器大小 */
.slot-box span {
    display: inline-block;
    max-width: 100%;
    font-size: inherit; /* 继承自.slot-box */
}

/* 🎰 品质光效闪烁动效 */
.flash-effect {
    animation: flashBorder 0.25s infinite alternate;
}

@keyframes flashBorder {
    from {
        box-shadow: 0 0 5px var(--flash-color), inset 0 0 5px var(--flash-color);
        border-color: var(--flash-color);
    }
    to {
        box-shadow: 0 0 25px var(--flash-color), inset 0 0 15px var(--flash-color);
        border-color: #fff;
    }
}

/* --- 结果与控制区域 --- */
.result-section {
    text-align: center;
    margin-top: 10px;
}

.result-title {
    font-size: 18px;
    font-weight: bold;
    color: #d9534f;
    margin: 15px 0;
    min-height: 24px;
}

.action-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    .slot-box {
        height: 60px;
        font-size: 24px;
    }
}