* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Noto Sans SC", sans-serif;
    line-height: 1.6;
    color: #333;
}

.container {
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section - 新的轮播图样式 */
.hero {
    height: 100vh;
    margin-top: 0; /* 移除上边距，防止被header遮挡 */
    position: relative;
    overflow: hidden;
    z-index: 1; /* 确保在header下方 */
}

.hero-carousel {
    height: 100%;
    width: 100%;
}

.hero-slide {
    height: 100vh;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 120px 40px 40px 40px; /* 顶部增加padding避免被header遮挡 */
    box-sizing: border-box;
}

.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(150deg, rgba(26, 72, 120, 1) 0%, rgba(29, 38, 58, 0) 100%);
    z-index: 1;
}

.hero-slide > * {
    position: relative;
    z-index: 2;
}

/* 左上角标题和logo */
.hero-header {
    /* display: flex; */
    align-items: center;
    gap: 20px;
    margin-top: 100px;
    color: white;
    margin-left: 40px;
}

.hero-logo-img {
    width: 100px;
    height: 100px;
    margin-bottom: 10px;
}

.hero-title-text h1 {
    /* 字体思源宋体 */
    font-size: 50px;
    font-family: "Noto Sans SC", sans-serif;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* 右上角页码导航 */
.hero-nav-numbers {
    position: absolute;
    top: 120px; /* 调整位置避免被header遮挡 */
    right: 40px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0;
    z-index: 3;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    position: relative;
}

.nav-number {
    color: rgba(255, 255, 255, 0.6);
    font-size: 18px;
    font-weight: 300;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 8px 15px;
    background: transparent;
    text-align: right;
    line-height: 1;
    border: none; /* 移除边框 */
}

.nav-number.active {
    color: white;
    font-weight: 400;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8); /* 添加发光效果 */
}

.nav-number:hover {
    color: white;
    border: none; /* 移除悬浮时的边框 */
    background: transparent; /* 保持透明背景 */
}

.nav-light {
    color: rgba(255, 255, 255, 0.6); /* 默认半透明 */
    font-size: 12px;
    font-weight: 300;
    letter-spacing: 1px;
    margin-top: 5px;
    display: none; /* 默认隐藏 */
    transition: all 0.3s ease;
    text-align: right;
}


/* 第一张轮播图的LIGHT默认显示 */
.carousel-item:first-child .nav-light {
    display: block;
}

/* 活跃状态下的LIGHT样式 */
.nav-light.active,
.nav-item:has(.nav-number.active) .nav-light {
    color: white !important;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8); /* 与数字一样的发光效果 */
    font-weight: 400; /* 与数字一样的字重 */
    display: block !important; /* 确保显示 */
}

.nav-separator {
    width: 2px;
    height: 30px;
    background: rgba(255, 255, 255, 0.3);
    margin: 5px 20px;
    transition: all 0.3s ease;
}

.nav-separator.active {
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* 底部新闻卡片 */
.hero-news-cards {
    display: flex;
    gap: 30px;
    margin-bottom: 20px;
    width: 70%;
}

.hero-news-card {
    background: transparent; /* 完全透明背景 */
    padding: 20px;
    border-radius: 8px;
    flex: 1;
    color: white; /* 白色文字 */
    box-shadow: none; /* 移除阴影 */
    transition: all 0.3s ease;
    cursor: pointer; /* 添加点击手势 */
    border: 1px solid transparent;
}

.hero-news-card:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.1); /* 悬停时添加轻微背景 */
    border-color: rgba(255, 255, 255, 0.3);
}

.news-arrow {
    color: white; /* 白色箭头 */
    font-size: 18px;
    font-weight: bold;
    margin-right: 10px;
}

.hero-news-card h4 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 10px 0;
    color: white; /* 白色标题 */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5); /* 添加文字阴影增强可读性 */
}

.hero-news-card p {
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
    color: rgba(255, 255, 255, 0.9); /* 略微透明的白色 */
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5); /* 添加文字阴影增强可读性 */
}

/* 右下角切换按钮 */
.hero-nav-controls {
    position: absolute;
    bottom: 100px;
    right: 100px;
    display: flex;
    gap: 10px;
    z-index: 3;
}

.hero-nav-controls button {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    color: white;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-nav-controls button:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: white;
    transform: scale(1.1);
}

.hero-nav-controls button span {
    font-family: Arial, sans-serif;
    font-weight: bold;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hero-slide {
        padding: 100px 20px 20px 20px; /* 移动端调整padding */
    }

    .hero-title-text h1 {
        font-size: 24px;
    }

    .hero-nav-numbers {
        top: 100px; /* 移动端调整位置 */
        right: 20px;
    }

    .nav-number {
        font-size: 16px;
        padding: 6px 12px;
    }

    .nav-light {
        font-size: 10px;
        margin-top: 3px;
    }

    .nav-separator {
        height: 20px;
        margin: 3px 15px;
    }

    .hero-news-cards {
        flex-direction: column;
        gap: 15px;
    }

    .hero-nav-controls {
        bottom: 20px;
        right: 20px;
    }

    .hero-nav-controls button {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
}

/* Section Headers - Updated with blue line above titles */
.section-header {
    margin-bottom: 40px;
    margin-top: 40px;
    text-align: center; /* Default to center alignment */
    position: relative;
    padding-top: 15px; /* Add space for the blue line */
}

.section-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: #3b82f6; /* Blue line color */
}

.section-header.left-aligned {
    text-align: left;
    margin-bottom: 40px;
}

.section-header.left-aligned::before {
    left: 0;
    transform: none;
}

/* About Section - Specific adjustments */
.about .section-header {
    text-align: center;
}

.about .section-header::before {
    left: 50%;
    transform: translateX(-50%);
}

/* News Section - Left alignment override */
.news .section-header {
    text-align: left;
}

.news .section-header::before {
    left: 0;
    transform: none;
}

/* Academic Section - Left alignment override */
.academic .section-header {
    text-align: left;
}

/* 背景色 */
.academic {
    background-color: #f8f9fa;
}

.academic .section-header::before {
    left: 0;
    transform: none;
}

/* Party Building Section - Left alignment override */
.party-building .section-header {
    text-align: left;
    position: absolute;
    top: -5px;
    width: 100%; /* 添加宽度100%确保相对定位正确 */
    /* margin-bottom: 100px; */
}

.party-building .section-header::before {
    left: 0;
    transform: none;
}

/* 党建思政板块的更多按钮特殊样式 */
.party-building .section-more-btn {
    position: absolute;
    right: 20%;
    top: 20px; /* 调整垂直位置 */
    transform: none; /* 移除垂直居中变换 */
    color: white; /* 改为白色以适应深色背景 */
    font-size: 16px;
    font-weight: 400;
    transition: color 0.3s ease;
}

.party-building .section-more-btn:hover {
    color: #ffd700; /* 悬停时改为金色 */
    text-decoration: none;
}

.section-title-en {
    font-size: 36px;
    font-weight: 700;
    color: #919191;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.section-title-zh {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    position: relative;
}

.news-date-year {
    font-size: 12px;
    color: #666;
    margin-left: -10px;
    line-height: 1;
}

/* About Section - 优化学院简介样式 */
.about {
    background: #fff;
    padding: 40px 0;
    overflow: hidden; /* 防止内容溢出 */
}

.about-content-wrapper {
    position: relative;
    height: 500px;
    margin-bottom: 40px;
    max-width: 100%; /* 确保不超出容器 */
}

.about-image-container {
    position: absolute;
    top: -20px;
    left: 0;
    width: 58%; /* 稍微减小宽度，留出更多空间 */
    height: 80%;
    overflow: hidden;
    border-radius: 15px;
    border-top-right-radius: 80px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    z-index: 1;
}

.about-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.about-image-container:hover .about-img {
    transform: scale(1.05);
}

.about-content-box {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 58%; /* 与图片宽度保持一致 */
    height: 360px;
    background: white;
    padding: 50px 40px;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    top: 80px;
    z-index: 2;
    overflow: hidden; /* 防止内容溢出 */
    box-sizing: border-box; /* 确保padding不会导致溢出 */
}

.about-subtitle {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 25px;
    color: #1e40af;
    line-height: 1.3;
    word-break: keep-all; /* 防止单词换行 */
}

.about-description {
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 35px;
    color: #555;
    text-align: justify;
    word-break: break-word; /* 允许长单词换行 */
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 6; /* 最多显示6行 */
    -webkit-box-orient: vertical;
}

.learn-more-btn {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    border: none;
    padding: 14px 35px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 40px;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
    position: relative;
    overflow: hidden;
    display: inline-block;
    float: right;
}

.learn-more-btn:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.learn-more-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.learn-more-btn:hover::before {
    left: 100%;
}

.stats {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    flex-wrap: wrap; /* 允许换行 */
}

.stat-item {
    text-align: center;
    flex: 1;
    min-width: 80px; /* 最小宽度防止过度压缩 */
}

.stat-number {
    font-size: 22px;
    font-weight: 700;
    color: #3b82f6;
    margin-bottom: 8px;
    transition: transform 0.3s ease;
}

.stat-item:hover .stat-number {
    transform: scale(1.1);
}

.stat-label {
    font-size: 13px;
    color: #666;
    font-weight: 500;
}

/* News Section - Updated to match the provided layout */
.news {
    position: relative;
    background: #f8f9fa;
    overflow: hidden; /* Prevent content overflow */
}

.news-nav {
    position: absolute;
    top: 60px;
    right: 10%;
    display: flex;
    gap: 30px;
}

.news-nav-item {
    color: #666;
    cursor: pointer;
    transition: color 0.3s;
    font-size: 16px;
    padding: 8px 16px; /* 增加点击区域 */
    border-radius: 8px; /* 减小圆角 */
    transition: all 0.3s ease; /* 平滑过渡效果 */
}

.news-nav-item.active {
    color: #3b82f6;
    font-weight: 600;
    background: rgba(59, 130, 246, 0.1); /* 活跃状态背景 */
}

.news-nav-item:hover {
    background: rgba(59, 130, 246, 0.05); /* 悬停效果 */
}

.news-featured {
    width: 100%;
    margin-bottom: 50px; /* 增加间距 */
    background: white;
    border-radius: 8px; /* 减小圆角 */
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12); /* 增强阴影效果 */
    display: block;
    transition: transform 0.3s ease; /* 添加悬停动画 */
}

.news-featured:hover {
    transform: translateY(-3px); /* 悬停上移效果 */
}

.news-featured-img {
    width: 100%;
    height: 350px; /* 增加图片高度 */
    object-fit: cover;
    transition: transform 0.3s ease; /* 图片悬停效果 */
}

.news-featured:hover .news-featured-img {
    transform: scale(1.02); /* 图片悬停放大 */
}

.news-featured-content {
    padding: 35px; /* 增加内边距 */
}

.news-featured-title {
    font-size: 20px; /* 适中的标题字体 */
    font-weight: 600;
    margin-bottom: 15px; /* 增加间距 */
    line-height: 1.4;
    color: #333;
    overflow: hidden; /* 防止溢出 */
    display: -webkit-box;
    -webkit-line-clamp: 3; /* 最多显示3行 */
    -webkit-box-orient: vertical;
    word-break: break-word; /* 允许单词内换行 */
}

.news-featured-date {
    color: #999;
    font-size: 14px;
    margin-bottom: 20px; /* 增加间距 */
    display: inline-block;
    background: #f8f9fa;
    padding: 4px 12px;
    border-radius: 8px; /* 减小圆角 */
}

.news-featured-excerpt {
    color: #666;
    line-height: 1.6; /* 适中的行高 */
    font-size: 14px; /* 适中的字体 */
    overflow: hidden; /* 防止溢出 */
    display: -webkit-box;
    -webkit-line-clamp: 4; /* 最多显示4行 */
    -webkit-box-orient: vertical;
    word-break: break-word; /* 允许单词内换行 */
    margin: 0;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px; /* 增加卡片间距 */
    margin-bottom: 50px; /* 增加底部间距 */
}

.news-card {
    background: white;
    border-radius: 8px; /* 减小圆角 */
    overflow: hidden;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.1); /* 增强阴影 */
    transition: all 0.3s ease; /* 平滑过渡 */
    min-height: 280px; /* 设置最小高度，增加列表高度 */
}

.news-card:hover {
    transform: translateY(-8px); /* 增强悬停效果 */
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15); /* 悬停时增强阴影 */
}

.news-card-img {
    width: 100%;
    height: 200px; /* 增加图片高度 */
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card:hover .news-card-img {
    transform: scale(1.05); /* 图片悬停放大 */
}

.news-card-content {
    padding: 25px; /* 增加内边距 */
    padding-bottom: 10px;
    height: 160px; /* 固定内容区域高度 */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.news-card-title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5; /* 增加行高 */
    color: #333;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* 显示3行标题 */
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1; /* 占据剩余空间 */
}

.news-card-date {
    color: #999;
    font-size: 14px;
    background: #f8f9fa;
    padding: 4px 12px;
    border-radius: 8px; /* 减小圆角 */
    width: fit-content; /* 日期标签样式 */
}

.news-more {
    text-align: right;
    margin-top: 20px; /* 增加顶部间距 */
    margin-bottom: 30px;
}

.more-btn {
    background: linear-gradient(135deg, #3b82f6, #2563eb); /* 渐变背景 */
    color: white;
    border: none;
    padding: 12px 30px; /* 增加按钮大小 */
    border-radius: 8px; /* 减小圆角 */
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3); /* 按钮阴影 */
}

.more-btn:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    transform: translateY(-2px); /* 悬停上移 */
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4); /* 悬停时增强阴影 */
}

.more-btn::after {
    content: ">";
    margin-left: 10px; /* 增加箭头间距 */
    transition: transform 0.3s ease;
}

.more-btn:hover::after {
    transform: translateX(3px); /* 悬停时箭头移动 */
}

/* Responsive adjustments for news section */
@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr;
    }

    .news-nav {
        position: static;
        justify-content: flex-start;
        margin-bottom: 30px;
    }
}

/* Academic Section - 重新设计为与图片一模一样 */
.academic {
    background: #ffffff;
    position: relative;
    padding-bottom: 50px;
}

/* 主要内容布局 */
.academic-main-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

/* 左侧图片区域 */
.academic-image-section {
    display: flex;
    flex-direction: column;
}

/* HEADLINES SVG 样式 */
.headlines-container {
    margin-bottom: 20px;
}

.headlines-svg {
    width: 350px;
    height: auto;
    opacity: 0.3;
}

/* 主要图片容器 */
.academic-main-image {
    margin-bottom: 30px;
}

.academic-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
}

/* 图片描述区域 */
.academic-image-description h4 {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.4;
}

.academic-image-description p {
    font-size: 14px;
    color: #666;
    line-height: 1.8;
    text-align: justify;
}

/* 右侧新闻列表区域 */
.academic-news-section {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* 新闻项目样式 */
.academic-news-item {
    display: flex;
    gap: 20px;
    padding-bottom: 25px;
    border-bottom: 1px solid #f0f0f0;
}

.academic-news-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

/* 日期样式 */
.news-date {
    flex: 0 0 80px;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    text-align: center;
    padding: 8px;
    background-color: #f8f9fa;
    border-radius: 4px;
    height: fit-content;
}

/* 新闻内容样式 */
.news-content {
    flex: 1;
}

.news-content h5 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-time {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .academic-main-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .headlines-svg {
        width: 280px;
    }

    .academic-img {
        height: 250px;
    }

    .academic-news-item {
        flex-direction: column;
        gap: 10px;
    }

    .news-date {
        width: fit-content;
        align-self: flex-start;
    }
}

/* Party Building Section */
.party-building {
    padding: 100px 0;
    background-image: url('../images/dzjsBG.png');
    background-size: cover;
    background-position: center;
    color: white;
    position: relative;
}

.party-building .section-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    transform: none;
    width: 60px;
    height: 4px;
    background-color: white; /* Changed to white for Party Building section */
}

.party-building .section-title-en,
.party-building .section-title-zh {
    color: white;
}

/* 党建思政内容区域 - 确保左右高度一致 */
.party-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 100px;
    align-items: stretch; /* 确保左右两列高度一致 */
}

/* 左侧新闻列表容器 */
.party-text {
    display: flex;
    flex-direction: column;
    height: 100%; /* 占满父容器高度 */
}

.party-news-list {
    background-color: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    flex: 1; /* 自动扩展以填充可用空间 */
    display: flex;
    flex-direction: column;
    min-height: 500px; /* 设置最小高度 */
}

.party-news-item {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.party-news-item:last-child {
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
}

.party-news-item h5 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
    color: #333;
    transition: color 0.3s ease;
}

.party-news-item:hover h5 {
    color: #dc2626;
}

.party-category {
    color: #999;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
}

.party-category-marker {
    display: inline-block;
    width: 12px;
    height: 12px;
    background-color: #dc2626;
    margin-right: 8px;
    border-radius: 2px;
}

.party-category-text {
    color: #dc2626;
    font-weight: 500;
    font-size: 14px;
}

.party-date {
    color: #999;
    margin-top: 15px;
    font-size: 14px;
}

.party-date-right {
    color: #999;
    font-size: 14px;
}

/* 右侧图片区域 */
.party-images {
    display: flex;
    flex-direction: column;
    gap: 30px;
    /*background-color: white;*/
    border-radius: 12px;
    min-height: 500px; /* 与左侧保持一致的最小高度 */
    max-width: 600px;
}

/* 图片组样式优化 */
.party-image-group {
    flex: 1; /* 平均分配空间 */
    display: flex;
    flex-direction: column;
    padding: 20px;
    /* border: 1px solid #f0f0f0; */
    border-radius: 8px;
    /* background-color: #fafafa; */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    background: white;
    margin-bottom: 20px;
}

.party-image-group:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.12);
}


.party-image-group .party-date {
    color: #666;
    font-size: 12px;
    margin-bottom: 8px;
    font-weight: 500;
}

.party-image-group h6 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
    line-height: 1.3;
}

.party-image-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.party-img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

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

/* Party Building Section - Updated */

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .header-content {
        flex-direction: column;
        gap: 20px;
    }

    .nav-list {
        flex-wrap: wrap;
        gap: 15px;
        justify-content: center;
    }

    .hero-title {
        font-size: 32px;
    }

    .about-content,
    .news-content,
    .academic-content,
    .party-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    /* About Section 移动端适配 */
    .about-content-wrapper {
        height: auto;
        display: flex;
        flex-direction: column;
        gap: 30px;
    }

    .about-image-container,
    .about-content-box {
        position: static;
        width: 100%;
        top: auto;
        bottom: auto;
        right: auto;
        left: auto;
    }

    .about-image-container {
        height: 250px;
        border-top-right-radius: 15px;
    }

    .about-content-box {
        padding: 30px 20px;
    }

    .learn-more-btn {
        float: none;
        display: block;
        margin: 20px auto 0 auto;
        text-align: center;
    }

    .stats {
        justify-content: center;
        gap: 20px;
    }

    .stat-item {
        min-width: 60px;
    }

    /* 移动端时移除高度限制 */
    .party-news-list,
    .party-images {
        min-height: auto;
    }

    .party-image-group {
        padding: 15px;
    }

    .academic-stats {
        flex-wrap: wrap;
        gap: 30px;
    }

    .stats {
        flex-wrap: wrap;
        gap: 20px;
        justify-content: center;
    }

    .footer-info {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 24px;
    }

    .section-title-en {
        font-size: 28px;
    }

    .section-title-zh {
        font-size: 20px;
    }

    .news-featured {
        flex-direction: column;
    }

    .news-featured-img {
        width: 100%;
        height: 200px;
    }

    .party-image-grid {
        grid-template-columns: 1fr;
    }
}

/* News Carousel Styling - 优化轮播图样式 */
.news-carousel {
    margin-bottom: 50px; /* 增加底部间距 */
    background-color: transparent;
    position: relative;
}

.carousel-inner {
    border-radius: 8px; /* 减小圆角 */
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12); /* 减弱阴影 */
    background-color: white;
    position: relative;
}

.carousel-item {
    background-color: white !important;
    height: auto !important;
    transition: transform 0.6s ease;
}

.news-featured {
    width: 100%;
    background: white;
    overflow: hidden;
    margin-bottom: 0; /* 移除轮播图内的间距 */
    box-shadow: none; /* 移除内部阴影 */
    border-radius: 0; /* 移除内部圆角 */
}

.news-featured .row {
    margin: 0;
    min-height: 350px;
    align-items: stretch; /* 拉伸对齐 */
}

.news-featured .col-md-5 {
    padding: 0; /* 移除列间距 */
}

.news-featured .col-md-7 {
    padding: 30px; /* 添加内边距，防止内容超出 */
    display: flex;
    align-items: center; /* 垂直居中内容 */
    overflow: hidden; /* 防止内容溢出 */
}

.news-featured-content {
    width: 100%;
    overflow: hidden; /* 确保内容不溢出 */
}

.news-featured-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 350px; /* 确保图片高度 */
    display: block; /* 移除图片下方空隙 */
}

.carousel-indicators {
    position: absolute !important; /* 绝对定位 */
    bottom: 15px; /* 距离底部15px */
    right: 20px; /* 距离右边20px */
    left: auto !important; /* 取消左对齐 */
    width: auto !important; /* 自动宽度 */
    margin: 0; /* 移除默认margin */
    justify-content: flex-end; /* 右对齐 */
}

.carousel-indicators button {
    background-color: rgba(255, 255, 255, 0.6); /* 半透明白色背景 */
    width: 10px !important; /* 缩小按钮尺寸 */
    height: 10px !important; /* 缩小按钮尺寸 */
    border-radius: 50%;
    margin: 0 3px; /* 减小间距 */
    border: 1px solid rgba(255, 255, 255, 0.8) !important; /* 细边框 */
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) !important; /* 阴影 */
    opacity: 0.7;
}

.carousel-indicators button.active {
    background-color: #3b82f6 !important;
    border-color: #3b82f6 !important; /* 活跃状态边框 */
    opacity: 1;
    transform: scale(1.1); /* 轻微放大 */
}

.carousel-item img {
    object-fit: cover;
    opacity: 1 !important;
    height: 100%;
}

.carousel-indicators button:hover {
    background-color: #3b82f6;
    border-color: #3b82f6;
    opacity: 0.9;
}

.carousel-control-prev {
    margin-left: -200px;
}

.carousel-control-next {
    margin-right: 50px;
}

/* 隐藏轮播图控制按钮 */
.carousel-control-prev,
.carousel-control-next {
    display: none; /* 完全隐藏控制按钮 */
}

/* 轮播图切换动画优化 */
.carousel-item-next,
.carousel-item-prev,
.carousel-item.active {
    transition: transform 0.6s ease-in-out;
}

/* Responsive adjustments for carousel */
@media (max-width: 768px) {
    .news-featured .row {
        flex-direction: column;
        min-height: auto;
    }

    .news-featured .col-md-7 {
        padding: 20px; /* 移动端减小内边距 */
    }

    .news-featured-img {
        min-height: 250px; /* 移动端图片高度 */
    }

    .news-featured-title {
        font-size: 18px; /* 移动端减小标题字体 */
        -webkit-line-clamp: 2; /* 移动端显示2行标题 */
    }

    .news-featured-excerpt {
        font-size: 13px; /* 移动端减小摘要字体 */
        -webkit-line-clamp: 3; /* 移动端显示3行摘要 */
    }

    .carousel-indicators {
        bottom: 10px; /* 移动端调整位置 */
        right: 15px;
    }

    .carousel-indicators button {
        width: 6px; /* 移动端更小的按钮 */
        height: 6px;
        margin: 0 2px;
    }

    .news-grid {
        grid-template-columns: 1fr; /* 移动端单列 */
        gap: 20px;
    }

    .news-card {
        min-height: 250px; /* 移动端卡片高度 */
    }

    .news-card-content {
        height: auto; /* 移动端自动高度 */
    }

    .news-nav {
        position: static;
        justify-content: flex-start;
        margin-bottom: 30px;
        flex-wrap: wrap; /* 允许换行 */
    }
}
