/* ========================================
   全局基础样式
   ======================================== */
body {
    max-width: 100%;
    min-height: 100vh;
    font-family: "Times New Roman", Times, serif;
    margin: 0;
    padding: 0;
    color: #333;
    overflow-x: hidden;
    background-color: #f8f9fa;
}

/* ========================================
   顶部导航栏
   ======================================== */
.top-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: linear-gradient(to bottom, rgba(39,59,146,0.9), rgba(39,59,146,0.6), rgba(39,59,146,0));
    padding: 10px 5%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    color: white;
    min-height: 120px;
    box-sizing: border-box;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo img {
    width: 65px;
    height: 65px;
    margin-top: 5px;
}

.school-name h1, .school-name h2 {
    margin: 0;
    color: white;
}

/* ========================================
   主导航菜单
   ======================================== */
.main-nav {
    background-color: #273e93;
    padding: 0 5%;
    box-sizing: border-box;
    width: 100%;
    display: flex;
    justify-content: center;
}

.nav-menu {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    justify-content: center;
    gap: 2px;
}

.nav-menu > li {
    position: relative;
}

.nav-menu > li::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 20px;
    background-color: rgba(255, 255, 255, 0.3);
}

.nav-menu > li:last-child::after {
    display: none;
}

.nav-menu > li > a {
    color: white;
    text-decoration: none;
    padding: 15px 70px;
    display: block;
}

.nav-menu > li:hover > a {
    background-color: rgba(255, 255, 255, 0.1);
}

/* 子菜单 */
.sub-menu {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 200px;
    z-index: 1000;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.nav-menu > li:hover .sub-menu {
    display: block;
}

.sub-menu a {
    color: #333;
    padding: 10px 15px;
    display: block;
}

.sub-menu a:hover {
    background-color: #f5f5f5;
}

/* ========================================
   小屏幕响应式导航（汉堡菜单）
   ======================================== */
.nav-toggle {
    display: none;
    color: white;
    cursor: pointer;
    background: none;
    border: none;
    position: relative;
    width: 50px;
    height: 50px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.nav-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: white;
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(10px, 10px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

@media screen and (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        flex-direction: column;
        max-height: 0;
        overflow: hidden;
        width: 100%;
        background: linear-gradient(180deg, #273e93 0%, #1e2d6f 100%);
        transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    }

    .nav-menu.show {
        max-height: 1000px;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu li a {
        padding: 14px 20px;
        border-top: 1px solid rgba(255,255,255,0.1);
        transition: all 0.2s ease;
        position: relative;
    }

    .nav-menu li a::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 4px;
        background-color: #60a5fa;
        transform: scaleY(0);
        transition: transform 0.2s ease;
    }

    .nav-menu li a:hover {
        background-color: rgba(96, 165, 250, 0.1);
        padding-left: 24px;
    }

    .nav-menu li a:hover::before {
        transform: scaleY(1);
    }

    .sub-menu {
        position: relative;
        background-color: rgba(0, 0, 0, 0.1);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .nav-menu li:hover .sub-menu,
    .nav-menu li.active .sub-menu {
        max-height: 500px;
    }

    .sub-menu li {
        margin: 0;
    }

    .sub-menu a {
        color: #e5e7eb;
        padding-left: 50px;
        font-size: 14px;
        display: block;
        padding: 10px 15px 10px 50px;
    }

    .sub-menu a::before {
        content: '•';
        position: absolute;
        left: 30px;
        color: #60a5fa;
        font-weight: bold;
        font-size: 16px;
    }

    .sub-menu a:hover {
        background-color: rgba(96, 165, 250, 0.15);
        padding-left: 54px;
    }
}

/* ========================================
   轮播图样式
   ======================================== */
.slider {
    width: 100%;
    box-sizing: border-box;
    position: relative;
    height: 400px;
    overflow: hidden;
}

.slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.slide {
    min-width: 100%;
}

.slide-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

/* 轮播图箭头 */
.slider-arrow {
    position: absolute;
    bottom: 20px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    font-size: 24px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    cursor: pointer;
    z-index: 1010;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.slider-arrow:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.15);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.slider-arrow.prev {
    right: 70px;
}

.slider-arrow.next {
    right: 10px;
}

/* 轮播图指示条 */
.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 20px;
    display: flex;
    gap: 8px;
    z-index: 1009;
}

.slider-dot {
    height: 6px;
    border-radius: 3px;
    background-color: rgba(255, 255, 255, 0.3);
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex: 1;
    min-width: 20px;
    backdrop-filter: blur(8px);
}

.slider-dot:hover {
    background-color: rgba(255, 255, 255, 0.5);
    min-width: 28px;
}

.slider-dot.active {
    background: linear-gradient(90deg, rgba(96, 165, 250, 0.95), rgba(147, 197, 253, 0.95));
    min-width: 50px;
    box-shadow: 0 4px 12px rgba(96, 165, 250, 0.4);
}

/* ========================================
   页面内容区域 - 优化版本
   ======================================== */
.content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 1600px;
    margin: 40px auto;
    padding: 0 40px;
    gap: 30px;
    box-sizing: border-box;
    width: 100%;
}

.main-content,
.sidebar {
    min-width: 0;
}

/* 新闻与公告区域 */
.news-section,
.info-section {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: box-shadow 0.3s ease;
}

.news-section:hover,
.info-section:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.section-title {
    font-size: 20px;
    color: #273e93;
    margin: 0 0 20px 0;
    padding-bottom: 12px;
    border-bottom: 3px solid #273e93;
    font-weight: 600;
}

/* 新闻与公告列表 */
.news-list, .info-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.news-list li, .info-list li {
    border-bottom: 1px solid #e5e7eb;
    padding: 14px 0;
    word-break: break-word;
    overflow-wrap: break-word;
    transition: all 0.2s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.news-list li:last-child,
.info-list li:last-child {
    border-bottom: none;
}

.news-list a, .info-list a {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
    color: #333;
    transition: all 0.2s ease;
    flex: 1;
    min-width: 0;
    gap: 15px;
}

.news-list a:hover, .info-list a:hover {
    color: #273e93;
    padding-left: 8px;
}

/* ========================================
   改进的新闻与公告时间样式
   ======================================== */
.news-date, .info-date {
    color: #666;
    font-size: 12px;
    flex-shrink: 0;
    margin-left: auto;

    /* 美化样式 */
    display: inline-block;
    padding: 6px 14px;
    background: linear-gradient(135deg, #f0f4ff 0%, #e8ecff 100%);
    border-radius: 20px;
    border-left: 3px solid #273e93;
    font-weight: 500;
    letter-spacing: 0.3px;
    white-space: nowrap;
}



/* ========================================
   教师风采模块
   ======================================== */
.teachers-showcase {
    max-width: 90%;
    padding: 40px;
    margin: 40px auto;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
    width: calc(100% - 80px);
}

.teachers-showcase h3 {
    text-align: center;
    font-size: 24px;
    margin-bottom: 50px;
    color: #273e93;
    font-weight: 600;
}

/* 教师轮播 */
.teacher-slider {
    align-items: center;
    display: flex;
    gap: 24px;
    flex-wrap: nowrap;
    padding: 0 10px;
    box-sizing: border-box;
    transition: transform 0.5s ease-in-out;
    scroll-behavior: smooth;
    justify-content: center;
}

.teacher-item {
    flex: 0 0 auto;
    text-align: center;
    margin: 0 12px;
}

.teacher-item img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 3px solid #273e93;
    object-fit: cover;
    transition: transform 0.3s, box-shadow 0.3s;
}

.teacher-item img:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(39, 62, 147, 0.3);
}

.teacher-item p {
    margin-top: 10px;
    font-size: 16px;
    font-weight: 500;
    color: #333;
}

/* 教师轮播箭头 */
.teacher-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.9);
    border: 2px solid #273e93;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    transition: background-color 0.3s, transform 0.3s;
    z-index: 10;
    color: #273e93;
}

.teacher-arrow:hover {
    background-color: #273e93;
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.teacher-prev { left: 20px; }
.teacher-next { right: 20px; }

/* ========================================
   页脚
   ======================================== */
footer.components {
    background: #273e93;
    color: #e5e7eb;
    padding: 0;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    padding: 30px 40px;
    max-width: 1500px;
    margin: 0 auto;
}

.footer-section h3 {
    font-size: 1.3rem;
    color: #fff;
    margin-bottom: 15px;
    font-weight: 700;
}

.footer-section h4 {
    font-size: 1rem;
    color: #fff;
    margin-bottom: 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 3px;
    background: #60a5fa;
    border-radius: 2px;
}

/* 学校信息部分 */
.footer-info {
    grid-column: 1 / -1;
}

.footer-info p {
    color: #d1d5db;
    margin: 8px 0;
    line-height: 1.6;
    font-size: 0.95rem;
}

.footer-address {
    color: #9ca3af;
    font-size: 0.9rem;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* 页脚链接列表 */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin: 12px 0;
}

.footer-links a {
    color: #d1d5db;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
}

.footer-links a::before {
    content: '→';
    margin-right: 8px;
    opacity: 0;
    transform: translateX(-5px);
    transition: all 0.3s ease;
    color: #60a5fa;
}

.footer-links a:hover {
    color: #60a5fa;
    padding-left: 0;
}

.footer-links a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

/* 底部版权信息 */
.footer-bottom {
    background: #273e93;
    padding-top: 10px;
    padding-bottom: 50px;
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    color: #9ca3af;
    font-size: 0.9rem;
    letter-spacing: 0.3px;
}

/* ========================================
   响应式样式
   ======================================== */

/* 平板屏幕 */
@media (max-width: 1024px) {
    .content {
        grid-template-columns: 1fr;
        max-width: 100%;
        padding: 0 30px;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
        padding: 40px 30px;
    }

    .footer-info {
        grid-column: 1 / -1;
    }
}

/* 小平板 */
@media (max-width: 768px) {
    .content {
        gap: 20px;
        margin: 30px auto;
        padding: 0 20px;
    }

    .news-section,
    .info-section {
        padding: 20px;
    }

    .section-title {
        font-size: 18px;
        margin-bottom: 15px;
    }

    .news-date, .info-date {
        font-size: 11px;
        padding: 4px 12px;
        margin-top: 6px;
    }

    .teacher-item {
        flex: 0 0 120px;
        margin: 0 5px;
    }

    .teacher-item img {
        width: 100px;
        height: 100px;
        border-width: 2px;
    }

    .teacher-arrow {
        font-size: 20px;
        width: 36px;
        height: 36px;
    }

    .teacher-slider {
        padding: 0 10px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 30px 20px;
    }

    .footer-section h3 {
        font-size: 1.1rem;
    }

    .footer-section h4 {
        font-size: 0.9rem;
    }

    .footer-links a {
        font-size: 0.9rem;
    }

    .footer-bottom {
        padding: 15px 20px;
    }

    .footer-bottom p {
        font-size: 0.85rem;
    }
}

/* 手机屏幕 */
@media (max-width: 480px) {
    .content {
        padding: 0 4%;
        gap: 15px;
        margin: 20px auto;
    }

    .news-section,
    .info-section {
        padding: 15px;
    }

    .section-title {
        font-size: 16px;
        margin-bottom: 12px;
    }

    .news-list li, .info-list li {
        padding: 10px 0;
    }

    .news-date, .info-date {
        font-size: 10px;
        padding: 3px 10px;
        margin-top: 5px;
    }

    .teacher-item {
        flex: 0 0 100px;
        margin: 0 3px;
    }

    .teacher-item img {
        width: 80px;
        height: 80px;
    }

    .teacher-item p {
        font-size: 14px;
    }

    .teacher-arrow {
        font-size: 18px;
        width: 32px;
        height: 32px;
    }

    .teachers-showcase {
        padding: 20px 5%;
        margin: 30px auto;
    }

    .teachers-showcase h3 {
        font-size: 20px;
        margin-bottom: 20px;
    }

    .footer-content {
        padding: 20px 15px;
    }

    .footer-section h3 {
        font-size: 1rem;
    }

    .footer-info p {
        font-size: 0.9rem;
    }

    .footer-links li {
        margin: 10px 0;
    }
}

/* 隐藏轮播图指示条 - 小屏幕 */
@media screen and (max-width: 768px) {
    .slider-dots {
        display: none;
    }
}

@media screen and (max-width: 480px) {
    .slider-dots {
        display: none;
    }
}
