.wpsxep-gb-accordion details {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}

.wpsxep-gb-accordion-title {
  cursor: pointer;
  padding: 12px 14px;
  font-weight: 700;
  color: #334155;
  list-style: none;
  background: #f8fafc;
}

.wpsxep-gb-accordion-content {
  padding: 12px 14px;
  color: #475569;
  line-height: 1.8;
}

.wpsxep-gb-table-wrap {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: auto;
  background: #fff;
}

.wpsxep-gb-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
}

.wpsxep-gb-table th,
.wpsxep-gb-table td {
  border-bottom: 1px solid #edf2f7;
  padding: 10px 12px;
  text-align: left;
}

.wpsxep-gb-table th {
  background: #f8fafc;
  color: #334155;
  font-weight: 700;
}

.wpsxep-gb-info {
  border: 1px solid var(--wpsxep-accent-soft-border, #cfe2ff);
  border-left: 4px solid var(--wpsxep-accent, #3b82f6);
  border-radius: 10px;
  padding: 12px 14px;
  background: var(--wpsxep-accent-soft, #eff6ff);
  color: #334155;
}

.wpsxep-gb-info-title {
  display: block;
  margin-bottom: 6px;
}

.wpsxep-gb-info-content {
  color: #475569;
  line-height: 1.75;
}

.wpsxep-gb-tabs {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}

.wpsxep-gb-tabs-head {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
}

.wpsxep-gb-tab-btn {
  border: 1px solid #dbe4f0;
  border-radius: 999px;
  background: #fff;
  color: #334155;
  padding: 4px 10px;
  cursor: pointer;
}

.wpsxep-gb-tab-btn.is-active {
  border-color: var(--wpsxep-accent-soft-border, #bfd6ff);
  background: var(--wpsxep-accent-soft, #eff6ff);
  color: var(--wpsxep-accent, #3b82f6);
}

.wpsxep-gb-tabs-body {
  padding: 12px 14px;
}

.wpsxep-gb-tab-panel {
  display: none;
  color: #475569;
  line-height: 1.8;
}

.wpsxep-gb-tab-panel.is-active {
  display: block;
}

.wpsxep-gb-steps-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
}

.wpsxep-gb-steps-list li {
  position: relative;
  padding: 10px 12px 10px 34px;
  border-top: 1px dashed #e2e8f0;
  color: #334155;
}

.wpsxep-gb-steps-list li:first-child {
  border-top: 0;
}

.wpsxep-gb-steps-list li::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 15px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--wpsxep-accent, #3b82f6);
}

.wpsxep-gb-timeline-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-left: 2px solid #dbe4f0;
}

.wpsxep-gb-timeline-list li {
  position: relative;
  margin: 0 0 12px 12px;
  padding-left: 12px;
  color: #334155;
}

.wpsxep-gb-timeline-list li::before {
  content: "";
  position: absolute;
  left: -19px;
  top: 5px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--wpsxep-accent, #3b82f6);
}

.wpsxep-gb-timeline-desc {
  color: #64748b;
  margin-top: 4px;
}

/* 数学环境：定义 / 定理等（随 DUX 日/夜 html.darking、body.darking） */
.wpsxep-gb-math-statement {
  --wpsxep-math-accent: var(--wpsxep-accent, #3b82f6);
  --wpsxep-math-surface: linear-gradient(165deg, #ffffff 0%, #f8fafc 55%, #f1f5f9 100%);
  --wpsxep-math-border: rgba(15, 23, 42, 0.08);
  --wpsxep-math-text: var(--tb--color, #1e293b);
  --wpsxep-math-muted: #64748b;
  margin: 1.35em 0;
  padding: 0;
  border-radius: 14px;
  border: 1px solid var(--wpsxep-math-border);
  border-left: 4px solid var(--wpsxep-math-accent);
  background: var(--wpsxep-math-surface);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.65) inset,
    0 18px 48px -28px rgba(15, 23, 42, 0.18);
  overflow: hidden;
  color: var(--wpsxep-math-text);
}

.wpsxep-gb-math-statement--definition {
  --wpsxep-math-accent: #0d9488;
}

.wpsxep-gb-math-statement--theorem {
  --wpsxep-math-accent: color-mix(in srgb, var(--tb--main, var(--wpsxep-accent, #2563eb)) 88%, #1e3a8a);
}

.wpsxep-gb-math-statement--lemma {
  --wpsxep-math-accent: #7c3aed;
}

.wpsxep-gb-math-statement--corollary {
  --wpsxep-math-accent: #d97706;
}

.wpsxep-gb-math-statement--proposition {
  --wpsxep-math-accent: #0ea5e9;
}

.wpsxep-gb-math-statement__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 14px;
  padding: 14px 18px 10px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  background: color-mix(in srgb, var(--wpsxep-math-accent) 6%, transparent);
}

.wpsxep-gb-math-statement__kind {
  display: inline-flex;
  align-items: center;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: none;
  color: #fff;
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--wpsxep-math-accent) 92%, #000) 0%,
    var(--wpsxep-math-accent) 100%
  );
  box-shadow: 0 2px 8px color-mix(in srgb, var(--wpsxep-math-accent) 35%, transparent);
}

.wpsxep-gb-math-statement__title {
  flex: 1;
  min-width: 0;
  font-family: ui-serif, "Source Han Serif SC", "Noto Serif SC", "Songti SC", Georgia, serif;
  font-size: 1.05rem;
  font-weight: 650;
  color: var(--wpsxep-math-text);
  line-height: 1.45;
}

.wpsxep-gb-math-statement__title:empty::before {
  content: none;
}

.wpsxep-gb-math-statement__body {
  padding: 14px 18px 18px;
  font-size: 0.98rem;
  line-height: 1.85;
  color: var(--wpsxep-math-muted);
}

.wpsxep-gb-math-statement__body p {
  margin: 0 0 0.65em;
}

.wpsxep-gb-math-statement__body p:last-child {
  margin-bottom: 0;
}

html.darking .wpsxep-gb-accordion details,
body.darking .wpsxep-gb-accordion details {
  border-color: #1e293b;
  background: #0f172a;
}

html.darking .wpsxep-gb-accordion-title,
body.darking .wpsxep-gb-accordion-title {
  background: #111827;
  color: #e2e8f0;
}

html.darking .wpsxep-gb-accordion-content,
body.darking .wpsxep-gb-accordion-content {
  color: #94a3b8;
}

html.darking .wpsxep-gb-table-wrap,
body.darking .wpsxep-gb-table-wrap {
  border-color: #1e293b;
  background: #0f172a;
}

html.darking .wpsxep-gb-table th,
body.darking .wpsxep-gb-table th {
  background: #111827;
  color: #e2e8f0;
}

html.darking .wpsxep-gb-table td,
body.darking .wpsxep-gb-table td {
  border-bottom-color: #1e293b;
  color: #94a3b8;
}

html.darking .wpsxep-gb-info,
body.darking .wpsxep-gb-info {
  border-color: color-mix(in srgb, var(--wpsxep-accent, #3b82f6) 40%, #0f172a);
  background: color-mix(in srgb, var(--wpsxep-accent, #3b82f6) 14%, #0f172a);
  color: #e2e8f0;
}

html.darking .wpsxep-gb-info-content,
body.darking .wpsxep-gb-info-content {
  color: #94a3b8;
}

html.darking .wpsxep-gb-tabs,
body.darking .wpsxep-gb-tabs,
html.darking .wpsxep-gb-steps-list,
body.darking .wpsxep-gb-steps-list {
  border-color: #1e293b;
  background: #0f172a;
}

html.darking .wpsxep-gb-tabs-head,
body.darking .wpsxep-gb-tabs-head {
  border-bottom-color: #1e293b;
  background: #111827;
}

html.darking .wpsxep-gb-tab-btn,
body.darking .wpsxep-gb-tab-btn {
  border-color: #334155;
  background: #0f172a;
  color: #e2e8f0;
}

html.darking .wpsxep-gb-tab-panel,
body.darking .wpsxep-gb-tab-panel,
html.darking .wpsxep-gb-steps-list li,
body.darking .wpsxep-gb-steps-list li,
html.darking .wpsxep-gb-timeline-list li,
body.darking .wpsxep-gb-timeline-list li {
  color: #94a3b8;
}

html.darking .wpsxep-gb-steps-list li,
body.darking .wpsxep-gb-steps-list li {
  border-top-color: #1e293b;
}

html.darking .wpsxep-gb-timeline-list,
body.darking .wpsxep-gb-timeline-list {
  border-left-color: #334155;
}

html.darking .wpsxep-gb-timeline-desc,
body.darking .wpsxep-gb-timeline-desc {
  color: #94a3b8;
}

html.darking .wpsxep-gb-math-statement,
body.darking .wpsxep-gb-math-statement {
  --wpsxep-math-surface: linear-gradient(168deg, #111827 0%, #0f172a 45%, #0b1220 100%);
  --wpsxep-math-border: rgba(148, 163, 184, 0.14);
  --wpsxep-math-text: #e2e8f0;
  --wpsxep-math-muted: #94a3b8;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 22px 56px -32px rgba(0, 0, 0, 0.55);
}

html.darking .wpsxep-gb-math-statement__head,
body.darking .wpsxep-gb-math-statement__head {
  border-bottom-color: rgba(148, 163, 184, 0.12);
  background: color-mix(in srgb, var(--wpsxep-math-accent) 14%, transparent);
}

html.darking .wpsxep-gb-math-statement__title,
body.darking .wpsxep-gb-math-statement__title {
  color: #f1f5f9;
}

html.darking .wpsxep-gb-math-statement__kind,
body.darking .wpsxep-gb-math-statement__kind {
  box-shadow: 0 2px 12px color-mix(in srgb, var(--wpsxep-math-accent) 45%, transparent);
}

/* —— 例题 / 习题（题库嵌入，随 DUX 日/夜） —— */
.wpsxep-gb-editor-err {
  margin: 8px 0 0;
  font-size: 13px;
  color: #b91c1c;
}

.wpsxep-gb-example-question {
  --wpsxep-ex-accent: color-mix(in srgb, var(--tb--main, var(--wpsxep-accent, #2563eb)) 75%, #1e40af);
  margin: 1.35em 0;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-left: 4px solid var(--wpsxep-ex-accent);
  background: linear-gradient(168deg, #ffffff 0%, #f8fafc 48%, #f1f5f9 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.7) inset,
    0 20px 50px -34px rgba(15, 23, 42, 0.2);
  overflow: hidden;
  color: var(--tb--color, #1e293b);
}

.wpsxep-gb-example-question.is-editor {
  box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.12);
}

.wpsxep-gb-example-question__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  background: color-mix(in srgb, var(--wpsxep-ex-accent) 7%, transparent);
}

.wpsxep-gb-example-question__badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #fff;
  background: linear-gradient(135deg, color-mix(in srgb, var(--wpsxep-ex-accent) 88%, #000), var(--wpsxep-ex-accent));
  box-shadow: 0 2px 10px color-mix(in srgb, var(--wpsxep-ex-accent) 30%, transparent);
}

.wpsxep-gb-example-question__meta {
  font-size: 0.82rem;
  color: #64748b;
  font-weight: 600;
}

.wpsxep-gb-example-question__body {
  padding: 14px 18px 18px;
  font-size: 0.98rem;
  line-height: 1.85;
  color: #475569;
}

.wpsxep-gb-exercise-set {
  margin: 1.45em 0;
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: linear-gradient(180deg, #ffffff 0%, #fafbfc 40%, #f4f6f9 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.75) inset,
    0 24px 60px -36px rgba(15, 23, 42, 0.22);
  overflow: hidden;
}

.wpsxep-gb-exercise-set.is-editor {
  box-shadow: inset 0 0 0 1px rgba(14, 165, 233, 0.15);
}

/* 编辑器内限制例题/习题块宽度，避免占满画布过宽 */
.editor-styles-wrapper .wpsxep-gb-example-question.is-editor,
.editor-styles-wrapper .wpsxep-gb-exercise-set.is-editor {
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
}

.editor-styles-wrapper .wp-block-wpsxep-example-question,
.editor-styles-wrapper .wp-block-wpsxep-exercise-set,
.editor-styles-wrapper .wp-block-wpsxep-pdf-viewer {
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
}

.editor-styles-wrapper .wp-block-wpsxep-pdf-viewer .wpsxep-gb-pdf-placeholder {
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
}

.wpsxep-gb-exercise-set__intro {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.07);
  background: linear-gradient(90deg, rgba(14, 165, 233, 0.08), transparent);
}

.wpsxep-gb-exercise-set__tag {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: none;
  color: #0ea5e9;
}

.wpsxep-gb-exercise-set__hint {
  font-size: 0.85rem;
  color: #64748b;
  font-weight: 600;
}

.wpsxep-gb-exercise-set__item {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 0;
  border-top: 1px solid rgba(15, 23, 42, 0.05);
}

.wpsxep-gb-exercise-set__item:first-of-type {
  border-top: none;
}

.wpsxep-gb-exercise-set__num {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 16px 6px 12px;
  font-family: ui-serif, "Source Han Serif SC", Georgia, serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #0ea5e9;
  background: rgba(14, 165, 233, 0.06);
  border-right: 1px solid rgba(15, 23, 42, 0.05);
}

.wpsxep-gb-exercise-set__card {
  padding: 14px 16px 18px;
  min-width: 0;
}

.wpsxep-gb-q-stem {
  margin-bottom: 10px;
  line-height: 1.82;
  color: var(--tb--color, #1e293b);
}

.wpsxep-gb-example-question .wpsxep-stem-blank,
.wpsxep-gb-exercise-set .wpsxep-stem-blank {
  display: inline-block;
  width: var(--wpsxep-blank-len, 7em);
  max-width: 40vw;
  border-bottom: 1px solid #64748b;
  height: 0.95em;
  vertical-align: -0.1em;
  margin: 0 0.2em;
}

.wpsxep-gb-example-question .wpsxep-choice-tail,
.wpsxep-gb-exercise-set .wpsxep-choice-tail {
  display: inline-flex;
  align-items: baseline;
  margin-left: 0.3em;
}

.wpsxep-gb-example-question .wpsxep-choice-tail-gap,
.wpsxep-gb-exercise-set .wpsxep-choice-tail-gap {
  display: inline-block;
  width: 2em;
}

.wpsxep-gb-example-question .wpsxep-bank-options,
.wpsxep-gb-exercise-set .wpsxep-bank-options {
  list-style: none;
  margin: 0 0 4px;
  padding: 0;
  display: grid;
  gap: 8px 12px;
}

.wpsxep-gb-example-question .wpsxep-bank-options-cols-1,
.wpsxep-gb-exercise-set .wpsxep-bank-options-cols-1 {
  grid-template-columns: 1fr;
}

.wpsxep-gb-example-question .wpsxep-bank-options-cols-2,
.wpsxep-gb-exercise-set .wpsxep-bank-options-cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.wpsxep-gb-example-question .wpsxep-bank-options-cols-4,
.wpsxep-gb-exercise-set .wpsxep-bank-options-cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.wpsxep-gb-example-question .wpsxep-bank-options li,
.wpsxep-gb-exercise-set .wpsxep-bank-options li {
  margin: 0;
  padding: 8px 10px;
  font-size: 0.95rem;
  line-height: 1.65;
  display: flex;
  align-items: baseline;
  gap: 1ch;
  color: #334155;
  background: rgba(248, 250, 252, 0.85);
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 10px;
}

@media (max-width: 640px) {
  .wpsxep-gb-example-question .wpsxep-bank-options-cols-4,
  .wpsxep-gb-exercise-set .wpsxep-bank-options-cols-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

html.darking .wpsxep-gb-example-question,
body.darking .wpsxep-gb-example-question,
html.darking .wpsxep-gb-exercise-set,
body.darking .wpsxep-gb-exercise-set {
  border-color: rgba(148, 163, 184, 0.14);
  background: linear-gradient(168deg, #111827 0%, #0f172a 55%, #0b1220 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 26px 64px -40px rgba(0, 0, 0, 0.55);
  color: #e2e8f0;
}

html.darking .wpsxep-gb-example-question__head,
body.darking .wpsxep-gb-example-question__head {
  border-bottom-color: rgba(148, 163, 184, 0.12);
  background: color-mix(in srgb, var(--wpsxep-ex-accent) 12%, transparent);
}

html.darking .wpsxep-gb-example-question__meta,
body.darking .wpsxep-gb-example-question__meta {
  color: #94a3b8;
}

html.darking .wpsxep-gb-example-question__body,
body.darking .wpsxep-gb-example-question__body {
  color: #94a3b8;
}

html.darking .wpsxep-gb-exercise-set__intro,
body.darking .wpsxep-gb-exercise-set__intro {
  border-bottom-color: rgba(148, 163, 184, 0.12);
  background: linear-gradient(90deg, rgba(14, 165, 233, 0.12), transparent);
}

html.darking .wpsxep-gb-exercise-set__hint,
body.darking .wpsxep-gb-exercise-set__hint {
  color: #94a3b8;
}

html.darking .wpsxep-gb-exercise-set__item,
body.darking .wpsxep-gb-exercise-set__item {
  border-top-color: rgba(148, 163, 184, 0.1);
}

html.darking .wpsxep-gb-exercise-set__num,
body.darking .wpsxep-gb-exercise-set__num {
  color: #38bdf8;
  background: rgba(14, 165, 233, 0.1);
  border-right-color: rgba(148, 163, 184, 0.12);
}

html.darking .wpsxep-gb-q-stem,
body.darking .wpsxep-gb-q-stem {
  color: #e2e8f0;
}

html.darking .wpsxep-gb-example-question .wpsxep-bank-options li,
body.darking .wpsxep-gb-example-question .wpsxep-bank-options li,
html.darking .wpsxep-gb-exercise-set .wpsxep-bank-options li,
body.darking .wpsxep-gb-exercise-set .wpsxep-bank-options li {
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.65);
  border-color: rgba(148, 163, 184, 0.14);
}

html.darking .wpsxep-gb-example-question .wpsxep-stem-blank,
body.darking .wpsxep-gb-example-question .wpsxep-stem-blank,
html.darking .wpsxep-gb-exercise-set .wpsxep-stem-blank,
body.darking .wpsxep-gb-exercise-set .wpsxep-stem-blank {
  border-bottom-color: #94a3b8;
}

html.darking .wpsxep-gb-editor-err,
body.darking .wpsxep-gb-editor-err {
  color: #fca5a5;
}

.wpsxep-gb-pdf-placeholder {
  border: 1px dashed #93c5fd;
  border-radius: 10px;
  padding: 12px 14px;
  background: #eff6ff;
  color: #1e3a8a;
}

.wpsxep-gb-pdf-placeholder p {
  margin: 0.35em 0 0;
}

html.darking .wpsxep-gb-pdf-placeholder,
body.darking .wpsxep-gb-pdf-placeholder {
  border-color: #1d4ed8;
  background: rgba(30, 64, 175, 0.22);
  color: #dbeafe;
}

