/* 紫色+青色渐变配色方案 - 科技感更强 */
:root {
    --primary-color: #6c5ce7;
    --primary-light: #a29bfe;
    --primary-dark: #5f3dc4;
    --secondary-color: #a29bfe;
    --secondary-light: #74b9ff;
    --accent-color: #20c997;
    --accent-dark: #198754;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --error-color: #dc3545;
    --info-color: #17a2b8;
    --light-bg: #f8f9fa;
    --card-shadow: 0 4px 12px rgba(108, 92, 231, 0.1);
    --card-shadow-hover: 0 8px 30px rgba(108, 92, 231, 0.15);
    --brand-gradient: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
}

/* 导航栏使用渐变紫色 */
.navbar-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%) !important;
}

.hero-section {
    background: var(--brand-gradient);
    border-radius: 20px !important;
    box-shadow: var(--card-shadow);
}

.step-number {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: bold;
    background: var(--brand-gradient);
    color: white;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.3);
}

.card {
    border: none;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    border-radius: 15px;
    overflow: hidden;
}

.card:hover {
    box-shadow: var(--card-shadow-hover);
    transform: translateY(-2px);
}

.card-header {
    background: linear-gradient(135deg, var(--light-bg), #fff);
    border-bottom: 1px solid rgba(108, 92, 231, 0.1);
    border-radius: 15px 15px 0 0 !important;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.6rem;
    color: white !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.navbar-brand:hover {
    color: rgba(255, 255, 255, 0.9) !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    transform: translateY(-1px);
}

.navbar-brand i {
    margin-right: 8px;
    color: rgba(255, 255, 255, 0.9);
}

.alert {
    border: none;
    border-radius: 12px;
    border-left: 4px solid;
}

.alert-success {
    background-color: rgba(0, 184, 148, 0.1);
    border-left-color: var(--success-color);
    color: #2d3436;
}

.alert-info {
    background-color: rgba(116, 185, 255, 0.1);
    border-left-color: var(--info-color);
    color: #2d3436;
}

.alert-warning {
    background-color: rgba(253, 203, 110, 0.1);
    border-left-color: var(--warning-color);
    color: #2d3436;
}

.alert-danger {
    background-color: rgba(225, 112, 85, 0.1);
    border-left-color: var(--error-color);
    color: #2d3436;
}

/* 按钮样式 */
.btn {
    border-radius: 10px;
    font-weight: 500;
    padding: 0.6rem 1.5rem;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 92, 231, 0.4);
}

.btn-success {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--secondary-light) 100%);
    box-shadow: 0 4px 15px rgba(32, 201, 151, 0.3);
}

.btn-success:hover {
    background: linear-gradient(135deg, var(--accent-dark) 0%, var(--accent-color) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(32, 201, 151, 0.4);
}

.btn-warning {
    background: linear-gradient(135deg, var(--warning-color) 0%, #ffeaa7 100%);
    color: #2d3436;
    box-shadow: 0 4px 15px rgba(253, 203, 110, 0.3);
}

.btn-warning:hover {
    background: linear-gradient(135deg, #e17055 0%, var(--warning-color) 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(253, 203, 110, 0.4);
}

.btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.7);
    color: white;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: white;
    color: white;
    transform: translateY(-2px);
}

/* 表单样式 */
.form-control, .form-select {
    border-radius: 10px;
    border: 2px solid #e9ecef;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(108, 92, 231, 0.15);
    transform: translateY(-1px);
}

/* 页脚样式 */
.footer {
    background: linear-gradient(135deg, var(--light-bg), #fff);
    border-top: 1px solid rgba(108, 92, 231, 0.1);
}

/* 徽章样式 */
.badge {
    border-radius: 8px;
    font-weight: 500;
    padding: 0.5rem 0.8rem;
}

.bg-success {
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-light)) !important;
}

.bg-info {
    background: linear-gradient(135deg, var(--info-color), #a29bfe) !important;
}

.bg-warning {
    background: linear-gradient(135deg, var(--warning-color), #ffeaa7) !important;
    color: #2d3436 !important;
}

.bg-secondary {
    background: linear-gradient(135deg, #636e72, #74b9ff) !important;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .hero-section {
        text-align: center;
        padding: 2rem 1rem;
    }
    
    .hero-section .display-4 {
        font-size: 2.2rem;
    }
    
    .hero-section .lead {
        font-size: 1.1rem;
    }
    
    .step-number {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: rgba(255, 255, 255, 0.8);
    animation: spin 1s ease-in-out infinite;
    margin-right: 8px;
}

/* 按钮loading状态 */
.btn-loading {
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn:disabled {
    opacity: 0.8;
    cursor: not-allowed;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 通知样式 */
.notification-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(135deg, var(--error-color), #ff6b6b);
    color: white;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(225, 112, 85, 0.4);
}

/* 状态指示器 */
.status-indicator {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
}

.status-active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-light));
    animation: pulse 2s infinite;
    box-shadow: 0 0 10px rgba(108, 92, 231, 0.5);
}

.status-inactive {
    background: linear-gradient(135deg, #636e72, #b2bec3);
}

@keyframes pulse {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.1); }
    100% { opacity: 1; transform: scale(1); }
}

/* 特殊效果 */
.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* 文字渐变效果 */
.gradient-text {
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

/* 下拉菜单图标对齐 */
.dropdown-item i {
    width: 16px;
    text-align: center;
    margin-right: 8px;
    font-size: 14px;
    display: inline-block;
}

/* 确保下拉菜单项对齐 */
.dropdown-menu .dropdown-item {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
}

/* 悬浮效果 */
.hover-lift {
    transition: all 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(108, 92, 231, 0.2);
}