/* ============================================================
      Hi学校 顶部导航 - Bootstrap 5 统一风格
   ============================================================ */
.hi-navbar {
    background: linear-gradient(90deg, #1A6FC4 0%, #1558A0 100%);
    padding: 0;
    height: 54px;
    box-shadow: 0 2px 12px rgba(0,0,0,.18);
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1050;
}
.hi-navbar .navbar-brand {
    padding: 6px 0;
    margin-right: 28px;
}
.hi-navbar .navbar-brand img {
    height: 38px;
    width: auto;
}
.hi-navbar .navbar-toggler {
    border: 1.5px solid rgba(255,255,255,.5);
    padding: 4px 8px;
    border-radius: 6px;
}
.hi-navbar .navbar-toggler:focus { box-shadow: none; }
.hi-navbar .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255,255,255,0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
/* Nav 链接 */
.hi-navbar .nav-link {
    color: rgba(255,255,255,.88) !important;
    font-size: 14px;
    font-weight: 500;
    padding: 16px 14px !important;
    position: relative;
    letter-spacing: .3px;
}
.hi-navbar .nav-link:hover,
.hi-navbar .nav-link.active-page {
    color: #fff !important;
}
.hi-navbar .nav-link::after {
    content: '';
    position: absolute;
    bottom: 8px; left: 14px; right: 14px;
    height: 2px;
    background: rgba(255,255,255,.7);
    border-radius: 1px;
    transform: scaleX(0);
    transition: transform .2s;
}
.hi-navbar .nav-link:hover::after { transform: scaleX(1); }

/* 当前页高亮 */
.hi-navbar .nav-link.active-page::after { transform: scaleX(1); background: #fff; }

/* Dropdown */
.hi-navbar .dropdown-menu {
    background: #fff;
    border: none;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,.14);
    padding: 6px 0;
    margin-top: 0;
    min-width: 140px;
}
.hi-navbar .dropdown-item {
    font-size: 13px;
    color: #2C3E50;
    padding: 8px 18px;
}
.hi-navbar .dropdown-item:hover {
    background: #E8F2FC;
    color: #1A6FC4;
}
.hi-navbar .dropdown-toggle::after {
    border: 0;
}

/* 顶部搜索框（PC端，嵌入导航右侧） */
.hi-top-search {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,.15);
    border-radius: 20px;
    padding: 0 4px 0 14px;
    height: 34px;
    min-width: 180px;
    margin-left: 16px;
}
.hi-top-search input {
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-size: 13px;
    width: 130px;
}
.hi-top-search input::placeholder { color: rgba(255,255,255,.65); }
.hi-top-search button {
    background: rgba(255,255,255,.25);
    border: none;
    color: #fff;
    border-radius: 16px;
    width: 28px; height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
    flex-shrink: 0;
}
.hi-top-search button:hover { background: rgba(255,255,255,.4); }

/* 移动端展开时的样式 */
@media (max-width: 991px) {
    .hi-navbar .navbar-collapse {
        background: #1558A0;
        padding: 8px 16px 16px;
        border-radius: 0 0 10px 10px;
        box-shadow: 0 8px 20px rgba(0,0,0,.2);
    }
    .hi-navbar .nav-link { padding: 10px 6px !important; }
    .hi-navbar .nav-link::after { display: none; }
    .hi-navbar .dropdown-menu {
        background: rgba(255,255,255,.1);
        box-shadow: none;
        border-radius: 6px;
    }
    .hi-navbar .dropdown-item { color: rgba(255,255,255,.85); }
    .hi-navbar .dropdown-item:hover { background: rgba(255,255,255,.15); color: #fff; }
    .hi-top-search {
        margin: 8px 0 0;
        min-width: unset;
        width: 100%;
    }
    .hi-top-search input { width: 100%; }
}

/* 占位高度，避免 fixed header 遮挡内容 */
.hi-nav-spacer { height: 54px; }
/* ============================================================
       Hi学校 页脚 - 深色现代风格
    ============================================================ */
.hi-footer {
    background: #111827;
    padding-top: 48px;
    font-family: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}
.hi-footer-body {
    border-bottom: 1px solid rgba(255,255,255,.08);
    padding-bottom: 36px;
}
/* Logo 列 */
.hi-footer .foo-logo img {
    height: 36px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: .9;
}
.hi-footer .foo-slogan {
    font-size: 13px;
    color: rgba(255,255,255,.45);
    margin-top: 12px;
    line-height: 1.7;
}
.hi-footer .foo-contact {
    font-size: 12px;
    color: rgba(255,255,255,.35);
    margin-top: 16px;
}

/* 列标题 */
.hi-footer .foo-col-title {
    font-size: 13px;
    font-weight: 600;
    color: #1A6FC4;
    letter-spacing: .5px;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(26,111,196,.3);
}

/* 内容块 */
.hi-footer .foo-text-block {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 14px;
}
.hi-footer .foo-text-block .foo-icon {
    font-size: 16px;
    flex-shrink: 0;
    margin-top: 2px;
}
.hi-footer .foo-text-block .fa-share-alt-square { color: #1A6FC4; }
.hi-footer .foo-text-block .fa-exclamation-triangle { color: #F39C12; }
.hi-footer .foo-text-block p {
    font-size: 12px;
    color: rgba(255,255,255,.45);
    line-height: 1.75;
    margin: 0;
}
.hi-footer .foo-text-block span {
    color: rgba(255,255,255,.7);
    font-weight: 500;
}

/* 友情链接 */
.hi-footer .foo-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.hi-footer .foo-links a {
    font-size: 12px;
    color: rgba(255,255,255,.45);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
}
.hi-footer .foo-links a:hover { color: #4A9FD6; }

/* 版权栏 */
.hi-footer .foo-copy {
    background: #0D1117;
    padding: 14px 0;
}
.hi-footer .copy-text {
    font-size: 11px;
    color: rgba(255,255,255,.3);
    margin: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}
.hi-footer .copy-text a {
    color: rgba(255,255,255,.35);
    text-decoration: none;
}
.hi-footer .copy-text a:hover { color: rgba(255,255,255,.6); }
.hi-footer .copy-right-nav {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 16px;
    font-size: 11px;
    color: rgba(255,255,255,.3);
}
.hi-footer .copy-right-nav a { color: rgba(255,255,255,.35); text-decoration: none; }
.hi-footer .copy-right-nav a:hover { color: rgba(255,255,255,.6); }

/* ============================================================
          全局变量
       ============================================================ */
: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); }
