:root {
    --fudan-red: #357879;
    --fudan-dark-red: #285a5b;
}

body {
    font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
}

/* 整体内容容器加宽 */
@media (min-width: 1200px) {
    .container {
        max-width: 1440px;
    }
}

.main-navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: transparent;
    padding: 12px 0;
    box-shadow: none;
    z-index: 1030;
    text-shadow: 0 2px 10px rgba(0,0,0,0.45);
    transition: background 0.35s ease, box-shadow 0.35s ease, padding 0.35s ease;
}

.main-navbar.navbar-scrolled {
    background: linear-gradient(135deg, var(--fudan-red) 0%, var(--fudan-dark-red) 100%);
    box-shadow: 0 4px 18px rgba(0,0,0,0.18);
    padding: 6px 0;
    text-shadow: none;
}

.main-navbar.navbar-scrolled .nav-link,
.main-navbar.navbar-scrolled .fudan-logo-img,
.main-navbar.navbar-scrolled .search-icon {
    text-shadow: none;
    filter: none;
}

/* ===== 子页面顶部栏（list / content / teacher 等） ===== */
.top-navbar {
    background: linear-gradient(135deg, var(--fudan-red) 0%, var(--fudan-dark-red) 100%);
    padding: 14px 0;
}

.top-navbar .fudan-logo-img {
    height: 52px;
    max-width: 320px;
    filter: none;
}

.top-navbar .search-icon {
    position: static;
    width: 20px;
    height: 20px;
    cursor: pointer;
    filter: none;
}

/* 子页面：logo 与主菜单同一行，正常流内的实色吸顶栏 */
.top-navbar.main-navbar {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    background: linear-gradient(135deg, var(--fudan-red) 0%, var(--fudan-dark-red) 100%);
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
    text-shadow: none;
    padding: 6px 0;
    z-index: 1030;
}

.top-navbar.main-navbar .nav-link {
    text-shadow: none;
}

.main-navbar .container {
    display: flex;
    align-items: center;
    gap: 18px;
    width: 100%;
    max-width: none;
    padding-left: 28px;
    padding-right: 28px;
}

.header-logo {
    flex: 0 0 auto;
    margin-right: 14px;
    padding: 0;
    line-height: 1;
}

.fudan-logo-img {
    height: auto;
    max-width: 320px;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.45));
}

.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 {
    width: 24px;
    height: 24px;
    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");
}

.main-navbar .navbar-collapse {
    flex: 1 1 auto;
    min-width: 0;
}

.main-navbar .navbar-nav {
    align-items: center;
    justify-content: flex-end;
    width: 100%;
    margin-left: auto !important;
    margin-right: 10px !important;
}

.main-navbar .nav-link {
    color: white;
    padding: 18px 16px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.55);
    font-size: 16px;
    font-weight: 600;
    white-space: nowrap;
    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,
.main-navbar .nav-link:focus,
.main-navbar .nav-link:active,
.main-navbar .nav-link.show,
.main-navbar .nav-item.show > .nav-link {
    background-color: rgba(255,255,255,0.10);
    color: #ffffff !important;
    transform: translateY(-2px);
}

.main-navbar .nav-link:hover::before {
    width: 80%;
}

.header-search {
    position: relative;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
}

.search-icon {
    position: static;
    width: 20px;
    height: 20px;
    cursor: pointer;
    opacity: 0.92;
    transition: opacity 0.3s ease, transform 0.3s ease;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.45));
}

.search-icon:hover {
    opacity: 1;
    transform: scale(1.1);
}

.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: 11px 22px;
    font-size: 15px;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.dropdown-item:hover,
.dropdown-item:focus,
.dropdown-item:active,
.dropdown-item.active {
    background-color: rgba(255,255,255,0.12);
    color: #ffffff !important;
    border-left-color: #FFD700;
    padding-left: 25px;
}

.dropdown-divider {
    border-color: rgba(255,255,255,0.2);
    margin: 8px 0;
}

.hero-section {
    position: relative;
    height: 100vh;
    height: 100svh;
    min-height: 620px;
    overflow: hidden;
}

.hero-section::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(to bottom,
        rgba(0,0,0,0.50) 0,
        rgba(0,0,0,0.34) 150px,
        rgba(0,0,0,0.08) 38%,
        rgba(0,0,0,0.22) 100%
    );
}

#mainCarousel,
.hero-section .carousel-inner,
.hero-section .carousel-item {
    height: 100%;
}

.hero-section .carousel-indicators,
.hero-section .carousel-control-prev,
.hero-section .carousel-control-next {
    z-index: 3;
}

.hero-section .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;
    z-index: 2;
}

.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);
}

.search-box {
    position: absolute;
    top: calc(100% + 14px);
    right: 0;
    width: 390px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    padding: 20px;
    display: none;
    z-index: 1040;
    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;
    align-items: center;
    gap: 10px;
}

.search-input {
    flex: 1;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    padding: 12px 20px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s ease;
}

.search-input:focus {
    border-color: var(--fudan-red);
}

.search-btn {
    background: var(--fudan-red);
    color: white;
    border: none;
    border-radius: 25px;
    padding: 12px 20px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-btn:hover {
    background: var(--fudan-dark-red);
}

.search-close {
    background: #f8f9fa;
    color: #666;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-close:hover {
    background: #e9ecef;
    color: #333;
}

@media (min-width: 992px) {
    .main-navbar .container {
        max-width: none;
    }

    .main-navbar .navbar-nav {
        justify-content: flex-end;
        width: 100%;
        flex-wrap: nowrap;
    }

    .main-navbar .nav-item {
        margin: 0 6px;
    }
}

@media (min-width: 1400px) {
    .main-navbar .nav-link {
        padding: 18px 22px;
        font-size: 17px;
    }
}

@media (max-width: 1200px) {
    .fudan-logo-img {
        max-width: 260px;
    }

    .main-navbar .container {
        gap: 12px;
        padding-left: 20px;
        padding-right: 20px;
    }

    .main-navbar .nav-link {
        padding: 16px 12px;
        font-size: 15px;
    }
}

@media (max-width: 992px) {
    .main-navbar .container {
        flex-wrap: wrap;
        gap: 12px;
        padding-left: 18px;
        padding-right: 18px;
    }

    .header-logo {
        margin-right: auto;
    }

    .header-search {
        order: 2;
    }

    .navbar-toggler {
        order: 3;
    }

    .main-navbar .navbar-collapse {
        order: 4;
        flex-basis: 100%;
        background: rgba(40, 90, 91, 0.95);
        margin-top: 8px;
        border-radius: 8px;
        padding: 10px;
        backdrop-filter: blur(10px);
    }

    .main-navbar .navbar-nav {
        align-items: stretch;
        justify-content: flex-start;
        margin-right: 0 !important;
    }

    .main-navbar .nav-link {
        border-radius: 5px;
        margin: 2px 0;
        padding: 12px 15px;
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .fudan-logo-img {
        height: 45px;
        max-width: 230px;
    }

    .main-navbar {
        top: 0;
        padding: 10px 0;
    }

    .hero-section {
        height: 100vh;
        height: 100svh;
        min-height: 520px;
    }

    .carousel-caption .banner-title {
        font-size: 1.8rem;
    }

    .carousel-caption {
        bottom: 15px;
        width: 95%;
    }

    .search-box {
        width: min(320px, calc(100vw - 36px));
    }

    .dropdown-menu {
        position: static !important;
        float: none;
        width: 100%;
        margin-top: 5px;
        background: rgba(40, 90, 91, 0.95);
    }
}

@media (max-width: 576px) {
    .fudan-logo-img {
        height: 40px;
        max-width: 190px;
    }

    .main-navbar .container {
        padding-left: 14px;
        padding-right: 14px;
    }

    .carousel-caption .banner-title {
        font-size: 1.4rem;
    }

    .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;
}

/* 只显示5条，隐藏第6条 */
.news-list .news-item:last-child {
    display: none;
}

.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-item:last-child {
    border-bottom: none;
}

.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.9rem;
    font-weight: 500;
    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-list .news-item:last-child { display: flex; }
    .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.9rem; }
}

@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-item:last-child {
    border-bottom: none;
}

.party-work-title {
    font-size: 0.95rem;
    font-weight: 500;
    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-item:last-child { border-bottom: none; }

.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: 500;
    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.9rem; }
}

@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.97rem;
    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;
}

.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.92rem; }
    .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; }
}

/* ===================== 工作动态板块 ===================== */
.work-trends-section {
    background: #fff;
}

/* 上：可切换单篇图文 */
.trends-carousel {
    position: relative;
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 34px rgba(0,0,0,0.08);
}

.trends-feature {
    min-height: 400px;
}

/* 文字区 */
.trends-feature-text {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 48px 50px;
}

.trends-feature-text::before {
    content: '';
    position: absolute;
    left: 50px;
    top: 48px;
    width: 42px;
    height: 4px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--fudan-red), #5fa8a8);
}

.trends-feature-date {
    color: var(--fudan-red);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-top: 26px;
    margin-bottom: 16px;
}

.trends-feature-title {
    font-size: 1.55rem;
    font-weight: 800;
    color: #1f1f1f;
    line-height: 1.55;
    margin-bottom: 18px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.trends-feature-desc {
    color: #6b6b6b;
    font-size: 0.96rem;
    line-height: 2;
    margin-bottom: 30px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.trends-feature-more {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--fudan-red);
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
    padding: 10px 24px;
    border: 1px solid var(--fudan-red);
    border-radius: 30px;
    transition: all 0.3s ease;
}

.trends-feature-more .arrow {
    transition: transform 0.3s ease;
}

.trends-feature-more:hover {
    background: var(--fudan-red);
    color: #fff;
    box-shadow: 0 6px 16px rgba(53,120,121,0.28);
}

.trends-feature-more:hover .arrow {
    transform: translateX(4px);
}

/* 图片区 */
.trends-feature-img {
    position: relative;
    height: 100%;
    min-height: 400px;
    overflow: hidden;
}

.trends-feature-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.trends-carousel .carousel-item.active .trends-feature-img img {
    transform: scale(1);
}

.trends-feature-img:hover img {
    transform: scale(1.05);
}

/* 图片左侧与文字衔接的柔和过渡 */
.trends-feature-img::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 80px;
    background: linear-gradient(90deg, rgba(255,255,255,0.9), rgba(255,255,255,0));
    z-index: 2;
    pointer-events: none;
}

/* 分类标签 */
.trends-feature-tag {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 3;
    background: rgba(53,120,121,0.92);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 1px;
    padding: 5px 14px;
    border-radius: 4px;
    backdrop-filter: blur(4px);
}

/* 指示器：浮于图片右下角 */
.trends-carousel .carousel-indicators {
    position: absolute;
    margin: 0;
    right: 22px;
    bottom: 18px;
    left: auto;
    justify-content: flex-end;
    z-index: 4;
}

.trends-carousel .carousel-indicators [data-bs-target] {
    width: 22px;
    height: 4px;
    border-radius: 2px;
    border: none;
    background: #fff;
    opacity: 0.55;
    transition: width 0.3s ease, opacity 0.3s ease;
}

.trends-carousel .carousel-indicators .active {
    opacity: 1;
    width: 34px;
}

/* 淡入淡出切换 */
.trends-carousel.carousel-fade .carousel-item {
    transition: opacity 0.6s ease;
}

/* 阅读全文 + 手动切换控制器 同行 */
.trends-feature-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.trends-feature-ctrls {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.trends-ctrl {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #e2e2e2;
    color: var(--fudan-red);
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    transition: all 0.25s ease;
}

.trends-ctrl-arrow {
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
    margin-top: -3px;
}

.trends-ctrl:hover {
    background: var(--fudan-red);
    border-color: var(--fudan-red);
    color: #fff;
    box-shadow: 0 6px 16px rgba(53,120,121,0.30);
}

/* 下：两行三列文章列表（仅标题+日期） */
.trends-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fff;
    border: 1px solid #ebebeb;
    border-left: 3px solid transparent;
    border-radius: 6px;
    padding: 16px 18px;
    text-decoration: none;
    height: 100%;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.trends-card::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #cfcfcf;
    flex-shrink: 0;
    transition: background 0.25s ease;
}

.trends-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 22px rgba(53,120,121,0.12);
    border-color: #ebebeb;
    border-left-color: var(--fudan-red);
}

.trends-card:hover::before {
    background: var(--fudan-red);
}

.trends-card-title {
    flex: 1;
    min-width: 0;
    font-size: 0.97rem;
    font-weight: 500;
    color: #2a2a2a;
    line-height: 1.5;
    margin: 0;
    transition: color 0.25s ease;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.trends-card:hover .trends-card-title {
    color: var(--fudan-dark-red);
}

.trends-card-date {
    flex-shrink: 0;
    font-size: 12px;
    color: #aaa;
    letter-spacing: 0.3px;
}

@media (max-width: 991px) {
    .trends-feature-img { min-height: 240px; height: 240px; }
    .trends-feature-img::before { display: none; }
    .trends-feature-text { padding: 28px 26px 30px; }
    .trends-feature-actions { flex-wrap: wrap; }
    .trends-feature-text::before { left: 26px; top: 28px; }
    .trends-feature-date { margin-top: 22px; }
    .trends-feature-title { font-size: 1.3rem; }
    .trends-feature-desc { -webkit-line-clamp: 3; margin-bottom: 22px; }
}

/* ===================== 支部建设板块 ===================== */
.branch-section {
    background: #f4f7f4;
}

.branch-item {
    display: flex;
    align-items: center;
    gap: 18px;
    background: #fff;
    border: 1px solid #e8ede8;
    border-left: 3px solid var(--fudan-red);
    border-radius: 8px;
    padding: 20px 22px;
    text-decoration: none;
    height: 100%;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.branch-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(53,120,121,0.13);
}

.branch-item-content {
    flex: 1;
    min-width: 0;
}

.branch-item-title {
    font-size: 1.02rem;
    font-weight: 700;
    color: #222;
    line-height: 1.5;
    margin-bottom: 8px;
    transition: color 0.25s ease;
}

.branch-item:hover .branch-item-title {
    color: var(--fudan-dark-red);
}

.branch-item-desc {
    color: #888;
    font-size: 0.86rem;
    line-height: 1.65;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.branch-item-date {
    flex-shrink: 0;
    align-self: flex-start;
    font-size: 12px;
    color: #aaa;
    letter-spacing: 0.3px;
    padding-top: 2px;
}

/* ===================== 专题板块 ===================== */
.topic-section {
    background: #fff;
}

.topic-card {
    position: relative;
    display: block;
    height: 380px;
    border-radius: 6px;
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.topic-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 38px rgba(0,0,0,0.22);
}

.topic-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.topic-mask {
    position: absolute;
    inset: 0;
}

.topic-red .topic-mask {
    background: linear-gradient(160deg, rgba(222,72,52,0.92) 0%, rgba(150,28,20,0.86) 100%);
}

.topic-orange .topic-mask {
    background: linear-gradient(160deg, rgba(236,150,72,0.9) 0%, rgba(202,92,30,0.84) 100%);
}

.topic-blue .topic-mask {
    background: linear-gradient(160deg, rgba(44,96,162,0.9) 0%, rgba(22,52,112,0.86) 100%);
}

.topic-teal .topic-mask {
    background: linear-gradient(160deg, rgba(32,162,150,0.9) 0%, rgba(16,112,112,0.86) 100%);
}

.topic-title {
    position: absolute;
    top: 32px;
    right: 32px;
    writing-mode: vertical-rl;
    font-size: 1.35rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 5px;
    line-height: 1.5;
    text-shadow: 0 2px 8px rgba(0,0,0,0.22);
    max-height: 290px;
    overflow: hidden;
}

.topic-foot {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 14px;
    color: rgba(255,255,255,0.95);
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.topic-foot-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border: 1px solid rgba(255,255,255,0.85);
    border-radius: 50%;
    font-size: 12px;
    line-height: 1;
}

@media (max-width: 575px) {
    .topic-card { height: 320px; }
    .topic-title { font-size: 1.2rem; letter-spacing: 4px; }
}

/* ===================== 学习园地板块 ===================== */
.study-section {
    background: #f7f9f7;
}