/* ============================================================
          设计令牌 / Design Tokens
       ============================================================ */
:root {
    --c-blue:      #1A6FC4;
    --c-blue-l:    #E8F2FC;
    --c-blue-m:    #4A9FD6;
    --c-green:     #2DAE6B;
    --c-green-l:   #E6F7EE;
    --c-amber:     #F59E0B;
    --c-red:       #EF4444;
    --c-bg:        #F0F5FB;
    --c-card:      #FFFFFF;
    --c-text:      #1E2D3D;
    --c-muted:     #64748B;
    --c-border:    #DDE6EF;
    --c-shadow:    0 2px 12px rgba(26,111,196,.07);
    --c-shadow-md: 0 4px 24px rgba(26,111,196,.12);
}

*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: var(--c-bg);
    color: var(--c-text);
    font-size: 14px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Noto Serif SC', 'PingFang SC', serif;
}

a { color: var(--c-blue); text-decoration: none; }
a:hover { color: var(--c-blue-m); }

/* ============================================================
   面包屑导航
============================================================ */
.sd-breadcrumb {
    background: #fff;
    border-bottom: 1px solid var(--c-border);
    padding: 10px 0;
}

.sd-breadcrumb .breadcrumb {
    margin: 0;
    font-size: 13px;
}

.sd-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    color: var(--c-muted);
}

.sd-breadcrumb .breadcrumb-item a {
    color: var(--c-muted);
}

.sd-breadcrumb .breadcrumb-item.active {
    color: var(--c-blue);
    font-weight: 600;
}

/* ============================================================
   学校 Hero 区
============================================================ */
.school-hero {
    background: linear-gradient(135deg, #1558A0 0%, #0E3F7A 55%, #0B3369 100%);
    padding: 32px 0 28px;
    position: relative;
    overflow: hidden;
}

.school-hero::before {
    content: '';
    position: absolute;
    top: -60px; right: -60px;
    width: 280px; height: 280px;
    border-radius: 50%;
    background: rgba(255,255,255,.04);
    pointer-events: none;
}

.school-hero::after {
    content: '';
    position: absolute;
    bottom: -80px; left: -30px;
    width: 240px; height: 240px;
    border-radius: 50%;
    background: rgba(255,255,255,.03);
    pointer-events: none;
}

.school-logo-wrap {
    width: 90px; height: 90px;
    background: #fff;
    border-radius: 12px;
    border: 2px solid rgba(255,255,255,.25);
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 4px 16px rgba(0,0,0,.25);
}

.school-logo-wrap img {
    width: 100%; height: 100%;
    object-fit: contain;
    padding: 6px;
}

.school-hero-name {
    font-family: 'Noto Serif SC', serif;
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 8px;
    line-height: 1.3;
}

.school-hero-name .rank-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 600;
    color: var(--c-amber);
    background: rgba(245,158,11,.15);
    border: 1px solid rgba(245,158,11,.35);
    border-radius: 20px;
    padding: 2px 10px;
    vertical-align: middle;
    margin-left: 10px;
}

.school-hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.hero-tag {
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 12px;
    font-weight: 500;
}

.hero-tag-nature {
    background: rgba(45,174,107,.2);
    color: #6be7a7;
    border: 1px solid rgba(45,174,107,.3);
}

.hero-tag-honor {
    background: rgba(245,158,11,.18);
    color: #fcd34d;
    border: 1px solid rgba(245,158,11,.3);
}

.hero-tag-honor a {
    color: inherit;
}

.school-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 20px;
    color: rgba(255,255,255,.75);
    font-size: 13px;
}

.school-hero-meta .meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.school-hero-meta .fa {
    font-size: 13px;
    color: rgba(255,255,255,.5);
}

/* ============================================================
   提醒横幅
============================================================ */
.notice-banner {
    background: #FFF9EC;
    border-bottom: 1px solid #FCE88D;
    padding: 7px 0;
    font-size: 12px;
    color: #92681A;
    text-align: center;
}

.notice-banner .fa { margin-right: 4px; }

/* ============================================================
   锚点导航 (Sticky Tabs)
============================================================ */
.anchor-nav-wrap {
    background: #fff;
    border-bottom: 1px solid var(--c-border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(26,111,196,.06);
}

.anchor-nav {
    display: flex;
    overflow-x: auto;
    gap: 0;
    padding: 0;
    list-style: none;
    margin: 0;
    scrollbar-width: none;
}

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

.anchor-nav-item a {
    display: block;
    padding: 11px 18px;
    font-size: 13px;
    font-weight: 500;
    color: var(--c-muted);
    white-space: nowrap;
    border-bottom: 2px solid transparent;
}

.anchor-nav-item a:hover,
.anchor-nav-item a.active {
    color: var(--c-blue);
    border-bottom-color: var(--c-blue);
}

/* ============================================================
   主内容区通用卡片
============================================================ */
.sd-card {
    background: var(--c-card);
    border-radius: 10px;
    box-shadow: var(--c-shadow);
    overflow: hidden;
    margin-bottom: 16px;
}

/* 区块标题 */
.sd-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px 12px;
    border-bottom: 1px solid var(--c-border);
}

.sd-section-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--c-text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.sd-section-title::before {
    content: '';
    display: block;
    width: 4px; height: 17px;
    background: var(--c-blue);
    border-radius: 2px;
    flex-shrink: 0;
}

.sd-section-more {
    font-size: 12px;
    color: var(--c-muted);
    display: flex;
    align-items: center;
    gap: 3px;
}

.sd-section-more:hover { color: var(--c-blue); }

.sd-section-body {
    padding: 16px 18px;
}

/* ============================================================
   信息网格表
============================================================ */
.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
}

.info-cell {
    padding: 10px 14px;
    border-bottom: 1px solid var(--c-border);
    border-right: 1px solid var(--c-border);
    display: flex;
    gap: 8px;
    align-items: baseline;
    flex-wrap: wrap;
}

.info-cell:nth-child(2n) { border-right: none; }
.info-cell:nth-last-child(-n+2) { border-bottom: none; }

/* last row fix when odd count */
.info-cell.full-row {
    grid-column: 1 / -1;
    border-right: none;
}

.info-label {
    font-size: 12px;
    color: var(--c-muted);
    flex-shrink: 0;
    white-space: nowrap;
}

.info-value {
    font-size: 13px;
    color: var(--c-text);
    font-weight: 600;
    word-break: break-all;
    flex: 1;
}

.info-value a { color: var(--c-blue); }

/* teacher level badges */
.teacher-lv {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px; height: 18px;
    border-radius: 4px;
    background: var(--c-blue);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    margin-right: 2px;
}

/* ============================================================
   富文本简介
============================================================ */
.school-intro-text {
    font-size: 14px;
    line-height: 1.85;
    color: var(--c-text);
}

/* ============================================================
   招生简章表格
============================================================ */
.enroll-table {
    width: 100%;
    border-collapse: collapse;
}

.enroll-table tr {
    border-bottom: 1px solid var(--c-border);
}

.enroll-table tr:last-child { border-bottom: none; }

.enroll-table th {
    width: 96px;
    padding: 10px 14px;
    font-size: 12px;
    color: var(--c-muted);
    font-weight: 500;
    white-space: nowrap;
    vertical-align: top;
}

.enroll-table td {
    padding: 10px 14px;
    font-size: 13px;
    color: var(--c-text);
    font-weight: 600;
}

/* ============================================================
   标签云
============================================================ */
.tag-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hi-tag {
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 20px;
    background: var(--c-blue-l);
    color: var(--c-blue);
    font-weight: 500;
}

.hi-tag a { color: inherit; }

/* ============================================================
   对口居委列表
============================================================ */
.house-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.house-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 0;
    border-bottom: 1px solid var(--c-border);
    font-size: 13px;
}

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

.house-item .fa { color: var(--c-blue); font-size: 13px; }

.house-item a { color: var(--c-text); }
.house-item a:hover { color: var(--c-blue); }

/* ============================================================
   相关资讯列表
============================================================ */
.news-list { display: flex; flex-direction: column; }

.news-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 9px 0;
    border-bottom: 1px solid var(--c-border);
    font-size: 13px;
}

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

.news-item .news-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--c-blue-m);
    flex-shrink: 0;
    margin-top: 5px;
}

.news-item a { color: var(--c-text); line-height: 1.5; }
.news-item a:hover { color: var(--c-blue); }

/* ============================================================
   上下篇导航
============================================================ */
.prev-next-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 4px;
}

.pn-block {
    background: var(--c-card);
    border-radius: 8px;
    border: 1px solid var(--c-border);
    padding: 12px 14px;
}

.pn-label {
    font-size: 11px;
    color: var(--c-muted);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.pn-block a {
    font-size: 13px;
    font-weight: 600;
    color: var(--c-text);
}

.pn-block a:hover { color: var(--c-blue); }

.pn-block .pn-empty {
    font-size: 13px;
    color: var(--c-muted);
}

/* ============================================================
   侧边栏
============================================================ */
.sidebar-widget {
    background: var(--c-card);
    border-radius: 10px;
    box-shadow: var(--c-shadow);
    overflow: hidden;
    margin-bottom: 16px;
}

.widget-head {
    background: var(--c-blue);
    color: #fff;
    padding: 11px 15px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.widget-head a {
    color: rgba(255,255,255,.75);
    font-size: 12px;
}

.widget-head a:hover { color: #fff; }

.widget-list { padding: 4px 0; }

.widget-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border-bottom: 1px solid var(--c-border);
    font-size: 13px;
}

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

.w-rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px; height: 20px;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
    color: #fff;
}

.w-rank.top { background: var(--c-red); }
.w-rank.mid { background: var(--c-amber); }
.w-rank.normal { background: var(--c-muted); }

.widget-item a {
    color: var(--c-text);
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
}

.widget-item a:hover { color: var(--c-blue); }

/* ============================================================
   空状态
============================================================ */
.hi-empty {
    text-align: center;
    padding: 20px 16px;
    color: var(--c-muted);
    font-size: 13px;
}

/* ============================================================
   响应式布局
============================================================ */
@media (max-width: 767.98px) {
    .school-hero { padding: 22px 0 18px; }
    .school-logo-wrap { width: 70px; height: 70px; }
    .school-hero-name { font-size: 18px; }
    .info-grid { grid-template-columns: 1fr; }
    .info-cell { border-right: none !important; }
    .info-cell:last-child { border-bottom: none; }
    .prev-next-nav { grid-template-columns: 1fr; }
}

@media (max-width: 575.98px) {
    .anchor-nav-item a { padding: 10px 12px; font-size: 12px; }
    .sd-section-body { padding: 12px 14px; }
}