/* 主体样式 */
body {
    background-color: #f5f5f7;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: #1d1d1f;
    line-height: 1.5;
}

/* 统一主色：Bootstrap 的 text-primary 覆盖为学科蓝 */
.text-primary {
    color: #0a5dc2 !important;
}

/* ============================================================
   顶部 site-header：大面积蓝色色块（标题 + 导航）
   ============================================================ */
.site-header {
    background: linear-gradient(135deg, #084a9e 0%, #0a5dc2 58%, #0d6bd6 100%);
    padding: 22px 0 18px;
    margin-bottom: 24px;
}

.site-header .site-header-title {
    margin-bottom: 16px;
}

.site-header .nav-buttons {
    padding: 0;
}

/* 蓝底上的导航：纯文字白字，hover 加白线下划线 */
.site-header .btn-nav-link {
    background-color: transparent;
    color: rgba(255, 255, 255, 0.85);
    border: none;
    position: relative;
    padding: 8px 12px;
}

/* 下划线只作用于无子菜单的导航项（避免覆盖下拉箭头） */
.site-header .btn-nav-link:not(.dropdown-toggle)::after {
    content: '';
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 2px;
    height: 2px;
    background-color: #ffffff;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.2s ease;
}

.site-header .btn-nav-link:hover {
    background-color: transparent;
    color: #ffffff;
}

.site-header .btn-nav-link:not(.dropdown-toggle):hover::after {
    transform: scaleX(1);
}

.site-header .btn-nav-link.active {
    background-color: transparent;
    color: #ffffff;
    font-weight: 600;
    box-shadow: none;
}

.site-header .btn-nav-link:not(.dropdown-toggle).active::after {
    transform: scaleX(1);
}

/* 有子菜单的导航（dropdown-toggle）：::after 已被下拉箭头占用，
   故用 ::before 渲染下划线，子菜单选中时父菜单也显示选中横线 */
.site-header .btn-nav-link.dropdown-toggle::before {
    content: '';
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 2px;
    height: 2px;
    background-color: #ffffff;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.2s ease;
}

.site-header .btn-nav-link.dropdown-toggle.active::before {
    transform: scaleX(1);
}

/* 有子菜单的导航：白色箭头标识（加大） */
.site-header .dropdown-toggle::after {
    border-top-color: rgba(255, 255, 255, 0.85);
    border-width: 0.35em;
    margin-left: 0.35em;
    transition: transform 0.2s ease;
}

.site-header .dropdown-toggle:hover::after {
    border-top-color: #ffffff;
}

/* 有子菜单的导航：菜单展开时箭头旋转为展开态标识 */
.site-header .nav-dropdown.show .dropdown-toggle::after {
    transform: rotate(180deg);
    border-top-color: #ffffff;
}

/* 蓝底 header 的下拉菜单：统一直角白底精致化 */
.site-header .dropdown-menu {
    border-radius: 0;
    border: 1px solid #e5e5ea;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    padding: 6px;
    margin-top: 6px;
    min-width: 180px;
}

.site-header .dropdown-item {
    border-radius: 0;
    padding: 8px 12px;
    font-size: 0.9rem;
    color: #1d1d1f;
    display: flex;
    align-items: center;
    gap: 8px;
}

.site-header .dropdown-item i {
    color: #0a5dc2;
    font-size: 0.9rem;
}

.site-header .dropdown-item:hover {
    background-color: rgba(10, 93, 194, 0.08);
    color: #0a5dc2;
}

.site-header .dropdown-item.active {
    background-color: #0a5dc2;
    color: #ffffff;
}

.site-header .dropdown-item.active i {
    color: #ffffff;
}

/* ============================================================
   底部 site-footer：大面积蓝色色块 + 导航菜单
   ============================================================ */
.site-footer {
    background: linear-gradient(135deg, #084a9e 0%, #0a5dc2 58%, #0d6bd6 100%);
    color: #ffffff;
    padding: 40px 0 24px;
    margin-top: 32px;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: center;
    margin-bottom: 28px;
}

.footer-nav-group {
    min-width: 140px;
}

.footer-nav-group h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 12px;
}

.footer-nav-group a {
    display: block;
    color: rgba(255, 255, 255, 0.76);
    text-decoration: none;
    font-size: 0.85rem;
    line-height: 1.4;
    padding: 4px 0;
    transition: color 0.2s ease;
}

.footer-nav-group a:hover {
    color: #ffffff;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.22);
    padding-top: 16px;
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.72);
}

@media (max-width: 768px) {
    .site-header {
        display: none;
    }

    .site-footer {
        padding: 20px 0;
        margin-top: 20px;
    }

    .footer-nav {
        display: none;
    }

    .site-footer .container {
        padding-top: 0;
    }

    .footer-bottom {
        border-top: none;
        padding-top: 0;
    }
}

h1 {
    font-weight: 600;
    margin-bottom: 0;
    color: #1d1d1f;
    font-size: 1.8rem;
}

/* 顶部导航栏标题样式 */
.d-flex.justify-content-between h1 {
    display: flex;
    align-items: center;
    margin: 0;
}

/* 卡片样式 */
.card {
    border: 1px solid #e5e5ea;
    border-radius: 0;
    transition: box-shadow 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    overflow: hidden;
    background-color: #ffffff;
}

.card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.card-header {
    background-color: rgba(255, 255, 255, 0.8);
    border-bottom: 1px solid rgba(231, 231, 231, 0.8);
    font-weight: 600;
    padding: 15px 18px;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
}

.card-body {
    padding: 18px;
}

/* 全站直角：覆盖 Bootstrap 组件的默认圆角 */
.btn,
.btn-group > .btn,
.form-control,
.form-select,
.input-group-text,
.dropdown-menu,
.modal-content,
.alert,
.page-link {
    border-radius: 0 !important;
}

/* 学科卡片特别样式 */
.subject-card {
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
}

.subject-card .card-header {
    background: linear-gradient(145deg, #f8f9fa, #ffffff);
    color: #0a5dc2;
}

/* 搜索框样式 */
.search-container {
    position: relative;
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #86868b;
    z-index: 10;
    font-size: 0.9rem;
}

.clear-search {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #86868b;
    cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease;
}

.clear-search:hover {
    color: #1d1d1f;
}

.search-input {
    padding-left: 36px;
    padding-right: 36px;
    height: 38px;
    border-radius: 0;
    border: 1px solid rgba(210, 210, 215, 0.8);
    background-color: #fff;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.search-input:focus {
    background-color: #fff;
    border-color: #0a5dc2;
    box-shadow: 0 0 0 3px rgba(10, 93, 194, 0.15);
}

/* 学科列表样式 */
.subject-list {
    overflow-y: auto;
    padding-right: 8px;
    border-radius: 0;
}

.subject-tree {
    list-style: none;
    padding: 0;
    margin: 0;
}

.subject-item {
    margin-bottom: 1px;
}

.subject-link {
    display: block;
    padding: 8px 10px;
    color: #1d1d1f;
    text-decoration: none;
    border-radius: 0;
    transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    font-size: 0.9rem;
}

.subject-link:hover {
    background-color: rgba(245, 245, 247, 0.8);
}

.subject-item.active > .subject-link {
    background-color: #0a5dc2;
    color: white;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(10, 93, 194, 0.3);
}

.category-link {
    font-weight: 600;
    color: #3a3a3c;
}

.category-toggle {
    display: inline-block;
    margin-right: 8px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: #0a5dc2;
}

.category.expanded .category-toggle {
    transform: rotate(90deg);
}

.subject-subtree {
    list-style: none;
    padding-left: 20px;
    margin-top: 1px;
    display: none;
    animation: fadeIn 0.3s ease;
}

.category.expanded .subject-subtree {
    display: block;
}

.subject-link-child {
    font-size: 0.85em;
    padding: 7px 10px;
    color: #4a4a4c;
}

/* 自定义滚动条 */
.subject-list::-webkit-scrollbar {
    width: 5px;
}

.subject-list::-webkit-scrollbar-track {
    background: transparent;
}

.subject-list::-webkit-scrollbar-thumb {
    background-color: rgba(209, 209, 214, 0.7);
    border-radius: 0;
    transition: background-color 0.3s ease;
}

.subject-list::-webkit-scrollbar-thumb:hover {
    background-color: rgba(161, 161, 166, 0.9);
}

/* 评估结果按钮样式 */
.grade-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.grade-btn {
    border: none;
    border-radius: 0;
    padding: 8px 14px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    background-color: rgba(245, 245, 247, 0.7);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    width: auto;
    flex: 0 0 auto;
}

.grade-btn::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: transparent;
    border-radius: 0;
    transition: background-color 0.3s ease;
    z-index: -1;
}

.grade-btn:hover {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.grade-btn.active {
    background-color: #0a5dc2;
    color: white;
    box-shadow: 0 2px 8px rgba(10, 93, 194, 0.3);
}

/* 评估轮次按钮组样式优化 */
.round-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    width: 100%;
}

.round-filter .type-btn,
.round-filter .grade-btn {
    flex: 0 0 auto;
    text-align: center;
    justify-content: center;
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    font-size: 0.9rem;
    width: auto;
}

/* 移动端：评估轮次下拉框（桌面端由 .d-md-none 隐藏） */
.round-filter-select {
    min-width: 132px;
    max-width: 160px;
    padding: 6px 10px;
    font-size: 0.875rem;
    color: #1d1d1f;
    cursor: pointer;
}

/* 筛选卡片行布局优化，防止重叠 */
.filter-search-card .row {
    flex-wrap: wrap;
    align-items: center;
}

/* 中等屏幕以上，评估轮次区域宽度自适应内容，不固定占4列 */
@media (min-width: 768px) {
    .filter-search-card .col-md-4 {
        flex: 0 0 auto;
        width: auto;
        max-width: fit-content;
    }

    .filter-search-card .col-md-8 {
        flex: 1 1 0%;
        width: auto;
    }
}

/* 筛选区域padding优化 */
.filter-section .p-3 {
    padding: 0.8rem 1rem !important;
}

.grade-btn.all {
    background-color: rgba(245, 245, 247, 0.7);
    color: #1d1d1f;
}

.grade-btn.all.active {
    background-color: #0a5dc2;
    color: white;
}

.grade-btn.a-plus {
    background-color: rgba(254, 242, 242, 0.7);
    color: #b91c1c;
}

.grade-btn.a-plus.active {
    background-color: #b91c1c;
    color: white;
    box-shadow: 0 2px 8px rgba(185, 28, 28, 0.3);
}

.grade-btn.a {
    background-color: rgba(254, 242, 242, 0.7);
    color: #dc2626;
}

.grade-btn.a.active {
    background-color: #dc2626;
    color: white;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3);
}

.grade-btn.a-minus {
    background-color: rgba(254, 242, 242, 0.7);
    color: #ef4444;
}

.grade-btn.a-minus.active {
    background-color: #ef4444;
    color: white;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.grade-btn.b-plus {
    background-color: rgba(255, 251, 235, 0.7);
    color: #b45309;
}

.grade-btn.b-plus.active {
    background-color: #b45309;
    color: white;
    box-shadow: 0 2px 8px rgba(180, 83, 9, 0.3);
}

.grade-btn.b {
    background-color: rgba(255, 251, 235, 0.7);
    color: #d97706;
}

.grade-btn.b.active {
    background-color: #d97706;
    color: white;
    box-shadow: 0 2px 8px rgba(217, 119, 6, 0.3);
}

.grade-btn.b-minus {
    background-color: rgba(255, 251, 235, 0.7);
    color: #f59e0b;
}

.grade-btn.b-minus.active {
    background-color: #f59e0b;
    color: white;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.grade-btn.c-plus {
    background-color: rgba(248, 250, 252, 0.7);
    color: #475569;
}

.grade-btn.c-plus.active {
    background-color: #475569;
    color: white;
    box-shadow: 0 2px 8px rgba(71, 85, 105, 0.3);
}

.grade-btn.c {
    background-color: rgba(248, 250, 252, 0.7);
    color: #64748b;
}

.grade-btn.c.active {
    background-color: #64748b;
    color: white;
    box-shadow: 0 2px 8px rgba(100, 116, 139, 0.3);
}

.grade-btn.c-minus {
    background-color: rgba(248, 250, 252, 0.7);
    color: #94a3b8;
}

.grade-btn.c-minus.active {
    background-color: #94a3b8;
    color: white;
    box-shadow: 0 2px 8px rgba(148, 163, 184, 0.3);
}

/* 评估结果标签颜色 */
.badge {
    padding: 6px 10px;
    font-weight: 500;
    border-radius: 0;
    font-size: 0.7rem;
    letter-spacing: 0.02em;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* 等级徽章：三色系 × 三梯度 = 9 色值 */
.badge-honor--aplus { background-color: #b91c1c; color: #ffffff; }
.badge-honor--a { background-color: #dc2626; color: #ffffff; }
.badge-honor--aminus { background-color: #ef4444; color: #ffffff; }
.badge-honor--bplus { background-color: #b45309; color: #ffffff; }
.badge-honor--b { background-color: #d97706; color: #ffffff; }
.badge-honor--bminus { background-color: #f59e0b; color: #1d1d1f; }
.badge-honor--cplus { background-color: #475569; color: #ffffff; }
.badge-honor--c { background-color: #64748b; color: #ffffff; }
.badge-honor--cminus { background-color: #94a3b8; color: #1d1d1f; }

.badge.bg-danger {
    background-color: #dc2626 !important;
    background-image: linear-gradient(135deg, #dc2626, #ef4444);
}

.badge.bg-warning {
    background-color: #f59e0b !important;
    background-image: linear-gradient(135deg, #f59e0b, #fbbf24);
}

.badge.bg-warning.text-dark {
    background-color: #fbbf24 !important;
    background-image: linear-gradient(135deg, #fbbf24, #fcd34d);
    color: #1d1d1f !important;
}

.badge.bg-success {
    background-color: #16a34a !important;
    background-image: linear-gradient(135deg, #16a34a, #22c55e);
}

.badge.bg-secondary {
    background-color: #64748b !important;
    background-image: linear-gradient(135deg, #64748b, #94a3b8);
}

/* 院校卡片样式 */
#universityList .card {
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
    border: 1px solid rgba(231, 231, 231, 0.7);
    margin-bottom: 16px;
    position: relative;
    overflow: hidden;
}

#universityList .card:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border-color: rgba(210, 210, 215, 0.7);
}

#universityList .card-body {
    padding: 16px;
}

#universityList .card-title {
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.01em;
    color: #1d1d1f;
    margin-bottom: 0.6rem;
}

/* 评级分组分隔 */
.grade-group {
    position: relative;
    margin-bottom: 28px;
    animation: fadeIn 0.5s ease;
}

.grade-group:last-child {
    margin-bottom: 0;
}

.grade-group-header {
    background-color: rgba(245, 245, 247, 0.7);
    color: #6e6e73;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 10px 14px;
    border-radius: 0;
    margin-bottom: 16px;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.03);
}

/* 细分等级样式 */
/* A+ 级 */
.grade-group[data-grade="A+"] .grade-group-header {
    background-color: rgba(254, 242, 242, 0.7);
    color: #b91c1c;
}

/* A 级 */
.grade-group[data-grade="A"] .grade-group-header {
    background-color: rgba(254, 242, 242, 0.7);
    color: #dc2626;
}

/* A- 级 */
.grade-group[data-grade="A-"] .grade-group-header {
    background-color: rgba(254, 242, 242, 0.7);
    color: #ef4444;
}

/* B+ 级 */
.grade-group[data-grade="B+"] .grade-group-header {
    background-color: rgba(255, 251, 235, 0.7);
    color: #b45309;
}

/* B 级 */
.grade-group[data-grade="B"] .grade-group-header {
    background-color: rgba(255, 251, 235, 0.7);
    color: #d97706;
}

/* B- 级 */
.grade-group[data-grade="B-"] .grade-group-header {
    background-color: rgba(255, 251, 235, 0.7);
    color: #f59e0b;
}

/* C+ 级 */
.grade-group[data-grade="C+"] .grade-group-header {
    background-color: rgba(248, 250, 252, 0.7);
    color: #475569;
}

/* C 级 */
.grade-group[data-grade="C"] .grade-group-header {
    background-color: rgba(248, 250, 252, 0.7);
    color: #64748b;
}

/* C- 级 */
.grade-group[data-grade="C-"] .grade-group-header {
    background-color: rgba(248, 250, 252, 0.7);
    color: #94a3b8;
}

/* 合并筛选与搜索区域样式 */
.filter-search-card {
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: none;
}

.filter-section {
    background-color: white;
    border-right: 1px solid rgba(231, 231, 231, 0.8);
    padding: 16px 18px;
}

.search-section {
    background-color: rgba(255, 255, 255, 0.8);
    padding: 16px 18px;
}

.filter-title, .search-title {
    color: #1d1d1f;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 12px;
    letter-spacing: 0.01em;
}

/* 表单开关样式 */
.form-check-input {
    border-color: rgba(210, 210, 215, 0.8);
    background-color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    margin-top: 0;
    vertical-align: middle;
}

.form-check-input:checked {
    background-color: #0a5dc2;
    border-color: #0a5dc2;
    box-shadow: 0 0 0 2px rgba(10, 93, 194, 0.15);
}

.form-switch .form-check-input {
    height: 18px;
    width: 32px;
}

.form-check-label {
    font-size: 0.8rem;
    color: #86868b;
    vertical-align: middle;
    line-height: 18px;
    padding-top: 0;
}

/* 卡片头部开关区域垂直对齐 */
.card-header .form-check.form-switch {
    display: inline-flex;
    align-items: center;
    margin-bottom: 0;
    gap: 6px;
    align-self: center;
}

.card-header .form-check.form-switch label {
    margin-bottom: 0;
    line-height: 1;
    padding-top: 0;
    display: inline-flex;
    align-items: center;
}

/* 卡片头部标题文字垂直居中 */
.card-header > span {
    display: inline-flex;
    align-items: center;
    font-size: 1rem;
    line-height: 1.5;
    align-self: center;
}

.card-header > span i {
    align-self: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* 确保卡片头部左右内容都垂直居中 */
.card-header.d-flex {
    align-items: center !important;
    min-height: 52px;
    padding-top: 12px;
    padding-bottom: 12px;
}

/* 加载指示器 */
.spinner-border {
    color: #0a5dc2 !important;
    animation: spinner-border 1s linear infinite;
}

#loadingIndicator p {
    font-size: 0.9rem;
    color: #6e6e73;
    font-weight: 500;
}

#noResults {
    font-size: 0.9rem;
    color: #6e6e73;
    border-radius: 0;
    background-color: rgba(245, 245, 247, 0.7);
    border: none;
}

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

/* ============================================================
   SEO 折叠区：矩形框 + 右侧箭头，默认折叠
   ============================================================ */
.home-seo {
    border: 1px solid #e5e5ea;
    border-radius: 0;
    background: #ffffff;
    overflow: hidden;
}

.home-seo-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    color: #1d1d1f;
    list-style: none;
    user-select: none;
    transition: background 0.2s ease;
}

.home-seo-summary::-webkit-details-marker {
    display: none;
}

.home-seo-summary:hover {
    background: #f5f5f7;
}

/* 右侧箭头：折叠朝下，展开旋转朝上 */
.home-seo-summary::after {
    content: '';
    width: 8px;
    height: 8px;
    border-right: 2px solid #6e6e73;
    border-bottom: 2px solid #6e6e73;
    transform: rotate(45deg);
    transition: transform 0.25s ease;
    flex-shrink: 0;
    margin-left: 12px;
}

.home-seo[open] .home-seo-summary::after {
    transform: rotate(225deg);
}

.home-seo-body {
    padding: 4px 16px 16px;
    border-top: 1px solid #e5e5ea;
}

.home-seo-body h2,
.home-seo-body h3 {
    font-size: 1rem;
    margin-top: 14px;
}

.home-seo-body p {
    font-size: 0.85rem;
    color: #6e6e73;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

/* 结果卡片 */
.result-card {
    animation: fadeIn 0.5s ease;
}

/* 结果卡片标题行：整行浅灰渐变背景，与左侧筛选区标题一致，区分下方内容区 */
.result-card .card-header,
.rank-v5-list-card .card-header {
    background: linear-gradient(145deg, #f8f9fa, #ffffff);
    color: #0a5dc2;
    border-bottom: 1px solid rgba(231, 231, 231, 0.8);
    font-weight: 600;
}

/* 响应式调整 */
@media (max-width: 1400px) {
    .btn-nav-link {
        padding: 8px 8px;
        font-size: 0.95rem;
    }

    .btn-nav-link i {
        margin-right: 3px !important;
    }
}

@media (max-width: 1200px) {
    .nav-buttons {
        gap: 3px;
    }

    .btn-nav-link {
        padding: 7px 6px;
        font-size: 0.9rem;
    }

    .btn-nav-link i {
        margin-right: 2px !important;
    }
}

/* 在768px以下，评估轮次区域调整宽度为100%，换行显示，避免挤压 */
@media (max-width: 768px) {
    .filter-search-card .col-md-4 {
        width: 100%;
        border-right: none !important;
        border-bottom: 1px solid rgba(231, 231, 231, 0.8);
    }

    .filter-search-card .col-md-8 {
        width: 100%;
    }
}

@media (max-width: 992px) and (min-width: 768px) {
    /* 中屏幕下缩小按钮间距和内边距，确保同一行显示 */
    .round-filter {
        gap: 5px;
    }

    .round-filter .type-btn {
        padding: 7px 10px;
        font-size: 0.85rem;
    }

    .school-type-filter {
        gap: 5px;
    }

    .school-type-filter .type-btn {
        padding: 7px 10px;
        font-size: 0.85rem;
        flex: 0 0 auto;
    }

    .filter-section .p-3 {
        padding: 0.7rem 0.8rem !important;
    }
}

@media (max-width: 768px) {
    .nav-buttons {
        gap: 2px;
    }

    .btn-nav-link {
        padding: 6px 4px;
        font-size: 0.85rem;
    }

    .btn-nav-link i {
        margin-right: 2px !important;
    }
}

/* 769-992px：导航按钮保持可读、允许换行，避免拥挤断档 */
@media (max-width: 992px) and (min-width: 769px) {
    .nav-buttons {
        gap: 6px;
        row-gap: 8px;
    }

    .btn-nav-link {
        padding: 8px 12px;
        font-size: 0.9rem;
    }

    .btn-nav-link i {
        margin-right: 4px !important;
    }
}

@media (max-width: 992px) {
    .school-type-filter {
        gap: 5px;
    }

    .school-type-filter .type-btn {
        padding: 6px 8px;
        font-size: 0.82rem;
    }
}

@media (max-width: 768px) {
    .grade-filter {
        justify-content: flex-start;
        gap: 6px;
    }

    .grade-btn {
        padding: 6px 10px;
        font-size: 0.85rem;
        margin-bottom: 4px;
    }

    .round-filter .type-btn,
    .round-filter .grade-btn {
        padding: 6px 12px;
        font-size: 0.85rem;
    }

    .subject-list {
        max-height: 300px;
    }
}

@media (max-width: 576px) {
    .round-filter {
        gap: 6px;
    }

    .round-filter .grade-btn {
        padding: 6px 6px;
        font-size: 0.8rem;
    }

    .filter-section, .search-section {
        padding: 12px 14px;
    }

    h1 {
        font-size: 1.5rem;
    }

    .card-header {
        padding: 12px 14px;
    }

    .card-body {
        padding: 14px;
    }

    .nav-buttons {
        gap: 2px;
        padding-bottom: 4px;
    }

    .btn-nav-link {
        padding: 6px 3px;
        font-size: 0.8rem;
        border-radius: 0;
    }

    .btn-nav-link i {
        display: none;
    }
}

@media (max-width: 576px) {
    .btn-nav-link {
        padding: 5px 2px;
        font-size: 0.75rem;
    }
}

/* 大学详情页样式 */
.university-title {
    font-weight: 700;
    color: #1d1d1f;
    font-size: 1.8rem;
    margin-bottom: 0;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    background-color: rgba(10, 93, 194, 0.1);
    color: #0a5dc2;
    border: none;
    border-radius: 0;
    padding: 8px 16px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.btn-back:hover {
    background-color: rgba(10, 93, 194, 0.15);
    color: #0a5dc2;
}

.university-info-card {
    border-radius: 0;
    overflow: hidden;
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    transition: all 0.3s ease;
}

.university-name {
    font-size: 1.6rem;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 0.5rem;
}

.university-details {
    margin-top: 1rem;
}

.detail-item {
    margin-bottom: 0.7rem;
    color: #4a4a4c;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
}

.detail-item i {
    color: #0a5dc2;
    font-size: 1rem;
    width: 24px;
}

.detail-item strong {
    color: #1d1d1f;
    font-weight: 600;
    margin-right: 0.5rem;
}

.logo-container {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.school-logo {
    max-height: 140px;
    max-width: 140px;
    object-fit: contain;
}

.website-link {
    color: #0a5dc2;
    text-decoration: none;
    transition: all 0.2s ease;
}

.website-link:hover {
    color: #084a9e;
    text-decoration: underline;
}

/* 评估结果卡片 */
.evaluation-card {
    border-radius: 0;
    overflow: hidden;
}

.stats-overview .card {
    border-radius: 0;
    height: 100%;
    transition: all 0.3s ease;
    border: none;
}

.stats-overview .card:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.stat-card {
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.stat-card h3 {
    font-size: 2rem;
    font-weight: 700;
}

.stat-card p {
    font-size: 0.9rem;
    color: rgba(0, 0, 0, 0.6);
    font-weight: 500;
}

.total-card {
    background: linear-gradient(145deg, #f8f9fa, #ffffff);
    color: #1d1d1f;
}

/* 子评分卡片背景色与首页"按评估结果筛选"区域保持一致 */
.a-plus-card {
    background: linear-gradient(135deg, rgba(254, 242, 242, 0.95), rgba(254, 226, 226, 0.95));
    color: #b91c1c;
}

.a-card {
    background: linear-gradient(135deg, rgba(254, 242, 242, 0.95), rgba(254, 226, 226, 0.95));
    color: #dc2626;
}

.a-minus-card {
    background: linear-gradient(135deg, rgba(254, 242, 242, 0.95), rgba(254, 226, 226, 0.95));
    color: #ef4444;
}

.b-plus-card {
    background: linear-gradient(135deg, rgba(255, 251, 235, 0.95), rgba(254, 243, 199, 0.95));
    color: #b45309;
}

.b-card {
    background: linear-gradient(135deg, rgba(255, 251, 235, 0.95), rgba(254, 243, 199, 0.95));
    color: #d97706;
}

.b-minus-card {
    background: linear-gradient(135deg, rgba(255, 251, 235, 0.95), rgba(254, 243, 199, 0.95));
    color: #f59e0b;
}

.c-plus-card {
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.95), rgba(241, 245, 249, 0.95));
    color: #475569;
}

.c-card {
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.95), rgba(241, 245, 249, 0.95));
    color: #64748b;
}

.c-minus-card {
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.95), rgba(241, 245, 249, 0.95));
    color: #94a3b8;
}

/* 学科分类筛选 */
.category-filter-container {
    margin: 1.5rem 0;
}

.category-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.category-btn {
    border: none;
    background-color: rgba(245, 245, 247, 0.7);
    color: #4a4a4c;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 0;
    padding: 8px 16px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.category-btn:hover {
    background-color: rgba(230, 230, 235, 0.9);
}

.category-btn.active {
    background-color: #0a5dc2;
    color: white;
    box-shadow: 0 2px 8px rgba(10, 93, 194, 0.3);
}

/* 评估结果表格 */
.evaluation-table-container {
    background-color: #fff;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.evaluation-table {
    margin-bottom: 0;
}

.evaluation-table thead {
    background-color: rgba(245, 245, 247, 0.5);
}

.evaluation-table th {
    font-weight: 600;
    color: #1d1d1f;
    padding: 14px;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(231, 231, 231, 0.8);
}

.evaluation-table td {
    padding: 14px;
    vertical-align: middle;
    font-size: 0.95rem;
    color: #4a4a4c;
    border-bottom: 1px solid rgba(231, 231, 231, 0.5);
}

.evaluation-table tbody tr {
    transition: all 0.2s ease;
}

.evaluation-table tbody tr:hover {
    background-color: rgba(245, 245, 247, 0.5);
}

/* 响应式调整 - 大学详情页 */
@media (max-width: 768px) {
    .university-title {
        font-size: 1.5rem;
    }
    
    .university-name {
        font-size: 1.4rem;
    }
    
    .logo-container {
        width: 140px;
        height: 140px;
        margin-top: 1rem;
    }
    
    .school-logo {
        max-height: 100px;
        max-width: 100px;
    }
    
    .stat-card h3 {
        font-size: 1.5rem;
    }
    
    .stat-card p {
        font-size: 0.8rem;
    }
    
    .category-btn {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
    
    .evaluation-table th, 
    .evaluation-table td {
        padding: 10px;
        font-size: 0.85rem;
    }
} 

/* 导航按钮 */
.nav-buttons {
    display: flex;
    gap: 4px;
    flex-wrap: nowrap;
    align-items: center;
    overflow-x: visible;
    scrollbar-width: none;
    -ms-overflow-style: none;
    justify-content: space-between;
    width: 100%;
    position: relative;
}

/* 小屏幕允许横向滚动 */
@media (max-width: 1200px) {
    .nav-buttons {
        overflow-x: auto;
        padding-bottom: 10px;
        margin-bottom: -10px;
    }

    /* 小屏幕下调整弹窗位置，避免被裁剪 */
    .qr-popover {
        right: 0;
        transform: translateX(0) translateY(10px);
    }

    .qr-popover::before {
        left: auto;
        right: 20px;
        transform: translateX(0);
    }
}

.nav-buttons::-webkit-scrollbar {
    display: none;
}

.btn-nav-link {
    padding: 8px 10px;
    border-radius: 0;
    background-color: rgba(245, 245, 247, 0.7);
    color: #4a4a4c;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    text-decoration: none;
    border: none;
    white-space: nowrap;
    flex-shrink: 1;
    flex-grow: 1;
    justify-content: center;
    display: inline-flex;
    align-items: center;
    font-size: 0.95rem;
    text-align: center;
}

.btn-nav-link:hover {
    background-color: rgba(230, 230, 235, 0.9);
    color: #1d1d1f;
}

.btn-nav-link.active {
    background-color: #0a5dc2;
    color: white;
    box-shadow: 0 2px 8px rgba(10, 93, 194, 0.3);
}

/* 导航按钮上的 NEW 小标签 */
.btn-nav-link .nav-new-badge {
    font-size: 0.58rem;
    font-weight: 600;
    line-height: 1.2;
    padding: 2px 6px;
    border-radius: 0;
    color: #fff;
    background: linear-gradient(135deg, #dc2626, #ef4444);
    box-shadow: 0 1px 3px rgba(220, 38, 38, 0.35);
}

/* 按学校查询页面样式 */
.university-list-card {
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
}

.university-list-card .card-header {
    background: linear-gradient(145deg, #f8f9fa, #ffffff);
    color: #0a5dc2;
    padding: 15px 18px;
}

/* 大学列表样式 */
.university-list {
    max-height: calc(100vh - 340px);
    min-height: 360px;
    overflow-y: auto;
    padding-right: 5px;
    margin-top: 10px;
    border-radius: 0;
}

.university-tree {
    list-style: none;
    padding: 0;
    margin: 0;
}

.university-item {
    margin-bottom: 1px;
}

.university-link {
    display: block;
    padding: 8px 10px;
    color: #1d1d1f;
    text-decoration: none;
    border-radius: 0;
    transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.university-link:hover {
    background-color: rgba(245, 245, 247, 0.8);
}

.university-item.active > .university-link {
    background-color: #0a5dc2;
    color: white;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(10, 93, 194, 0.3);
}

.university-badge {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 6px;
}

.badge-985 {
    background-color: #dc2626;
}

.badge-211 {
    background-color: #d97706;
}

.badge-shuangyiliu {
    background-color: #16a34a;
}

/* 自定义滚动条 - 学校列表 */
.university-list::-webkit-scrollbar {
    width: 5px;
}

.university-list::-webkit-scrollbar-track {
    background: transparent;
}

.university-list::-webkit-scrollbar-thumb {
    background-color: rgba(209, 209, 214, 0.7);
    border-radius: 0;
    transition: background-color 0.3s ease;
}

.university-list::-webkit-scrollbar-thumb:hover {
    background-color: rgba(161, 161, 166, 0.9);
}

/* 学校类型筛选 */
.university-type-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 12px;
}

.form-check-inline {
    margin-right: 0;
}

.form-check-label {
    font-size: 0.8rem;
    color: #4a4a4c;
}

/* 学校信息预览区 */
.university-info-preview {
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    transition: all 0.3s ease;
}

.university-info-preview .card-header {
    background: linear-gradient(145deg, #f8f9fa, #ffffff);
    font-weight: 600;
    color: #0a5dc2;
}

.university-basic-info {
    padding: 5px 0;
}

.university-basic-info p {
    margin-bottom: 8px;
    color: #4a4a4c;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
}

.university-basic-info i {
    color: #0a5dc2;
    font-size: 1rem;
    width: 24px;
}

.stats-summary {
    background-color: rgba(245, 245, 247, 0.5);
    padding: 15px;
    border-radius: 0;
    width: 100%;
}

.stat-label {
    display: block;
    font-size: 0.8rem;
    color: #6e6e73;
    margin-bottom: 2px;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1d1d1f;
    line-height: 1;
}

.stat-value.highlight {
    color: #dc2626;
}

.btn-link {
    color: #0a5dc2;
    text-decoration: none;
    transition: all 0.2s ease;
    padding: 4px 8px;
    border-radius: 0;
}

.btn-link:hover {
    background-color: rgba(10, 93, 194, 0.1);
    color: #084a9e;
}

/* 学科评估结果分组 */
.subject-group {
    margin-bottom: 28px;
    animation: fadeIn 0.5s ease;
}

.subject-group:last-child {
    margin-bottom: 0;
}

.subject-group-header {
    background-color: rgba(245, 245, 247, 0.7);
    color: #6e6e73;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 10px 14px;
    border-radius: 0;
    margin-bottom: 16px;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.03);
}

.subject-card {
    border: none;
    border-radius: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 12px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    background-color: #fff;
    position: relative;
    overflow: hidden;
}

.subject-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.subject-card:hover::before {
    opacity: 1;
}

.subject-card .card-body {
    padding: 12px 16px;
}

.subject-name {
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 4px;
    font-size: 1rem;
}

.subject-code {
    color: #6e6e73;
    font-size: 0.8rem;
    font-family: monospace;
}

.subject-category {
    color: #4a4a4c;
    font-size: 0.85rem;
    margin-bottom: 10px;
}

/* 占位消息 */
.placeholder-message {
    padding: 30px;
    text-align: center;
    color: #6e6e73;
}

.placeholder-icon {
    font-size: 3rem;
    color: #d1d1d6;
    margin-bottom: 15px;
    display: block;
}

.placeholder-text {
    color: #6e6e73;
    font-size: 0.9rem;
}

.loading-placeholder {
    padding: 15px;
    text-align: center;
}

/* 按评级为学科卡片上色 */
.subject-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.subject-card[data-grade="A+"]::before {
    background-color: #b91c1c;
}

.subject-card[data-grade="A"]::before {
    background-color: #dc2626;
}

.subject-card[data-grade="A-"]::before {
    background-color: #ef4444;
}

.subject-card[data-grade="B+"]::before {
    background-color: #b45309;
}

.subject-card[data-grade="B"]::before {
    background-color: #d97706;
}

.subject-card[data-grade="B-"]::before {
    background-color: #f59e0b;
}

.subject-card[data-grade="C+"]::before {
    background-color: #475569;
}

.subject-card[data-grade="C"]::before {
    background-color: #64748b;
}

.subject-card[data-grade="C-"]::before {
    background-color: #94a3b8;
}

/* 响应式调整 - 按学校查询页面 */
@media (max-width: 768px) {
    .university-link {
        font-size: 0.85rem;
        padding: 6px 8px;
    }
    
    .university-list {
        max-height: 300px;
    }
    
    .stats-summary {
        padding: 12px;
    }
    
    .stat-value {
        font-size: 1.4rem;
    }
    
    .subject-card .card-body {
        padding: 10px 14px;
    }
    
    .subject-name {
        font-size: 0.95rem;
    }
    
    .grades-stats-row {
        gap: 4px;
    }
    
    .grade-stat {
        padding: 4px 2px;
    }
    
    .grade-stat .stat-value {
        font-size: 0.95rem;
    }
    
    .grade-stat .stat-label {
        font-size: 0.7rem;
    }
} 

/* 学校类型筛选按钮样式 */
.school-type-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    width: 100%;
}

.school-type-filter .type-btn {
    flex: 1 1 auto;
    min-width: fit-content;
}

/* 通用筛选按钮不换行 */
.grade-btn, .type-btn, .category-btn {
    white-space: nowrap !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.type-btn {
    border: none;
    border-radius: 0;
    padding: 8px 14px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    background-color: rgba(245, 245, 247, 0.7);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    width: auto;
    flex: 0 0 auto;
}

.type-btn::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: transparent;
    border-radius: 0;
    transition: background-color 0.3s ease;
    z-index: -1;
}

.type-btn:hover {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.type-btn.active {
    background-color: #0a5dc2;
    color: white;
    box-shadow: 0 2px 8px rgba(10, 93, 194, 0.3);
}

.type-btn.all {
    background-color: rgba(245, 245, 247, 0.7);
    color: #1d1d1f;
}

.type-btn.all.active {
    background-color: #0a5dc2;
    color: white;
}

/* 985工程按钮样式 - 使用红色系 */
.type-btn[data-type="985"] {
    background-color: rgba(254, 242, 242, 0.7);
    color: #dc2626;
}

.type-btn[data-type="985"].active {
    background-color: #dc2626;
    color: white;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3);
}

/* 211工程按钮样式 - 使用橙色系 */
.type-btn[data-type="211"] {
    background-color: rgba(255, 251, 235, 0.7);
    color: #d97706;
}

.type-btn[data-type="211"].active {
    background-color: #d97706;
    color: white;
    box-shadow: 0 2px 8px rgba(217, 119, 6, 0.3);
}

/* 双一流按钮样式 - 使用绿色系 */
.type-btn[data-type="shuangyiliu"] {
    background-color: rgba(240, 253, 244, 0.7);
    color: #16a34a;
}

.type-btn[data-type="shuangyiliu"].active {
    background-color: #16a34a;
    color: white;
    box-shadow: 0 2px 8px rgba(22, 163, 74, 0.3);
}

/* 其他院校按钮样式 */
.type-btn[data-type="other"] {
    background-color: rgba(248, 250, 252, 0.7);
    color: #64748b;
}

.type-btn[data-type="other"].active {
    background-color: #64748b;
    color: white;
    box-shadow: 0 2px 8px rgba(100, 116, 139, 0.3);
}

/* 更新徽章样式 */
/* 985工程徽章样式 */
.badge.bg-primary {
    background-color: #dc2626 !important;
    background-image: linear-gradient(135deg, #dc2626, #ef4444);
}

/* 211工程徽章样式 */
.badge.bg-info {
    background-color: #d97706 !important;
    background-image: linear-gradient(135deg, #d97706, #f59e0b);
}

/* 双一流徽章样式 */
.badge.bg-success {
    background-color: #16a34a !important;
    background-image: linear-gradient(135deg, #16a34a, #22c55e);
}

/* 学科评估结果分组样式 */
.subject-group {
    margin-bottom: 25px;
    border-radius: 0;
    overflow: hidden;
    border: 1px solid #eaeaea;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.subject-group-header {
    padding: 15px;
    font-weight: bold;
    background-color: #f8f9fa;
    border-bottom: 1px solid #eaeaea;
    font-size: 16px;
    display: flex;
    align-items: center;
}

.subject-items {
    padding: 15px;
}

/* 门类分类块样式 */
.category-block {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px dashed #e0e0e0;
}

.category-block:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.category-header {
    padding: 8px 0;
    margin-bottom: 10px;
    font-size: 15px;
    color: #555;
}

/* 学科卡片样式 */
.subject-card {
    border-radius: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    height: 100%;
    border: 1px solid #e0e0e0;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    display: block;
    color: inherit;
    text-decoration: none;
}

.subject-card .card-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    padding-right: 50px; /* 为评级徽章留出空间 */
    color: #1d1d1f;
}

.subject-card .card-subtitle {
    font-size: 0.85rem;
    color: #6c757d;
}

.subject-card .category-info {
    margin-top: 0.75rem;
    font-size: 0.8rem;
    color: #6c757d;
    border-top: 1px solid #f0f0f0;
    padding-top: 0.5rem;
}

.grade-header {
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #eee;
    font-size: 1.25rem;
}

.grade-group {
    margin-bottom: 2rem;
}

/* 评级徽章样式 */
.badge {
    font-weight: 500;
    padding: 0.35em 0.65em;
    border-radius: 0;
}

/* 学科分组容器 */
.subjects-container {
    padding: 0.5rem 0;
}

/* 分级组样式 */
.grade-a-plus .subject-group-header {
    background-color: rgba(220, 53, 69, 0.1);
    border-bottom: 1px solid rgba(220, 53, 69, 0.2);
}

.grade-a .subject-group-header {
    background-color: rgba(253, 126, 20, 0.1);
    border-bottom: 1px solid rgba(253, 126, 20, 0.2);
}

.grade-a-minus .subject-group-header {
    background-color: rgba(255, 193, 7, 0.1);
    border-bottom: 1px solid rgba(255, 193, 7, 0.2);
}

.grade-b-plus .subject-group-header,
.grade-b .subject-group-header,
.grade-b-minus .subject-group-header {
    background-color: rgba(40, 167, 69, 0.1);
    border-bottom: 1px solid rgba(40, 167, 69, 0.2);
}

.grade-c-plus .subject-group-header,
.grade-c .subject-group-header,
.grade-c-minus .subject-group-header {
    background-color: rgba(108, 117, 125, 0.1);
    border-bottom: 1px solid rgba(108, 117, 125, 0.2);
} 

/* 加载提示 */
.loading-message {
    text-align: center;
    padding: 2rem 0;
    color: #6c757d;
}

.loading-spinner {
    width: 3rem;
    height: 3rem;
    margin-bottom: 1rem;
}

/* 错误提示 */
.error-message {
    padding: 1rem;
    border-radius: 0;
    background-color: #f8d7da;
    color: #721c24;
    margin-bottom: 1rem;
} 

/* 学科评估统计样式 */
.stats-summary {
    width: 100%;
    padding: 10px;
    border-radius: 0;
    background-color: #f8f9fa;
}

.stats-summary .total-subjects {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
}

.stats-summary .stat-label {
    display: block;
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 3px;
}

.stats-summary .stat-value {
    font-size: 1.25rem;
    font-weight: 600;
    color: #343a40;
}

.stats-summary .stat-value.highlight {
    color: #dc3545;
}

.grades-summary {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 6px;
}

.grade-stat {
    flex: 0 0 calc(33.333% - 6px);
    padding: 5px 2px;
    text-align: center;
    border-radius: 0;
    background-color: #fff;
    border: 1px solid #e9ecef;
}

.grade-stat .stat-label {
    font-size: 0.7rem;
    margin-bottom: 0;
    font-weight: 500;
}

.grade-stat .stat-value {
    font-size: 1rem;
    line-height: 1;
}

.a-plus-stat .stat-label {
    color: #b91c1c;
}

.a-plus-stat .stat-value {
    color: #b91c1c;
}

.a-stat .stat-label {
    color: #dc2626;
}

.a-stat .stat-value {
    color: #dc2626;
}

.a-minus-stat .stat-label {
    color: #ef4444;
}

.a-minus-stat .stat-value {
    color: #ef4444;
}

.b-plus-stat .stat-label {
    color: #b45309;
}

.b-plus-stat .stat-value {
    color: #b45309;
}

.b-stat .stat-label {
    color: #d97706;
}

.b-stat .stat-value {
    color: #d97706;
}

.b-minus-stat .stat-label {
    color: #f59e0b;
}

.b-minus-stat .stat-value {
    color: #f59e0b;
}

.c-plus-stat .stat-label {
    color: #475569;
}

.c-plus-stat .stat-value {
    color: #475569;
}

.c-stat .stat-label {
    color: #64748b;
}

.c-stat .stat-value {
    color: #64748b;
}

.c-minus-stat .stat-label {
    color: #94a3b8;
}

.c-minus-stat .stat-value {
    color: #94a3b8;
}

/* 学校信息预览区域 */
.university-info-preview .university-basic-info {
    padding: 10px 0;
}

.university-info-preview .badges .badge {
    font-weight: 500;
}

/* 统计区域样式 */
.stats-container {
    background-color: #f8f9fa;
    border-radius: 0;
    padding: 16px;
    height: 100%;
    width: 100%;
    max-width: 100%;
}

.stats-container .total-subjects {
    text-align: center;
    padding-bottom: 12px;
    margin-bottom: 16px;
    border-bottom: 1px solid #dee2e6;
}

.stats-container .stat-label {
    display: block;
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 3px;
}

.stats-container .stat-value {
    font-size: 1.25rem;
    font-weight: 600;
    color: #343a40;
}

.stats-container .stat-value.highlight {
    color: #dc3545;
}

/* 等级统计横向排列 */
.grades-stats-row {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    justify-content: space-between;
    width: 100%;
}

.grade-stat {
    flex: 1;
    min-width: 40px;
    padding: 6px 4px;
    text-align: center;
    border-radius: 0;
    background-color: #fff;
    border: 1px solid #e9ecef;
}

.grade-stat .stat-label {
    font-size: 0.75rem;
    margin-bottom: 2px;
    font-weight: 500;
    white-space: nowrap;
}

.grade-stat .stat-value {
    font-size: 1.1rem;
    line-height: 1;
    font-weight: 600;
}

/* 等级颜色 */
.a-plus-stat .stat-label {
    color: #b91c1c;
}

.a-plus-stat .stat-value {
    color: #b91c1c;
}

.a-stat .stat-label {
    color: #dc2626;
}

.a-stat .stat-value {
    color: #dc2626;
}

.a-minus-stat .stat-label {
    color: #ef4444;
}

.a-minus-stat .stat-value {
    color: #ef4444;
}

.b-plus-stat .stat-label {
    color: #b45309;
}

.b-plus-stat .stat-value {
    color: #b45309;
}

.b-stat .stat-label {
    color: #d97706;
}

.b-stat .stat-value {
    color: #d97706;
}

.b-minus-stat .stat-label {
    color: #f59e0b;
}

.b-minus-stat .stat-value {
    color: #f59e0b;
}

.c-plus-stat .stat-label {
    color: #475569;
}

.c-plus-stat .stat-value {
    color: #475569;
}

.c-stat .stat-label {
    color: #64748b;
}

.c-stat .stat-value {
    color: #64748b;
}

.c-minus-stat .stat-label {
    color: #94a3b8;
}

.c-minus-stat .stat-value {
    color: #94a3b8;
}

/* 评估结果卡片样式 */
.grade-group {
    margin-bottom: 2rem;
}

.grade-group-header {
    font-size: 1.1rem;
    font-weight: 600;
    padding: 10px 14px;
    margin-bottom: 1rem;
    border-radius: 0;
    background-color: rgba(245, 245, 247, 0.7);
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.03);
}

.a-level .grade-group-header {
    color: #b91c1c;
    background-color: rgba(254, 242, 242, 0.7);
}

.b-level .grade-group-header {
    color: #d97706;
    background-color: rgba(255, 251, 235, 0.7);
}

.c-level .grade-group-header {
    color: #475569;
    background-color: rgba(248, 250, 252, 0.7);
} 

/* 左侧筛选区固定效果 - 与按学校查询页面保持一致 */
@media (min-width: 768px) {
    .col-md-3 .subject-card {
        position: sticky;
        top: 20px;
        max-height: calc(100vh - 40px);
        overflow-y: auto;
        z-index: 10;
    }
    
    .subject-list {
        max-height: calc(100vh - 160px);
        overflow-y: auto;
    }
}

/* 学科筛选卡片样式优化 - 与大学列表卡片保持一致 */
.subject-card {
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: none;
}

.subject-card .card-header {
    background: linear-gradient(145deg, #f8f9fa, #ffffff);
    color: #0a5dc2;
    padding: 15px 18px;
    border-bottom: 1px solid rgba(231, 231, 231, 0.8);
    font-weight: 600;
}

/* 加载状态下隐藏大学列表 */
#loadingIndicator:not([style*="display: none"]) ~ #universityList {
    display: none !important;
}

/* 美化学科树样式 */
.subject-tree {
    list-style: none;
    padding: 0;
    margin: 0;
}

.subject-item {
    margin-bottom: 1px;
}

.subject-link {
    display: block;
    padding: 8px 10px;
    color: #1d1d1f;
    text-decoration: none;
    border-radius: 0;
    transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.subject-link:hover {
    background-color: rgba(245, 245, 247, 0.8);
}

.subject-item.active > .subject-link {
    background-color: #0a5dc2;
    color: white;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(10, 93, 194, 0.3);
} 

/* 评估结果筛选按钮样式优化 - 与学校类型筛选保持一致 */
.grade-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-start;
}

/* 学科评估等级按钮样式（三色系 × 三梯度 = 9 色值） */
.type-btn[data-grade="A+"] {
    background-color: rgba(254, 242, 242, 0.7);
    color: #b91c1c;
}

.type-btn[data-grade="A+"].active {
    background-color: #b91c1c;
    color: white;
    box-shadow: 0 2px 8px rgba(185, 28, 28, 0.3);
}

.type-btn[data-grade="A"] {
    background-color: rgba(254, 242, 242, 0.7);
    color: #dc2626;
}

.type-btn[data-grade="A"].active {
    background-color: #dc2626;
    color: white;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3);
}

.type-btn[data-grade="A-"] {
    background-color: rgba(254, 242, 242, 0.7);
    color: #ef4444;
}

.type-btn[data-grade="A-"].active {
    background-color: #ef4444;
    color: white;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.type-btn[data-grade="B+"] {
    background-color: rgba(255, 251, 235, 0.7);
    color: #b45309;
}

.type-btn[data-grade="B+"].active {
    background-color: #b45309;
    color: white;
    box-shadow: 0 2px 8px rgba(180, 83, 9, 0.3);
}

.type-btn[data-grade="B"] {
    background-color: rgba(255, 251, 235, 0.7);
    color: #d97706;
}

.type-btn[data-grade="B"].active {
    background-color: #d97706;
    color: white;
    box-shadow: 0 2px 8px rgba(217, 119, 6, 0.3);
}

.type-btn[data-grade="B-"] {
    background-color: rgba(255, 251, 235, 0.7);
    color: #f59e0b;
}

.type-btn[data-grade="B-"].active {
    background-color: #f59e0b;
    color: white;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.type-btn[data-grade="C+"] {
    background-color: rgba(248, 250, 252, 0.7);
    color: #475569;
}

.type-btn[data-grade="C+"].active {
    background-color: #475569;
    color: white;
    box-shadow: 0 2px 8px rgba(71, 85, 105, 0.3);
}

.type-btn[data-grade="C"] {
    background-color: rgba(248, 250, 252, 0.7);
    color: #64748b;
}

.type-btn[data-grade="C"].active {
    background-color: #64748b;
    color: white;
    box-shadow: 0 2px 8px rgba(100, 116, 139, 0.3);
}

.type-btn[data-grade="C-"] {
    background-color: rgba(248, 250, 252, 0.7);
    color: #94a3b8;
}

.type-btn[data-grade="C-"].active {
    background-color: #94a3b8;
    color: white;
    box-shadow: 0 2px 8px rgba(148, 163, 184, 0.3);
}

/* 高校清单页面左侧筛选区固定效果 */
@media (min-width: 768px) {
    /* 整个左侧列固定 */
    .filter-sidebar {
        position: sticky;
        top: 20px;
        height: calc(100vh - 40px);
        overflow-y: auto;
        z-index: 10;
        align-self: flex-start;
        padding-bottom: 20px;
    }
    
    /* 确保左侧区域内的滚动条样式美观 */
    .filter-sidebar::-webkit-scrollbar {
        width: 5px;
    }
    
    .filter-sidebar::-webkit-scrollbar-track {
        background: transparent;
    }
    
    .filter-sidebar::-webkit-scrollbar-thumb {
        background-color: rgba(209, 209, 214, 0.7);
        border-radius: 0;
        transition: background-color 0.3s ease;
    }
    
    .filter-sidebar::-webkit-scrollbar-thumb:hover {
        background-color: rgba(161, 161, 166, 0.9);
    }
    
    .regions-container {
        max-height: 300px;
        overflow-y: auto;
    }
} 

/* 高校清单页面样式 */
.filter-badge {
    cursor: pointer;
    margin-right: 5px;
    margin-bottom: 5px;
}

.filter-badge.active {
    background-color: #0a5dc2;
    color: white;
} 

/* 高校列表和筛选样式 */
.university-card {
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    margin-bottom: 1rem;
}

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

/* 可点击元素的鼠标样式 */
.cursor-pointer {
    cursor: pointer;
}

.university-card .list-unstyled li {
    margin-bottom: 6px;
    color: #6e6e73;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
}

.university-card .list-unstyled li i {
    color: #0a5dc2;
    font-size: 0.9rem;
    width: 24px;
}

.university-card .list-unstyled li strong {
    margin-right: 4px;
    font-weight: 500;
    color: #4a4a4c;
} 

.university-card .card-body {
    padding-bottom: 8px;
}

.university-card .list-unstyled {
    margin-bottom: 0;
}

.university-card .list-unstyled li:last-child {
    margin-bottom: 0;
} 

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: -50px;
    right: 30px;
    width: 40px;
    height: 40px;
    line-height: 40px;
    background-color: #0a5dc2;
    color: white;
    border-radius: 0;
    text-align: center;
    cursor: pointer;
    z-index: 999;
    transition: bottom 0.3s ease;
    box-shadow: 0 2px 10px rgba(10, 93, 194, 0.5);
    opacity: 0;
}

.back-to-top.show {
    bottom: 30px;
    opacity: 1;
}

.back-to-top:hover {
    background-color: #0063cc;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(10, 93, 194, 0.6);
}

/* ============================================================
   统一分页样式：与软科排名页一致（直角矩形 + 学科蓝）
   ============================================================ */
.pagination {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0;
}

.pagination .page-item {
    margin: 0;
}

.pagination .page-link {
    min-width: 32px;
    height: 32px;
    border-radius: 0;
    border: 1px solid #dee2e6;
    background: #fff;
    color: #495057;
    font-size: 0.85rem;
    padding: 0 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
}

.pagination .page-link:hover {
    border-color: #0a5dc2;
    color: #0a5dc2;
    background: #fff;
}

.pagination .page-item.active .page-link {
    background: #0a5dc2;
    border-color: #0a5dc2;
    color: #fff;
}

.pagination .page-item.disabled .page-link {
    opacity: 0.4;
    cursor: not-allowed;
    background: #fff;
    color: #495057;
}

/* 分数查询结果样式 */
.score-result-container {
    background-color: #f0f7ff;
    border-radius: 0;
    padding: 12px 20px;
    box-shadow: 0 2px 8px rgba(10, 93, 194, 0.08);
    transition: all 0.3s ease;
    text-align: center;
    display: flex;
    justify-content: center;
}

.score-result-inline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
}

/* 新的结果项目样式 */
.result-item {
    display: inline-flex;
    align-items: center;
    font-size: 15px;
    white-space: nowrap;
    position: relative;
}

.result-item:not(:last-child)::after {
    content: '•';
    position: absolute;
    right: -10px;
    color: #c0c4cc;
}

.result-item i {
    color: #0a5dc2;
    margin-right: 6px;
    font-size: 14px;
}

.result-item strong {
    font-weight: 600;
    color: #1d1d1f;
    margin-left: 2px;
}

.rank-highlight {
    color: #ff8800;
    font-size: 16px;
    font-weight: 700;
}

@media (max-width: 576px) {
    .score-result-container {
        padding: 10px;
    }
    
    .score-result-inline {
        gap: 10px;
        flex-direction: column;
    }
    
    .result-item {
        font-size: 14px;
    }
    
    .result-item:not(:last-child)::after {
        display: none;
    }
    
    .rank-highlight {
        font-size: 15px;
    }
}

/* 关于作者页面样式 */
.author-section {
padding: 60px 0;
}

.author-avatar {
width: 180px;
height: 180px;
border-radius: 50%;
object-fit: cover;
border: 5px solid #f8f9fa;
box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.author-name {
font-size: 2.5rem;
font-weight: 700;
color: #1d1d1f;
margin-bottom: 10px;
}

.author-title {
font-size: 1.2rem;
color: #6e6e73;
margin-bottom: 20px;
}

.author-bio {
font-size: 1.1rem;
line-height: 1.7;
color: #4a4a4c;
margin-bottom: 30px;
}

.social-links {
display: flex;
gap: 15px;
margin-top: 20px;
}

.social-link {
display: inline-flex;
align-items: center;
justify-content: center;
width: 45px;
height: 45px;
border-radius: 50%;
background-color: #f1f3f5;
color: #495057;
transition: all 0.3s ease;
}

.social-link:hover {
background-color: #0a5dc2;
color: white;
transform: translateY(-3px);
}

.project-card {
transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
height: 100%;
border: none;
border-radius: 0;
overflow: hidden;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

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

.project-image {
height: 200px;
object-fit: cover;
width: 100%;
}

.project-content {
padding: 20px;
}

.project-title {
font-size: 1.3rem;
font-weight: 600;
margin-bottom: 10px;
color: #1d1d1f;
}

.project-description {
color: #6e6e73;
margin-bottom: 15px;
}

.project-tags {
display: flex;
flex-wrap: wrap;
gap: 8px;
}

.project-tag {
background-color: rgba(10, 93, 194, 0.1);
color: #0a5dc2;
padding: 4px 10px;
border-radius: 0;
font-size: 0.8rem;
font-weight: 500;
}

.sponsor-section {
padding: 40px 0;
}

.sponsor-card {
background: white;
border-radius: 0;
padding: 30px;
text-align: center;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
margin-bottom: 30px;
}

.qr-code {
width: 200px;
height: 200px;
margin: 0 auto 20px;
background-color: #f8f9fa;
display: flex;
align-items: center;
justify-content: center;
border-radius: 0;
font-size: 0.9rem;
color: #6e6e73;
}

.sponsor-title {
font-size: 1.3rem;
font-weight: 600;
margin-bottom: 10px;
color: #1d1d1f;
}

.sponsor-description {
color: #6e6e73;
margin-bottom: 20px;
}

.section-title {
font-size: 2rem;
font-weight: 700;
color: #1d1d1f;
margin-bottom: 40px;
text-align: center;
position: relative;
}

.section-title::after {
content: '';
position: absolute;
bottom: -10px;
left: 50%;
transform: translateX(-50%);
width: 60px;
height: 4px;
background-color: #0a5dc2;
border-radius: 0;
}

.contact-form {
background: white;
border-radius: 0;
padding: 30px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.contact-form .form-control,
.contact-form .form-select {
border-radius: 0;
border: 1px solid #e0e0e0;
padding: 12px 15px;
font-size: 1rem;
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
border-color: #0a5dc2;
box-shadow: 0 0 0 3px rgba(10, 93, 194, 0.1);
}

.btn-submit {
background-color: #0a5dc2;
color: white;
border: none;
border-radius: 0;
padding: 12px 30px;
font-weight: 600;
transition: all 0.3s ease;
}

.btn-submit:hover {
background-color: #084a9e;
transform: translateY(-2px);
}

/* 响应式调整 - 关于作者页面 */
@media (max-width: 768px) {
.author-section {
    padding: 40px 0;
}

.author-avatar {
    width: 150px;
    height: 150px;
    margin-bottom: 20px;
}

.author-name {
    font-size: 2rem;
}

.section-title {
    font-size: 1.5rem;
    margin-bottom: 30px;
}


.project-card {
    margin-bottom: 20px;
}

.social-links {
    justify-content: center;
}

.qr-code {
    width: 150px;
    height: 150px;
}
}

/* ==========================================
   支持作者 Hover 赞赏码弹窗样式
   ========================================== */
.support-author-container {
    position: relative;
    display: inline-flex;
    flex-shrink: 1;
    flex-grow: 1;
    overflow: visible;
    z-index: 100;
}

.support-author-container .btn-nav-link {
    width: 100%;
}

.support-author-container:hover {
    overflow: visible;
    z-index: 1000;
}

.qr-popover {
    position: absolute;
    top: 100%;
    right: 50%;
    transform: translateX(50%) translateY(10px);
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(220, 220, 220, 0.85);
    border-radius: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    padding: 15px;
    width: 250px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 9999;
    pointer-events: none;
}

.support-author-container:hover .qr-popover {
    pointer-events: auto;
}

/* 气泡顶部的居中小三角 */
.qr-popover::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 7px;
    border-style: solid;
    border-color: transparent transparent rgba(255, 255, 255, 0.98) transparent;
}

/* 当鼠标移入时显示弹窗并上浮 5px */
.support-author-container:hover .qr-popover {
    opacity: 1;
    visibility: visible;
    transform: translateX(50%) translateY(5px);
}

/* 二维码图片样式及过渡 */
.support-qr-img {
    border-radius: 0;
    border: 1px solid rgba(225, 225, 225, 0.8);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: #fff;
    padding: 2px;
}

.support-qr-img:hover {
    transform: scale(1.06);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* ==========================================
   ECharts 地图与侧边栏联动布局样式
   ========================================== */

/* 地图模式与列表模式切换按钮 */
#viewModeMapBtn, #viewModeListBtn {
    border-radius: 0;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
    border-color: rgba(10, 93, 194, 0.3);
    color: #0a5dc2;
}
#viewModeMapBtn:hover, #viewModeListBtn:hover {
    background-color: rgba(10, 93, 194, 0.08);
    border-color: #0a5dc2;
    color: #0a5dc2;
}
#viewModeMapBtn.active, #viewModeListBtn.active {
    background-color: #0a5dc2;
    border-color: #0a5dc2;
    color: white;
    box-shadow: 0 2px 8px rgba(10, 93, 194, 0.25);
}

/* 地图卡片与画布样式 */
.map-card {
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06) !important;
    background-color: #ffffff;
    border: none;
    transition: all 0.3s ease;
}

#chinaMapCanvas {
    border-radius: 0;
    overflow: hidden;
}

/* 返回全国地图按钮 */
#backToChinaMapBtn {
    border-radius: 0;
    font-size: 0.85rem;
    padding: 5px 12px;
    font-weight: 500;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    transition: all 0.2s ease;
}

#backToChinaMapBtn:hover {
    background-color: #6e6e73;
    color: #ffffff;
    border-color: #6e6e73;
}

/* 地图缩放按钮 */
.map-zoom-controls {
    position: absolute;
    bottom: 12px;
    right: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 20;
}

.map-zoom-btn {
    width: 36px;
    height: 36px;
    border-radius: 0;
    border: 1px solid rgba(0, 0, 0, 0.15);
    background-color: rgba(255, 255, 255, 0.95);
    color: #1d1d1f;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    transition: all 0.2s ease;
    padding: 0;
}

.map-zoom-btn:hover {
    background-color: #0a5dc2;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(10, 93, 194, 0.3);
}

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

/* 地图侧边栏卡片样式 */
.map-sidebar-card {
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06) !important;
    background-color: #ffffff;
    border: none;
}

#mapSidebarList {
    scrollbar-width: thin;
    scrollbar-color: rgba(200, 200, 200, 0.5) transparent;
    overflow-y: auto;
}

#mapSidebarList::-webkit-scrollbar {
    width: 6px;
}

#mapSidebarList::-webkit-scrollbar-track {
    background: transparent;
}

#mapSidebarList::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 0;
}

#mapSidebarList::-webkit-scrollbar-thumb:hover {
    background-color: rgba(0, 0, 0, 0.2);
}

/* 地图侧栏简易高校卡片 */
.map-univ-item {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(242, 242, 247, 0.8);
    transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #ffffff;
    text-decoration: none !important;
}

.map-univ-item:hover {
    background-color: rgba(10, 93, 194, 0.04);
}

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

.map-univ-logo {
    width: 30px;
    height: 30px;
    object-fit: contain;
    margin-right: 12px;
    border-radius: 50%;
    background-color: #f8f9fa;
    border: 1px solid rgba(230, 230, 235, 0.5);
    padding: 2px;
}

.map-univ-info {
    flex-grow: 1;
    min-width: 0;
}

.map-univ-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: #1d1d1f;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    flex: 1 1 auto;
}

.map-univ-location {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    line-height: 1;
}

.map-univ-location .map-univ-loc-text {
    white-space: nowrap;
}

.map-univ-meta {
    font-size: 0.78rem;
    color: #86868b;
    display: flex;
    gap: 10px;
    align-items: center;
}

.map-univ-badges {
    display: flex;
    gap: 4px;
}

.map-univ-badges .badge {
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 0;
    font-weight: 500;
}

/* 地图高亮动画效果 */
@keyframes pulseGlow {
    0% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.05); opacity: 1; }
    100% { transform: scale(1); opacity: 0.7; }
}

.map-loading-indicator {
    animation: pulseGlow 1.5s infinite ease-in-out;
}

/* ==========================================
   高校联盟与特色学校专题新增样式
   ========================================== */

/* 1. 高校名单页顶部引流 Banner 入口（联盟 + 军校专区，精简紧凑） */
.topic-banner-row {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.topic-banner {
    flex: 1 1 280px;
    min-width: 0;
    border-radius: 0;
    padding: 13px 18px;
    color: #ffffff;
    text-decoration: none !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.14);
    transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.alliance-banner {
    background: linear-gradient(135deg, #1e3a8a 0%, #0284c7 100%);
    box-shadow: 0 6px 16px rgba(30, 58, 138, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.military-banner {
    background: linear-gradient(135deg, #14532d 0%, #15803d 55%, #166534 100%);
    box-shadow: 0 6px 16px rgba(20, 83, 45, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.topic-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.14) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.topic-banner:hover {
    transform: translateY(-2px);
    color: #ffffff;
}

.alliance-banner:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #0369a1 100%);
    box-shadow: 0 12px 26px rgba(30, 58, 138, 0.3), 0 0 18px rgba(2, 132, 199, 0.22);
    border-color: rgba(255, 255, 255, 0.26);
}

.military-banner:hover {
    background: linear-gradient(135deg, #166534 0%, #16a34a 55%, #15803d 100%);
    box-shadow: 0 12px 26px rgba(20, 83, 45, 0.32), 0 0 18px rgba(22, 163, 74, 0.22);
    border-color: rgba(255, 255, 255, 0.26);
}

.topic-banner:hover::before {
    opacity: 1;
}

.topic-banner-content {
    position: relative;
    z-index: 2;
    min-width: 0;
    padding-right: 10px;
}

.topic-banner-title {
    font-size: 1.02rem;
    font-weight: 700;
    margin-bottom: 2px;
    letter-spacing: 0.02em;
    display: flex;
    align-items: center;
    gap: 7px;
    color: #ffffff;
}

.topic-banner-desc {
    font-size: 0.76rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0;
    font-weight: 400;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.topic-banner-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #ffffff;
    padding: 6px 14px;
    border-radius: 0;
    font-size: 0.78rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    transition: all 0.3s ease;
    z-index: 2;
    flex-shrink: 0;
}

.topic-banner:hover .topic-banner-btn {
    background: #ffffff;
    color: #1e1b4b;
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.25);
    transform: scale(1.04);
}

/* 2. PC端左侧联盟卡片列表 */
.pc-alliance-card {
    transition: all 0.25s cubic-bezier(0.165, 0.84, 0.44, 1);
    background-color: #ffffff;
    border-color: rgba(230, 230, 235, 0.7) !important;
}

.pc-alliance-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border-color: rgba(10, 93, 194, 0.2) !important;
}

.pc-alliance-card.active {
    background-color: rgba(10, 93, 194, 0.03);
    border-color: rgba(10, 93, 194, 0.6) !important;
    box-shadow: 0 4px 15px rgba(10, 93, 194, 0.08);
}

.pc-alliance-card.active::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 50%;
    background-color: #0a5dc2;
    border-radius: 0;
}

/* 3. 移动端滚动胶囊 */
.mobile-alliances-scroller::-webkit-scrollbar {
    display: none;
}
.mobile-alliances-scroller {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.mobile-alliance-pill {
    background-color: #ffffff;
    border-color: rgba(230, 230, 235, 0.8) !important;
    color: #4a4a4c;
    transition: all 0.2s ease;
}

.mobile-alliance-pill.active {
    background-color: #0a5dc2;
    color: #ffffff;
    border-color: #0a5dc2 !important;
    box-shadow: 0 2px 8px rgba(10, 93, 194, 0.25);
}

/* 4. 右侧详细介绍 */
.alliance-detail-card {
    border: 1px solid rgba(230, 230, 235, 0.5) !important;
}

.alliance-detail-header {
    position: relative;
}

/* 军校专区头部军绿色渐变 */
.military-hero-header {
    background: linear-gradient(135deg, #14532d 0%, #15803d 50%, #166534 100%);
}

.leading-relaxed {
    line-height: 1.7 !important;
}

.fs-7 {
    font-size: 0.8rem !important;
}

/* 5. 成员高校卡片 */
.university-card-alliance-page {
    border: 1px solid rgba(230, 230, 235, 0.7) !important;
}

.university-card-alliance-page:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.08) !important;
    border-color: rgba(10, 93, 194, 0.3) !important;
}

.alliance-univ-logo {
    width: 45px;
    height: 45px;
    object-fit: contain;
    border-radius: 50%;
    background-color: #ffffff;
    border: 1px solid rgba(230, 230, 235, 0.6);
    padding: 3px;
}

.alliance-univ-logo-placeholder {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 0.85rem;
}

.bg-gradient-brand {
    background: linear-gradient(135deg, #0a5dc2 0%, #00d2ff 100%);
}

/* 7. 分组小标题样式 */
.alliance-group-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1e293b;
    margin: 32px 0 16px 0;
    display: flex;
    align-items: center;
    width: 100%;
    letter-spacing: 0.03em;
}

.alliance-group-title::after {
    content: '';
    flex-grow: 1;
    height: 2px;
    background: linear-gradient(to right, rgba(10, 93, 194, 0.3) 0%, rgba(10, 93, 194, 0.05) 70%, transparent 100%);
    margin-left: 16px;
    border-radius: 0;
}

/* 6. 卡片进入动效 */
@keyframes cardSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-card-up {
    animation: cardSlideUp 0.45s cubic-bezier(0.165, 0.84, 0.44, 1) both;
}

/* 控制各个卡片 staggered 动画延迟 */
.animate-card-up:nth-child(1) { animation-delay: 0.05s; }
.animate-card-up:nth-child(2) { animation-delay: 0.1s; }
.animate-card-up:nth-child(3) { animation-delay: 0.15s; }
.animate-card-up:nth-child(4) { animation-delay: 0.2s; }
.animate-card-up:nth-child(5) { animation-delay: 0.25s; }
.animate-card-up:nth-child(6) { animation-delay: 0.3s; }
.animate-card-up:nth-child(7) { animation-delay: 0.35s; }
.animate-card-up:nth-child(8) { animation-delay: 0.4s; }
.animate-card-up:nth-child(9) { animation-delay: 0.45s; }
.animate-card-up:nth-child(n+10) { animation-delay: 0.5s; }

/* ==========================================
   8. 共创共建 (意见反馈) 专属样式
   ========================================== */
.feedback-guide-box {
    background: rgba(10, 93, 194, 0.03);
    border: 1px solid rgba(10, 93, 194, 0.1);
    border-radius: 0;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(10, 93, 194, 0.02);
}

.feedback-guide-box p {
    color: #4a4a4c;
    margin-bottom: 0;
    line-height: 1.6;
}

/* 分类卡片选择器 */
.feedback-category-group {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 24px;
}

.feedback-category-card {
    background: #ffffff;
    border: 1px solid rgba(210, 210, 215, 0.8);
    border-radius: 0;
    padding: 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    user-select: none;
    position: relative;
    overflow: hidden;
}

.feedback-category-card:hover {
    transform: translateY(-3px);
    border-color: rgba(10, 93, 194, 0.5);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.feedback-category-card.selected {
    border-color: #0a5dc2;
    background-color: rgba(10, 93, 194, 0.02);
    box-shadow: 0 4px 15px rgba(10, 93, 194, 0.1);
}

.feedback-category-card.selected::after {
    content: '\F272'; /* Bootstrap Icons Check circle fill */
    font-family: 'bootstrap-icons';
    position: absolute;
    top: 8px;
    right: 8px;
    color: #0a5dc2;
    font-size: 0.9rem;
}

.feedback-category-icon {
    font-size: 1.8rem;
    margin-bottom: 8px;
    display: inline-block;
}

.feedback-category-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1d1d1f;
}

/* 文本域 */
.feedback-textarea-container {
    position: relative;
    margin-bottom: 20px;
}

.feedback-textarea {
    border-radius: 0;
    border: 1px solid rgba(210, 210, 215, 0.8);
    padding: 15px;
    font-size: 0.95rem;
    line-height: 1.6;
    width: 100%;
    resize: none;
    background-color: rgba(245, 245, 247, 0.3);
    transition: all 0.3s ease;
}

.feedback-textarea:focus {
    background-color: #ffffff;
    border-color: #0a5dc2;
    box-shadow: 0 0 0 4px rgba(10, 93, 194, 0.1);
    outline: none;
}

.feedback-word-counter {
    position: absolute;
    bottom: -22px;
    right: 5px;
    font-size: 0.75rem;
    color: #86868b;
    transition: color 0.3s ease;
}

.feedback-word-counter.error {
    color: #ff3b30;
}

/* 算术验证 */
.captcha-label {
    font-weight: 500;
    color: #1d1d1f;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 提交成功页面 */
.feedback-success-card {
    text-align: center;
    padding: 40px 20px;
    border-radius: 0;
    background: #ffffff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.feedback-success-icon {
    font-size: 4rem;
    color: #34c759;
    margin-bottom: 20px;
    display: inline-block;
    animation: scaleIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes scaleIn {
    from { transform: scale(0); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* 时间轴历史记录 */
.feedback-history-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 20px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(210, 210, 215, 0.4);
}

.feedback-timeline {
    position: relative;
    padding-left: 20px;
}

.feedback-timeline::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: rgba(210, 210, 215, 0.5);
}

.feedback-timeline-item {
    position: relative;
    margin-bottom: 25px;
}

.feedback-timeline-item::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 6px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #0a5dc2;
    border: 2px solid #ffffff;
    box-shadow: 0 0 0 2px rgba(10, 93, 194, 0.2);
}

.feedback-timeline-card {
    background: #ffffff;
    border: 1px solid rgba(210, 210, 215, 0.5);
    border-radius: 0;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.feedback-timeline-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 0.8rem;
}

.feedback-timeline-category {
    background: rgba(10, 93, 194, 0.08);
    color: #0a5dc2;
    padding: 2px 8px;
    border-radius: 0;
    font-weight: 500;
}

.feedback-timeline-time {
    color: #86868b;
}

.feedback-timeline-content {
    font-size: 0.9rem;
    color: #1d1d1f;
    line-height: 1.6;
    word-break: break-all;
    white-space: pre-wrap;
}

.feedback-timeline-contact {
    margin-top: 8px;
    font-size: 0.8rem;
    color: #86868b;
    border-top: 1px dashed rgba(210, 210, 215, 0.5);
    padding-top: 8px;
}

@media (max-width: 768px) {
    .feedback-category-group {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

/* ==================== 骨架屏样式 ==================== */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 0;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* 搜索页骨架屏 */
.skeleton-search-container {
    margin-bottom: 20px;
}

.skeleton-search-box {
    height: 40px;
    margin-bottom: 20px;
}

.skeleton-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.skeleton-tab {
    height: 30px;
    width: 80px;
}

.skeleton-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.skeleton-card {
    padding: 16px;
}

.skeleton-card-title {
    height: 24px;
    width: 60%;
    margin-bottom: 12px;
}

.skeleton-card-badges {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.skeleton-badge {
    height: 20px;
    width: 40px;
}

.skeleton-card-detail {
    height: 16px;
    margin-bottom: 8px;
    width: 80%;
}

/* 大学详情页骨架屏 */
.skeleton-university-header {
    padding: 20px;
    margin-bottom: 20px;
}

.skeleton-university-title {
    height: 40px;
    width: 60%;
    margin-bottom: 16px;
}

.skeleton-university-badges {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.skeleton-university-badge {
    height: 24px;
    width: 50px;
}

.skeleton-university-details {
    display: grid;
    gap: 12px;
}

.skeleton-university-detail {
    height: 20px;
    width: 70%;
}

/* 评估结果骨架屏 */
.skeleton-evaluation-stats {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.skeleton-stat-card {
    height: 80px;
    width: 80px;
}

.skeleton-table-header {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    margin-bottom: 12px;
}

.skeleton-table-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    margin-bottom: 8px;
}

.skeleton-table-cell {
    height: 16px;
}

/* ==================== 骨架屏扩展（全站统一） ==================== */

/* 主体内容区最小高度：防止加载时中间区域塌陷导致底部 footer 上跳，
   加载完成后再跳回。配合骨架屏让首屏高度稳定、无跳动。 */
#app-content {
    min-height: 55vh;
}

/* 路由级整页骨架：占满主体区域，模拟真实页面高度 */
.route-skeleton {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 8px 0;
}

/* 通用骨架条 */
.skeleton-line {
    height: 16px;
    border-radius: 0;
}
.skeleton-line-lg {
    height: 26px;
    border-radius: 0;
}
.skeleton-line-xl {
    height: 36px;
    border-radius: 0;
}
.skeleton-line.w-90 { width: 90%; }
.skeleton-line.w-75 { width: 75%; }
.skeleton-line.w-60 { width: 60%; }
.skeleton-line.w-50 { width: 50%; }
.skeleton-line.w-40 { width: 40%; }
.skeleton-line.w-30 { width: 30%; }

/* 骨架块（模拟卡片） */
.skeleton-block {
    padding: 20px;
    margin-bottom: 16px;
}

/* 页面标题骨架 */
.skeleton-page-title {
    height: 32px;
    width: 45%;
    margin-bottom: 20px;
}

/* 榜单列表骨架（rank-v5 / 学科结果列表等纵向列表） */
.skeleton-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.skeleton-list-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 16px;
}
.skeleton-rank-badge {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
}
.skeleton-list-item-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* 图表骨架 */
.skeleton-chart {
    height: 280px;
    width: 100%;
}

/* 表格式骨架：按列布局的行 */
.skeleton-table-row {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
    padding: 12px 4px;
}

/* 详情页信息骨架（标题 + 徽章 + 详情行） */
.skeleton-detail-header {
    padding: 20px;
    margin-bottom: 20px;
}
.skeleton-detail-title {
    height: 36px;
    width: 50%;
    margin-bottom: 16px;
}
.skeleton-detail-badges {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}
.skeleton-detail-line {
    height: 18px;
    margin-bottom: 12px;
}
.skeleton-detail-line.w-70 { width: 70%; }
.skeleton-detail-line.w-50 { width: 50%; }
.skeleton-detail-line.w-40 { width: 40%; }

/* 移动端骨架适配 */
@media (max-width: 768px) {
    #app-content {
        min-height: 45vh;
    }
    .skeleton-table-row {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    .skeleton-chart {
        height: 200px;
    }
}
/* ========================================
   导航下拉菜单（学科评估查询 / 大学排名）
   ======================================== */
.nav-buttons .nav-dropdown {
    flex-grow: 1;
    flex-shrink: 1;
    display: inline-flex;
}

.nav-buttons .nav-dropdown > .btn-nav-link {
    width: 100%;
}

/* dropdown-toggle 的 caret 间距 */
.nav-buttons .nav-dropdown .dropdown-toggle::after {
    margin-left: 4px;
    font-size: 0.7rem;
}

/* 下拉菜单样式对齐导航风格 */
.nav-buttons .nav-dropdown .dropdown-menu {
    border-radius: 0;
    border: 1px solid #e5e5ea;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    padding: 6px;
    min-width: 180px;
    font-size: 0.92rem;
}

.nav-buttons .nav-dropdown .dropdown-item {
    border-radius: 0;
    padding: 8px 12px;
    color: #4a4a4c;
    transition: all 0.15s;
}

.nav-buttons .nav-dropdown .dropdown-item:hover,
.nav-buttons .nav-dropdown .dropdown-item:focus {
    background-color: rgba(10, 93, 194, 0.08);
    color: #0a5dc2;
}

.nav-buttons .nav-dropdown .dropdown-item.active,
.nav-buttons .nav-dropdown .dropdown-item:active {
    background-color: #0a5dc2;
    color: #fff;
}

/* 禁用项（敬请期待） */
.nav-buttons .nav-dropdown .dropdown-item.disabled {
    color: #aeaeb2;
    cursor: not-allowed;
    pointer-events: auto;
    opacity: 1;
}

.nav-buttons .nav-dropdown .dropdown-item.disabled .badge {
    font-size: 0.62rem;
    font-weight: 500;
    vertical-align: middle;
}

/* ===== 排名趋势图：触发图标 ===== */
.trend-cell {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.trend-chart-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border: none;
    background: transparent;
    color: transparent;
    border-radius: 0;
    cursor: pointer;
    padding: 0;
    font-size: 0.9rem;
    transition: background 0.15s, transform 0.15s;
    flex-shrink: 0;
    line-height: 1;
}
/* 趋势图图标：学科蓝，暗示可交互 */
.trend-chart-trigger .bi {
    background: none;
    -webkit-background-clip: initial;
    background-clip: initial;
    -webkit-text-fill-color: initial;
    color: #0a5dc2;
}
.trend-chart-trigger:hover {
    background: rgba(94, 92, 230, 0.10);
    transform: scale(1.12);
}

/* ===== 排名趋势图：桌面端行内展开面板 ===== */
.trend-panel-row > td {
    padding: 0 !important;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}
.trend-panel {
    padding: 14px 16px 16px;
}
.trend-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2px;
}
.trend-panel-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1d1d1f;
}
.trend-panel-close {
    border: none;
    background: transparent;
    color: #adb5bd;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 0;
    font-size: 0.9rem;
    line-height: 1;
}
.trend-panel-close:hover {
    color: #495057;
    background: #e9ecef;
}
.trend-panel-summary {
    font-size: 0.78rem;
    color: #6c757d;
    margin-bottom: 6px;
}
.trend-panel-chart {
    height: 220px;
    width: 100%;
}
.trend-chart-fallback {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #adb5bd;
    font-size: 0.82rem;
}

/* ===== 排名趋势图：移动端 bottom sheet（桌面亦可由图标点击触发） ===== */
.trend-sheet-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1080;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s, visibility 0.25s;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}
.trend-sheet-backdrop.active {
    opacity: 1;
    visibility: visible;
}
.trend-sheet {
    width: 100%;
    max-width: 640px;
    max-height: 72vh;
    background: #fff;
    border-radius: 0;
    padding: 16px 16px 20px;
    transform: translateY(100%);
    transition: transform 0.28s cubic-bezier(0.32, 0.72, 0, 1);
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}
.trend-sheet-backdrop.active .trend-sheet {
    transform: translateY(0);
}
.trend-sheet-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.trend-sheet-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1d1d1f;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.trend-sheet-close {
    border: none;
    background: transparent;
    color: #adb5bd;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 0;
    font-size: 1.1rem;
    line-height: 1;
    flex-shrink: 0;
}
.trend-sheet-close:hover {
    color: #495057;
    background: #f1f3f5;
}
.trend-sheet-summary {
    font-size: 0.82rem;
    color: #6c757d;
    margin: 4px 0 8px;
}
.trend-sheet-chart {
    height: 46vh;
    min-height: 240px;
    width: 100%;
}

/* ============================================================
   首页 hero 品牌区（深蓝大色块 · 直角）
   ============================================================ */
.home-hero {
    background-color: #0a5dc2;
    background-image: linear-gradient(135deg, #084a9e 0%, #0a5dc2 58%, #0d6bd6 100%);
    color: #ffffff;
    padding: 40px 32px 36px;
    margin-bottom: 24px;
    border-radius: 0;
}

.home-hero-copy {
    max-width: 100%;
}

.home-hero-title {
    margin: 0 0 10px;
    font-size: 1.9rem;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: 0.01em;
    color: #ffffff;
}

.home-hero-sub {
    margin: 0 0 22px;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.82);
}

.home-hero-legend {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.home-hero-legend-label {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.7);
    margin-right: 4px;
}

.hero-grade {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 0;
    background-color: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

.hero-grade--aplus {
    background-color: #b91c1c;
}

.hero-grade--a {
    background-color: #dc2626;
}

.hero-grade--aminus {
    background-color: #ef4444;
}

.hero-grade--bplus {
    background-color: #b45309;
}

.hero-grade--b {
    background-color: #d97706;
}

.hero-grade--bminus {
    background-color: #f59e0b;
}

.hero-grade--cplus {
    background-color: #475569;
}

.hero-grade--c {
    background-color: #64748b;
}

.hero-grade--cminus {
    background-color: #94a3b8;
}

@media (max-width: 768px) {
    .home-hero {
        padding: 28px 20px 26px;
        margin-bottom: 16px;
    }

    .home-hero-title {
        font-size: 1.5rem;
    }

    .home-hero-sub {
        font-size: 0.9rem;
        margin-bottom: 16px;
    }
}

/* ============================================================
   双轮对比舞台（金榜 · 第四轮 vs 第五轮）
   ============================================================ */
.compare-stage {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    background-color: #fafafb;
    border: 1px solid #e5e5ea;
    border-radius: 0;
}

.compare-round {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.compare-round--current {
    flex: 0 0 auto;
}

.compare-round-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: #6e6e73;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.grade-honor {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 52px;
    padding: 4px 10px;
    border-radius: 0;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.3;
}

.grade-honor--aplus {
    background-color: rgba(254, 242, 242, 0.7);
    color: #b91c1c;
}

.grade-honor--a {
    background-color: rgba(254, 242, 242, 0.7);
    color: #dc2626;
}

.grade-honor--aminus {
    background-color: rgba(254, 242, 242, 0.7);
    color: #ef4444;
}

.grade-honor--bplus {
    background-color: rgba(255, 251, 235, 0.7);
    color: #b45309;
}

.grade-honor--b {
    background-color: rgba(255, 251, 235, 0.7);
    color: #d97706;
}

.grade-honor--bminus {
    background-color: rgba(255, 251, 235, 0.7);
    color: #f59e0b;
}

.grade-honor--cplus {
    background-color: rgba(248, 250, 252, 0.7);
    color: #475569;
}

.grade-honor--c {
    background-color: rgba(248, 250, 252, 0.7);
    color: #64748b;
}

.grade-honor--cminus {
    background-color: rgba(248, 250, 252, 0.7);
    color: #94a3b8;
}

.grade-honor--none {
    background-color: rgba(245, 245, 247, 0.7);
    color: #6e6e73;
    font-weight: 500;
    font-size: 0.9rem;
}

.compare-arrow {
    font-size: 1.1rem;
    color: #c7c7cc;
    flex-shrink: 0;
}

.compare-change {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 8px;
    border-radius: 0;
    font-size: 0.78rem;
    font-weight: 600;
    flex-shrink: 0;
    white-space: nowrap;
}

.compare-change--up {
    background-color: #dc2626;
    color: #ffffff;
    box-shadow: 0 1px 3px rgba(220, 38, 38, 0.35);
}

.compare-change--down {
    background-color: rgba(100, 116, 139, 0.15);
    color: #64748b;
}

.compare-change--flat {
    background-color: rgba(100, 116, 139, 0.12);
    color: #64748b;
}

.compare-change--new {
    background-color: #dc2626;
    color: #ffffff;
}

/* 科普Banner"阅读科普文章"按钮：展开/折叠时箭头旋转 */
#relationshipBanner button[data-bs-toggle="collapse"] .bi-chevron-down {
    transition: transform 0.3s ease;
}
#relationshipBanner button[data-bs-toggle="collapse"][aria-expanded="true"] .bi-chevron-down {
    transform: rotate(180deg);
}

/* ===== 学科评估历史趋势面板 ===== */
.eval-history-panel-row td {
    padding: 0 !important;
    border-top: none !important;
    background: #fafafb;
}
.eval-history-panel {
    padding: 16px 20px 14px;
    border-top: 2px solid #0a5dc2;
    border-bottom: 1px solid #e5e5ea;
}
.eval-history-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}
.eval-history-panel-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: #1d1d1f;
}
.eval-history-summary {
    font-size: 0.88rem;
    color: #4a4a4c;
    margin-bottom: 10px;
}
.eval-history-chart {
    width: 100%;
    margin-bottom: 12px;
}
.eval-history-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}
.eval-history-legend-item {
    flex: 1 1 100px;
    min-width: 88px;
    padding: 8px 10px;
    background: #fff;
    border: 1px solid #e5e5ea;
    text-align: center;
}
.eval-history-legend-item--current {
    border-color: #0a5dc2;
    background: rgba(10, 93, 194, 0.04);
}
.eval-history-legend-year {
    font-size: 0.72rem;
    color: #868e96;
}
.eval-history-legend-label {
    font-size: 0.75rem;
    color: #495057;
    margin-bottom: 4px;
}
.eval-history-legend-value {
    min-height: 1.5rem;
}
.eval-history-timeline {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
}
.eval-history-node {
    flex: 1 1 120px;
    min-width: 100px;
    padding: 10px 12px;
    background: #fff;
    border: 1px solid #e5e5ea;
    border-left: 3px solid #c7c7cc;
}
.eval-history-node--current {
    border-left-color: #0a5dc2;
    background: rgba(10, 93, 194, 0.04);
}
.eval-history-node-label {
    font-size: 0.72rem;
    color: #86868b;
    margin-bottom: 6px;
}
.eval-history-node-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1d1d1f;
}
.eval-history-rank {
    font-variant-numeric: tabular-nums;
}
.eval-history-footnote {
    font-size: 0.75rem;
    line-height: 1.4;
}
.eval-history-sheet-scroll {
    margin-top: 10px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.eval-history-sheet .eval-history-legend {
    flex-wrap: nowrap;
    min-width: max-content;
    margin-bottom: 8px;
}
.eval-history-sheet .eval-history-legend-item {
    flex: 0 0 auto;
    min-width: 72px;
}
.eval-trend-summary {
    white-space: nowrap;
}
@media (max-width: 768px) {
    /* 与排名趋势一致：移动端禁用行内展开，改走底部浮层 */
    .eval-history-panel-row {
        display: none !important;
    }
    .eval-history-timeline {
        flex-direction: column;
    }
    .eval-history-node {
        flex: 1 1 auto;
    }
    .eval-history-sheet {
        max-height: 85vh;
        overflow-y: auto;
    }
    .eval-history-sheet .trend-sheet-chart {
        height: 38vh;
        min-height: 200px;
        flex-shrink: 0;
    }
}
