/* 新闻Banner区域 */
.news-banner {
    position: relative;
    height: 300px;
    background: url('https://via.placeholder.com/1920x300?text=News+Banner') no-repeat center center;
    background-size: cover;
    color: #fff;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 23, 55, 0.8);
    display: flex;
    align-items: center;
}

.news-banner .container {
    position: relative;
}

.news-banner .breadcrumb {
    position: absolute;
    top: -40px;
    left: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #fff;
}

.news-banner .breadcrumb a {
    color: #fff;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.news-banner .breadcrumb a:hover {
    opacity: 1;
}

.news-banner .breadcrumb a.active {
    opacity: 1;
    font-weight: 500;
}

.news-banner .breadcrumb span {
    color: #ccc;
    font-size: 12px;
}

.news-banner h1 {
    font-size: 42px;
    font-weight: 900;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.news-banner p {
    font-size: 18px;
    max-width: 600px;
    line-height: 1.6;
    opacity: 0.9;
}

/* 新闻主内容区 */
.news-main {
    padding: 50px 0;
    background-color: #fff;
}

.news-wrapper {
    display: grid;
    grid-template-columns: 7fr 3fr;
    gap: 40px;
}

/* 左侧新闻内容区 */
.news-content {
    width: 100%;
}

/* 新闻分类标签 */
.news-tabs {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 30px;
    border-bottom: 1px solid #e1e4e8;
    padding-bottom: 10px;
    flex-wrap: wrap;
}

.news-tabs .tab-btn {
    background: none;
    border: none;
    padding: 8px 15px;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 3px;
}

.news-tabs .tab-btn.active {
    background-color: #0066cc;
    color: #fff;
}

.news-tabs .tab-btn:hover:not(.active) {
    color: #0066cc;
    background-color: #f0f7ff;
}

/* 新闻列表 */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 40px;
}

.news-item {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 20px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e1e4e8;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.news-item:last-child {
    border-bottom: none;
}

.news-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-item:hover .news-image img {
    transform: scale(1.05);
}

.news-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.news-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    color: #0066cc;
    margin-bottom: 5px;
}

.news-info h3 {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
}

.news-info h3 a {
    color: #001737;
    transition: color 0.3s ease;
}

.news-info h3 a:hover {
    color: #0066cc;
}

.news-excerpt {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 10px;
}

.news-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 13px;
    color: #888;
    margin-top: auto;
}

.news-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.read-more {
    margin-left: auto;
    color: #0066cc;
    font-weight: 600;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #0052a3;
}

.read-more i {
    font-size: 10px;
}

/* 分页控件 */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.page-btn {
    width: 36px;
    height: 36px;
    border: 1px solid #e1e4e8;
    background-color: #fff;
    color: #666;
    font-size: 14px;
    font-weight: 500;
    border-radius: 3px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-btn.active {
    background-color: #0066cc;
    color: #fff;
    border-color: #0066cc;
}

.page-btn:hover:not(.active) {
    border-color: #0066cc;
    color: #0066cc;
}

.page-ellipsis {
    font-size: 14px;
    color: #888;
    padding: 0 5px;
}

.page-next {
    width: 36px;
    height: 36px;
    border: 1px solid #e1e4e8;
    background-color: #fff;
    color: #666;
    border-radius: 3px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-next:hover {
    border-color: #0066cc;
    color: #0066cc;
}

/* 右侧侧边栏 */
.news-sidebar {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sidebar-widget {
    background-color: #f5f7fa;
    padding: 25px;
    border-radius: 4px;
}

.sidebar-widget h3 {
    font-size: 18px;
    font-weight: 700;
    color: #001737;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #0066cc;
}

/* 搜索组件 */
.search-widget {
    position: relative;
}

.search-input {
    width: 100%;
    padding: 12px 15px;
    padding-right: 45px;
    border: 1px solid #e1e4e8;
    border-radius: 3px;
    font-size: 14px;
    color: #333;
    outline: none;
    transition: border-color 0.3s ease;
}

.search-input:focus {
    border-color: #0066cc;
}

.search-btn {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #666;
    font-size: 14px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.search-btn:hover {
    color: #0066cc;
}

/* 分类列表 */
.category-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.category-list li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #666;
    font-size: 14px;
    transition: color 0.3s ease;
    padding: 5px 0;
}

.category-list li a:hover {
    color: #0066cc;
}

.category-list li a i {
    font-size: 10px;
    margin-right: 8px;
}

.category-count {
    color: #888;
    font-size: 12px;
}

/* 最近文章 */
.recent-posts-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.recent-posts-list li {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 10px;
}

.recent-post-image {
    width: 80px;
    height: 60px;
    overflow: hidden;
}

.recent-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.recent-posts-list li:hover .recent-post-image img {
    transform: scale(1.05);
}

.recent-post-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.recent-post-info a {
    font-size: 13px;
    color: #001737;
    font-weight: 500;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.recent-post-info a:hover {
    color: #0066cc;
}

.post-date {
    font-size: 12px;
    color: #888;
}

/* 标签云 */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    padding: 6px 12px;
    background-color: #fff;
    border: 1px solid #e1e4e8;
    border-radius: 20px;
    font-size: 12px;
    color: #666;
    transition: all 0.3s ease;
}

.tag:hover {
    background-color: #0066cc;
    color: #fff;
    border-color: #0066cc;
}

/* 订阅组件 */
.subscribe-widget {
    background-color: #0066cc;
    color: #fff;
}

.subscribe-widget h3 {
    color: #fff;
    border-bottom-color: rgba(255,255,255,0.3);
}

.subscribe-widget p {
    font-size: 14px;
    margin-bottom: 15px;
    line-height: 1.6;
    opacity: 0.9;
}

.subscribe-form {
    position: relative;
    display: flex;
}

.subscribe-input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: 3px 0 0 3px;
    font-size: 14px;
    outline: none;
}

.subscribe-btn {
    width: 45px;
    background-color: #001737;
    color: #fff;
    border: none;
    border-radius: 0 3px 3px 0;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.subscribe-btn:hover {
    background-color: #002a66;
}

/* 响应式适配 */
@media (max-width: 1200px) {
    .news-wrapper {
        grid-template-columns: 6fr 4fr;
        gap: 30px;
    }
    
    .news-item {
        grid-template-columns: 250px 1fr;
    }
    
    .news-banner h1 {
        font-size: 36px;
    }
}

@media (max-width: 992px) {
    .news-wrapper {
        grid-template-columns: 1fr;
    }
    
    .news-item {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .news-image {
        height: 250px;
    }
    
    .news-banner {
        height: 250px;
    }
    
    .news-banner h1 {
        font-size: 32px;
    }
    
    .news-banner p {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .news-main {
        padding: 30px 0;
    }
    
    .news-banner {
        height: 200px;
    }
    
    .news-banner h1 {
        font-size: 28px;
    }
    
    .news-banner .breadcrumb {
        top: -30px;
    }
    
    .news-tabs {
        gap: 3px;
    }
    
    .news-tabs .tab-btn {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    .news-info h3 {
        font-size: 18px;
    }
    
    .news-meta {
        gap: 10px;
    }
    
    .sidebar-widget {
        padding: 20px;
    }
    
    .subscribe-form {
        flex-direction: column;
        gap: 10px;
    }
    
    .subscribe-input {
        border-radius: 3px;
    }
    
    .subscribe-btn {
        width: 100%;
        padding: 12px;
        border-radius: 3px;
    }
}

@media (max-width: 576px) {
    .news-banner {
        height: 180px;
    }
    
    .news-banner h1 {
        font-size: 24px;
    }
    
    .news-banner p {
        font-size: 14px;
    }
    
    .news-image {
        height: 200px;
    }
    
    .news-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .read-more {
        margin-left: 0;
        margin-top: 10px;
    }
    
    .pagination {
        gap: 5px;
    }
    
    .page-btn {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }
    
    .page-next {
        width: 32px;
        height: 32px;
    }
}