/* 价格设置管理Tab样式 */
.pricing-tabs {
    display: flex;
    gap: 1rem;
    margin: 1.5rem 0;
    border-bottom: 2px solid #e5e7eb;
}

.pricing-tab {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: #6b7280;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    bottom: -2px;
}

.pricing-tab:hover {
    color: #059669;
    background: #f0fdf4;
}

.pricing-tab.active {
    color: #059669;
    border-bottom-color: #059669;
    font-weight: 600;
}

.pricing-tab i {
    font-size: 1.1rem;
}

/* Tab内容区域 */
.pricing-tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.pricing-tab-content.active {
    display: block;
}

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

/* 操作栏 */
.pricing-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 1.5rem 0;
}

.pricing-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: #fef3c7;
    border: 1px solid #fbbf24;
    border-radius: 6px;
    color: #92400e;
    font-size: 0.875rem;
}

.pricing-info i {
    font-size: 1rem;
    color: #f59e0b;
}

/* 统计卡片样式 */
.tier-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.tier-stat-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 1.25rem;
    transition: all 0.3s ease;
}

.tier-stat-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.tier-stat-header {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.tier-stat-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #059669, #10b981);
    color: white;
    font-size: 1.5rem;
}

.tier-stat-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
}

.tier-stat-content p {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0.25rem 0 0 0;
}

/* 表格样式 */
.table-container {
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin: 1.5rem 0;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table thead {
    background: #f9fafb;
    border-bottom: 2px solid #e5e7eb;
}

.admin-table th {
    padding: 1rem;
    text-align: left;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.admin-table tbody tr {
    border-bottom: 1px solid #f3f4f6;
    transition: background 0.2s ease;
}

.admin-table tbody tr:hover {
    background: #f9fafb;
}

.admin-table td {
    padding: 1rem;
    font-size: 0.9rem;
    color: #1f2937;
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin: 1.5rem 0;
}

.pagination button {
    padding: 0.5rem 1rem;
    border: 1px solid #e5e7eb;
    background: white;
    color: #374151;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pagination button:hover:not(:disabled) {
    background: #f9fafb;
    border-color: #059669;
    color: #059669;
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination button.active {
    background: #059669;
    color: white;
    border-color: #059669;
}

/* ==================== 阶梯优惠配置样式 ==================== */
.tiered-bonus-settings {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 1.5px solid #0ea5e9;
    border-radius: 12px;
}

.tiered-bonus-settings > label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: #0c4a6e;
    margin-bottom: 0.5rem;
}

.tiered-bonus-settings > label i {
    color: #0ea5e9;
    font-size: 1.1rem;
}

.tiered-bonus-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 1rem 0;
}

.tiered-bonus-item {
    background: white;
    border: 1.5px solid #e0f2fe;
    border-radius: 10px;
    padding: 1.25rem;
    transition: all 0.3s ease;
    animation: slideIn 0.3s ease;
}

.tiered-bonus-item:hover {
    border-color: #0ea5e9;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.15);
    transform: translateX(4px);
}

.tiered-bonus-item.fade-in {
    animation: fadeInScale 0.3s ease;
}

.tiered-bonus-item.fade-out {
    animation: fadeOut 0.3s ease forwards;
}

.tiered-bonus-row {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1.5fr auto;
    gap: 1rem;
    align-items: end;
}

.tiered-bonus-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.tiered-bonus-field label {
    font-size: 0.85rem;
    font-weight: 500;
    color: #475569;
}

.tiered-bonus-field input,
.tiered-bonus-field select {
    padding: 0.65rem 0.9rem;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.tiered-bonus-field input:focus,
.tiered-bonus-field select:focus {
    outline: none;
    border-color: #0ea5e9;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

.btn-remove-tier-bonus {
    padding: 0.65rem;
    background: #fee2e2;
    border: 1.5px solid #fecaca;
    border-radius: 8px;
    color: #dc2626;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.btn-remove-tier-bonus:hover {
    background: #dc2626;
    border-color: #dc2626;
    color: white;
    transform: scale(1.05);
}

.btn-remove-tier-bonus i {
    font-size: 1rem;
}

.btn-add-tier-bonus {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.85rem;
    background: white;
    border: 2px dashed #0ea5e9;
    border-radius: 10px;
    color: #0ea5e9;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-add-tier-bonus:hover {
    background: #0ea5e9;
    color: white;
    border-style: solid;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.25);
}

.btn-add-tier-bonus i {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.btn-add-tier-bonus:hover i {
    transform: rotate(90deg);
}

.no-tiered-bonus {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 2rem;
    background: #f8fafc;
    border: 2px dashed #cbd5e1;
    border-radius: 10px;
    color: #64748b;
    font-size: 0.95rem;
}

.no-tiered-bonus i {
    font-size: 1.5rem;
    opacity: 0.5;
}

/* 动画效果 */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: 0;
        transform: scale(0.95);
    }
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .tiered-bonus-row {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .btn-remove-tier-bonus {
        width: 100%;
    }
}

