/* 稿纸编辑器 — wpsdu.com.cn SET 5 web */
:root {
  --ed-desk: #D8D2C8;
  --ed-desk-ink: #8A8276;
  --ed-paper: #FFFEFB;
  --ed-ink: #2A241C;
  --ed-mute: #6A6156;
  --ed-green: #1B7A4E;
  --ed-green-deep: #145C3B;
  --ed-green-soft: #E7F4ED;
  --ed-rule: #E8D9C6;
  --ed-margin: #C45C5C;
  --ed-bar: #F4F0E8;
  --ed-bar-line: #C6BDB0;
  --ed-note: #FFF6CC;
  --ed-note-line: #D9B84A;
  --ed-shadow: 0 12px 32px rgba(48, 38, 26, 0.2), 0 2px 6px rgba(48, 38, 26, 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
}

body.ed-desk {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(ellipse at 50% -10%, rgba(255, 255, 255, 0.22), transparent 46%),
    repeating-linear-gradient(
      90deg,
      rgba(80, 60, 40, 0.035) 0 1px,
      transparent 1px 18px
    ),
    var(--ed-desk);
  color: var(--ed-ink);
  font-family: "Segoe UI", "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: 16px;
  line-height: 1.7;
}

img,
svg {
  max-width: 100%;
  vertical-align: middle;
}

a {
  color: var(--ed-green);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--ed-green-deep);
}

.ed-toolbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: linear-gradient(180deg, #faf7f2 0%, var(--ed-bar) 100%);
  border-bottom: 1px solid var(--ed-bar-line);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset;
}

.ed-toolbar-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
  min-height: 56px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.ed-tools {
  display: flex;
  align-items: center;
  gap: 4px;
}

.ed-tool {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  color: var(--ed-mute);
}

.ed-tool:hover {
  border-color: var(--ed-bar-line);
  background: #fff;
  color: var(--ed-green);
}

.ed-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ed-ink);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.ed-brand:hover {
  color: var(--ed-green);
}

.ed-brand-mark {
  width: 22px;
  height: 22px;
  border-radius: 3px;
  background: var(--ed-green);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ed-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-left: auto;
}

.ed-nav a {
  color: var(--ed-mute);
  text-decoration: none;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}

.ed-nav a:hover,
.ed-nav a.is-current {
  color: var(--ed-green);
  border-bottom-color: var(--ed-green);
}

.ed-stage {
  max-width: 1120px;
  margin: 0 auto;
  padding: 28px 16px 48px;
}

.ed-sheet-wrap {
  position: relative;
  width: min(794px, 100%);
  margin: 0 auto 36px;
}

.ed-page {
  position: relative;
  background:
    linear-gradient(
      90deg,
      transparent 52px,
      rgba(196, 92, 92, 0.55) 52px,
      rgba(196, 92, 92, 0.55) 53px,
      transparent 53px
    ),
    repeating-linear-gradient(
      transparent 0 31px,
      var(--ed-rule) 31px 32px
    ),
    var(--ed-paper);
  box-shadow: var(--ed-shadow);
  padding: 36px 48px 48px 72px;
  min-height: 420px;
  font-family: FangSong, STFangsong, KaiTi, STKaiti, "FangSong GB2312", "KaiTi_GB2312", "Songti SC", SimSun, serif;
  font-size: 18px;
  line-height: 32px;
  color: var(--ed-ink);
}

.ed-page::after {
  content: "";
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 46px;
  height: 18px;
  border: 1px solid rgba(27, 122, 78, 0.28);
  border-radius: 2px;
  pointer-events: none;
}

.ed-folio {
  margin: 0 0 8px;
  font-family: "Segoe UI", "Microsoft YaHei", sans-serif;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--ed-green);
  line-height: 1.4;
}

.ed-page h1,
.ed-page h2,
.ed-page h3 {
  font-family: "Songti SC", SimSun, STSong, "Noto Serif SC", serif;
  font-weight: 700;
  line-height: 1.45;
  margin: 0 0 16px;
  color: var(--ed-ink);
}

.ed-page h1 {
  font-size: 30px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--ed-green);
}

.ed-page h2 {
  font-size: 24px;
}

.ed-page h3 {
  font-size: 19px;
  color: var(--ed-green-deep);
}

.ed-page p {
  margin: 0 0 16px;
  text-align: justify;
}

.ed-page p:last-child {
  margin-bottom: 0;
}

.ed-lead {
  font-size: 19px;
}

.ed-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
  font-family: "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.4;
}

.ed-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 8px 18px;
  background: var(--ed-green);
  color: #fff;
  text-decoration: none;
  border: 1px solid var(--ed-green-deep);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset;
}

.ed-btn:hover {
  background: var(--ed-green-deep);
  color: #fff;
}

.ed-btn-ghost {
  background: #fff;
  color: var(--ed-green);
  border-color: var(--ed-green);
}

.ed-btn-ghost:hover {
  background: var(--ed-green-soft);
  color: var(--ed-green-deep);
}

.ed-table-wrap {
  overflow-x: auto;
  margin: 8px 0 20px;
}

.ed-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
  line-height: 1.55;
  background: rgba(255, 254, 251, 0.86);
}

.ed-table th,
.ed-table td {
  border: 1px solid #d3c6b4;
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
}

.ed-table th {
  background: var(--ed-green-soft);
  color: var(--ed-green-deep);
  font-family: "Microsoft YaHei", "Segoe UI", sans-serif;
  font-size: 14px;
}

.ed-steps {
  margin: 8px 0 20px;
  padding-left: 22px;
}

.ed-steps li {
  margin: 0 0 12px;
}

.ed-note {
  background: var(--ed-note);
  border: 1px solid var(--ed-note-line);
  box-shadow: 3px 4px 0 rgba(80, 60, 20, 0.08);
  padding: 12px 14px 14px;
  font-family: KaiTi, STKaiti, FangSong, serif;
  font-size: 15px;
  line-height: 1.65;
  position: relative;
}

.ed-note::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 16px;
  border-style: solid;
  border-width: 7px 8px 7px 0;
  border-color: transparent var(--ed-note-line) transparent transparent;
}

.ed-note-who {
  margin: 0 0 6px;
  font-family: "Microsoft YaHei", sans-serif;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: #8A6A12;
}

.ed-margin-notes {
  position: absolute;
  left: calc(100% + 14px);
  top: 64px;
  width: 214px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ed-ask {
  margin-top: 8px;
  padding-top: 4px;
}

.ed-ask + .ed-ask {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px dashed #d5c6b0;
}

.ed-ask h3 {
  margin-bottom: 8px;
}

.ed-colophon {
  background: var(--ed-green);
  color: #e8f6ee;
  text-align: center;
  padding: 22px 16px 28px;
  font-size: 13px;
  line-height: 1.7;
}

.ed-colophon p {
  margin: 0 0 6px;
}

.ed-colophon a {
  color: #fff;
}

@media (max-width: 1180px) {
  .ed-margin-notes {
    position: static;
    width: 100%;
    margin: 16px 0 0;
  }

  .ed-note::before {
    display: none;
  }
}

@media (max-width: 720px) {
  .ed-toolbar-inner {
    flex-wrap: wrap;
    padding: 8px 12px 10px;
    gap: 8px;
  }

  .ed-nav {
    margin-left: 0;
    width: 100%;
  }

  .ed-page {
    padding: 28px 20px 36px 28px;
    font-size: 17px;
    background:
      linear-gradient(
        90deg,
        transparent 16px,
        rgba(196, 92, 92, 0.5) 16px,
        rgba(196, 92, 92, 0.5) 17px,
        transparent 17px
      ),
      var(--ed-paper);
  }

  .ed-page h1 {
    font-size: 24px;
  }

  .ed-page h2 {
    font-size: 20px;
  }
}
