/* 转盘容器 */
.lottery-wheel-container {
    display: flex;
    gap: 30px;
    margin: 30px 0;
    flex-wrap: wrap;
}

/* 转盘区域 */
.lottery-wheel-area {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 转盘画布容器 */
.lottery-canvas-wrapper {
    position: relative;
    width: 400px;
    height: 400px;
    margin: 20px auto;
}

/* 转盘画布 */
#lotteryCanvas {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* 转盘中心指针 */
.lottery-pointer {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #2196F3, #1976D2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.4);
    z-index: 10;
}

.lottery-pointer i {
    color: white;
    font-size: 32px;
}

/* 转盘顶部指针 */
.lottery-top-pointer {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-top: 30px solid #FF5722;
    z-index: 11;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

/* 奖项设置区域 */
.lottery-prize-area {
    flex: 1;
    min-width: 300px;
}

/* 奖项输入组 */
.lottery-input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.lottery-input-group .input1 {
    flex: 1;
    width: auto;
}

/* 奖项列表 */
.lottery-prize-list {
    max-height: 300px;
    overflow-y: auto;
    border: 2px solid #e0e3eb;
    border-radius: 8px;
    padding: 10px;
    background: #f8f9fa;
}

.lottery-prize-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: white;
    border-radius: 6px;
    margin-bottom: 8px;
    transition: all 0.3s;
    border: 1px solid #e0e3eb;
}

.lottery-prize-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transform: translateX(3px);
}

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

.lottery-prize-name {
    flex: 1;
    font-size: 14px;
    color: #333;
}

.lottery-prize-delete {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: all 0.3s;
}

.lottery-prize-delete:hover {
    color: #f44336;
    background: #ffebee;
}

/* 结果展示区域 */
.lottery-result-area {
    text-align: center;
    margin: 30px 0;
}

.lottery-result-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
    margin-bottom: 20px;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lottery-result-text {
    font-size: 28px;
    font-weight: 700;
    text-align: center;
}

/* 历史记录区域 */
.lottery-history-area {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px dashed #e0e3eb;
}

.lottery-history-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.lottery-history-title i {
    color: #2196F3;
}

.lottery-history-list {
    max-height: 200px;
    overflow-y: auto;
    border: 2px solid #e0e3eb;
    border-radius: 8px;
    padding: 10px;
    background: #f8f9fa;
}

.lottery-history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: white;
    border-radius: 6px;
    margin-bottom: 8px;
    font-size: 13px;
    border: 1px solid #e0e3eb;
}

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

.lottery-history-time {
    color: #999;
    font-size: 12px;
}

.lottery-history-prize {
    color: #2196F3;
    font-weight: 600;
}

/* 空状态提示 */
.lottery-empty-tip {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    font-size: 14px;
}

.lottery-empty-tip i {
    font-size: 48px;
    color: #ddd;
    margin-bottom: 10px;
}

/* 停止模式选择 */
.lottery-stop-mode-area {
    margin: 20px 0;
}

.lottery-mode-options {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.lottery-mode-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: #f8f9fa;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid #e0e3eb;
}

.lottery-mode-option:hover {
    background: #e3f2fd;
    border-color: #2196F3;
}

.lottery-mode-option input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.lottery-mode-option span {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.lottery-mode-option input[type="radio"]:checked + span {
    color: #2196F3;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .lottery-wheel-container {
        flex-direction: column;
    }
    
    .lottery-canvas-wrapper {
        width: 300px;
        height: 300px;
    }
    
    .lottery-result-text {
        font-size: 22px;
    }
    
    .lottery-input-group {
        flex-direction: column;
    }
    
    .lottery-input-group button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .lottery-canvas-wrapper {
        width: 250px;
        height: 250px;
    }
    
    .lottery-pointer {
        width: 50px;
        height: 50px;
    }
    
    .lottery-pointer i {
        font-size: 28px;
    }
    
    .lottery-result-text {
        font-size: 18px;
    }
}