/* 新闻页面样式 */
.main-content {
    position: relative;
    min-height: 400px;
    background: url('../images/sky-bg.svg') no-repeat center top;
    background-size: cover;
    padding: 20px 0;
    z-index: 1;

}

/* 新增容器以限制內部模塊的寬度 */
.news-container {
    width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 页面标题 */
.main-title {
    text-align: left;
    margin-bottom: 40px;
    position: relative;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

.main-title h1 {
    font-size: 32px;
    color: #1e3a8a;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
    text-align: left;
}

.main-title h1:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    transform: translateX(0);
    width: 80px;
    height: 3px;
    background: #2563eb;
    border-radius: 2px;
}

/* 新闻布局 */
.news-row {
    width: 100%;
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 30px;
}

/* Banner区域样式 - 修改为50%宽度 */
.news-banner {
    flex: 1;
    position: relative;
    height: 280px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    background: #fff;
    min-width: 0; /* 允许flex item收缩 */
}

.banner-slider {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: all 0.5s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

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

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

.slide-text {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: #fff;
    z-index: 2;
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.slide-text h2 {
    margin: 0 0 10px;
    font-size: 28px;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.slide-text p {
    margin: 0;
    font-size: 16px;
    line-height: 1.5;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    opacity: 0.9;
}

.banner-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.dot.active {
    background: #fff;
    transform: scale(1.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.3);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    z-index: 3;
    transition: all 0.3s ease;
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-slider:hover .slider-btn {
    opacity: 1;
}

.slider-btn:hover {
    background: rgba(0, 0, 0, 0.6);
    transform: translateY(-50%) scale(1.1);
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

/* 新闻区域样式 */
/* 新闻区域样式 - 修改为50%宽度 */
.news-section {
    flex: 1;
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    min-width: 0; /* 允许flex item收缩 */
    transition: transform 0.3s ease;
    height: 280px;
    display: flex;
    flex-direction: column;
}

.news-section:hover {
    transform: translateY(-2px);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    gap: 30px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.section-header h2 {
    margin: 0;
    font-size: 20px;
    color: #1e3a8a;
    font-weight: 600;
    position: relative;
    padding-left: 12px;
}

.section-header h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 18px;
    background: #2563eb;
    border-radius: 2px;
}

.more {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    padding: 4px 8px;
    border-radius: 4px;
    background: #f8f9fa;
}

.more:hover {
    color: #2563eb;
    background: #e6f4ff;
}

.news-list {
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
    overflow-y: auto;
    max-height: calc(280px - 80px);
}

.news-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    border-bottom: 1px dashed #eee;
}

.news-item:hover {
    color: #2563eb;
    padding-left: 8px;
}

.news-title {
    flex: 1;
    margin-right: 15px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 15px;
    position: relative;
    padding-left: 15px;
}

.news-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    background: #2563eb;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.news-item:hover .news-title::before {
    opacity: 1;
}

.news-date {
    color: #666;
    font-size: 14px;
    padding: 2px 8px;
    background: #f8f9fa;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.news-item:hover .news-date {
    background: #e6f4ff;
    color: #2563eb;
}

/* 空状态样式 */
.empty-news {
    padding: 30px 0;
    text-align: center;
    color: #999;
}

.empty-news p {
    margin: 0;
    font-size: 14px;
}

.empty-news p::before {
    content: '';
    display: block;
    width: 40px;
    height: 40px;
    margin: 0 auto 10px;
    background: url('../images/empty-state.svg') no-repeat center;
    background-size: contain;
    opacity: 0.5;
}

/* 响应式布局 */
@media (max-width: 768px) {
    .news-content {
        padding: 15px;
    }

    .news-row {
        flex-direction: column;
        gap: 20px;
        margin-bottom: 20px;
    gap: 30px;
    }

    .news-banner,
    .news-section {
        width: 100%;
    }

    .news-banner {
        height: 210px;
    }

    .news-section {
        height: 210px;
    }

    .news-list {
        max-height: calc(210px - 80px);
    }

    .slide-text h2 {
        font-size: 24px;
    }

    .slide-text p {
        font-size: 14px;
    }

    .slider-btn {
        width: 36px;
        height: 36px;
        font-size: 18px;
        opacity: 1;
    }

    .section-header h2 {
        font-size: 18px;
    }

    .news-title {
        font-size: 14px;
    }

    .news-date {
        font-size: 12px;
    }

    .empty-news {
        padding: 20px 0;
    }

    .empty-news p::before {
        width: 32px;
        height: 32px;
    }
}

/* 信息内容 */
.info-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.info-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

/* 公告部分 */
.announcement-wrapper {
    margin-top: 30px;
}

.info-category {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.notice-section {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.announcement-section {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.notice-header {
    margin-bottom: 20px;
    gap: 30px;
}

.notice-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 15px;
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 20px;
    gap: 30px;
}

.notice-title:hover {
    cursor: pointer;
}

.notice-title h2 {
    font-size: 20px;
    color: #1e3a8a;
    position: relative;
    padding-left: 15px;
    margin: 0;
}

.notice-title h2::after {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    background: #2563eb;
    border-radius: 2px;
}

.notice-title .more-link {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.notice-title .more-link:hover {
    color: #2563eb;
}

.notice-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.notice-list li {
    margin-bottom: 15px;
}

.notice-list li:last-child {
    margin-bottom: 0;
}

.notice-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.notice-list a:hover {
    background: #f8fafc;
}

.notice-list .title {
    flex: 1;
    color: #333;
    font-size: 15px;
    margin-right: 15px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.notice-list .date {
    color: #666;
    font-size: 14px;
    flex-shrink: 0;
}

/* 响应式布局 */
@media (max-width: 768px) {
    .notice-header {
        flex-direction: column;
    }

    .notice-title {
        margin-bottom: 15px;
        padding-bottom: 10px;
    }

    .notice-title .more-link {
        margin-top: 10px;
    }

    .info-list {
        grid-template-columns: 1fr;
    }

    .notice-section,
    .announcement-section {
        padding: 15px;
    }
}

.announcement-section:hover {
    transform: translateY(-3px);
}

.announcement-section h2 {
    font-size: 20px;
    color: #1e3a8a;
    position: relative;
    padding-left: 15px;
    margin-bottom: 20px;
    gap: 30px;
}

.announcement-section h2::after {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    background: #2563eb;
    border-radius: 2px;
}

.announcement-section .more-link {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    padding: 5px 10px;
    border-radius: 4px;
    transition: all 0.3s ease;
    background: #f8fafc;
}

.announcement-section .more-link:hover {
    background: #eef4ff;
    color: #2563eb;
}

.announcement-section .title-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.announcement-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.announcement-list li {
    margin-bottom: 15px;
}

.announcement-list li:last-child {
    margin-bottom: 0;
}

.announcement-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.announcement-list a:hover {
    background: #f8fafc;
    transform: translateX(5px);
}

.announcement-list .title {
    flex: 1;
    color: #333;
    font-size: 15px;
    margin-right: 15px;
    position: relative;
    padding-left: 20px;
}

.announcement-list .title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: #2563eb;
    border-radius: 50%;
}

.announcement-list .date {
    color: #666;
    font-size: 14px;
    padding: 4px 8px;
    background: #f8fafc;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.announcement-list a:hover .date {
    background: #eef4ff;
}

@media (max-width: 768px) {
    .announcement-section {
        margin-top: 20px;
    }

    .announcement-section h2 {
        font-size: 18px;
    }

    .announcement-list .title {
        font-size: 14px;
    }

    .announcement-list .date {
        font-size: 12px;
    }

    .announcement-section .more-link {
        display: none;
    }
} 