* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft YaHei", "微软雅黑", Arial, sans-serif;}

body {
    color: #333;
    line-height: 1.6;}

a {
    text-decoration: none;}

li {
    list-style: none;}


/* 顶部横幅 */
.top-banner {
    color: white;
    padding: 8px 0;
    background: url(../images/top-banner.png) no-repeat;
    background-size: 100% 100%;
    height: 180px;
    min-width: 1400px;}

.top-banner-container {
    /* max-width: 1400px; */
    width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;}

.school-info {
    display: flex;
    align-items: center;
    gap: 20px;}

.logo {}

.logo a {
    display: flex;
    align-items: center;
    font-size: 35px;
    color: #fff;
    font-family: 宋体;
    font-weight: bold;}

.logo img {
    display: block;
    height: 85px;}

.search-box {
    display: flex;
    align-items: center;}

.search-box input {
    padding: 8px 12px;
    border: none;
    border-radius: 4px 0 0 4px;
    width: 250px;}

.search-box input:focus {
    outline: none;}

.search-box button {
    background-color: #a30000;
    color: white;
    font-size: 14px;
    border: none;
    padding: 8px 15px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;}


/* ============ 桌面端导航样式 ============ */
.navbar {
    min-width: 1400px;
    background-color: #a30000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);}

.nav-container {
    /* max-width: 1400px; */
    width: 1400px;
    margin: 0 auto;}

.desktop-nav {
    display: flex;
    list-style: none;
    justify-content: space-between;}

.desktop-nav li {
    position: relative;}

.desktop-nav>li>a {
    display: block;
    padding: 15px 20px;
    color: white;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    transition: background-color 0.3s;}

.desktop-nav a:hover,
.desktop-nav a.active {
    background-color: #8a0000;}

/* 桌面端下拉菜单 */
.desktop-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
    border-radius: 0 0 4px 4px;
    overflow: hidden;}

.desktop-nav li:hover .desktop-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);}

.desktop-dropdown li {
    width: 100%;}

.desktop-dropdown a {
    display: block;
    padding: 12px 20px;
    color: #333;
    font-size: 16px;
    transition: all 0.3s;
    border-bottom: 1px solid #f0f0f0;}

.desktop-dropdown a:hover {
    background-color: #f5f5f5;
    color: #a30000;}

/* ============ 移动端导航样式 ============ */
.mobile-nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;}

.mobile-nav-container {
    display: none;
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100%;
    background-color: white;
    z-index: 1000;
    transition: right 0.3s ease;
    overflow-y: auto;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2);}

.mobile-nav-container.active {
    right: 0;}

.mobile-nav-header {
    background-color: #a30000;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;}

.mobile-nav-title {
    color: white;
    font-size: 18px;
    font-weight: bold;}

.mobile-close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    line-height: 1;}

.mobile-nav-menu {
    list-style: none;}

.mobile-nav-item {
    border-bottom: 1px solid #eee;}

.mobile-nav-item > a {
    display: block;
    padding: 15px 20px;
    color: #333;
    font-size: 16px;
    position: relative;}

.mobile-nav-item > a.active {
    background-color: #f9f9f9;
    color: #a30000;}

/* 移动端二级菜单箭头 */
.mobile-nav-item.has-children > a::after {
    content: ">";
    position: absolute;
    right: 20px;
    /* transform: rotate(90deg); */
    transition: transform 0.3s ease;}

.mobile-nav-item.has-children.open > a::after {
    transform: rotate(90deg);}

/* 移动端二级菜单 */
.mobile-submenu {
    display: none;
    background-color: #f9f9f9;}

.mobile-nav-item.open .mobile-submenu {
    display: block;}

.mobile-submenu li a {
    display: block;
    padding: 12px 20px 12px 40px;
    color: #666;
    font-size: 15px;
    border-top: 1px solid #eee;}

.mobile-submenu li a:hover,
.mobile-submenu li a.active {
    background-color: #f0f0f0;
    color: #a30000;}

/* 汉堡菜单按钮 */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 10px 15px;
    position: absolute;
    right: 10px;
    top: 0;
    z-index: 10;}

/* 主要内容区域 */
.main-container {
    /* max-width: 1400px; */
    width: 1400px;
    margin: 20px auto;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;}

/* 左侧轮播 */
.work-dynamics {
    background-color: white;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);}

.slick-slider {
    height: 100%;}

.slick-list {
    height: 100%;}

.slick-track {
    height: 100%;}

.slider-item {
    position: relative;
    height: 100%;}

.slider-item a {
    height: 100%;}

.item-pic {
    width: 100%;
    height: 100%;
    position: absolute;
    bottom: 0;
    left: 0;}

.item-pic img {
    width: 100%;
    height: 100%;
    object-fit: cover;}

.item-tit {
    margin-top: 15px;
    text-align: left;
    font-size: 20px;
    width: 100%;
    height: 45px;
    line-height: 45px;
    background-color: #00000060;
    position: absolute;
    bottom: 0;
    left: 0;
    color: #fff;
    padding-left: 15px;}

.slick-dots {
    width: auto;
    height: 45px;
    right: 15px;
    display: flex;
    align-items: center;}

.slick-dots li {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: transparent;
    border: 2px solid#fff;
    box-sizing: border-box;}

.slick-dots li.slick-active {
    background: #fff;}

.slick-arrow {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    /* background: rgba(128, 0, 128, .5) url(./ba-left.png) no-repeat; */
    background-size: 100% 100%;}

.slick-arrow:hover {
    background-color: rgba(128, 0, 128, 1);}

.slick-arrow.slick-prev {
    left: -50px;}

.slick-arrow.slick-next {
    right: -50px;
    /* background-image: url(./ba-right.png); */
}

/* 右侧工作动态 */
.work-board {
    background-color: white;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);}

.header-banner {
    background-color: #a30000;
    color: white;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;}

.banner-title {
    font-size: 18px;
    font-weight: bold;
    letter-spacing: 1px;}

.more-link {
    font-size: 15px;
    color: white;
    text-decoration: none;
    transition: opacity 0.2s;}

.more-link:hover {
    opacity: 0.85;}

.more-link::after {
    content: " >";
    font-weight: bold;}

/* 动态列表 */
.dynamics-list {
    list-style: none;
    padding: 0;}

.dynamic-item {
    display: flex;
    padding: 20px 24px;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s;}

.dynamic-item:last-child {
    border-bottom: none;}

.dynamic-item:hover {
    background-color: #f9f9f9;}

/* 左侧数字日期区域 */
.date-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-right: 20px;
    min-width: 80px;}

.day-number {
    color: #c20c0c;
    font-size: 28px;
    font-weight: 700;
    line-height: 1;}

.month-year {
    color: #666;
    font-size: 13px;
    margin-top: 4px;}

/* 右侧内容区域 */
.content-section {
    flex: 1;
    display: flex;
    align-items: center;}

.content-text {
    font-size: 16px;
    color: #333;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;}

.dynamic-item:hover .content-text {
    color: #c20c0c;}


/* 底部区域 */
.bottom-sections {
    /* max-width: 1400px; */
    width: 1400px;
    margin: 30px auto 20px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;}

.bottom-section {
    background-color: white;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);}

.bottom-section .section-header {
    background-color: #c00;
    color: white;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;}

.bottom-section .section-header h2 {
    font-size: 18px;
    font-weight: normal;}

/* 新增：底部新闻列表样式 */
.bottom-section .news-list {
    padding: 20px;}

.news-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px dashed #eee;}

.news-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;}

.news-item:hover {
    /* background-color: #f9f9f9; */}

.news-title {
    flex: 1;
    font-size: 16px;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-right: 10px;
    transition: color 0.2s;}

.news-title:hover {
    color: #a30000;}

.news-date {
    font-size: 14px;
    color: #999;
    white-space: nowrap;}


/* 页脚 */
footer {
    min-width: 1400px;
    background-color: #a30000;
    color: #fff;
    margin-top: 40px;
    padding-top: 15px;}

.footer-container {
    /* max-width: 1400px; */
    width: 1400px;
    margin: 0 auto;
    padding: 0 0 15px;}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 45px;}

.contact-info p {
    font-size: 16px;}

.copyright {
    background-color: #8a0000;
    text-align: center;
    padding: 15px;
    font-size: 16px;
    color: #fff;}