/* 页面Banner区 */
.page-banner {
    position: relative;
    width: 100%;
    max-height: 260px;
    min-height: 160px;
    top: 100px; /* 为fixed header留出空间 */
    background-image: url('images/page_banner.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center;
    padding: 0;
}

.page-banner h1 {
    font-size: 50px;
    font-weight: bold;
    color: white;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    margin: 0 !important;
    padding: 20px 20px;
    line-height: 1;
    background-color: rgba(255, 255, 255, 0.4);
    display: inline-block;
}

/* 移除main标签默认间距，为fixed header留出空间 */
main {
    margin: 0;
    padding: 0;
}

/* 新闻列表页主容器 */
.news-list-main {
    background-color: #ffffff;
    padding: 140px 0 40px 0;
}

.news-list-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 50px;
}

/* 搜索框 */
.news-search-bar {
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
}

.news-search-form {
    display: flex;
    width: 100%;
    max-width: 600px;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    background-color: #fff;
}

.news-search-input {
    flex: 1;
    padding: 12px 20px;
    border: none;
    font-size: 14px;
    outline: none;
}

.news-search-btn {
    padding: 12px 30px;
    background-color: #f5a623;
    color: white;
    border: none;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

.news-search-btn:hover {
    background-color: #e09520;
}

/* 面包屑导航 */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
    font-size: 14px;
    color: #666;
    justify-content: flex-end;
}

.breadcrumb a {
    color: #666;
    text-decoration: none;
}

.breadcrumb a:hover {
    color: #0047ab;
}

.breadcrumb-separator {
    color: #999;
}

.breadcrumb-current {
    color: #333;
    font-weight: 500;
}

/* 主内容区布局 */
.news-content-wrapper {
    display: flex;
    gap: 50px;
}

/* 左侧侧边栏 */
.news-sidebar {
    width: 280px;
    flex-shrink: 0;
}

.sidebar-title {
    font-size: 28px;
    color: #0047ab;
    margin-bottom: 10px;
    font-weight: bold;
}

.sidebar-line {
    height: 3px;
    background-color: #0047ab;
    margin-bottom: 20px;
}

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

.sidebar-item {
    border-bottom: 1px solid #e0e0e0;
    background-color: #fff;
    transition: all 0.3s ease;
    border-radius: 4px;
    margin-bottom: 8px;
    padding: 0 15px;
}

.sidebar-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 71, 171, 0.15);
    border-color: #0047ab;
    background-color: #f8fbff;
}

.sidebar-item a {
    display: flex;
    align-items: center;
    padding: 20px 0;
    text-decoration: none;
    color: #333;
    transition: all 0.3s;
}

.sidebar-item:hover a,
.sidebar-item.active a {
    color: #0047ab;
}

.sidebar-item:hover .sidebar-text {
    font-weight: 700;
}

.sidebar-item:hover .sidebar-dot {
    transform: scale(1.2);
}

.sidebar-item.active {
    background-color: #f0f7ff;
    border-left: 3px solid #0047ab;
}

.sidebar-dot {
    transition: transform 0.3s ease;
}

.sidebar-dot {
    width: 8px;
    height: 8px;
    background-color: #0047ab;
    border-radius: 50%;
    margin-right: 15px;
    flex-shrink: 0;
}

.sidebar-text {
    flex: 1;
    font-size: 16px;
    font-weight: 600;
}

.sidebar-arrow {
    color: #999;
    font-size: 18px;
    margin-left: 10px;
}

.sidebar-item:hover .sidebar-arrow,
.sidebar-item.active .sidebar-arrow {
    color: #0047ab;
}

/* 右侧新闻列表 */
.news-list-content {
    flex: 1;
}

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

.news-list-item {
    display: flex;
    padding: 25px;
    border-bottom: 1px solid #e0e0e0;
    background-color: #fff;
    transition: all 0.3s ease;
    border-radius: 4px;
    margin-bottom: 10px;
}

.news-list-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 71, 171, 0.15);
    border-color: #0047ab;
    background-color: #fff;
}

.news-list-item:hover .news-title a {
    color: #0047ab;
}

.news-list-item:hover .news-day {
    color: #0047ab;
}

.news-date-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 80px;
    padding-right: 20px;
    flex-shrink: 0;
}

.news-day {
    font-size: 28px;
    font-weight: bold;
    color: #0047ab;
    line-height: 1.2;
    white-space: nowrap;
}

.news-year {
    font-size: 16px;
    color: #666;
    margin-top: 5px;
}

.news-info {
    flex: 1;
}

.news-title {
    margin: 0 0 10px 0;
    font-size: 18px;
    line-height: 1.4;
}

.news-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.news-title a:hover {
    color: #0047ab;
}

.news-excerpt {
    margin: 0;
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

/* 新闻详情页 */
.news-detail-content {
    flex: 1;
    background-color: #fff;
    padding: 40px;
    border-radius: 4px;
}

.news-article {
    margin-bottom: 40px;
}

.news-detail-title {
    font-size: 28px;
    font-weight: bold;
    color: #333;
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.4;
}

.news-detail-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #999;
}

.news-detail-divider {
    height: 1px;
    background-color: #ddd;
    margin: 20px 0;
}

.news-detail-body {
    font-size: 18px;
    line-height: 1.8;
    color: #333;
}

.news-detail-body p {
    margin-bottom: 20px;
    text-align: justify;
}

.news-detail-body p img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    display: block;
    margin: 30px auto;
    transition: all 0.3s ease;
    cursor: pointer;
}

.news-detail-body p img:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.news-detail-body strong {
    font-size: 20px;
}

/* 视频播放器 */
.news-detail-body p:has(video) {
    position: relative;
    text-align: center;
    margin: 30px 0;
}

.news-detail-body p video {
    width: 600px;
    height: 340px;
    display: inline-block;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}


.custom-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background-color: rgba(0, 71, 171, 0.9);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-play-btn::before {
    content: '';
    width: 0;
    height: 0;
    border-left: 24px solid #fff;
    border-top: 14px solid transparent;
    border-bottom: 14px solid transparent;
    margin-left: 8px;
}

.custom-play-btn:hover {
    background-color: rgba(0, 71, 171, 1);
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 6px 30px rgba(0, 71, 171, 0.4);
}

.custom-play-btn.hidden {
    display: none;
}

/* 上一条/下一条导航 */
.news-detail-nav {
    border-top: 1px solid #e0e0e0;
    padding-top: 30px;
    margin-top: 40px;
}

.news-nav-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-size: 16px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.news-nav-item:hover {
    background-color: #f5f5f5;
    transform: translateX(5px);
}

.nav-label {
    color: #666;
    flex-shrink: 0;
    margin-right: 10px;
    font-weight: 500;
}

.nav-link {
    color: #333;
    text-decoration: none;
    transition: all 0.3s;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nav-link:hover {
    color: #0047ab;
    text-decoration: underline;
}

/* 翻页样式 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 50px;
    flex-wrap: wrap;
}
.pagination a,
.pagination .prev,
.pagination .next {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 2px solid #e0e0e0;
    border-radius: 20%;
    color: #666;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
    background: #fff;
}
.pagination .page-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 20%;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #fff;
}
.pagination .page-num-current {
    background: #2196F3;
    color: #fff;
}
.pagination .prev:hover,
.pagination .next:hover,
.pagination .page-num:hover {
    background: #2196F3;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
}

/* ========================================
   响应式样式（统一放在页尾）
   ======================================== */

/* 1280px及以下 - 视频尺寸调整 */
@media (max-width: 1280px) {
    .news-detail-body p video {
        width: 400px;
        height: 280px;
    }
}

/* 768px及以下 - 移动端 */
@media (max-width: 768px) {
    /* Banner */
    .page-banner {
        max-height: 200px;
        min-height: 120px;
    }

    .page-banner h1 {
        font-size: 30px;
        padding: 15px 30px;
    }

    /* 新闻列表页 */
    .news-list-container {
        padding: 0 20px;
    }

    .news-content-wrapper {
        flex-direction: column;
    }

    .news-sidebar {
        width: 100%;
    }

    .sidebar-title {
        font-size: 24px;
    }

    .news-search-form {
        max-width: 100%;
    }

    .news-list-item {
        flex-direction: column;
        gap: 15px;
    }

    .news-date-box {
        flex-direction: row;
        width: 100%;
        padding-right: 0;
        gap: 10px;
        align-items: baseline;
    }

    .news-day {
        font-size: 24px;
    }

    .news-year {
        font-size: 14px;
        margin-top: 0;
    }

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

    .breadcrumb {
        justify-content: flex-start;
        font-size: 12px;
    }

    /* 新闻详情页 */
    .news-detail-content {
        padding: 15px;
    }

    /* 视频播放器 */
    .news-detail-body p video {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .custom-play-btn {
        width: 60px;
        height: 60px;
    }

    .custom-play-btn::before {
        border-left: 18px solid #fff;
        border-top: 10px solid transparent;
        border-bottom: 10px solid transparent;
        margin-left: 6px;
    }

    /* 翻页 */
    .pagination .page-num {
        width: 35px;
        height: 35px;
        font-size: 13px;
    }

    .pagination a,
    .pagination .prev,
    .pagination .next {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
}

/* 480px及以下 */
@media (max-width: 480px) {
    .pagination {
        gap: 5px;
    }
    
    .pagination span.page-num {
        display: none;
    }

    .breadcrumb {
        display: none;
    }
}