/* ==========================================================================
   教育培训退费计算器 · 课时存折 + 退费结算单
   独立设计：米黄作业本纸 + 墨绿 + 砖红
   ========================================================================== */

.ed-page {
  --ed-bg: #f7f3e8;
  --ed-bg-2: #f1ebdc;
  --ed-card: #fffdf8;
  --ed-paper: #fbf8ef;
  --ed-ink: #1b2a24;
  --ed-ink-2: #4c5f57;
  --ed-ink-3: #8a9791;
  --ed-line: #e2dbca;
  --ed-line-2: #efe9db;
  --ed-green: #1c5d49;
  --ed-green-2: #14483a;
  --ed-green-soft: #e7f0ea;
  --ed-green-line: #c6dbd0;
  --ed-red: #c0452f;
  --ed-red-soft: #fbeae5;
  --ed-red-line: #f0cdc4;
  --ed-amber: #c8912f;
  --ed-amber-soft: #f8efd9;
  --ed-amber-line: #ecdcb8;

  --ed-shadow: 0 1px 2px rgba(27, 42, 36, .04), 0 16px 36px -26px rgba(27, 42, 36, .42);
  --ed-shadow-lift: 0 2px 4px rgba(27, 42, 36, .05), 0 24px 52px -32px rgba(27, 42, 36, .5);

  --ed-mono: "JetBrains Mono", "SFMono-Regular", "Consolas", "Liberation Mono", monospace;
  --ed-sans: "Inter", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --ed-serif: "Iowan Old Style", "Source Han Serif SC", "Songti SC", "SimSun", Georgia, serif;

  background:
    radial-gradient(920px 420px at 4% -8%, rgba(28, 93, 73, .09), transparent 62%),
    radial-gradient(760px 380px at 100% 0, rgba(192, 69, 47, .05), transparent 58%),
    repeating-linear-gradient(0deg, rgba(28, 93, 73, .038) 0 1px, transparent 1px 30px),
    var(--ed-bg);
  color: var(--ed-ink);
  font-family: var(--ed-sans);
  font-size: 15px;
  line-height: 1.74;
  padding: 0 0 76px;
  -webkit-font-smoothing: antialiased;
}

:root[data-theme="dark"] .ed-page {
  --ed-bg: #101613;
  --ed-bg-2: #141c18;
  --ed-card: #18201c;
  --ed-paper: #1b241f;
  --ed-ink: #e8efe9;
  --ed-ink-2: #a8b6af;
  --ed-ink-3: #77857e;
  --ed-line: #2b3530;
  --ed-line-2: #222b27;
  --ed-green: #5fb894;
  --ed-green-2: #7fcbaa;
  --ed-green-soft: #172a23;
  --ed-green-line: #264a3c;
  --ed-red: #e08069;
  --ed-red-soft: #33201a;
  --ed-red-line: #4d2f26;
  --ed-amber: #d8b06a;
  --ed-amber-soft: #2b2416;
  --ed-amber-line: #443a22;

  --ed-shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 18px 40px -28px rgba(0, 0, 0, .95);
  --ed-shadow-lift: 0 2px 4px rgba(0, 0, 0, .45), 0 26px 56px -34px rgba(0, 0, 0, 1);

  background:
    radial-gradient(920px 440px at 4% -8%, rgba(95, 184, 148, .07), transparent 60%),
    radial-gradient(760px 400px at 100% 0, rgba(224, 128, 105, .05), transparent 58%),
    repeating-linear-gradient(0deg, rgba(95, 184, 148, .035) 0 1px, transparent 1px 30px),
    var(--ed-bg);
  color: var(--ed-ink);
}

.ed-page *,
.ed-page *::before,
.ed-page *::after { box-sizing: border-box; }

.ed-page a { color: inherit; }

.ed-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- 面包屑 ---------- */
.ed-crumb {
  padding: 20px 0 12px;
  font-size: 12.5px;
  color: var(--ed-ink-3);
  letter-spacing: .02em;
}
.ed-crumb a {
  color: var(--ed-ink-2);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .18s, border-color .18s;
}
.ed-crumb a:hover { color: var(--ed-green); border-bottom-color: currentColor; }
.ed-crumb span { color: var(--ed-ink); }

/* ---------- 通用按钮 ---------- */
.ed-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 42px;
  padding: 0 18px;
  border-radius: 9px;
  border: 1px solid transparent;
  font-family: var(--ed-sans);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: .01em;
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background .18s, border-color .18s, color .18s, transform .12s, box-shadow .18s;
}
.ed-btn:active { transform: translateY(1px); }
.ed-btn:focus-visible { outline: 2px solid var(--ed-amber); outline-offset: 2px; }
.ed-btn.solid {
  background: var(--ed-green);
  color: #fdfaf2;
  box-shadow: 0 6px 16px -10px rgba(28, 93, 73, .9);
}
.ed-btn.solid:hover { background: var(--ed-green-2); }
.ed-btn.solid.ai { background: var(--ed-red); box-shadow: 0 6px 16px -10px rgba(192, 69, 47, .9); }
.ed-btn.solid.ai:hover { background: #a53926; }
:root[data-theme="dark"] .ed-btn.solid { color: #0e1613; }
:root[data-theme="dark"] .ed-btn.solid.ai { color: #1b1210; }
.ed-btn.line {
  background: var(--ed-card);
  border-color: var(--ed-line);
  color: var(--ed-ink-2);
}
.ed-btn.line:hover { border-color: var(--ed-green-line); color: var(--ed-green); }
.ed-btn[disabled] { opacity: .55; cursor: not-allowed; }

/* ==========================================================================
   首屏
   ========================================================================== */
.ed-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 404px;
  gap: 36px;
  align-items: stretch;
  padding: 36px 32px 34px 36px;
  margin-bottom: 26px;
  background: var(--ed-card);
  border: 1px solid var(--ed-line);
  border-radius: 16px;
  box-shadow: var(--ed-shadow);
  overflow: hidden;
}

.ed-hero::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: linear-gradient(180deg, var(--ed-green) 0 62%, var(--ed-red) 62% 100%);
}

.ed-hero-copy { min-width: 0; }

.ed-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ed-mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ed-green);
}
.ed-eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--ed-red);
  transform: rotate(45deg);
}

.ed-hero h1 {
  margin: 12px 0 14px;
  font-family: var(--ed-serif);
  font-size: 42px;
  line-height: 1.2;
  letter-spacing: .01em;
  font-weight: 700;
  color: var(--ed-ink);
}
.ed-hero h1 b {
  font-weight: 700;
  color: var(--ed-green);
  background: linear-gradient(transparent 64%, rgba(200, 145, 47, .32) 64% 94%, transparent 94%);
}

.ed-sub {
  margin: 0 0 16px;
  max-width: 660px;
  font-size: 15px;
  line-height: 1.92;
  color: var(--ed-ink-2);
}
.ed-sub b { color: var(--ed-ink); font-weight: 600; }

.ed-hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}
.ed-hero-tags span {
  display: inline-block;
  padding: 4px 11px;
  border: 1px dashed var(--ed-green-line);
  border-radius: 999px;
  background: var(--ed-green-soft);
  color: var(--ed-green);
  font-size: 12px;
  letter-spacing: .02em;
}

.ed-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- 课时存折 ---------- */
.ed-pass {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 0 0 0 34px;
  background: var(--ed-paper);
  border: 1px solid var(--ed-line);
  border-radius: 12px;
  box-shadow: var(--ed-shadow-lift);
  overflow: hidden;
}

.ed-pass::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 16px;
  bottom: 16px;
  width: 12px;
  background-image: radial-gradient(circle at 6px 7px, var(--ed-card) 4.6px, transparent 5.1px);
  background-size: 12px 26px;
  background-repeat: repeat-y;
  pointer-events: none;
}

.ed-pass > * { position: relative; z-index: 1; }

.ed-pass-head {
  padding: 14px 16px 12px 4px;
  background: linear-gradient(100deg, var(--ed-green) 0%, var(--ed-green-2) 100%);
  margin-left: -12px;
  padding-left: 16px;
  color: #f7fbf7;
}
.ed-pass-head span {
  display: block;
  font-family: var(--ed-mono);
  font-size: 11px;
  letter-spacing: .28em;
  opacity: .78;
}
.ed-pass-head em {
  display: block;
  margin-top: 5px;
  font-style: normal;
  font-size: 12.5px;
  letter-spacing: .02em;
  color: rgba(247, 251, 247, .92);
}

.ed-pass-progress { padding: 16px 18px 4px 2px; }
.ed-pass-bar {
  height: 8px;
  border-radius: 99px;
  background: var(--ed-line-2);
  border: 1px solid var(--ed-line);
  overflow: hidden;
}
.ed-pass-bar i {
  display: block;
  width: 25%;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--ed-green), var(--ed-amber));
  transition: width .45s cubic-bezier(.22, .8, .3, 1);
}
.ed-pass-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
  font-size: 12px;
  color: var(--ed-ink-3);
}
.ed-pass-meta b {
  font-family: var(--ed-mono);
  font-size: 13px;
  color: var(--ed-ink);
  margin-left: 3px;
}

.ed-pass-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 12px 18px 0 0;
  border: 1px dashed var(--ed-line);
  border-radius: 9px;
  background: var(--ed-card);
  overflow: hidden;
}
.ed-pass-cell {
  padding: 10px 10px 11px;
  border-right: 1px dashed var(--ed-line-2);
}
.ed-pass-cell:last-child { border-right: none; }
.ed-pass-cell span {
  display: block;
  font-size: 11px;
  color: var(--ed-ink-3);
  letter-spacing: .02em;
}
.ed-pass-cell b {
  display: block;
  margin-top: 4px;
  font-family: var(--ed-mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--ed-ink);
  letter-spacing: -.01em;
}
.ed-pass-cell:nth-child(2) b { color: var(--ed-red); }

.ed-pass-total {
  margin: 12px 18px 0 0;
  padding: 12px 14px 13px;
  background: var(--ed-green-soft);
  border: 1px dashed var(--ed-green-line);
  border-radius: 9px;
}
.ed-pass-total span {
  display: block;
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--ed-green);
}
.ed-pass-total strong {
  display: block;
  margin-top: 4px;
  font-family: var(--ed-mono);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -.02em;
  color: var(--ed-green);
  white-space: nowrap;
}

.ed-pass-foot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 18px 14px 0;
  margin-top: auto;
  font-size: 11.5px;
  color: var(--ed-ink-3);
}
.ed-pass-foot b {
  font-family: var(--ed-mono);
  font-size: 13px;
  color: var(--ed-ink-2);
  margin-left: 2px;
}
.ed-pass-foot em { font-style: normal; }

.ed-stamp {
  position: absolute;
  right: 18px;
  bottom: 50px;
  z-index: 3;
  padding: 4px 7px 4px 10px;
  border: 2px solid var(--ed-red);
  border-radius: 4px;
  color: var(--ed-red);
  font-family: var(--ed-serif);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .22em;
  opacity: .15;
  transform: rotate(-13deg);
  mix-blend-mode: multiply;
  pointer-events: none;
  user-select: none;
}
:root[data-theme="dark"] .ed-stamp {
  opacity: .3;
  mix-blend-mode: screen;
}

/* ==========================================================================
   工作区
   ========================================================================== */
.ed-work {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 404px;
  gap: 26px;
  align-items: start;
}

.ed-col-main { min-width: 0; }

.ed-block {
  background: var(--ed-card);
  border: 1px solid var(--ed-line);
  border-radius: 14px;
  box-shadow: var(--ed-shadow);
  margin-bottom: 22px;
  overflow: hidden;
}
.ed-block:last-child { margin-bottom: 0; }

.ed-block-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px 24px 14px;
  border-bottom: 1px solid var(--ed-line-2);
  background:
    linear-gradient(180deg, rgba(28, 93, 73, .035), transparent 80%);
}
.ed-block-head h2 {
  margin: 2px 0 3px;
  font-family: var(--ed-serif);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: .01em;
  color: var(--ed-ink);
}
.ed-block-head p {
  margin: 0;
  font-size: 12.5px;
  color: var(--ed-ink-3);
  line-height: 1.7;
}

.ed-no {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--ed-green-line);
  border-radius: 10px 10px 10px 2px;
  background: var(--ed-green-soft);
  color: var(--ed-green);
  font-family: var(--ed-mono);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .04em;
}

.ed-block-body { padding: 18px 24px 22px; }

.ed-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px 16px;
}
.ed-field { min-width: 0; }
.ed-field.span2 { grid-column: 1 / -1; }
.ed-field > label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ed-ink-2);
  line-height: 1.5;
}
.ed-field > label em {
  display: inline;
  margin-left: 7px;
  font-style: normal;
  font-size: 11.5px;
  font-weight: 400;
  color: var(--ed-ink-3);
}

.ed-input {
  display: flex;
  align-items: center;
  height: 46px;
  padding: 0 12px;
  border: 1px solid var(--ed-line);
  border-radius: 9px;
  background: var(--ed-paper);
  transition: border-color .18s, box-shadow .18s, background .18s;
}
.ed-input:focus-within {
  border-color: var(--ed-green);
  background: var(--ed-card);
  box-shadow: 0 0 0 3px rgba(28, 93, 73, .12);
}
.ed-input.big { height: 54px; }
.ed-input .pre {
  flex: 0 0 auto;
  margin-right: 7px;
  font-family: var(--ed-mono);
  font-size: 15px;
  color: var(--ed-ink-3);
}
.ed-input .unit {
  flex: 0 0 auto;
  margin-left: 7px;
  font-size: 12.5px;
  color: var(--ed-ink-3);
}
.ed-input input {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  height: 100%;
  border: none;
  outline: none;
  background: transparent;
  font-family: var(--ed-mono);
  font-size: 16px;
  color: var(--ed-ink);
  letter-spacing: -.01em;
}
.ed-input.big input { font-size: 20px; }
.ed-input input::placeholder { color: var(--ed-ink-3); letter-spacing: 0; }
.ed-input.is-bad { border-color: var(--ed-red); box-shadow: 0 0 0 3px rgba(192, 69, 47, .12); }

.ed-inline-tip {
  margin: 13px 0 0;
  padding: 0 0 0 10px;
  border-left: 2px solid var(--ed-green-line);
  font-size: 12.5px;
  line-height: 1.78;
  color: var(--ed-ink-3);
}
.ed-inline-tip b {
  font-family: var(--ed-mono);
  font-size: 12.5px;
  color: var(--ed-ink-2);
}
.ed-inline-tip.is-warn {
  border-left-color: var(--ed-red);
  color: var(--ed-red);
}
.ed-inline-tip.is-warn b { color: var(--ed-red); }

.ed-field-block { margin-top: 18px; }
.ed-field-block:first-child { margin-top: 0; }
.ed-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 9px;
}
.ed-label label {
  font-size: 13px;
  font-weight: 500;
  color: var(--ed-ink-2);
}
.ed-label span {
  font-size: 11.5px;
  color: var(--ed-ink-3);
  text-align: right;
  line-height: 1.5;
}

/* ---------- 课程类型 ---------- */
.ed-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ed-chips button {
  padding: 7px 14px;
  border: 1px solid var(--ed-line);
  border-radius: 999px;
  background: var(--ed-paper);
  color: var(--ed-ink-2);
  font-family: var(--ed-sans);
  font-size: 12.5px;
  cursor: pointer;
  transition: background .16s, border-color .16s, color .16s;
}
.ed-chips button:hover { border-color: var(--ed-green-line); color: var(--ed-green); }
.ed-chips button.on {
  background: var(--ed-green);
  border-color: var(--ed-green);
  color: #fdfaf2;
}
:root[data-theme="dark"] .ed-chips button.on { color: #0e1613; }

/* ---------- 折算规则 ---------- */
.ed-rules {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.ed-rules button {
  position: relative;
  padding: 14px 15px 15px;
  border: 1px solid var(--ed-line);
  border-radius: 10px;
  background: var(--ed-paper);
  text-align: left;
  cursor: pointer;
  font-family: var(--ed-sans);
  transition: border-color .18s, background .18s, box-shadow .18s, transform .12s;
}
.ed-rules button:hover { border-color: var(--ed-green-line); transform: translateY(-1px); }
.ed-rules button b {
  display: block;
  font-family: var(--ed-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ed-ink-3);
}
.ed-rules button strong {
  display: block;
  margin: 5px 0 6px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ed-ink);
  line-height: 1.4;
}
.ed-rules button span {
  display: block;
  font-size: 11.5px;
  line-height: 1.68;
  color: var(--ed-ink-3);
}
.ed-rules button.on {
  border-color: var(--ed-green);
  background: var(--ed-green-soft);
  box-shadow: inset 0 0 0 1px var(--ed-green-line);
}
.ed-rules button.on b { color: var(--ed-green); }
.ed-rules button.on::after {
  content: "当前口径";
  position: absolute;
  top: 9px;
  right: 10px;
  font-size: 10px;
  letter-spacing: .06em;
  color: var(--ed-green);
  opacity: .9;
}

/* ---------- 机构方案判读 ---------- */
.ed-verdict {
  margin-top: 15px;
  padding: 14px 16px;
  border: 1px dashed var(--ed-line);
  border-radius: 10px;
  background: var(--ed-paper);
  font-size: 13px;
  line-height: 1.82;
  color: var(--ed-ink-2);
}
.ed-verdict b {
  font-family: var(--ed-mono);
  font-size: 13px;
  color: var(--ed-ink);
}
.ed-verdict.low {
  border-color: var(--ed-red-line);
  background: var(--ed-red-soft);
  color: var(--ed-ink-2);
}
.ed-verdict.low b { color: var(--ed-red); }
.ed-verdict.mid {
  border-color: var(--ed-amber-line);
  background: var(--ed-amber-soft);
}
.ed-verdict.mid b { color: var(--ed-amber); }
.ed-verdict.high {
  border-color: var(--ed-green-line);
  background: var(--ed-green-soft);
}
.ed-verdict.high b { color: var(--ed-green); }

/* ==========================================================================
   退费结算单
   ========================================================================== */
.ed-col-side { min-width: 0; }

.ed-slip {
  position: sticky;
  top: 18px;
  padding: 0 18px 18px;
  background: var(--ed-paper);
  border: 1px solid var(--ed-line);
  border-top: 3px double var(--ed-green-line);
  border-radius: 12px;
  box-shadow: var(--ed-shadow-lift);
}

.ed-slip-head {
  padding: 16px 2px 13px;
  border-bottom: 1px dashed var(--ed-line);
}
.ed-slip-head span {
  display: block;
  font-family: var(--ed-mono);
  font-size: 9.5px;
  letter-spacing: .24em;
  color: var(--ed-ink-3);
}
.ed-slip-head h3 {
  margin: 5px 0 4px;
  font-family: var(--ed-serif);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--ed-ink);
}
.ed-slip-head em {
  display: block;
  font-style: normal;
  font-size: 11.5px;
  color: var(--ed-ink-3);
}

.ed-slip-group { padding-top: 13px; }
.ed-slip-group h4 {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin: 0;
  padding-bottom: 7px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--ed-ink-2);
  border-bottom: 1px dashed var(--ed-line-2);
}
.ed-slip-group h4 em {
  font-style: normal;
  font-size: 10.5px;
  font-weight: 400;
  color: var(--ed-ink-3);
  letter-spacing: 0;
}

.ed-rows {
  list-style: none;
  margin: 0;
  padding: 2px 0 4px;
}
.ed-rows li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px dotted var(--ed-line-2);
  font-size: 12.5px;
}
.ed-rows li:last-child { border-bottom: none; }
.ed-rows li .k { color: var(--ed-ink-2); }
.ed-rows li .v {
  font-family: var(--ed-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--ed-ink);
  letter-spacing: -.01em;
  white-space: nowrap;
}
.ed-rows li.plus .v { color: var(--ed-green); }
.ed-rows li.minus .v { color: var(--ed-red); }
.ed-rows li.strong .v { font-weight: 700; }

.ed-slip-total {
  margin-top: 12px;
  padding: 13px 14px 12px;
  border-radius: 10px;
  background: linear-gradient(115deg, var(--ed-green) 0%, var(--ed-green-2) 100%);
  color: #f7fbf7;
}
.ed-slip-total > span {
  display: block;
  font-size: 10.5px;
  letter-spacing: .18em;
  opacity: .8;
}
.ed-total-num {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin-top: 3px;
  flex-wrap: wrap;
}
.ed-total-num b {
  font-family: var(--ed-mono);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -.02em;
}
.ed-total-num i {
  font-style: normal;
  font-size: 13px;
  opacity: .55;
}
.ed-total-band {
  height: 4px;
  margin: 9px 0 7px;
  border-radius: 99px;
  background: rgba(255, 255, 255, .22);
  overflow: hidden;
}
.ed-total-band i {
  display: block;
  width: 10%;
  height: 100%;
  border-radius: 99px;
  background: var(--ed-amber);
  transition: width .45s cubic-bezier(.22, .8, .3, 1);
}
.ed-slip-total p {
  margin: 0;
  font-size: 11px;
  line-height: 1.6;
  color: rgba(247, 251, 247, .72);
}
:root[data-theme="dark"] .ed-slip-total { color: #0e1613; }
:root[data-theme="dark"] .ed-slip-total p { color: rgba(14, 22, 19, .72); }
:root[data-theme="dark"] .ed-slip-total > span { opacity: .7; }

.ed-slip-mid {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
  padding: 9px 12px;
  border: 1px dashed var(--ed-green-line);
  border-radius: 9px;
  background: var(--ed-green-soft);
}
.ed-slip-mid span { font-size: 11.5px; color: var(--ed-ink-2); }
.ed-slip-mid b {
  font-family: var(--ed-mono);
  font-size: 16px;
  font-weight: 600;
  color: var(--ed-green);
}
.ed-slip-mid em {
  font-style: normal;
  font-size: 10.5px;
  color: var(--ed-ink-3);
}

.ed-slip-foot { margin-top: 14px; }
.ed-hint {
  font-size: 11px;
  line-height: 1.72;
  color: var(--ed-ink-3);
}
.ed-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 11px;
}
.ed-actions .ed-btn {
  flex: 1 1 auto;
  height: 38px;
  padding: 0 12px;
  font-size: 12.5px;
}

/* ==========================================================================
   通用区块（敏感度 / 批量 / 文档）
   ========================================================================== */
.ed-sec {
  margin-top: 26px;
  padding: 24px 26px 26px;
  background: var(--ed-card);
  border: 1px solid var(--ed-line);
  border-radius: 14px;
  box-shadow: var(--ed-shadow);
}
.ed-sec-head h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 8px;
  font-family: var(--ed-serif);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: .01em;
  color: var(--ed-ink);
}
.ed-sec-head h2 em {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 22px;
  padding: 0 7px;
  border: 1px solid var(--ed-green-line);
  border-radius: 6px;
  background: var(--ed-green-soft);
  color: var(--ed-green);
  font-family: var(--ed-mono);
  font-size: 11px;
  font-style: normal;
  letter-spacing: .06em;
}
.ed-sec-head p {
  margin: 0;
  max-width: 920px;
  font-size: 12.5px;
  line-height: 1.85;
  color: var(--ed-ink-3);
}

.ed-table-wrap {
  margin-top: 14px;
  border: 1px solid var(--ed-line);
  border-radius: 10px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.ed-table {
  width: 100%;
  min-width: 700px;
  border-collapse: collapse;
  font-size: 12.5px;
}
.ed-table th {
  padding: 10px 12px;
  background: var(--ed-green);
  color: #f2f7f3;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .03em;
  text-align: left;
  white-space: nowrap;
}
.ed-table th:not(:first-child),
.ed-table td:not(:first-child) { text-align: right; }
.ed-table td {
  padding: 10px 12px;
  border-top: 1px solid var(--ed-line-2);
  color: var(--ed-ink-2);
  white-space: nowrap;
}
.ed-table td:first-child { color: var(--ed-ink); font-weight: 500; }
.ed-table tbody tr:nth-child(even) { background: var(--ed-paper); }
.ed-table tbody tr:hover { background: var(--ed-green-soft); }
.ed-table tbody tr.on { background: var(--ed-green-soft); }
.ed-table tbody tr.on td:first-child { color: var(--ed-green); font-weight: 600; }
.ed-table tbody tr.empty td {
  padding: 22px 12px;
  text-align: center;
  color: var(--ed-ink-3);
  font-weight: 400;
  white-space: normal;
}
.ed-table .num {
  font-family: var(--ed-mono);
  font-size: 12.5px;
  letter-spacing: -.01em;
}

.ed-table.ed-rule { min-width: 620px; }
.ed-table.ed-rule th:not(:first-child),
.ed-table.ed-rule td:not(:first-child) { text-align: left; }
.ed-table.ed-rule td { white-space: normal; line-height: 1.7; }

/* ---------- 批量 ---------- */
.ed-batch { margin-top: 12px; }
.ed-batch textarea {
  display: block;
  width: 100%;
  min-height: 134px;
  padding: 13px 15px;
  border: 1px solid var(--ed-line);
  border-radius: 10px;
  background: var(--ed-paper);
  color: var(--ed-ink);
  font-family: var(--ed-mono);
  font-size: 12.5px;
  line-height: 1.86;
  resize: vertical;
  outline: none;
  transition: border-color .18s, box-shadow .18s;
}
.ed-batch textarea:focus {
  border-color: var(--ed-green);
  box-shadow: 0 0 0 3px rgba(28, 93, 73, .12);
}
.ed-batch textarea::placeholder { color: var(--ed-ink-3); }

.ed-batch-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}
.ed-batch-count {
  margin-left: auto;
  font-size: 11.5px;
  color: var(--ed-ink-3);
}
.ed-batch-err {
  display: none;
  margin-top: 10px;
  padding: 10px 13px;
  border: 1px solid var(--ed-red-line);
  border-radius: 8px;
  background: var(--ed-red-soft);
  color: var(--ed-red);
  font-size: 12px;
  line-height: 1.75;
}
.ed-batch-err.on { display: block; }
.ed-batch-err b { font-family: var(--ed-mono); }
.ed-batch-note {
  margin: 10px 0 0;
  font-size: 11.5px;
  line-height: 1.8;
  color: var(--ed-ink-3);
}

/* ==========================================================================
   AI
   ========================================================================== */
.ed-note {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px 18px;
  margin-top: 26px;
  padding: 20px 22px;
  border: 1px solid var(--ed-green-line);
  border-radius: 14px;
  background:
    linear-gradient(100deg, var(--ed-green-soft) 0%, var(--ed-card) 62%);
  box-shadow: var(--ed-shadow);
}
.ed-note-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--ed-green);
  color: #f7fbf7;
  font-family: var(--ed-mono);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .1em;
}
:root[data-theme="dark"] .ed-note-badge { color: #0e1613; }
.ed-note-body h3 {
  margin: 0 0 3px;
  font-family: var(--ed-serif);
  font-size: 16px;
  font-weight: 700;
  color: var(--ed-ink);
}
.ed-note-body p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.78;
  color: var(--ed-ink-3);
}
.ed-ai-status {
  display: none;
  grid-column: 1 / -1;
  padding-top: 14px;
  border-top: 1px dashed var(--ed-green-line);
  font-size: 13px;
  line-height: 1.86;
  color: var(--ed-ink-2);
}
.ed-ai-status.on { display: block; }
.ed-ai-status.is-loading { color: var(--ed-ink-3); }
.ed-ai-status.is-error { color: var(--ed-red); }
.ed-ai-status .ai-title {
  display: block;
  margin: 10px 0 3px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ed-green);
  letter-spacing: .01em;
}
.ed-ai-status .ai-title:first-child { margin-top: 0; }
.ed-ai-status p { margin: 0 0 6px; }
.ed-ai-status p:last-child { margin-bottom: 0; }

/* ==========================================================================
   文档
   ========================================================================== */
.ed-docs {
  margin-top: 30px;
  padding: 0 2px;
}
.ed-docs-head h2 {
  margin: 0 0 10px;
  font-family: var(--ed-serif);
  font-size: 23px;
  font-weight: 700;
  letter-spacing: .01em;
  color: var(--ed-ink);
}
.ed-docs-head p {
  margin: 0;
  max-width: 900px;
  font-size: 13px;
  line-height: 1.92;
  color: var(--ed-ink-2);
}
.ed-docs-head b { color: var(--ed-ink); }

.ed-docs-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}
.ed-doc {
  padding: 20px 22px 21px;
  background: var(--ed-card);
  border: 1px solid var(--ed-line);
  border-radius: 14px;
  box-shadow: var(--ed-shadow);
}
.ed-doc.wide { grid-column: 1 / -1; }
.ed-doc h3 {
  margin: 0 0 9px;
  padding-left: 10px;
  border-left: 3px solid var(--ed-green);
  font-family: var(--ed-serif);
  font-size: 16.5px;
  font-weight: 700;
  letter-spacing: .01em;
  color: var(--ed-ink);
  line-height: 1.5;
}
.ed-doc p {
  margin: 0 0 8px;
  font-size: 12.5px;
  line-height: 1.9;
  color: var(--ed-ink-2);
}
.ed-doc p:last-child { margin-bottom: 0; }
.ed-doc p b { color: var(--ed-ink); font-weight: 600; }
.ed-doc .ed-table-wrap { margin-top: 10px; }

.ed-faq { border-top: 1px dashed var(--ed-line); }
.ed-faq details {
  border-bottom: 1px dashed var(--ed-line);
  padding: 11px 2px;
}
.ed-faq summary {
  position: relative;
  padding-left: 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ed-ink);
  cursor: pointer;
  list-style: none;
  line-height: 1.7;
}
.ed-faq summary::-webkit-details-marker { display: none; }
.ed-faq summary::before {
  content: "+";
  position: absolute;
  left: 2px;
  top: 0;
  font-family: var(--ed-mono);
  font-size: 14px;
  color: var(--ed-green);
}
.ed-faq details[open] summary { color: var(--ed-green); }
.ed-faq details[open] summary::before { content: "–"; }
.ed-faq-body {
  padding: 7px 2px 2px 20px;
  font-size: 12.5px;
  line-height: 1.88;
  color: var(--ed-ink-2);
}

/* 深色下实心绿块改深字，避免浅薄荷底 + 白字 */
:root[data-theme="dark"] .ed-pass-head,
:root[data-theme="dark"] .ed-slip-total,
:root[data-theme="dark"] .ed-table th { color: #0e1613; }
:root[data-theme="dark"] .ed-pass-head em { color: rgba(14, 22, 19, .76); }
:root[data-theme="dark"] .ed-total-band { background: rgba(14, 22, 19, .16); }

/* ==========================================================================
   响应式
   ========================================================================== */
@media (max-width: 1180px) {
  .ed-wrap { padding: 0 20px; }
  .ed-hero {
    grid-template-columns: minmax(0, 1fr) 366px;
    gap: 26px;
    padding: 30px 26px 30px 30px;
  }
  .ed-work { grid-template-columns: minmax(0, 1fr) 366px; gap: 22px; }
  .ed-hero h1 { font-size: 37px; }
  .ed-slip-total .ed-total-num b { font-size: 18px; }
}

@media (max-width: 1080px) {
  .ed-hero { grid-template-columns: minmax(0, 1fr); }
  .ed-pass { margin-top: 4px; }
  .ed-work { grid-template-columns: minmax(0, 1fr); }
  .ed-col-side { order: 2; }
  .ed-slip { position: static; }
  .ed-stamp { bottom: 64px; }
}

@media (max-width: 900px) {
  .ed-docs-grid { grid-template-columns: minmax(0, 1fr); }
  .ed-doc.wide { grid-column: auto; }
  .ed-rules { grid-template-columns: minmax(0, 1fr); }
  .ed-rules button { padding: 13px 14px; }
  .ed-rules button.on::after { top: 12px; }
  .ed-note { grid-template-columns: auto minmax(0, 1fr); }
  .ed-note .ed-btn { grid-column: 1 / -1; width: 100%; }
  .ed-sec { padding: 20px 18px 22px; }
  .ed-block-body { padding: 16px 18px 20px; }
  .ed-block-head { padding: 18px 18px 13px; }
}

@media (max-width: 620px) {
  .ed-wrap { padding: 0 14px; }
  .ed-hero { padding: 24px 18px 24px 22px; gap: 20px; }
  .ed-hero h1 { font-size: 30px; }
  .ed-sub { font-size: 14px; line-height: 1.85; }
  .ed-hero-actions .ed-btn { flex: 1 1 auto; }
  .ed-grid { grid-template-columns: minmax(0, 1fr); }
  .ed-label { display: block; }
  .ed-label span { display: block; text-align: left; margin-top: 2px; }
  .ed-pass-head { padding-right: 12px; }
  .ed-pass-grid { margin-right: 14px; }
  .ed-pass-total { margin-right: 14px; }
  .ed-pass-foot { flex-direction: column; gap: 2px; padding-right: 14px; }
  .ed-pass-cell { padding: 9px 8px 10px; }
  .ed-pass-cell b { font-size: 13px; }
  .ed-pass-total strong { font-size: 19px; }
  .ed-stamp { display: none; }
  .ed-sec-head h2 { font-size: 18px; flex-wrap: wrap; }
  .ed-batch-count { margin-left: 0; width: 100%; }
  .ed-batch-bar .ed-btn { flex: 1 1 auto; }
  .ed-table { font-size: 12px; }
  .ed-table th, .ed-table td { padding: 9px 10px; }
  .ed-docs-head h2 { font-size: 20px; }
  .ed-doc { padding: 17px 16px 18px; }
  .ed-doc.wide { padding: 17px 16px 18px; }
  .ed-faq-body { padding-left: 6px; }
  .ed-actions .ed-btn { flex: 1 1 45%; }
}

@media (max-width: 420px) {
  .ed-crumb { font-size: 11.5px; }
  .ed-hero h1 { font-size: 27px; }
  .ed-eyebrow { font-size: 10px; letter-spacing: .12em; }
  .ed-hero-tags span { font-size: 11px; padding: 3px 9px; }
  .ed-pass-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ed-pass-cell:nth-child(2) { border-right: none; }
  .ed-pass-cell:nth-child(3) {
    grid-column: 1 / -1;
    border-top: 1px dashed var(--ed-line-2);
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
  }
  .ed-pass-cell:nth-child(3) b { margin-top: 0; }
  .ed-pass-total strong { font-size: 15.5px; letter-spacing: -.03em; }
  .ed-total-num b { font-size: 16px; }
  .ed-slip-total .ed-total-num b { font-size: 16px; }
  .ed-slip { padding: 0 14px 16px; }
  .ed-actions .ed-btn { flex: 1 1 100%; }
}
