/* ============================================================
   classroom.css
   课堂系统 UI 样式
   追加在 course/course.css 末尾，或单独引入
   ============================================================ */

/* ── 选择弹窗 ──────────────────────────────────────────── */
.cls-choice-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.72);
  z-index: 10200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.cls-choice-box {
  background: #161d2f;
  border: 1px solid #2a3b66;
  border-radius: 14px;
  padding: 22px 18px;
  max-width: 340px;
  width: 100%;
}

.cls-choice-subject {
  font-size: 13px;
  color: #8899aa;
  margin-bottom: 4px;
}

.cls-choice-title {
  font-size: 16px;
  font-weight: 700;
  color: #f8c850;
  margin-bottom: 16px;
}

.cls-choice-btns {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}

.cls-choice-btn {
  flex: 1;
  padding: 14px 10px;
  border-radius: 10px;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s;
  min-height: 110px;
}
.cls-choice-btn:hover { transform: translateY(-2px); }
.cls-choice-btn:active { transform: translateY(0); }

.cls-choice-hard {
  background: #1e2f55;
  border: 1px solid #3b4f8a;
}
.cls-choice-hard:hover { background: #253a6a; border-color: #f8c850; }

.cls-choice-easy {
  background: #161d2f;
  border: 1px solid #2a3b66;
}
.cls-choice-easy:hover { background: #1e293b; border-color: #3b4f8a; }

.cls-choice-icon { font-size: 20px; margin-bottom: 6px; }

.cls-choice-name {
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 6px;
}
.cls-choice-hard .cls-choice-name { color: #f8d49d; }
.cls-choice-easy .cls-choice-name { color: #e6e6e6; }

.cls-choice-desc {
  font-size: 11px;
  color: #8899aa;
  line-height: 1.5;
}

.cls-choice-cancel {
  width: 100%;
  background: transparent;
  border: 1px solid #2a3b66;
  color: #8899aa;
  padding: 9px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.2s;
}
.cls-choice-cancel:hover { background: #1e293b; color: #e6e6e6; }

/* ── 答题记录弹窗 ──────────────────────────────────────── */
.answer-journal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  z-index: 10300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

/* ── 课堂面板 ──────────────────────────────────────────── */
.cls-panel {
  background: #0b0f1a;
  color: #e6e6e6;
  display: flex;
  flex-direction: column;
  min-height: 400px;
  border-radius: 10px;
  overflow: hidden;
  margin-top: 8px;
}

/* ── 顶部 header ────────────────────────────────────────── */
.cls-header {
  background: #161d2f;
  border-bottom: 1px solid #2a3b66;
  padding: 12px 14px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.cls-subject-icon { font-size: 26px; flex-shrink: 0; margin-top: 2px; }

.cls-header-info { flex: 1; }

.cls-subject-line {
  font-size: 11px;
  color: #8899aa;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cls-lesson-title {
  font-size: 16px;
  font-weight: 700;
  color: #f8c850;
  margin: 2px 0;
  line-height: 1.2;
}

.cls-prof-line { font-size: 12px; color: #8899aa; }

.cls-phase-badge {
  background: #2a3b66;
  color: #f8d49d;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 12px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ── 步骤条 ─────────────────────────────────────────────── */
.cls-phase-steps {
  display: flex;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #2a3b66;
}

.cls-step {
  flex: 1;
  text-align: center;
  padding: 7px 4px;
  font-size: 11px;
  color: #8899aa;
  background: #1e293b;
  border-right: 1px solid #2a3b66;
  transition: all 0.2s;
}
.cls-step:last-child { border-right: none; }
.cls-step-done { color: #4caf82; background: #0f2a1c; }
.cls-step-active { color: #f8c850; background: #1a2210; font-weight: 600; }

/* ── 主体 ───────────────────────────────────────────────── */
.cls-body {
  flex: 1;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
}

/* ── 氛围块 ─────────────────────────────────────────────── */
.cls-atmosphere {
  background: #111827;
  border: 1px solid #1e3040;
  border-left: 3px solid #2a5070;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 12px;
  color: #7a9ab8;
  line-height: 1.6;
  font-style: italic;
}

/* ── 开场白 ─────────────────────────────────────────────── */
.cls-opening {
  background: #161d2f;
  border: 1px solid #2a3b66;
  border-radius: 10px;
  padding: 14px;
}

.cls-opening-label {
  font-size: 11px;
  color: #8899aa;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.cls-opening-text {
  font-size: 14px;
  line-height: 1.75;
  color: #e6e6e6;
}

/* ── 进度点 ─────────────────────────────────────────────── */
.cls-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 2px 0;
}

.cls-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #2a3b66;
  transition: all 0.2s;
}
.cls-dot-active { background: #f8c850; width: 20px; border-radius: 4px; }
.cls-dot-done   { background: #4caf82; }

/* ── 知识点卡 ───────────────────────────────────────────── */
.cls-kp-card {
  background: #161d2f;
  border: 1px solid #2a3b66;
  border-radius: 10px;
  overflow: hidden;
}

.cls-kp-header {
  padding: 10px 14px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border-bottom: 1px solid #2a3b66;
}

.cls-kp-num {
  background: #2a3b66;
  color: #f8d49d;
  font-size: 11px;
  font-weight: 700;
  width: 22px; height: 22px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.cls-kp-point {
  font-size: 14px;
  font-weight: 600;
  color: #e6e6e6;
  line-height: 1.35;
  flex: 1;
}

/* ── 小黑板 ─────────────────────────────────────────────── */
.cls-blackboard {
  margin: 0 14px 4px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.025), rgba(0,0,0,0.04)),
    #0b1b10;
  border: 1px solid #31552f;
  border-radius: 6px;
  padding: 11px 14px 10px;
  overflow-x: auto;
  box-shadow: inset 0 0 0 1px rgba(180, 235, 150, 0.04), inset 0 -18px 40px rgba(0,0,0,0.12);
}

.cls-bb-title {
  font-size: 11px;
  color: #74a866;
  letter-spacing: 0;
  margin-bottom: 4px;
}

.cls-bb-pre {
  font-family: "KaiTi", "STKaiti", "Songti SC", "SimSun", serif;
  font-size: 15px;
  color: #daf0c0;
  line-height: 1.45;
  white-space: normal;
  margin: 4px 0 0;
  padding-left: 2px;
}

.cls-bb-formula-line {
  min-height: 20px;
  white-space: normal;
  letter-spacing: 0;
}

.cls-bb-topic {
  color: #eef8d4;
  font-size: 16px;
  margin-bottom: 2px;
}

.cls-bb-heading {
  color: #cbe6a9;
  margin-top: 4px;
}

.cls-bb-bullet {
  padding-left: 12px;
  text-indent: -10px;
}

.cls-bb-visual {
  margin: 4px 0 2px;
}

.cls-bb-visual svg {
  display: block;
  width: 100%;
  max-height: 128px;
}

.cls-bb-visual text {
  fill: #cfeab8;
  font-family: "KaiTi", "STKaiti", "Songti SC", "SimSun", serif;
  font-size: 12px;
  letter-spacing: 0;
}

.cls-bb-grid-line,
.cls-bb-callout {
  fill: none;
  stroke: rgba(203, 230, 169, 0.34);
  stroke-width: 1.2;
  stroke-linecap: round;
}

.cls-bb-path {
  fill: none;
  stroke: #daf0c0;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cls-bb-path-dim {
  stroke-width: 1.4;
  stroke: rgba(218, 240, 192, 0.56);
}

.cls-bb-arrow {
  fill: none;
  stroke: #f8d77a;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cls-bb-dot,
.cls-bb-node,
.cls-bb-ring,
.cls-bb-star {
  fill: #dff5c8;
  stroke: #f8d77a;
  stroke-width: 1.4;
}

.cls-bb-dot-hot {
  fill: #f8d77a;
}

.cls-bb-node {
  fill: rgba(218, 240, 192, 0.08);
}

.cls-bb-ring {
  fill: none;
}

.cls-bb-stem,
.cls-bb-root {
  fill: none;
  stroke: #dff5c8;
  stroke-width: 2.4;
  stroke-linecap: round;
}

.cls-bb-root {
  stroke-width: 1.5;
  opacity: 0.82;
}

.cls-bb-leaf {
  fill: rgba(118, 178, 96, 0.18);
  stroke: #dff5c8;
  stroke-width: 1.8;
  stroke-linejoin: round;
}

.cls-bb-star {
  stroke: none;
}

.cls-bb-formula-gap {
  height: 8px;
}

/* ── 计算器 ──────────────────────────────────────────────── */
.cls-calc {
  display: flex;
  justify-content: center;
  padding: 8px 0 4px;
}

.cls-calc-body {
  background: #2c2c2c;
  border-radius: 8px 8px 12px 12px;
  padding: 10px 12px 14px;
  width: 152px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.05);
}

.cls-calc-brand {
  font-size: 8px;
  color: #555;
  text-align: right;
  letter-spacing: 1.5px;
  margin-bottom: 6px;
  font-family: "Courier New", monospace;
}

.cls-calc-screen {
  background: #1a2e1a;
  border: 1px solid #0a180a;
  border-radius: 3px;
  padding: 6px 8px 8px;
  margin-bottom: 8px;
  text-align: right;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.4);
}

.cls-calc-display {
  font-family: "Courier New", monospace;
  font-size: 20px;
  color: #6abf7a;
  letter-spacing: 2px;
  line-height: 1;
}

.cls-calc-keys {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3px;
}

.cls-calc-key {
  background: #3a3a3a;
  border: 1px solid #4a4a4a;
  border-bottom: 2px solid #1a1a1a;
  border-radius: 3px;
  padding: 5px 2px;
  font-size: 9px;
  color: #999;
  text-align: center;
  font-family: "Courier New", monospace;
}

.cls-calc-key-hl {
  background: #1e3a28;
  border-color: #3a7a4a;
  border-bottom-color: #0a2010;
  color: #5abf7a;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.1s;
}
.cls-calc-key-hl:hover { background: #2a5038; border-color: #5abf7a; }
.cls-calc-key-pressed { background: #2a5038 !important; border-bottom-width: 1px !important; transform: translateY(1px); }

.cls-bb-note {
  font-size: 11px;
  color: #77a968;
  margin-top: 5px;
  font-style: italic;
}

.cls-board-preview {
  margin: 10px 14px 12px;
  border-left: 4px solid #f8c850;
  background: rgba(248, 200, 80, 0.06);
  padding: 9px 12px;
}

.cls-board-preview-text {
  font-size: 13px;
  color: #d9c27c;
  line-height: 1.5;
}

.cls-bb-audio {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #1a3a1a;
}

.cls-bb-audio-item {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.05);
  padding: 4px 8px;
  border-radius: 6px;
}

.cls-audio-btn {
  background: transparent;
  border: none;
  font-size: 14px;
  cursor: pointer;
  padding: 4px;
  transition: transform 0.2s;
}

.cls-audio-btn:hover {
  transform: scale(1.2);
}

.cls-audio-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.cls-audio-text {
  font-size: 12px;
  color: #8cc87a;
  font-family: "Courier New", monospace;
}

.cls-lecture-block {
  padding: 12px 14px 14px;
  border-top: 1px solid #2a3b66;
}

.cls-kp-context {
  margin: 10px 14px;
  padding: 10px 12px;
  font-size: 13px;
  color: #8899aa;
  line-height: 1.9;
  border-left: 3px solid #f8c850;
  background: #12192a;
  border-radius: 0 6px 6px 0;
  font-style: italic;
}

.cls-dialogue {
  color: #d4bb88;
  font-style: normal;
  font-weight: 500;
}

/* ── 课中提问 ───────────────────────────────────────────── */
.cls-mini-q {
  padding: 12px 14px 14px;
  border-top: 1px solid #2a3b66;
}

.cls-mini-leadin {
  padding: 10px 12px;
  font-size: 13px;
  color: #8899aa;
  font-style: italic;
  line-height: 1.9;
  margin-bottom: 10px;
  border-left: 3px solid #f8c850;
  background: #12192a;
  border-radius: 0 6px 6px 0;
}

.cls-mini-text {
  font-size: 15px;
  color: #8899aa;
  font-style: italic;
  font-weight: 500;
  text-align: center;
  margin-bottom: 12px;
}

.cls-mini-text .cls-dialogue {
  color: #f8d49d;
  font-style: normal;
  font-weight: 700;
}

.cls-mini-inline-question {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #2a3b66;
}

.cls-mini-inline-question-solo {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.cls-mini-opts {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.cls-mini-opt {
  background: #1e293b;
  border: 1px solid #2a3b66;
  color: #e6e6e6;
  min-width: 112px;
  min-height: 48px;
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}
.cls-mini-opt:hover:not(:disabled) { background: #253050; border-color: #3b4f8a; }
.cls-mini-opt:disabled { cursor: default; }
.cls-mini-opt-correct { background: #1a3a23 !important; border-color: #4caf82 !important; color: #8fe8b0 !important; }
.cls-mini-opt-wrong   { background: #3a1a1a !important; border-color: #e05c5c !important; color: #e89090 !important; }

/* ── 测验区 ─────────────────────────────────────────────── */
.cls-quiz-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cls-quiz-count { font-size: 12px; color: #8899aa; }

.cls-diff-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 10px;
}
.cls-diff-basic  { background: #1a3a23; color: #6abf8a; }
.cls-diff-medium { background: #2a3a10; color: #9abf5a; }
.cls-diff-hard   { background: #3a1a1a; color: #bf6a6a; }

.cls-leadin {
  background: #12192a;
  border: 1px solid #1e3050;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13px;
  color: #f8d49d;
  line-height: 1.6;
  font-style: italic;
}

.cls-question {
  font-size: 15px;
  font-weight: 600;
  color: #e6e6e6;
  line-height: 1.45;
}

.cls-options { display: flex; flex-direction: column; gap: 8px; }

.cls-option {
  background: #1e293b;
  border: 1px solid #2a3b66;
  border-radius: 8px;
  padding: 11px 14px;
  font-size: 14px;
  color: #e6e6e6;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s;
  width: 100%;
}
.cls-option:hover:not(:disabled) { background: #253050; border-color: #3b4f8a; }
.cls-option:disabled { cursor: default; }
.cls-option-correct { background: #1a3a23 !important; border-color: #4caf82 !important; color: #8fe8b0 !important; }
.cls-option-wrong   { background: #3a1a1a !important; border-color: #e05c5c !important; color: #e89090 !important; }

/* ── 答题反馈 ───────────────────────────────────────────── */
.cls-feedback { display: none; border-radius: 8px; padding: 10px 12px; font-size: 13px; line-height: 1.6; }
.cls-fb-show  { display: block; }
.cls-fb-right { background: #1a3a23; border: 1px solid #2a6a3a; }
.cls-fb-wrong { background: #3a1a1a; border: 1px solid #5a2a2a; }

.cls-fb-tag { font-weight: 700; font-size: 13px; margin-bottom: 4px; }
.cls-fb-r { color: #4caf82; }
.cls-fb-w { color: #e05c5c; }
.cls-fb-kp { color: #f8d49d; font-weight: 600; }
.cls-fb-analysis { color: #c8d8e8; }
.cls-fb-rich {
  margin-top: 10px;
}
.cls-fb-rich-title {
  color: #f8d49d;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  margin-bottom: 6px;
}
.cls-fb-rich p {
  color: #d7e6f2;
  font-size: 13px;
  line-height: 1.7;
  margin: 0;
  overflow-wrap: anywhere;
}
.cls-fb-rich p + p {
  margin-top: 6px;
}
.cls-fb-script {
  margin: 8px 0;
}
.cls-fb-speaker-line {
  color: #8fe8b0;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.6;
  margin-bottom: 2px;
}
.cls-fb-dialogue-line {
  color: #d7e6f2;
  font-size: 13px;
  line-height: 1.7;
  margin-left: 1.5em;
  overflow-wrap: anywhere;
}
.cls-fb-quote {
  color: #ffffff;
  font-weight: 700;
}
.cls-fb-list {
  background: rgba(248, 212, 157, 0.08);
  border-left: 3px solid rgba(248, 212, 157, 0.55);
  border-radius: 0 6px 6px 0;
  color: #d7e6f2;
  font-size: 13px;
  line-height: 1.65;
  list-style: none;
  margin: 8px 0;
  padding: 8px 10px 8px 14px;
}
.cls-fb-list li {
  position: relative;
  padding-left: 14px;
}
.cls-fb-list li + li {
  margin-top: 6px;
}
.cls-fb-list li::before {
  content: "";
  background: #f8d49d;
  border-radius: 999px;
  height: 5px;
  left: 0;
  position: absolute;
  top: 0.75em;
  width: 5px;
}
.cls-fb-rich strong {
  color: #ffffff;
  font-weight: 800;
}
.cls-fb-rich em {
  color: #f0d7ff;
  font-style: italic;
}
.cls-fb-rich mark {
  background: rgba(248, 200, 80, 0.22);
  border-radius: 4px;
  color: #ffe3a3;
  padding: 0 3px;
}
.cls-rich-code {
  background: rgba(0, 0, 0, 0.24);
  border: 1px solid rgba(200, 216, 232, 0.18);
  border-radius: 4px;
  color: #e6edf7;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.92em;
  padding: 1px 4px;
}
.cls-rich-red { color: #ff9c9c; font-weight: 700; }
.cls-rich-green { color: #8fe8b0; font-weight: 700; }
.cls-rich-blue { color: #95c7ff; font-weight: 700; }
.cls-rich-yellow,
.cls-rich-gold { color: #f8d49d; font-weight: 700; }
.cls-rich-purple { color: #d6b4ff; font-weight: 700; }
.cls-rich-pink { color: #ffafd2; font-weight: 700; }
.cls-rich-gray { color: #a8b8c8; }

/* ── 结算 ───────────────────────────────────────────────── */
.cls-result-card {
  background: #161d2f;
  border: 1px solid #2a3b66;
  border-radius: 12px;
  padding: 18px;
  text-align: center;
}

.cls-result-lesson { font-size: 13px; color: #8899aa; margin-bottom: 12px; }
.cls-result-rating { font-size: 52px; font-weight: 900; line-height: 1; margin: 8px 0; }
.cls-result-grade  { font-size: 14px; color: #e6e6e6; margin-bottom: 4px; }
.cls-result-score  { font-size: 13px; color: #8899aa; margin-bottom: 14px; }
.cls-result-no-quiz { font-size: 14px; color: #e6e6e6; padding: 12px 0; }

.cls-result-hp {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 14px;
}
.cls-hp-plus { background: #1a3a23; color: #4caf82; border: 1px solid #2a5a33; }
.cls-hp-minus { background: #3a1a1a; color: #e05c5c; border: 1px solid #5a2a2a; }

.cls-result-comment {
  background: #12192a;
  border-left: 3px solid #f8c850;
  border-radius: 0 8px 8px 0;
  padding: 10px 12px;
  text-align: left;
  margin-top: 10px;
}
.cls-comment-prof { font-size: 11px; color: #8899aa; margin-bottom: 4px; }
.cls-comment-text { font-size: 13px; color: #f8d49d; line-height: 1.65; font-style: italic; }

.cls-result-actions {
  display: flex;
  align-self: stretch;
  width: 100%;
  gap: 12px;
}

.cls-result-actions .cls-btn-journal {
  flex: 0 0 auto;
  margin-right: 0;
}

.cls-result-actions .cls-btn-leave {
  flex: 1 1 0;
  min-width: 0;
  width: 100%;
}

/* ── 导航按钮 ───────────────────────────────────────────── */
.cls-nav {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

/* 后退/次要按钮 */
.cls-btn-sec {
  flex: 1;
  background: #1e293b;
  border: 1px solid #2a3b66;
  color: #8899aa;
  padding: 11px 14px;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}
.cls-btn-sec:hover { background: #253050; color: #e6e6e6; border-color: #3b4f8a; }

/* 普通前进按钮（下一条） */
.cls-btn-pri {
  flex: 2;
  background: #2a3b66;
  border: 1px solid #3b4f8a;
  color: #e6e6e6;
  padding: 11px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.cls-btn-pri:hover { background: #3b4f8a; color: #fff; }

/* 关键跳转按钮（开始上课/随堂测验/查看结果） */
.cls-btn-advance {
  flex: 2;
  background: #1e2f55;
  border: 1px solid #3b4f8a;
  color: #f8d49d;
  padding: 11px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.cls-btn-advance:hover { background: #253a6a; border-color: #f8c850; color: #f8c850; }

/* 离开教室 */
.cls-btn-leave {
  flex: 1;
  background: #1e293b;
  border: 1px solid #2a3b66;
  color: #8899aa;
  padding: 13px;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}
.cls-btn-leave:hover { background: #253050; color: #e6e6e6; border-color: #3b4f8a; }

.cls-btn-journal {
  flex: 1;
  margin-right: 8px;
}

/* ── 开放题相关样式 ─────────────────────────────────────── */
.cls-open-container { padding: 10px 14px 0; }

.cls-open-textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #555;
  border-radius: 8px;
  background: #0d0d1a;
  color: #e0e0e0;
  font-size: 0.9em;
  resize: vertical;
  box-sizing: border-box;
  outline: none;
  line-height: 1.6;
}

.cls-open-skip-btn {
  background: none;
  border: 1px solid #555;
  color: #888;
  border-radius: 8px;
  padding: 6px 14px;
  cursor: pointer;
  font-size: 0.85em;
}

.cls-open-hint { margin: 12px 0 4px; }

.cls-open-counter {
  text-align: right;
  font-size: 0.75em;
  color: #888;
  margin-top: 2px;
}

.cls-open-api-note {
  margin-top: 6px;
  font-size: 0.78em;
  color: #888;
  line-height: 1.5;
  text-align: center;
}

.cls-nav-wide { gap: 10px; }

.cls-diff-subjective {
  background: #7c5cbf;
  color: #fff;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.78em;
}

.cls-ai-loading {
  text-align: center;
  padding: 12px;
  color: #b9a7e8;
}

.cls-fb-extra { margin-top: 6px; }
.cls-fb-italic { margin-top: 8px; font-style: italic; color: #d0c8e8; }
.cls-fb-meta { font-size: 0.7em; color: #888; margin-left: 8px; }
.cls-fb-muted { margin-top: 6px; font-size: 0.85em; color: #888; }

/* ── AI 点评卡片 ────────────────────────────────────────── */
.cls-open-review {
  margin: 16px 0 0;
  padding: 14px 16px;
  border: 1px solid #3a3a5a;
  border-radius: 10px;
  background: rgba(108,92,231,0.08);
}

.cls-open-review-title {
  font-size: 0.82em;
  color: #9d86e9;
  font-weight: bold;
  margin-bottom: 6px;
}

.cls-open-review-score {
  font-size: 0.9em;
  font-weight: bold;
  margin-bottom: 8px;
}

.cls-open-review-tags {
  color: #aaa;
  font-weight: normal;
  font-size: 0.85em;
  margin-left: 8px;
}

.cls-open-review-text {
  font-size: 0.88em;
  color: #d0c8e8;
  line-height: 1.6;
  font-style: italic;
}

.cls-journal-btn-wrap { margin: 12px 0 0; }

/* ── 响应式 ─────────────────────────────────────────────── */
@media (max-width: 480px) {
  .cls-choice-btns { flex-direction: column; }
  .cls-choice-btn  { min-height: 80px; }
  .cls-result-rating { font-size: 44px; }
  .cls-kp-context { margin: 8px 10px; padding: 8px 10px; }
}
