/* 文章详情页样式 */
.article-section {
    max-width: 100%;
    padding: 60px 0;
    background-color: #fff;
}

/* 返回按钮 */
.back-button {
    margin-bottom: 32px;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #333;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 8px;
    background-color: rgba(248, 249, 252, 1);
    transition: all 0.2s ease;
}

.back-btn:hover {
    background-color: rgba(29, 39, 63, 0.1);
    color: #3860f4;
}

.back-btn svg {
    transition: transform 0.2s ease;
}

.back-btn:hover svg {
    transform: translateX(-2px);
}

.back-btn span {
    font-weight: 500;
}

.article-section .w1600 {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 32px;
}

/* 文章头部信息 */
.article-header {
    margin-bottom: 32px;
}

.article-category {
    margin-bottom: 24px;
}

.article-category span {
    min-width: 96px;
    height: 28px;
    border-radius: 8px;
    background: rgba(29, 39, 63, 0.05);
    display: inline-flex;
    color: rgba(29, 39, 63, 1);
    font-size: 16px;
    font-weight: 400;
    line-height: 19px;
    padding: 0 16px;
    align-items: center;
    justify-content: center;
}

.article-title {
    font-size: 42px;
    font-weight: 700;
    color: #111827;
    line-height: 1.2;
    margin-bottom: 20px;
    max-width: 900px;
}

.article-meta {
    display: flex;
    gap: 24px;
    font-size: 14px;
    color: #6b7280;
    margin-top: 8px;
}

/* 文章封面图 */
.article-thumbnail {
    width: 100%;
    margin-bottom: 40px;
    border-radius: 16px;
    overflow: hidden;
}

.article-thumbnail img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 16px;
    transition: all 0.3s ease;
}

.article-thumbnail img:hover {
    transform: scale(1.02);
}

/* 文章内容 */
.article-content {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 48px;
}

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

.article-content h2 {
    font-size: 24px !important;
    font-weight: 600;
    color: #111827;
    margin: 32px 0 16px 0;
    width: 100%;
}

.article-content h3 {
    font-size: 20px;
    font-weight: 600;
    color: #111827;
    margin: 24px 0 12px 0;
}

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

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

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

/* 文章底部 */
.article-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    border-top: 1px solid rgba(29, 39, 63, 0.1);
}

.article-tags {
    display: flex;
    align-items: center;
    gap: 12px;
}

.article-tags span {
    font-size: 14px;
    color: #6b7280;
}

.tag-item {
    font-size: 14px;
    color: #3860f4;
    text-decoration: none;
    padding: 4px 12px;
    border-radius: 12px;
    background-color: rgba(56, 96, 244, 0.05);
    transition: all 0.2s ease;
}

.tag-item:hover {
    background-color: rgba(56, 96, 244, 0.1);
}

.article-share {
    display: flex;
    align-items: center;
    gap: 12px;
}

.article-share span {
    font-size: 14px;
    color: #6b7280;
}

.share-item {
    font-size: 14px;
    color: #3860f4;
    text-decoration: none;
    transition: color 0.2s ease;
}

.share-item:hover {
    color: #1d4ed8;
}

/* 相关推荐 */
.related-articles {
    max-width: 100%;
    padding: 60px 0;
    background-color: rgba(248, 249, 252, 1);
}

.related-articles .w1600 {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 32px;
}

.related-list {
    display: flex;
    gap: 24px;
    margin-top: 40px;
}

.related-item {
    flex: 1 1 calc(33.333% - 16px);
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(12, 18, 25, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.related-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(12, 18, 25, 0.12);
}

.related-img {
    width: 100%;
    padding-top: 60%;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.related-img img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.related-img img:hover {
    transform: scale(1.1);
}

.related-info {
    padding: 24px;
}

.related-title {
    font-size: 18px;
    font-weight: 600;
    color: #0f172a;
    margin: 0 0 12px 0;
    line-height: 1.4;
}

.related-title a {
    color: #0f172a;
    text-decoration: none;
    transition: color 0.2s ease;
}

.related-title a:hover {
    color: #3860f4;
}

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

.related-date {
    font-size: 12px;
    color: #9ca3af;
}

/* 响应式适配 */
@media (max-width: 1024px) {
    .article-section {
        padding: 40px 0;
    }
    
    .article-section .w1600 {
        padding: 0 24px;
    }
    
    .article-category {
        margin-bottom: 20px;
    }
    
    .article-title {
        font-size: 36px;
        max-width: 700px;
    }
    
    .related-articles {
        padding: 40px 0;
    }
    
    .related-articles .w1600 {
        padding: 0 24px;
    }
    
    .related-list {
        gap: 20px;
    }
    
    .related-item {
        flex: 1 1 calc(33.333% - 14px);
    }
}

@media (max-width: 768px) {
    .article-section {
        padding: 32px 0;
    }
    
    .article-section .w1600 {
        padding: 0 16px;
    }
    
    .article-category {
        margin-bottom: 16px;
    }
    
    .article-title {
        font-size: 28px;
        max-width: 100%;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }
    
    .article-thumbnail {
        margin-bottom: 32px;
    }
    
    .article-content {
        font-size: 15px;
        margin-bottom: 32px;
    }
    
    .article-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .related-articles {
        padding: 32px 0;
    }
    
    .related-articles .w1600 {
        padding: 0 16px;
    }
    
    .related-list {
        flex-direction: column;
        gap: 16px;
    }
    
    .related-item {
        flex: 1 1 100%;
        display: flex;
    }
    
    .related-img {
        width: 30%;
        padding-top: 0;
        height: 120px;
    }
    
    .related-info {
        width: 70%;
        padding: 16px;
    }
    
    .related-title {
        font-size: 16px;
    }
    
    .related-desc {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .article-section {
        padding: 24px 0;
    }
    
    .article-section .w1600 {
        padding: 0 16px;
    }
    
    .back-button {
        margin-bottom: 24px;
    }
    
    .back-btn {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    .back-btn svg {
        width: 20px;
        height: 20px;
    }
    
    .article-title {
        font-size: 20px;
    }
    
    .article-thumbnail {
        margin-bottom: 24px;
    }
    
    .article-content {
        font-size: 14px;
        margin-bottom: 24px;
    }
    
    .related-articles {
        padding: 24px 0;
    }
    
    .related-item {
        flex-direction: column;
    }
    
    .related-img {
        width: 100%;
        height: 160px;
    }
    
    .related-info {
        width: 100%;
        padding: 16px;
    }
}

/* 新闻列表页样式 */
.news-list-section {
    max-width: 100%;
    padding: 60px 0;
    background-color: #f8f9fb;
}

.news-list-section .w1600 {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
}

/* 页面标题 */
.section-title {
    text-align: center;
    margin-bottom: 48px;
}

.main-title {
    font-size: 36px;
    font-weight: 600;
    color: #333;
    margin-bottom: 16px;
}

.sub-title {
    font-size: 16px;
    color: rgba(29, 39, 63, 1);
}

/* 新闻列表 */
.news-list {
    margin-top: 48px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* 新闻项 */
.news-item {
    display: flex;
    gap: 32px;
    padding: 32px;
    background-color: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(12, 18, 25, 0.06);
    transition: all 0.3s ease;
}

.news-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(12, 18, 25, 0.12);
}

/* 新闻图片 */
.news-img {
    width: 320px;
    flex-shrink: 0;
    border-radius: 12px;
    overflow: hidden;
}

.news-img img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: all 0.3s ease;
}

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

/* 新闻信息 */
.news-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* 新闻元信息 */
.news-meta {
    display: flex;
    gap: 24px;
    margin-bottom: 16px;
    align-items: center;
}

.news-date {
    font-size: 14px;
    color: #6b7280;
}

.news-category {
    font-size: 14px;
    color: #3860f4;
    background-color: rgba(56, 96, 244, 0.05);
    padding: 6px 16px;
    border-radius: 16px;
    font-weight: 500;
}

/* 新闻标题 */
.news-title {
    font-size: 22px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 16px;
    line-height: 1.4;
}

.news-title a {
    color: #111827;
    text-decoration: none;
    transition: color 0.2s ease;
    display: block;
}

.news-title a:hover {
    color: #3860f4;
}

/* 新闻描述 */
.news-desc {
    font-size: 15px;
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 24px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 了解更多按钮 */
.news-more {
    font-size: 14px;
    color: #3860f4;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    font-weight: 500;
}

.news-more:hover {
    transform: translateX(4px);
    color: #1d4ed8;
}

/* 分页 */
.pagination {
    margin-top: 60px;
    display: flex;
    justify-content: center;
}

/* 分页样式 */
.pagination ul {
    display: flex;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.pagination li {
    display: flex;
    align-items: center;
    justify-content: center;
}

.pagination a, .pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.pagination a {
    color: #6b7280;
    background-color: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.pagination a:hover {
    color: #3860f4;
    background-color: rgba(56, 96, 244, 0.05);
}

.pagination .active span {
    color: #fff;
    background-color: #3860f4;
    box-shadow: 0 4px 12px rgba(56, 96, 244, 0.3);
}

.pagination .disabled a {
    color: #9ca3af;
    background-color: #f3f4f6;
    cursor: not-allowed;
}

.pagination .disabled a:hover {
    color: #9ca3af;
    background-color: #f3f4f6;
}

/* 响应式适配 */
@media (max-width: 1024px) {
    .news-list-section {
        padding: 40px 0;
    }
    
    .news-list-section .w1600 {
        padding: 0 24px;
    }
    
    .section-title {
        margin-bottom: 40px;
    }
    
    .main-title {
        font-size: 32px;
    }
    
    .news-list {
        margin-top: 40px;
        gap: 20px;
    }
    
    .news-item {
        gap: 24px;
        padding: 24px;
    }
    
    .news-img {
        width: 280px;
    }
    
    .news-img img {
        height: 180px;
    }
    
    .news-title {
        font-size: 20px;
    }
    
    .pagination {
        margin-top: 48px;
    }
}

@media (max-width: 768px) {
    .news-list-section {
        padding: 32px 0;
    }
    
    .news-list-section .w1600 {
        padding: 0 16px;
    }
    
    .section-title {
        margin-bottom: 32px;
    }
    
    .main-title {
        font-size: 28px;
    }
    
    .news-list {
        margin-top: 32px;
        gap: 16px;
    }
    
    .news-item {
        flex-direction: column;
        gap: 16px;
        padding: 20px;
    }
    
    .news-img {
        width: 100%;
    }
    
    .news-img img {
        height: 200px;
    }
    
    .news-meta {
        gap: 16px;
    }
    
    .news-title {
        font-size: 18px;
    }
    
    .news-desc {
        font-size: 14px;
        margin-bottom: 20px;
    }
    
    .pagination {
        margin-top: 40px;
    }
    
    .pagination a, .pagination span {
        width: 36px;
        height: 36px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .news-list-section {
        padding: 24px 0;
    }
    
    .section-title {
        margin-bottom: 24px;
    }
    
    .main-title {
        font-size: 24px;
    }
    
    .sub-title {
        font-size: 14px;
    }
    
    .news-list {
        margin-top: 24px;
        gap: 12px;
    }
    
    .news-item {
        padding: 16px;
    }
    
    .news-img img {
        height: 160px;
    }
    
    .news-title {
        font-size: 16px;
    }
    
    .news-desc {
        font-size: 13px;
        margin-bottom: 16px;
    }
    
    .pagination {
        margin-top: 32px;
    }
    
    .pagination a, .pagination span {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
}