/* 采集页的本地补充样式
   1) 隐藏原站语言切换入口（页面按浏览器语言自动切换，不提供切换器）
   2) 阿拉伯语等 RTL 场景的基础排版修正
   3) 非中日韩语言下的字号与换行微调
   ========================================================================== */

/* 语言切换入口：构建时标记为 data-lang-switcher（原站为 aria-label="语言"） */
[data-lang-switcher] {
  display: none !important;
}

.header-tool a[aria-label="语言"] {
  display: none !important;
}

/* 兜底：即使语言属性缺失也不显示选择器 */
a[aria-label="语言"],
[data-i18n-switcher] {
  display: none !important;
}

/* 阿拉伯语右到左排版修正 */
html[dir="rtl"] body {
  direction: rtl;
}

html[dir="rtl"] .article-ul-li-syBrXl,
html[dir="rtl"] .article-ol-li-u9gd3m {
  flex-direction: row-reverse;
}

html[dir="rtl"] .article-ul-li-syBrXl::before,
html[dir="rtl"] .article-ol-li-u9gd3m::before {
  margin-right: 0;
  margin-left: 6px;
}

/* 拉丁 / 西里尔 / 阿拉伯文正文行高微调，避免中文行高显得过松 */
html:not([lang^="zh"]):not([lang^="ja"]):not([lang^="ko"]) .article-body,
html:not([lang^="zh"]):not([lang^="ja"]):not([lang^="ko"]) [role="rich-para"] {
  line-height: 1.85;
}

/* 泰文、越南文等需要更大的行距 */
html[lang="th"] [role="rich-para"],
html[lang="vi"] [role="rich-para"] {
  line-height: 2;
}

/* 长单词（德语、土耳其语）避免溢出 */
[role="rich-para"],
article {
  overflow-wrap: break-word;
}

/* 移动端“查看更多”遮罩：展开后淡出 */
.is-article-expanded {
  height: auto !important;
}

.is-article-expanded + .article-more-mask {
  display: none !important;
}

/* 跳转前锁滚动（robot-verify.js 自带遮罩时也保持兼容） */
body.is-verifying {
  overflow: hidden;
}
