/* ========== 全局样式 ========== */
:root {
    --primary-color: #0d6efd;
    --light-bg: #f8f9fa;
}

body {
    background-color: var(--light-bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1 0 auto;
}

/* ========== 搜索区域 ========== */
.search-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3rem 0;
    border-radius: 0 0 1rem 1rem;
    margin-bottom: 2rem;
}

.search-hero h1 {
    font-size: 2rem;
    font-weight: 700;
}

/* ========== 卡片样式 ========== */
.school-card {
    transition: all 0.2s ease;
    border: 1px solid #e0e0e0;
}

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

.tag-badge {
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 4px;
    margin-right: 4px;
}

.tag-985 { background: #dc3545; color: white; }
.tag-211 { background: #fd7e14; color: white; }
.tag-double { background: #198754; color: white; }
.tag-public { background: #0d6efd; color: white; }
.tag-private { background: #6c757d; color: white; }
.tag-coop { background: #6610f2; color: white; }

/* ========== 专业列表 ========== */
.major-group h6 {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 4px;
    margin-bottom: 8px;
}

.major-item {
    display: inline-block;
    padding: 4px 12px;
    margin: 2px;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    font-size: 0.875rem;
    transition: all 0.15s;
}

.major-item:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    text-decoration: none;
}

/* ========== 后台样式 ========== */
.admin-sidebar {
    min-height: calc(100vh - 56px);
    background: #343a40;
}

.admin-sidebar .nav-link {
    color: rgba(255,255,255,0.75);
    padding: 10px 20px;
    border-radius: 4px;
    margin: 2px 8px;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    color: white;
    background: rgba(255,255,255,0.1);
}

/* ========== 分页 ========== */
.pagination {
    justify-content: center;
}

/* ========== 筛选栏 ========== */
.filter-bar {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    margin-bottom: 1.5rem;
}

/* ========== 空状态 ========== */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #6c757d;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* ========== 自动补全下拉框 ========== */
.dropdown-menu {
    max-height: 320px;
    overflow-y: auto;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.dropdown-menu .dropdown-item.active,
.dropdown-menu .dropdown-item:hover {
    background-color: #e9ecef;
    color: #212529;
}

.dropdown-menu .dropdown-item:focus {
    background-color: #0d6efd;
    color: white;
}
