/* ========== 详情页特有样式（由 detail.html 内联 <style> 外链化，可被浏览器缓存） ========== */
/* ========== 详情页特有：面包屑导航 ========== */
.breadcrumb { max-width: 1200px; margin: 16px auto 0; padding: 0 16px; font-size: 13px; color: #999; }
.breadcrumb a { color: #666; text-decoration: none; }
.breadcrumb a:hover { color: #409cdb; }
.breadcrumb .sep { margin: 0 6px; color: #ccc; }

/* ========== 主体布局 ========== */
#main { max-width: 1200px; margin: 16px auto 30px; padding: 0 16px; display: flex; gap: 20px; }

/* 文章内容区 */
.article_main { flex: 1; min-width: 0; }
.article_card { background: #fff; border-radius: 8px; padding: 28px 32px; box-shadow: 0 1px 6px rgba(0,0,0,.06); }
.article_title { font-size: 26px; font-weight: bold; color: #222; margin: 0 0 16px; line-height: 1.5; }
.article_meta { display: flex; align-items: center; gap: 20px; padding-bottom: 16px; border-bottom: 1px solid #eef4fa; margin-bottom: 20px; font-size: 13px; color: #999; flex-wrap: wrap; }
.article_meta span { white-space: nowrap; }
.article_meta a { color: #409cdb; text-decoration: none; }
.article_meta a:hover { text-decoration: underline; }
.article_meta .meta_label { color: #bbb; }

/* 文章内容 */
.article_summary { background: #f5fafd; border-left: 4px solid #409cdb; border-radius: 0 6px 6px 0; padding: 12px 16px; margin: 0 0 20px; font-size: 14px; color: #555; line-height: 1.8; }
.article_summary strong { color: #409cdb; margin-right: 4px; }
.article-content { font-size: 16px; line-height: 1.9; color: #333; word-wrap: break-word; word-break: break-word; overflow-wrap: break-word; }
.article-content p { margin: 0 0 16px; text-indent: 2em; word-wrap: break-word; word-break: break-word; overflow-wrap: break-word; }
.article-content p.center-img { text-indent: 0; }
.article-content img { max-width: 100%; height: auto; border-radius: 4px; margin: 8px 0; }
.article-content table { border-collapse: collapse; width: 100%; margin: 12px 0; }
.article-content td, .article-content th { border: 1px solid #ddd; padding: 8px 12px; }
.article-content a { color: #409cdb; text-decoration: underline; }
.article-content h2, .article-content h3 { margin: 24px 0 12px; color: #222; }
.article-content h2 { font-size: 20px; border-left: 4px solid #409cdb; padding-left: 12px; }
.article-content h3 { font-size: 18px; }
.article-content ul, .article-content ol { margin: 12px 0; padding-left: 24px; }
.article-content li { margin-bottom: 6px; }
.article-content blockquote { border-left: 4px solid #409cdb; background: #f5fafd; padding: 12px 16px; margin: 16px 0; color: #555; border-radius: 0 6px 6px 0; }

/* 正文富文本防御：强制清除粘贴/AI 内容携带的 nowrap 等破坏性内联样式 */
#articleContent { overflow-wrap: anywhere; }
#articleContent * { white-space: normal !important; overflow-wrap: anywhere; word-break: break-word; }
#articleContent table { table-layout: fixed; max-width: 100%; }
#articleContent td, #articleContent th { overflow-wrap: anywhere; word-break: break-word; }
#articleContent img, #articleContent video, #articleContent iframe { max-width: 100% !important; width: auto !important; height: auto; }
#articleContent pre { white-space: pre-wrap !important; overflow-x: auto; max-width: 100%; }

/* 正文参考文献角标（上标）与文献条目 */
/* text-indent 必须显式置 0：段落 2em 缩进会继承进 inline-block 的角标，造成胶囊左半空白撑宽 */
/* .ref-bind 需 !important 且高特异性，才能压住上方防御规则的 white-space:normal !important */
#articleContent span.ref-bind { white-space: nowrap !important; }
#articleContent sup.ref-mark { white-space: nowrap !important; text-indent: 0; font-size: 11px; font-weight: 600; line-height: 1; vertical-align: super; margin: 0 2px; }
.article-content sup.ref-mark a { display: inline-block; padding: 1px 4px; border-radius: 7px; background: #eaf4fb; color: #409cdb; text-decoration: none; text-indent: 0; transition: all .2s; }
.article-content sup.ref-mark a + a { margin-left: 2px; }
.article-content sup.ref-mark a:hover { background: #409cdb; color: #fff; }
.article-content sup.ref-mark a:focus-visible { outline: 2px solid #409cdb; outline-offset: 1px; background: #409cdb; color: #fff; }
.article-content sup.ref-mark.plain { color: #999; font-weight: normal; }
.article-content p.ref-heading { text-indent: 0; font-size: 16px; color: #222; margin: 26px 0 10px; padding-left: 10px; border-left: 4px solid #409cdb; }
.article-content p.ref-item { text-indent: 0; position: relative; padding-left: 34px; margin: 0 0 6px; font-size: 13px; color: #888; line-height: 1.9; overflow-wrap: break-word; scroll-margin-top: 20px; }
.article-content p.ref-item .ref-no { position: absolute; left: 0; top: 0; font-size: 12px; font-weight: 600; color: #409cdb; }
.article-content p.ref-item:target { background: #fff8e8; border-radius: 4px; }
.article-content p.ref-item:target .ref-no { color: #e6a23c; }

/* 免责声明 */
.article_disclaimer { font-size: 12px; color: #999; line-height: 1.8; padding: 16px 0; /*margin-top: 24px;*/ border-top: 1px dashed #e8e8e8; }

/* 文章分页 */
.article_pagination { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 24px 0 10px; flex-wrap: wrap; border-top: 1px solid #eef4fa; margin-top: 24px; }
.article_pagination ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 6px; }
.article_pagination li { display: inline-flex; }
.article_pagination a, .article_pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 36px; padding: 0 12px; border-radius: 6px; font-size: 14px; text-decoration: none; transition: all .2s; }
.article_pagination a { background: #fff; border: 1px solid #e0eef8; color: #409cdb; }
.article_pagination a:hover { background: #409cdb; border-color: #409cdb; color: #fff; }
.article_pagination .page-current { background: #409cdb; color: #fff; font-weight: bold; border: 1px solid #409cdb; }
.article_pagination .disabled { background: #f5f5f5; border: 1px solid #e8e8e8; color: #ccc; cursor: not-allowed; }
.article_pagination .page-info { color: #999; font-size: 14px; padding: 0 8px; }
.article_pagination .page-text { background: transparent; border: none; color: #409cdb; min-width: auto; padding: 0 8px; }

/* 相关阅读列表（首页列表风格） */
.article_related { margin-top: 24px; border-top: 1px solid #eef4fa; padding-top: 16px; }
.new_list { list-style: none; margin: 0; padding: 0; }
.new_list li { padding: 14px 0; border-bottom: 1px solid #f0f0f0; }
.new_list li:last-child { border-bottom: none; }
.new_list .fl.new_img { display: block; text-decoration: none; color: inherit; }
.list_left { width: 100% !important; }
.list_left h3 { font-size: 18px; color: #333; font-weight: bold; margin: 0 0 6px; line-height: 1.4; }
.list_left p { font-size: 14px; color: #666; margin: 4px 0; line-height: 1.6; }
.new_list li:hover .list_left h3 { color: #409cdb; }

/* ========== 右侧栏 ========== */
.main_right { width: 280px; flex-shrink: 0; position: sticky; top: 20px; align-self: flex-start; }
.h3_title { font-size: 17px; font-weight: bold; color: #333; margin: 0 0 12px; padding-bottom: 9px; border-bottom: 2px solid #eef4fa; position: relative; }
.h3_title::after { content: ''; position: absolute; left: 0; bottom: -2px; width: 48px; height: 2px; background: #409cdb; }
.h2_sidebar { font-size: 17px; font-weight: bold; color: #333; margin: 0 0 12px; padding-bottom: 9px; border-bottom: 2px solid #eef4fa; position: relative; }
.h2_sidebar::after { content: ''; position: absolute; left: 0; bottom: -2px; width: 48px; height: 2px; background: #409cdb; }

/* 医生卡片 */
.doctor_card { margin-bottom: 20px; background: #fff; border-radius: 8px; padding: 20px 16px; box-shadow: 0 1px 6px rgba(0,0,0,.06); text-align: center; }
.doctor_card .doctor_avatar { width: 80px; height: 80px; border-radius: 50%; margin: 0 auto 12px; overflow: hidden; }
.doctor_card .doctor_avatar img { width: 100%; height: 100%; object-fit: cover; }
.doctor_card .doctor_name { font-size: 18px; font-weight: bold; color: #333; margin: 0 0 4px; }
.doctor_card .doctor_name a { color: #333; text-decoration: none; }
.doctor_card .doctor_name a:hover { color: #409cdb; }
.doctor_card .doctor_position { font-size: 14px; color: #666; margin: 0 0 4px; }
.doctor_card .doctor_hospital { font-size: 13px; color: #999; }
.doctor_card .doctor_hospital a { color: #409cdb; text-decoration: none; }
.doctor_card .doctor_hospital a:hover { text-decoration: underline; }

/* 热门标签 */
.hot_label { margin-bottom: 20px; background: #fff; border-radius: 8px; padding: 14px; box-shadow: 0 1px 6px rgba(0,0,0,.06); }
.hot_label > p { font-size: 17px; font-weight: bold; color: #333; margin: 0 0 12px; padding-bottom: 9px; border-bottom: 2px solid #eef4fa; position: relative; }
.hot_label > p::after { content: ''; position: absolute; left: 0; bottom: -2px; width: 48px; height: 2px; background: #409cdb; }
.hot_label_list { display: flex; flex-wrap: wrap; gap: 8px; }
.hot_label_list a { display: inline-block; padding: 4px 12px; background: #f5fafd; border: 1px solid #e0eef8; border-radius: 14px; font-size: 13px; color: #555; text-decoration: none; transition: .2s; white-space: nowrap; }
.hot_label_list a:hover, .hot_label_list a.cur { background: #409cdb; border-color: #409cdb; color: #fff; }

/* 文章排行 */
.paihang { margin-bottom: 20px; background: #fff; border-radius: 8px; padding: 14px; box-shadow: 0 1px 6px rgba(0,0,0,.06); }
.paihang ul { list-style: none; margin: 0; padding: 0; }
.paihang ul li { padding: 8px 10px; margin: 0 -10px; border-bottom: 1px solid #eef4fa; transition: all .25s ease; border-radius: 6px; }
.paihang ul li:hover { background: linear-gradient(90deg, #f0f7ff 0%, #e8f4ff 100%); border-bottom-color: transparent; box-shadow: 0 2px 8px rgba(64,156,219,.12); }
.paihang ul li:last-child { border-bottom: none; }
.paihang h4 { display: flex; align-items: center; gap: 8px; margin: 0; padding: 0; }
.paihang h4 .blue_1 { font-size: 13px; color: #409cdb; text-decoration: none; flex-shrink: 0; max-width: 60px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: all .2s; }
.paihang h4 .blue_1:hover { color: #3688c0; text-decoration: underline; }
.paihang h4 .c333 { font-size: 14px; color: #333; text-decoration: none; font-weight: 500; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: color .2s; }
.paihang h4 .c333:hover { color: #409cdb; }
.paihang .sp1, .paihang .sp2, .paihang .sp3, .paihang .sp4, .paihang .sp5,
.paihang .sp6, .paihang .sp7, .paihang .sp8, .paihang .sp9, .paihang .sp10 {
    display: inline-flex; align-items: center; justify-content: center;
    width: 24px; height: 24px; border-radius: 4px; font-size: 12px; flex-shrink: 0;
    background: #eaf4fb; color: #409cdb; font-weight: bold;
}
.paihang .sp1 { background: linear-gradient(135deg, #409cdb 0%, #3688c0 100%); color: #fff; box-shadow: 0 2px 4px rgba(64,156,219,.3); }
.paihang .sp2 { background: linear-gradient(135deg, #5aa9e0 0%, #4a99d0 100%); color: #fff; box-shadow: 0 2px 4px rgba(90,169,224,.3); }
.paihang .sp3 { background: linear-gradient(135deg, #7bbce8 0%, #6bace0 100%); color: #fff; box-shadow: 0 2px 4px rgba(123,188,232,.3); }

/* 详情页移动端特有 */
@media screen and (max-width: 1024px) {
    .main_right { width: 240px; }
    .article_card { padding: 20px 24px; }
    .article_title { font-size: 22px; }
}
@media screen and (max-width: 767px) {
    #main { flex-direction: column; margin: 12px auto; padding: 0 10px; gap: 16px; }
    .article_card { padding: 16px; }
    .article_title { font-size: 20px; }
    .article-content { font-size: 15px; }
    .article-content p { text-indent: 0; }
    #articleContent sup.ref-mark { font-size: 10px; margin: 0 1px; }
    .article-content p.ref-item { padding-left: 30px; font-size: 12px; }
    .article_related ul li { flex: 0 0 100%; }
    .main_right { display: none; }
}
@media screen and (max-width: 374px) {
    .article_title { font-size: 18px; }
}
