/* 
 * news 模块：文章详情专用样式 (Regenerated for Mobile First)
 * 适配所有新闻、历史、范文、谜语、考试、好句等模块
 * 针对 iPhone 16 Pro Max 等设备进行优化
 */

.news-page--show.news-article-shell {
    width: 100%;
    margin: 0 auto;
    background: var(--m-bg);
}

.news-page--show .news-article-main {
    padding: 0 0 24px;
}

.news-page--show .news-article-layout {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* 卡片基础样式 */
.news-page--show .news-article-card {
    background: var(--m-surface);
}

/* 头部区域 */
.news-page--show .news-article-head {
    padding: 16px 16px 12px;
    border-bottom: 1px solid var(--m-border);
}

.news-page--show .m-breadcrumb {
    margin-bottom: 12px;
}

/* 修饰词标签 (例如: 作文范文) */
.news-page--show .news-article-kicker {
    display: inline-block;
    padding: 2px 8px;
    margin-bottom: 8px;
    border-radius: 4px;
    background: var(--m-primary-soft);
    color: var(--m-primary);
    font-size: 12px;
    font-weight: 700;
}

/* 标题 */
.news-page--show .news-article-title {
    margin: 0 0 12px 0;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--m-text);
}

/* 摘要框 */
.news-page--show .news-article-summary {
    margin-bottom: 12px;
    padding: 12px 14px;
    border-radius: 8px;
    background: var(--m-surface-soft);
    color: var(--m-text-soft);
    font-size: 14px;
    line-height: 1.6;
}

/* 元信息 */
.news-page--show .news-article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-bottom: 0;
}

.news-page--show .news-article-meta span {
    display: flex;
    align-items: center;
    color: var(--m-text-faint);
    font-size: 13px;
}

.news-page--show .news-article-meta span:not(:last-child)::after {
    content: "·";
    margin-left: 6px;
    color: var(--m-border-strong);
    font-weight: 700;
}

/* 标签列表 */
.news-page--show .news-article-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px dashed var(--m-border);
}
.news-page--show .news-article-tags .tags-label {
    font-size: 13px;
    color: var(--m-text-faint);
}
.news-page--show .news-article-tags a {
    padding: 2px 10px;
    border-radius: 100px;
    background: var(--m-surface-strong);
    color: var(--m-text-soft);
    font-size: 11px;
}

/* 内容区域 */
.news-page--show .news-article-body {
    padding: 16px;
}

.news-page--show .news-article-content {
    font-size: 16px;
    line-height: 1.8;
    color: var(--m-text);
    word-wrap: break-word;
    overflow-x: hidden;
}

.news-page--show .news-article-content > * {
    max-width: 100%;
}

.news-page--show .news-article-content p {
    margin: 0 0 16px 0;
    color: var(--m-text);
    font-size: 16px;
    line-height: 1.8;
}

.news-page--show .news-article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 8px auto;
    display: block;
}

.news-page--show .news-article-content h2,
.news-page--show .news-article-content h3,
.news-page--show .news-article-content h4 {
    margin: 24px 0 12px;
    font-weight: 700;
    color: var(--m-text);
    line-height: 1.4;
}

.news-page--show .news-article-content h2 { font-size: 20px; }
.news-page--show .news-article-content h3 { font-size: 18px; }
.news-page--show .news-article-content h4 { font-size: 16px; }

.news-page--show .news-article-content ul,
.news-page--show .news-article-content ol {
    margin: 0 0 16px 0;
    padding-left: 20px;
}

.news-page--show .news-article-content ul { list-style: disc; }
.news-page--show .news-article-content ol { list-style: decimal; }

.news-page--show .news-article-content li {
    margin-bottom: 8px;
    line-height: 1.8;
}

.news-page--show .news-article-content a {
    color: var(--m-primary-deep);
}

.news-page--show .news-article-content blockquote {
    margin: 0 0 16px 0;
    padding: 12px 16px;
    border-left: 4px solid var(--m-primary);
    border-radius: 4px;
    background: var(--m-surface-soft);
    color: var(--m-text-soft);
    font-size: 15px;
}

.news-page--show .news-article-content table {
    width: 100%;
    margin-bottom: 16px;
    border-collapse: collapse;
    display: block;
    overflow-x: auto;
}

.news-page--show .news-article-content th,
.news-page--show .news-article-content td {
    padding: 10px 12px;
    border: 1px solid var(--m-border);
    font-size: 14px;
    text-align: left;
}

.news-page--show .news-article-content th {
    background: var(--m-surface-strong);
    font-weight: 700;
}

/* 特殊区块（如谜语答案） */
.news-page--show .news-article-note {
    padding: 16px;
    border-radius: 8px;
    background: var(--m-primary-soft);
    border-left: 4px solid var(--m-primary);
    color: var(--m-text);
    margin-bottom: 16px;
}

.news-page--show .news-article-note p:last-child {
    margin-bottom: 0;
}

/* 上下篇导航 */
.news-page--show .news-article-nav {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--m-border);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.news-page--show .news-article-nav p {
    font-size: 14px;
    color: var(--m-text-soft);
    margin: 0;
    display: flex;
    align-items: flex-start;
    line-height: 1.6;
}

.news-page--show .news-article-nav a {
    color: var(--m-primary);
    font-weight: 500;
    flex: 1;
    word-break: break-all;
}

.news-page--show .empty-text {
    color: var(--m-text-faint);
}

/* 相关推荐卡片 */
.news-page--show .news-article-card--related {
    padding: 16px;
}

.news-page--show .news-article-section-head {
    margin-bottom: 16px;
    display: flex;
    align-items: center;
}

.news-page--show .news-article-section-head h2,
.news-page--show .news-article-section-head h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--m-text);
    position: relative;
    padding-left: 12px;
}

.news-page--show .news-article-section-head h2::before,
.news-page--show .news-article-section-head h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 16px;
    background: var(--m-primary);
    border-radius: 2px;
}

/* 推荐列表 */
.news-page--show .news-article-related-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.news-page--show .news-article-related-item {
    padding: 14px 0;
    border-bottom: 1px solid var(--m-border);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.news-page--show .news-article-related-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.news-page--show .news-article-related-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.news-page--show .news-article-badge {
    padding: 2px 6px;
    border-radius: 4px;
    background: var(--m-primary-soft);
    color: var(--m-primary);
    font-size: 11px;
    font-weight: 600;
}

.news-page--show .news-article-date {
    color: var(--m-text-faint);
    font-size: 12px;
}

.news-page--show .news-article-related-title a {
    font-size: 16px;
    font-weight: 700;
    color: var(--m-text);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-page--show .news-article-related-desc {
    font-size: 14px;
    color: var(--m-text-soft);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-page--show .news-article-related-meta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.news-page--show .news-article-related-meta span {
    font-size: 12px;
    color: var(--m-text-faint);
}

/* 适配大屏手机如 iPhone 16 Pro Max (宽度 430px) */
@media (min-width: 400px) {
    .news-page--show .news-article-title {
        font-size: 24px;
    }
    
    .news-page--show .news-article-content p {
        font-size: 17px;
    }
}
