:root {
    --fudan-red: #357879;
    --fudan-dark-red: #285a5b;
}

body {
    font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
}


/* 顶部导航样式 */
.top-navbar {
    background-color: var(--fudan-red);
    color: white;
    padding: 10px 0;
}

.fudan-logo-img {
    height: 100px;
    width: auto;

}
.lang-links a {
    color: white;
    text-decoration: none;
    margin: 0 5px;
    font-size: 14px;
}

.lang-links a:hover {
    text-decoration: underline;
}

/* 主导航样式 */
.main-navbar {
    background: linear-gradient(135deg, var(--fudan-dark-red) 0%, var(--fudan-red) 100%);
    padding: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    position: relative;
    z-index: 1000;
}

.navbar-toggler {
    border: none;
    padding: 8px 12px;
    background-color: rgba(255,255,255,0.1);
    border-radius: 6px;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.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, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    width: 24px;
    height: 24px;
}

.main-navbar .nav-link {
    color: white;
    padding: 16px 20px;
    font-size: 18px;
    font-weight: 600;
    position: relative;
    transition: all 0.3s ease;
    border-radius: 0;
}

.main-navbar .nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #FFD700, #FFA500);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.main-navbar .nav-link:hover {
    background-color: rgba(255,255,255,0.15);
    color: white;
    transform: translateY(-2px);
}

.main-navbar .nav-link:hover::before {
    width: 80%;
}

/* 二级导航样式 */
.dropdown-menu {
    background: linear-gradient(135deg, rgba(53, 120, 121, 0.95) 0%, rgba(40, 90, 91, 0.95) 100%);
    border: none;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.25);
    margin-top: 0;
    padding: 8px 0;
    backdrop-filter: blur(10px);
}

.dropdown-item {
    color: white;
    padding: 10px 20px;
    font-size: 14px;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.dropdown-item:hover {
    background-color: rgba(255,255,255,0.15);
    color: white;
    border-left-color: #FFD700;
    padding-left: 25px;
}

.dropdown-divider {
    border-color: rgba(255,255,255,0.2);
    margin: 8px 0;
}


/* 桌面端：鼠标悬停显示下拉菜单，并保持一级导航样式不变 */
@media (min-width: 992px) {
    .main-navbar .nav-item.dropdown:hover > .dropdown-menu {
        display: block;
    }
    /* 鼠标移入下拉菜单时，一级链接保持悬停样式 */
    .main-navbar .nav-item.dropdown:hover > .nav-link {
        background-color: rgba(255,255,255,0.15);
        color: white !important;
        transform: translateY(-2px);
    }
    .main-navbar .nav-item.dropdown:hover > .nav-link::before {
        width: 80%;
    }
}

/* Bootstrap .show 状态下防止一级链接变色 */
.main-navbar .nav-link.show,
.main-navbar .nav-link:focus-visible {
    color: white !important;
}


/* 特色菜单项 */
.nav-item.special .nav-link {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: var(--fudan-dark-red);
    font-weight: 600;
    border-radius: 25px;
    margin: 8px 5px;
    padding: 12px 18px;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.nav-item.special .nav-link:hover {
    background: linear-gradient(135deg, #FFA500, #FFD700);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}

.nav-item.special .nav-link::before {
    display: none;
}

/* 轮播图样式 */
.hero-section {
    position: relative;
    height: 700px;
    overflow: hidden;
}

.carousel-item {
    height: 700px;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-caption {
    background: none;
    padding: 20px;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1000px;
    text-align: center;
}

.carousel-caption .banner-title {
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    margin-bottom: 20px;
    font-size: 2.2rem;
    font-weight: 600;
    line-height: 1.2;
}

.carousel-caption .simple-text {
    background: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
}

.carousel-caption .detailed-content {
    background: rgba(0,0,0,0.7);
    padding: 25px;
    border-radius: 15px;
    margin-top: 20px;
    backdrop-filter: blur(5px);
}
.top-navbar .col-md-4 {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    position: relative;
    gap: 12px;
}
.search-icon {
    width: 20px;
    height: 20px;
    cursor: pointer;
    opacity: 0.9;
    transition: opacity 0.3s ease, transform 0.3s ease;
    flex-shrink: 0;
}

.search-icon:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* 搜索框样式 */
.search-box {
    position: absolute;
    top: 100%;
    right: 0;
    width: 350px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    padding: 20px;
    display: none;
    z-index: 1001;
    border: 1px solid #e0e0e0;
}

.search-box.show {
    display: block;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.search-input-container {
    display: flex;
    gap: 10px;
    align-items: center;
}

.search-input {
    flex: 1;
    padding: 10px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s ease;
}

.search-input:focus {
    border-color: var(--fudan-red);
}

.search-btn {
    background: linear-gradient(135deg, var(--fudan-red), var(--fudan-dark-red));
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-btn:hover {
    background: linear-gradient(135deg, var(--fudan-dark-red), var(--fudan-red));
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(53, 120, 121, 0.3);
}

.search-close {
    background: #f8f9fa;
    color: #666;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.search-close:hover {
    background: #e9ecef;
    color: #333;
}

/* 响应式搜索框 */
@media (max-width: 768px) {
    .search-box {
        width: calc(100vw - 40px);
        max-width: 320px;
        right: 20px;
        left: auto;
        padding: 15px;
    }
    
    .search-input {
        font-size: 13px;
        padding: 8px 12px;
    }
    
    .search-btn {
        padding: 8px 15px;
        font-size: 13px;
    }
    
    .search-input-container {
        flex-direction: column;
        gap: 12px;
    }
    
    .search-input {
        width: 100%;
    }
    
    .search-btn {
        width: 100%;
        justify-self: stretch;
    }
}

@media (max-width: 480px) {
    .search-box {
        width: calc(100vw - 30px);
        right: 15px;
        padding: 12px;
    }
    
    .search-input-container {
        gap: 10px;
    }
    
    .search-input {
        padding: 10px 12px;
    }
    
    .search-btn {
        padding: 10px 15px;
    }
}

@media (max-width: 360px) {
    .search-box {
        width: calc(100vw - 20px);
        right: 10px;
    }
}

/* PC端导航居中对齐 */
@media (min-width: 992px) {
    /* 栏目较多，加宽主菜单容器，避免文字换行 */
    .main-navbar .container {
        max-width: 1500px;
    }

    .main-navbar .navbar-nav {
        justify-content: center;
        width: 100%;
        flex-wrap: nowrap;
    }

    .main-navbar .nav-item {
        margin: 0 1px;
    }

    /* 收紧每项的字号与内边距，让 12 个栏目排在一行 */
    .main-navbar .nav-link {
        padding: 16px 12px;
        font-size: 16px;
        white-space: nowrap;
    }
}

/* 大屏可适当再宽松一些 */
@media (min-width: 1400px) {
    .main-navbar .nav-link {
        padding: 16px 15px;
        font-size: 17px;
    }
}

@media (max-width: 992px) {
    .main-navbar .navbar-collapse {
        background: rgba(40, 90, 91, 0.95);
        margin-top: 10px;
        border-radius: 8px;
        padding: 10px;
        backdrop-filter: blur(10px);
    }
    
    .main-navbar .nav-link {
        border-radius: 5px;
        margin: 2px 0;
    }
    
    .main-navbar .navbar-nav {
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .search-icon{
    }
    .fudan-logo-img {
        height: 45px;
    }
    
    .lang-links {
        font-size: 12px;
    }
    
    .main-navbar .nav-link {
        padding: 12px 15px;
        font-size: 14px;
    }
    
    .hero-section {
        height: 260px;
    }
    
    .carousel-item {
        height: 260px;
    }
    
    .carousel-caption .banner-title {
        font-size: 1.8rem;
    }
    
    .carousel-caption {
        bottom: 15px;
        width: 95%;
    }
    
    .dropdown-menu {
        position: static !important;
        float: none;
        width: 100%;
        margin-top: 5px;
        border-radius: 5px;
    }
}

@media (max-width: 576px) {
    .carousel-caption .banner-title {
        font-size: 1.4rem;
    }
    
    .fudan-logo-img {
        height: 40px;
    }
    
    .carousel-caption .detailed-content {
        padding: 15px;
        font-size: 14px;
    }
    
    .main-navbar .nav-link {
        text-align: center;
    }
}

/* 学院新闻板块样式 */
.news-section {
    background: #fff;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--fudan-dark-red);
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.title-divider {
    width: 48px;
    height: 3px;
    background: var(--fudan-red);
    margin: 0 auto;
    border-radius: 2px;
}

/* 主要新闻卡片 */
.main-news-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    border: 1px solid #eee;
}

.main-news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.12);
}

.news-image-container {
    position: relative;
    height: 320px;
    overflow: hidden;
}

.main-news-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.main-news-card:hover .main-news-image {
    transform: scale(1.04);
}

/* 学院新闻轮播 - 文字叠加在图片上 */
#newsCarousel.main-news-carousel {
    height: 480px;
}

.main-news-carousel .carousel-inner,
.main-news-carousel .carousel-item {
    height: 100%;
}

.main-news-carousel .carousel-item {
    border-radius: 10px;
    overflow: hidden;
}

/* 卡片：改为相对定位容器，不再用 flex 上下布局 */
.main-news-carousel .main-news-card {
    position: relative;
    height: 100%;
    display: block;
    border-radius: 10px;
    overflow: hidden;
    border: none;
    box-shadow: none;
}

/* 图片区域：绝对定位填满整个卡片 */
.main-news-carousel .news-image-container {
    position: absolute;
    inset: 0;
    height: 100%;
}

/* 图片上方叠加由下至上的渐变遮罩 */
.main-news-carousel .news-image-container::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
        rgba(0,0,0,0) 25%,
        rgba(0,0,0,0.55) 62%,
        rgba(0,0,0,0.88) 100%
    );
    z-index: 1;
}

/* 日期徽章在图片层，叠层遮罩后隐藏 */
.main-news-carousel .news-date-badge {
    display: none;
}

/* 文字区：绝对定位在底部，叠加在图片上 */
.main-news-carousel .main-news-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: none;
    padding: 26px 28px 56px;
    z-index: 2;
    flex: unset;
}

.main-news-carousel .main-news-title {
    font-size: 1.45rem;
    font-weight: 700;
    color: white;
    margin-bottom: 10px;
    line-height: 1.4;
    text-shadow: 0 1px 4px rgba(0,0,0,0.35);
}

.main-news-carousel .main-news-desc {
    color: rgba(255,255,255,0.82);
    font-size: 0.92rem;
    line-height: 1.65;
    margin-bottom: 0;
    text-shadow: 0 1px 3px rgba(0,0,0,0.25);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.main-news-carousel .carousel-indicators {
    margin-bottom: 1rem;
    margin-right: 28px;
    margin-left: 28px;
    justify-content: flex-start;
    z-index: 6;
}

/* 指示器：短横线风格 */
.main-news-carousel .carousel-indicators [data-bs-target] {
    width: 22px;
    height: 3px;
    border-radius: 2px;
    border: none;
    background-color: #fff;
    opacity: 0.35;
    transition: width 0.3s ease, opacity 0.3s ease;
}

.main-news-carousel .carousel-indicators .active {
    opacity: 1;
    width: 34px;
}

/* 日期徽章改为图片底部渐变叠层 */
.news-date-badge {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 28px 18px 12px;
    background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, transparent 100%);
    display: flex;
    align-items: flex-end;
    gap: 6px;
}

.date-day {
    font-size: 26px;
    font-weight: 800;
    line-height: 1;
    color: white;
}

.date-month {
    font-size: 12px;
    color: rgba(255,255,255,0.85);
    padding-bottom: 2px;
}

.main-news-content {
    padding: 22px 22px 20px;
}

.main-news-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 10px;
    line-height: 1.45;
}

.main-news-desc {
    color: #777;
    font-size: 0.93rem;
    margin-bottom: 0;
    line-height: 1.7;
}

/* 右侧新闻列表 */
.news-list {
    background: white;
    border-radius: 8px;
    padding: 20px 18px;
    box-shadow: none;
    border: 1px solid #e8e8e8;
    height: 480px !important;
    overflow: hidden;
}



.news-list-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--fudan-dark-red);
    letter-spacing: 0.5px;
}

.more-link {
    color: #aaa;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: color 0.2s ease;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 1px;
}

.more-link:hover {
    color: var(--fudan-red);
    border-bottom-color: var(--fudan-red);
    text-decoration: none;
}

/* 新闻列表项：均分高度填满480px */
.news-item {
    display: flex;
    align-items: center;
    padding: 0 10px 0 12px;
    border-bottom: 1px solid #f2f2f2;
    transition: all 0.2s ease;
    cursor: pointer;
    border-radius: 0;
    margin-bottom: 0;
    border-left: 2px solid transparent;
    flex: 1;
}

.news-item:hover {
    background: #f5fafa;
    color: inherit;
    box-shadow: none;
    transform: none;
    border-left-color: var(--fudan-red);
    padding-left: 16px;
}



.news-bullet {
    width: 5px;
    height: 5px;
    background: #d0d0d0;
    border-radius: 50%;
    margin-top: 0;
    margin-right: 12px;
    flex-shrink: 0;
    transition: background 0.2s ease;
}

.news-item:hover .news-bullet {
    background: var(--fudan-red);
    transform: none;
}

.news-content {
    flex: 1;
    min-width: 0;
}

.news-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #2a2a2a;
    margin-bottom: 5px;
    line-height: 1.55;
    transition: color 0.2s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-item:hover .news-title {
    color: var(--fudan-red);
}

.news-date {
    font-size: 11px;
    color: #c0c0c0;
    font-weight: 400;
    transition: color 0.2s ease;
    letter-spacing: 0.3px;
}

.news-item:hover .news-date {
    color: #999;
}

/* 特色新闻卡片 */
.featured-news-card {
    background: linear-gradient(135deg, var(--fudan-red), var(--fudan-dark-red));
    color: white;
    border-radius: 8px;
    padding: 22px;
    display: flex;
    align-items: center;
    box-shadow: 0 6px 20px rgba(53, 120, 121, 0.25);
    transition: transform 0.3s ease;
}

.featured-news-card:hover {
    transform: translateY(-3px);
}

.featured-news-number {
    font-size: 3rem;
    font-weight: 700;
    margin-right: 20px;
    opacity: 0.8;
    line-height: 1;
}

.featured-news-content { flex: 1; }
.featured-date { font-size: 14px; opacity: 0.8; margin-bottom: 8px; }
.featured-title { font-size: 1.05rem; font-weight: 600; line-height: 1.35; margin: 0; }

@media (max-width: 768px) {
    .section-title { font-size: 1.7rem; }
    .main-news-content { padding: 16px; }
    .main-news-title { font-size: 1.05rem; }
    .main-news-desc { font-size: 0.86rem; }
    .news-list { padding: 14px; height: auto !important; overflow: visible; }
    .news-item { flex: unset; align-items: flex-start; padding: 12px 10px; }
    .news-image-container { height: 240px; }
    .featured-news-number { font-size: 2.2rem; margin-right: 14px; }
    #newsCarousel.main-news-carousel { height: 340px; }
    .main-news-carousel .main-news-content { padding: 18px 18px 50px; }
}

/* 通知公告板块样式 */
.notice-section {
    background: #f4f7f4;
}

.notice-container {
    border-radius: 8px;
}

/* 通知项：左侧彩色竖条 + hover 上浮阴影，去掉整体翻转为绿底 */
.notice-item {
    display: flex;
    align-items: center;
    padding: 18px 20px;
    background: white;
    border-radius: 8px;
    box-shadow: none;
    transition: all 0.25s ease;
    cursor: pointer;
    border: 1px solid #e8e8e8;
    border-left: 3px solid var(--fudan-red);
    height: 100%;
}

.notice-item:hover {
    background: white;
    color: inherit;
    box-shadow: 0 6px 22px rgba(53, 120, 121, 0.13);
    transform: translateY(-3px);
    border-color: var(--fudan-red);
}

/* 日期框：悬停时变为主题色背景 */
.notice-date-box {
    border-radius: 6px;
    padding: 10px 14px;
    text-align: center;
    margin-right: 16px;
    min-width: 68px;
    background: #eef4f4;
    transition: all 0.25s ease;
    flex-shrink: 0;
}

.notice-item:hover .notice-date-box {
    background: var(--fudan-red);
}

.notice-day {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--fudan-dark-red);
    line-height: 1;
    margin-bottom: 3px;
    transition: color 0.25s ease;
}

.notice-item:hover .notice-day {
    color: white;
}

.notice-month {
    font-size: 0.75rem;
    color: #888;
    font-weight: 500;
    letter-spacing: 0.3px;
    transition: color 0.25s ease;
}

.notice-item:hover .notice-month {
    color: rgba(255,255,255,0.85);
}

.notice-content {
    flex: 1;
    min-width: 0;
}

.notice-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #2a2a2a;
    margin: 0;
    line-height: 1.55;
    transition: color 0.25s ease;
}

.notice-item:hover .notice-title {
    color: var(--fudan-dark-red);
}

@media (max-width: 768px) {
    .notice-item {
        padding: 14px;
        flex-direction: column;
        text-align: center;
        border-left: 1px solid var(--fudan-red);
        border-top: 3px solid var(--fudan-red);
    }
    .notice-date-box {
        margin-right: 0;
        margin-bottom: 10px;
        min-width: auto;
        width: 80px;
    }
    .notice-day { font-size: 1.5rem; }
    .notice-title { font-size: 0.88rem; }
}

@media (max-width: 576px) {
    .notice-item { margin-bottom: 12px; }
}

/* 党群工作和教学科研板块样式 */
.dual-section {
    background: #f0f4f0;
}

.section-card {
    background: white;
    border-radius: 8px;
    padding: 26px;
    box-shadow: none;
    border: 1px solid #e4ebe4;
    transition: box-shadow 0.25s ease;
}

.section-card:hover {
    transform: none;
    box-shadow: 0 6px 24px rgba(0,0,0,0.07);
}

/* 卡片标题栏：底部边框改为主题色实线，更醒目 */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--fudan-red);
}

.section-card-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--fudan-dark-red);
    margin: 0;
}

/* 党群/科研列表项：左侧竖线悬停，去掉整体变绿 */
.party-work-item {
    padding: 14px 0;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.22s ease;
    cursor: pointer;
    border-left: 2px solid transparent;
    margin-left: 0;
    padding-left: 0;
}

.party-work-item:hover {
    background: none;
    color: inherit;
    padding: 14px 0 14px 10px;
    box-shadow: none;
    transform: none;
    border-left-color: var(--fudan-red);
    margin-left: 0;
}


.party-work-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #2a2a2a;
    margin-bottom: 5px;
    line-height: 1.55;
    transition: color 0.22s ease;
}

.party-work-item:hover .party-work-title {
    color: var(--fudan-dark-red);
}

.party-work-meta {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-top: 4px;
}

.party-work-date {
    font-size: 11px;
    color: #c0c0c0;
    transition: color 0.22s ease;
    letter-spacing: 0.3px;
}

.party-work-item:hover .party-work-date {
    color: #888;
}

.party-work-category {
    background: #eef4f4;
    color: var(--fudan-dark-red);
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    transition: all 0.22s ease;
}

.party-work-item:hover .party-work-category {
    background: var(--fudan-red);
    color: white;
}

/* 教学科研样式 */
.research-item {
    display: flex;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.22s ease;
    cursor: pointer;
    border-left: 2px solid transparent;
}

.research-item:hover {
    background: none;
    color: inherit;
    padding: 14px 0 14px 10px;
    box-shadow: none;
    transform: none;
    border-left-color: var(--fudan-red);
}


.research-image {
    width: 72px;
    height: 54px;
    border-radius: 6px;
    overflow: hidden;
    margin-right: 14px;
    flex-shrink: 0;
}

.research-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.research-item:hover .research-img {
    transform: scale(1.06);
}

.research-content { flex: 1; min-width: 0; }

.research-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #2a2a2a;
    margin-bottom: 6px;
    line-height: 1.5;
    transition: color 0.22s ease;
}

.research-item:hover .research-title {
    color: var(--fudan-dark-red);
}

.research-meta { display: flex; justify-content: space-between; align-items: center; }

.research-date {
    font-size: 11px;
    color: #c0c0c0;
    transition: color 0.22s ease;
}

.research-item:hover .research-date { color: #888; }

.research-category {
    background: #eef4f4;
    color: var(--fudan-dark-red);
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    transition: all 0.22s ease;
}

.research-item:hover .research-category {
    background: var(--fudan-red);
    color: white;
}

@media (max-width: 768px) {
    .section-card { padding: 18px; }
    .section-header { flex-direction: column; align-items: flex-start; gap: 8px; }
    .research-image { width: 58px; height: 44px; }
    .research-title, .party-work-title { font-size: 0.88rem; }
}

@media (max-width: 576px) {
    .section-card-title { font-size: 1.15rem; }
    .party-work-meta, .research-meta { flex-direction: column; align-items: flex-start; gap: 4px; }
}

/* 学术公告板块样式 */
.academic-section {
    background: #f7f9f7;
}

.academic-container {
    background: transparent;
    border-radius: 8px;
    padding: 10px 0;
}

/* 学术卡片：顶部彩条 + 简洁白底，hover 上浮 */
.academic-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: all 0.28s ease;
    cursor: pointer;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid #e8ede8;
    border-top: 3px solid var(--fudan-red);
}

.academic-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 36px rgba(53, 120, 121, 0.14);
    border-top-color: var(--fudan-dark-red);
}

.academic-image {
    position: relative;
    height: 185px;
    overflow: hidden;
}

.academic-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
    filter: brightness(0.9);
}

.academic-card:hover .academic-img {
    transform: scale(1.05);
    filter: brightness(1);
}

.academic-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 55%, rgba(0,0,0,0.18) 100%);
    transition: background 0.28s ease;
}

.academic-card:hover .academic-overlay {
    background: linear-gradient(to bottom, transparent 45%, rgba(53, 120, 121, 0.18) 100%);
}

/* 日期徽章：深色半透明毛玻璃风格 */
.academic-date-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(28, 53, 53, 0.82);
    backdrop-filter: blur(4px);
    color: white;
    padding: 0;
    border-radius: 5px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    transition: all 0.28s ease;
    min-width: 48px;
    overflow: hidden;
}

.academic-card:hover .academic-date-badge {
    background: var(--fudan-dark-red);
    transform: none;
    box-shadow: 0 4px 14px rgba(53, 120, 121, 0.3);
}

.academic-day {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1;
    padding: 8px 8px 3px;
}

.academic-month {
    display: block;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 3px 8px 7px;
    background: rgba(0,0,0,0.15);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.academic-content {
    padding: 18px 18px 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.academic-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #222;
    margin-bottom: 8px;
    line-height: 1.5;
    transition: color 0.25s ease;
}

.academic-card:hover .academic-title {
    color: var(--fudan-dark-red);
}

.academic-excerpt {
    color: #888;
    font-size: 0.85rem;
    line-height: 1.65;
    margin-bottom: 14px;
    flex: 1;
}

.academic-meta {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-top: auto;
}

.academic-read-more {
    color: var(--fudan-red);
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.25s ease;
    letter-spacing: 0.3px;
    text-decoration: none;
}

.academic-card:hover .academic-read-more {
    color: var(--fudan-dark-red);
    letter-spacing: 1px;
}

@media (max-width: 992px) {
    .academic-container { padding: 10px 0; }
}

@media (max-width: 768px) {
    .academic-image { height: 155px; }
    .academic-content { padding: 14px; }
    .academic-title { font-size: 0.88rem; }
    .academic-excerpt { font-size: 0.82rem; }
}

@media (max-width: 576px) {
    .academic-card { margin-bottom: 16px; }
    .academic-meta { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* 版权板块样式 */
.copyright-footer {
    background: #1c3535;
    color: white;
    padding: 36px 0;
    margin-top: 0;
}

.copyright-text {
    font-size: 0.9rem;
    font-weight: 400;
    margin: 0;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.55);
}

@media (max-width: 768px) {
    .copyright-footer { padding: 26px 0; }
    .copyright-text { font-size: 0.85rem; }
}

/* 文章标题 / 教师姓名 a 标签样式重置 */
.main-news-title a,
.news-title a,
.notice-title a,
.party-work-title a,
.academic-title a,
.article-title a,
.teacher-name a {
    text-decoration: none;
    color: inherit;
}
.main-news-title a:hover,
.news-title a:hover,
.notice-title a:hover,
.party-work-title a:hover,
.academic-title a:hover,
.article-title a:hover,
.teacher-name a:hover {
    text-decoration: none;
}