/* ========================================
   资讯详情页样式 - 优超医学英语
   ======================================== */

.news-detail-page {
    --primary: #FA5A5A;
    --primary-light: #FFF0F0;
    --secondary: #00BE64;
    --secondary-light: #E8F9F0;
    --bg-warm: linear-gradient(180deg, #F0F7F0 0%, #F5F0EB 100%);
    --text-dark: #2D2D2D;
    --text-mid: #666666;
    --text-light: #999999;
    --card-bg: #FFFFFF;
    --shadow: 0 4px 20px rgba(0,0,0,0.06);
    --shadow-hover: 0 8px 30px rgba(0,0,0,0.10);
    --radius: 16px;
    --radius-sm: 10px;

    background: var(--bg-warm);
    min-height: 100vh;
    padding-bottom: 80px;
}

/* ========== 通用容器 ========== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== 上一篇/下一篇导航 ========== */
.article-pager {
    max-width: 800px;
    margin: 0 auto;
    padding: 24px 20px 0;
    display: flex;
    justify-content: space-between;
    gap: 12px;
}
.pager-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 50px;
    background: var(--card-bg);
    box-shadow: var(--shadow);
    text-decoration: none;
    color: var(--text-mid);
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
}
.pager-btn:hover {
    box-shadow: var(--shadow-hover);
    color: var(--primary);
    transform: translateY(-2px);
}
.pager-btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}
.pager-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

/* ========== 标题区 ========== */
.article-header {
    max-width: 800px;
    margin: 20px auto 0;
    padding: 0 20px;
}

.article-header h1 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.5;
    margin-bottom: 16px;
}
@media (min-width: 768px) {
    .article-header h1 {
        font-size: 2rem;
    }
}

/* 元信息行 */
.article-meta-row {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

/* 分类标签 - 动态分类色 */
.meta-category {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}
.meta-category::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

/* 其他元信息 */
.meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.85rem;
    color: var(--text-light);
}
.meta-item svg {
    width: 14px;
    height: 14px;
    opacity: 0.5;
}

/* ========== 正文容器 ========== */
.article-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 正文卡片 */
.article-body {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 36px 24px;
    margin-top: 20px;
    box-shadow: var(--shadow);
    line-height: 1.9;
    color: var(--text-dark);
    font-size: 1rem;
    transition: all 0.3s ease;
}
.article-body:hover {
    box-shadow: var(--shadow-hover);
}
@media (min-width: 768px) {
    .article-body {
        padding: 44px 40px;
        font-size: 1.05rem;
    }
}

.article-body p {
    margin-bottom: 1.2em;
}

.article-body h2 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 2em 0 0.8em;
    padding-bottom: 0.4em;
    border-bottom: 2px solid var(--primary-light);
}
.article-body h2:first-child {
    margin-top: 0;
}

.article-body h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 1.5em 0 0.6em;
}

.article-body ul,
.article-body ol {
    margin: 1em 0 1.5em 1.5em;
    padding-left: 0.5em;
}
.article-body li {
    margin-bottom: 0.6em;
}
.article-body ul li {
    list-style-type: disc;
}
.article-body ol li {
    list-style-type: decimal;
}

.article-body strong {
    color: var(--primary);
    font-weight: 600;
}

.article-body blockquote {
    margin: 1.5em 0;
    padding: 16px 24px;
    border-left: 4px solid var(--primary);
    background: var(--primary-light);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-style: italic;
    color: var(--text-mid);
}

/* 正文图片居中 */
.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
    margin: 1.5em auto;
    display: block;
}

/* 分享区 - 统一风格 */
.article-share {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}
.article-share span {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 500;
}
.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 28px;
    background: #fff;
    color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}
.share-btn:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
}
.share-btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* ========== 底部 CTA 区（统一风格） ========== */
.more-news-wrap {
    text-align: center;
    padding: 60px 20px 20px;
}
.more-news-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 18px 56px;
    background: var(--primary);
    color: #fff;
    border: 3px solid #FFD700;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(250,90,90,0.3), 0 0 0 4px rgba(255,215,0,0.2);
    animation: pulse 2s ease-in-out infinite;
}
.more-news-btn:hover {
    background: #E54545;
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(250,90,90,0.4), 0 0 0 6px rgba(255,215,0,0.3);
    animation: none;
}
.more-news-btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* 脉冲动画 */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 16px rgba(250,90,90,0.3), 0 0 0 4px rgba(255,215,0,0.2);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 28px rgba(250,90,90,0.5), 0 0 0 8px rgba(255,215,0,0.3);
    }
}

/* ========== Toast 提示 ========== */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    padding: 12px 28px;
    border-radius: 50px;
    background: #2D2D2D;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    z-index: 9999;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
}
.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* ========== 响应式 ========== */
@media (max-width: 900px) {
    .article-pager {
        padding: 16px 20px 0;
    }
}

@media (max-width: 600px) {
    .article-header h1 {
        font-size: 1.4rem;
    }
    .article-body {
        padding: 28px 20px;
    }
    .more-news-btn {
        padding: 16px 48px;
        font-size: 1.1rem;
    }
    .share-btn {
        padding: 8px 24px;
        font-size: 0.85rem;
    }
}