/**
 * 自定义抽签工具样式
 */

/* 容器 */
.lottery-container {
    margin: 20px 0;
}

.input-section {
    margin-bottom: 30px;
}

/* 选项输入区域 */
.option-input-area {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 15px 0;
}

.option-input-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.option-input-row input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.option-input-row input:focus {
    border-color: #667eea;
    outline: none;
}

/* 删除按钮 */
.remove-option-btn {
    padding: 8px 15px;
    background-color: #ff4757;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
    font-size: 13px;
}

.remove-option-btn:hover {
    background-color: #ee5a6f;
}

/* 添加选项按钮 */
.add-option-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
    font-size: 14px;
}

.add-option-btn:hover {
    background-color: #45a049;
}

/* 抽取数量选择器 */
.count-selector {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 15px 0;
    flex-wrap: wrap;
}

.count-selector label {
    font-weight: bold;
}

.count-selector input {
    width: 80px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    text-align: center;
}

.count-selector input:focus {
    border-color: #667eea;
    outline: none;
}

/* 按钮组 */
.btn-group {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 30px 0;
    flex-wrap: wrap;
}

/* 主按钮 - 抽签 */
.lottery-btn {
    padding: 15px 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.lottery-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.lottery-btn:active {
    transform: translateY(0);
}

/* 次要按钮 */
.secondary {
    padding: 15px 30px;
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.secondary:hover {
    background: #5a6268;
}

/* 结果区域 */
.result-section {
    margin-top: 40px;
}

.result-display {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    min-height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.result-title {
    font-size: 18px;
    color: #555;
    margin-bottom: 20px;
    font-weight: bold;
}

.result-items {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.result-item {
    background: white;
    padding: 20px 30px;
    border-radius: 8px;
    font-size: 24px;
    font-weight: bold;
    color: #667eea;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    animation: fadeInUp 0.5s ease-out;
}

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

/* 错误信息 */
.error-message {
    color: #ff4757;
    margin: 10px 0;
    font-weight: bold;
    padding: 10px;
    background: #fff5f5;
    border-radius: 4px;
    border-left: 3px solid #ff4757;
}

/* 快捷填充区域 */
.quick-fill-section {
    margin: 15px 0;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.quick-fill-section label {
    font-weight: bold;
    margin-bottom: 10px;
    display: block;
    color: #555;
}

.quick-fill-btn {
    margin: 5px;
    padding: 8px 15px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
    font-size: 13px;
}

.quick-fill-btn:hover {
    background-color: #2980b9;
}

/* 统计信息 */
.statistics {
    margin-top: 20px;
    padding: 15px;
    background-color: #f1f3f5;
    border-radius: 8px;
}

.statistics p {
    margin: 5px 0;
    color: #666;
}

/* 提示文字 */
.hint-text {
    color: #888;
    font-size: 13px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .option-input-row {
        flex-wrap: wrap;
    }
    
    .option-input-row input {
        min-width: 200px;
    }
    
    .remove-option-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .lottery-btn {
        padding: 12px 30px;
        font-size: 14px;
    }
    
    .result-item {
        padding: 15px 20px;
        font-size: 20px;
    }
    
    .quick-fill-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
}
