/* News 模块通用样式 */

/* 标签导航 */
.news-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}
.news-tab {
    padding: 10px 25px;
    background: var(--white);
    border: 2px solid #ddd;
    border-radius: 25px;
    transition: all 0.3s;
    font-size: 14px;
    color: var(--gray-dark);
    text-decoration: none;
}
.news-tab:hover,
.news-tab.active {
    border-color: var(--primary);
    background: var(--primary);
    color: var(--white);
}



/* 分类标题 */
.news-category {
    margin-bottom: 40px;
}
.news-category h3 {
    color: var(--dark);
    font-size: 18px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #82b6e6;
    text-decoration: none;
}

/* 文章列表样式 */
.news-item, .article-item {
    display: flex;
    background: var(--white);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: all 0.3s;
}
.news-item:hover, .article-item:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

/* 左侧布局 */
.news-left, .article-left {
    display: flex !important;
    flex-direction: row !important;
    margin-right: 20px;
    gap: 15px;
}

/* 日期框 */
.news-date, .article-date {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 70px !important;
    height: 60px !important;
    background: var(--primary) !important;
    border-radius: 6px !important;
    color: var(--white) !important;
    flex-shrink: 0 !important;
}
.news-date p:nth-child(1), .article-date p:nth-child(1) {
    font-size: 26px;
    font-weight: bold;
    line-height: 1;
    margin: 0;
}
.news-date p:nth-child(2), .article-date p:nth-child(2) {
    font-size: 13px;
    margin-top: 4px;
}

/* 缩略图 */
.news-thumb, .article-thumb {
    width: 120px;
    height: 90px;
    background: #e8f4ff;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 12px;
    flex-shrink: 0;
    border: 1px solid #ddd;
}
.news-thumb img, .article-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

/* 标题样式 */
.news-content h3, .article-content h3 {
    color: var(--dark);
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 8px;
    text-decoration: none !important;
    display: block;
    border: none !important;
    outline: none !important;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}
.news-content h3::before,
.news-content h3::after,
.article-content h3::before,
.article-content h3::after {
    display: none !important;
    content: none !important;
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 30px 0;
    flex-wrap: wrap;
}
.pagination a, .pagination span {
    padding: 8px 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    transition: all 0.3s;
    display: inline-block;
}
.pagination a:hover {
    border-color: var(--primary);
    color: var(--primary);
}
.pagination .active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}
.pagination .disabled {
    color: #999;
    cursor: not-allowed;
    border-color: #eee;
}

/* 面包屑导航 */
.breadcrumb {
    padding: 15px 0;
    font-size: 14px;
    color: #666;
}
.breadcrumb a {
    color: var(--primary);
    text-decoration: none;
}
.breadcrumb a:hover {
    text-decoration: underline;
}
.breadcrumb span {
    margin: 0 8px;
    color: #999;
}

/* 标签 */
.news-tags, .channel-tags {
    display: flex;
    gap: 10px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    padding: 15px 20px;
    background: #fff;
    border-radius: 10px;
}
.news-tag, .channel-tag {
    padding: 6px 16px;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    font-size: 14px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s;
}
.news-tag:hover, .news-tag.active,
.channel-tag:hover, .channel-tag.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

/* 频道标签 */
.channel-tags {
    justify-content: center;
    background: #f5f7fa;
}

/* 频道标题 */
.channel-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    padding: 20px 0 10px;
    border-bottom: 2px solid var(--primary);
    margin-bottom: 20px;
}

/* 页面标题 */
.page-header {
    background: #033c69;
    padding: 40px 0;
    text-align: center;
    color: #fff;
}
.page-title {
    font-size: 32px;
    margin-bottom: 10px;
}
.page-subtitle {
    font-size: 16px;
    opacity: 0.9;
}

/* ==================== 文章详情页样式 ==================== */
.article-container {
    max-width: 800px;
    margin: 30px auto;
    padding: 60px 40px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}
.article-header {
    margin-bottom: 20px;
}
.article-title {
    font-size: 28px;
    font-weight: bold;
    color: var(--dark);
    line-height: 1.4;
    margin-bottom: 15px;
}
.article-meta {
    display: flex;
    gap: 20px;
    color: var(--gray-dark);
    font-size: 13px;
    margin-bottom: 15px;
}
.article-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}
.article-tag {
    padding: 4px 12px;
    background: rgba(22, 119, 255, 0.1);
    color: var(--primary);
    border-radius: 4px;
    font-size: 12px;
}
.article-cover {
    width: 100%;
    height: 400px;
    background: var(--gray-light);
    border-radius: 8px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-dark);
    font-size: 14px;
    overflow: hidden;
}
.article-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.article-content {
    font-size: 16px;
    line-height: 1.8;
    color: var(--gray-dark);
}
.article-content p {
    margin-bottom: 20px;
    text-align: justify;
}
.article-content img {
    display: block !important;
    max-width: 666px !important;
    width: 100% !important;
    height: auto !important;
    margin: 20px auto !important;
}
.art-action {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    padding: 25px 0;
    margin: 30px 0;
    border-top: 1px solid var(--gray-light);
    border-bottom: 1px solid var(--gray-light);
}
.art-action-item {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: var(--gray-dark);
    font-size: 14px;
}
.art-action-item:hover {
    color: var(--primary);
}
.art-action-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}
.art-share-wechat { background: #07c160; color: #fff; }
.art-share-xiaohongshu { background: #fe2c55; color: #fff; }
.art-share-weibo { background: #e6162d; color: #fff; }
.art-share-douyin { background: #000; color: #fff; }
.art-share-kuaishou { background: #ff4906; color: #fff; }
.recommend-products {
    margin: 40px 0;
}
.recommend-products h3 {
    font-size: 18px;
    color: var(--dark);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #0774cb;
}
.related-articles {
    margin: 40px 0;
}
.related-articles h3 {
    font-size: 18px;
    color: var(--dark);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #0774cb;
}
.related-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.related-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}
.related-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-hover);
}
.related-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    flex: 1;
}
.related-info h4 {
    font-size: 14px;
    color: var(--dark);
    margin: 0;
    line-height: 1.4;
    flex: 1;
}
.related-info span {
    font-size: 12px;
    color: var(--gray-dark);
    white-space: nowrap;
}
.article-nav {
    display: flex;
    gap: 20px;
    margin: 10px 0;
    padding: 12px 20px;
    background: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow);
}
.article-nav-next {
    margin-bottom: 25px;
}
.article-prev, .article-next {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--gray-dark);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}
.article-prev:hover, .article-next:hover {
    color: var(--primary);
}
.nav-label {
    color: var(--gray-dark);
    white-space: nowrap;
}
.nav-title {
    color: var(--dark);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
@media screen and (max-width: 768px) {
    .article-title {
        font-size: 22px;
    }
    .article-cover {
        height: 250px;
    }
    .article-action {
        flex-wrap: wrap;
        gap: 15px;
    }
    .related-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    .related-info span {
        white-space: normal;
    }
    .article-nav {
        flex-direction: column;
        gap: 10px;
    }
    .article-prev, .article-next {
        justify-content: flex-start;
        text-align: left;
    }
    .article-next {
        justify-content: flex-start;
        text-align: left;
    }
}
