/* ========== 全局样式 ========== */
* {
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 #f1f5f9;
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
}

/* ========== 导航标签 ========== */
.nav-tab {
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.8);
    white-space: nowrap;
}
.nav-tab:hover {
    background: rgba(255,255,255,0.2);
    color: white;
}
.nav-tab.active {
    background: white;
    color: #1e40af;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* ========== Tab内容 ========== */
.tab-content {
    display: none;
}
.tab-content.active {
    display: block;
}

/* ========== 学校卡片 ========== */
.school-card {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.2s;
    background: white;
    position: relative;
}
.school-card:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}
.school-card.selected {
    border-color: #1e40af;
    box-shadow: 0 0 0 2px rgba(30,64,175,0.2);
}
.school-select-box {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 20px;
    height: 20px;
    border: 2px solid #9ca3af;
    border-radius: 4px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    transition: all 0.2s;
}
.school-select-box.checked {
    background: #1e40af;
    border-color: #1e40af;
    color: white;
}

/* ========== 分数段颜色 ========== */
.score-top { color: #dc2626; font-weight: 700; }      /* 680+ 头部 */
.score-high { color: #ea580c; font-weight: 600; }     /* 650-680 优秀 */
.score-good { color: #ca8a04; font-weight: 600; }     /* 630-650 良好 */
.score-mid { color: #0891b2; font-weight: 600; }      /* 600-630 中等 */
.score-low { color: #059669; font-weight: 600; }      /* 600以下 保底 */

/* ========== 展开/折叠 ========== */
.collapsible {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}
.collapsible.open {
    max-height: 2000px;
}

/* ========== 时间轴 ========== */
.timeline-item {
    display: flex;
    gap: 16px;
    position: relative;
}
.timeline-item::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 36px;
    bottom: -16px;
    width: 2px;
    background: #e5e7eb;
}
.timeline-item:last-child::before {
    display: none;
}
.timeline-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #dbeafe;
    color: #1e40af;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
    z-index: 1;
}

/* ========== 对比悬浮栏 ========== */
#compareBar.show {
    transform: translateY(0);
}
.compare-tag {
    background: #eff6ff;
    color: #1e40af;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}
.compare-tag .remove {
    cursor: pointer;
    font-weight: bold;
    opacity: 0.6;
}
.compare-tag .remove:hover {
    opacity: 1;
}

/* ========== 特色项目卡片 ========== */
.program-card {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%);
    transition: all 0.2s;
}
.program-card:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    border-color: #93c5fd;
}

/* ========== 响应式调整 ========== */
@media (max-width: 768px) {
    .timeline-item::before {
        left: 12px;
    }
    .timeline-dot {
        width: 26px;
        height: 26px;
        font-size: 12px;
    }
}
