/* ========================================
   newslist.css — 新闻详情页样式
   ======================================== */

:root {
    --primary: #1765d8;
    --primary-dark: #0f3d82;
    --primary-light: #eaf3ff;
    --bg-white: #ffffff;
    --text-dark: #1a1a2e;
    --text-gray: #6b768d;
    --text-label: #4a5568;
    --border-light: rgba(23, 101, 216, 0.10);
    --shadow-card: 0 4px 24px rgba(17, 73, 135, 0.07);
    --tag-company: #1765d8;
    --tag-industry: #0f9d58;
}

/* ========================================
   面包屑导航
   ======================================== */

.breadcrumb-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 20px 0;
}

.breadcrumb {
    font-size: 14px;
    color: var(--text-gray);
    display: flex;
    align-items: center;
    gap: 6px;
}

.breadcrumb a {
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: var(--primary);
}

.breadcrumb .sep {
    color: #c0c8d4;
    margin: 0 2px;
}

.breadcrumb .current {
    color: var(--primary-dark);
    font-weight: 600;
}

/* ========================================
   主体布局
   ======================================== */

.news-detail-wrapper {
    display: flex;
    gap: 28px;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 20px 40px;
}

.news-detail-main {
    flex: 1;
    min-width: 0;
}

.news-detail-sidebar {
    flex: 0 0 300px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ========================================
   文章主体
   ======================================== */

.news-article {
    background: var(--bg-white);
    border-radius: 14px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-card);
    padding: 36px 40px;
}

/* --- 文章头部 --- */

.article-header {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(23, 101, 216, 0.08);
}

.article-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.4;
    margin-bottom: 16px;
}

.article-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 20px;
    font-size: 13px;
    color: var(--text-gray);
}

.article-tag {
    display: inline-block;
    padding: 3px 14px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(90deg, #2569f4, #1c4fcf);
    border-radius: 20px;
}

.article-date,
.article-source,
.article-views {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.meta-icon {
    width: 6px;
    height: 6px;
    flex: 0 0 6px;
}

/* --- 文章摘要 --- */

.article-summary {
    background: #f8fbff;
    border-left: 4px solid var(--primary);
    border-radius: 0 8px 8px 0;
    padding: 16px 20px;
    margin-bottom: 28px;
}

.article-summary p {
    font-size: 15px;
    color: var(--text-label);
    line-height: 1.8;
}

.article-summary strong {
    color: var(--primary-dark);
    font-weight: 700;
}

/* --- 文章正文 --- */

.article-content {
    font-size: 15px;
    color: var(--text-label);
    line-height: 2;
}

.article-content p {
    margin-bottom: 20px;
    text-indent: 2em;
}

.article-content h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 32px 0 16px;
    padding-left: 14px;
    border-left: 4px solid var(--primary);
    line-height: 1.4;
}

.article-content h2:first-child {
    margin-top: 0;
}

/* --- 文章配图 --- */

.article-image {
    margin: 24px 0;
    text-align: center;
}

.article-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.article-image figcaption {
    margin-top: 10px;
    font-size: 13px;
    color: #999;
}

/* --- 文章标签 --- */

.article-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 36px;
    padding-top: 20px;
    border-top: 1px solid rgba(23, 101, 216, 0.08);
}

.tag-label {
    font-size: 14px;
    color: var(--text-gray);
    font-weight: 500;
}

.tag-item {
    display: inline-block;
    padding: 4px 14px;
    font-size: 13px;
    color: var(--text-label);
    background: #f0f4f9;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.tag-item:hover {
    color: #fff;
    background: var(--primary);
}

/* --- 上下篇导航 --- */

.article-nav {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 24px;
    border-top: 1px solid rgba(23, 101, 216, 0.08);
    border-bottom: 1px solid rgba(23, 101, 216, 0.08);
}

.article-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 0;
}

.article-nav-item + .article-nav-item {
    border-top: 1px dashed #eef1f6;
}

.nav-label {
    flex: 0 0 auto;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    padding: 2px 10px;
    background: rgba(23, 101, 216, 0.06);
    border-radius: 4px;
}

.article-nav-item a {
    flex: 1;
    font-size: 14px;
    color: var(--text-label);
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.article-nav-item a:hover {
    color: var(--primary);
}

/* --- 返回按钮 --- */

.article-back {
    margin-top: 24px;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-gray);
    text-decoration: none;
    padding: 10px 24px;
    border: 1px solid rgba(23, 101, 216, 0.15);
    border-radius: 999px;
    transition: all 0.2s ease;
}

.back-btn:hover {
    color: var(--primary);
    border-color: var(--primary);
    background: var(--primary-light);
}

/* ========================================
   侧边栏
   ======================================== */

.sidebar-card {
    background: var(--bg-white);
    border-radius: 14px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-card);
    padding: 22px 20px;
}

.sidebar-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(23, 101, 216, 0.10);
    position: relative;
}

.sidebar-title::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary);
    border-radius: 1px;
}

/* --- 热门资讯列表 --- */

.hot-news-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hot-news-list li {
    margin-bottom: 2px;
}

.hot-news-list li:last-child {
    margin-bottom: 0;
}

.hot-news-list a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 8px;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s ease;
}

.hot-news-list a:hover {
    background: #f8faff;
}

.hot-rank {
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: #999;
    background: #f0f2f5;
    border-radius: 6px;
}

.hot-rank.rank-1 {
    color: #fff;
    background: linear-gradient(135deg, #e8502e, #d14020);
}

.hot-rank.rank-2 {
    color: #fff;
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.hot-rank.rank-3 {
    color: #fff;
    background: linear-gradient(135deg, #2569f4, #1c4fcf);
}

.hot-text {
    flex: 1;
    font-size: 14px;
    color: var(--text-label);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hot-news-list a:hover .hot-text {
    color: var(--primary);
}

/* --- 相关新闻列表 --- */

.related-news-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.related-news-list li {
    margin-bottom: 2px;
}

.related-news-list li:last-child {
    margin-bottom: 0;
}

.related-news-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 8px;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s ease;
}

.related-news-list a:hover {
    background: #f8faff;
}

.related-text {
    flex: 1;
    font-size: 14px;
    color: var(--text-label);
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.related-news-list a:hover .related-text {
    color: var(--primary);
}

.related-date {
    flex: 0 0 auto;
    font-size: 12px;
    color: #b0b8c4;
}

/* --- 联系我们侧边栏卡片 --- */

.sidebar-contact {
    background: linear-gradient(160deg, #f8fbff 0%, #eaf3ff 100%);
}

.sidebar-contact .contact-info {
    text-align: center;
}

.sidebar-contact .contact-info p {
    font-size: 14px;
    color: var(--text-label);
    line-height: 2;
    margin-bottom: 2px;
}

.sidebar-contact .contact-info p:first-child {
    font-size: 15px;
    color: var(--primary-dark);
    margin-bottom: 10px;
}

.sidebar-contact-btn {
    display: inline-block;
    margin-top: 14px;
    padding: 10px 36px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(90deg, #2569f4, #1c4fcf);
    border-radius: 999px;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(37, 105, 244, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sidebar-contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(37, 105, 244, 0.35);
}

/* ========================================
   响应式
   ======================================== */

@media (max-width: 1024px) {
    .news-detail-wrapper {
        flex-direction: column;
    }

    .news-detail-sidebar {
        flex: 0 0 auto;
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 20px;
    }

    .news-detail-sidebar .sidebar-card {
        flex: 1;
        min-width: 260px;
    }

    .news-article {
        padding: 28px 24px;
    }

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

@media (max-width: 768px) {
    .breadcrumb-wrap {
        padding: 12px 16px 0;
    }

    .news-detail-wrapper {
        padding: 12px 16px 32px;
    }

    .news-detail-sidebar {
        flex-direction: column;
    }

    .news-article {
        padding: 20px 18px;
    }

    .article-title {
        font-size: 22px;
    }

    .article-meta {
        gap: 6px 14px;
    }

    .article-content {
        font-size: 14px;
        line-height: 1.9;
    }

    .article-content h2 {
        font-size: 18px;
        margin: 24px 0 12px;
    }

    .article-summary {
        padding: 12px 16px;
    }

    .article-summary p {
        font-size: 14px;
    }

    .sidebar-card {
        padding: 18px 16px;
    }

    .sidebar-title {
        font-size: 16px;
    }

    .article-nav-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .article-nav-item a {
        white-space: normal;
    }
}

@media (max-width: 480px) {
    .article-title {
        font-size: 20px;
    }

    .article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .article-content p {
        text-indent: 1.5em;
    }

    .article-image figcaption {
        font-size: 12px;
    }

    .back-btn {
        width: 100%;
        justify-content: center;
    }
}
