/* ============================================================
   文章详情页 article-content 样式（CMS 字段展示）
   依赖 content.css 提供 .article-content 基础字号行高，
   本文件只负责文章结构组件
   ============================================================ */

/* 覆盖 content.css 中 .article-content p 的全局缩进，
   只让正文段落保留缩进 */
.article-content p { margin-bottom: 0; text-indent: 0; }
.article-content .art-body p { margin-bottom: 20px; text-indent: 2em; }

/* ---------- 头部：引题 / 标题 / 副标题 ---------- */
.art-header { text-align: center; margin-bottom: 24px; }
.art-kicker { font-size: 14px; color: #0066cc; letter-spacing: 2px; margin-bottom: 10px; }
.art-title { font-size: 30px; line-height: 1.45; color: #222; font-weight: 600; }
.art-subtitle { font-size: 16px; color: #999; margin-top: 10px; font-weight: 400; }

/* ---------- 标记：置顶 / 头条 / 推荐 / 图片文章 ---------- */
.art-flags { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.art-flag { font-size: 12px; padding: 2px 10px; border-radius: 20px; border: 1px solid; line-height: 1.6; }
.flag-top      { color: #e64545; border-color: #f3c2c2; background: #fdf1f1; }
.flag-headline { color: #e67e22; border-color: #f5d7b3; background: #fdf6ec; }
.flag-rec      { color: #0066cc; border-color: #bcd9f5; background: #eef5ff; }
.flag-pic      { color: #16a085; border-color: #b3e0d4; background: #eafaf6; }

/* ---------- 元信息：栏目 / 日期 / 来源 / 作者 / 编辑 / 审核 / 点击 ---------- */
.art-meta {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px;align-items: center;
    margin-top: 16px; padding: 10px 14px;
    background: #f7f9fc; border: 1px solid #eef1f6; border-radius: 6px;
    font-size: 13px; color: #999;
}
.art-meta a { color: #0066cc; text-decoration: none;}
.art-meta a:hover { text-decoration: underline; }
.art-meta .hits { color: #e67e22; font-weight: 600; }

/* ---------- 摘要 ---------- */
.art-abstract {
    margin-bottom: 26px; padding: 16px 18px;
    background: #fbfdff; border: 1px solid #e3ecf7;
    border-radius: 4px; font-size: 14px; color: #666; line-height: 1.9;
    text-align: justify;
}
.art-abstract-label {
    display: inline-block; font-size: 12px; color: #fff; background: #0066cc;
    padding: 1px 8px; border-radius: 3px; margin-right: 8px; vertical-align: 1px;
}

/* ---------- 标题图 ---------- */
.art-figure { margin: 0 auto 26px; max-width: 860px; }
.art-figure img { width: 100%; border-radius: 6px; }
.art-figure figcaption { text-align: center; font-size: 13px; color: #999; margin-top: 8px; }

/* ---------- 扩展字段 ---------- */
.art-extra {
    margin-bottom: 22px; padding: 10px 14px;
    font-size: 13px; color: #888;
    background: #fafafa; border: 1px dashed #e2e2e2; border-radius: 4px;
}
.art-extra b { color: #555; font-weight: 600; }

/* ---------- 关键字 ---------- */
.art-keywords { font-size: 13px; color: #999; margin-bottom: 24px; }
.art-keywords a {
    display: inline-block; color: #0066cc; background: #eef5ff;
    padding: 2px 12px; border-radius: 12px; margin: 2px 4px; transition: all .3s;
}
.art-keywords a:hover { background: #0066cc; color: #fff; }

/* ---------- 附件 ---------- */
.art-attach { border: 1px solid #eef1f6; border-radius: 6px; margin-bottom: 26px; }
.art-attach-title {
    padding: 10px 16px; background: #f7f9fc; border-bottom: 1px solid #eef1f6;
    font-size: 14px; font-weight: 600; color: #333;
}
.art-attach ul { padding: 6px 16px; }
.art-attach li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 0; font-size: 14px; }
.art-attach li + li { border-top: 1px dashed #f0f0f0; }
.art-attach a { color: #0066cc; display: flex; align-items: center; gap: 6px; min-width: 0; text-decoration: none;}
.art-attach a:hover { text-decoration: underline; }
.art-attach a svg { flex-shrink: 0; }
.art-attach .times { color: #bbb; font-size: 12px; flex-shrink: 0; }

/* ---------- 文章分页 ---------- */
.art-page { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; font-size: 14px; }
.art-page a, .art-page .cur {
    min-width: 32px; height: 32px; padding: 0 10px;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid #e6e8ee; border-radius: 4px; color: #555;
}
.art-page a:hover { border-color: #0066cc; color: #0066cc; }
.art-page .cur { background: #0066cc; border-color: #0066cc; color: #fff; }

/* ---------- 元信息条内分享 ---------- */
.art-meta .art-share { display: flex; align-items: center; gap: 6px; }
.art-meta .art-share a {
    width: 22px; height: 22px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 11px; font-weight: 600; transition: all .3s;
}
.art-meta .art-share a:hover { transform: translateY(-2px); /*box-shadow: 0 3px 8px rgba(0,0,0,.2);*/ }
.art-share img {max-width:100%}

/* ---------- 微信分享弹层 ---------- */
.wx-pop {
    position: fixed; inset: 0; background: rgba(0,0,0,.45);
    display: flex; align-items: center; justify-content: center; z-index: 9999;
}
.wx-pop-box {
    background: #fff; border-radius: 8px; padding: 24px;
    width: 320px; max-width: calc(100vw - 40px); text-align: center;
}
.wx-pop-box h4 { font-size: 16px; color: #333; }
.wx-pop-box .wx-tip { font-size: 12px; color: #999; margin: 8px 0 12px; }
.wx-pop-url {
    word-break: break-all; background: #f5f6f8; border: 1px solid #eef0f3;
    padding: 8px 10px; border-radius: 4px; font-size: 12px; color: #666;
    margin-bottom: 16px; text-align: left;
}
.wx-pop-btns { display: flex; justify-content: center; gap: 10px; }
.wx-pop-btns a {
    font-size: 13px; padding: 6px 18px; border-radius: 4px;
    cursor: pointer; border: 1px solid #e6e8ee; color: #666;
}
.wx-pop-btns a:first-child { background: #0066cc; border-color: #0066cc; color: #fff; }
.wx-qr {
    width: 180px; height: 180px; margin: 0 auto 12px;
    padding: 8px; border: 1px solid #eef0f3; border-radius: 6px;
    display: flex; align-items: center; justify-content: center;
}
.wx-qr img, .wx-qr canvas { display: block; width: 100%; height: 100%; }
/* ---------- 复制成功 toast ---------- */
.share-toast {
    position: fixed; left: 50%; top: 20%; z-index: 10000;
    transform: translateX(-50%) translateY(-8px);
    background: rgba(0,0,0,.75); color: #fff; font-size: 13px;
    padding: 8px 20px; border-radius: 20px;
    opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s;
}
.share-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- 上一条 / 下一条 ---------- */
.art-prevnext { border-top: 1px solid #f0f0f0; margin-top: 4px; }
.art-prevnext p { display: flex; align-items: center; gap: 8px; padding: 10px 0; font-size: 14px; color: #666; }
.art-prevnext p + p { border-top: 1px dashed #f0f0f0; }
.art-prevnext .label { color: #999; flex-shrink: 0; }
.art-prevnext a { color: #333; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;text-decoration: none; }
.art-prevnext a:hover { color: #0066cc; }
.art-prevnext .date { color: #bbb; font-size: 12px; margin-left: auto; flex-shrink: 0; }

/* ---------- 正文中的图片与视频 ---------- */
/* 直接插入的图片/视频：限宽、居中、圆角 */
.art-body img {
    /*display: block;*/
    max-width: calc(100% - 2em);
    height: auto !important;
    /*margin: 6px auto 24px;*/
}
.art-body video {
    display: block;
    width: 100%;
    max-width: 860px;
    margin: 6px auto 24px;
    background: #000;
    aspect-ratio: 16 / 9;
}
/* 带图注的媒体：figure 包裹，说明文字居中灰显 */
.art-body figure {
    margin: 6px auto 26px;
    max-width: 860px;
}
.art-body figure img,
.art-body figure video {
    margin: 0 auto;
    width: 100%;
}
.art-body figcaption {
    text-align: center;
    font-size: 13px;
    color: #999;
    margin-top: 8px;
    line-height: 1.6;
}
/* 行内小图（文字中混排的小图标）显式加 .art-img-inline */
.art-body img.art-img-inline {
    display: inline-block;
    vertical-align: middle;
    margin: 0 2px;
    border-radius: 3px;
}
/* 视频说明条（CMS 标题视频地址场景） */
.art-media-tip {
    text-align: center;
    font-size: 12px;
    color: #bbb;
    margin-top: -18px;
    margin-bottom: 22px;
}

/* ---------- 响应式 ---------- */
@media (max-width: 768px) {
    .art-title { font-size: 22px; }
    .art-subtitle { font-size: 14px; }
    .art-meta { justify-content: flex-start; font-size: 12px; gap: 4px 14px; }
    .art-abstract { font-size: 13px; }
    .article-content .art-body p { margin-bottom: 16px; }
    .art-prevnext .date { display: none; }
    /*.art-body img { max-width:100%;height: auto !important;}*/
}
@media (max-width: 480px) {
    .art-title { font-size: 19px; }
}