/* 增强版商品管理样式 - 规格价格版本 */

/* 规格组样式 */
.spec-group {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.spec-group:hover {
    border-color: #667eea;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1);
}

/* 规格值项目样式 */
.spec-value-item {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 0.75rem;
    margin-bottom: 0.75rem;
    transition: all 0.2s ease;
}

.spec-value-item:hover {
    border-color: #667eea;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* 规格缩略图样式 */
.spec-thumb {
    border-radius: 4px;
    border: 1px solid #dee2e6;
    object-fit: cover;
}

/* 表单标签样式 */
.form-label-sm {
    font-size: 0.875rem;
    font-weight: 500;
    color: #495057;
    margin-bottom: 0.25rem;
}

/* 基础价格卡片样式 */
.card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
}

.card-header h6 {
    margin: 0;
    font-weight: 600;
}

.card-header small {
    opacity: 0.9;
    font-size: 0.8rem;
}

.card-header h6 {
    margin: 0;
    font-weight: 600;
}

.card-header small {
    opacity: 0.9;
}

/* 步骤指示器样式 */
.wizard-steps {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
    padding: 0 1rem;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    flex: 1;
    max-width: 200px;
}

.step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 20px;
    right: -50%;
    width: 100%;
    height: 2px;
    background: #e9ecef;
    z-index: 1;
}

.step.completed:not(:last-child)::after {
    background: #28a745;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e9ecef;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.step.active .step-number {
    background: #667eea;
    color: white;
    transform: scale(1.1);
}

.step.completed .step-number {
    background: #28a745;
    color: white;
}

.step-title {
    font-size: 0.875rem;
    font-weight: 500;
    color: #6c757d;
    text-align: center;
}

.step.active .step-title {
    color: #667eea;
    font-weight: 600;
}

.step.completed .step-title {
    color: #28a745;
}

/* 向导内容样式 */
.wizard-content {
    min-height: 400px;
    padding: 1rem 0;
}

/* 向导操作按钮样式 */
.wizard-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0 0;
    border-top: 1px solid #e9ecef;
    margin-top: 2rem;
}

/* 空状态样式 */
.empty-state-sm {
    text-align: center;
    padding: 2rem 1rem;
    color: #6c757d;
}

.empty-state-sm i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    opacity: 0.5;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .wizard-steps {
        flex-direction: column;
        gap: 1rem;
    }
    
    .step:not(:last-child)::after {
        display: none;
    }
    
    .spec-value-item .row {
        gap: 0.5rem;
    }
    
    .spec-value-item .col-md-3,
    .spec-value-item .col-md-4 {
        margin-bottom: 0.5rem;
    }
}

/* 价格输入框特殊样式 */
.input-group-text {
    background: #f8f9fa;
    border-color: #ced4da;
    color: #495057;
    font-weight: 500;
}

.form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

/* 成功状态样式 */
.text-success {
    color: #28a745 !important;
}

/* 警告提示样式 */
.text-info {
    color: #17a2b8 !important;
}

/* 按钮组样式 */
.btn-group-sm > .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

/* 规格添加按钮样式 */
.btn-outline-primary:hover {
    background-color: #667eea;
    border-color: #667eea;
}

/* 删除按钮样式 */
.btn-outline-danger:hover {
    background-color: #dc3545;
    border-color: #dc3545;
}

/* 抵扣券类型选择器样式 */
.form-select.form-select-sm {
    font-size: 0.875rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.form-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

/* 抵扣券类型标签样式 */
.voucher-type-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 0.25rem;
    margin-left: 0.5rem;
}

.voucher-type-aftermarket {
    background-color: #e3f2fd;
    color: #1976d2;
}

.voucher-type-phone {
    background-color: #f3e5f5;
    color: #7b1fa2;
}

.voucher-type-accessory {
    background-color: #e8f5e8;
    color: #388e3c;
}

.voucher-type-universal {
    background-color: #fff3e0;
    color: #f57c00;
}

/* 规格值抵扣券信息显示 */
.spec-voucher-info {
    font-size: 0.75rem;
    color: #666;
    margin-top: 0.25rem;
}

.spec-voucher-info .voucher-amount {
    font-weight: 600;
    color: #667eea;
}

.spec-voucher-info .voucher-type {
    background: #f8f9fa;
    padding: 0.125rem 0.25rem;
    border-radius: 0.25rem;
    margin-left: 0.25rem;
}
