
/* 容器和文章详情 */
.article-detail {
    max-width: 1200px;
    margin: 20px auto 0 auto;
}

.article-meta {
    font-size: 14px;
    color: #cccccc;
    margin-bottom: 20px;
}

/* 文章正文自动换行 */
.article-content,
.article-content p,
.article-content span,
.article-content div,
.article-content li {
    word-break: break-word !important;      /* 长单词或 URL 自动换行 */
    overflow-wrap: break-word !important;   /* 兼容更多浏览器 */
    white-space: normal !important;         /* 强制允许换行 */
    margin: 0 0 12px 0;                     /* 段落间距 */
    color: #ffffff;
    font-size: 18px;
    line-height: 1.6;
}

/* 列表 */
.article-content ol,
.article-content ul {
    padding-left: 25px;
    margin: 12px 0;
}

.article-content li {
    margin: 6px 0;
}

/* 图片自适应容器 */
.article-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 15px auto;
}

/* 上下篇导航 */
.article-nav {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin: 30px 0;
    font-size: 16px;
}

.article-nav a {
    color: #ff0000;
    text-decoration: none;
}

.article-nav a:hover {
    text-decoration: underline;
}

/* 相关文章 */
.related-articles {
    margin-top: 40px;
}

.related-articles h3 {
    font-size: 22px;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 15px;
}

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

.related-articles li {
    margin: 6px 0;
}

.related-articles a {
    color: #ffffff;
    font-size: 16px;
    text-decoration: none;
    word-break: break-word;
}

.related-articles a:hover {
    color: #ff0000;
}

/* =======================
   移动端优化
   ======================= */
@media (max-width: 992px) {
    .hero-banner {
        height: 300px;
        max-height: 300px;
    }
    .hero-content {
        min-height: 300px;
    }
    .hero-title { font-size: 40px; }
    .hero-subtitle { font-size: 20px; }

    .article-content { font-size: 16px; line-height: 1.5; }
    .related-articles h3 { font-size: 20px; }
    .related-articles a { font-size: 15px; }
    .article-nav { font-size: 14px; flex-direction: column; gap: 8px; }
}

@media (max-width: 768px) {
    .hero-banner {
        height: 220px;
        max-height: 220px;
    }
    .hero-content {
        min-height: 220px;
    }
    .hero-title { font-size: 30px; }
    .hero-subtitle { font-size: 16px; }

    .article-content { font-size: 15px; line-height: 1.4; }
    .article-content img {
        width: 100% !important;
        height: auto !important;
    }
    .related-articles h3 { font-size: 18px; }
    .related-articles a { font-size: 14px; }
}
