:root {
  --bg: #f4f7ff;
  --bg-2: #eef4ff;
  --card: #ffffff;
  --text: #0f172a;        /* 超清视网膜级极黑文本，对比度拉满 */
  --muted: #475569;       /* 高辨识度次级文本，确保学号、时间清晰可见 */
  --line: #dce4f2;
  --primary: #3a5bff;     /* 芳雅教育·巧记君皇家智慧蓝 */
  --primary-dark: #2546e5;
  --primary-soft: #edf0ff;
  --success: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;     /* 巧记启发金 */
  --radius: 18px;
  --shadow: 0 18px 50px rgba(15, 23, 42, .08);
  --shadow-soft: 0 10px 24px rgba(15, 23, 42, .05);
}

* { box-sizing: border-box; }

/* 全局滚动条视网膜级美化 */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(148, 163, 184, .45); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: rgba(100, 116, 139, .75); }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;    /* 强制开启硬件级中文抗锯齿渲染 */
  -moz-osx-font-smoothing: grayscale;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 18%, rgba(58, 91, 255, .16) 0, transparent 28%),
    radial-gradient(circle at 88% 2%, rgba(124, 92, 255, .12) 0, transparent 24%),
    linear-gradient(180deg, #fbfcff 0%, var(--bg) 100%);
  position: relative;
  min-height: 100vh;
}

body::before,
body::after {
  content: ""; position: fixed; width: 320px; height: 320px;
  border-radius: 50%; filter: blur(18px); pointer-events: none; opacity: .45; z-index: -1;
}
body::before { left: -120px; top: 120px; background: rgba(58, 91, 255, .14); }
body::after { right: -140px; top: 40px; background: rgba(124, 92, 255, .12); }

a { color: var(--primary); text-decoration: none; cursor: pointer; font-weight: 600; }
button, input, select, textarea { font: inherit; font-weight: 600; }

.page { min-height: 100vh; }
.center-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }

/* 登录入驻卡片 */
.auth-card {
  width: 100%; max-width: 460px; background: rgba(255,255,255,.94);
  border: 1px solid rgba(220,228,242,.85); border-radius: 28px;
  box-shadow: var(--shadow); padding: 36px 32px; backdrop-filter: blur(14px); position: relative; overflow: hidden;
}
.auth-card::before { content: ""; position: absolute; inset: 0 auto auto 0; width: 100%; height: 5px; background: linear-gradient(90deg, #3a5bff, #7b5aff, #f59e0b); }
.logo-row { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.logo { width: 50px; height: 50px; border-radius: 16px; display: grid; place-items: center; color: white; font-weight: 800; background: linear-gradient(135deg, #3a5bff, #6b4cff); box-shadow: 0 12px 26px rgba(58,91,255,.28); }
.logo-image { object-fit: cover; display: block; padding: 0; background: transparent; }
.title { margin: 0; font-size: 24px; font-weight: 800; letter-spacing: -.5px; color: #0f172a; }
.subtitle { margin: 4px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.auth-switch-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.auth-switch-title { font-size: 18px; font-weight: 800; color: var(--text); }
.auth-switch-link { border: 0; background: transparent; padding: 0; color: var(--primary); font-size: 13.5px; font-weight: 700; cursor: pointer; }
.auth-switch-link:hover { text-decoration: underline; }

.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13.5px; color: #1e293b; margin-bottom: 8px; font-weight: 800; }
.input, .select, .textarea {
  width: 100%; border: 1px solid var(--line); background: #ffffff; color: var(--text);
  border-radius: 14px; padding: 13px 15px; outline: none; font-weight: 600; font-size: 14.5px; transition: all .2s ease;
}
.select {
  appearance: none; -webkit-appearance: none; padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 6.25L8 10.25L12 6.25' stroke='%233A5BFF' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 15px center; background-size: 16px 16px; cursor: pointer;
}
.input:focus, .select:focus, .textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(58,91,255,.14); }
.textarea { min-height: 100px; resize: vertical; line-height: 1.6; }
.help { font-size: 12px; color: var(--muted); margin-top: 6px; line-height: 1.5; font-weight: 600; }

/* 挺拔感现代按钮 */
.btn {
  border: 0; border-radius: 14px; padding: 12px 18px; cursor: pointer; display: inline-flex;
  align-items: center; justify-content: center; gap: 8px; font-weight: 800; font-size: 14px;
  letter-spacing: .3px; transition: all .18s cubic-bezier(0.16, 1, 0.3, 1); white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(58,91,255,.18); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none !important; box-shadow: none !important; }
.btn-primary { background: var(--primary); color: white; box-shadow: 0 6px 18px rgba(58,91,255,.2); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-soft { background: var(--primary-soft); color: var(--primary); }
.btn-soft:hover { background: #dfe8ff; }
.btn-light { background: #f8fafc; color: #1e293b; border: 1px solid var(--line); }
.btn-light:hover { background: #f1f5f9; border-color: #cbd5e1; box-shadow: 0 4px 12px rgba(0,0,0,.04); }
.btn-danger { background: #fee2e2; color: var(--danger); }
.btn-success { background: #dcfce7; color: var(--success); }
.btn-full { width: 100%; }
.btn-sm { padding: 8px 14px; border-radius: 12px; font-size: 13px; }

/* 通知与弹窗 */
.notice { border-radius: 14px; padding: 12px 16px; line-height: 1.6; font-size: 14px; font-weight: 700; margin: 12px 0; border: 1px solid var(--line); }
.notice.success { background: #f0fdf4; color: #166534; border-color: #bbf7d0; }
.notice.error { background: #fef2f2; color: #991b1b; border-color: #fecaca; }
.notice.warn { background: #fffbeb; color: #92400e; border-color: #fde68a; }
.hidden { display: none !important; }

.toast-container { position: fixed; top: 24px; left: 50%; z-index: 9999; display: grid; gap: 10px; transform: translateX(-50%); pointer-events: none; }
.toast { min-width: 240px; max-width: 360px; padding: 14px 20px; border-radius: 16px; border: 1px solid rgba(191,219,254,.9); background: rgba(255,255,255,.98); color: #0f172a; box-shadow: 0 20px 50px rgba(15,23,42,.18); backdrop-filter: blur(12px); animation: toast-in .2s ease; pointer-events: auto; text-align: center; }
.toast.success { border-left: 4px solid #34c77b; color: #10b981; }
.toast.error { border-left: 4px solid #ef4444; color: #ef4444; }
.toast.warn { border-left: 4px solid #f59e0b; color: #f59e0b; }
.toast-title { font-size: 14.5px; font-weight: 800; line-height: 1.4; }

@keyframes toast-in {
  from { opacity: 0; transform: translateY(-12px) scale(.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

body.app-page { background: var(--bg); padding-top: 0; overflow: hidden; }
body.student-modal-open { overflow: hidden; }

/* 航母大框架部署 */
.app-page .app-shell { display: block; height: 100vh; margin: 0; padding: 16px 16px 16px 294px; position: relative; overflow: hidden; }

/* 左侧固定主导 */
.sidebar {
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,255,.96));
  border: 1px solid rgba(220,228,242,.92); padding: 20px 16px 18px;
  position: fixed; top: 16px; left: 16px; width: 262px; height: calc(100vh - 32px);
  display: flex; flex-direction: column; gap: 12px; border-radius: 28px;
  box-shadow: 0 18px 42px rgba(15, 23, 42, .06), inset 0 1px 0 rgba(255,255,255,.9); z-index: 20;
}
.sidebar .brand { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; padding: 10px 10px 16px; border-bottom: 1px solid rgba(220,228,242,.72); }
.sidebar .brand h2 { font-size: 19px; font-weight: 800; margin: 0; color: #0f172a; }
.sidebar .brand p { margin: 3px 0 0; color: var(--muted); font-size: 12.5px; font-weight: 600; }
.brand-mark { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, #3a5bff, #6b4cff); color: #fff; font-size: 18px; font-weight: 900; box-shadow: 0 12px 22px rgba(58,91,255,.26); flex: 0 0 auto; }
.nav { display: grid; gap: 12px; flex: 1; padding: 12px 2px 0; align-content: start; }
.nav button { width: 100%; border: 0; background: transparent; color: #334155; padding: 14px 16px; border-radius: 18px; text-align: left; cursor: pointer; font-weight: 700; font-size: 15px; display: flex; align-items: center; gap: 12px; transition: all .16s ease; }
.nav-icon { width: 20px; height: 20px; color: #475569; flex: 0 0 auto; font-size: 18px; display: grid; place-items: center; }
.nav button.active, .nav button:hover { background: linear-gradient(135deg, rgba(58,91,255,.12), rgba(111,76,255,.14)); color: var(--primary); font-weight: 800; box-shadow: 0 10px 20px rgba(58,91,255,.08); transform: translateY(-1px); }
.nav button.active .nav-icon, .nav button:hover .nav-icon { color: var(--primary); }
.sidebar-footer { margin-top: auto; }
.sidebar-logout { gap: 10px; min-height: 48px; border-radius: 16px; color: #334155; background: rgba(255,255,255,.85); border: 1px solid var(--line); font-weight: 800; }

.app-page .main { padding: 0 16px 0 0; width: 100%; height: calc(100vh - 32px); display: flex; flex-direction: column; overflow: hidden; }

/* 顶栏说明 */
.topbar {
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
  margin-bottom: 16px; padding: 14px 22px; border-radius: 22px;
  background: rgba(255,255,255,.9); border: 1px solid rgba(220,228,242,.92);
  box-shadow: 0 10px 30px rgba(15, 23, 42, .04); flex-shrink: 0;
}

.section { display: none; height: calc(100% - 74px); overflow: hidden; }
.section.active { display: block; }
#section-feedback.section.active { display: flex; flex-direction: column; }

/* 💖 核心工作台：独立三悬浮白玉卡片 */
.feedback-workspace {
  flex: 1; min-height: 0; display: grid;
  /* 左列强行扩容至 340px，中列 280px，右列自适应铺满 */
  grid-template-columns: 340px 280px minmax(0, 1fr);
  gap: 20px; background: transparent; border: 0; box-shadow: none; height: 100%; padding: 0; overflow: hidden;
}

.feedback-course-card, 
.feedback-student-panel, 
.feedback-editor-panel {
  display: flex; flex-direction: column; height: 100%; min-height: 0;
  background: #ffffff; border: 1px solid rgba(220, 228, 242, 0.95);
  border-radius: 26px; box-shadow: 0 12px 36px rgba(15, 23, 42, 0.05); overflow: hidden;
}

.feedback-panel-head {
  min-height: 62px; padding: 0 20px; display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid #f1f5f9; background: rgba(248, 250, 252, 0.7); flex-shrink: 0;
}
.feedback-panel-head .card-title { font-size: 16px; font-weight: 800; color: #0f172a; margin: 0; display: flex; align-items: center; }
.feedback-panel-head .card-title::before { content: ""; width: 4px; height: 16px; display: inline-block; margin-right: 10px; border-radius: 2px; background: var(--primary); vertical-align: -1px; }

.feedback-course-body, 
.feedback-student-scroll, 
.feedback-editor-scroll {
  flex: 1; overflow-y: auto; padding: 20px;
}

/* --- [左列] 教学内容采集优化 --- */
.feedback-course-hint { font-size: 12.5px; color: #2546e5; line-height: 1.5; background: #eef2ff; border-left: 4px solid var(--primary); border-radius: 12px; padding: 10px 14px; margin-bottom: 16px; font-weight: 700; }
.feedback-course-card .form-group { padding: 14px 16px; border: 1px solid #e2e8f0; border-radius: 18px; background: #f8fafc; margin-bottom: 14px; }
.feedback-course-card label { font-size: 13.5px; font-weight: 800; color: #0f172a; margin-bottom: 8px; }

/* ==================================================================== */
/* 💖 终极折叠：课题池与临时造词框（带内部垂直微型滑轮） */
/* ==================================================================== */
.feedback-topic-tags { 
  display: flex; 
  flex-wrap: wrap; 
  gap: 7px; 
  margin-top: 10px; 
  max-height: 118px;          /* 黄金天花板：容纳约 3.5 行药丸 */
  overflow-y: auto;           /* 课题超量时，静默开启内部垂直滚动条 */
  align-content: flex-start;  
  padding: 5px 6px 5px 4px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.65);
  box-shadow: inset 0 2px 6px rgba(15, 23, 42, 0.03);
  border: 1px solid rgba(203, 213, 225, 0.45);
}

.feedback-topic-tag { 
  border: 1px solid #cbd5e1; 
  background: #ffffff; 
  color: #475569; 
  border-radius: 20px; 
  padding: 6px 13px; 
  font-size: 12.5px; 
  font-weight: 700; 
  cursor: pointer; 
  transition: all .15s ease; 
  flex-shrink: 0;
}

.feedback-topic-tag:hover { 
  border-color: var(--primary); 
  color: var(--primary); 
  box-shadow: 0 2px 8px rgba(58,91,255,.1); 
}

.feedback-topic-tag.active { 
  background: var(--primary); 
  color: #ffffff; 
  border-color: var(--primary); 
  font-weight: 800; 
  box-shadow: 0 4px 12px rgba(58,91,255,.25); 
}

/* 五大名师沟通人格汇报风格卡片 */
.feedback-style-options { display: grid; gap: 10px; margin-top: 10px; }
.feedback-style-option {
  display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px;
  border-radius: 16px; border: 1px solid #cbd5e1; background: #ffffff;
  cursor: pointer; transition: all .2s cubic-bezier(0.16, 1, 0.3, 1);
}
.feedback-style-option:hover { border-color: #94a3b8; background: #f8fafc; transform: translateX(2px); }
.feedback-style-option.active {
  border-color: var(--primary); background: #eef2ff;
  border-left: 5px solid var(--primary); box-shadow: 0 6px 20px rgba(58, 91, 255, 0.12);
}

/* --- [中列] 参训学员选择优化 --- */
.feedback-student-tools { padding: 14px 20px; border-bottom: 1px solid #f1f5f9; background: #ffffff; flex-shrink: 0; }
.feedback-filter-row { display: flex; gap: 6px; }
.feedback-filter-btn { flex: 1; height: 32px; border: 0; background: #f1f5f9; color: #475569; border-radius: 10px; font-size: 13px; font-weight: 800; cursor: pointer; transition: all .15s ease; }
.feedback-filter-btn.active { background: #0f172a; color: #ffffff; box-shadow: 0 4px 12px rgba(15,23,42,.15); }
.feedback-student-scroll { padding: 14px 20px; }
.feedback-student-item { display: grid; grid-template-columns: 42px minmax(0, 1fr) 10px; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 16px; border: 1px solid #e2e8f0; background: #ffffff; cursor: pointer; margin-bottom: 10px; transition: all .18s ease; }
.feedback-student-item:hover { border-color: var(--primary); transform: translateX(2px); box-shadow: 0 4px 12px rgba(0,0,0,.03); }
.feedback-student-item.active { background: #eef2ff; border-color: var(--primary); box-shadow: 0 6px 18px rgba(58,91,255,.14); }
.feedback-student-avatar { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: #ffffff; font-size: 15px; font-weight: 900; background: linear-gradient(135deg, #3a5bff, #6b4cff); box-shadow: 0 4px 10px rgba(58,91,255,.2); }
.feedback-student-avatar.green { background: linear-gradient(135deg, #10b981, #059669); }
.feedback-student-avatar.purple { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }
.feedback-student-avatar.orange { background: linear-gradient(135deg, #f59e0b, #d97706); }
.feedback-student-name { margin: 0; font-size: 15.5px; font-weight: 800; color: #0f172a; }
.feedback-student-sub { color: var(--muted); font-size: 12px; margin-top: 4px; font-weight: 600; }
.feedback-student-flag { width: 10px; height: 10px; border-radius: 50%; background: #cbd5e1; }
.feedback-student-flag.done { background: #10b981; box-shadow: 0 0 0 3px rgba(16,185,129,.2); }

/* --- [右列] 深度编辑渲染区优化 --- */
.feedback-editor-header { padding: 20px 24px; border-bottom: 1px solid #f1f5f9; background: #ffffff; flex-shrink: 0; }
.feedback-editor-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; }
.feedback-editor-profile { display: flex; align-items: center; gap: 16px; }
.feedback-editor-avatar { width: 56px; height: 56px; border-radius: 20px; display: grid; place-items: center; color: #ffffff; font-size: 22px; font-weight: 900; background: linear-gradient(135deg, #3a5bff, #6b4cff); box-shadow: 0 8px 20px rgba(58,91,255,.25); }
.feedback-editor-name { margin: 0; font-size: 22px; font-weight: 900; color: #0f172a; }
.feedback-editor-badges { display: flex; gap: 8px; margin-top: 6px; align-items: center; }
.feedback-editor-badge { padding: 4px 10px; border-radius: 8px; font-size: 12px; font-weight: 800; }
.feedback-editor-badge-grade { background: #eef2ff; color: var(--primary); }
.feedback-editor-badge-no { background: #f1f5f9; color: #475569; }
.feedback-student-status { padding: 4px 10px; border-radius: 8px; font-size: 12px; font-weight: 800; }
.feedback-student-status.done { background: #ecfdf5; color: #10b981; }
.feedback-student-status.todo { background: #fffbeb; color: #f59e0b; }

.feedback-editor-scroll { display: grid; gap: 18px; padding: 24px; align-content: start; }
.feedback-profile-feedback { padding: 20px; border-radius: 20px; background: #f8fafc; border: 1px solid #e2e8f0; }
.feedback-profile-feedback-title { font-size: 15px; font-weight: 800; color: #0f172a; margin-bottom: 12px; }
.feedback-profile-feedback-editor { min-height: 140px; background: #ffffff; border-radius: 14px; font-size: 15px; font-weight: 600; padding: 16px; border: 1px solid #cbd5e1; box-shadow: inset 0 2px 4px rgba(0,0,0,.01); }

/* 表现标签与待改进细节卡 */
.feedback-section-card { border: 1px solid #e2e8f0; border-radius: 22px; padding: 24px; background: #ffffff; box-shadow: 0 4px 20px rgba(15,23,42,.02); }
.feedback-section-head { font-size: 16px; font-weight: 800; color: #0f172a; display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.feedback-section-icon { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; font-size: 15px; }
.feedback-section-icon.pos { background: #fef3c7; color: #d97706; }
.feedback-section-icon.problem { background: #fee2e2; color: #ef4444; }
.feedback-section-icon.score { background: #eef2ff; color: var(--primary); }
.feedback-section-icon.note { background: #f3e8ff; color: #9333ea; }

.tag-list { display: flex; flex-wrap: wrap; gap: 10px 8px; }
.tag { display: inline-flex; align-items: center; justify-content: center; border: 1.5px solid #e2e8f0; background: #f8fafc; color: #475569; padding: 8px 16px; border-radius: 999px; min-height: 36px; cursor: pointer; font-size: 13.5px; font-weight: 700; transition: all .16s ease; }
.tag:hover { border-color: var(--primary); color: var(--primary); background: #eef2ff; transform: scale(1.02); }
.tag.active.pos { background: #dcfce7; color: #10b981; border-color: #34c77b; font-weight: 800; box-shadow: 0 4px 12px rgba(16,185,129,.15); }
.tag.active.problem { background: #fee2e2; color: #ef4444; border-color: #f87171; font-weight: 800; box-shadow: 0 4px 12px rgba(239,68,68,.15); }

/* 素养评价矩阵 */
.feedback-score-panels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.feedback-score-panel { padding: 18px; border-radius: 18px; border: 1px solid #e2e8f0; background: #f8fafc; }
.feedback-score-panel-title { font-size: 14.5px; font-weight: 800; color: #0f172a; margin-bottom: 14px; }
.feedback-choice-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.feedback-choice-tag { border: 1px solid #cbd5e1; background: #ffffff; color: #475569; border-radius: 10px; padding: 8px 15px; font-size: 13px; font-weight: 700; cursor: pointer; transition: all .15s ease; }
.feedback-choice-tag:hover { border-color: var(--primary); color: var(--primary); }
.feedback-choice-tag.active { border-color: var(--primary); background: var(--primary); color: #ffffff; box-shadow: 0 4px 14px rgba(58,91,255,.25); font-weight: 800; }

.feedback-note-input { min-height: 100px; background: #f8fafc; border-radius: 16px; padding: 16px; font-size: 14.5px; font-weight: 600; border: 1px solid #e2e8f0; }
.feedback-note-input:focus { background: #ffffff; border-color: var(--primary); }
.feedback-note-tip { margin-top: 12px; padding: 12px 16px; border-radius: 14px; background: #fffbeb; border: 1px solid #fde68a; color: #b45309; font-size: 13px; font-weight: 700; line-height: 1.5; }

/* 其他页面模块保持自适应 */
#section-students { overflow-y: auto; padding-right: 16px; }
.student-toolbar-shell { padding: 24px 32px; border-radius: 26px; margin-bottom: 20px; }
.table-wrap { overflow: auto; border: 1px solid #e2e8f0; border-radius: 24px; background: #ffffff; box-shadow: 0 12px 36px rgba(15,23,42,.03); padding: 8px 24px; }
table { width: 100%; border-collapse: collapse; min-width: 720px; }
th, td { padding: 16px 12px; border-bottom: 1px solid #f1f5f9; text-align: left; font-size: 14.5px; }
th { background: #ffffff; color: #0f172a; font-weight: 800; border-bottom: 2px solid #e2e8f0; }

#section-history { overflow-y: auto; padding-right: 16px; }
.history-shell { padding: 32px; border-radius: 28px; }
.history-date-chip { font-size: 14px; padding: 10px 20px; border-radius: 14px; font-weight: 800; }
.history-feedback-card { border-radius: 24px; background: #ffffff; border: 1px solid #e2e8f0; padding: 28px; box-shadow: 0 4px 20px rgba(0,0,0,.02); }
.history-feedback-name { font-size: 22px; font-weight: 900; color: #0f172a; }

#section-config { overflow-y: auto; padding-right: 16px; }
.template-config-shell { background: #ffffff; border-radius: 28px; border: 1px solid #e2e8f0; box-shadow: 0 10px 30px rgba(0,0,0,.02); overflow: hidden; }
.template-config-shell #configEditor { padding: 32px; }
.config-tabs { padding: 0 32px; border-bottom: 1px solid #e2e8f0; background: #f8fafc; }
.config-tab { padding: 20px 24px; font-size: 15.5px; font-weight: 800; color: #64748b; border: 0; background: transparent; cursor: pointer; position: relative; }
.config-tab.active { color: var(--primary); }
.config-tab.active::after { content: ""; position: absolute; bottom: 0; left: 24px; right: 24px; height: 4px; background: var(--primary); border-radius: 2px; }

/* 弹窗 */
.student-modal { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 24px; }
.student-modal-backdrop { position: absolute; inset: 0; background: rgba(15, 23, 42, .45); backdrop-filter: blur(8px); }
.student-modal-dialog { position: relative; width: min(100%, 600px); border-radius: 32px; background: #ffffff; border: 1px solid #e2e8f0; box-shadow: 0 26px 70px rgba(15,23,42,.22); overflow: hidden; }
.student-modal-header { padding: 32px 32px 0; display: flex; justify-content: space-between; align-items: flex-start; }
.student-modal-title { font-size: 22px; font-weight: 900; color: #0f172a; margin-bottom: 6px; }
.student-modal-body { padding: 24px 32px; }
.student-modal-footer { padding: 0 32px 32px; display: flex; justify-content: flex-end; gap: 12px; }

@media (max-width: 1360px) {
  .feedback-workspace { grid-template-columns: 320px 260px 1fr; }
  .feedback-score-panels { grid-template-columns: 1fr; }
}