* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
}

body {
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
}

/* 头部样式 */
.header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-img {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.logo-text {
    font-size: 28px;
    font-weight: bold;
    color: #0a4d9c;
    letter-spacing: 1px;
}

.search-container {
    display: flex;
    width: 300px;
}

.search-input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #e1e5eb;
    border-right: none;
    border-radius: 4px 0 0 4px;
    font-size: 16px;
    transition: all 0.3s;
}

.search-input:focus {
    outline: none;
    border-color: #0a4d9c;
}

.search-btn {
    background-color: #0a4d9c;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-btn:hover {
    background-color: #1a6dcc;
}

.search-btn i {
    margin-right: 5px;
}

/* 导航栏容器样式 - 修改为与页面主体相同的宽度限制 */
.navbar-container {
    background-color: #0a4d9c;
    width: 100%;
    padding: 0;
}

/* 导航栏内部容器 - 确保与主页面相同的宽度和对齐方式 */
.navbar-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
    display: flex;
    justify-content: center;
    width: 100%;
}

/* 导航栏下方轮播图样式 */
.main-carousel {
    width: 100%;
    height: 400px;
    overflow: hidden;
    position: relative;
    margin-bottom: 30px;
}

.main-carousel-inner {
    display: flex;
    transition: transform 0.5s ease;
    height: 100%;
}

.main-carousel-item {
    min-width: 100%;
    height: 100%;
    position: relative;
}

.main-carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.main-carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    padding: 20px;
}

.main-carousel-caption h3 {
    font-size: 24px;
    margin-bottom: 8px;
}

.main-carousel-indicators {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.main-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s;
}

.main-indicator.active {
    background-color: white;
}

.main-carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    transition: background-color 0.3s;
    z-index: 10;
}

.main-carousel-control:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.main-carousel-control.prev {
    left: 15px;
}

.main-carousel-control.next {
    right: 15px;
}

/* 主要内容区域 */
.container {
    max-width: 1400px;
    margin: 30px auto;
    padding: 0 5%;
}

/* 新的网格布局：第一行新闻动态和通知公告，第二行开始两列布局 */
.main-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

/* 第一行：新闻动态（占2列）和通知公告（占1列） */
.first-row {
    grid-column: 1 / 3;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

/* 第二行及之后：两列布局 */
.second-row {
    grid-column: 1 / 3;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 0;
}

/* 新闻动态区域 */
.news-dynamic {
    background-color: white;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    height: 500px;
}

.section-title {
    font-size: 24px;
    color: #0a4d9c;
    padding-bottom: 12px;
    margin-bottom: 20px;
    border-bottom: 3px solid #0a4d9c;
    display: flex;
    align-items: center;
}

.section-title i {
    margin-right: 10px;
}

/* 新闻动态内部布局：左侧轮播图，右侧新闻列表 */
.news-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 25px;
    flex: 1;
    min-height: 0;
}

/* 轮播图样式 */
.carousel {
    overflow: hidden;
    border-radius: 6px;
    position: relative;
    height: 100%;
}

.carousel-inner {
    display: flex;
    transition: transform 0.5s ease;
    height: 100%;
}

.carousel-item {
    min-width: 100%;
    height: 100%;
    position: relative;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    padding: 20px;
}

.carousel-caption h3 {
    font-size: 20px;
    margin-bottom: 8px;
}

.carousel-indicators {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s;
}

.indicator.active {
    background-color: white;
}

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    transition: background-color 0.3s;
    z-index: 10;
}

.carousel-control:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.carousel-control.prev {
    left: 15px;
}

.carousel-control.next {
    right: 15px;
}

/* 新闻列表样式 */
.news-list {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow-y: auto;
}

.news-item {
    padding: 16px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    transition: all 0.2s;
}

.news-item:last-child {
    border-bottom: none;
}

.news-item:hover {
    background-color: #f9f9f9;
    padding-left: 10px;
}

.news-title {
    font-size: 16px;
    color: #333;
    text-decoration: none;
    flex: 1;
    line-height: 1.5;
}

.news-title:hover {
    color: #0a4d9c;
}

.news-date {
    color: #888;
    font-size: 14px;
    min-width: 85px;
    text-align: right;
}

.news-tag {
    display: inline-block;
    padding: 3px 8px;
    background-color: #e8f0fe;
    color: #0a4d9c;
    border-radius: 4px;
    font-size: 12px;
    margin-right: 10px;
}

/* 所有新闻区块通用样式 */
.news-section {
    background-color: white;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    height: 500px;
}

.section-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.simple-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow-y: auto;
}

/* 确保同一行两列高度一致 */
.row-equal-height {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: stretch;
}

/* 简化的页脚样式 */
.footer {
    background-color: #0a4d9c;
    color: white;
    padding: 30px 5% 20px;
    margin-top: 50px;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-info {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    font-size: 16px;
}

.footer-info-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.footer-info-item i {
    font-size: 14px;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    margin-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .main-carousel {
        height: 350px;
    }
    
    .main-carousel-caption h3 {
        font-size: 20px;
    }
    
    .first-row,
    .second-row {
        grid-template-columns: 1fr;
    }
    
    .news-container {
        grid-template-columns: 1fr;
    }
    
    .carousel {
        height: 280px;
    }
    
    .news-dynamic,
    .news-section {
        height: auto;
        min-height: 400px;
    }
}

@media (max-width: 768px) {
    .main-carousel {
        height: 300px;
    }
    
    .main-carousel-caption h3 {
        font-size: 18px;
    }
    
    .header-top {
        flex-direction: column;
        gap: 20px;
    }
    
    .search-container {
        width: 100%;
    }
    
    .footer-info {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
}

@media (max-width: 576px) {
    .main-carousel {
        height: 250px;
    }
    
    .main-carousel-caption h3 {
        font-size: 16px;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .section-title {
        font-size: 22px;
    }
    
    .carousel {
        height: 200px;
    }
    
    .news-dynamic,
    .news-section {
        height: auto;
        min-height: 350px;
    }
}