/* ===== 文章详情页专用样式 =====
从 post_detail.html 的 ~60KB 内联样式中拆出文章真正用到的部分，
独立成可缓存静态文件（immutable 缓存，跨页面复用）。 */

body.article-detail-page {
    background: #0a0b0d;
}

.article-page {
    max-width: 760px;
    margin: 0 auto;
    padding: 28px 18px 90px;
    color: #e6e8ec;
    font-family: 'Inter', -apple-system, sans-serif;
}

/* ---- 面包屑 ---- */
.article-page .crumb {
    display: flex;
    gap: 8px;
    align-items: center;
    font-size: 0.85rem;
    color: #8a8f98;
    margin-bottom: 18px;
}
.article-page .crumb a { color: #8a8f98; text-decoration: none; }
.article-page .crumb a:hover { color: #fe2c55; }
.article-page .crumb-cur { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 300px; }

/* ---- 标题与元信息 ---- */
.article-page .art-title {
    font-size: 1.9rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 14px;
    color: #f7f8f8;
}
.article-page .art-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    color: #8a8f98;
    font-size: 0.9rem;
    margin-bottom: 22px;
}
.article-page .art-meta .author {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #cfd3da;
    text-decoration: none;
}
.article-page .art-meta .author:hover { color: #fe2c55; }
.article-page .art-meta .avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #fe2c55;
    color: #fff;
    font-weight: 700;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.article-page .art-lead {
    color: #a8adb6;
    font-size: 1.06rem;
    line-height: 1.65;
    margin: 0 0 26px;
    border-left: 3px solid rgba(254, 44, 85, 0.55);
    padding-left: 14px;
}

/* ---- 正文 ---- */
.article-page .article-body p {
    font-size: 1.02rem;
    line-height: 1.78;
    color: #cfd3da;
    margin: 0 0 1.15em;
}
.article-page .article-chapter {
    font-size: 1.35rem;
    font-weight: 700;
    color: #f7f8f8;
    margin: 1.7em 0 0.9em;
    padding-left: 12px;
    border-left: 3px solid #fe2c55;
}
.article-page .article-section {
    font-size: 1.08rem;
    font-weight: 700;
    color: #e6e8ec;
    margin: 1.5em 0 0.6em;
}

/* ---- 广告位 ---- */
.article-page .article-ad { margin: 36px 0 0; }

/* ---- 标签 ---- */
.article-page .art-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 34px;
}
.article-page .chip {
    font-size: 0.82rem;
    color: #8a8f98;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    padding: 4px 12px;
}
.article-page .chip:hover { border-color: rgba(254, 44, 85, 0.5); color: #fe2c55; }

/* ---- 上一篇 / 下一篇 ---- */
.article-page .art-pn {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 34px;
}
.article-page .pn {
    display: flex;
    flex-direction: column;
    gap: 6px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 14px 16px;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.02);
    transition: border-color 0.15s ease;
}
.article-page .pn:hover { border-color: rgba(254, 44, 85, 0.45); }
.article-page .pn span { font-size: 0.78rem; color: #8a8f98; }
.article-page .pn strong {
    font-size: 0.92rem;
    color: #e6e8ec;
    line-height: 1.45;
    font-weight: 600;
}
.article-page .pn.next { text-align: right; }

/* ---- 相关文章 ---- */
.article-page .related-block { margin-top: 40px; }
.article-page .related-block h2 {
    font-size: 1.15rem;
    color: #f7f8f8;
    margin: 0 0 14px;
}
.article-page .related-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.article-page .rel-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 14px 16px;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.02);
    transition: border-color 0.15s ease;
}
.article-page .rel-card:hover { border-color: rgba(254, 44, 85, 0.45); }
.article-page .rel-card strong {
    font-size: 0.95rem;
    color: #e6e8ec;
    font-weight: 600;
    line-height: 1.4;
}
.article-page .rel-card span {
    font-size: 0.84rem;
    color: #8a8f98;
    line-height: 1.5;
}

/* ---- 上传 CTA ---- */
.article-page .upload-cta-box {
    margin-top: 36px;
    border: 1px solid rgba(254, 44, 85, 0.25);
    border-radius: 12px;
    background: rgba(254, 44, 85, 0.08);
    padding: 18px 20px;
}
.article-page .upload-cta-box .cta-t {
    font-weight: 700;
    font-size: 1.02rem;
    color: #f7f8f8;
}
.article-page .upload-cta-box .cta-s {
    color: #a8adb6;
    font-size: 0.9rem;
    margin: 6px 0 14px;
    line-height: 1.55;
}
.article-page .upload-cta-box .cta-btn {
    display: inline-block;
    background: #fe2c55;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.92rem;
    border-radius: 8px;
    padding: 10px 20px;
}
.article-page .upload-cta-box .cta-btn:hover { background: #e8264d; }

/* ---- 移动端 ---- */
@media (max-width: 640px) {
    .article-page .art-title { font-size: 1.5rem; }
    .article-page .art-pn { grid-template-columns: 1fr; }
    .article-page .pn.next { text-align: left; }
    .article-page .related-grid { grid-template-columns: 1fr; }
}

/* ---- 题图 / 文内插图（内容管线生成，缺文件不渲染） ---- */
.article-page .art-hero { margin: 0 0 26px; }
.article-page .art-hero img { display: block; width: 100%; height: auto; border-radius: 12px; }
.article-page figure.art-img { margin: 1.8em 0; }
.article-page figure.art-img img { display: block; width: 100%; height: auto; border-radius: 12px; }

/* ---- 60% 滚动订阅栏（Phase 1 转化）---- */
.scroll-sub-bar {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 300;
    background: rgba(16, 17, 21, 0.97);
    border-top: 1px solid rgba(254, 44, 85, 0.35);
    padding: 14px 16px;
    display: flex;
    justify-content: center;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.45);
}
.scroll-sub-bar .ssb-form { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; justify-content: center; width: 100%; max-width: 640px; }
.scroll-sub-bar .ssb-t { color: #e6e8ec; font-size: 0.92rem; font-weight: 600; }
.scroll-sub-bar input {
    flex: 1; min-width: 180px; background: #16181c; border: 1px solid rgba(255,255,255,.16);
    color: #e6e8ec; border-radius: 8px; padding: 9px 14px; font-size: 0.9rem; outline: none;
}
.scroll-sub-bar input:focus { border-color: rgba(254,44,85,.6); }
.scroll-sub-bar button[type=submit] {
    background: #fe2c55; color: #fff; border: none; border-radius: 8px;
    padding: 9px 20px; font-size: 0.9rem; font-weight: 600; cursor: pointer;
}
.scroll-sub-bar button[type=submit]:hover { background: #e8264d; }
.scroll-sub-bar .ssb-close {
    background: none; border: none; color: #62666d; font-size: 1.2rem; cursor: pointer;
    padding: 4px 8px; line-height: 1;
}
.scroll-sub-bar .ssb-close:hover { color: #e6e8ec; }
.scroll-sub-bar .ssb-done { color: #4caf7d; font-size: 0.92rem; font-weight: 600; padding: 4px 0; }

/* ---- 文章收藏按钮（Phase 2）---- */
.article-page .art-save-btn {
    margin-left: auto;
    background: none;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 999px;
    color: #8a8f98;
    font-size: 0.82rem;
    padding: 5px 14px;
    cursor: pointer;
    text-decoration: none;
    transition: all .15s;
    white-space: nowrap;
}
.article-page .art-save-btn:hover { border-color: rgba(254,44,85,.5); color: #fe2c55; }
.article-page .art-save-btn.saved { border-color: rgba(254,44,85,.6); color: #fe2c55; background: rgba(254,44,85,.08); }
