/* ===== 新闻页通用样式 ===== */

.news-page-wrap {
    background: #F7F8FA;
    min-height: 60vh;
    padding: 40px 0;
}

.news-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    gap: 32px;
}

/* ===== 主体内容区 ===== */
.news-main {
    flex: 1;
    min-width: 0;
}

.news-sidebar {
    width: 300px;
    flex-shrink: 0;
}

/* ===== 页面标题 ===== */
.news-page-header {
    margin-bottom: 28px;
}

.news-page-header h1 {
    font-size: 28px;
    font-weight: 700;
    color: #1F2937;
    margin-bottom: 10px;
}

.news-page-header p {
    font-size: 15px;
    color: #6B7280;
    line-height: 1.7;
}

/* ===== 面包屑 ===== */
.news-breadcrumb {
    font-size: 13px;
    color: #9CA3AF;
    margin-bottom: 20px;
    padding: 12px 0;
    border-bottom: 1px solid #E5E7EB;
}

.news-breadcrumb a {
    color: #6B7280;
    text-decoration: none;
    transition: color 0.2s;
}

.news-breadcrumb a:hover {
    color: #00B578;
}

.news-breadcrumb .sep {
    margin: 0 6px;
    color: #D1D5DB;
}

.news-breadcrumb .current {
    color: #1F2937;
    font-weight: 500;
}

/* ===== 新闻列表卡片（三列网格） ===== */
.news-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.news-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    transition: box-shadow 0.3s, transform 0.3s;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    box-shadow: 0 4px 20px rgba(0,181,120,0.1);
    transform: translateY(-2px);
}

.news-card-body {
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.news-card-tag {
    display: inline-block;
    background: #E8F8F4;
    color: #00B578;
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 4px;
    font-weight: 500;
    margin-bottom: 12px;
    align-self: flex-start;
}

.news-card-title {
    margin-bottom: 10px;
}

.news-card-title a {
    font-size: 17px;
    font-weight: 600;
    color: #1F2937;
    text-decoration: none;
    line-height: 1.5;
    transition: color 0.2s;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-title a:hover {
    color: #00B578;
}

.news-card-excerpt {
    font-size: 14px;
    color: #6B7280;
    line-height: 1.7;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.news-card-meta .date {
    display: flex;
    align-items: center;
    gap: 4px;
}

.news-card-meta .tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.news-card-meta .tags a {
    color: #00B578;
    background: #E8F8F4;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    text-decoration: none;
    transition: all 0.2s;
}

.news-card-meta .tags a:hover {
    background: #00B578;
    color: #fff;
}

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

.news-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    font-size: 14px;
    color: #4B5563;
    text-decoration: none;
    background: #fff;
    transition: all 0.2s;
}

.news-pagination .page-numbers:hover {
    border-color: #00B578;
    color: #00B578;
}

.news-pagination .page-numbers.current {
    background: #00B578;
    border-color: #00B578;
    color: #fff;
}

.news-pagination .page-numbers.dots {
    border: none;
    background: none;
}

/* ===== 新闻详情页 ===== */
.article-detail {
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.article-detail-title {
    font-size: 26px;
    font-weight: 700;
    color: #1F2937;
    line-height: 1.5;
    margin-bottom: 16px;
}

.article-detail-info {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #F3F4F6;
    margin-bottom: 28px;
    font-size: 14px;
    color: #9CA3AF;
}

.article-detail-info .info-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.article-detail-info .source {
    color: #6B7280;
}

.article-content {
    font-size: 16px;
    line-height: 2;
    color: #374151;
}

.article-content p {
    margin-bottom: 20px;
}

.article-content h2 {
    font-size: 22px;
    font-weight: 700;
    color: #1F2937;
    margin: 32px 0 16px;
}

.article-content h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1F2937;
    margin: 28px 0 14px;
}

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

.article-content a {
    color: #00B578;
    text-decoration: none;
}

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

.article-content ul,
.article-content ol {
    padding-left: 20px;
    margin-bottom: 20px;
}

.article-content li {
    margin-bottom: 8px;
    line-height: 1.8;
}

.article-content blockquote {
    border-left: 4px solid #00B578;
    background: #F7F8FA;
    padding: 16px 20px;
    margin: 20px 0;
    border-radius: 0 8px 8px 0;
    color: #4B5563;
    font-size: 15px;
}

/* ===== 文章底部 ===== */
.article-footer {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #F3F4F6;
}

.article-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.article-tags-label {
    font-size: 14px;
    color: #6B7280;
    line-height: 28px;
}

.article-tags a {
    display: inline-block;
    padding: 4px 12px;
    background: #E8F8F4;
    color: #00B578;
    font-size: 13px;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.2s;
}

.article-tags a:hover {
    background: #00B578;
    color: #fff;
}

/* ===== 上一篇/下一篇 ===== */
.article-nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.article-nav-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 18px;
    background: #F7F8FA;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s;
}

.article-nav-item:hover {
    background: #E8F8F4;
}

.article-nav-label {
    color: #9CA3AF;
    flex-shrink: 0;
    font-weight: 500;
}

.article-nav-item a {
    color: #4B5563;
    text-decoration: none;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 0.2s;
}

.article-nav-item:hover a {
    color: #00B578;
}

/* ===== 侧边栏 ===== */
.sidebar-widget {
    background: #fff;
    border-radius: 12px;
    padding: 24px 20px;
    margin-bottom: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.sidebar-title {
    font-size: 16px;
    font-weight: 700;
    color: #1F2937;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #00B578;
    display: inline-block;
}

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

.sidebar-post-list li {
    padding: 10px 0;
    border-bottom: 1px solid #F3F4F6;
}

.sidebar-post-list li:last-child {
    border-bottom: none;
}

.sidebar-post-list li a {
    color: #4B5563;
    font-size: 14px;
    text-decoration: none;
    line-height: 1.6;
    transition: color 0.2s;
    display: block;
}

.sidebar-post-list li a:hover {
    color: #00B578;
}

.sidebar-post-list li a .num {
    display: inline-block;
    width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    background: #F3F4F6;
    color: #9CA3AF;
    font-size: 12px;
    border-radius: 4px;
    margin-right: 8px;
    font-weight: 600;
}

.sidebar-post-list li:nth-child(1) a .num { background: #00B578; color: #fff; }
.sidebar-post-list li:nth-child(2) a .num { background: #00B578; color: #fff; opacity: 0.85; }
.sidebar-post-list li:nth-child(3) a .num { background: #00B578; color: #fff; opacity: 0.7; }

.sidebar-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sidebar-tag-list a {
    display: inline-block;
    padding: 5px 12px;
    background: #F7F8FA;
    color: #6B7280;
    font-size: 13px;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.2s;
}

.sidebar-tag-list a:hover {
    background: #E8F8F4;
    color: #00B578;
}

/* ===== 响应式 ===== */
@media (max-width: 960px) {
    .news-container {
        flex-direction: column;
    }

    .news-sidebar {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }
}

@media (max-width: 768px) {
    .news-page-wrap {
        padding: 24px 0;
    }

    .news-page-header h1 {
        font-size: 22px;
    }

    .news-page-header p {
        font-size: 14px;
    }

    .news-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .news-card-body {
        padding: 20px 16px;
    }

    .news-card-title a {
        font-size: 15px;
    }

    .news-card-excerpt {
        font-size: 13px;
        -webkit-line-clamp: 2;
    }

    .news-card-meta {
        gap: 10px;
        flex-wrap: wrap;
    }

    .article-detail {
        padding: 24px 20px;
        border-radius: 0;
    }

    .article-detail-title {
        font-size: 20px;
    }

    .article-detail-info {
        flex-wrap: wrap;
        gap: 10px;
        font-size: 13px;
    }

    .article-content {
        font-size: 15px;
        line-height: 1.8;
    }

    .article-content h2 {
        font-size: 18px;
    }

    .article-content h3 {
        font-size: 16px;
    }

    .news-pagination .page-numbers {
        min-width: 34px;
        height: 34px;
        font-size: 13px;
        padding: 0 8px;
    }
}

@media (max-width: 600px) {
    .news-sidebar {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 480px) {
    .news-page-header h1 {
        font-size: 20px;
    }

    .news-card-title a {
        font-size: 15px;
    }

    .article-detail-title {
        font-size: 18px;
    }

    .article-nav-item {
        padding: 12px;
        font-size: 13px;
    }
}
