/* 全局基础重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.65;
}
a {
    text-decoration: none;
    color: inherit;
}
ul, li {
    list-style: none;
}
img {
    display: block;
    max-width: 100%;
}

/* 头部兼容header-footer.css */
.header {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    position: sticky;
    top: 0;
    z-index: 100;
}
.hfc-header-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 24px;
}
.hfc-logo img {
    height: 40px;
}
.hfc-nav {
    display: flex;
    gap: 24px;
    align-items: center;
}
.hfc-nav-link {
    font-size: 14px;
    color: #555;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s;
}
.hfc-nav-link:hover,
.hfc-nav-link.is-active {
    color: #3498db;
}
.hfc-dropdown-panel {
    position: absolute;
    left: 0;
    top: 100%;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    padding: 16px;
    width: 100%;
}
.hfc-category-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 10px;
}
.hfc-category-card img {
    width: 100%;
    border-radius: 6px;
}
.hfc-hot-search {
    margin-top: 12px;
}
.hfc-hot-search a {
    margin-right: 10px;
    color: #3498db;
    font-size: 13px;
}

/* 面包屑 */
.breadcrumb {
    max-width: 1280px;
    margin: 0 auto;
    padding: 16px 24px;
    font-size: 13px;
    color: #95a5a6;
}
.breadcrumb a {
    color: #3498db;
}
.breadcrumb span {
    margin: 0 8px;
    color: #ddd;
}

/* 容器 & 主左右布局【核心：内容与侧边顶部对齐】 */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px 30px;
}
.main-layout {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

/* 左侧主内容区 */
.news-section {
    flex: 1;
    background: #ffffff;
    border-radius: 12px;
    padding: 24px;
    border: 1px solid #e8edf3;
}
.section-header {
    display: flex;
    align-items: center;
    margin-bottom: 24px;
}
.section-title-bar {
    width: 4px;
    height: 18px;
    background: #3498db;
    margin-right: 10px;
}
.section-title h1 {
    font-size: 20px;
    font-weight: 600;
    color: #222;
}
.section-desc {
    font-size: 13px;
    color: #888;
    margin-left: 12px;
}

/* Tab导航 */
/* Tab导航 单行紧凑版 9个标签一排放下 */
.news-tabs {
    display: flex;
    /* 禁止换行，强制一行 */
    flex-wrap: nowrap;
    gap: 8px;
    padding-bottom: 16px;
    margin-bottom: 24px;
    border-bottom: 1px solid #e5e7eb;
    /* 内容超出可横向滚动，小屏不挤爆布局 */
    overflow-x: auto;
    /* 隐藏滚动条美化 */
    scrollbar-width: none;
}
.news-tabs::-webkit-scrollbar {
    display: none;
}
.news-tab {
    /* 缩小内边距压缩宽度 */
    padding: 8px 12px;
    font-size: 13px;
    color: #666;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    transition: all 0.2s ease;
    white-space: nowrap;
    /* 不自动收缩，保证文字完整 */
    flex-shrink: 0;
}
.news-tab:hover {
    border-color: #3498db;
    color: #3498db;
    background: rgba(52, 152, 219, 0.05);
}
.news-tab.active {
    background: #3498db;
    color: #fff;
    border-color: #3498db;
}
.news-tab.active:hover {
    background: #2980b9;
}
.tab-icon {
    font-size: 14px;
}
.tab-content {
    display: none;
}
.tab-content.active {
    display: block;
}
/* 文章列表 规整统一 */
.article-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.article-dot {
    display: none;
}
.article-item {
    display: flex;
    gap: 20px;
    padding-bottom: 24px;
    border-bottom: 1px solid #eee;
    align-items: flex-start;
}
.article-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.article-item:hover .article-title {
    color: #3498db;
}
.article-img {
    width: 160px;
    height: 100px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    background: #f3f4f6;
}
.article-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.25s ease;
}
.article-item:hover .article-img img {
    transform: scale(1.03);
}
.article-content {
    flex: 1;
    min-width: 0;
}
.article-title {
    font-size: 17px;
    font-weight: 500;
    color: #222;
    margin-bottom: 8px;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.article-desc {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.article-meta {
    display: flex;
    gap: 20px;
    font-size: 13px;
    color: #999;
}

/* 分页 统一规范、高亮明显 */
.pagination {
    margin-top: 36px;
    border-top: none;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}
.pagination li {
    list-style: none;
}
.pagination li::marker {
    display: none;
}
.pagination a,
.pagination span {
    min-width: 54px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid #d8dde6;
    background: #fff;
}
.pagination a:hover {
    border-color: #3498db;
    color: #3498db;
    background-color: rgba(52, 152, 219, 0.05);
}
/* 当前页两种场景统一高亮 */
.pagination li.active a,
.pagination span.current {
    background-color: #3498db;
    border-color: #3498db;
    color: #ffffff;
    font-weight: 600;
}
.pagination span.disabled {
    border: 1px solid #e5e9f0;
    color: #a0a6b1;
    background-color: #f7f8fa;
    cursor: not-allowed;
}

/* 侧边栏【与news-section规格完全统一，顶部对齐】 */
.sidebar {
    flex: 0 0 280px;
    width: 280px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.sidebar .widget {
    background: #ffffff;
    border-radius: 12px;
    padding: 24px;
    border: 1px solid #e8edf3;
}
.widget-title {
    font-size: 16px;
    font-weight: 600;
    color: #222;
    padding-left: 10px;
    border-left: 4px solid #3498db;
    margin-bottom: 16px;
}
.hot-cards li,
.related-list li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}
.hot-cards li:last-child,
.related-list li:last-child {
    border-bottom: none;
}
.hot-cards a {
    color: #444;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.related-list a {
    color: #444;
    font-size: 14px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}
.hot-cards a:hover,
.related-list a:hover {
    color: #3498db;
}
.arrow-icon {
    color: #999;
}
.related-list .date {
    font-size: 12px;
    color: #aaa;
}

/* 底部footer */
.footer {
    background: #2c3e50;
    color: #bdc3c7;
    padding: 40px 24px 20px;
    margin-top: 50px;
}
.hfc-footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.hfc-footer-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: center;
    font-size: 13px;
}
.hfc-footer-link {
    color: #8cb6d8;
}
.hfc-footer-link:hover {
    color: #3498db;
}
.hfc-footer-police-icon {
    height: 16px;
    vertical-align: middle;
    margin-right: 4px;
}

/* 响应式适配 */
@media (max-width: 1024px) {
    .sidebar {
        flex: 0 0 250px;
        width: 250px;
    }
    .article-img {
        width: 140px;
        height: 90px;
    }
}
@media (max-width: 768px) {
    .hfc-nav {
        display: none;
    }
    .breadcrumb {
        padding: 12px 16px;
        font-size: 12px;
    }
    .container {
        padding: 0 16px 30px;
    }
    .main-layout {
        flex-direction: column;
    }
    .sidebar {
        flex: none;
        width: 100%;
        margin-top: 24px;
    }
    .news-section,
    .sidebar .widget {
        padding: 20px 16px;
    }
    .article-item {
        flex-direction: column;
        gap: 14px;
        padding-bottom: 16px;
    }
    .article-img {
        width: 100%;
        height: 160px;
    }
    .pagination {
        margin-top: 26px;
        gap: 8px;
    }
    .pagination a,
    .pagination span {
        min-width: 36px;
        height: 36px;
        font-size: 13px;
    }
}
@media (max-width: 480px) {
    .hfc-header-inner {
        padding: 10px 16px;
    }
    .hfc-logo img {
        height: 32px;
    }
    .news-tab {
        padding: 10px 12px;
        font-size: 13px;
    }
    .article-img {
        height: 140px;
    }
    .article-title {
        font-size: 16px;
    }
}