/* 通用样式 - 智力加速品牌设计 */
:root {
    /* 品牌色彩 */
    --primary-color: #4F46E5;  /* 智慧紫 */
    --secondary-color: #0EA5E9; /* 科技蓝 */
    --success-color: #10B981;
    --info-color: #3B82F6;
    --warning-color: #F59E0B;
    --danger-color: #EF4444;
    --dark-color: #1F2937;
    --light-color: #F9FAFB;

    /* 渐变色 */
    --primary-gradient: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%);
    --success-gradient: linear-gradient(135deg, #10B981 0%, #059669 100%);
    --info-gradient: linear-gradient(135deg, #3B82F6 0%, #0EA5E9 100%);
    --warning-gradient: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);

    /* 字体 */
    --font-primary: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-mono: "SF Mono", Monaco, "Inconsolata", "Fira Code", monospace;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

/* 导航栏样式 */
.navbar {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.98) !important;
    transition: all 0.3s ease;
    padding: 1rem 0;
}

.navbar.scrolled {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.brand-logo {
    width: 45px;
    height: 45px;
    background: var(--primary-gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.brand-name {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.brand-tagline {
    font-size: 0.75rem;
    color: #6B7280;
    display: block;
}

.nav-link {
    color: #4B5563 !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: color 0.3s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color) !important;
}

.dropdown-menu {
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 0.5rem;
}

.dropdown-item {
    border-radius: 8px;
    padding: 0.5rem 1rem;
    transition: all 0.3s;
}

.dropdown-item:hover {
    background: var(--light-color);
    color: var(--primary-color);
}

/* 按钮样式 */
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(79, 70, 229, 0.3);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.btn-light {
    background: white;
    color: var(--primary-color);
}

.btn-outline-light {
    border: 2px solid white;
    color: white;
    background: transparent;
}

/* 卡片样式 */
.card {
    border: none;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* 文字渐变 */
.text-gradient {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 背景渐变 */
.bg-primary-gradient {
    background: var(--primary-gradient);
}

.bg-success-gradient {
    background: var(--success-gradient);
}

.bg-info-gradient {
    background: var(--info-gradient);
}

.bg-warning-gradient {
    background: var(--warning-gradient);
}

/* 页脚样式 */
footer {
    background: #111827 !important;
}

footer a:hover {
    color: var(--primary-color) !important;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .brand-tagline {
        display: none !important;
    }

    .navbar-brand {
        font-size: 1.2rem;
    }

    .btn-group-mobile {
        flex-direction: column;
        width: 100%;
    }

    .btn-group-mobile .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease;
}

/* 加载动画 */
.spinner-border {
    width: 1rem;
    height: 1rem;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #4338ca;
}