/* 科技蓝按钮样式 */

/* 主要按钮 */
.btn-primary {
    background: linear-gradient(135deg, var(--tech-blue-mid), var(--tech-blue-light));
    border: 1px solid rgba(65, 180, 255, 0.3);
    color: white;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(20, 66, 114, 0.3);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--tech-blue-light), var(--tech-blue-accent));
    border-color: var(--tech-blue-accent);
    box-shadow: 0 6px 16px rgba(65, 180, 255, 0.4);
    transform: translateY(-2px);
}

.btn-primary:active,
.btn-primary:focus {
    background: linear-gradient(135deg, var(--tech-blue-dark), var(--tech-blue-mid));
    border-color: var(--tech-blue-mid);
    box-shadow: 0 2px 8px rgba(20, 66, 114, 0.4);
    transform: translateY(0);
}

/* 成功按钮 */
.btn-success {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    border: 1px solid rgba(46, 204, 113, 0.3);
    box-shadow: 0 4px 12px rgba(46, 204, 113, 0.2);
    transition: all 0.3s ease;
}

.btn-success:hover {
    background: linear-gradient(135deg, #2ecc71, #55d98d);
    box-shadow: 0 6px 16px rgba(46, 204, 113, 0.3);
    transform: translateY(-2px);
}

/* 信息按钮 */
.btn-info {
    background: linear-gradient(135deg, var(--tech-blue-accent), #5bc0de);
    border: 1px solid rgba(65, 180, 255, 0.3);
    box-shadow: 0 4px 12px rgba(65, 180, 255, 0.2);
    transition: all 0.3s ease;
}

.btn-info:hover {
    background: linear-gradient(135deg, #5bc0de, #7dd3f0);
    box-shadow: 0 6px 16px rgba(65, 180, 255, 0.3);
    transform: translateY(-2px);
}

/* 警告按钮 */
.btn-warning {
    background: linear-gradient(135deg, #f39c12, #f1c40f);
    border: 1px solid rgba(243, 156, 18, 0.3);
    box-shadow: 0 4px 12px rgba(243, 156, 18, 0.2);
    transition: all 0.3s ease;
}

.btn-warning:hover {
    background: linear-gradient(135deg, #f1c40f, #f9d342);
    box-shadow: 0 6px 16px rgba(243, 156, 18, 0.3);
    transform: translateY(-2px);
}

/* 危险按钮 */
.btn-danger {
    background: linear-gradient(135deg, #c0392b, #e74c3c);
    border: 1px solid rgba(231, 76, 60, 0.3);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.2);
    transition: all 0.3s ease;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #e74c3c, #ec7063);
    box-shadow: 0 6px 16px rgba(231, 76, 60, 0.3);
    transform: translateY(-2px);
}

/* 次要按钮 */
.btn-secondary {
    background: linear-gradient(135deg, #5a6c7d, #6c757d);
    border: 1px solid rgba(108, 117, 125, 0.3);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.2);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #6c757d, #7d8a96);
    box-shadow: 0 6px 16px rgba(108, 117, 125, 0.3);
    transform: translateY(-2px);
}

/* 轮廓按钮 */
.btn-outline-primary {
    color: var(--tech-blue-mid);
    border: 2px solid var(--tech-blue-mid);
    background: transparent;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background: linear-gradient(135deg, var(--tech-blue-mid), var(--tech-blue-light));
    border-color: var(--tech-blue-accent);
    color: white;
    box-shadow: 0 4px 12px rgba(65, 180, 255, 0.3);
    transform: translateY(-2px);
}

/* 小按钮优化 */
.btn-sm {
    padding: 6px 12px;
    font-size: 0.875rem;
    border-radius: 6px;
}

/* 大按钮优化 */
.btn-lg {
    padding: 12px 24px;
    font-size: 1.125rem;
    border-radius: 10px;
}

/* 圆角按钮 */
.btn {
    border-radius: 8px;
}

/* 禁用状态 */
.btn:disabled,
.btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* ==================== 其他组件优化 ==================== */

/* 徽章 */
.badge {
    border-radius: 6px;
    padding: 4px 10px;
    font-weight: 500;
}

.badge.bg-primary {
    background: linear-gradient(135deg, var(--tech-blue-mid), var(--tech-blue-light)) !important;
    box-shadow: 0 2px 6px rgba(65, 180, 255, 0.3);
}

.badge.bg-success {
    background: linear-gradient(135deg, #27ae60, #2ecc71) !important;
}

.badge.bg-warning {
    background: linear-gradient(135deg, #f39c12, #f1c40f) !important;
}

.badge.bg-danger {
    background: linear-gradient(135deg, #c0392b, #e74c3c) !important;
}

/* 分页 */
.pagination .page-link {
    color: var(--tech-blue-mid);
    border: 1px solid rgba(65, 180, 255, 0.2);
    border-radius: 6px;
    margin: 0 3px;
    transition: all 0.3s;
}

.pagination .page-link:hover {
    background: linear-gradient(135deg, rgba(65, 180, 255, 0.1), rgba(20, 66, 114, 0.05));
    border-color: var(--tech-blue-accent);
    color: var(--tech-blue-light);
}

.pagination .page-item.active .page-link {
    background: linear-gradient(135deg, var(--tech-blue-mid), var(--tech-blue-light));
    border-color: var(--tech-blue-accent);
    box-shadow: 0 2px 8px rgba(65, 180, 255, 0.3);
}

/* 警告框 */
.alert {
    border-radius: 10px;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.alert-primary {
    background: linear-gradient(135deg, rgba(65, 180, 255, 0.15), rgba(20, 66, 114, 0.08));
    color: var(--tech-blue-mid);
    border-left: 4px solid var(--tech-blue-accent);
}

.alert-success {
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.15), rgba(39, 174, 96, 0.08));
    color: #27ae60;
    border-left: 4px solid #2ecc71;
}

.alert-warning {
    background: linear-gradient(135deg, rgba(241, 196, 15, 0.15), rgba(243, 156, 18, 0.08));
    color: #f39c12;
    border-left: 4px solid #f1c40f;
}

.alert-danger {
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.15), rgba(192, 57, 43, 0.08));
    color: #c0392b;
    border-left: 4px solid #e74c3c;
}

/* 卡片 */
.card {
    border: 1px solid rgba(65, 180, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(20, 66, 114, 0.08);
    transition: all 0.3s;
}

.card:hover {
    box-shadow: 0 6px 20px rgba(65, 180, 255, 0.15);
    transform: translateY(-2px);
}

.card-header {
    background: linear-gradient(135deg, rgba(65, 180, 255, 0.05), rgba(20, 66, 114, 0.02));
    border-bottom: 2px solid rgba(65, 180, 255, 0.15);
    font-weight: 600;
    color: var(--tech-blue-mid);
}

/* 进度条 */
.progress {
    border-radius: 10px;
    background-color: rgba(65, 180, 255, 0.1);
    overflow: hidden;
}

.progress-bar {
    background: linear-gradient(90deg, var(--tech-blue-mid), var(--tech-blue-accent));
    box-shadow: 0 2px 8px rgba(65, 180, 255, 0.3);
}

/* 下拉菜单 */
.dropdown-menu {
    border: 1px solid rgba(65, 180, 255, 0.2);
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(20, 66, 114, 0.15);
}

.dropdown-item:hover {
    background: linear-gradient(90deg, rgba(65, 180, 255, 0.1), transparent);
    color: var(--tech-blue-mid);
}
