
/* ---- Breadcrumb ---- */
.hi-breadcrumb-bar {
    background: linear-gradient(135deg, #1558A0 0%, #0E3F7A 55%, #0B3369 100%);
    padding: 12px 0;
}
.hi-breadcrumb-bar .breadcrumb { margin: 0; }
.hi-breadcrumb-bar .breadcrumb-item a { color: rgba(255,255,255,.8); font-size: 13px; }
.hi-breadcrumb-bar .breadcrumb-item a:hover { color: #fff; }
.hi-breadcrumb-bar .breadcrumb-item.active { color: rgba(255,255,255,.6); font-size: 13px; }
.hi-breadcrumb-bar .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.4); }

/* ---- Layout ---- */
.hi-page { padding: 24px 0 60px; }

/* ---- Card shell ---- */
.hi-card {
    background: var(--c-card);
    border-radius: 12px;
    box-shadow: var(--c-shadow);
    /*overflow: hidden;*/
    margin-bottom: 16px;
}
.hi-card.card-list {
    overflow: hidden;
}
.hi-card.card-filter {
    position: relative;
    z-index: 10;
}
.hi-sec-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px 12px;
    border-bottom: 1px solid var(--c-border);
}
.hi-sec-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--c-text);
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}
.hi-sec-title::before {
    content: '';
    display: block;
    width: 4px;
    height: 17px;
    background: var(--c-blue);
    border-radius: 2px;
    flex-shrink: 0;
}

/* ---- Search bar ---- */
.hi-search-wrap {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    border: 1.5px solid var(--c-border);
    max-width: 320px;
}
.hi-search-wrap input {
    flex: 1;
    border: none;
    outline: none;
    padding: 8px 12px;
    font-size: 13px;
    color: var(--c-text);
    background: transparent;
    min-width: 0;
}
.hi-search-wrap input::placeholder { color: #bbb; }
.hi-search-wrap button {
    background: var(--c-blue);
    color: #fff;
    border: none;
    padding: 8px 14px;
    cursor: pointer;
    font-size: 14px;
    flex-shrink: 0;
}
.hi-search-wrap button:hover { background: #1255A0; }

/* ---- Filter section ---- */
.filter-body { padding: 16px 18px 8px; }
.filter-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid var(--c-border);
}
.filter-row:last-child { border-bottom: none; padding-bottom: 0; }
.filter-label {
    flex-shrink: 0;
    width: 72px;
    padding-top: 6px;
    font-size: 13px;
    color: var(--c-muted);
    font-weight: 600;
}
.filter-chips { display: flex; flex-wrap: wrap; gap: 6px; flex: 1; }
.filter-chip {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    border: 1.5px solid var(--c-border);
    background: transparent;
    color: var(--c-muted);
    text-decoration: none;
}
.filter-chip:hover,
.filter-chip.active {
    background: var(--c-blue);
    border-color: var(--c-blue);
    color: #fff;
}

/* ---- Stats panel ---- */
/* ---- Stats panel ---- */
.stats-panel { padding: 16px 18px; }

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
@media (min-width: 768px) {
    .stats-grid { grid-template-columns: repeat(4, 1fr); }
}

.stats-tile {
    background: var(--c-bg);
    border-radius: 8px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.stats-tile-icon {
    width: 36px; height: 36px;
    border-radius: 8px;
    background: var(--c-blue-l);
    color: var(--c-blue);
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; flex-shrink: 0;
}
.stats-tile-icon.green { background: var(--c-green-l); color: var(--c-green); }
.stats-tile-icon.amber { background: #FEF3C7; color: var(--c-amber); }
.stats-tile-icon.red   { background: #FEE2E2; color: var(--c-red); }

.stats-tile-body {}
.stats-tile-val {
    font-size: 20px; font-weight: 700;
    color: var(--c-blue); line-height: 1.2;
    font-family: 'Noto Serif SC', serif;
}
.stats-tile-val.green { color: var(--c-green); }
.stats-tile-val.amber { color: var(--c-amber); }
.stats-tile-val.red   { color: var(--c-red); }
.stats-tile-lbl { font-size: 11px; color: var(--c-muted); margin-top: 1px; }

/* 学费区间单独一行 */
.stats-tuition-row {
    display: flex; gap: 8px; align-items: center;
    background: var(--c-bg);
    border-radius: 8px; padding: 10px 14px;
    margin-top: 12px; flex-wrap: wrap;
}
.stats-tuition-row .lbl { font-size: 12px; color: var(--c-muted); flex-shrink: 0; }
.stats-tuition-val {
    font-size: 13px; color: var(--c-text); font-weight: 500;
}
.stats-tuition-sep { color: var(--c-border); }

/* 图表容器隐藏（ECharts 饼图不适合这个布局，保留 DOM 供 JS 用，视觉上隐藏） */
#school_pie { display: none; }

/* ---- City picker 移动端优化 ---- */
.city-picker-selector { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.city-picker-selector select {
    flex: 1; min-width: 100px; max-width: 180px;
    border: 1.5px solid var(--c-border);
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 13px;
    color: var(--c-text);
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748B' d='M6 8L1 3h10z'/%3E%3C/svg%3E") no-repeat right 10px center;
    background-size: 10px;
    appearance: none; -webkit-appearance: none;
    cursor: pointer;
    outline: none;
}
.city-picker-selector select:focus {
    border-color: var(--c-blue);
    box-shadow: 0 0 0 3px rgba(26,111,196,.1);
}
@media (max-width: 575.98px) {
    .city-picker-selector { flex-direction: column; align-items: stretch; }
    .city-picker-selector select { max-width: 100%; }
}

/* ---- Article list (tag Q&A) ---- */
.qa-list { padding: 4px 18px 8px; }
.qa-item {
    padding: 8px 0;
    border-bottom: 1px solid var(--c-border);
    font-size: 13px;
}
.qa-item:last-child { border-bottom: none; }
.qa-item a { color: var(--c-text); }
.qa-item a:hover { color: var(--c-blue); }

/* ---- School list ---- */
.school-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--c-border);
}
.school-item:last-child { border-bottom: none; }
.school-logo {
    width: 60px;
    height: 50px;
    object-fit: contain;
    border-radius: 6px;
    border: 1px solid var(--c-border);
    background: var(--c-bg);
    flex-shrink: 0;
}
.school-info { flex: 1; min-width: 0; }
.school-name-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 4px;
}
.school-name-link {
    font-size: 15px;
    font-weight: 600;
    color: var(--c-text);
}
.school-name-link:hover { color: var(--c-blue); }
.school-rank {
    font-size: 12px;
    color: var(--c-blue);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 2px;
}
.school-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 4px;
}
.hi-tag {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
    background: var(--c-blue-l);
    color: var(--c-blue);
}
.hi-tag a { color: inherit; }
.hi-tag-empty {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
    background: var(--c-bg);
    color: var(--c-muted);
}
.school-house {
    font-size: 12px;
    color: var(--c-muted);
    margin-bottom: 4px;
}
.school-house a { color: var(--c-blue-m); }
.school-meta-row {
    font-size: 12px;
    color: var(--c-muted);
    display: flex;
    flex-wrap: wrap;
    gap: 0 12px;
    row-gap: 2px;
    line-height: 1.8;
}
.school-meta-row .lbl { color: var(--c-blue); }
.school-meta-row .meta-seg { white-space: nowrap; }
.teacher-badge {
    display: inline-block;
    padding: 0 4px;
    border-radius: 3px;
    background: var(--c-blue);
    color: #fff;
    font-size: 10px;
}
.btn-compare {
    flex-shrink: 0;
    background: transparent;
    border: 1.5px solid var(--c-blue);
    color: var(--c-blue);
    border-radius: 6px;
    font-size: 12px;
    padding: 5px 10px;
    cursor: pointer;
    white-space: nowrap;
    align-self: center;
}
.btn-compare:hover { background: var(--c-blue); color: #fff; }

/* ---- Empty state ---- */
.hi-empty { text-align: center; padding: 40px 16px; color: var(--c-muted); font-size: 13px; }
.hi-empty i { font-size: 32px; margin-bottom: 8px; display: block; color: var(--c-border); }

/* ---- List footer: total + pagination ---- */
.list-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    border-top: 1px solid var(--c-border);
    flex-wrap: wrap;
    gap: 8px;
}
.list-total {
    font-size: 12px;
    color: var(--c-muted);
}
.list-total mark {
    background: var(--c-blue-l);
    color: var(--c-blue);
    padding: 2px 10px;
    border-radius: 10px;
    font-size: 12px;
    font-style: normal;
}
/* Bootstrap 5 pagination override */
.pagination .page-link {
    color: var(--c-blue);
    border-color: var(--c-border);
    font-size: 13px;
    padding: 6px 12px;
}
.pagination .page-item.active .page-link {
    background-color: var(--c-blue);
    border-color: var(--c-blue);
    color: #fff;
}
.pagination .page-link:hover {
    background-color: var(--c-blue-l);
    border-color: var(--c-border);
    color: var(--c-blue);
}

/* ---- Responsive ---- */
@media (max-width: 767.98px) {
    .school-tags,
    .school-house { display: none !important; }
    .school-name-link { font-size: 14px; }
    .school-meta-row { flex-direction: column; gap: 0; }
    #floatTools { display: none; }
    .stats-panel { flex-direction: column; gap: 12px; }
    .stats-divider { display: none; }
    .stats-nature { justify-content: flex-start; }
    .filter-label { width: 52px; font-size: 12px; }
}
@media (max-width: 575.98px) {
    .hi-search-wrap { max-width: 100%; }
}