/* ========================================
   新闻中心样式 - news.css
   ======================================== */

/* ===== Hero ===== */
.news-hero {
    position: relative;
    height: 280px;
    background: linear-gradient(135deg, #0a1628 0%, #1e3a5f 50%, #0a1628 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 70px;
}

.news-hero .hero-bg {
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.5;
}

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

.news-hero .hero-breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 16px;
    font-size: 14px;
}

.news-hero .hero-breadcrumb a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.3s;
}

.news-hero .hero-breadcrumb a:hover {
    color: #fff;
}

.news-hero .hero-breadcrumb .sep {
    color: rgba(255,255,255,0.4);
}

.news-hero .hero-breadcrumb .current {
    color: #fff;
}

.news-hero .hero-title {
    font-size: 42px;
    font-weight: 600;
    margin: 0 0 12px;
    letter-spacing: 2px;
}

.news-hero .hero-desc {
    font-size: 16px;
    color: rgba(255,255,255,0.7);
    margin: 0;
}

/* ===== 分类Tab ===== */
.news-tabs {
    background: #fff;
    border-bottom: 1px solid #E5E6EB;
    padding: 0;
}

.news-tabs .tabs-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 0;
}

.news-tabs .tab-item {
    padding: 10px 24px;
    font-size: 15px;
    color: #4E5969;
    text-decoration: none;
    border-radius: 20px;
    transition: all 0.3s;
}

.news-tabs .tab-item:hover {
    color: #0052D9;
    background: #E8F3FF;
}

.news-tabs .tab-item.active {
    color: #fff;
    background: #0052D9;
}

/* ===== 新闻列表 ===== */
.news-list-section {
    padding: 48px 0 80px;
    background: #F7F8FA;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* 新闻卡片 */
.news-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: all 0.3s;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.1);
}

.news-card .card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.news-card .card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

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

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

.news-card .card-date {
    position: absolute;
    top: 16px;
    left: 16px;
    background: #0052D9;
    color: #fff;
    padding: 8px 12px;
    border-radius: 8px;
    text-align: center;
    min-width: 50px;
}

.news-card .card-date .day {
    display: block;
    font-size: 20px;
    font-weight: 600;
    line-height: 1;
}

.news-card .card-date .month {
    display: block;
    font-size: 12px;
    margin-top: 4px;
    opacity: 0.9;
}

.news-card .card-content {
    padding: 20px;
}

.news-card .card-category {
    display: inline-block;
    padding: 4px 10px;
    font-size: 12px;
    color: #0052D9;
    background: #E8F3FF;
    border-radius: 4px;
    margin-bottom: 12px;
}

.news-card .card-title {
    font-size: 18px;
    font-weight: 500;
    color: #1D2129;
    margin: 0 0 10px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card:hover .card-title {
    color: #0052D9;
}

.news-card .card-desc {
    font-size: 14px;
    color: #86909C;
    margin: 0 0 16px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card .card-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 13px;
    color: #86909C;
}

.news-card .card-meta svg {
    vertical-align: middle;
    margin-right: 4px;
}

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

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    font-size: 14px;
    color: #4E5969;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s;
}

.pagination a:hover {
    background: #E8F3FF;
    color: #0052D9;
}

.pagination .active,
.pagination span.current {
    background: #0052D9;
    color: #fff;
}

/* ===== 文章详情页 ===== */
.article-page {
    margin-top: 70px;
}

/* 面包屑 */
.article-breadcrumb {
    background: #F7F8FA;
    padding: 16px 0;
    border-bottom: 1px solid #E5E6EB;
}

.article-breadcrumb a {
    color: #4E5969;
    text-decoration: none;
    transition: color 0.3s;
}

.article-breadcrumb a:hover {
    color: #0052D9;
}

.article-breadcrumb .sep {
    margin: 0 8px;
    color: #C9CDD4;
}

.article-breadcrumb .current {
    color: #1D2129;
}

/* 文章主体 */
.article-main {
    padding: 40px 0 80px;
    background: #fff;
}

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

/* 文章内容 */
.article-content {
    min-width: 0;
}

.article-header {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid #E5E6EB;
}

.article-header .article-category {
    display: inline-block;
    padding: 6px 14px;
    font-size: 13px;
    color: #0052D9;
    background: #E8F3FF;
    border-radius: 6px;
    margin-bottom: 16px;
}

.article-header .article-title {
    font-size: 32px;
    font-weight: 600;
    color: #1D2129;
    margin: 0 0 20px;
    line-height: 1.4;
}

.article-header .article-meta {
    display: flex;
    align-items: center;
    gap: 24px;
    font-size: 14px;
    color: #86909C;
}

.article-header .meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* 封面图 */
.article-cover {
    margin-bottom: 32px;
    border-radius: 12px;
    overflow: hidden;
}

.article-cover img {
    width: 100%;
    height: auto;
    display: block;
}

/* 正文 */
.article-body {
    font-size: 16px;
    line-height: 1.8;
    color: #1D2129;
}

.article-body p {
    margin: 0 0 20px;
}

.article-body h2 {
    font-size: 24px;
    font-weight: 600;
    margin: 40px 0 20px;
    padding-left: 16px;
    border-left: 4px solid #0052D9;
}

.article-body h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 32px 0 16px;
}

.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

.article-body blockquote {
    margin: 24px 0;
    padding: 20px 24px;
    background: #F7F8FA;
    border-left: 4px solid #0052D9;
    border-radius: 0 8px 8px 0;
    color: #4E5969;
}

.article-body ul,
.article-body ol {
    margin: 16px 0;
    padding-left: 24px;
}

.article-body li {
    margin: 8px 0;
}

.article-body a {
    color: #0052D9;
    text-decoration: none;
}

.article-body a:hover {
    text-decoration: underline;
}

/* 标签 */
.article-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid #E5E6EB;
}

.article-tags .tags-label {
    font-size: 14px;
    color: #86909C;
}

.article-tags .tag-item {
    padding: 6px 14px;
    font-size: 13px;
    color: #4E5969;
    background: #F7F8FA;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s;
}

.article-tags .tag-item:hover {
    color: #0052D9;
    background: #E8F3FF;
}

/* 上下篇导航 */
.article-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 32px;
    padding: 24px;
    background: #F7F8FA;
    border-radius: 12px;
}

.article-nav .nav-prev,
.article-nav .nav-next {
    padding: 16px;
}

.article-nav .nav-next {
    text-align: right;
}

.article-nav .nav-label {
    display: block;
    font-size: 13px;
    color: #86909C;
    margin-bottom: 8px;
}

.article-nav a {
    font-size: 15px;
    color: #1D2129;
    text-decoration: none;
    transition: color 0.3s;
}

.article-nav a:hover {
    color: #0052D9;
}

.article-nav .nav-empty {
    font-size: 15px;
    color: #86909C;
}

/* ===== 侧边栏 ===== */
.article-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sidebar-card {
    background: #F7F8FA;
    border-radius: 12px;
    padding: 20px;
}

.sidebar-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
    color: #1D2129;
    margin: 0 0 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #E5E6EB;
}

/* 热门文章 */
.hot-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hot-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    text-decoration: none;
    padding: 8px 0;
    border-bottom: 1px dashed #E5E6EB;
}

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

.hot-item .hot-num {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    background: #C9CDD4;
    border-radius: 6px;
}

.hot-item:nth-child(1) .hot-num { background: #FF6A00; }
.hot-item:nth-child(2) .hot-num { background: #FF9C6E; }
.hot-item:nth-child(3) .hot-num { background: #FFB99D; }

.hot-item .hot-title {
    font-size: 14px;
    color: #4E5969;
    line-height: 1.5;
    transition: color 0.3s;
}

.hot-item:hover .hot-title {
    color: #0052D9;
}

/* 相关推荐 */
.related-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.related-item {
    display: flex;
    gap: 12px;
    text-decoration: none;
}

.related-thumb {
    flex-shrink: 0;
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
}

.related-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.related-title {
    font-size: 14px;
    color: #1D2129;
    line-height: 1.4;
    transition: color 0.3s;
}

.related-item:hover .related-title {
    color: #0052D9;
}

.related-date {
    font-size: 12px;
    color: #86909C;
}

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .article-layout {
        grid-template-columns: 1fr;
    }

    .article-sidebar {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .news-hero {
        height: 200px;
    }

    .news-hero .hero-title {
        font-size: 28px;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .news-tabs .tabs-wrap {
        overflow-x: auto;
        padding-bottom: 12px;
    }

    .article-header .article-title {
        font-size: 24px;
    }

    .article-header .article-meta {
        flex-wrap: wrap;
        gap: 12px;
    }

    .article-nav {
        grid-template-columns: 1fr;
    }

    .article-nav .nav-next {
        text-align: left;
    }

    .article-sidebar {
        grid-template-columns: 1fr;
    }
}
