/* ===== 基础样式重置 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Helvetica, Roboto, Arial, sans-serif;
    background-color: #f4f7fa;
    color: #1a2c3e;
    line-height: 1.6;
}

/* 容器 - 负责整体居中和最大宽度限制 */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* 面包屑 */
.breadcrumb {
    padding: 20px 0 10px;
    font-size: 0.9rem;
    color: #5f7f8e;
}

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

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

/* ===== 详情页主布局 ===== */
.detail-wrapper {
    display: flex;
    gap: 48px;
    margin: 20px 0 60px;
    flex-wrap: wrap;
		align-items: flex-start;
}

/* 主内容区 */
.detail-content {
    flex: 1;
    min-width: 0;
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

/* 侧边栏 - 固定宽度 */
.detail-sidebar {
    width: 300px;
    flex-shrink: 0;
		overflow: visible !important;
		align-self: flex-start;
}

/* 文章样式 */
.article-header {
    margin-bottom: 32px;
    border-bottom: 1px solid #e2edf2;
    padding-bottom: 24px;
}

.article-category {
    display: inline-block;
    background: linear-gradient(135deg, #0a40b6 0%, #0eb3ff 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.article-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #1a2c3e;
    line-height: 1.3;
    margin-bottom: 16px;
}

.article-meta {
    display: flex;
    gap: 24px;
    color: #6f8fa0;
    font-size: 0.9rem;
    flex-wrap: wrap;
}

.article-featured-img {
    margin: 24px 0 32px;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(135deg, #0a40b6 0%, #0eb3ff 100%);
    text-align: center;
}

.article-featured-img img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.article-body h2 {
    font-size: 1.5rem;
    margin: 1.8em 0 0.8em;
    color: #0a40b6;
}

.article-body h3 {
    font-size: 1.2rem;
    margin: 1.5em 0 0.6em;
    color: #0eb3ff;
}

.article-body p {
    margin-bottom: 1.2em;
    font-size: 1.05rem;
    color: #2c3e42;
}

.article-body ul,
.article-body ol {
    margin: 0.8em 0 1.2em 0;
    padding-left: 0;              /* 清除默认内边距 */
    list-style-position: outside; /* 标记在外面，便于控制对齐 */
}

.article-body li {
    margin: 0.3em 0;
    position: relative;
    left: 2em;                    /* 与段落首行缩进对齐 */
    padding-right: 2em;           /* 右侧补偿，保持宽度 */
}

/* 多级列表：逐级增加偏移，但保持层级清晰 */
.article-body ul ul,
.article-body ol ol,
.article-body ul ol,
.article-body ol ul {
    margin: 0.2em 0;
}

.article-body ul ul li,
.article-body ol ol li,
.article-body ul ol li,
.article-body ol ul li {
    left: 1.5em;                  /* 第二级缩进减少，避免过深 */
}

.article-body ul ul ul li,
.article-body ol ol ol li,
.article-body ul ol ul li,
.article-body ol ul ol li {
    left: 1em;                    /* 第三级进一步减少 */
}

.article-body code {
    background: #eef3f8;
    padding: 0.2em 0.5em;
    border-radius: 6px;
    font-family: monospace;
    font-size: 0.9em;
}

.article-body pre {
    background: #1e2f3a;
    color: #e0f2fe;
    padding: 16px;
    border-radius: 12px;
    overflow-x: auto;
    margin: 1.5em 0;
}

.share-section {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid #e2edf2;
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

.share-btn {
    background: #eef3f8;
    padding: 8px 18px;
    border-radius: 40px;
    text-decoration: none;
    color: #0a40b6;
    font-size: 0.9rem;
    transition: 0.2s;
}

.share-btn:hover {
    background: linear-gradient(135deg, #0a40b6 0%, #0eb3ff 100%);
    color: white;
}

/* 侧边栏卡片 */
.related-news {
    background: white;
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 32px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.related-title {
    font-size: 1.3rem;
    font-weight: 600;
    border-left: 4px solid #0a40b6;
    padding-left: 14px;
    margin-bottom: 20px;
    color: #1a2c3e;
}

.related-list {
    list-style: none;
}

.related-list li {
    margin-bottom: 20px;
    border-bottom: 1px solid #ecf3f8;
    padding-bottom: 12px;
}

.related-list a {
    text-decoration: none;
    font-weight: 500;
    color: #1f5063;
    display: block;
    margin-bottom: 6px;
}

.related-list a:hover {
    color: #0a40b6;
}

.related-date {
    font-size: 0.75rem;
    color: #8aa4b5;
}

.back-home {
    display: inline-block;
    margin-top: 16px;
    background: linear-gradient(135deg, #0a40b6 0%, #0eb3ff 100%);
    color: white;
    padding: 10px 24px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 500;
    transition: 0.2s;
}

.back-home:hover {
    transform: translateX(-4px);
    opacity: 0.9;
}

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

    .detail-sidebar {
        width: 100%;
    }

    .detail-content {
        padding: 24px;
    }

    .article-title {
        font-size: 1.6rem;
    }
}
/*
.sticky-scroll {
    position: sticky;
    top: 20px;
}
*/
.sticky-scroll {
    position: sticky !important;
    top: 10px !important;
}
@media (max-width: 768px) {
    .sticky-scroll {
        position: relative;
        top: auto;
    }
}

.normal-scroll {
    position: relative;
}

/* ===== 新闻正文中的图片样式（响应式） ===== */
.article-body .img-box {
    text-align: center;
    margin: 24px 0;
}

.article-body .img-box img {
    max-width: 80%;
		width: auto;
    height: auto;
		max-height: 500px;
    border-radius: 12px;
    cursor: pointer;
    transition: opacity 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
		object-fit: contain;
}

@media (min-width: 1400px) {
    .article-body .img-box img {
        max-width: 70%;
    }
}

@media (max-width: 768px) {
    .article-body .img-box img {
        max-width: 100%;
        max-height: 350px;
    }
}

.article-body .img-box img:hover {
    opacity: 0.7;
    transform: scale(1.02);
}

/* 图片说明文字 */
.article-body .img-box p {
    text-align: center;
    margin-top: 12px;
    font-size: 0.9rem;
    color: #6c757d;
    text-indent: 0;
}

/* 多图并排时使用 flex 布局 */
.article-body .img-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    margin: 24px 0;
}

.article-body .img-row .img-box {
    flex: 1;
    min-width: 200px;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .article-body .img-box img {
        border-radius: 8px;
    }
    
    .article-body .img-row {
        gap: 12px;
    }
}