/**
 * 2026-11-12 可逆隐藏
 * Pei：「来源隐藏 角标也隐藏 全站」；药械页「常见问题」→「隐藏」。
 * 范围：仅中文页（html[lang="zh-CN"] / body.lang-zh）。英文页不受影响。
 * 撤回：删除本文件，并去掉 functions.php 里 lecheng-zh-hide-sources 的 enqueue
 *       以及 lc_mark_zh_source_notes 过滤器。
 */

/* 正文角标 / 脚注上标 */
html[lang="zh-CN"] sup.fn {
  display: none !important;
}

/* 数字卡片上的「来源 [n]」标注 */
html[lang="zh-CN"] .sr {
  display: none !important;
}

/* 医生名录页底部「资料来源」列表 */
html[lang="zh-CN"] .note:has(ol.dl-src),
html[lang="zh-CN"] ol.dl-src {
  display: none !important;
}

/* 来源区默认整段隐藏。若区内还要保留免责声明、返回链接或最后更新，则只藏标题和列表 */
html[lang="zh-CN"] #sources,
html[lang="zh-CN"] section.src {
  display: none !important;
}
html[lang="zh-CN"] #sources:has(.dfoot),
html[lang="zh-CN"] #sources:has(.back),
html[lang="zh-CN"] section.src:has(.dfoot),
html[lang="zh-CN"] section.src:has(.back),
html[lang="zh-CN"] section.src:has(.updated) {
  display: block !important;
}
html[lang="zh-CN"] #sources:has(.dfoot) .sec-title,
html[lang="zh-CN"] #sources:has(.dfoot) ol,
html[lang="zh-CN"] #sources:has(.back) .sec-title,
html[lang="zh-CN"] #sources:has(.back) ol,
html[lang="zh-CN"] section.src:has(.dfoot) .sec-title,
html[lang="zh-CN"] section.src:has(.dfoot) ol,
html[lang="zh-CN"] section.src:has(.back) .sec-title,
html[lang="zh-CN"] section.src:has(.back) ol,
html[lang="zh-CN"] section.src:has(.updated) .sec-title,
html[lang="zh-CN"] section.src:has(.updated) ol {
  display: none !important;
}

/* 仅药械列表页 / 沃拉西德尼详情的常见问题。其他页 FAQ 不动 */
html[lang="zh-CN"] #view-drugs section.faq,
html[lang="zh-CN"] #view-drug section.faq {
  display: none !important;
}

/* 由 functions.php 输出过滤器打上的「资料来源」「政策来源」说明段，以及「来源 · 更新」字段名 */
html[lang="zh-CN"] .lc-src-note,
html[lang="zh-CN"] .lc-src-dt {
  display: none !important;
}


/* 2026-11-12 Pei：「癌症 糖尿病页面的 来源 更新也去掉」
 * 只作用于中文肿瘤 / 糖尿病页。来源正文仍保留在数据库和备份里，仅从输出隐藏。
 * 覆盖上方 section.src:has(.updated){display:block} 的例外。 */
html[lang="zh-CN"] #view-oncology .updated,
html[lang="zh-CN"] #view-diabetes .updated,
html[lang="zh-CN"] #view-oncology .lc-src-dt,
html[lang="zh-CN"] #view-oncology .lc-src-dt + dd,
html[lang="zh-CN"] #view-diabetes .lc-src-dt,
html[lang="zh-CN"] #view-diabetes .lc-src-dt + dd,
html[lang="zh-CN"] #view-oncology #sources,
html[lang="zh-CN"] #view-oncology section.src,
html[lang="zh-CN"] #view-diabetes #sources,
html[lang="zh-CN"] #view-diabetes section.src {
  display: none !important;
}

/* 2026-11-12 Pei：「小色块 文字带色块都去掉。其他卡片也一样」
 * 仅中文肿瘤 / 糖尿病页上的彩色徽章和色块标签。 */
html[lang="zh-CN"] #view-oncology .badge,
html[lang="zh-CN"] #view-diabetes .badge,
html[lang="zh-CN"] #view-oncology .chip,
html[lang="zh-CN"] #view-diabetes .chip,
html[lang="zh-CN"] #view-oncology .chips,
html[lang="zh-CN"] #view-diabetes .chips,
html[lang="zh-CN"] #view-oncology .top:has(.badge),
html[lang="zh-CN"] #view-diabetes .top:has(.badge) {
  display: none !important;
}

/* 2026-11-12 Pei：「卡片默认收起来挺好。改一下」仅肿瘤 / 糖尿病页特色项目卡片 */
html[lang="zh-CN"] #view-oncology details.feat > summary,
html[lang="zh-CN"] #view-diabetes details.feat > summary {
  cursor: pointer;
  list-style: none;
}
html[lang="zh-CN"] #view-oncology details.feat > summary::-webkit-details-marker,
html[lang="zh-CN"] #view-diabetes details.feat > summary::-webkit-details-marker {
  display: none;
}
html[lang="zh-CN"] #view-oncology details.feat .tog,
html[lang="zh-CN"] #view-diabetes details.feat .tog {
  font-size: 0;
  line-height: 1;
}
html[lang="zh-CN"] #view-oncology details.feat .tog::after,
html[lang="zh-CN"] #view-diabetes details.feat .tog::after {
  content: "▾";
  font-size: 18px;
  font-weight: 600;
}
html[lang="zh-CN"] #view-oncology details.feat[open] .tog::after,
html[lang="zh-CN"] #view-diabetes details.feat[open] .tog::after {
  content: "▴";
}

/* 2026-11-20：中文页隐藏全站顶栏预览条，避免去掉中文文案后留下空横幅。英文页不受影响。 */
body.lang-zh .ribbon,
html[lang="zh-CN"] .ribbon {
  display: none !important;
}
