/* CIE Answer Studio — 界面样式
   设计基调：纸张质感 + 墨绿主色 + 赭石点缀，衬线标题，细线分隔。
   动画交给 GSAP，这里只写静态态。 */

:root {
  --paper: #f6f4ef;
  --paper-2: #efece4;
  --card: #fffefb;
  --ink: #23201c;
  --ink-2: #57514a;
  --ink-3: #8f887d;
  --line: #e0dad0;
  --line-2: #cec7ba;
  --green: #1f5c4d;
  --green-soft: #e6efea;
  --ochre: #a85c2b;
  --ochre-soft: #f7ece2;
  --warn: #a33a22;
  --r: 12px;
  --shadow: 0 1px 2px rgba(35, 32, 28, .04), 0 10px 30px -18px rgba(35, 32, 28, .28);
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Songti SC", "Times New Roman", serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #17150f;
    --paper-2: #1f1c16;
    --card: #1d1a14;
    --ink: #f0ece2;
    --ink-2: #bdb6a8;
    --ink-3: #857e70;
    --line: #322d25;
    --line-2: #453e33;
    --green: #6fb9a2;
    --green-soft: #1b2f28;
    --ochre: #d98f57;
    --ochre-soft: #2e2418;
    --warn: #d9755a;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 34px -18px rgba(0, 0, 0, .7);
  }
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
               "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* 纸张颗粒感，避免纯色太平 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .5;
  background-image:
    radial-gradient(circle at 18% 22%, rgba(168, 92, 43, .045), transparent 45%),
    radial-gradient(circle at 82% 78%, rgba(31, 92, 77, .05), transparent 50%);
}

button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ------------------------------------------------------------------ 顶栏 */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 26px;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.brand { display: flex; align-items: baseline; gap: 10px; min-width: 0; }

.brand .mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 27px;
  height: 27px;
  border-radius: 7px;
  background: var(--green);
  color: #fff;
  font-family: var(--serif);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .04em;
  align-self: center;
}

.brand .name {
  font-family: var(--serif);
  font-size: 18px;
  letter-spacing: -.01em;
  white-space: nowrap;
}

.brand .rule {
  width: 1px;
  height: 17px;
  background: var(--line-2);
  margin: 0 3px;
  align-self: center;
}

.brand .tagline {
  font-size: 12px;
  color: var(--ink-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 720px) { .brand .rule, .brand .tagline { display: none; } }

.top-actions { display: flex; gap: 8px; flex: 0 0 auto; }

.ghost {
  padding: 6px 13px;
  border-radius: 8px;
  border: 1px solid var(--line-2);
  color: var(--ink-2);
  font-size: 13px;
  transition: background .16s, color .16s, border-color .16s, transform .16s;
}
.ghost:hover { background: var(--paper-2); color: var(--ink); border-color: var(--ink-3); }
.ghost:active { transform: scale(.97); }
.ghost.small { padding: 3px 10px; font-size: 12px; }
.ghost:disabled { opacity: .5; cursor: not-allowed; }

/* ------------------------------------------------------------------ 布局 */
.layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(340px, 430px) minmax(0, 1fr);
  gap: 22px;
  max-width: 1360px;
  margin: 0 auto;
  padding: 24px 26px 60px;
  align-items: start;
}
@media (max-width: 960px) {
  .layout { grid-template-columns: 1fr; padding: 16px 14px 50px; gap: 14px; }
}

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow);
}

.input-panel { padding: 18px; position: sticky; top: 78px; }
@media (max-width: 960px) { .input-panel { position: static; } }

/* ------------------------------------------------------------------ 上传区 */
.dropzone {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 15px 16px;
  border: 1.5px dashed var(--line-2);
  border-radius: 11px;
  background: var(--paper-2);
  cursor: pointer;
  outline: none;
  transition: border-color .18s, background .18s, transform .18s;
}
.dropzone:hover, .dropzone:focus-visible {
  border-color: var(--green);
  background: var(--green-soft);
}
.dropzone.drag {
  border-color: var(--ochre);
  background: var(--ochre-soft);
  transform: scale(.995);
}

.dz-icon {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--green);
}
.dz-title { margin: 0; font-size: 14px; font-weight: 600; letter-spacing: .01em; }
.dz-sub { margin: 1px 0 0; font-size: 12px; color: var(--ink-3); }

kbd {
  font-family: var(--mono);
  font-size: 10.5px;
  padding: 1px 4px;
  border-radius: 4px;
  border: 1px solid var(--line-2);
  background: var(--card);
  color: var(--ink-2);
}

/* ------------------------------------------------------------------ 缩略图 */
.previews { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 11px; }
.previews:empty { display: none; }

.thumb {
  position: relative;
  width: 62px;
  height: 62px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line-2);
  background: var(--paper-2);
}
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb button {
  position: absolute;
  top: 2px; right: 2px;
  width: 17px; height: 17px;
  border-radius: 50%;
  background: rgba(24, 20, 16, .66);
  color: #fff;
  font-size: 11px;
  line-height: 1;
  display: grid;
  place-items: center;
}
.thumb button:hover { background: rgba(24, 20, 16, .9); }

/* ------------------------------------------------------------------ 科目选择 */
.syllabus { margin-top: 18px; }

.track-tabs {
  position: relative;
  display: flex;
  gap: 2px;
  padding: 3px;
  background: var(--paper-2);
  border-radius: 10px;
  margin-bottom: 14px;
}

.track-tabs button {
  position: relative;
  z-index: 2;
  flex: 1;
  padding: 7px 10px 8px;
  border-radius: 7px;
  text-align: center;
  line-height: 1.25;
  color: var(--ink-2);
  transition: color .2s;
}
.track-tabs button i {
  display: block;
  font-style: normal;
  font-size: 10px;
  letter-spacing: .04em;
  color: var(--ink-3);
  margin-top: 1px;
  transition: color .2s;
}
.track-tabs button b { font-size: 13.5px; font-weight: 600; letter-spacing: .02em; }
.track-tabs button.active { color: var(--green); }
.track-tabs button.active i { color: var(--green); opacity: .7; }

.tab-ink {
  position: absolute;
  z-index: 1;
  top: 3px;
  bottom: 3px;
  border-radius: 7px;
  background: var(--card);
  box-shadow: 0 1px 3px rgba(35, 32, 28, .1);
  pointer-events: none;
}

.subject-groups { min-height: 96px; }

.sgroup { margin-bottom: 13px; }
.sgroup:last-child { margin-bottom: 0; }

.sgroup h4 {
  margin: 0 0 7px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.chips { display: flex; flex-wrap: wrap; gap: 6px; }

.chip {
  padding: 5px 11px;
  border-radius: 7px;
  border: 1px solid var(--line-2);
  background: var(--card);
  color: var(--ink-2);
  font-size: 12.5px;
  letter-spacing: .01em;
  transition: border-color .16s, color .16s, background .16s, box-shadow .16s;
  white-space: nowrap;
}
.chip:hover { border-color: var(--ink-3); color: var(--ink); }
.chip.active {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
  box-shadow: 0 2px 8px -3px rgba(31, 92, 77, .5);
}
@media (prefers-color-scheme: dark) {
  .chip.active { color: #10231d; }
}

/* ------------------------------------------------------------------ 字段 */
.field { margin-top: 16px; }
.field > label {
  display: block;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 7px;
}
.field-note { margin: 6px 0 0; font-size: 11px; color: var(--ink-3); font-family: var(--mono); }

.segmented { display: flex; gap: 3px; padding: 3px; background: var(--paper-2); border-radius: 9px; }
.segmented button {
  flex: 1;
  padding: 6px 6px;
  border-radius: 6px;
  font-size: 12.5px;
  color: var(--ink-2);
  white-space: nowrap;
  transition: background .16s, color .16s;
}
.segmented button:hover { color: var(--ink); }
.segmented button.active {
  background: var(--card);
  color: var(--green);
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(35, 32, 28, .1);
}

.more { margin-top: 13px; border-top: 1px dashed var(--line); padding-top: 11px; }
.more summary {
  font-size: 12.5px;
  color: var(--ink-3);
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: color .16s;
}
.more summary:hover { color: var(--ink-2); }
.more summary::-webkit-details-marker { display: none; }
.more summary::before { content: "＋ "; color: var(--ochre); }
.more[open] summary::before { content: "－ "; }
.more textarea {
  width: 100%;
  margin-top: 9px;
  padding: 9px 11px;
  border-radius: 8px;
  border: 1px solid var(--line-2);
  background: var(--paper-2);
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  resize: vertical;
  transition: border-color .16s;
}
.more textarea:focus { outline: none; border-color: var(--green); background: var(--card); }

.primary {
  width: 100%;
  margin-top: 18px;
  padding: 12px 16px;
  border-radius: 10px;
  background: var(--green);
  color: #fff;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: .02em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  transition: filter .16s, transform .12s, box-shadow .2s;
  box-shadow: 0 4px 16px -8px rgba(31, 92, 77, .8);
}
.primary:hover:not(:disabled) { filter: brightness(1.1); }
.primary:active:not(:disabled) { transform: translateY(1px); }
.primary:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }

.spinner {
  width: 13px; height: 13px;
  border: 2px solid rgba(255, 255, 255, .3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.hint { margin: 9px 0 0; font-size: 12px; color: var(--ink-3); min-height: 15px; text-align: center; }
.hint.err { color: var(--warn); }

/* ------------------------------------------------------------------ 输出区 */
.output-panel { min-height: 66vh; display: flex; flex-direction: column; }

.output-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 22px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  color: var(--ink-3);
}

.status { display: flex; align-items: center; gap: 7px; }
.status::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--line-2);
}
.status.live::before { background: var(--ochre); animation: pulse 1.2s ease-in-out infinite; }
.status.done::before { background: var(--green); }
.status.err::before { background: var(--warn); }
@keyframes pulse { 50% { opacity: .22; } }

.head-right { display: flex; align-items: center; gap: 8px; }
.meta { font-family: var(--mono); font-size: 11px; }

.answer { padding: 26px 30px 46px; overflow-wrap: break-word; }
@media (max-width: 960px) { .answer { padding: 18px 16px 34px; } }

/* 空状态 */
.placeholder { max-width: 560px; margin: 46px auto 20px; }
.ph-big {
  font-family: var(--serif);
  font-size: 21px;
  color: var(--ink-2);
  margin: 0 0 24px;
  letter-spacing: -.01em;
}
.ph-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.ph-grid > div { background: var(--card); padding: 13px 15px; }
.ph-grid b {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--green);
  letter-spacing: .04em;
  margin-bottom: 2px;
}
.ph-grid span { font-size: 12.5px; color: var(--ink-3); }

/* ------------------------------------------------------------------ markdown */
.md { font-size: 15px; color: var(--ink); line-height: 1.75; }
.md > :first-child { margin-top: 0; }

.md h2 {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
  margin: 30px 0 11px;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}
.md h2:first-child { margin-top: 0; }
.md h3 { font-size: 15px; margin: 20px 0 8px; color: var(--green); letter-spacing: .01em; }
.md p { margin: 12px 0; }
.md > p:first-of-type {
  font-size: 15.5px;
  line-height: 1.7;
  padding: 11px 15px;
  background: var(--paper-2);
  border-left: 3px solid var(--line-2);
  border-radius: 0 9px 9px 0;
}
.md ul, .md ol { margin: 10px 0; padding-left: 22px; }
.md li { margin: 5px 0; }
.md li::marker { color: var(--ochre); }
.md strong { font-weight: 650; }
.md em { color: var(--ink-2); }

.md code {
  font-family: var(--mono);
  font-size: .88em;
  padding: 2px 5px;
  border-radius: 5px;
  background: var(--paper-2);
  border: 1px solid var(--line);
}
.md pre {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  overflow-x: auto;
  font-size: 13px;
}
.md pre code { background: none; border: none; padding: 0; }

.md blockquote {
  margin: 14px 0;
  padding: 3px 0 3px 15px;
  border-left: 3px solid var(--green);
  color: var(--ink-2);
}

.md table { border-collapse: collapse; width: 100%; margin: 14px 0; font-size: 14px; }
.md th, .md td { border: 1px solid var(--line); padding: 8px 11px; text-align: left; }
.md th { background: var(--paper-2); font-weight: 600; }
.md hr { border: none; border-top: 1px solid var(--line); margin: 24px 0; }

.md .note-tip {
  margin: 22px 0 9px;
  padding: 12px 16px;
  background: var(--green-soft);
  border-left: 3px solid var(--green);
  border-radius: 0 10px 10px 0;
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.7;
}
.md .note-marks {
  margin: 9px 0;
  padding: 11px 16px;
  background: var(--ochre-soft);
  border-left: 3px solid var(--ochre);
  border-radius: 0 10px 10px 0;
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.65;
}
.md .subject-tag {
  display: inline-block;
  padding: 3px 11px;
  margin: 0 0 12px;
  border-radius: 20px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .04em;
}

.md .katex-display { margin: 16px 0; overflow-x: auto; overflow-y: hidden; padding: 2px 0; }
.md .katex { font-size: 1.04em; }

/* 图形 */
.md .figure {
  margin: 18px 0;
  padding: 16px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 11px;
  text-align: center;
  overflow-x: auto;
}
.md .figure svg { max-width: 100%; height: auto; display: block; margin: 0 auto; }

/* 思考中 */
.thinking {
  font-size: 12px;
  color: var(--ink-3);
  background: var(--paper-2);
  border: 1px dashed var(--line-2);
  border-radius: 9px;
  padding: 10px 12px;
  margin-bottom: 16px;
  max-height: 120px;
  overflow: hidden;
  font-family: var(--mono);
  white-space: pre-wrap;
  position: relative;
}
.thinking::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 30px;
  background: linear-gradient(to bottom, transparent, var(--paper-2));
}

.cursor {
  display: inline-block;
  width: 6px; height: 15px;
  background: var(--ochre);
  vertical-align: -2px;
  margin-left: 2px;
  animation: blink .9s steps(2) infinite;
  border-radius: 1px;
}
@keyframes blink { 50% { opacity: 0; } }

/* ------------------------------------------------------------------ 生图 */
.draw-row { display: flex; align-items: center; gap: 10px; margin-top: 9px; }
.draw-row .ghost { flex: 0 0 auto; }
.draw-hint { font-size: 11.5px; color: var(--ink-3); }
.draw-hint:empty { display: none; }
#draw-result img {
  width: 100%;
  margin-top: 10px;
  border-radius: 9px;
  border: 1px solid var(--line);
  cursor: zoom-in;
  display: block;
}

/* ------------------------------------------------------------------ 抽屉 */
.drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(390px, 92vw);
  background: var(--card);
  border-left: 1px solid var(--line);
  box-shadow: -16px 0 46px -24px rgba(35, 32, 28, .4);
  transform: translateX(102%);
  transition: transform .3s cubic-bezier(.32, .72, 0, 1);
  z-index: 40;
  display: flex;
  flex-direction: column;
}
.drawer.open { transform: translateX(0); }

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  font-family: var(--serif);
}
.drawer-body { overflow-y: auto; padding: 10px; }

.hitem {
  padding: 11px 13px;
  border-radius: 9px;
  cursor: pointer;
  border: 1px solid transparent;
  margin-bottom: 3px;
  transition: background .15s, border-color .15s;
}
.hitem:hover { background: var(--paper-2); border-color: var(--line); }
.hitem .hq {
  font-size: 13px;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 4px;
  line-height: 1.5;
}
.hitem .hm {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--ink-3);
  display: flex;
  gap: 10px;
}

.scrim {
  position: fixed;
  inset: 0;
  background: rgba(28, 24, 19, .3);
  z-index: 30;
  backdrop-filter: blur(1.5px);
}

/* ------------------------------------------------------------------ 弹窗 */
.modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(28, 24, 19, .42);
  backdrop-filter: blur(4px);
  z-index: 60;
  padding: 20px;
}
.modal[hidden] { display: none; }

.modal-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 26px 24px;
  width: min(330px, 100%);
  box-shadow: 0 26px 70px -26px rgba(28, 24, 19, .55);
}
.modal-card h2 {
  margin: 0 0 3px;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
}
.modal-card p { margin: 0 0 15px; font-size: 12.5px; color: var(--ink-3); }
.modal-card input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--line-2);
  background: var(--paper-2);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  letter-spacing: .12em;
}
.modal-card input:focus { outline: none; border-color: var(--green); background: var(--card); }
.modal-card .err { color: var(--warn); font-size: 12px; min-height: 17px; margin: 6px 0 4px; }
.modal-card .primary { margin-top: 4px; }

/* ------------------------------------------------------------------ 导出样式（颜色全部写死，不用 CSS 变量） */
.export-sheet {
  position: fixed;
  left: -10000px;
  top: 0;
  width: 880px;
  padding: 44px 48px 40px;
  background: #ffffff;
  color: #1a1a1a;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  line-height: 1.75;
  box-sizing: border-box;
}
.export-sheet .ex-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 13px;
  margin-bottom: 24px;
  border-bottom: 2px solid #1a1a1a;
}
.export-sheet .ex-brand b {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  letter-spacing: .02em;
  color: #1a1a1a;
}
.export-sheet .ex-brand span {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 11px;
  color: #8a8378;
}
.export-sheet h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  font-weight: 600;
  margin: 26px 0 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid #e2ddd3;
  color: #1a1a1a;
}
.export-sheet h2:first-of-type { margin-top: 0; }
.export-sheet h3 { font-size: 15px; margin: 18px 0 8px; color: #1f5c4d; }
.export-sheet p { margin: 11px 0; color: #1a1a1a; }
.export-sheet > div > p:first-of-type {
  padding: 10px 14px;
  background: #f7f5f0;
  border-left: 3px solid #cfc8bc;
  border-radius: 0 8px 8px 0;
  font-size: 15.5px;
}
.export-sheet ul, .export-sheet ol { margin: 10px 0; padding-left: 22px; }
.export-sheet li { margin: 5px 0; }
.export-sheet strong { font-weight: 700; color: #111; }
.export-sheet em { color: #444; }
.export-sheet code {
  font-family: ui-monospace, Menlo, monospace;
  font-size: .88em;
  padding: 2px 5px;
  border-radius: 5px;
  background: #f3f0ea;
  border: 1px solid #e4ded4;
  color: #1a1a1a;
}
.export-sheet pre {
  background: #f7f5f0;
  border: 1px solid #e4ded4;
  border-radius: 10px;
  padding: 12px 14px;
  overflow: visible;
  font-size: 13px;
  white-space: pre-wrap;
}
.export-sheet pre code { background: none; border: none; padding: 0; }
.export-sheet blockquote {
  margin: 12px 0;
  padding: 2px 0 2px 14px;
  border-left: 3px solid #1f5c4d;
  color: #444;
}
.export-sheet table { border-collapse: collapse; width: 100%; margin: 14px 0; font-size: 14px; }
.export-sheet th, .export-sheet td { border: 1px solid #e0dbd2; padding: 8px 11px; text-align: left; }
.export-sheet th { background: #f7f5f0; font-weight: 700; }
.export-sheet .figure {
  margin: 18px 0;
  padding: 16px;
  background: #ffffff;
  border: 1px solid #e0dbd2;
  border-radius: 12px;
  text-align: center;
}
.export-sheet .figure svg { max-width: 100%; height: auto; display: block; margin: 0 auto; }
.export-sheet .note-tip {
  margin: 20px 0 8px;
  padding: 11px 15px;
  background: #e9f2ef;
  border-left: 3px solid #1f5c4d;
  border-radius: 0 10px 10px 0;
  font-size: 14px;
  color: #3d3a34;
}
.export-sheet .note-marks {
  margin: 8px 0;
  padding: 10px 15px;
  background: #f8efe6;
  border-left: 3px solid #a85c2b;
  border-radius: 0 10px 10px 0;
  font-size: 13.5px;
  color: #3d3a34;
}
.export-sheet .subject-tag {
  display: inline-block;
  padding: 2px 9px;
  margin: 0 0 10px;
  border-radius: 20px;
  background: #e9f2ef;
  color: #1f5c4d;
  font-size: 12px;
  font-weight: 600;
}
.export-sheet .katex, .export-sheet .katex * { color: #1a1a1a; fill: #1a1a1a; }
.export-sheet .katex-display { margin: 16px 0; overflow: visible; }
.export-sheet .foot {
  margin-top: 30px;
  padding-top: 12px;
  border-top: 1px solid #e2ddd3;
  font-size: 11px;
  color: #9a938a;
  display: flex;
  justify-content: space-between;
}
