* {
    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%;}

.navbar {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
    display: flex;
    justify-content: center;}

/* cms组件导航菜单样式覆盖 - 确保居中 */
.navbar-container > div {
    display: flex;
    justify-content: center;
    width: 100%;}

.navbar-container ul {
    display: flex;
    list-style: none;
    justify-content: center; /* 确保菜单项居中 */
    flex-wrap: wrap; /* 允许在小屏幕上换行 */
    margin: 0;
    padding: 0;}

.navbar-container li {
    position: relative;}

.navbar-container a {
    display: block;
    padding: 18px 22px;
    color: white;
    text-decoration: none;
    font-size: 17px;
    font-weight: 500;
    transition: all 0.3s;
    white-space: nowrap;}

.navbar-container a:hover {
    background-color: rgba(255, 255, 255, 0.15);}

/* 如果CMS组件有下拉菜单的样式 */
.navbar-container li ul {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    min-width: 220px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    border-radius: 0 0 6px 6px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1000;
    display: none;}

.navbar-container li:hover ul {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    display: block;}

.navbar-container li ul li {
    list-style: none;
    border-bottom: 1px solid #f0f0f0;}

.navbar-container li ul li:last-child {
    border-bottom: none;}

.navbar-container li ul a {
    display: block;
    padding: 14px 20px;
    color: #333;
    text-decoration: none;
    font-size: 16px;
    transition: all 0.2s;}

.navbar-container li ul a:hover {
    background-color: #f8f9fa;
    color: #0a4d9c;
    padding-left: 25px;}

/* 导航栏下方轮播图样式 */
.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%;}
    
    .nav-menu {
        flex-wrap: wrap;}
    
    .nav-link {
        padding: 15px 18px;
        font-size: 16px;}
    
    .navbar-container ul {
        justify-content: center;}
    
    .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;}
    
    .nav-menu {
        justify-content: center;}
    
    .container {
        padding: 0 15px;}
    
    .section-title {
        font-size: 22px;}
    
    .carousel {
        height: 200px;}
    
    .news-dynamic,
    .news-section {
        height: auto;
        min-height: 350px;}
}