:root {
    /* Color Palette - Vibrant Dark Mode Glassmorphism */
    --bg-color: #0b0f19;
    --card-bg: rgba(20, 26, 40, 0.65);
    --card-border: rgba(255, 255, 255, 0.08);
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --accent-primary: #3b82f6;
    --accent-secondary: #8b5cf6;
    --accent-gradient: linear-gradient(135deg, #3b82f6, #8b5cf6);
    --chong-color: #ef4444;
    --wen-color: #f59e0b;
    --bao-color: #10b981;
    --transition-speed: 0.3s;
}

/* Light Theme Variables */
body.light-theme {
    --bg-color: #f8fafc;
    --card-bg: rgba(255, 255, 255, 0.75);
    --card-border: rgba(0, 0, 0, 0.08);
    --text-primary: #0f172a;
    --text-secondary: #64748b;
    --accent-primary: #2563eb;
    --accent-secondary: #7c3aed;
    --accent-gradient: linear-gradient(135deg, #2563eb, #7c3aed);
}

/* Light Theme Specific Overrides for better contrast */
body.light-theme .nav-links li:hover {
    background: rgba(0, 0, 0, 0.04);
}

body.light-theme .card-header {
    background: rgba(0, 0, 0, 0.02);
}

body.light-theme .data-table th {
    background: rgba(255, 255, 255, 0.9);
}

body.light-theme .filter-group input,
body.light-theme .filter-group select {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 0, 0, 0.15);
}

body.light-theme .stat-box {
    background: rgba(0, 0, 0, 0.02);
}

body.light-theme .strategy-tier {
    background: rgba(0, 0, 0, 0.02);
}

body.light-theme .sidebar {
    background: rgba(255, 255, 255, 0.6);
}

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

body {
    font-family: 'Inter', 'Noto Sans SC', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    overflow: hidden;
    height: 100vh;
}

/* Dynamic Background Orbs */
.background-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.5;
    animation: float 20s infinite ease-in-out alternate;
}

.orb-1 {
    top: -10%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.3) 0%, rgba(11, 15, 25, 0) 70%);
}

.orb-2 {
    bottom: -20%;
    right: -10%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.2) 0%, rgba(11, 15, 25, 0) 70%);
    animation-delay: -5s;
}

.orb-3 {
    top: 40%;
    left: 30%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.1) 0%, rgba(11, 15, 25, 0) 70%);
    animation-delay: -10s;
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(50px, 30px) scale(1.1);
    }
}

/* Layout */
.app-container {
    display: flex;
    height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 280px;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-right: 1px solid var(--card-border);
    padding: 2rem 0;
    display: flex;
    flex-direction: column;
    z-index: 10;
    transition: width 0.3s ease;
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(128, 128, 128, 0.3) transparent;
}

.sidebar::-webkit-scrollbar {
    width: 4px;
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(128, 128, 128, 0.3);
    border-radius: 4px;
}

.sidebar::-webkit-scrollbar-track {
    background: transparent;
}

/* 可展开子菜单导航 */
.nav-links li.has-children {
    padding: 0;
    flex-direction: column;
    align-items: stretch;
}

.nav-parent {
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all var(--transition-speed);
}

.nav-parent .arrow {
    margin-left: auto;
    font-size: 1rem;
    transition: transform 0.3s;
}

.nav-links li.has-children.active .nav-parent .arrow {
    transform: rotate(180deg);
}

/* 子菜单容器 */
.nav-children {
    display: none;
    flex-direction: column;
}

.nav-links li.has-children.active .nav-children {
    display: flex;
}

/* 点击"北京高校数据"折叠子列表 */
.nav-links li.has-children.active.children-collapsed .nav-children {
    display: none;
}

.nav-links li.has-children.active.children-collapsed .nav-parent .arrow {
    transform: rotate(0deg);
}

/* 子菜单搜索框 */
.nav-search {
    padding: 0.5rem 1rem 0.5rem 2.5rem;
}

.nav-search input {
    width: 100%;
    background: rgba(128, 128, 128, 0.08);
    border: 1px solid var(--card-border);
    color: var(--text-primary);
    padding: 6px 10px;
    border-radius: 6px;
    outline: none;
    font-family: inherit;
    font-size: 0.8rem;
}

.nav-search input:focus {
    border-color: var(--accent-primary);
}

/* 学校列表区域 */
#schools-list {
    padding-bottom: 0.5rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 2rem;
    font-size: 1.25rem;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 2rem;
}

.logo i {
    font-size: 1.5rem;
    color: var(--accent-primary);
    -webkit-text-fill-color: initial;
}

.user-profile {
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    gap: 15px;
    border-top: 1px solid var(--card-border);
    border-bottom: 1px solid var(--card-border);
    margin-bottom: 2rem;
}

.avatar {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.user-info .name {
    font-weight: 600;
    font-size: 1rem;
}

.user-info .desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

.nav-links {
    list-style: none;
}

.nav-links li {
    padding: 1rem 2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-secondary);
    font-weight: 500;
    transition: all var(--transition-speed);
    position: relative;
}

.nav-links li i {
    font-size: 1.2rem;
}

.nav-links li:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.03);
}

.nav-links li.active {
    color: var(--accent-primary);
    background: rgba(59, 130, 246, 0.1);
}

.nav-links li.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: var(--accent-primary);
    border-radius: 0 4px 4px 0;
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 2rem;
    overflow-y: auto;
}

/* Theme Toggle Button */
.theme-btn {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    color: var(--text-primary);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: all var(--transition-speed);
}

.theme-btn:hover {
    background: var(--accent-primary);
    color: white;
    transform: rotate(30deg);
}

.top-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.top-header h1 {
    font-size: 1.8rem;
    font-weight: 600;
}

.header-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

/* 分数输入组 */
.score-input-group {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 6px 12px;
    backdrop-filter: blur(10px);
    transition: all 0.3s;
}

.score-input-group:focus-within {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.score-input-group label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 4px;
}

.score-input-group label i {
    color: var(--accent-primary);
    font-size: 1rem;
}

.score-input-group input {
    width: 72px;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1.05rem;
    font-weight: 700;
    text-align: center;
}

.score-input-group input::placeholder {
    color: var(--text-secondary);
    opacity: 0.5;
    font-weight: 400;
    font-size: 0.85rem;
}

/* 隐藏数字输入框的上下箭头 */
.score-input-group input::-webkit-outer-spin-button,
.score-input-group input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.score-input-group input[type=number] {
    -moz-appearance: textfield;
}

.score-clear-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1.1rem;
    padding: 2px;
    display: flex;
    align-items: center;
    opacity: 0.4;
    transition: all 0.2s;
}

.score-clear-btn:hover {
    opacity: 1;
    color: var(--chong-color);
}

.badge {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.score-badge {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(52, 211, 153, 0.3);
}

.spec-badge {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.3);
}

/* ====== 冲稳保标签 ====== */
.tier-tag {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    line-height: 1.5;
    white-space: nowrap;
}

.tier-tag.tag-chong {
    background: rgba(239, 68, 68, 0.12);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.25);
}

.tier-tag.tag-wen {
    background: rgba(245, 158, 11, 0.12);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.25);
}

.tier-tag.tag-bao {
    background: rgba(16, 185, 129, 0.12);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.25);
}

/* 列表项中的冲稳保标签 */
.list-item .tier-tag {
    margin-left: 6px;
}

/* 详情表格中的冲稳保标签 */
.major-table .tier-tag {
    display: inline-block;
    margin-left: 6px;
    vertical-align: middle;
}

/* 冲稳保统计汇总条 */
.tier-summary-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    background: rgba(128, 128, 128, 0.04);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    margin-bottom: 1rem;
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.tier-summary-bar .tier-count {
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
}

.tier-summary-bar .tier-count.chong {
    color: #ef4444;
}

.tier-summary-bar .tier-count.wen {
    color: #f59e0b;
}

.tier-summary-bar .tier-count.bao {
    color: #10b981;
}

.tier-summary-bar .my-score-display {
    margin-left: auto;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.content-wrapper {
    position: relative;
    flex: 1;
}

.page-section {
    display: none;
    animation: fadeIn 0.4s ease forwards;
}

.page-section.active {
    display: block;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Glass Cards */
.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: transform var(--transition-speed);
}

.glass-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.card-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--card-border);
    background: rgba(255, 255, 255, 0.02);
}

.card-header h2 {
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-primary);
}

.card-header h2 i {
    color: var(--accent-primary);
}

.card-body {
    padding: 1.5rem;
}

.grid-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.span-2 {
    grid-column: span 2;
}

/* Profile Box */
.row-layout {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.stat-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 1.2rem;
    flex: 1;
    min-width: 150px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stat-box .label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.stat-box .value {
    font-size: 1.1rem;
    font-weight: 600;
}

.stat-box .value.emphasis {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Features list */
.feature-list {
    list-style: none;
}

.feature-list li {
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.5;
    color: var(--text-secondary);
}

.feature-list li i {
    color: var(--accent-primary);
    margin-top: 2px;
}

.feature-list li strong {
    color: var(--text-primary);
}

/* Schools Detail (full width in main content) */
.schools-detail {
    min-height: calc(100vh - 200px);
    overflow-y: auto;
    padding: 0 !important;
}

.schools-detail:hover {
    transform: none;
}

/* Left List Styles (inside sidebar sub-menu) */
.list-group-header {
    padding: 0.4rem 1rem 0.4rem 2.5rem;
    font-size: 0.78rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    position: sticky;
    top: 0;
    z-index: 2;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--card-border);
}

.list-group-header .cnt {
    margin-left: auto;
    font-size: 0.7rem;
    background: rgba(128, 128, 128, 0.15);
    padding: 1px 6px;
    border-radius: 6px;
    color: var(--text-secondary);
    font-weight: 500;
}

.list-group-header.g985 {
    background: rgba(239, 68, 68, 0.08);
    color: #ef4444;
}

.list-group-header.g211 {
    background: rgba(59, 130, 246, 0.08);
    color: #3b82f6;
}

.list-group-header.gother {
    background: rgba(16, 185, 129, 0.08);
    color: #10b981;
}

.list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1rem 0.5rem 2.8rem;
    cursor: pointer;
    border-bottom: 1px solid rgba(128, 128, 128, 0.04);
    transition: background 0.15s;
    font-size: 0.85rem;
}

.list-item:hover {
    background: rgba(128, 128, 128, 0.06);
}

.list-item.selected {
    background: rgba(59, 130, 246, 0.18);
    border-left: 3px solid var(--accent-primary);
    box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.15);
}

.list-item.selected .item-name {
    color: var(--accent-primary);
    font-weight: 700;
}

.item-name {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-primary);
}

.item-score {
    font-size: 0.85rem;
    font-weight: 700;
}

.item-score small {
    font-size: 0.65rem;
    font-weight: 400;
    opacity: 0.6;
}

.item-score.g985 {
    color: #ef4444;
}

.item-score.g211 {
    color: #3b82f6;
}

.item-score.gother {
    color: #10b981;
}

/* Right Detail Styles */
.detail-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-secondary);
    gap: 12px;
}

.detail-empty i {
    font-size: 2.5rem;
    opacity: 0.3;
}

.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--card-border);
}

.detail-header.g985 {
    background: rgba(239, 68, 68, 0.06);
}

.detail-header.g211 {
    background: rgba(59, 130, 246, 0.06);
}

.detail-header.gother {
    background: rgba(16, 185, 129, 0.06);
}

.detail-title h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.detail-badge {
    font-size: 0.75rem;
    padding: 2px 10px;
    border-radius: 6px;
    font-weight: 600;
}

.g985 .detail-badge {
    background: rgba(239, 68, 68, 0.12);
    color: #ef4444;
}

.g211 .detail-badge {
    background: rgba(59, 130, 246, 0.12);
    color: #3b82f6;
}

.gother .detail-badge {
    background: rgba(16, 185, 129, 0.12);
    color: #10b981;
}

.detail-score {
    text-align: right;
}

.big-score {
    font-size: 2rem;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.score-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 2px;
}

.detail-intro {
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--text-secondary);
    background: rgba(128, 128, 128, 0.05);
    padding: 10px 14px;
    border-radius: 8px;
    margin-top: 10px;
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.detail-intro i {
    color: var(--accent-primary);
    font-size: 1rem;
    margin-top: 1px;
}

.detail-badge.tag-outline {
    background: transparent;
    border: 1px solid rgba(128, 128, 128, 0.3);
    color: var(--text-secondary);
}

.detail-badge.univ-code-badge {
    background: rgba(245, 158, 11, 0.12);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
    font-weight: 600;
    letter-spacing: 0.5px;
    font-family: 'Outfit', monospace;
}

.major-rank {
    font-size: 0.7rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-top: 3px;
}

.major-admit {
    font-size: 0.65rem;
    color: var(--accent-primary);
    opacity: 0.75;
    margin-top: 2px;
    font-weight: 500;
}

.detail-body {
    padding: 1.25rem 1.5rem;
}

.detail-body h4 {
    font-size: 0.95rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.detail-body h4 i {
    color: var(--accent-primary);
}

/* Major Table */
.major-table-wrapper {
    overflow-x: auto;
    margin: 0 -0.5rem;
    padding: 0 0.5rem;
}

.major-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 700px;
}

.major-table th {
    text-align: left;
    padding: 10px 12px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-secondary);
    border-bottom: 2px solid var(--card-border);
    white-space: nowrap;
    position: sticky;
    top: 0;
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    z-index: 1;
}

.major-table th.year-col {
    text-align: center;
}

.major-table td {
    padding: 10px 12px;
    font-size: 0.88rem;
    color: var(--text-primary);
    border-bottom: 1px solid rgba(128, 128, 128, 0.08);
}

.major-table tr:hover {
    background: rgba(128, 128, 128, 0.04);
}

.td-name {
    font-weight: 500;
    max-width: 200px;
}

.td-score {
    font-weight: 700;
    font-size: 0.95rem;
    text-align: center;
}

.td-score.g985 {
    color: #ef4444;
}

.td-score.g211 {
    color: #3b82f6;
}

.td-score.gother {
    color: #10b981;
}

/* 年份列中无数据的占位 */
.td-score .no-data {
    color: var(--text-secondary);
    opacity: 0.4;
    font-weight: 400;
    font-size: 0.8rem;
}

/* 趋势指示 */
.trend {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-size: 0.7rem;
    margin-left: 3px;
    vertical-align: middle;
}

.trend.up {
    color: #ef4444;
}

.trend.down {
    color: #10b981;
}

.trend.flat {
    color: var(--text-secondary);
    opacity: 0.5;
}

/* 年份标题分组 */
.year-header-group {
    text-align: center;
    padding: 8px 6px;
    font-weight: 700;
    font-size: 0.82rem;
    border-bottom: 2px solid var(--card-border);
    position: sticky;
    top: 0;
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    z-index: 1;
}

.year-header-group.y2025 {
    color: var(--accent-primary);
}

.year-header-group.y2024 {
    color: #f59e0b;
}

.year-header-group.y2023 {
    color: #10b981;
}

.req-tag {
    font-size: 0.75rem;
    color: var(--text-secondary);
    background: rgba(128, 128, 128, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
    white-space: nowrap;
}

/* Toggle Arrow in group header */
.list-group-header {
    cursor: pointer;
}

.toggle-arrow {
    margin-left: 4px;
    font-size: 0.85rem;
    opacity: 0.5;
}

.detail-tip {
    margin-top: 1.5rem;
    padding: 0.75rem 1rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
    background: rgba(128, 128, 128, 0.05);
    border-radius: 8px;
    display: flex;
    align-items: flex-start;
    gap: 6px;
}

.detail-tip i {
    margin-top: 2px;
    color: var(--accent-primary);
}

/* 年份切换标签 */
.year-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.year-tab {
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid var(--card-border);
    background: rgba(128, 128, 128, 0.05);
    color: var(--text-secondary);
    transition: all 0.2s;
}

.year-tab:hover {
    background: rgba(128, 128, 128, 0.1);
    color: var(--text-primary);
}

.year-tab.active {
    background: var(--accent-gradient);
    color: #fff;
    border-color: transparent;
}

/* 数据统计摘要 */
.data-summary {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.2rem;
    flex-wrap: wrap;
}

.summary-chip {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 500;
    background: rgba(128, 128, 128, 0.06);
    border: 1px solid var(--card-border);
}

.summary-chip .chip-year {
    font-weight: 700;
}

.summary-chip.y2025 .chip-year {
    color: var(--accent-primary);
}

.summary-chip.y2024 .chip-year {
    color: #f59e0b;
}

.summary-chip.y2023 .chip-year {
    color: #10b981;
}

.no-result {
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* 志愿填报五步法 (增强版顶置) */
.highlight-card {
    border: 1px solid rgba(59, 130, 246, 0.4);
    box-shadow: 0 10px 40px rgba(59, 130, 246, 0.1);
    position: relative;
    overflow: hidden;
}

.highlight-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--accent-gradient);
    z-index: 10;
}

.highlight-header {
    background: rgba(59, 130, 246, 0.05);
}

.highlight-header h2 {
    color: var(--accent-primary);
    font-size: 1.25rem;
    font-weight: 700;
}

.highlight-header h2 i {
    font-size: 1.4rem;
}

.steps-intro {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.steps-intro strong {
    color: var(--text-primary);
}

.steps-flow {
    display: flex;
    align-items: stretch;
    gap: 0;
}

.step-card {
    flex: 1;
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--card-border);
    border-radius: 14px;
    padding: 1.8rem 1.2rem 1.5rem;
    text-align: left;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.step-card:hover {
    background: rgba(59, 130, 246, 0.06);
    border-color: rgba(59, 130, 246, 0.25);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.12);
}

.step-number {
    position: absolute;
    top: -15px;
    left: 20px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--accent-gradient);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.35);
}

.step-icon {
    width: 54px;
    height: 54px;
    border-radius: 12px;
    background: rgba(59, 130, 246, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--accent-primary);
    margin-bottom: 1rem;
    margin-top: 0.25rem;
}

.step-card h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.step-card p {
    font-size: 0.78rem;
    line-height: 1.55;
    color: var(--text-secondary);
    margin: 0;
}

.step-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    color: var(--accent-primary);
    font-size: 1.1rem;
    opacity: 0.5;
    flex-shrink: 0;
}

/* 亮色主题下五步法微调 */
body.light-theme .step-card {
    background: rgba(0, 0, 0, 0.015);
}

body.light-theme .step-card:hover {
    background: rgba(37, 99, 235, 0.04);
}

/* 响应式：五步法在小屏幕下纵向排列 */
@media (max-width: 1100px) {
    .steps-flow {
        flex-wrap: wrap;
        gap: 1rem;
        justify-content: center;
    }

    .step-card {
        min-width: 140px;
        flex: 0 1 calc(33% - 1rem);
    }

    .step-arrow {
        display: none;
    }
}

@media (max-width: 600px) {
    .steps-flow {
        flex-direction: column;
        align-items: stretch;
    }

    .step-card {
        flex: 1;
        min-width: unset;
    }
}

/* Filter Group */
.filter-group {
    display: flex;
    gap: 10px;
}

.filter-group input,
.filter-group select {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    color: var(--text-primary);
    padding: 8px 14px;
    border-radius: 8px;
    outline: none;
    font-family: inherit;
    transition: border-color var(--transition-speed);
    backdrop-filter: blur(10px);
}

.filter-group input:focus,
.filter-group select:focus {
    border-color: var(--accent-primary);
}

/* Strategy Diagram */
.strategy-diagram {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.strategy-tier {
    display: flex;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    overflow: hidden;
}

.tier-icon {
    width: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.tier-chong .tier-icon {
    background: rgba(239, 68, 68, 0.1);
    color: var(--chong-color);
}

.tier-wen .tier-icon {
    background: rgba(245, 158, 11, 0.1);
    color: var(--wen-color);
}

.tier-bao .tier-icon {
    background: rgba(16, 185, 129, 0.1);
    color: var(--bao-color);
}

.tier-content {
    padding: 1.5rem;
    flex: 1;
}

.tier-content h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.tier-chong h3 {
    color: var(--chong-color);
}

.tier-wen h3 {
    color: var(--wen-color);
}

.tier-bao h3 {
    color: var(--bao-color);
}

.tier-content p {
    color: var(--text-primary);
    margin-bottom: 6px;
    font-size: 0.95rem;
}

.tier-content .note {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 0;
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--card-border);
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.dot {
    position: absolute;
    left: -30px;
    top: 5px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--bg-color);
    border: 2px solid var(--text-secondary);
    z-index: 2;
    transition: all 0.3s;
}

.dot.completed {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

.dot.highlight {
    background: var(--chong-color);
    border-color: var(--chong-color);
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.6);
}

.timeline-content h4 {
    font-size: 1.05rem;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.timeline-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* ====== 位次换算计算器 ====== */
.converter-layout {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.converter-input-area {
    flex: 0 0 320px;
}

.converter-result-area {
    flex: 1;
    min-height: 280px;
}

/* 模式切换标签 */
.input-mode-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 1.25rem;
    background: rgba(128, 128, 128, 0.06);
    border-radius: 10px;
    padding: 4px;
}

.mode-tab {
    flex: 1;
    padding: 8px 12px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.25s;
}

.mode-tab:hover {
    color: var(--text-primary);
}

.mode-tab.active {
    background: var(--accent-gradient);
    color: #fff;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

/* 表单 */
.converter-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-row label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.form-row input,
.form-row select {
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid var(--card-border);
    background: rgba(128, 128, 128, 0.05);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    outline: none;
    transition: all 0.25s;
}

.form-row input:focus,
.form-row select:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.form-row input::placeholder {
    color: var(--text-secondary);
    opacity: 0.5;
    font-weight: 400;
}

/* 隐藏数字输入框的上下箭头 */
.form-row input::-webkit-outer-spin-button,
.form-row input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    appearance: none;
    margin: 0;
}

.form-row input[type=number] {
    -moz-appearance: textfield;
    appearance: textfield;
}

.converter-btn {
    padding: 12px;
    border: none;
    border-radius: 10px;
    background: var(--accent-gradient);
    color: #fff;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
    margin-top: 0.5rem;
}

.converter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.converter-btn:active {
    transform: translateY(0);
}

/* 空状态 */
.conv-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 280px;
    color: var(--text-secondary);
    gap: 12px;
    opacity: 0.6;
}

.conv-empty i {
    font-size: 3rem;
    opacity: 0.3;
}

.conv-empty p {
    font-size: 0.9rem;
}

/* 结果卡片 */
.conv-result-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.conv-source-card {
    background: rgba(59, 130, 246, 0.06);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 14px;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.conv-source-card .conv-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
    flex-shrink: 0;
}

.conv-source-info {
    flex: 1;
}

.conv-source-info .conv-label {
    font-size: 0.78rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.conv-source-info .conv-value {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-primary);
}

.conv-source-info .conv-value small {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-left: 4px;
}

.conv-source-info .conv-sub {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 2px;
}

/* 箭头分隔 */
.conv-arrow {
    text-align: center;
    color: var(--accent-primary);
    font-size: 1.5rem;
    padding: 4px 0;
    opacity: 0.6;
    animation: convPulse 1.5s ease-in-out infinite;
}

@keyframes convPulse {

    0%,
    100% {
        opacity: 0.4;
        transform: translateY(0);
    }

    50% {
        opacity: 1;
        transform: translateY(3px);
    }
}

/* 等位分结果卡 */
.conv-target-cards {
    display: flex;
    gap: 1rem;
}

.conv-target-card {
    flex: 1;
    border-radius: 14px;
    padding: 1.25rem;
    position: relative;
    overflow: hidden;
}

.conv-target-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
}

.conv-target-card.y2025 {
    background: rgba(59, 130, 246, 0.06);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.conv-target-card.y2025::before {
    background: var(--accent-primary);
}

.conv-target-card.y2024 {
    background: rgba(245, 158, 11, 0.06);
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.conv-target-card.y2024::before {
    background: #f59e0b;
}

.conv-target-card .conv-year-label {
    font-size: 0.78rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.conv-target-card.y2025 .conv-year-label {
    color: var(--accent-primary);
}

.conv-target-card.y2024 .conv-year-label {
    color: #f59e0b;
}

.conv-target-card .conv-big-score {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 4px;
}

.conv-target-card .conv-big-score span {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.conv-target-card .conv-rank-sub {
    font-size: 0.78rem;
    color: var(--text-secondary);
}

.conv-diff-note {
    font-size: 0.82rem;
    color: var(--text-secondary);
    padding: 10px 14px;
    background: rgba(128, 128, 128, 0.04);
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.conv-diff-note i {
    color: var(--accent-primary);
}

.conv-diff-note strong {
    color: var(--text-primary);
}

/* 亮色主题 */
body.light-theme .converter-input-area input,
body.light-theme .converter-input-area select {
    background: rgba(255, 255, 255, 0.8);
}

body.light-theme .input-mode-tabs {
    background: rgba(0, 0, 0, 0.04);
}

/* 响应式 */
@media (max-width: 900px) {
    .converter-layout {
        flex-direction: column;
    }

    .converter-input-area {
        flex: unset;
        width: 100%;
    }

    .conv-target-cards {
        flex-direction: column;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .app-container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        padding: 1rem;
        flex-direction: row;
        align-items: center;
        overflow-x: auto;
    }

    .logo,
    .user-profile {
        margin: 0;
        border: none;
        padding: 0 1rem;
    }

    .user-profile {
        display: none;
    }

    /* Hide on mobile to save space */
    .nav-links {
        display: flex;
    }

    .nav-links li {
        padding: 0.5rem 1rem;
        white-space: nowrap;
    }

    .grid-layout {
        grid-template-columns: 1fr;
    }

    .span-2 {
        grid-column: span 1;
    }

    .top-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}

/* =====================================================
   专业收藏/标记功能样式
   ===================================================== */

/* --- 专业表格中的收藏按钮 --- */
.th-fav {
    width: 50px;
    text-align: center;
}

.td-fav {
    text-align: center;
}

.fav-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.15rem;
    color: var(--text-secondary);
    opacity: 0.35;
    transition: all 0.25s ease;
    padding: 4px 6px;
    border-radius: 6px;
    line-height: 1;
}

.fav-btn:hover {
    opacity: 1;
    color: #f43f5e;
    background: rgba(244, 63, 94, 0.08);
    transform: scale(1.2);
}

.fav-btn.active {
    opacity: 1;
    color: #f43f5e;
}

.fav-btn.active:hover {
    color: #e11d48;
    background: rgba(244, 63, 94, 0.12);
}

/* 收藏时心跳动画 */
@keyframes heartBeat {
    0% {
        transform: scale(1);
    }

    25% {
        transform: scale(1.35);
    }

    50% {
        transform: scale(0.9);
    }

    75% {
        transform: scale(1.15);
    }

    100% {
        transform: scale(1);
    }
}

.fav-btn.active i {
    display: inline-block;
    animation: heartBeat 0.45s ease;
}

/* --- 导航栏收藏计数 badge --- */
.fav-count-badge {
    margin-left: auto;
    font-size: 0.65rem;
    background: linear-gradient(135deg, #f43f5e, #ec4899);
    color: white;
    padding: 1px 7px;
    border-radius: 10px;
    font-weight: 700;
    min-width: 18px;
    text-align: center;
    line-height: 1.5;
    box-shadow: 0 2px 8px rgba(244, 63, 94, 0.3);
    animation: badgePop 0.3s ease;
}

@keyframes badgePop {
    0% {
        transform: scale(0);
    }

    60% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

/* --- 收藏页头部 --- */
.fav-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.fav-page-header h2 i {
    color: #f43f5e;
}

.fav-clear-all-btn {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #ef4444;
    padding: 6px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 500;
    font-family: inherit;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.25s;
}

.fav-clear-all-btn:hover {
    background: rgba(239, 68, 68, 0.18);
    border-color: rgba(239, 68, 68, 0.4);
    transform: translateY(-1px);
}

/* --- 收藏页空状态 --- */
.fav-empty {
    text-align: center;
    padding: 5rem 2rem;
    color: var(--text-secondary);
}

.fav-empty i {
    font-size: 3.5rem;
    display: block;
    margin-bottom: 1.2rem;
    opacity: 0.2;
    color: #f43f5e;
}

.fav-empty h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.fav-empty p {
    font-size: 0.9rem;
    line-height: 1.8;
}

/* --- 收藏统计摘要 --- */
.fav-summary {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(244, 63, 94, 0.04);
    border: 1px solid rgba(244, 63, 94, 0.12);
    border-radius: 10px;
    margin-bottom: 1.5rem;
    font-size: 0.88rem;
    color: var(--text-secondary);
}

.fav-summary i {
    color: #f43f5e;
    font-size: 1rem;
}

.fav-summary strong {
    color: var(--text-primary);
    font-weight: 700;
}

/* --- 收藏列表分组 --- */
.fav-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.fav-school-group {
    border: 1px solid var(--card-border);
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow 0.3s;
}

.fav-school-group:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.fav-school-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.75rem 1.25rem;
    font-size: 0.88rem;
    font-weight: 600;
    border-bottom: 1px solid var(--card-border);
}

.fav-school-header.g985 {
    background: rgba(239, 68, 68, 0.06);
    color: #ef4444;
}

.fav-school-header.g211 {
    background: rgba(59, 130, 246, 0.06);
    color: #3b82f6;
}

.fav-school-header.gother {
    background: rgba(16, 185, 129, 0.06);
    color: #10b981;
}

.fav-school-name {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    color: var(--text-primary);
}

.fav-school-name i {
    font-size: 1rem;
}

.fav-school-header.g985 .fav-school-name i {
    color: #ef4444;
}

.fav-school-header.g211 .fav-school-name i {
    color: #3b82f6;
}

.fav-school-header.gother .fav-school-name i {
    color: #10b981;
}

.fav-school-badge {
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 6px;
    font-weight: 600;
}

.fav-school-header.g985 .fav-school-badge {
    background: rgba(239, 68, 68, 0.12);
    color: #ef4444;
}

.fav-school-header.g211 .fav-school-badge {
    background: rgba(59, 130, 246, 0.12);
    color: #3b82f6;
}

.fav-school-header.gother .fav-school-badge {
    background: rgba(16, 185, 129, 0.12);
    color: #10b981;
}

.fav-school-cnt {
    margin-left: auto;
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* --- 收藏条目 --- */
.fav-items {
    padding: 0.25rem 0;
}

.fav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.7rem 1.25rem;
    border-bottom: 1px solid rgba(128, 128, 128, 0.05);
    transition: background 0.2s;
}

.fav-item:last-child {
    border-bottom: none;
}

.fav-item:hover {
    background: rgba(128, 128, 128, 0.04);
}

.fav-item-main {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.fav-major-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fav-item-scores {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.fav-score {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.fav-score strong {
    font-size: 0.9rem;
    font-weight: 700;
}

.fav-score.y2025 strong {
    color: var(--accent-primary);
}

.fav-score.y2024 strong {
    color: var(--text-primary);
}

/* --- 移除收藏按钮 --- */
.fav-remove-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-secondary);
    opacity: 0.3;
    font-size: 1.15rem;
    padding: 4px;
    border-radius: 6px;
    transition: all 0.2s;
    flex-shrink: 0;
    line-height: 1;
}

.fav-remove-btn:hover {
    opacity: 1;
    color: #ef4444;
    background: rgba(239, 68, 68, 0.08);
    transform: scale(1.1);
}

/* =====================================================
   志愿模拟填报表样式
   ===================================================== */

/* 志愿单导航 Badge */
.wish-count-badge {
    margin-left: auto;
    font-size: 0.65rem;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: white;
    padding: 1px 7px;
    border-radius: 10px;
    font-weight: 700;
    min-width: 18px;
    text-align: center;
    line-height: 1.5;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

/* 添加到志愿单按钮（在详情页表格中） */
.wish-add-btn {
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent-primary);
    border: 1px solid rgba(59, 130, 246, 0.3);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.wish-add-btn:hover {
    background: rgba(59, 130, 246, 0.2);
    transform: translateY(-1px);
}

.wish-add-btn.added {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border-color: rgba(16, 185, 129, 0.3);
}

/* 志愿单页面头部 */
.wish-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.wish-header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.wish-header-sub {
    font-size: 0.85rem;
    color: var(--text-secondary);
    background: rgba(128, 128, 128, 0.1);
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 500;
}

.wish-header-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.wish-action-btn {
    background: rgba(128, 128, 128, 0.1);
    border: 1px solid var(--card-border);
    color: var(--text-primary);
    padding: 6px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.wish-action-btn:hover {
    background: rgba(128, 128, 128, 0.2);
    transform: translateY(-1px);
}

.wish-check-btn {
    background: rgba(139, 92, 246, 0.15);
    color: #8b5cf6;
    border-color: rgba(139, 92, 246, 0.3);
}

.wish-check-btn:hover {
    background: rgba(139, 92, 246, 0.25);
}

/* 志愿表 List */
.wish-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wish-item {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    padding: 10px 15px;
    gap: 15px;
    transition: all 0.2s;
}

body.light-theme .wish-item {
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.wish-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(59, 130, 246, 0.3);
}

.wish-item.ghost {
    opacity: 0.4;
    background: rgba(59, 130, 246, 0.1);
    border: 2px dashed rgba(59, 130, 246, 0.5);
}

.wish-drag-handle {
    cursor: grab;
    color: var(--text-secondary);
    opacity: 0.5;
    font-size: 1.2rem;
}

.wish-drag-handle:active {
    cursor: grabbing;
}

.wish-num {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-secondary);
    width: 30px;
    text-align: center;
}

.wish-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.wish-school-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.wish-school-name {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-primary);
}

.wish-major-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.wish-score-info {
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 90px;
}

.wish-score {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text-primary);
}

.wish-diff {
    font-size: 0.75rem;
}

.wish-diff.positive {
    color: #10b981;
}

.wish-diff.negative {
    color: #ef4444;
}

.wish-remove-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0.4;
    transition: all 0.2s;
    padding: 4px;
}

.wish-remove-btn:hover {
    opacity: 1;
    color: #ef4444;
}

/* 智能检测报告模态框 */
.wish-report-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.wish-report-modal {
    width: 100%;
    max-width: 600px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
}

.wish-report-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wish-report-header h2 i {
    color: #8b5cf6;
}

.wish-report-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
}

.wish-report-close:hover {
    color: var(--text-primary);
}

#wish-report-body {
    overflow-y: auto;
    padding: 20px;
}

.report-section {
    margin-bottom: 20px;
}

.report-section h3 {
    font-size: 1rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.report-section h3.error {
    color: #ef4444;
}

.report-section h3.warning {
    color: #f59e0b;
}

.report-section h3.success {
    color: #10b981;
}

.report-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--card-border);
    padding: 10px 15px;
    border-radius: 8px;
    margin-bottom: 8px;
    font-size: 0.85rem;
    line-height: 1.5;
}

.report-item.error {
    border-left: 3px solid #ef4444;
}

.report-item.warning {
    border-left: 3px solid #f59e0b;
}

/* 导出区域（隐藏用） */
.wish-export-container {
    padding: 20px;
    background: #fff;
    color: #000;
    width: 800px;
}

.wish-export-title {
    text-align: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 20px;
    color: #333;
}

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

.wish-export-table th,
.wish-export-table td {
    border: 1px solid #ccc;
    padding: 8px;
    text-align: center;
    font-size: 0.85rem;
    color: #333;
}

.wish-export-table th {
    background: #f5f5f5;
    font-weight: bold;
}

/* =====================================================
   位次换算计算器
   ===================================================== */
.converter-layout {
    display: flex;
    gap: 24px;
    margin-top: 16px;
}

.converter-input-area {
    flex: 0 0 320px;
}

.converter-result-area {
    flex: 1;
    min-height: 200px;
}

/* 模式切换Tab */
.input-mode-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 16px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--card-border);
}

.mode-tab {
    flex: 1;
    padding: 9px 16px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.25s;
}

.mode-tab:hover {
    background: rgba(59, 130, 246, 0.05);
}

.mode-tab.active {
    background: var(--accent-gradient);
    color: white;
    font-weight: 600;
}

/* 输入表单 */
.converter-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-row label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.form-row input,
.form-row select {
    padding: 9px 12px;
    border-radius: 8px;
    border: 1px solid var(--card-border);
    background: rgba(128, 128, 128, 0.07);
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: border-color 0.2s;
}

.form-row input:focus,
.form-row select:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.converter-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 10px;
    background: var(--accent-gradient);
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: opacity 0.2s, transform 0.15s;
}

.converter-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.converter-btn:active {
    transform: translateY(0);
}

/* 空态 */
.conv-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 200px;
    color: var(--text-secondary);
    gap: 10px;
}

.conv-empty i {
    font-size: 2.5rem;
    opacity: 0.3;
}

.conv-empty p {
    font-size: 0.85rem;
}

/* 结果区 */
.conv-result-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.conv-source-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    border-radius: 12px;
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.15);
}

.conv-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: white;
    flex-shrink: 0;
}

.conv-source-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.conv-label {
    font-size: 0.78rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.conv-value {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
}

.conv-value small {
    font-size: 0.78rem;
    font-weight: 400;
    color: var(--text-secondary);
}

.conv-sub {
    font-size: 0.72rem;
    color: var(--text-secondary);
}

/* 箭头 */
.conv-arrow {
    text-align: center;
    font-size: 0.85rem;
    color: var(--accent-primary);
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.conv-arrow i {
    font-size: 1.2rem;
    animation: conv-bounce 1.5s infinite;
}

@keyframes conv-bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(4px);
    }
}

/* 目标卡片 */
.conv-target-cards {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.conv-target-card {
    flex: 1;
    min-width: 180px;
    padding: 18px 20px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--card-border);
    background: rgba(128, 128, 128, 0.03);
    transition: transform 0.2s, box-shadow 0.2s;
}

.conv-target-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.conv-target-card.y2024 {
    border-left: 3px solid #f59e0b;
}

.conv-target-card.y2025 {
    border-left: 3px solid #3b82f6;
}

.conv-year-label {
    font-size: 0.78rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 6px;
}

.conv-big-score {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.1;
}

.conv-big-score span {
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--text-secondary);
}

.conv-rank-sub {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* 解读备注 */
.conv-diff-note {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    padding: 12px 16px;
    border-radius: 8px;
    background: rgba(16, 185, 129, 0.06);
    border: 1px solid rgba(16, 185, 129, 0.15);
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.conv-diff-note i {
    color: var(--bao-color);
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 1px;
}

/* =====================================================
   收藏页增强：工具栏、对比表格、视图切换
   ===================================================== */
.fav-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
    padding: 10px 14px;
    background: rgba(128, 128, 128, 0.04);
    border-radius: 10px;
    border: 1px solid var(--card-border);
}

.fav-toolbar .fav-summary {
    margin: 0;
    padding: 0;
    font-size: 0.9rem;
}

.fav-toolbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.fav-sort-select {
    background: rgba(128, 128, 128, 0.1);
    color: var(--text-primary);
    border: 1px solid var(--card-border);
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
}

.fav-view-toggle {
    display: flex;
    border: 1px solid var(--card-border);
    border-radius: 6px;
    overflow: hidden;
}

.fav-view-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 5px 10px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.fav-view-btn.active {
    background: var(--accent-primary);
    color: white;
}

.fav-batch-wish-btn {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    border: none;
    padding: 5px 14px;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: opacity 0.2s;
}

.fav-batch-wish-btn:hover {
    opacity: 0.85;
}

/* 对比表格视图 */
.fav-compare-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.fav-compare-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
    min-width: 700px;
}

.fav-compare-table th {
    background: rgba(128, 128, 128, 0.08);
    padding: 8px 10px;
    text-align: left;
    font-weight: 600;
    color: var(--text-secondary);
    border-bottom: 2px solid var(--card-border);
    white-space: nowrap;
}

.fav-compare-table td {
    padding: 8px 10px;
    border-bottom: 1px solid var(--card-border);
    vertical-align: middle;
}

.fav-compare-table tr:hover {
    background: rgba(59, 130, 246, 0.04);
}

.fav-tbl-school {
    color: var(--accent-primary);
    cursor: pointer;
    font-weight: 500;
}

.fav-tbl-school:hover {
    text-decoration: underline;
}

.fav-goto-btn {
    background: transparent;
    border: 1px solid var(--card-border);
    color: var(--text-secondary);
    padding: 3px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    margin-right: 4px;
    transition: all 0.2s;
}

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

/* 平铺视图中的学校名 */
.fav-flat-school {
    color: var(--accent-primary);
    cursor: pointer;
    font-weight: 600;
    font-size: 0.78rem;
    margin-right: 6px;
}

.fav-flat-school:hover {
    text-decoration: underline;
}

.fav-item-flat .fav-item-main {
    flex-wrap: wrap;
}

/* 卡片视图中学校栏的跳转箭头 */
.fav-school-header[data-school]:hover {
    background: rgba(59, 130, 246, 0.08) !important;
}

/* =====================================================
   表格排序交互 & 筛选
   ===================================================== */
.sortable-th {
    cursor: pointer;
    user-select: none;
    position: relative;
}

.sortable-th:hover {
    color: var(--accent-primary);
}

.sortable-th i {
    font-size: 0.9rem;
    margin-left: 4px;
    vertical-align: middle;
    opacity: 0.5;
}

.sortable-th:hover i {
    opacity: 1;
}

.detail-filter-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 12px 0;
    padding: 8px 12px;
    background: rgba(128, 128, 128, 0.05);
    border-radius: 8px;
    border: 1px solid var(--card-border);
}

.filter-label {
    font-size: 0.82rem;
    color: var(--text-secondary);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 4px;
}

.filter-select {
    background: rgba(128, 128, 128, 0.1);
    color: var(--text-primary);
    border: 1px solid var(--card-border);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.82rem;
    cursor: pointer;
}

/* =====================================================
   时间线智能化
   ===================================================== */
.timeline-countdown {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(139, 92, 246, 0.15));
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    color: var(--accent-primary);
    font-weight: 500;
}

.timeline-countdown strong {
    font-size: 1.1rem;
    color: var(--text-primary);
}

.timeline-item .dot.completed {
    background: var(--bao-color);
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
}

.timeline-item .dot.completed::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.6rem;
    color: white;
    font-weight: 700;
}

.timeline-item .dot.current {
    background: var(--accent-primary);
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.6);
    animation: pulse-dot 2s infinite ease-in-out;
}

@keyframes pulse-dot {

    0%,
    100% {
        box-shadow: 0 0 8px rgba(59, 130, 246, 0.4);
    }

    50% {
        box-shadow: 0 0 20px rgba(59, 130, 246, 0.8);
    }
}

.timeline-item.current-phase .timeline-content {
    border-left: 3px solid var(--accent-primary);
    padding-left: 12px;
    background: rgba(59, 130, 246, 0.05);
    border-radius: 0 8px 8px 0;
}

.timeline-item.current-phase .timeline-content h4::after {
    content: ' ← 当前阶段';
    font-size: 0.7rem;
    color: var(--accent-primary);
    font-weight: 500;
    background: rgba(59, 130, 246, 0.1);
    padding: 1px 8px;
    border-radius: 4px;
    margin-left: 6px;
}

/* =====================================================
   移动端汉堡菜单 & 响应式
   ===================================================== */
.mobile-menu-btn {
    display: none;
    position: fixed;
    top: 14px;
    left: 14px;
    z-index: 1001;
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--card-border);
    color: var(--text-primary);
    width: 42px;
    height: 42px;
    border-radius: 10px;
    font-size: 1.3rem;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.mobile-menu-btn:hover {
    background: var(--accent-primary);
    color: white;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
    z-index: 99;
    opacity: 0;
    transition: opacity 0.3s;
}

.sidebar-overlay.active {
    display: block;
    opacity: 1;
}

/* ---- 响应式断点: 平板 (<= 1024px) ---- */
@media (max-width: 1024px) {
    .app-container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        height: auto;
        max-height: none;
        position: relative;
        border-right: none;
        border-bottom: 1px solid var(--card-border);
    }

    .main-content {
        height: auto;
        overflow-y: auto;
    }
}

/* ---- 响应式断点: 手机 (<= 768px) ---- */
@media (max-width: 768px) {
    body {
        overflow: auto;
        height: auto;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .app-container {
        flex-direction: column;
    }

    .sidebar {
        position: fixed;
        top: 0;
        left: -280px;
        width: 280px;
        height: 100vh;
        z-index: 100;
        overflow-y: auto;
        transition: left 0.3s ease;
        border-right: 1px solid var(--card-border);
        box-shadow: 4px 0 25px rgba(0, 0, 0, 0.3);
    }

    .sidebar.open {
        left: 0;
    }

    .main-content {
        width: 100%;
        height: auto;
        overflow-y: auto;
        padding-top: 60px;
    }

    .top-header {
        flex-wrap: wrap;
        gap: 8px;
        padding: 10px 15px;
    }

    .top-header h1 {
        font-size: 1rem;
        margin-left: 40px;
        /* 给汉堡按钮留空间 */
    }

    .header-actions {
        width: 100%;
        flex-wrap: wrap;
        gap: 6px;
    }

    .score-input-group {
        flex: 1;
        min-width: 180px;
    }

    .content-wrapper {
        padding: 10px;
    }

    .grid-layout {
        grid-template-columns: 1fr;
    }

    .glass-card.span-2 {
        grid-column: span 1;
    }

    /* 五步法纵向排列 */
    .steps-flow {
        flex-direction: column;
    }

    .step-arrow {
        transform: rotate(90deg);
    }

    /* 详情表格水平滚动 */
    .major-table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .major-table {
        min-width: 700px;
    }

    /* 策略图横排改纵排 */
    .strategy-diagram {
        flex-direction: column;
    }

    /* 时间线紧凑 */
    .timeline-item .timeline-content h4::after {
        display: block;
        margin-left: 0;
        margin-top: 4px;
    }

    /* 志愿单条目紧凑 */
    .wish-item {
        flex-wrap: wrap;
        gap: 8px;
    }

    .wish-score-info {
        min-width: auto;
    }

    /* 位次换算响应式 */
    .converter-layout {
        flex-direction: column;
    }

    /* 详情区布局调整 */
    .detail-header {
        flex-direction: column;
        gap: 10px;
    }

    .detail-score {
        text-align: left;
    }

    /* 筛选栏换行 */
    .detail-filter-bar {
        flex-wrap: wrap;
    }

    /* ============ 全量数据查询 移动端优化 ============ */
    .db-stats-bar {
        flex-wrap: wrap;
        gap: 6px;
        padding: 10px 12px;
    }
    .db-stat-chip {
        font-size: 0.75rem;
        padding: 4px 8px;
    }

    /* Tab 标签横向可滑动 */
    .db-search-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .db-search-tabs::-webkit-scrollbar {
        display: none;
    }
    .db-tab {
        flex: 0 0 auto;
        padding: 10px 14px;
        font-size: 0.82rem;
        white-space: nowrap;
    }

    /* 搜索面板内边距缩小 */
    .db-search-panel {
        border-radius: 10px;
        margin-bottom: 1rem;
    }

    /* 搜索表单垂直布局 */
    .db-search-form {
        flex-direction: column;
        padding: 14px;
        gap: 10px;
    }
    .db-search-form.active {
        display: flex;
        flex-wrap: nowrap;
    }

    /* 输入框全宽 */
    .db-search-form .db-input-row {
        flex: 1 1 100%;
        min-width: unset;
        width: 100%;
    }
    .db-input-row input,
    .db-input-row select {
        width: 100%;
        box-sizing: border-box;
        font-size: 0.88rem;
        padding: 10px 14px;
    }
    .db-input-row label {
        font-size: 0.8rem;
    }

    /* 查询按钮全宽 + 增大触控区域 */
    .db-search-btn {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
        font-size: 0.92rem;
        border-radius: 10px;
    }

    /* 985/211/双一流 快选按钮垂直排列 */
    .db-quick-toggle-btn {
        width: 100%;
        font-size: 0.82rem;
        padding: 10px 14px;
        border-radius: 8px;
        justify-content: flex-start;
    }

    /* 快选区域 */
    .quick-select-area {
        margin-top: 0.8rem;
        gap: 8px;
    }
    .quick-select-chips {
        gap: 6px;
        padding: 8px 10px 10px;
    }
    .univ-chip {
        font-size: 0.76rem;
        padding: 6px 10px;
    }

    /* 数据表格 */
    .db-data-table {
        font-size: 0.75rem;
    }
    .db-data-table th,
    .db-data-table td {
        padding: 8px 6px;
    }

    /* 学校区块头部 */
    .db-school-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        padding: 12px;
    }
    .db-school-header h3 {
        font-size: 0.95rem;
        flex-wrap: wrap;
        gap: 6px;
    }
    .db-year-tags {
        flex-wrap: wrap;
    }
    .db-result-count {
        font-size: 0.8rem;
    }
}

/* ============================================================
   全量数据库查询页面样式
   ============================================================ */

/* 统计概览条 */
.db-stats-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: rgba(59, 130, 246, 0.04);
    border: 1px solid rgba(59, 130, 246, 0.12);
    border-radius: 12px;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.db-stat-chip {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    color: var(--text-secondary);
    padding: 4px 12px;
    background: rgba(128, 128, 128, 0.06);
    border-radius: 8px;
    white-space: nowrap;
}

.db-stat-chip i {
    color: var(--accent-primary);
    font-size: 0.95rem;
}

.db-stat-chip strong {
    color: var(--text-primary);
    font-weight: 700;
}

.db-stat-chip.total {
    background: var(--accent-gradient);
    color: white;
    font-weight: 600;
}

.db-stat-chip.total i,
.db-stat-chip.total strong {
    color: white;
}

.db-stat-chip.error {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.db-stat-chip.error i {
    color: #ef4444;
}

/* 搜索面板 */
.db-search-panel {
    background: rgba(128, 128, 128, 0.03);
    border: 1px solid var(--card-border);
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.db-search-tabs {
    display: flex;
    border-bottom: 1px solid var(--card-border);
    background: rgba(128, 128, 128, 0.03);
}

.db-tab {
    flex: 1;
    padding: 12px 16px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.25s;
    position: relative;
}

.db-tab:hover {
    color: var(--text-primary);
    background: rgba(128, 128, 128, 0.06);
}

.db-tab.active {
    color: var(--accent-primary);
    font-weight: 600;
}

.db-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 20%;
    right: 20%;
    height: 3px;
    background: var(--accent-gradient);
    border-radius: 3px 3px 0 0;
}

.db-tab i {
    font-size: 1.05rem;
}

/* 搜索表单 */
.db-search-form {
    display: none;
    padding: 18px 20px;
    gap: 12px;
    align-items: flex-end;
}

.db-search-form.active {
    display: flex;
    flex-wrap: wrap;
}

.db-input-row {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 0 1 350px;
    min-width: 150px;
}

.db-input-row label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.3px;
}

.db-input-row input,
.db-input-row select {
    padding: 9px 14px;
    border: 1px solid var(--card-border);
    border-radius: 10px;
    background: rgba(128, 128, 128, 0.06);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
    transition: all 0.25s;
}

.db-input-row input:focus,
.db-input-row select:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.db-input-row input::placeholder {
    color: var(--text-secondary);
    opacity: 0.5;
}

.db-search-btn {
    padding: 9px 24px;
    background: var(--accent-gradient);
    color: white;
    border: none;
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.25s;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.25);
}

.db-search-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.35);
}

.db-search-btn:active {
    transform: translateY(0);
}

/* 结果区域 */
.db-result-area {
    min-height: 200px;
}

.db-result-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: var(--text-secondary);
    gap: 12px;
}

.db-result-empty i {
    font-size: 3rem;
    opacity: 0.2;
}

.db-result-empty p {
    font-size: 0.9rem;
}

/* 加载动画 */
.db-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    gap: 16px;
    color: var(--text-secondary);
}

.db-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(128, 128, 128, 0.15);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: dbSpin 0.8s linear infinite;
}

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

/* 结果统计 */
.db-result-count {
    padding: 10px 16px;
    background: rgba(16, 185, 129, 0.06);
    border: 1px solid rgba(16, 185, 129, 0.12);
    border-radius: 10px;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.db-result-count i {
    color: #10b981;
}

.db-result-count strong {
    color: var(--text-primary);
}

.db-limit-tip {
    color: var(--wen-color);
    font-size: 0.78rem;
    margin-left: 8px;
}

/* 学校分组块 */
.db-school-block {
    margin-bottom: 1.5rem;
    border: 1px solid var(--card-border);
    border-radius: 12px;
    overflow: hidden;
    background: rgba(128, 128, 128, 0.02);
}

.db-school-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    background: rgba(59, 130, 246, 0.04);
    border-bottom: 1px solid var(--card-border);
    flex-wrap: wrap;
    gap: 8px;
}

.db-school-header h3 {
    font-size: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-primary);
}

.db-school-header h3 i {
    color: var(--accent-primary);
}

.db-year-tags {
    display: flex;
    gap: 6px;
}

.db-year-tag {
    font-size: 0.72rem;
    padding: 2px 10px;
    border-radius: 6px;
    font-weight: 600;
}

.db-year-tag.y2025 {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.db-year-tag.y2024 {
    background: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
}

/* 数据表格 */
.db-table-wrapper {
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(128, 128, 128, 0.2) transparent;
}

.db-data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
}

.db-data-table th {
    padding: 10px 12px;
    text-align: left;
    font-weight: 600;
    font-size: 0.75rem;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--card-border);
    background: rgba(128, 128, 128, 0.04);
    white-space: nowrap;
    cursor: pointer;
    user-select: none;
    position: sticky;
    top: 0;
    z-index: 1;
    transition: background 0.2s;
}

.db-data-table th:hover {
    background: rgba(59, 130, 246, 0.08);
    color: var(--accent-primary);
}

.db-data-table th[data-sort-dir="asc"]::after {
    content: ' ▲';
    font-size: 0.6rem;
}

.db-data-table th[data-sort-dir="desc"]::after {
    content: ' ▼';
    font-size: 0.6rem;
}

.db-data-table td {
    padding: 9px 12px;
    border-bottom: 1px solid rgba(128, 128, 128, 0.05);
    transition: background 0.15s;
}

.db-data-table tr:hover td {
    background: rgba(59, 130, 246, 0.04);
}

.db-data-table .td-code {
    font-family: 'Inter', monospace;
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 0.78rem;
}

.db-data-table .td-name {
    font-weight: 500;
    color: var(--text-primary);
    max-width: 250px;
}

.db-data-table .td-type {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.db-data-table .td-score-val {
    font-weight: 700;
    color: var(--accent-primary);
    font-size: 0.88rem;
}

.db-data-table .td-rank-val {
    font-weight: 500;
    color: var(--text-secondary);
    font-family: 'Inter', monospace;
    font-size: 0.8rem;
}

/* 年份行标签 */
.db-year-badge {
    display: inline-block;
    font-size: 0.68rem;
    padding: 1px 8px;
    border-radius: 4px;
    font-weight: 700;
}

.db-year-badge.y2025 {
    background: rgba(59, 130, 246, 0.12);
    color: #3b82f6;
}

.db-year-badge.y2024 {
    background: rgba(139, 92, 246, 0.12);
    color: #8b5cf6;
}

/* 2025行交替背景 */
.db-data-table tr.year-row-2025 td {
    background: rgba(59, 130, 246, 0.02);
}

.db-data-table tr.year-row-2025:hover td {
    background: rgba(59, 130, 246, 0.06);
}

/* 亮色主题适配 */
body.light-theme .db-stats-bar {
    background: rgba(59, 130, 246, 0.05);
    border-color: rgba(59, 130, 246, 0.15);
}

body.light-theme .db-stat-chip {
    background: rgba(0, 0, 0, 0.03);
}

body.light-theme .db-stat-chip.total {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: white;
}

body.light-theme .db-stat-chip.total i,
body.light-theme .db-stat-chip.total strong {
    color: white;
}

body.light-theme .db-search-panel {
    background: rgba(0, 0, 0, 0.01);
    border-color: rgba(0, 0, 0, 0.08);
}

body.light-theme .db-input-row input,
body.light-theme .db-input-row select {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 0, 0, 0.12);
}

body.light-theme .db-data-table th {
    background: rgba(0, 0, 0, 0.02);
}

body.light-theme .db-school-block {
    background: rgba(0, 0, 0, 0.01);
}

body.light-theme .db-school-header {
    background: rgba(59, 130, 246, 0.04);
}

/* 快速选择区域 */
.quick-select-area {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px dashed rgba(128, 128, 128, 0.2);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.quick-select-group {
    background: rgba(128, 128, 128, 0.03);
    border: 1px solid rgba(128, 128, 128, 0.1);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.db-quick-toggle-btn {
    padding: 8px 16px;
    background: transparent;
    border: 1px solid var(--card-border);
    border-radius: 10px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.25s;
    white-space: nowrap;
}

.db-quick-toggle-btn:hover {
    background: rgba(128, 128, 128, 0.05);
}

.db-quick-toggle-btn.expanded {
    background: rgba(59, 130, 246, 0.08);
    border-color: rgba(59, 130, 246, 0.3);
    color: var(--accent-primary);
}

.db-quick-toggle-btn .toggle-icon {
    transition: transform 0.3s ease;
    margin-left: 2px;
}

.db-quick-toggle-btn.expanded .toggle-icon {
    transform: rotate(180deg);
}

.toggle-icon {
    transition: transform 0.3s ease;
    color: var(--text-secondary);
}

.quick-select-group.expanded .toggle-icon {
    transform: rotate(180deg);
}

.quick-select-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 14px 14px;
}

.univ-chip {
    padding: 5px 10px;
    background: rgba(128, 128, 128, 0.06);
    border: 1px solid rgba(128, 128, 128, 0.12);
    border-radius: 8px;
    font-size: 0.8rem;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.univ-chip:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
    color: var(--accent-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(59, 130, 246, 0.1);
}

.univ-chip:active {
    transform: translateY(0);
}

body.light-theme .univ-chip {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.08);
}

body.light-theme .univ-chip:hover {
    background: rgba(37, 99, 235, 0.08);
    border-color: rgba(37, 99, 235, 0.2);
    color: #2563eb;
}

/* =====================================================
   响应式适配 - 移动端 & 平板
   ===================================================== */

/* 移动端汉堡菜单按钮 */
.mobile-menu-btn {
    display: none;
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 1001;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    color: var(--text-primary);
    font-size: 1.3rem;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: all 0.3s;
}

/* 侧栏遮罩层 */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 99;
    opacity: 0;
    transition: opacity 0.3s;
}

.sidebar-overlay.active {
    display: block;
    opacity: 1;
}

/* ========== 平板断点 (<=1024px) ========== */
@media (max-width: 1024px) {
    .top-header h1 {
        font-size: 1.3rem;
    }
    .main-content {
        padding: 1.5rem;
    }
    .grid-layout {
        grid-template-columns: 1fr;
    }
    .span-2 {
        grid-column: span 1;
    }
    .sidebar {
        width: 240px;
    }
    .detail-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .detail-score {
        text-align: left;
    }
    .big-score {
        font-size: 1.6rem;
    }
    /* 五步法横向滚动 */
    .steps-flow {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 10px;
    }
    .step-card {
        min-width: 200px;
        flex-shrink: 0;
    }
    /* 策略卡片 */
    .strategy-diagram {
        flex-direction: column;
    }
    /* 换算器 */
    .converter-layout {
        flex-direction: column;
    }
    /* 收藏对比表格允许横向滚动 */
    .fav-compare-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .fav-compare-table {
        min-width: 700px;
    }
}

/* ========== 移动端断点 (<=768px) ========== */
@media (max-width: 768px) {
    /* body滚动修正 */
    body {
        overflow: auto;
        height: auto;
        min-height: 100vh;
    }

    /* 布局从flex行变为flex列 */
    .app-container {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
    }

    /* 汉堡菜单显示 */
    .mobile-menu-btn {
        display: flex;
    }

    /* 侧栏改为抽屉式 */
    .sidebar {
        position: fixed;
        top: 0;
        left: -300px;
        width: 280px;
        height: 100vh;
        z-index: 100;
        transition: left 0.3s ease;
        padding-top: 20px;
        background: rgba(15, 23, 42, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        /* 强制垂直排列 — 这是关键修复 */
        flex-direction: column !important;
        align-items: stretch !important;
    }
    body.light-theme .sidebar {
        background: rgba(255, 255, 255, 0.95);
    }
    .sidebar.open {
        left: 0;
    }

    /* Logo保持横向、不换行 */
    .logo {
        display: flex !important;
        flex-direction: row !important;
        align-items: center;
        width: 100%;
        padding: 0.8rem 1.5rem;
        margin-bottom: 0.5rem;
        white-space: nowrap;
        flex-shrink: 0;
    }
    .logo span {
        white-space: nowrap !important;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* 用户信息保持横向 */
    .user-profile {
        display: flex !important;
        flex-direction: row !important;
        align-items: center;
        padding: 1rem 1.5rem;
        flex-shrink: 0;
    }

    /* 导航链接保持垂直列表 */
    .nav-links {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        overflow-y: auto;
        flex: 1;
        min-height: 0;
    }
    .nav-links li {
        width: 100%;
        flex-shrink: 0;
    }

    /* 遮罩层z-index确保在sidebar之下、在内容之上 */
    .sidebar-overlay {
        z-index: 99;
    }
    .sidebar-overlay.active {
        display: block;
        opacity: 1;
    }

    /* 主内容区全宽 */
    .main-content {
        padding: 1rem;
        padding-top: 60px; /* 给汉堡按钮留空间 */
        width: 100%;
        overflow-y: visible;
    }

    /* 顶部header堆叠布局 */
    .top-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 1.2rem;
    }
    .top-header h1 {
        font-size: 1.15rem;
        line-height: 1.3;
    }
    .header-actions {
        flex-wrap: wrap;
        gap: 8px;
        width: 100%;
    }
    .score-input-group {
        flex: 1 1 100%;
        min-width: 0;
    }
    .badge {
        padding: 5px 10px;
        font-size: 0.75rem;
        flex: 0 0 auto;
    }

    /* 概览网格单列 */
    .grid-layout {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .span-2 {
        grid-column: span 1;
    }

    /* 玻璃卡片 */
    .glass-card {
        border-radius: 12px;
        margin-bottom: 1rem;
    }
    .card-header {
        padding: 1rem;
    }
    .card-body {
        padding: 1rem;
    }

    /* 五步法垂直排列 */
    .steps-flow.detailed-steps {
        flex-direction: column;
        gap: 12px;
    }
    .step-card {
        min-width: auto;
        width: 100%;
    }
    .step-arrow {
        display: none; /* 隐藏箭头 */
    }

    /* 填报画像分析 */
    .row-layout {
        flex-direction: column;
    }
    .stat-box {
        min-width: auto;
    }

    /* 学校详情页 */
    .schools-detail {
        min-height: auto;
    }
    .detail-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 1rem;
    }
    .detail-score {
        text-align: left;
    }
    .big-score {
        font-size: 1.5rem;
    }
    .detail-body {
        padding: 1rem;
    }

    /* 冲稳保统计条 */
    .tier-summary-bar {
        flex-wrap: wrap;
        gap: 8px;
        font-size: 0.78rem;
        padding: 8px 12px;
    }

    /* 表格横向滚动 */
    .db-table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 0 -1rem;
        padding: 0 1rem;
    }
    .db-data-table {
        min-width: 650px;
    }
    .major-table {
        min-width: 600px;
    }
    .db-data-table th,
    .db-data-table td {
        padding: 8px 10px;
        font-size: 0.8rem;
    }
    .major-table th,
    .major-table td {
        padding: 8px 10px;
        font-size: 0.82rem;
    }

    /* 策略 */
    .strategy-diagram {
        flex-direction: column;
    }
    .strategy-tier {
        flex-direction: row;
    }

    /* 时间线 */
    .timeline-countdown {
        font-size: 0.8rem;
    }

    /* 换算器 */
    .converter-layout {
        flex-direction: column;
    }
    .converter-input-area,
    .converter-result-area {
        width: 100%;
    }
    .input-mode-tabs {
        flex-wrap: wrap;
    }
    .conv-result-cards {
        gap: 12px;
    }
    .conv-target-cards {
        flex-direction: column;
    }
    .conv-source-card {
        flex-direction: column;
        text-align: center;
    }

    /* 数据库查询 */
    .db-stats-bar {
        flex-wrap: wrap;
        gap: 6px;
    }
    .db-stat-chip {
        font-size: 0.75rem;
        padding: 5px 10px;
    }
    .db-search-tabs {
        flex-wrap: wrap;
        gap: 6px;
    }
    .db-tab {
        flex: 1;
        min-width: auto;
        font-size: 0.8rem;
        padding: 8px 10px;
        text-align: center;
        justify-content: center;
    }
    .db-search-form {
        padding: 1rem;
    }
    .db-input-row {
        flex-direction: column;
        gap: 4px;
    }
    .db-input-row label {
        font-size: 0.82rem;
    }
    .db-search-btn {
        width: 100%;
    }
    /* 985/211快选按钮 */
    .db-quick-toggle-btn {
        font-size: 0.78rem;
        padding: 6px 12px;
    }
    .quick-select-chips {
        gap: 6px;
        padding: 0 10px 10px;
    }
    .univ-chip {
        font-size: 0.72rem;
        padding: 4px 8px;
    }

    /* 全量数据查询结果 */
    .db-school-header h3 {
        font-size: 1rem;
    }
    .db-result-count {
        font-size: 0.82rem;
    }

    /* 收藏页 */
    .fav-toolbar {
        flex-direction: column;
        gap: 10px;
    }
    .fav-toolbar-actions {
        flex-wrap: wrap;
        gap: 8px;
    }
    .fav-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .fav-item-scores {
        width: 100%;
    }
    .fav-compare-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .fav-compare-table {
        min-width: 600px;
    }

    /* 志愿单 */
    .wish-page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .wish-header-actions {
        width: 100%;
        flex-wrap: wrap;
        gap: 6px;
    }
    .wish-action-btn {
        flex: 1;
        min-width: 0;
        text-align: center;
        justify-content: center;
        font-size: 0.78rem;
    }
    .wish-item {
        flex-wrap: wrap;
        gap: 8px;
        padding: 10px 12px;
    }
    .wish-content {
        flex: 1;
        min-width: 0;
    }
    .wish-school-row,
    .wish-major-row {
        flex-wrap: wrap;
    }

    /* 志愿检测报告弹窗 */
    .wish-report-modal {
        width: 95% !important;
        max-width: none !important;
        max-height: 85vh;
        overflow-y: auto;
    }

    /* 导出表格容器 */
    .wish-export-container {
        width: 100% !important;
    }

    /* 登录弹窗 */
    #login-modal > div {
        width: 92% !important;
        max-width: none !important;
    }
    #pwd-modal > div {
        width: 92% !important;
        max-width: none !important;
    }

    /* 动态背景缩小避免性能问题 */
    .orb {
        opacity: 0.3;
    }
    .orb-1 {
        width: 300px;
        height: 300px;
    }
    .orb-2 {
        width: 350px;
        height: 350px;
    }
    .orb-3 {
        display: none;
    }
}

/* ========== 小屏手机断点 (<=480px) ========== */
@media (max-width: 480px) {
    .top-header h1 {
        font-size: 1rem;
    }
    .header-actions {
        flex-direction: column;
        gap: 6px;
    }
    .score-input-group {
        width: 100%;
    }
    .badge {
        font-size: 0.7rem;
        padding: 4px 8px;
    }
    .card-header h2 {
        font-size: 0.95rem;
    }
    .db-data-table {
        min-width: 550px;
    }
    .major-table {
        min-width: 500px;
    }
    .db-data-table th,
    .db-data-table td,
    .major-table th,
    .major-table td {
        padding: 6px 8px;
        font-size: 0.75rem;
    }
    .wish-item {
        padding: 8px 10px;
    }
    .wish-num {
        font-size: 0.85rem;
        min-width: 24px;
    }
    .wish-school-name {
        font-size: 0.82rem;
    }
    .wish-major-name {
        font-size: 0.8rem;
    }

    /* 时间线 */
    .timeline-content h4 {
        font-size: 0.9rem;
    }
    .timeline-content p {
        font-size: 0.8rem;
    }

    /* Logo不换行 */
    .logo {
        font-size: 1.1rem;
    }
    .logo span {
        white-space: nowrap;
    }

    /* 增大导航触控面积 */
    .nav-links li {
        padding: 0.85rem 2rem;
    }
    .list-item {
        padding: 0.6rem 1rem 0.6rem 2.8rem;
    }

    /* 数据查询标签横向滑动 */
    .db-search-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 4px;
    }
    .db-tab {
        white-space: nowrap;
        flex-shrink: 0;
    }
}