/* ===== 全局重置 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft YaHei", "Segoe UI", sans-serif;
}
a{
text-decoration: none;
}
body {
    background-color: #005aa6;
    color: #333;
    line-height: 1.6;
}

.container {
    width: 100%;
    margin: 0 auto;
    background-color: white;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

/* ===== 顶部区域 ===== */
.top-bar {
    background-color: #005aa6;
    color: white;
    padding: 18px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 18px;
}

.logo-img {
    height: 65px;
    width: auto;
}

.school-name {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.school-name h1 {
    font-size: 40px;
    font-weight: bold;
    letter-spacing: 10px;
}

.school-name h2 {
    font-size: 18px;
    font-weight: normal;
    color: #cce0ff;
    letter-spacing: 4px;
}

.search-box {
    display: flex;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    border-radius: 4px;
    overflow: hidden;
}

.search-box input {
    padding: 9px 18px;
    border: none;
    border-radius: 4px 0 0 4px;
    width: 260px;
    font-size: 14px;
    outline: none;
}

.search-box button {
    background-color: #0078d7;
    color: white;
    border: none;
    padding: 9px 20px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s;
}

.search-box button:hover {
    background-color: #0066b8;
}

/* ===== 导航栏 ===== */
.nav-bar {
    background-color: #fff;
    padding: 0 40px;
    border-bottom: 1px solid #005aa6;
}

.nav-menu {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
    width: 1500px;
    margin: 0px calc(50% - 750px);  
}

.nav-menu li {
    padding: 16px 24px;
    position: relative;
    transition: background-color 0.2s;
    width: 215px;
    text-align: center;
}
.nav-menu li a {color: #005aa6;
  font-size: 18px; }

.nav-menu li:hover {
    background-color: #cce5ff;
}

.nav-menu li:hover::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background-color: #005aa6;
}

.nav-menu li.active {
    background-color: #cce5ff;
}

.nav-menu li.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background-color: #005aa6;
}

/* ===== Banner 轮播 ===== */
.banner {
    position: relative;
    width: 80%;
    overflow: hidden;
    margin-bottom: 30px;
    margin: 0 auto 30px auto;
}

.banner .banner-slides {
    position: relative;
    width: 100%;
    aspect-ratio: 1890 / 705;
}

.banner .banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.banner .banner-slide.active {
    opacity: 1;
}

.banner .banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.banner-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 30px 20px 30px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.65) 30%, rgba(0, 0, 0, 0.2) 65%, transparent 100%);
    color: white;
    text-align: center;
}

.banner-overlay h2 {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 8px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.banner-overlay p {
    font-size: 20px;
    max-width: 600px;
    line-height: 1.5;
    margin: 0 auto;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.banner .banner-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    border: none;
    width: 44px;
    height: 70px;
    cursor: pointer;
    font-size: 24px;
    transition: background 0.3s;
    z-index: 2;
}

.banner .banner-arrow:hover {
    background: rgba(0, 0, 0, 0.55);
}

.banner .banner-arrow.left {
    left: 0;
    border-radius: 0 4px 4px 0;
}

.banner .banner-arrow.right {
    right: 0;
    border-radius: 4px 0 0 4px;
}

.banner .banner-dots {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 2;
}

.banner .banner-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    border: 2px solid rgba(255, 255, 255, 0.75);
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

.banner .banner-dot.active {
    background: #fff;
    transform: scale(1.2);
}

.banner .banner-dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

/* ===== 底部 ===== */
.footer {
    background-color: #004a8f;
    color: white;
    padding: 35px 40px;
    text-align: center;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
}

.footer h3 {
    margin-bottom: 18px;
    font-size: 22px;
    font-weight: bold;
    letter-spacing: 1px;
}

.contact-info {
    margin-bottom: 25px;
    line-height: 1.8;
}

.contact-info p {
    margin: 5px 0;
    font-size: 14px;
}

.copyright {
    font-size: 13px;
    color: #b3d4ff;
    margin-top: 25px;
    line-height: 1.6;
}

.copyright p {
    margin: 5px 0;
}

/* ========== 响应式：大屏幕 ≥1400px ========== */
@media (min-width: 1400px) {
    .top-bar { padding: 22px calc(50% - 750px); /*! width: 1200px; */}
    .nav-bar { padding: 0 60px; }
    .footer { padding: 40px 60px; }
    .banner .banner-slides { aspect-ratio: 1890 / 705; }
}

/* ========== 响应式：中屏 768-1199px ========== */
@media (min-width: 768px) and (max-width: 1199px) {
    .top-bar { padding: 15px 30px; flex-wrap: wrap; gap: 12px; }
    .nav-bar { padding: 0 30px; }
    .nav-menu li { padding: 14px 16px; }
    .footer { padding: 30px 30px; }
    .search-box input { width: 200px; }
    .school-name h1 { font-size: 22px; letter-spacing: 6px; }
    .school-name h2 { font-size: 16px; }
    .banner .banner-slides { aspect-ratio: 1890 / 705; }
    .banner-overlay h2 { font-size: 26px; }
    .banner-overlay p { font-size: 16px; }
}

/* ========== 响应式：小屏 <768px ========== */
@media (max-width: 767px) {
    .top-bar {
        padding: 14px 16px;
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
    .logo-section { flex-direction: column; gap: 8px; }
    .logo-img { height: 50px; }
    .school-name h1 { font-size: 20px; letter-spacing: 4px; }
    .school-name h2 { font-size: 14px; }
    .search-box { width: 100%; }
    .search-box input { width: 100%; }
.nav-bar { padding: 0 !important; overflow: visible; }
.nav-menu { flex-wrap: wrap; }
.nav-menu li { padding: 0; }
.nav-menu li a { font-size: 15px; }
.nav-menu li a {
    text-decoration: none;
    color: #005aa6;
    font-weight: bold;
    font-size: 16px;
}

    .banner { margin-bottom: 20px; }
    .banner .banner-slides { aspect-ratio: 1890 / 705; }
    .banner-overlay h2 { font-size: 20px; margin-bottom: 4px; }
    .banner-overlay p { font-size: 14px; max-width: 90%; }
    .banner .banner-arrow { width: 30px; height: 44px; font-size: 16px; }
    .banner .banner-dots { bottom: 8px; gap: 6px; }
    .banner .banner-dot { width: 8px; height: 8px; border-width: 1.5px; }

    .footer { padding: 25px 16px; }
    .footer h3 { font-size: 18px; }
    .contact-info p { font-size: 13px; }
    .copyright { font-size: 12px; }
}