:root {
  --admin-bg: #f8fafc;
  --admin-surface: #ffffff;
  --admin-border: #e2e8f0;
  --admin-primary: #4f46e5;
  --admin-primary-hover: #4338ca;
  --admin-text: #0f172a;
  --admin-muted: #64748b;
}

body.admin-body {
  margin: 0;
  padding: 0;
  font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--admin-bg);
  color: var(--admin-text);
}

.admin-layout {
  display: flex;
  min-height: 100vh;
}

.admin-sidebar {
  width: 240px;
  background: #1e1e2d;
  color: #fff;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.sidebar-brand {
  padding: 24px 20px;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.sidebar-menu {
  list-style: none;
  padding: 16px 8px;
  margin: 0;
  flex: 1;
}

.sidebar-item {
  padding: 12px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 500;
  color: #a2a3b7;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 4px;
}

.sidebar-item:hover, .sidebar-item.active {
  background: rgba(79, 70, 229, 0.15);
  color: #818cf8;
}

.sidebar-item.active {
  font-weight: 700;
}

.admin-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-x: auto;
  min-width: 0;
}

.admin-header {
  height: 64px;
  background: var(--admin-surface);
  border-bottom: 1px solid var(--admin-border);
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.admin-content {
  padding: 24px;
  flex: 1;
  min-width: 0;
}

.admin-card {
  background: var(--admin-surface);
  border: 1px solid var(--admin-border);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.btn-admin {
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-admin-primary {
  background: var(--admin-primary);
  color: #fff;
}
.btn-admin-primary:hover {
  background: var(--admin-primary-hover);
}

.btn-admin-outline {
  background: transparent;
  border: 1px solid var(--admin-border);
  color: var(--admin-text);
}
.btn-admin-outline:hover {
  background: #f1f5f9;
}

.btn-admin-danger {
  background: #ef4444;
  color: #fff;
}

/* 上传工作台 */
.dropzone {
  border: 2px dashed #cbd5e1;
  border-radius: 14px;
  padding: 40px 20px;
  text-align: center;
  background: #f8fafc;
  cursor: pointer;
  transition: all 0.2s ease;
}
.dropzone:hover, .dropzone.dragover {
  border-color: var(--admin-primary);
  background: rgba(79, 70, 229, 0.04);
}

/* 表格样式 */
.admin-table {
  width: 100%;
  border-collapse: collapse;
}
.admin-table th, .admin-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--admin-border);
  font-size: 0.9rem;
}
.admin-table th {
  background: #f8fafc;
  color: #64748b;
  font-weight: 600;
}

.tag-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* 题目草稿卡片 */
.q-draft-card {
  border: 1px solid var(--admin-border);
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 14px;
  background: #fff;
  transition: box-shadow 0.2s ease;
}
.q-draft-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

/* ================= 班级与学生管理样式 ================= */
.class-mgmt-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 24px;
  align-items: start;
}

@media (max-width: 900px) {
  .class-mgmt-layout {
    grid-template-columns: 1fr;
  }
}

.class-list-sidebar {
  background: var(--admin-surface);
  border: 1px solid var(--admin-border);
  border-radius: 12px;
  padding: 18px;
}

.class-item-card {
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid var(--admin-border);
  margin-bottom: 10px;
  cursor: pointer;
  background: #ffffff;
  transition: all 0.2s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.class-item-card:hover {
  border-color: var(--admin-primary);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.08);
}

.class-item-card.active {
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.08), rgba(99, 102, 241, 0.12));
  border-color: var(--admin-primary);
  border-width: 2px;
}

.class-name-tag {
  font-weight: 700;
  font-size: 1rem;
  color: var(--admin-text);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.class-sub-text {
  font-size: 0.8rem;
  color: var(--admin-muted);
}

.student-roster-panel {
  background: var(--admin-surface);
  border: 1px solid var(--admin-border);
  border-radius: 12px;
  padding: 24px;
}

.student-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.student-badge-card {
  border: 1px solid var(--admin-border);
  border-radius: 10px;
  padding: 12px 14px;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.2s ease;
}

.student-badge-card:hover {
  background: #fff;
  border-color: #cbd5e1;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.student-no-pill {
  font-family: 'Orbitron', monospace;
  font-size: 0.75rem;
  font-weight: 700;
  color: #64748b;
  background: #e2e8f0;
  padding: 2px 6px;
  border-radius: 4px;
  margin-right: 6px;
}

.gender-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-left: 6px;
}
.gender-dot.boy { background: #3b82f6; }
.gender-dot.girl { background: #ec4899; }

/* 模态弹窗 */
.admin-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.admin-modal-box {
  background: #fff;
  border-radius: 16px;
  width: 100%;
  max-width: 540px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
  overflow: hidden;
  animation: modalScaleIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalScaleIn {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.admin-modal-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--admin-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 1.1rem;
}

.admin-modal-body {
  padding: 24px;
}

.admin-modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--admin-border);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  background: #f8fafc;
}

/* ================= 现代化试卷题库工作台 (Exam Studio) ================= */
.exam-studio-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* 顶部操作条 */
.studio-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #ffffff;
  border: 1px solid var(--admin-border);
  border-radius: 12px;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
}

.studio-title-input {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
  border: 1px solid transparent;
  padding: 6px 10px;
  border-radius: 8px;
  transition: all 0.2s ease;
  background: transparent;
  max-width: 320px;
}

.studio-title-input:hover {
  background: #f8fafc;
  border-color: #e2e8f0;
}

.studio-title-input:focus {
  background: #ffffff;
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
  outline: none;
}

.view-mode-toggle {
  display: inline-flex;
  background: #f1f5f9;
  padding: 3px;
  border-radius: 8px;
  gap: 2px;
}

.view-mode-btn {
  border: none;
  background: transparent;
  padding: 5px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #64748b;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.view-mode-btn.active {
  background: #fff;
  color: #4f46e5;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* 双栏工作台布局 */
.studio-workbench {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

/* 左侧大纲导航栏 */
.studio-outline-panel {
  position: sticky;
  top: 76px;
  background: #ffffff;
  border: 1px solid var(--admin-border);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 96px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  overflow: hidden;
}

.outline-header {
  padding: 14px 16px;
  border-bottom: 1px solid var(--admin-border);
  background: #f8fafc;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.outline-list {
  flex: 1;
  overflow-y: auto;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.outline-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
  border: 1px solid transparent;
  position: relative;
}

.outline-item:hover {
  background: #f8fafc;
  border-color: #e2e8f0;
}

.outline-item.active {
  background: #eff6ff;
  border-color: #bfdbfe;
}

.outline-item.active .outline-num {
  background: #3b82f6;
  color: #fff;
}

.outline-num {
  font-size: 0.75rem;
  font-weight: 800;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: #e2e8f0;
  color: #475569;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.outline-info {
  flex: 1;
  min-width: 0;
}

.outline-title-preview {
  font-size: 0.82rem;
  line-height: 1.4;
  color: #1e293b;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  word-break: break-word;
}

.outline-quick-actions {
  display: none;
  gap: 2px;
  flex-shrink: 0;
}

.outline-item:hover .outline-quick-actions {
  display: flex;
}

.outline-icon-btn {
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  cursor: pointer;
  color: #64748b;
  transition: all 0.1s ease;
}

.outline-icon-btn:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.outline-icon-btn.danger:hover {
  background: #fef2f2;
  color: #dc2626;
  border-color: #fca5a5;
}

.outline-footer-add {
  padding: 12px;
  border-top: 1px solid var(--admin-border);
  background: #f8fafc;
}

.outline-add-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.outline-add-btn {
  background: #fff;
  border: 1px dashed #cbd5e1;
  border-radius: 6px;
  padding: 6px 8px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: all 0.15s ease;
}

.outline-add-btn:hover {
  border-color: #4f46e5;
  color: #4f46e5;
  background: #eff6ff;
}

/* 右侧主编辑舞台 (Stage) */
.studio-stage {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* 拟真编辑卡片 */
.stage-card {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid var(--admin-border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  transition: all 0.2s ease;
}

.stage-card-bar {
  padding: 14px 24px;
  background: #ffffff;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.stage-card-body {
  padding: 24px 28px;
}

/* ================= 现代高品质表单输入控件规范 ================= */
.form-input {
  box-sizing: border-box;
  height: 38px;
  line-height: 1.5;
  padding: 8px 14px;
  font-size: 0.9rem;
  font-family: inherit;
  color: #1e293b;
  background-color: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  transition: all 0.18s ease-in-out;
}

.form-input:hover {
  background-color: #ffffff;
  border-color: #cbd5e1;
}

.form-input:focus {
  background-color: #ffffff;
  border-color: #6366f1;
  box-shadow: 0 0 0 3.5px rgba(99, 102, 241, 0.12), 0 1px 2px rgba(0, 0, 0, 0.05);
  outline: none;
}

.form-input::placeholder {
  color: #94a3b8;
  font-size: 0.85rem;
}

/* 文本域控件 */
textarea.form-input {
  height: auto;
  min-height: 80px;
  padding: 10px 14px;
  line-height: 1.6;
  resize: vertical;
}

/* 定制化精致下拉选择器 (Custom Styled Select) */
select.form-input, select.studio-select {
  height: 38px;
  padding: 6px 36px 6px 14px !important;
  font-size: 0.88rem;
  font-weight: 600;
  color: #334155;
  background-color: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  cursor: pointer;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b' stroke-width='2.2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 14px 14px;
  transition: all 0.18s ease;
}

select.form-input:hover, select.studio-select:hover {
  background-color: #ffffff;
  border-color: #cbd5e1;
}

select.form-input:focus, select.studio-select:focus {
  background-color: #ffffff;
  border-color: #6366f1;
  box-shadow: 0 0 0 3.5px rgba(99, 102, 241, 0.12);
  outline: none;
}

/* 拟真题干输入区 (沉浸式卡片文本域) */
.stem-input {
  width: 100%;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px 18px;
  font-size: 1.05rem;
  line-height: 1.65;
  font-weight: 600;
  color: #0f172a;
  background: #fbfcfe;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
  resize: vertical;
  min-height: 84px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.02);
}

.stem-input:hover {
  border-color: #cbd5e1;
  background: #ffffff;
}

.stem-input:focus {
  background: #ffffff;
  border-color: #6366f1;
  outline: none;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.12), 0 2px 4px rgba(0, 0, 0, 0.04);
}

.stem-input::placeholder {
  color: #94a3b8;
  font-weight: 400;
  font-size: 0.95rem;
}

/* 配图预览与文件/拖拽上传组件 */
.studio-image-preview {
  position: relative;
  display: inline-block;
  border-radius: 10px;
  overflow: hidden;
  border: 1.5px solid #e2e8f0;
  background: #f8fafc;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  transition: all 0.2s ease;
  cursor: pointer;
}

.studio-image-preview:hover {
  border-color: #cbd5e1;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.studio-image-preview img {
  height: 96px;
  width: auto;
  min-width: 96px;
  max-width: 180px;
  display: block;
  object-fit: contain;
  background: #ffffff;
}

.studio-image-del-btn {
  position: absolute;
  top: 6px;
  right: 6px;
  background: rgba(15, 23, 42, 0.75);
  color: #ffffff;
  border: none;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  backdrop-filter: blur(4px);
}

.studio-image-del-btn:hover {
  background: #ef4444;
  transform: scale(1.1);
}

/* 已有图片时右侧的添加小卡片 */
.studio-image-add-card {
  height: 96px;
  min-width: 100px;
  border: 2px dashed #cbd5e1;
  border-radius: 10px;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #64748b;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 0 16px;
  user-select: none;
}

.studio-image-add-card:hover {
  border-color: #6366f1;
  background: #eef2ff;
  color: #4f46e5;
  transform: translateY(-2px);
}

/* 空状态下的高品质拖拽与上传放置区 */
.studio-image-dropzone-empty {
  border: 2px dashed #cbd5e1;
  border-radius: 12px;
  background: #f8fafc;
  padding: 22px 24px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  user-select: none;
}

.studio-image-dropzone-empty:hover {
  border-color: #6366f1;
  background: #f5f7ff;
  transform: translateY(-1px);
}

/* 拖拽文件悬停时的高亮激活效果 */
.studio-image-dropzone-empty.dragover,
.studio-image-add-card.dragover {
  border-color: #4f46e5 !important;
  background: #e0e7ff !important;
  color: #4338ca !important;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2) !important;
  transform: scale(1.02) !important;
}

/* 题目卡片处于全局拖拽受击态时的呼吸光晕 */
.stage-card.drag-upload-active {
  box-shadow: 0 0 0 3px #6366f1, 0 8px 30px rgba(99, 102, 241, 0.15) !important;
  border-color: #818cf8 !important;
}

/* 拟真填空槽位卡片 (高品质呼吸卡片) */
.realistic-cloze-row {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-left: 4px solid #6366f1;
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 14px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
  transition: all 0.2s ease;
}

.realistic-cloze-row:hover {
  border-color: #cbd5e1;
  border-left-color: #4f46e5;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.06);
}

.cloze-blank-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 20px;
  background: #eef2ff;
  color: #4f46e5;
  font-weight: 800;
  font-size: 0.84rem;
  letter-spacing: 0.02em;
}

.cloze-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: #475569;
  margin-bottom: 6px;
}

.cloze-label.correct {
  color: #16a34a;
  font-weight: 700;
}

/* 正确填空词专属输入框 (告别刺眼荧光绿，采用翡翠绿轻奢高光胶囊) */
.form-input-correct {
  background-color: #f0fdf4 !important;
  border: 1.5px solid #86efac !important;
  color: #15803d !important;
  font-weight: 700 !important;
}

.form-input-correct:hover {
  background-color: #dcfce7 !important;
  border-color: #4ade80 !important;
}

.form-input-correct:focus {
  background-color: #ffffff !important;
  border-color: #22c55e !important;
  box-shadow: 0 0 0 3.5px rgba(34, 197, 94, 0.18), 0 1px 2px rgba(0,0,0,0.05) !important;
}

/* 优雅的幽灵危险按钮 */
.studio-btn-danger {
  background: transparent;
  border: 1px solid #fee2e2;
  color: #ef4444;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.studio-btn-danger:hover {
  background: #fef2f2;
  border-color: #fca5a5;
  color: #dc2626;
  transform: translateY(-1px);
}

/* 拟真单选/多选卡片 */
.realistic-option-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  margin-bottom: 10px;
  transition: all 0.18s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
  width: 100%;
  box-sizing: border-box;
}

.realistic-option-item:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
}

.realistic-option-item.correct {
  border-color: #86efac;
  background: #f0fdf4;
  box-shadow: 0 2px 8px rgba(34, 197, 94, 0.08);
}

.realistic-radio-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  background: #f8fafc;
  color: #64748b;
  font-size: 0.82rem;
  font-weight: 800;
  transition: all 0.15s ease;
  user-select: none;
}

.realistic-option-item:hover .realistic-radio-btn {
  border-color: #94a3b8;
  color: #334155;
}

.realistic-option-item.correct .realistic-radio-btn {
  border-color: #10b981;
  background: #10b981;
  color: #ffffff;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

/* 选项内容编辑列：占满可用剩余宽度 */
.realistic-opt-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* 核心修复：自适应文本域占满宽度，自动换行撑高，绝不水平截断遮挡 */
.realistic-opt-input {
  width: 100% !important;
  box-sizing: border-box !important;
  border: 1.5px solid transparent;
  background: transparent;
  font-size: 0.96rem;
  font-weight: 600;
  color: #1e293b;
  outline: none;
  padding: 5px 8px;
  border-radius: 6px;
  transition: all 0.15s ease;
  min-width: 0;
  resize: none;
  overflow: hidden;
  line-height: 1.5;
  font-family: inherit;
  white-space: pre-wrap;
  word-break: break-word;
}

.realistic-opt-input:hover {
  background: rgba(241, 245, 249, 0.7);
  border-color: #cbd5e1;
}

.realistic-opt-input:focus {
  background: #ffffff;
  border-color: #6366f1;
  box-shadow: 0 0 0 2.5px rgba(99, 102, 241, 0.15);
}

.realistic-feedback-input {
  resize: none !important;
  overflow: hidden !important;
  line-height: 1.45 !important;
  font-family: inherit !important;
  white-space: pre-wrap !important;
  word-break: break-word !important;
  transition: all 0.15s ease;
}

.realistic-feedback-input:focus {
  background: #ffffff !important;
  border-color: #6366f1 !important;
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.15);
}

/* 拟真判断大卡片 */
.judgment-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.judgment-choice-card {
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 18px 20px;
  background: #ffffff;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.judgment-choice-card:hover {
  border-color: #cbd5e1;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.judgment-choice-card.selected-correct {
  border-color: #22c55e;
  background: #f0fdf4;
  box-shadow: 0 4px 14px rgba(34, 197, 94, 0.15);
}

/* 拟真问答输入框 */
.realistic-free-preview {
  background: #f8fafc;
  border: 2px dashed #cbd5e1;
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 16px;
}

/* 抽屉/模态弹窗优化 */
.studio-drawer {
  background: #fff;
  border: 1px solid var(--admin-border);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}

/* 响应式断点与防遮挡布局强化 */
@media (max-width: 1280px) {
  .studio-workbench {
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 14px;
  }
  .admin-content {
    padding: 16px;
  }
  .stage-card-bar {
    padding: 12px 18px;
  }
  .stage-card-body {
    padding: 18px 20px;
  }
}

@media (max-width: 992px) {
  .admin-sidebar {
    width: 200px;
  }
  .studio-workbench {
    grid-template-columns: 1fr;
  }
  .studio-outline-panel {
    position: static;
    max-height: 260px;
    margin-bottom: 16px;
  }
}




