/* ===== 导航栏和页脚样式 ===== */
.navbar-custom {
    background: linear-gradient(to right, rgb(255, 255, 255), #00695c);
    background-size: cover;
    display: flex;
    align-items: center;
    padding: 0 20px;
    font-family: 'Arial', sans-serif;
}

.footer-custom {
    background: linear-gradient(to right, rgb(255, 255, 255), #00695c);
    background-size: cover;
    color: white;
    padding: 30px 0;
    display: flex;
    align-items: center;
    min-height: 120px;
    /* 去除左右内边距 */
    margin: 0;
  }
  
  /* 如果 container 类有左右间距，可以使用 container-fluid 来确保全宽 */
a {
    color: black;
    text-decoration: none; /* 如果不希望链接下划线 */
  }
  


/* ===== 导航链接 ===== */
.navbar-custom .navbar-nav .nav-link {
    color: white;
    font-size: 16px;
}

.navbar-custom .navbar-nav .nav-link:hover {
    color: yellow;
}

.navbar-toggler {
    font-size: 18px;
    padding: 8px 12px;
    /*border-color: #00695c;*/
}

.navbar-toggler-icon {
    background-color: white;
}



/* 响应式调整 */
@media (max-width: 768px) {
    .navbar-custom .navbar-nav .nav-link {
        font-size: 14px;
    }
}

/* ===== 下拉菜单 ===== */
.navbar-nav .dropdown-toggle::after {
    display: none !important;
}

.navbar-nav .dropdown:hover .dropdown-menu {
    display: block;
    margin-top: 0;
}

.navbar-nav .dropdown-menu .dropdown-item:active {
    background-color: #f8f9fa !important;
}

/* ===== 主页/页面公共样式 ===== */
.header-image {
    width: 100%;
    height: auto;
    max-height: 700px;
    object-fit: cover;
    display: block;
}

.content-container {
    max-width: 1500px;
    margin: 40px auto;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #ddd;
    padding-bottom: 10px;
}

.breadcrumb a {
    text-decoration: none;
    color: #007bff;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* ===== 侧边栏 ===== */
.main-content {
    display: flex;
    gap: 30px;
}

.sidebar {
    width: 250px;
    flex-shrink: 0;
}

.sidebar ul {
    list-style: none;
    padding: 0;
}

.sidebar li {
    padding: 10px;
    border-left: 4px solid transparent;
}

.sidebar li a {
    text-decoration: none;
    font-size: 18px;
    color: #333;
    display: block;
    transition: 0.3s;
}

.sidebar li a:hover {
    color: #000;
    border-left-color: #007bff;
}

.article-content {
    flex-grow: 1;
}

/* ===== 学院新闻模块 ===== */
.college-news-module {
    display: grid;
    grid-template-columns: 70% 30%;
    gap: 15px;
    align-items: stretch;
    margin-top: 40px;
    height: 50vh;
}

.news-left {
    display: grid;
    grid-template-columns: 50% 50%;
    gap: 10px;
    align-items: center;
}

.news-right {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.block-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.block-header h3,
.block-header a {
    margin: 0;
    color: #00695c;
    text-decoration: none;
}

hr {
    border-color: #00695c;
}

.news-image img {
    width: 100%;
    height: auto;
    display: block;
}

.news-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.news-list li {
    margin-bottom: 0px;
    
    padding-bottom: 0px;
}

/* 固定新闻标题高度 */
.news-title {
    font-weight: bold;
    color: #000;
    height: 30px;
    line-height: 30px;
    overflow: hidden;
}

.news-time {
    color: #00695c;
    font-size: 0.9em;
   
}

/* ===== 公告列表 ===== */
.announcement-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.announcement-list li {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    border-bottom: 1px solid #00695c;
    padding-bottom: 10px;
}

.announcement-time {
    width: 60px;
    text-align: center;
    color: #00695c;
    border: 1px solid #00695c;
    border-radius: 5px;
    padding: 5px;
}

.announcement-content {
    margin-left: 10px;
}

.announcement-content a {
    color: #000000;
    text-decoration: none;
}

/* ===== 双模块滑入动画 ===== */
.dual-section, .dual-section-up {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 15px;
    margin-top: 40px;
    overflow: hidden;
}

/* 左右滑入 */
.section-left, .section-right {
    flex: 1;
    background: #f8f8f8;
    padding: 20px;
    border: 1px solid #ddd;
    transform: translateX(-100%);
    opacity: 0;
    transition: transform 1s ease-out, opacity 1s ease-out;
}

.section-right {
    transform: translateX(100%);
}

.dual-section.visible .section-left,
.dual-section.visible .section-right {
    transform: translateX(0);
    opacity: 1;
}

/* 下向上滑入 */
.section-up-left, .section-up-right {
    flex: 1;
    background: #f8f8f8;
    padding: 20px;
    border: 1px solid #ddd;
    transform: translateY(100%);
    opacity: 0;
    transition: transform 1s ease-out, opacity 1s ease-out;
}


.dual-section-up.visible-up .section-up-left,
.dual-section-up.visible-up .section-up-right {
    transform: translateY(0);
    opacity: 1;
}

/* ===== 文章模块 ===== */
.article-block {
    display: grid;
    grid-template-columns: 70% 30%;
    gap: 15px;
    align-items: stretch;
    margin-top: 40px;
}

.article-titles ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.article-titles li {
    height: 60px;
    line-height: 60px;
    border-bottom: 1px solid #ddd;
    padding-left: 10px;
    font-size: 18px;
    color: #333;
}

.article-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* ===== 基础样式 ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
}

.mt-4 {
    margin-top: 1.5rem;
}

/* ===== 模块通用样式 ===== */
.module {
    margin-top: 20px;
}

.module-title {
    color: #00695c;
    font-size: 1.5rem;
    margin: 0;
}

.module-more {
    color: #00695c;
    text-decoration: none;
    font-size: 1rem;
}