/* P0-D08：语文「加点字」题的加点呈现。
   旧版本把题干按纯文本输出，学生看不到加点落在哪个字上；
   现在 dotify() 把引号里的目标字包成 <em class="dot">，由这里画出真正的下加点。
   Chrome/Edge/Safari 用 text-emphasis；不支持的环境退化成下点线，也不会变成普通文本。 */
em.dot {
  font-style: normal;
  font-weight: 700;
  color: #14523A;
  padding: 0 1px;
  -webkit-text-emphasis: dot;
  text-emphasis: dot;
  -webkit-text-emphasis-position: under right;
  text-emphasis-position: under right;
  -webkit-text-emphasis-color: #14523A;
  text-emphasis-color: #14523A;
}
@supports not ((text-emphasis: dot) or (-webkit-text-emphasis: dot)) {
  em.dot {
    text-decoration: underline dotted #14523A;
    text-underline-offset: 2px;
    text-decoration-thickness: 1px;
  }
}
/* 手机端字号更小，加点位置略收，避免压到下一行 */
@media (max-width: 480px) {
  em.dot {
    -webkit-text-emphasis-position: under right;
    text-emphasis-position: under right;
    padding: 0;
  }
}
