/* --- Banner 主容器 --- */
.page-banner {
    /* 背景图设置 */
    /* 请将 url('...') 替换为您实际的图片路径 */
    background-image: url("/static/img/list_icon_1.jpeg");
    background-size: cover; /* 保持比例覆盖整个区域 */
    background-position: center; /* 居中显示 */
    background-repeat: no-repeat;
}

.news-detail-section {
    width: 100%;
    max-width: 1200px;
    margin: 60px auto;
    padding: 40px;
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
    background-color: #fff;
}

/* ========== 面包屑导航 ========== */
.breadcrumb {
    font-size: 14px;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.6;
}

.breadcrumb a {
    color: #000;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    color: #333;
    font-weight: 500;
}

/* ========== 主容器布局 ========== */
.detail-container {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

/* ========== 左侧主内容区 ========== */
.main-content {
    flex: 1;
    min-width: 0; /* 防止溢出 */
}

.article-title {
    font-size: 24px;
    font-weight: 700;
    color: #222;
    margin: 0 0 10px 0;
    line-height: 1.4;
}

.publish-time {
    font-size: 14px;
    color: #888;
    margin: 0 0 20px 0;
}

.divider {
    border: none;
    height: 1px;
    background: #eee;
    margin: 20px 0 30px;
}

.rich-text p {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    margin: 0 0 20px 0;
    text-align: justify;
}

.content-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin: 20px 0;
    display: block;
}

/* ========== 右侧侧边栏 ========== */
.sidebar {
    width: 300px;
    flex-shrink: 0;
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.hot-news-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 20px;
    background: #FFD700;
    color: #000;
    font-weight: 600;
    font-size: 16px;
}

.fire-icon {
    font-size: 18px;
}

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

.hot-item {
    border-bottom: 1px solid #f0f0f0;
    border-left: 1px solid #f0f0f0;
    border-right: 1px solid #f0f0f0;
}

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

.hot-item a {
    display: block;
    padding: 16px 20px;
    text-decoration: none;
    transition: background 0.2s;
    padding-bottom: 4px;
}

.hot-item a:hover {
    background: #f9f9f9;
}

.hot-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    background: #FFE100;
    padding: 2px 6px;
    border-radius: 4px;
    margin-bottom: 6px;
}

.hot-title {
    font-size: 14px;
    font-weight: 500;
    color: #222;
    margin: 0 0 6px 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hot-date {
    font-size: 12px;
    color: #999;
}

.hot-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.prev-next {
    display: flex;
    justify-content: space-between;
    padding: 20px 0;
    border-top: 1px solid #ddd;
}

.prev-next .prev,
.prev-next .next {
    width: 48%;
    display: flex;
}

.prev-next a {
    display: inline-block;
    max-width: 260px; /* 宽度限制 */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #333;
    text-decoration: none;
    cursor: pointer; /* 小手 */
}

.prev-next a:hover {
    color: #333; /* 悬浮不变蓝 */
    text-decoration: none;
}

/* ===== 小屏笔记本适配 ===== */
@media (max-width: 1366px) {
    .news-detail-section {
        padding: 30px;
    }

    .sidebar {
        width: 260px;
    }

    .detail-container {
        gap: 30px;
    }
}

@media (max-width: 1200px) {
    .news-detail-section {
        padding: 24px;
        margin: 40px auto;
    }

    .sidebar {
        width: 220px;
    }

    .detail-container {
        gap: 24px;
    }
}

/* ==========================================================
   手机端（<=768px）
   ========================================================== */
@media (max-width: 768px) {
    .news-detail-section {
        margin: 20px auto;
        padding: 16px;
    }

    .breadcrumb {
        font-size: 12px;
        line-height: 1.7;
        margin-bottom: 16px;
        word-break: break-all;
    }

    /* 正文与热点新闻上下排列，正文不再被侧栏挤压 */
    .detail-container {
        flex-direction: column;
        gap: 24px;
    }

    .main-content {
        width: 100%;
    }

    .article-title {
        font-size: 20px;
        line-height: 1.4;
    }

    .publish-time {
        font-size: 12px;
        margin-bottom: 12px;
    }

    .divider {
        margin: 14px 0 20px;
    }

    .rich-text p {
        font-size: 15px;
        line-height: 1.8;
        text-align: left;
        margin-bottom: 16px;
    }

    .rich-text img,
    .content-image {
        max-width: 100%;
        height: auto;
    }

    .sidebar {
        width: 100%;
    }

    .hot-news-header {
        padding: 12px 16px;
        font-size: 15px;
    }

    .hot-item a {
        padding: 12px 16px 6px;
    }

    .hot-title {
        font-size: 14px;
    }

    .hot-info {
        margin-top: 8px;
    }

    .prev-next {
        flex-direction: column;
        gap: 10px;
        padding: 16px 0;
    }

    .prev-next .prev,
    .prev-next .next {
        width: 100%;
        min-width: 0;
    }

    .prev-next a {
        max-width: calc(100% - 4.5em);
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}