/* ==========================================================================
   RKS —— 个人门户 + 日志
   --------------------------------------------------------------------------
   版式参考 2010 年前后的杂志型 WordPress 主题与机构资料库站点：
   灰底上摆白色面板，1px 实线边框，一层极浅投影；链接用暗血红，点缀色取赭金；
   侧栏分组标题带一条底线，组内条目用点线分隔；
   索引表格 5px 内边距、细线格，表头浅灰。
   全部直角、无渐变、无圆角、无动效。
   ========================================================================== */

html {
  background: #e9e9e9;
}

body {
  margin: 0;
  padding: 0;
  background: #e9e9e9;
  color: #2f2f2f;
  font: 16px/1.66 Arial, Helvetica, "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", sans-serif;
  -webkit-text-size-adjust: 100%;
}

a {
  color: #8b1a0f;
  text-decoration: none;
}

a:visited {
  color: #7a5210;
}

a:hover,
a:focus {
  color: #8b1a0f;
  text-decoration: underline;
}

a.new,
.op {
  color: #bd3500;
}

img {
  border: 0;
  max-width: 100%;
}

.sep {
  padding: 0 0.42em;
  color: #b0b0b0;
}

.mw-num,
.mw-count {
  color: #808080;
  font-size: 0.88em;
  font-weight: 400;
}

.mw-draft {
  padding: 0 0.35em;
  border: 1px solid #c8c8c8;
  background: #f2f2f2;
  color: #808080;
  font-size: 0.84em;
}

/* ---------- 加密条目 ---------- */

.mw-lock {
  padding: 0 0.35em;
  border: 1px solid #b9a48a;
  background: #fdf8ea;
  color: #7a5210;
  font-size: 0.84em;
  white-space: nowrap;
}

.mw-locked-line {
  margin: 0 0 6px;
  padding: 9px 11px;
  border: 1px solid #e7e7e7;
  background: #fbfbfb;
  color: #595959;
  font-size: 13px;
}

.mw-locked-line .mw-lock {
  margin-right: 0.5em;
}

.mw-lockbox {
  margin: 16px 0 0;
  padding: 16px 18px 12px;
  border: 1px solid #c8c8c8;
  background: #fbfbfb;
}

.mw-locknote {
  max-width: 40em;
  margin: 0 0 14px;
  color: #595959;
  font-size: 14px;
  line-height: 1.75;
}

/* ---------- 版面骨架 ---------- */

.mw-wrap {
  max-width: 1440px;
  margin: 0 auto;
  padding: 14px 0 26px;
}

/* ---------- 报头 ---------- */

.mw-header {
  border: 1px solid #c8c8c8;
  background: #fff;
  box-shadow: 0 2px 5px rgba(50, 50, 50, 0.14);
}

.mw-utility {
  padding: 7px 14px;
  border-bottom: 1px solid #e7e7e7;
  background: #fbfbfb;
  color: #808080;
  font-size: 12.5px;
  line-height: 1.6;
}

.mw-utility::after {
  content: "";
  display: block;
  clear: both;
}

.mw-utility-l {
  float: left;
}

.mw-utility-r {
  float: right;
}

/* 居中的报头：徽标在中间，两侧用大字标语把空档填起来 */
.mw-masthead {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5%;
  padding: 24px 26px 22px;
}

.mw-brand {
  flex: none;
  text-align: center;
}

/* 两侧标语：报头两翼的大字，衬线加粗，与背景的红压成一套 */
.mw-motto-col {
  flex: 1 1 0;
  min-width: 0;
}

ul.mw-motto {
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: center;
}

ul.mw-motto li {
  margin: 0;
  color: #7b1a12;
  font: 700 30px/1.35 Georgia, "Times New Roman", "Songti SC", "SimSun", "STSong", serif;
  letter-spacing: 0.01em;
  text-indent: 0.01em;
  white-space: nowrap;
}

/* 徽标下方那两行诗 */
.mw-verse {
  margin: 14px 0 0;
  color: #7d6a58;
  font: italic 15px/1.95 Georgia, "Times New Roman", "Songti SC", "SimSun", "STSong", serif;
  letter-spacing: 0.05em;
}

.mw-verse span {
  display: block;
}

.mw-siteslogan {
  max-width: 30em;
  margin: 9px auto 0;
  color: #808080;
  font-size: 13px;
  line-height: 1.65;
}

.mw-sitelogo {
  margin: 0 0 14px;
}

.mw-sitelogo img {
  display: inline-block;
  width: auto;
  max-width: 100%;
  max-height: 96px;
}

/* 徽标直接顶替文字站名时，图片即 h1 的内容 */
.mw-sitetitle-img {
  display: inline-block;
  width: auto;
  height: 148px;
  vertical-align: middle;
}

.mw-sitetitle a:hover .mw-sitetitle-img {
  opacity: 0.86;
}

.mw-sitetitle {
  margin: 0;
  font: 400 36px/1.25 Georgia, "Times New Roman", "Songti SC", "SimSun", "STSong", serif;
  letter-spacing: 0.06em;
}

.mw-sitetitle a,
.mw-sitetitle a:visited {
  color: #2f2f2f;
}

.mw-sitetitle a:hover {
  color: #8b1a0f;
  text-decoration: none;
}

.mw-siteslogan {
  max-width: 34em;
  margin: 8px 0 0;
  color: #808080;
  font-size: 13.5px;
  line-height: 1.6;
}

/* ---------- 导航条 ---------- */

.mw-navbar {
  margin: 14px 0 0;
  border: 1px solid #c8c8c8;
  background: #fff;
  box-shadow: 0 2px 5px rgba(50, 50, 50, 0.14);
}

ul.mw-nav {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  line-height: 1.5;
}

ul.mw-nav li {
  margin: 0;
  border-right: 1px solid #e7e7e7;
}

ul.mw-nav li a {
  display: block;
  padding: 11px 19px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

ul.mw-nav li a:visited {
  color: #8b1a0f;
}

ul.mw-nav li:hover {
  background: #f4f4f4;
}

ul.mw-nav li.selected {
  background: #8b1a0f;
}

ul.mw-nav li.selected a,
ul.mw-nav li.selected a:visited {
  color: #fff;
  text-decoration: none;
}

ul.mw-nav li.selected:hover {
  background: #8b1a0f;
}

ul.mw-nav li.spacer {
  flex: 1 1 auto;
  border-right: 0;
}

ul.mw-nav li.tail {
  background: #fbfbfb;
}

ul.mw-nav li.tail a {
  color: #808080;
  font-size: 13px;
}

/* ---------- 两栏 ---------- */

.mw-body {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-top: 14px;
}

.mw-sidebar {
  flex: none;
  width: 262px;
  padding: 0 0 6px;
  border: 1px solid #c8c8c8;
  background: #fff;
  box-shadow: 0 2px 5px rgba(50, 50, 50, 0.14);
  font-size: 13.5px;
  line-height: 1.6;
}

.mw-content {
  flex: 1 1 auto;
  min-width: 0;
  padding: 22px 30px 30px;
  border: 1px solid #c8c8c8;
  background: #fff;
  box-shadow: 0 2px 5px rgba(50, 50, 50, 0.14);
  word-wrap: break-word;
}

/* ---------- 侧栏分组 ---------- */

.portal {
  padding: 0 18px 16px;
}

.portal-title {
  margin: 0 0 14px;
  padding: 16px 0 9px;
  border-bottom: 1px solid #2f2f2f;
  color: #2f2f2f;
  font: 400 17px/1.3 Georgia, "Times New Roman", "Songti SC", "SimSun", serif;
  letter-spacing: 0.04em;
}

.portal-body ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.portal-body li {
  margin: 0 0 7px;
  padding: 0 0 6px;
  border-bottom: 1px dotted #e7e7e7;
}

.portal-body li:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.mw-search {
  margin: 0;
}

.mw-search .mw-input {
  display: block;
  width: 100%;
  margin-bottom: 6px;
  box-sizing: border-box;
}

/* ---------- 标题与路径 ---------- */

.mw-h1 {
  margin: 0 0 12px;
  padding: 0 0 10px;
  border-bottom: 1px solid #2f2f2f;
  color: #2b2b2b;
  font: 400 28px/1.35 Georgia, "Times New Roman", "Songti SC", "SimSun", "STSong", serif;
  letter-spacing: 0.02em;
}

.mw-h2 {
  clear: both;
  margin: 30px 0 14px;
  padding: 0 0 7px;
  border-bottom: 1px solid #c8c8c8;
  color: #2b2b2b;
  font: 400 21px/1.4 Georgia, "Times New Roman", "Songti SC", "SimSun", "STSong", serif;
  letter-spacing: 0.02em;
}

.mw-h3 {
  margin: 26px 0 8px;
  color: #2b2b2b;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
}

.mw-h3 a {
  color: #2b2b2b;
}

.mw-subtitle {
  margin: -4px 0 14px;
  color: #808080;
  font-size: 13px;
}

.mw-trail {
  margin: 0 0 16px;
  padding: 0 0 8px;
  border-bottom: 1px dotted #c8c8c8;
  color: #808080;
  font-size: 12.5px;
  line-height: 1.6;
}

.mw-trail-label {
  padding-right: 0.1em;
  color: #808080;
}

.mw-lead-line,
.mw-resultline {
  margin: 0 0 16px;
  color: #808080;
  font-size: 13px;
  line-height: 1.7;
}

/* 首页简介：本身就是一段正文，不再套浅底方框。
   里面存的是编辑器排好的 HTML，排版权重交给 .mw-parser。 */
.mw-intro {
  margin: 0 0 22px;
}

.mw-intro > :first-child {
  margin-top: 0;
}

.mw-intro > :last-child {
  margin-bottom: 0;
}

.mw-plain {
  margin: 14px 0 0;
  color: #808080;
  font-size: 13.5px;
}

.mw-empty {
  margin: 16px 0;
  padding: 12px 15px;
  border: 1px solid #e7e7e7;
  background: #f7f7f7;
  color: #595959;
}

.mw-notice,
.mw-warn {
  margin: 0 0 18px;
  padding: 10px 14px;
  border: 1px solid #d9c9a3;
  background: #fdf8ea;
  font-size: 14px;
}

.mw-warn {
  border-color: #d9b3a3;
  background: #fdf1ec;
}

/* ---------- 分区目录（首页与归档用） ---------- */

dl.mw-directory {
  margin: 0 0 6px;
  border-bottom: 1px solid #e7e7e7;
  font-size: 13.5px;
  line-height: 1.75;
}

dl.mw-directory::after {
  content: "";
  display: block;
  clear: both;
}

dl.mw-directory dt {
  float: left;
  clear: left;
  width: 5.6em;
  margin: 0 0 8px;
  padding: 0;
  color: #2f2f2f;
  font-weight: 700;
}

dl.mw-directory dd {
  margin: 0 0 8px 5.6em;
  padding: 0 0 8px;
  border-bottom: 1px dotted #e7e7e7;
}

dl.mw-directory dd:last-child {
  border-bottom: 0;
}

dl.mw-directory a {
  color: #8b1a0f;
}

dl.mw-directory .mw-yearlink {
  padding-right: 0.4em;
  font-variant-numeric: tabular-nums;
}

dl.mw-directory .mw-monthlist a {
  padding-right: 0.06em;
}

dl.mw-directory .mw-monthlist .mw-num {
  padding-right: 0.4em;
}

/* ---------- 正文 ---------- */

.mw-parser {
  font-size: 17px;
  line-height: 1.84;
}

.mw-parser p {
  margin: 0 0 1.05em;
}

/* 空段落（编辑器里连敲回车留的空行）要占满一整行，
   否则存下来就在页面上没了。min-height 用行高，跟着字号走。
   <p><br></p> 那条用 :has()，认得它的浏览器才算；两条分开写，
   老浏览器不认识 :has() 也还能吃到 p:empty 这条。 */
.mw-parser p:empty {
  min-height: 1.84em;
  margin-bottom: 0;
}

.mw-parser p:has(> br:only-child) {
  min-height: 1.84em;
  margin-bottom: 0;
}

.mw-parser h2 {
  margin: 1.5em 0 0.55em;
  padding: 0 0 6px;
  border-bottom: 1px solid #c8c8c8;
  color: #2b2b2b;
  font: 400 20px/1.4 Georgia, "Times New Roman", "Songti SC", "SimSun", serif;
  letter-spacing: 0.02em;
}

.mw-parser h3 {
  margin: 1.35em 0 0.45em;
  color: #2b2b2b;
  font-size: 16.5px;
  line-height: 1.5;
}

.mw-parser h4 {
  margin: 1.2em 0 0.4em;
  font-size: 15.5px;
}

.mw-parser ul,
.mw-parser ol {
  margin: 0 0 1.05em;
  padding-left: 1.9em;
}

.mw-parser li {
  margin: 0 0 0.35em;
}

.mw-parser a {
  text-decoration: underline;
}

.mw-parser blockquote {
  margin: 0 0 1.05em;
  padding: 2px 0 2px 14px;
  border-left: 3px solid #d8d8d8;
  color: #595959;
}

.mw-parser hr {
  height: 1px;
  margin: 1.6em 0;
  border: 0;
  background: #e7e7e7;
}

.mw-parser pre {
  margin: 0 0 1.05em;
  padding: 11px 14px;
  border: 1px solid #e7e7e7;
  background: #f7f7f7;
  font: 13.5px/1.65 Consolas, "Courier New", monospace;
  overflow-x: auto;
}

.mw-parser code {
  padding: 0 0.25em;
  border: 1px solid #e7e7e7;
  background: #f7f7f7;
  font: 0.92em/1.5 Consolas, "Courier New", monospace;
}

.mw-parser pre code {
  padding: 0;
  border: 0;
  background: none;
}

.mw-parser img {
  height: auto;
}

.mw-parser table {
  margin: 0 0 1.05em;
  border-collapse: collapse;
  font-size: 14px;
}

.mw-parser th,
.mw-parser td {
  padding: 5px 9px;
  border: 1px solid #e7e7e7;
  text-align: left;
  vertical-align: top;
}

.mw-parser th {
  background: #f0f0f0;
  font-weight: 700;
}

/* ---------- 条目 ---------- */

.mw-post {
  margin: 0 0 30px;
  padding: 0 0 22px;
  border-bottom: 1px dotted #c8c8c8;
}

.mw-post:last-child {
  margin-bottom: 0;
  border-bottom: 0;
}

.mw-post .mw-h3 {
  margin-top: 0;
}

.mw-postmeta {
  margin: 0 0 12px;
  color: #808080;
  font-size: 12.5px;
  line-height: 1.7;
}

.mw-postmeta a {
  color: #4a4a4a;
}

.mw-readmore {
  white-space: nowrap;
}

.mw-postfoot {
  margin: 14px 0 0;
  padding: 8px 0 0;
  border-top: 1px dotted #e7e7e7;
  color: #808080;
  font-size: 12.5px;
}

.mw-postnav {
  margin: 22px 0 0;
  padding: 9px 12px;
  border: 1px solid #e7e7e7;
  background: #f7f7f7;
  font-size: 13.5px;
}

.mw-postnav .lbl {
  color: #808080;
}

.mw-revision {
  margin: 16px 0 0;
  color: #808080;
  font-size: 12.5px;
}

.mw-catlinks {
  margin: 26px 0 0;
  padding: 9px 13px;
  border: 1px solid #e7e7e7;
  background: #f7f7f7;
  font-size: 13.5px;
  line-height: 1.75;
}

.mw-catlabel {
  color: #808080;
}

.mw-catall {
  float: right;
}

.mw-lastmod {
  margin: 16px 0 0;
  padding-top: 8px;
  border-top: 1px dotted #e7e7e7;
  color: #808080;
  font-size: 12.5px;
}

/* ---------- 目录框 ---------- */

.toc {
  margin: 0 0 20px;
  padding: 11px 15px 13px;
  border: 1px solid #e7e7e7;
  background: #f7f7f7;
  font-size: 13.5px;
  line-height: 1.75;
}

.toc-title {
  margin: 0 0 6px;
  padding: 0 0 5px;
  border-bottom: 1px solid #e7e7e7;
  color: #2f2f2f;
  font-weight: 700;
}

.toc ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.toc li.lv3 {
  padding-left: 1.6em;
}

/* ---------- 条目记录表 ---------- */

table.infobox {
  float: right;
  width: 19.5em;
  margin: 0 0 16px 20px;
  border: 1px solid #c8c8c8;
  border-collapse: collapse;
  background: #fff;
  font-size: 13px;
  line-height: 1.6;
}

table.infobox caption {
  padding: 6px 9px;
  border: 1px solid #c8c8c8;
  border-bottom: 0;
  background: #f0f0f0;
  color: #2f2f2f;
  font-weight: 700;
  text-align: center;
}

table.infobox th {
  width: 6.4em;
  padding: 5px 9px;
  border: 1px solid #e7e7e7;
  background: #f7f7f7;
  color: #595959;
  font-weight: 400;
  text-align: left;
  vertical-align: top;
  white-space: nowrap;
}

table.infobox td {
  padding: 5px 9px;
  border: 1px solid #e7e7e7;
  vertical-align: top;
}

table.infobox .infobox-foot {
  color: #808080;
  font-size: 12px;
}

/* ---------- 索引表格 ---------- */

table.mw-index {
  width: 100%;
  margin: 0 0 4px;
  border-collapse: collapse;
  font-size: 14.5px;
  line-height: 1.6;
}

table.mw-index th {
  padding: 5px 9px;
  border: 1px solid #c8c8c8;
  background: #f0f0f0;
  color: #2f2f2f;
  font-weight: 700;
  text-align: left;
}

table.mw-index td {
  padding: 5px 9px;
  border: 1px solid #e7e7e7;
  vertical-align: top;
}

table.mw-index tbody tr:nth-child(even) {
  background: #fbfbfb;
}

table.mw-index .c-id,
table.mw-index .c-date,
table.mw-index .c-num {
  color: #808080;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

table.mw-index .c-num {
  text-align: right;
}

table.mw-index .c-cat {
  color: #595959;
  white-space: nowrap;
}

table.mw-index .c-abs {
  margin: 3px 0 0;
  color: #808080;
  font-size: 12.5px;
  line-height: 1.6;
}

/* ---------- 站点数字表 ---------- */

table.mw-facts {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  line-height: 1.6;
}

table.mw-facts th {
  width: 6.4em;
  padding: 4px 8px 4px 0;
  border: 0;
  border-bottom: 1px dotted #e7e7e7;
  color: #808080;
  font-weight: 400;
  text-align: left;
  vertical-align: top;
  white-space: nowrap;
}

table.mw-facts td {
  padding: 4px 0;
  border: 0;
  border-bottom: 1px dotted #e7e7e7;
  vertical-align: top;
}

table.mw-facts tr:last-child th,
table.mw-facts tr:last-child td {
  border-bottom: 0;
}

/* ---------- 翻页 ---------- */

.mw-pager {
  margin: 22px 0 0;
  padding: 10px 13px;
  border: 1px solid #e7e7e7;
  background: #f7f7f7;
  font-size: 13.5px;
  line-height: 1.6;
}

.mw-pager::after {
  content: "";
  display: block;
  clear: both;
}

.mw-pager .off {
  color: #b0b0b0;
}

.mw-pagenum {
  float: right;
  color: #808080;
}

/* ---------- 讨论区 ---------- */

.mw-comment {
  margin: 0 0 4px;
  padding: 12px 0;
  border-bottom: 1px dotted #e7e7e7;
}

.mw-comment:last-child {
  border-bottom: 0;
}

.mw-comment-head {
  margin: 0 0 7px;
  color: #808080;
  font-size: 12.5px;
  line-height: 1.6;
}

.mw-comment-head .mw-sign,
.mw-comment-head a {
  font-weight: 700;
}

.mw-sign {
  color: #2f2f2f;
}

.mw-timestamp {
  color: #808080;
}

.mw-comment-body {
  font-size: 16px;
  line-height: 1.8;
}

.mw-comment-body p {
  margin: 0.35em 0;
}

.mw-comment-body p:last-child {
  margin-bottom: 0;
}

.mw-comment-body a {
  text-decoration: underline;
}

/* ---------- 表单 ---------- */

.mw-form {
  margin: 0;
}

table.mw-formtable {
  border-collapse: collapse;
  font-size: 14px;
}

table.mw-formtable th {
  width: 6.6em;
  padding: 5px 12px 5px 0;
  border: 0;
  color: #595959;
  font-weight: 400;
  text-align: right;
  vertical-align: top;
  white-space: nowrap;
}

table.mw-formtable th.top {
  padding-top: 8px;
}

table.mw-formtable td {
  padding: 4px 0 10px;
  border: 0;
  vertical-align: top;
}

table.mw-formtable.wide th {
  width: 5.8em;
}

.mw-input,
.mw-textarea {
  padding: 4px 6px;
  border: 1px solid #b0b0b0;
  border-radius: 0;
  background: #fff;
  color: #2f2f2f;
  font: 14px/1.55 Arial, Helvetica, "Microsoft YaHei", "PingFang SC", sans-serif;
  box-sizing: border-box;
}

.mw-input:focus,
.mw-textarea:focus {
  border-color: #8b1a0f;
  outline: 1px solid #e6bdb0;
}

.mw-textarea {
  width: 100%;
  max-width: 46em;
  line-height: 1.7;
  resize: vertical;
}

.mono {
  font-family: Consolas, "Courier New", monospace;
  font-size: 13.5px;
}

.long {
  width: 32em;
}

.mw-input[type="date"],
.mw-input[type="time"] {
  font-variant-numeric: tabular-nums;
}

.mw-button {
  padding: 5px 16px;
  border: 1px solid #b0b0b0;
  border-radius: 0;
  background: #f0f0f0;
  color: #2f2f2f;
  font: 14px/1.5 Arial, Helvetica, "Microsoft YaHei", "PingFang SC", sans-serif;
  cursor: pointer;
}

.mw-button:hover {
  border-color: #808080;
  background: #e4e4e4;
}

.mw-button-link {
  display: inline-block;
  margin: 0 6px 4px 0;
  padding: 5px 14px;
  border: 1px solid #b0b0b0;
  background: #f0f0f0;
  color: #8b1a0f;
}

.mw-button-link:hover {
  border-color: #808080;
  background: #e4e4e4;
  text-decoration: none;
}

.mw-cancel {
  margin-left: 8px;
  color: #808080;
}

.mw-hint {
  margin-top: 4px;
  color: #808080;
  font-size: 12.5px;
  line-height: 1.65;
}

.mw-required {
  color: #bd3500;
}

.mw-formbuttons {
  padding-top: 8px;
}

.trap {
  display: none;
}

/* ---------- 页脚 ---------- */

.mw-footer {
  margin-top: 14px;
  padding: 16px 22px;
  border: 1px solid #c8c8c8;
  background: #fff;
  box-shadow: 0 2px 5px rgba(50, 50, 50, 0.14);
  color: #595959;
  font-size: 13px;
  line-height: 1.8;
}

.mw-footer a {
  color: #8b1a0f;
}

.mw-foot-cols {
  display: flex;
  gap: 30px;
  margin: 0 0 9px;
  padding: 0 0 9px;
  border-bottom: 1px dotted #e7e7e7;
}

.mw-foot-cols > div {
  flex: 1 1 auto;
  min-width: 0;
}

.mw-colophon {
  color: #808080;
}

/* ---------- 标语分档 ---------- */

/* 两侧标语是等长的对句，字号按可用宽度分档：
   宁可小一档，也不让字压到中间的徽标上。 */
@media (min-width: 1100px) and (max-width: 1199px) {
  ul.mw-motto li {
    font-size: 23px;
  }
}

@media (min-width: 1200px) and (max-width: 1299px) {
  ul.mw-motto li {
    font-size: 26px;
  }
}

@media (min-width: 1300px) and (max-width: 1399px) {
  ul.mw-motto li {
    font-size: 29px;
  }
}

@media (min-width: 1400px) and (max-width: 1499px) {
  ul.mw-motto li {
    font-size: 32px;
  }
}

@media (min-width: 1500px) {
  ul.mw-motto li {
    font-size: 33px;
  }
}


/* ---------- 窄屏 ---------- */

@media (max-width: 1100px) {
  .mw-wrap {
    padding: 8px 8px 18px;
  }

  .mw-utility-l,
  .mw-utility-r {
    float: none;
  }

  /* 窄屏：报头只留徽标，两侧标语收起来（太窄放不下） */
  .mw-masthead {
    padding: 20px 16px 18px;
  }

  .mw-motto-col {
    display: none;
  }

  .mw-sitetitle {
    font-size: 27px;
  }

  .mw-sitetitle-img {
    height: 96px;
  }

  ul.mw-nav li a {
    padding: 9px 14px;
  }

  .mw-body {
    display: block;
  }

  .mw-sidebar {
    width: auto;
    margin-bottom: 14px;
  }

  .mw-content {
    padding: 18px 18px 24px;
  }

  .mw-foot-cols {
    display: block;
  }

  dl.mw-directory dt {
    float: none;
    width: auto;
  }

  dl.mw-directory dd {
    margin-left: 0;
  }

  table.infobox {
    float: none;
    width: 100%;
    margin: 0 0 18px;
  }

  .mw-input,
  .mw-textarea {
    max-width: 100%;
  }

  .long {
    width: 100%;
  }

  table.mw-formtable th {
    width: 4.9em;
  }
}

/* ---------- 打印 ---------- */

@media print {
  html,
  body {
    background: #fff;
  }

  .mw-wrap,
  .mw-wrapper {
    max-width: none;
  }

  .mw-sidebar,
  .mw-navbar,
  .mw-footer,
  .mw-form,
  .mw-pager,
  .mw-catlinks,
  .mw-lastmod,
  .mw-utility,
  .mw-index,
  .mw-trail {
    display: none;
  }

  .mw-header,
  .mw-content {
    border: 0;
    box-shadow: none;
  }

  .mw-body {
    display: block;
  }

  a {
    color: #000;
  }
}

/* 浮动条目记录表之后的区块需要清空浮动 */
.mw-comments,
.mw-catlinks,
.mw-lastmod,
.mw-plain,
.mw-index,
.mw-form {
  clear: both;
}

.mw-revision,
.mw-postnav {
  clear: both;
}

/* ---------- 页面背景图 ---------- */

/* 在 data/config.json 里填了 site.background 才会出现这个属性。
   2010 年前后常见的做法：背景图定住铺满窗口，内容作为白面板浮在上面。 */
body[style*="background-image"] {
  background-attachment: fixed;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
}

/* 背景图存在时，面板的投影略深一点，避免和复杂底图糊在一起 */
body[style*="background-image"] .mw-header,
body[style*="background-image"] .mw-navbar,
body[style*="background-image"] .mw-sidebar,
body[style*="background-image"] .mw-content,
body[style*="background-image"] .mw-footer {
  box-shadow: 0 2px 8px rgba(40, 38, 34, 0.32);
}

/* 窄屏：竖屏窗口下 cover 会把宽幅图裁得只剩中间一块，
   改成顶端对齐 + 随页面滚动，让画面从顶部自然铺开 */
@media (max-width: 1100px) {
  body[style*="background-image"] {
    background-attachment: scroll;
    background-position: center top;
    background-size: 100% auto;
    background-repeat: no-repeat;
  }
}

/* 打印时不带背景图 */
@media print {
  body[style*="background-image"] {
    background-image: none !important;
  }
}

/* ==========================================================================
   写日志界面
   --------------------------------------------------------------------------
   没有脚本时就是一张普通表单，工具栏和预览都不出现；
   脚本给 <html> 加上 .ed-js 之后，工具栏、双栏预览、上传才亮起来。
   造型沿用站点：直角、1px 线、浅底，不用圆角和渐变。
   ========================================================================== */

.mw-editor {
  margin: 0;
}

/* ---------- 顶部信息栏 ---------- */

.ed-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 0 0 16px;
  padding: 12px 14px;
  border: 1px solid #e7e7e7;
  background: #fbfbfb;
}

.ed-field {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}

.ed-field.ed-wide {
  flex: 1 1 100%;
}

.ed-label {
  flex: none;
  color: #595959;
  font-size: 13px;
  white-space: nowrap;
}

.ed-control {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
  min-width: 0;
}

.ed-input {
  padding: 4px 7px;
  border: 1px solid #b0b0b0;
  border-radius: 0;
  background: #fff;
  color: #2f2f2f;
  font: 14px/1.55 Arial, Helvetica, "Microsoft YaHei", "PingFang SC", sans-serif;
  box-sizing: border-box;
}

.ed-input:focus {
  border-color: #8b1a0f;
  outline: 1px solid #e6bdb0;
}

.ed-wide .ed-input,
.ed-control .ed-input.ed-full {
  flex: 1 1 auto;
}

.ed-field.ed-wide .ed-input {
  width: 100%;
  font: 17px/1.5 Georgia, "Times New Roman", "Songti SC", "SimSun", serif;
}

/* 表单里的复选框跟在上面的标签后面，别撑开一行 */
.ed-field .ed-control input[type="checkbox"] {
  margin: 0 2px 0 0;
  vertical-align: -1px;
}

.ed-checklabel {
  color: #2f2f2f;
  font-size: 14px;
  cursor: pointer;
}

.ed-field .ed-control input[type="number"] {
  width: 5em;
}

.ed-hint {
  color: #808080;
  font-size: 12.5px;
  line-height: 1.6;
}

/* ---------- 编辑器外壳 ----------
   Quill 自带一套偏现代的样式（圆角、浅蓝、蓝色主色），
   这里把它整个压回站内的样子：直角、1px 细线、浅底，
   主色从蓝换成站里的暗红。
   选择器都跟着 .ed-shell 和 .ql-* 走，避免误伤页面其它部分。 */

.ed-shell {
  border: 1px solid #c8c8c8;
  background: #fff;
}

/* 设置页那几格长文案用的短编辑器：宽度跟旁边的输入框对齐，高度收一半 */
.ed-shell.ed-brief {
  max-width: 46em;
}

.ed-shell.ed-brief .ql-editor {
  min-height: 11em;
}

/* 编辑区里的档位跟前台一致，写完不会变小 */
.ed-shell .ql-editor .ql-size-tiny {
  font-size: 0.78em;
}

.ed-shell .ql-editor .ql-size-small {
  font-size: 0.88em;
}

.ed-shell .ql-editor .ql-size-large {
  font-size: 1.35em;
}

.ed-shell .ql-editor .ql-size-huge {
  font-size: 1.8em;
}

.ed-shell .ql-editor .ql-size-xlarge {
  font-size: 2.3em;
}

.ed-shell .ql-editor .ql-size-giant {
  font-size: 3.1em;
}

.ed-shell.ed-brief .ql-editor .ql-size-tiny {
  font-size: 0.84em;
}

.ed-shell.ed-brief .ql-editor .ql-size-small {
  font-size: 0.95em;
}

.ed-shell.ed-brief .ql-editor .ql-size-large {
  font-size: 1.5em;
}

.ed-shell.ed-brief .ql-editor .ql-size-huge {
  font-size: 2.1em;
}

.ed-shell.ed-brief .ql-editor .ql-size-xlarge {
  font-size: 2.8em;
}

.ed-shell.ed-brief .ql-editor .ql-size-giant {
  font-size: 3.8em;
}

.ed-shell .ql-editor .ql-lh-compact {
  line-height: 1.4;
}

.ed-shell .ql-editor .ql-lh-loose {
  line-height: 1.9;
}

.ed-shell .ql-editor .ql-lh-looser {
  line-height: 2.4;
}

.ed-shell .ql-editor .ql-lh-double {
  line-height: 3;
}

.ed-shell .ql-editor .ql-ls-tight {
  letter-spacing: -0.02em;
}

.ed-shell .ql-editor .ql-ls-wide {
  letter-spacing: 0.12em;
}

.ed-shell .ql-editor .ql-ls-wider {
  letter-spacing: 0.28em;
}

.ed-note-line {
  max-width: 46em;
  margin-top: 5px;
  min-height: 1.2em;
  text-align: right;
}

/* ---------- 工具栏 ---------- */

.ed-shell .ql-toolbar.ql-snow {
  padding: 6px 8px;
  border: 0;
  border-bottom: 1px solid #e7e7e7;
  background: #f0f0f0;
  font-family: Arial, Helvetica, "Microsoft YaHei", "PingFang SC", sans-serif;
}

.ed-shell .ql-toolbar.ql-snow .ql-formats {
  margin-right: 10px;
}

.ed-shell .ql-toolbar.ql-snow button {
  width: 26px;
  height: 24px;
  padding: 3px;
  border: 1px solid transparent;
  border-radius: 0;
  color: #2f2f2f;
}

.ed-shell .ql-toolbar.ql-snow button:hover,
.ed-shell .ql-toolbar.ql-snow button:focus {
  border-color: #b0b0b0;
  background: #fff;
}

.ed-shell .ql-toolbar.ql-snow button.ql-active {
  border-color: #8b1a0f;
  background: #fdf1ec;
}

/* Quill 的图标靠 fill / stroke 上色，默认是黑的，这里跟上站里的两支颜色 */
.ed-shell .ql-snow .ql-stroke {
  stroke: #2f2f2f;
}

.ed-shell .ql-snow .ql-fill,
.ed-shell .ql-snow .ql-stroke.ql-fill {
  fill: #2f2f2f;
}

.ed-shell .ql-snow button:hover .ql-stroke,
.ed-shell .ql-snow button:focus .ql-stroke,
.ed-shell .ql-snow button.ql-active .ql-stroke,
.ed-shell .ql-snow .ql-picker-label:hover .ql-stroke,
.ed-shell .ql-snow .ql-picker.ql-expanded .ql-picker-label .ql-stroke {
  stroke: #8b1a0f;
}

.ed-shell .ql-snow button:hover .ql-fill,
.ed-shell .ql-snow button.ql-active .ql-fill,
.ed-shell .ql-snow .ql-picker-label:hover .ql-fill,
.ed-shell .ql-snow .ql-picker.ql-expanded .ql-picker-label .ql-fill {
  fill: #8b1a0f;
}

/* ---------- 工具栏里的下拉 ---------- */

.ed-shell .ql-snow .ql-picker {
  height: 24px;
  border: 1px solid transparent;
  border-radius: 0;
  color: #2f2f2f;
  font-size: 12.5px;
  font-weight: 400;
}

.ed-shell .ql-snow .ql-picker:hover,
.ed-shell .ql-snow .ql-picker.ql-expanded {
  border-color: #b0b0b0;
  background: #fff;
}

.ed-shell .ql-snow .ql-picker-label {
  padding-left: 7px;
  border: 0;
}

.ed-shell .ql-snow .ql-picker-options {
  padding: 3px 0;
  border: 1px solid #c8c8c8;
  border-radius: 0;
  background: #fff;
  box-shadow: 0 3px 10px rgba(40, 38, 34, 0.2);
}

.ed-shell .ql-snow .ql-picker.ql-expanded .ql-picker-label,
.ed-shell .ql-snow .ql-picker.ql-expanded .ql-picker-options {
  border-color: #c8c8c8;
}

.ed-shell .ql-snow .ql-picker-item {
  padding: 2px 7px;
}

.ed-shell .ql-snow .ql-picker:not(.ql-color-picker) .ql-picker-item:hover,
.ed-shell .ql-snow .ql-picker:not(.ql-color-picker) .ql-picker-item.ql-selected {
  background: #fdf1ec;
  color: #8b1a0f;
}

/* 下拉收起时显示当前这一项，展开时显示全部 —— 都用中文 */
.ed-shell .ql-snow .ql-picker.ql-header .ql-picker-label[data-label]:not([data-label=""])::before,
.ed-shell .ql-snow .ql-picker.ql-size .ql-picker-label[data-label]:not([data-label=""])::before,
.ed-shell .ql-snow .ql-picker.ql-font .ql-picker-label[data-label]:not([data-label=""])::before,
.ed-shell .ql-snow .ql-picker.ql-line-height .ql-picker-label[data-label]:not([data-label=""])::before,
.ed-shell .ql-snow .ql-picker.ql-letter-spacing .ql-picker-label[data-label]:not([data-label=""])::before,
.ed-shell .ql-snow .ql-picker.ql-header .ql-picker-item[data-label]:not([data-label=""])::before,
.ed-shell .ql-snow .ql-picker.ql-size .ql-picker-item[data-label]:not([data-label=""])::before,
.ed-shell .ql-snow .ql-picker.ql-font .ql-picker-item[data-label]:not([data-label=""])::before,
.ed-shell .ql-snow .ql-picker.ql-line-height .ql-picker-item[data-label]:not([data-label=""])::before,
.ed-shell .ql-snow .ql-picker.ql-letter-spacing .ql-picker-item[data-label]:not([data-label=""])::before {
  content: attr(data-label);
}

/* 两排新下拉稍微留点宽度，跟字号／字体那排一样能点 */
.ed-shell .ql-snow .ql-picker.ql-line-height,
.ed-shell .ql-snow .ql-picker.ql-letter-spacing {
  min-width: 66px;
}

/* 颜色下拉：站里的取色板比 Quill 那三十五格小点窄一些。
   最后那格「更多颜色」是原生的取色器，点一下能挑任意颜色。 */
.ed-shell .ql-snow .ql-color-picker .ql-picker-options {
  width: 118px;
  padding: 4px 5px;
}

.ed-shell .ql-snow .ql-color-picker .ql-picker-item {
  border: 1px solid #b0b0b0;
  border-radius: 0;
}

.ed-shell .ql-snow .ql-color-picker .ql-picker-item.ql-more {
  position: relative;
  overflow: hidden;
  background: #fff;
}

.ed-shell .ql-snow .ql-color-picker .ql-picker-item.ql-more::before {
  content: "…";
  position: absolute;
  inset: 0;
  color: #595959;
  font-size: 16px;
  line-height: 14px;
  text-align: center;
  pointer-events: none;
}

.ed-shell .ql-snow .ql-color-picker .ql-picker-item.ql-more .ql-more-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  opacity: 0;
  cursor: pointer;
}

.ed-shell .ql-snow .ql-color-picker .ql-picker-item:hover,
.ed-shell .ql-snow .ql-color-picker .ql-picker-item.ql-selected {
  border-color: #8b1a0f;
}

/* 白色的那一格底色和工具栏一样，得描个边才看得出 */
.ed-shell .ql-snow .ql-color-picker .ql-picker-item[data-value="#ffffff"] {
  box-shadow: inset 0 0 0 1px #e7e7e7;
}

/* 最后一格是“不上色”。Quill 没给它样式，默认会跟着取色器画成黑块，
   这里画成白底加一道斜杠，和别的一眼分得开。 */
.ed-shell .ql-snow .ql-color-picker .ql-picker-item.ql-none {
  position: relative;
  background: #fff;
  box-shadow: inset 0 0 0 1px #e7e7e7;
}

.ed-shell .ql-snow .ql-color-picker .ql-picker-item.ql-none::before {
  content: "";
  position: absolute;
  left: 1px;
  right: 1px;
  top: 50%;
  border-top: 1px solid #b02a12;
  transform: rotate(-45deg);
}

/* “清除格式”是一段折断的斜杠，压回墨黑 */
.ed-shell .ql-snow .ql-clean .ql-stroke {
  stroke: #2f2f2f;
}

/* ---------- 编辑区 ---------- */

.ed-shell .ql-container.ql-snow {
  border: 0;
  font-family: Arial, Helvetica, "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: 17px;
}

.ed-shell .ql-editor {
  min-height: 26em;
  padding: 14px 16px;
  color: #2f2f2f;
  line-height: 1.84;
}

.ed-shell .ql-editor.ql-blank::before {
  left: 16px;
  right: 16px;
  color: #b0b0b0;
  font-style: normal;
}

/* 编辑器里的代码块在 Quill 里是两层 div，样式照抄正文里的 pre */
.ed-shell .ql-editor .ql-code-block-container {
  margin: 0 0 1.05em;
  padding: 11px 14px;
  border: 1px solid #e7e7e7;
  background: #f7f7f7;
  color: #2f2f2f;
  font: 13.5px/1.65 Consolas, "Courier New", monospace;
  overflow-x: auto;
}

.ed-shell .ql-editor .ql-code-block {
  background: none;
  color: inherit;
  font: inherit;
}

/* 选区和光标跟着站里的颜色走，别用系统的蓝 */
.ed-shell .ql-editor ::selection {
  background: #e0d8c9;
}

.ed-shell .ql-editor.ql-blank::after {
  content: none;
}

/* ---------- 悬浮的链接编辑气泡 ---------- */

.ed-shell .ql-snow .ql-tooltip,
.ql-snow.ql-tooltip {
  z-index: 20;
  border: 1px solid #c8c8c8;
  border-radius: 0;
  background: #fff;
  box-shadow: 0 3px 10px rgba(40, 38, 34, 0.2);
  color: #2f2f2f;
  font-family: Arial, Helvetica, "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: 13px;
}

.ql-snow.ql-tooltip::before {
  content: "地址：";
}

.ql-snow.ql-tooltip[data-mode="link"]::before {
  content: "链接地址：";
}

.ql-snow.ql-tooltip[data-mode="video"]::before {
  content: "视频地址：";
}

.ql-snow.ql-tooltip a,
.ql-snow.ql-tooltip a:hover {
  color: #8b1a0f;
}

.ql-snow.ql-tooltip a.ql-action::after {
  content: "编辑";
}

.ql-snow.ql-tooltip.ql-editing a.ql-action::after {
  content: "确定";
}

.ql-snow.ql-tooltip a.ql-remove::before {
  content: "移除";
}

.ql-snow.ql-tooltip input[type="text"] {
  border: 1px solid #b0b0b0;
  border-radius: 0;
  background: #fff;
  color: #2f2f2f;
  font-family: inherit;
  font-size: 13px;
}

/* ---------- 字数 ---------- */

.ed-count {
  margin-top: 6px;
  color: #808080;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

html:not(.ed-js) .ed-count {
  display: none;
}

/* ---------- 没有脚本时的退路 ---------- */

/* 编辑器那块整个藏起来，露出下面这个普通文本框 */
html:not(.ed-js) .ed-shell {
  display: none;
}

.ed-raw {
  display: block;
  width: 100%;
  min-height: 26em;
  padding: 12px 14px;
  border: 1px solid #c8c8c8;
  border-radius: 0;
  background: #fff;
  color: #2f2f2f;
  font: 15.5px/1.9 Arial, Helvetica, "Microsoft YaHei", "PingFang SC", sans-serif;
  box-sizing: border-box;
  resize: vertical;
}

.ed-raw:focus {
  outline: 0;
  background: #fffefb;
}

/* 脚本跑起来之后，文本框退到屏幕外，只在提交时带上它的值 */
html.ed-js .ed-raw {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  min-height: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
}

/* 编辑器接管后，Quill 会在正文末尾补一个空段落，视觉上留白多了一点，收一收 */
.ed-shell .ql-editor > p:last-child:empty + br,
.ed-shell .ql-editor > br:last-child {
  display: none;
}

/* ---------- 底部按钮 ---------- */

.ed-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0 0;
}

.ed-foot .ed-btn,
.ed-foot input.ed-btn {
  padding: 5px 18px;
  font-size: 14px;
}

.ed-cancel {
  margin-left: 4px;
  color: #808080;
}

.ed-note {
  color: #595959;
  font-size: 12.5px;
}

.ed-note.warn {
  color: #b02a12;
}

.ed-restore {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  padding: 8px 12px;
  border: 1px solid #d9c9a3;
  background: #fdf8ea;
  font-size: 13px;
}

/* ---------- 弹窗 ---------- */

.ed-modal[hidden],
.ed-drop[hidden] {
  display: none;
}

.ed-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(40, 38, 34, 0.28);
}

.ed-modal-box {
  width: 560px;
  max-width: calc(100% - 24px);
  margin: 8vh auto 0;
  border: 1px solid #c8c8c8;
  background: #fff;
  box-shadow: 0 6px 22px rgba(40, 38, 34, 0.34);
}

.ed-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  border-bottom: 1px solid #e7e7e7;
  background: #f0f0f0;
  color: #2f2f2f;
  font-weight: 700;
  font-size: 14px;
}

.ed-x {
  border: 0;
  background: none;
  color: #595959;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.ed-modal-body {
  padding: 14px 14px 4px;
}

.ed-form-row {
  display: flex;
  gap: 12px;
  margin: 0 0 12px;
}

.ed-form-label {
  flex: none;
  width: 8.5em;
  padding-top: 5px;
  color: #595959;
  font-size: 13px;
  text-align: right;
}

.ed-form-field {
  flex: 1 1 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

/* ---------- 拖放遮罩 ---------- */

.ed-modal-foot {
  display: flex;
  gap: 8px;
  padding: 10px 14px 14px;
}

.ed-drop {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(253, 241, 236, 0.72);
  color: #8b1a0f;
  font: 20px/1 Georgia, "Times New Roman", serif;
  letter-spacing: 0.08em;
}

/* ---------- 正文里的新元素（读者也会看到） ---------- */

.mw-fig {
  margin: 1.2em 0;
  text-align: center;
}

.mw-fig.right,
.mw-fig.left {
  max-width: 46%;
  margin: 0.2em 0 1em 1.4em;
  text-align: inherit;
}

.mw-fig.right {
  float: right;
}

.mw-fig.left {
  float: left;
  margin: 0.2em 1.4em 1em 0;
}

.mw-fig figcaption {
  margin-top: 5px;
  color: #808080;
  font-size: 12.5px;
  line-height: 1.6;
}

.mw-audio,
.mw-embed {
  margin: 1.3em 0;
}

.mw-audio-title,
.mw-embed-title {
  margin: 0 0 6px;
  color: #2b2b2b;
  font: 700 14px/1.5 Georgia, "Times New Roman", "Songti SC", "SimSun", serif;
}

.mw-audio audio {
  width: 100%;
  max-width: 34em;
}

.mw-embed iframe {
  display: block;
  width: 100%;
  max-width: 46em;
  height: 20em;
  border: 1px solid #c8c8c8;
  background: #f7f7f7;
}

.mw-block {
  margin: 1.2em 0;
}

.mw-block.center {
  text-align: center;
}

.mw-block.right {
  text-align: right;
}

.mw-block.note {
  padding: 10px 14px;
  border: 1px solid #e7e7e7;
  border-left: 3px solid #7a5210;
  background: #fdf8ea;
}

.mw-block.lead {
  font-size: 1.08em;
  color: #4a4a4a;
}

.mw-block.quiet {
  color: #595959;
  font-size: 0.96em;
}

.mw-block.poem {
  padding-left: 2em;
  color: #4a4a4a;
  font-family: Georgia, "Times New Roman", "Songti SC", "SimSun", serif;
  letter-spacing: 0.14em;
  white-space: pre-line;
}

.mw-block > p:first-child {
  margin-top: 0;
}

.mw-block > p:last-child {
  margin-bottom: 0;
}

.mw-t-small {
  font-size: 0.86em;
}

.mw-t-large {
  font-size: 1.24em;
}

.mw-t-xlarge {
  font-size: 1.55em;
}

.mw-f-serif {
  font-family: Georgia, "Times New Roman", "Songti SC", "SimSun", "STSong", serif;
}

.mw-f-sans {
  font-family: Arial, Helvetica, "Microsoft YaHei", "PingFang SC", sans-serif;
}

.mw-f-mono {
  font-family: Consolas, "Courier New", monospace;
}

/* ---------- 编辑器留下来的类名（读者也会看到） ---------- */

.mw-parser .ql-align-center {
  text-align: center;
}

.mw-parser .ql-align-right {
  text-align: right;
}

.mw-parser .ql-align-justify {
  text-align: justify;
}

.mw-parser .ql-size-tiny {
  font-size: 0.78em;
}

.mw-parser .ql-size-small {
  font-size: 0.88em;
}

.mw-parser .ql-size-large {
  font-size: 1.35em;
}

.mw-parser .ql-size-huge {
  font-size: 1.8em;
}

.mw-parser .ql-size-xlarge {
  font-size: 2.3em;
}

.mw-parser .ql-size-giant {
  font-size: 3.1em;
}

/* 行距与字距：装饰性的排版用得上 */
.mw-parser .ql-lh-compact {
  line-height: 1.4;
}

.mw-parser .ql-lh-loose {
  line-height: 1.9;
}

.mw-parser .ql-lh-looser {
  line-height: 2.4;
}

.mw-parser .ql-lh-double {
  line-height: 3;
}

.mw-parser .ql-ls-tight {
  letter-spacing: -0.02em;
}

.mw-parser .ql-ls-wide {
  letter-spacing: 0.12em;
}

.mw-parser .ql-ls-wider {
  letter-spacing: 0.28em;
}

/* 首页简介是门面，字号比正文再放开一档，方便拿大字做装饰 */
.mw-intro .ql-size-tiny {
  font-size: 0.84em;
}

.mw-intro .ql-size-small {
  font-size: 0.95em;
}

.mw-intro .ql-size-large {
  font-size: 1.5em;
}

.mw-intro .ql-size-huge {
  font-size: 2.1em;
}

.mw-intro .ql-size-xlarge {
  font-size: 2.8em;
}

.mw-intro .ql-size-giant {
  font-size: 3.8em;
}

.mw-parser .ql-font-serif {
  font-family: Georgia, "Times New Roman", "Songti SC", "SimSun", "STSong", serif;
}

.mw-parser .ql-font-sans {
  font-family: Arial, Helvetica, "Microsoft YaHei", "PingFang SC", sans-serif;
}

.mw-parser .ql-font-monospace {
  font-family: Consolas, "Courier New", monospace;
}

/* 编辑器里居中 / 右对齐的图片，正文里也照做 */
.mw-parser p.ql-align-center > img,
.mw-parser p.ql-align-right > img {
  display: inline-block;
}

/* 编辑器存的是 <div class="mw-audio">，正文里统一按上面那套排 */
.mw-parser .mw-audio audio {
  width: 100%;
  max-width: 34em;
}

/* 编辑器插的外链播放器是裸露在正文里的 iframe */
.mw-parser iframe {
  display: block;
  width: 100%;
  max-width: 46em;
  height: 20em;
  margin: 1.3em 0;
  border: 1px solid #c8c8c8;
  background: #f7f7f7;
}

.mw-parser mark {
  background: #fdf6e3;
  color: inherit;
}

.mw-parser u {
  text-decoration: underline;
}

/* 窄屏 */
@media (max-width: 1100px) {
  .ed-form-label {
    width: 5.6em;
  }

  .mw-fig.right,
  .mw-fig.left {
    float: none;
    max-width: 100%;
    margin: 1.2em 0;
  }
}

/* ---------- 站点设置页 ---------- */

.mw-formtable.wide th {
  padding-top: 10px;
  vertical-align: top;
}

.mw-formtable.wide input.mw-input.long,
.mw-formtable.wide textarea.mw-textarea {
  max-width: 46em;
}

.mw-formtable.wide textarea.mw-textarea {
  min-height: 0;
  line-height: 1.75;
}
