/* ============================================================
   新闻资讯页面样式
   ============================================================ */

/* 页面横幅 */
.page-banner {
    position: relative;
    height: 300px;
    background-image: url('../images/slide-1.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.banner-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: #fff;
}

.banner-title {
    font-size: 56px;
    font-weight: 700;
    letter-spacing: 4px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.banner-subtitle {
    font-size: 18px;
    font-weight: 400;
    letter-spacing: 2px;
}

/* 面包屑导航 */
.breadcrumb-wrapper {
    background-color: #f8f9fa;
    padding: 15px 0;
    border-bottom: 1px solid #e5e5e5;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #666;
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb-item:hover {
    color: #2989d8;
}

.breadcrumb-item.active {
    color: #2989d8;
    font-weight: 500;
}

.breadcrumb-separator {
    color: #999;
    font-size: 12px;
}

/* 主内容布局 */
.main-content {
    padding: 50px 0;
    background-color: #fff;
}

.content-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
}

/* 左侧侧边栏 */
.sidebar {
    background-color: #fff;
}

.sidebar-header {
    background-color: #2989d8;
    padding: 20px;
    margin-bottom: 0;
}

.sidebar-title {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    margin: 0;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    border: 1px solid #e5e5e5;
    border-top: none;
}

.sidebar-menu-item {
    border-bottom: 1px solid #e5e5e5;
}

.sidebar-menu-item:last-child {
    border-bottom: none;
}

.sidebar-menu-link {
    display: block;
    padding: 15px 20px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
    position: relative;
}

.sidebar-menu-link:hover {
    background-color: #f8f9fa;
    color: #2989d8;
    padding-left: 25px;
}

.sidebar-menu-item.active .sidebar-menu-link {
    color: #2989d8;
    font-weight: 500;
}

.sidebar-menu-item.active .sidebar-menu-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    background-color: #2989d8;
}

/* 右侧内容区域 */
.content-main {
    background-color: #fff;
}

/* 新闻列表 */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 50px;
}

.news-item {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 25px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e5e5e5;
}

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

.news-image {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
    border-radius: 4px;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.news-item:hover .news-image img {
    transform: scale(1.05);
}

.news-date-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 60px;
    height: 60px;
    background-color: rgba(41, 137, 216, 0.95);
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.news-date-day {
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
}

.news-date-month {
    font-size: 12px;
    margin-top: 4px;
}

.news-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.news-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
}

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

.news-title a:hover {
    color: #2989d8;
}

.news-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.8;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.news-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

.news-time {
    font-size: 13px;
    color: #999;
    display: flex;
    align-items: center;
    gap: 6px;
}

.news-more {
    font-size: 13px;
    color: #2989d8;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s;
}

.news-more:hover {
    color: #1e5799;
    gap: 8px;
}

.news-more i {
    font-size: 11px;
}

/* 分页 */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 50px;
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background-color: #fff;
    border: 1px solid #e5e5e5;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    border-radius: 4px;
    transition: all 0.2s;
}

.page-link:hover:not(.disabled) {
    background-color: #2989d8;
    border-color: #2989d8;
    color: #fff;
}

.page-link.active {
    background-color: #2989d8;
    border-color: #2989d8;
    color: #fff;
    font-weight: 500;
}

.page-link.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.page-prev,
.page-next {
    font-size: 12px;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .content-layout {
        grid-template-columns: 240px 1fr;
        gap: 30px;
    }
    
    .news-item {
        grid-template-columns: 240px 1fr;
        gap: 20px;
    }
    
    .news-image {
        height: 160px;
    }
}

@media (max-width: 768px) {
    .page-banner {
        height: 200px;
    }
    
    .banner-title {
        font-size: 36px;
        letter-spacing: 2px;
    }
    
    .banner-subtitle {
        font-size: 14px;
    }
    
    .breadcrumb-wrapper {
        padding: 12px 0;
    }
    
    .breadcrumb {
        font-size: 12px;
        padding: 0 15px;
    }
    
    .main-content {
        padding: 30px 0;
    }
    
    .content-layout {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 0 15px;
    }
    
    .sidebar {
        order: 2;
    }
    
    .content-main {
        order: 1;
    }
    
    .news-list {
        gap: 25px;
        margin-bottom: 40px;
    }
    
    .news-item {
        grid-template-columns: 1fr;
        gap: 15px;
        padding-bottom: 25px;
    }
    
    .news-image {
        height: 200px;
    }
    
    .news-title {
        font-size: 18px;
    }
    
    .news-desc {
        font-size: 13px;
    }
    
    .pagination {
        gap: 5px;
        margin-top: 40px;
    }
    
    .page-link {
        min-width: 36px;
        height: 36px;
        padding: 0 10px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .page-banner {
        height: 160px;
    }
    
    .banner-title {
        font-size: 28px;
    }
    
    .banner-subtitle {
        font-size: 13px;
    }
    
    .news-image {
        height: 180px;
    }
    
    .news-title {
        font-size: 16px;
    }
    
    .news-date-badge {
        width: 50px;
        height: 50px;
        top: 10px;
        left: 10px;
    }
    
    .news-date-day {
        font-size: 20px;
    }
    
    .news-date-month {
        font-size: 11px;
    }
}
