/* ============================================================
   英语打卡学习模块 english.css  (v=20260915a)
   移动端优先 · 粉色渐变顶部栏 · 白色大圆角卡片 · 底部 Tab
   仅作用于 #eng-app 浮层，不影响其他模块
   ============================================================ */

#eng-app, #eng-app * { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

#eng-app {
  position: fixed; inset: 0; z-index: 9999;
  display: none;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  background: #f6f7fb;
  color: #1f2430;
}
#eng-app.eng-open { display: block; }

/* 桌面端：居中手机框 */
@media (min-width: 560px) {
  #eng-app { background: rgba(20, 20, 35, .55); backdrop-filter: blur(2px); }
  #eng-phone {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 430px; height: min(92vh, 900px);
    border-radius: 36px; overflow: hidden;
    box-shadow: 0 30px 80px rgba(0,0,0,.45);
    background: #f6f7fb;
  }
}

#eng-phone { position: relative; width: 100%; height: 100%; display: flex; flex-direction: column; background: #f6f7fb; }

/* ---------- 顶部粉色渐变栏 ---------- */
.eng-topbar {
  flex: 0 0 auto;
  background: linear-gradient(135deg, #ff8fb3 0%, #ff6fa5 45%, #ff5c99 100%);
  color: #fff;
  padding: calc(12px + env(safe-area-inset-top, 0px)) 16px 18px;
  position: relative;
  box-shadow: 0 6px 18px rgba(255, 92, 153, .28);
  z-index: 5;
}
.eng-topbar-row { display: flex; align-items: center; gap: 10px; min-height: 44px; }
.eng-back {
  width: 44px; height: 44px; border: none; background: rgba(255,255,255,.22);
  color: #fff; border-radius: 14px; font-size: 20px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; flex: 0 0 auto;
}
.eng-back:active { transform: scale(.92); }
.eng-topbar-title { font-size: 19px; font-weight: 700; flex: 1; text-align: center; letter-spacing: .5px; }
.eng-topbar-title small { display: block; font-size: 12px; font-weight: 400; opacity: .9; margin-top: 2px; }
.eng-topbar-right { width: 44px; flex: 0 0 auto; display: flex; align-items: center; justify-content: flex-end; }
.eng-close-x {
  width: 36px; height: 36px; border: none; background: rgba(255,255,255,.22); color: #fff;
  border-radius: 12px; font-size: 18px; cursor: pointer;
}

/* ---------- 顶部信息卡（首页头像区，叠加渐变） ---------- */
.eng-hero {
  background: linear-gradient(135deg, #ff9ebb 0%, #ff6fa5 55%, #ff5c99 100%);
  color: #fff; padding: 8px 16px 26px; position: relative;
}
.eng-hero-main { display: flex; align-items: center; gap: 12px; }
.eng-avatar {
  width: 56px; height: 56px; border-radius: 50%; background: #fff; color: #ff5c99;
  display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 800;
  box-shadow: 0 4px 12px rgba(0,0,0,.12); flex: 0 0 auto;
}
.eng-hero-info { flex: 1; min-width: 0; }
.eng-hero-name { font-size: 19px; font-weight: 800; }
.eng-hero-sub { font-size: 13px; opacity: .95; margin-top: 3px; }
.eng-hero-stats { display: flex; gap: 10px; margin-top: 14px; }
.eng-hero-stat {
  flex: 1; background: rgba(255,255,255,.2); border-radius: 16px; padding: 10px 8px; text-align: center;
  backdrop-filter: blur(4px);
}
.eng-hero-stat b { display: block; font-size: 20px; font-weight: 800; }
.eng-hero-stat span { font-size: 12px; opacity: .95; }

/* ---------- 主体滚动区 ---------- */
.eng-body { flex: 1 1 auto; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 14px 14px 96px; }
.eng-body.no-tab { padding-bottom: 24px; }

/* 页面切换动画 */
.eng-page { animation: engSlideIn .32s cubic-bezier(.22,.61,.36,1); }
@keyframes engSlideIn { from { opacity: 0; transform: translateX(26px); } to { opacity: 1; transform: translateX(0); } }
.eng-fade { animation: engFade .28s ease; }
@keyframes engFade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- 卡片 ---------- */
.eng-card {
  background: #fff; border-radius: 20px; padding: 16px;
  box-shadow: 0 6px 20px rgba(60, 60, 110, .07);
  margin-bottom: 14px;
}
.eng-card-title { font-size: 16px; font-weight: 700; margin: 0 0 12px; display: flex; align-items: center; gap: 8px; }
.eng-card-title .eng-more { margin-left: auto; font-size: 13px; font-weight: 500; color: #ff5c99; cursor: pointer; }

/* 学科卡片 */
.eng-subject-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.eng-subject-card {
  border: none; border-radius: 20px; padding: 18px 14px; text-align: left; cursor: pointer;
  color: #fff; font-size: 15px; font-weight: 700; min-height: 96px; position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between;
  box-shadow: 0 8px 18px rgba(0,0,0,.1);
}
.eng-subject-card:active { transform: scale(.97); }
.eng-subject-card .eng-sub-ico { font-size: 32px; }
.eng-subject-card .eng-sub-desc { font-size: 12px; font-weight: 400; opacity: .92; margin-top: 4px; }
.eng-subject-card.eng-english { background: linear-gradient(135deg, #ff8fb3, #ff5c99); }
.eng-subject-card.eng-locked { background: linear-gradient(135deg, #c3c9d6, #a7aec0); cursor: not-allowed; }
.eng-subject-card .eng-sub-badge { position: absolute; top: 10px; right: 10px; background: rgba(255,255,255,.25); border-radius: 999px; padding: 2px 8px; font-size: 11px; }

/* 学习类型入口卡 */
.eng-type-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.eng-type-card {
  border: 2px solid #f0eef3; background: #fff; border-radius: 18px; padding: 14px; cursor: pointer;
  text-align: center; min-height: 110px; transition: .15s;
}
.eng-type-card:active { transform: scale(.96); }
.eng-type-card .eng-type-ico { font-size: 34px; }
.eng-type-card b { display: block; font-size: 15px; margin: 6px 0 3px; }
.eng-type-card span { font-size: 12px; color: #8a8f9e; }

/* 任务卡片 */
.eng-task-card {
  background: #fff; border-radius: 18px; padding: 15px; margin-bottom: 12px; cursor: pointer;
  box-shadow: 0 4px 14px rgba(60,60,110,.06); border-left: 5px solid #ff8fb3;
}
.eng-task-card:active { transform: scale(.99); }
.eng-task-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.eng-task-name { font-size: 16px; font-weight: 700; flex: 1; line-height: 1.35; }
.eng-tag { display: inline-block; font-size: 11px; padding: 2px 9px; border-radius: 999px; font-weight: 600; white-space: nowrap; }
.eng-tag-pink { background: #ffe3ee; color: #ff5c99; }
.eng-tag-blue { background: #e3efff; color: #2f7bff; }
.eng-tag-gray { background: #eceef3; color: #8a8f9e; }
.eng-tag-orange { background: #fff0dd; color: #f59519; }
.eng-tag-green { background: #defaec; color: #15b371; }
.eng-tag-red { background: #ffe1e1; color: #f04848; }
.eng-tag-purple { background: #efe6ff; color: #8b5cf6; }
.eng-task-meta { font-size: 13px; color: #8a8f9e; display: flex; flex-wrap: wrap; gap: 6px 14px; }
.eng-progress { height: 8px; background: #f1eef5; border-radius: 999px; margin-top: 10px; overflow: hidden; }
.eng-progress i { display: block; height: 100%; background: linear-gradient(90deg, #ff8fb3, #ff5c99); border-radius: 999px; transition: width .4s; }
.eng-progress-txt { font-size: 12px; color: #a7aec0; margin-top: 5px; display: flex; justify-content: space-between; }

/* 数据条 */
.eng-data-row { display: flex; gap: 12px; }
.eng-data-box { flex: 1; background: linear-gradient(135deg, #fff4f8, #ffe9f2); border-radius: 16px; padding: 14px; text-align: center; }
.eng-data-box b { font-size: 26px; color: #ff5c99; display: block; }
.eng-data-box span { font-size: 12px; color: #8a8f9e; }

/* 消息/通知 */
.eng-msg { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid #f4f2f7; align-items: flex-start; }
.eng-msg:last-child { border-bottom: none; }
.eng-msg-ico { width: 36px; height: 36px; border-radius: 12px; background: #ffe3ee; display: flex; align-items: center; justify-content: center; font-size: 18px; flex: 0 0 auto; }
.eng-msg-txt { flex: 1; font-size: 13px; line-height: 1.5; }
.eng-msg-txt b { font-size: 14px; }
.eng-msg-time { font-size: 11px; color: #b3b8c6; }

/* ---------- 底部 Tab ---------- */
.eng-tabbar {
  flex: 0 0 auto; display: flex; background: #fff; border-top: 1px solid #f0edf3;
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -4px 16px rgba(60,60,110,.06);
}
.eng-tab {
  flex: 1; border: none; background: none; cursor: pointer; color: #a7aec0;
  display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 0; min-height: 50px;
  font-size: 11px;
}
.eng-tab .eng-tab-ico { font-size: 22px; line-height: 1; }
.eng-tab.active { color: #ff5c99; font-weight: 700; }
.eng-tab.active .eng-tab-ico { transform: translateY(-1px); }

/* ---------- 按钮 ---------- */
.eng-btn {
  border: none; border-radius: 999px; padding: 13px 22px; font-size: 16px; font-weight: 700;
  cursor: pointer; min-height: 48px; transition: .15s;
}
.eng-btn:active { transform: scale(.96); }
.eng-btn-primary { background: linear-gradient(135deg, #ff8fb3, #ff5c99); color: #fff; box-shadow: 0 8px 18px rgba(255,92,153,.35); width: 100%; }
.eng-btn-primary:disabled { background: #d9dce4; box-shadow: none; color: #fff; cursor: not-allowed; }
.eng-btn-ghost { background: #f3f1f6; color: #555; }
.eng-btn-green { background: linear-gradient(135deg, #34d399, #10b981); color: #fff; }
.eng-btn-red { background: linear-gradient(135deg, #ff8a8a, #f05555); color: #fff; }
.eng-btn-sm { padding: 8px 16px; min-height: 40px; font-size: 14px; }
.eng-fixed-bottom {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom,0px));
  background: linear-gradient(180deg, rgba(246,247,251,0), #f6f7fb 30%);
  display: flex; gap: 10px; z-index: 6;
}
.eng-fixed-bottom .eng-btn { flex: 1; }

/* ---------- 学习类型选择 ---------- */
.eng-type-select {
  display: flex; align-items: center; gap: 12px; border: 2px solid #f0eef3; border-radius: 18px;
  padding: 14px; margin-bottom: 12px; cursor: pointer; background: #fff; transition: .15s;
}
.eng-type-select.eng-selected { border-color: #ff5c99; background: #fff5f9; box-shadow: 0 6px 16px rgba(255,92,153,.15); }
.eng-type-select .eng-ts-ico { font-size: 34px; flex: 0 0 auto; }
.eng-type-select .eng-ts-txt { flex: 1; }
.eng-type-select .eng-ts-txt b { font-size: 16px; }
.eng-type-select .eng-ts-txt span { display: block; font-size: 12px; color: #8a8f9e; margin-top: 3px; }
.eng-ts-check { width: 26px; height: 26px; border-radius: 50%; border: 2px solid #d9dce4; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 15px; }
.eng-type-select.eng-selected .eng-ts-check { background: #ff5c99; border-color: #ff5c99; }

/* ---------- 筛选 chips ---------- */
.eng-chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; -webkit-overflow-scrolling: touch; }
.eng-chip {
  flex: 0 0 auto; border: none; background: #fff; color: #666; border-radius: 999px;
  padding: 8px 16px; font-size: 14px; cursor: pointer; min-height: 38px; box-shadow: 0 2px 8px rgba(60,60,110,.05);
}
.eng-chip.active { background: linear-gradient(135deg, #ff8fb3, #ff5c99); color: #fff; font-weight: 700; }

/* ---------- 答题页 ---------- */
.eng-quiz-head { text-align: center; margin-bottom: 12px; }
.eng-quiz-type { display: inline-block; background: #ffe3ee; color: #ff5c99; font-size: 13px; font-weight: 700; padding: 5px 14px; border-radius: 999px; }
.eng-quiz-stem { font-size: 18px; font-weight: 700; line-height: 1.6; margin: 14px 0; }
.eng-quiz-audio { display: flex; align-items: center; gap: 10px; background: #fff4f8; border-radius: 14px; padding: 10px 14px; margin: 10px 0; }
.eng-play-btn { width: 44px; height: 44px; border-radius: 50%; border: none; background: #ff5c99; color: #fff; font-size: 18px; cursor: pointer; flex: 0 0 auto; }
.eng-audio-bar { flex: 1; height: 6px; background: #ffd6e6; border-radius: 999px; overflow: hidden; }
.eng-audio-bar i { display: block; height: 100%; background: #ff5c99; width: 0; }

.eng-opt {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  border: 2px solid #f0eef3; background: #fff; border-radius: 16px; padding: 15px; margin-bottom: 12px;
  font-size: 16px; cursor: pointer; min-height: 52px; transition: .12s;
}
.eng-opt:active { transform: scale(.99); }
.eng-opt .eng-opt-key {
  width: 32px; height: 32px; border-radius: 10px; background: #f3f1f6; color: #8a8f9e;
  display: flex; align-items: center; justify-content: center; font-weight: 800; flex: 0 0 auto;
}
.eng-opt.eng-opt-active { border-color: #ff5c99; background: #fff5f9; }
.eng-opt.eng-opt-active .eng-opt-key { background: #ff5c99; color: #fff; }
.eng-opt.eng-opt-right { border-color: #15b371; background: #f0fdf7; }
.eng-opt.eng-opt-right .eng-opt-key { background: #15b371; color: #fff; }
.eng-opt.eng-opt-wrong { border-color: #f04848; background: #fff3f3; }
.eng-opt.eng-opt-wrong .eng-opt-key { background: #f04848; color: #fff; }

.eng-input, .eng-textarea {
  width: 100%; border: 2px solid #f0eef3; border-radius: 14px; padding: 14px; font-size: 16px;
  font-family: inherit; outline: none; background: #fff; min-height: 52px;
}
.eng-textarea { min-height: 110px; resize: vertical; line-height: 1.6; }
.eng-input:focus, .eng-textarea:focus { border-color: #ff8fb3; }

/* 录音 */
.eng-record-wrap { text-align: center; padding: 10px 0; }
.eng-record-btn {
  width: 96px; height: 96px; border-radius: 50%; border: none; cursor: pointer;
  background: linear-gradient(135deg, #ff8fb3, #ff5c99); color: #fff; font-size: 40px;
  box-shadow: 0 10px 24px rgba(255,92,153,.4); position: relative;
}
.eng-record-btn.recording { background: linear-gradient(135deg, #ff6b6b, #f04848); animation: engBreath 1.2s ease-in-out infinite; }
@keyframes engBreath { 0%,100% { box-shadow: 0 0 0 0 rgba(240,72,72,.5);} 50% { box-shadow: 0 0 0 22px rgba(240,72,72,0);} }
.eng-record-tip { margin-top: 12px; font-size: 14px; color: #8a8f9e; }
.eng-record-timer { font-size: 22px; font-weight: 800; color: #f04848; margin-top: 6px; }
.eng-audio-review { margin-top: 12px; display: flex; align-items: center; gap: 10px; justify-content: center; }

/* 答题顶部进度 + 积分 */
.eng-quiz-top { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.eng-quiz-count { font-size: 15px; font-weight: 700; color: #ff5c99; }
.eng-points-pill {
  margin-left: auto; background: #fff4d6; color: #e8a200; font-size: 13px; font-weight: 800;
  padding: 5px 12px; border-radius: 999px; display: flex; align-items: center; gap: 4px;
}
/* 逐题 +积分 特效 */
.eng-point-fly {
  position: absolute; right: 20px; top: 70px; font-size: 22px; font-weight: 900; color: #ffb300;
  pointer-events: none; z-index: 20; animation: engPointFly 1s ease-out forwards;
}
@keyframes engPointFly {
  0% { opacity: 0; transform: translateY(10px) scale(.6); }
  25% { opacity: 1; transform: translateY(-6px) scale(1.2); }
  100% { opacity: 0; transform: translateY(-46px) scale(1); }
}

/* ---------- 错题本 ---------- */
.eng-wrong-card { background: #fff; border-radius: 18px; padding: 15px; margin-bottom: 12px; box-shadow: 0 4px 14px rgba(60,60,110,.06); }
.eng-wrong-q { font-size: 16px; font-weight: 700; line-height: 1.5; }
.eng-wrong-line { font-size: 14px; margin-top: 8px; line-height: 1.5; }
.eng-wrong-line .eng-wl-label { color: #8a8f9e; }
.eng-wrong-line.eng-my { color: #f04848; }
.eng-wrong-line.eng-right { color: #15b371; }
.eng-wrong-analysis { background: #f7f8fc; border-radius: 12px; padding: 10px 12px; font-size: 13px; color: #555; margin-top: 10px; line-height: 1.6; }
.eng-wrong-actions { display: flex; gap: 10px; margin-top: 12px; }
.eng-wrong-actions .eng-btn { flex: 1; }
.eng-mastered { opacity: .6; }
.eng-mastered .eng-wrong-q::after { content: " ✓已掌握"; color: #15b371; font-size: 12px; }

/* 空状态 */
.eng-empty { text-align: center; padding: 50px 20px; color: #a7aec0; }
.eng-empty .eng-empty-ico { font-size: 60px; display: block; margin-bottom: 14px; }
.eng-empty b { font-size: 16px; color: #666; display: block; margin-bottom: 6px; }
.eng-empty span { font-size: 13px; }

/* ---------- 弹窗 / toast ---------- */
.eng-modal-mask {
  position: absolute; inset: 0; background: rgba(20,20,35,.5); z-index: 50;
  display: flex; align-items: center; justify-content: center; padding: 24px; animation: engFade .2s;
}
.eng-modal { background: #fff; border-radius: 24px; padding: 24px 20px; width: 100%; max-width: 340px; text-align: center; animation: engPop .28s cubic-bezier(.22,1.2,.4,1); }
@keyframes engPop { from { transform: scale(.85); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.eng-modal-ico { font-size: 52px; }
.eng-modal h3 { font-size: 19px; margin: 12px 0 8px; }
.eng-modal p { font-size: 14px; color: #8a8f9e; line-height: 1.6; margin: 0 0 18px; }
.eng-modal-btns { display: flex; gap: 10px; }
.eng-modal-btns .eng-btn { flex: 1; }

.eng-toast {
  position: absolute; top: 70px; left: 50%; transform: translateX(-50%); z-index: 80;
  padding: 12px 20px; border-radius: 14px; font-size: 14px; font-weight: 600; color: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,.2); max-width: 86%; text-align: center;
  animation: engToastIn .3s;
}
.eng-toast-success { background: #15b371; }
.eng-toast-error { background: #f05555; }
.eng-toast-info { background: #4b5563; }
@keyframes engToastIn { from { opacity: 0; transform: translate(-50%, -10px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* 下拉刷新 */
.eng-pull { text-align: center; font-size: 13px; color: #b3b8c6; padding: 6px 0; height: 0; overflow: hidden; transition: height .2s; }
.eng-pull.show { height: 34px; }

/* ---------- 教师端表单/列表 ---------- */
.eng-form-group { margin-bottom: 14px; }
.eng-form-group label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.eng-form-group label .eng-req { color: #f04848; }
.eng-select {
  width: 100%; border: 2px solid #f0eef3; border-radius: 14px; padding: 12px 14px; font-size: 15px;
  background: #fff; outline: none; min-height: 48px; font-family: inherit;
}
.eng-seg { display: flex; gap: 8px; flex-wrap: wrap; }
.eng-seg-item {
  border: 2px solid #f0eef3; background: #fff; border-radius: 12px; padding: 8px 14px; font-size: 14px;
  cursor: pointer; min-height: 40px;
}
.eng-seg-item.active { border-color: #ff5c99; background: #fff5f9; color: #ff5c99; font-weight: 700; }

.eng-list-row {
  background: #fff; border-radius: 14px; padding: 13px 14px; margin-bottom: 10px;
  box-shadow: 0 3px 10px rgba(60,60,110,.05); display: flex; align-items: center; gap: 10px;
}
.eng-list-row .eng-lr-main { flex: 1; min-width: 0; }
.eng-list-row .eng-lr-title { font-size: 15px; font-weight: 700; line-height: 1.4; }
.eng-list-row .eng-lr-sub { font-size: 12px; color: #8a8f9e; margin-top: 4px; display: flex; gap: 8px; flex-wrap: wrap; }
.eng-icon-btn {
  border: none; background: #f3f1f6; width: 40px; height: 40px; border-radius: 12px; font-size: 16px;
  cursor: pointer; flex: 0 0 auto;
}
.eng-icon-btn:active { transform: scale(.9); }
/* 任务行操作：文字按钮（与其他模块胶囊按钮一致） */
.eng-row-actions { display: inline-flex; align-items: center; gap: 8px; flex: 0 0 auto; flex-wrap: wrap; justify-content: flex-end; }
.eng-act-btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 32px; padding: 0 14px; border-radius: 999px; font-size: 13px; font-weight: 600;
  background: #f1f5f9; color: #334155; border: 1px solid #e2e8f0; cursor: pointer; white-space: nowrap;
}
.eng-act-btn:hover { background: #e8eef7; border-color: #cbd5e1; }
.eng-act-btn-warn { background: #fff7ed; color: #c2410c; border-color: #fed7aa; }
.eng-act-btn-warn:hover { background: #ffedd5; }
.eng-act-btn-danger { background: #fef2f2; color: #dc2626; border-color: #fecaca; }
.eng-act-btn-danger:hover { background: #fee2e2; }

/* ===== 批改读音题：顶部总分 + 座位式序号格 + 详情 ===== */
.eng-grade-top { display:flex; align-items:center; gap:16px; background:linear-gradient(135deg,#fff4f8,#f2f6ff); border:1px solid #f0e7f0; border-radius:16px; padding:14px 16px; margin-bottom:12px; }
.eng-grade-score { font-size:34px; font-weight:800; color:#0052d9; line-height:1; min-width:76px; text-align:center; }
.eng-grade-score small { font-size:14px; font-weight:600; }
.eng-grade-summary { flex:1; min-width:0; display:flex; flex-direction:column; gap:5px; font-size:13px; color:#4a4f5e; }
.eng-grade-line { display:flex; align-items:center; gap:6px; flex-wrap:wrap; }
.eng-gdot { width:9px; height:9px; border-radius:50%; display:inline-block; }
.eng-gdot-auto { background:#0052d9; }
.eng-gdot-ok { background:#15b371; }
.eng-gdot-no { background:#f04848; }
.eng-gdot-wait { background:#c3c8d4; }
.eng-grade-seats-title { font-size:13px; font-weight:700; color:#4a4f5e; margin:4px 2px 8px; }
.eng-grade-seats { display:grid; grid-template-columns:repeat(auto-fill,minmax(86px,1fr)); gap:10px; margin-bottom:14px; }
.eng-seats-empty { grid-column:1/-1; font-size:13px; padding:8px 0; }
.eng-seat { border:1.5px solid #e5e2ec; background:#fff; border-radius:12px; padding:8px 6px; cursor:pointer; display:flex; flex-direction:column; align-items:center; gap:4px; transition:transform .12s, box-shadow .12s, border-color .12s; min-width:0; }
.eng-seat:active { transform:scale(.94); }
.eng-seat-no { font-size:12px; font-weight:800; color:#fff; background:#0052d9; width:22px; height:22px; border-radius:50%; display:flex; align-items:center; justify-content:center; flex:0 0 auto; }
.eng-seat-word { font-size:12px; color:#4a4f5e; line-height:1.25; width:100%; text-align:center; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.eng-seat.seat-ok { border-color:#15b371; background:#eafaf2; }
.eng-seat.seat-ok .eng-seat-no { background:#15b371; }
.eng-seat.seat-no { border-color:#f04848; background:#fff0f0; }
.eng-seat.seat-no .eng-seat-no { background:#f04848; }
.eng-seat.seat-rec { border-color:#e6a700; background:#fffaf0; }
.eng-seat.seat-rec .eng-seat-no { background:#e6a700; }
.eng-seat.seat-empty { border-style:dashed; opacity:.75; }
.eng-seat.seat-on { border-color:#0052d9; box-shadow:0 0 0 3px rgba(0,82,217,.15); border-width:2px; }
.eng-grade-detail { border:1px solid #eeeaf4; border-radius:14px; padding:14px; background:#fcfcfe; }
.eng-grade-d-head { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-bottom:8px; }
.eng-grade-judge { font-size:14px; font-weight:700; }
.eng-grade-stem { font-size:17px; font-weight:700; line-height:1.55; margin-bottom:10px; }
.eng-grade-audio-row { display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin-top:10px; }
.eng-grade-mark { display:flex; align-items:center; gap:10px; margin-top:14px; padding-top:12px; border-top:1px dashed #e5e2ec; flex-wrap:wrap; }

.eng-seg-tabs { display: flex; gap: 8px; margin-bottom: 14px; overflow-x: auto; }
.eng-seg-tab {
  flex: 0 0 auto; border: none; background: #fff; border-radius: 12px; padding: 10px 16px; font-size: 14px;
  cursor: pointer; color: #666; min-height: 42px; box-shadow: 0 2px 8px rgba(60,60,110,.05);
}
.eng-seg-tab.active { background: linear-gradient(135deg, #ff8fb3, #ff5c99); color: #fff; font-weight: 700; }

.eng-check-item {
  display: flex; gap: 10px; align-items: flex-start; padding: 12px; border: 2px solid #f0eef3;
  border-radius: 14px; margin-bottom: 10px; cursor: pointer; background: #fff;
}
.eng-check-item.eng-checked { border-color: #ff5c99; background: #fff5f9; }
.eng-check-box {
  width: 24px; height: 24px; border-radius: 8px; border: 2px solid #d9dce4; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center; color: #fff; font-size: 14px; margin-top: 2px;
}
.eng-check-item.eng-checked .eng-check-box { background: #ff5c99; border-color: #ff5c99; }

.eng-big-score { font-size: 40px; font-weight: 900; color: #ff5c99; text-align: center; }
.eng-review-q { border-top: 1px solid #f4f2f7; padding: 14px 0; }
.eng-review-q:first-child { border-top: none; }
.eng-badge-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 5px; }

.eng-flex-between { display: flex; align-items: center; gap: 10px; }
.eng-mt8 { margin-top: 8px; } .eng-mt12 { margin-top: 12px; } .eng-mt16 { margin-top: 16px; }
.eng-muted { color: #8a8f9e; font-size: 13px; }
.eng-center { text-align: center; }
.eng-scroll-x { overflow-x: auto; }
/* 答题矩阵：横向滚动时固定第一列（学生列） */
.eng-table .eng-sticky-col { position: sticky; left: 0; z-index: 2; background: #fff; min-width: 72px; box-shadow: inset -1px 0 0 #eef1f6; }
.eng-table th.eng-sticky-col { background: #fff5f9; z-index: 3; }
#eng-phone.eng-desktop .eng-table th.eng-sticky-col { background: #f8fafc; }
.eng-table .eng-sticky-col b { white-space: nowrap; }
table.eng-table { width: 100%; border-collapse: collapse; font-size: 13px; background: #fff; border-radius: 14px; overflow: hidden; }
.eng-table th, .eng-table td { padding: 10px 8px; text-align: left; border-bottom: 1px solid #f4f2f7; }
.eng-table th { background: #fff5f9; color: #ff5c99; font-weight: 700; white-space: nowrap; }
.eng-table tr:last-child td { border-bottom: none; }

/* ============================================================
   PC 桌面端样式（管理端/教师端，作用于 #eng-phone.eng-desktop）
   手机壳样式仅用于学生端；教师/管理员进入时切换为桌面全屏面板。
   ============================================================ */
#eng-app:has(#eng-phone.eng-desktop) { background: rgba(15, 23, 42, .55); backdrop-filter: blur(3px); }
#eng-phone.eng-desktop {
  position: fixed !important;
  top: 28px !important; left: 50% !important; right: auto !important; bottom: auto !important;
  transform: translateX(-50%) !important;
  width: calc(100% - 56px) !important; max-width: 1680px !important;
  height: calc(100vh - 56px) !important; max-height: calc(100vh - 56px) !important;
  margin: 0 !important; border-radius: 16px !important;
  box-shadow: 0 24px 70px rgba(15, 23, 42, .35);
  overflow: hidden; background: #f5f7fb;
  display: flex; flex-direction: column;
}
/* 桌面端：顶部品牌栏改为浅色桌面标题栏 */
#eng-phone.eng-desktop .eng-topbar {
  background: #fff !important; color: #1e293b !important;
  border-bottom: 1px solid #e2e8f0; box-shadow: none !important;
}
#eng-phone.eng-desktop .eng-topbar-title { color: #1e293b; text-align: left; font-size: 19px; }
#eng-phone.eng-desktop .eng-topbar-title small { color: #64748b; }
#eng-phone.eng-desktop .eng-back,
#eng-phone.eng-desktop .eng-close-x,
#eng-phone.eng-desktop .eng-topbar .eng-back {
  background: #f1f5f9 !important; color: #475569 !important;
}
#eng-phone.eng-desktop .eng-topbar-right .eng-close-x:hover { background: #e2e8f0 !important; }

/* 桌面端：底部 tab 改为内容区顶部横向标签栏（由 JS 注入到 body 顶部） */
#eng-phone.eng-desktop .eng-body { padding: 0; display: flex; flex-direction: column; }
#eng-phone.eng-desktop .eng-page { padding: 22px 28px 40px; max-width: none; margin: 0 auto; width: 100%; animation: none; }
#eng-phone.eng-desktop .eng-teachtabs {
  display: flex; gap: 4px; padding: 12px 28px 0; background: #fff;
  border-bottom: 1px solid #e2e8f0; position: sticky; top: 0; z-index: 5;
}
#eng-phone.eng-desktop .eng-teachtab {
  border: none; background: transparent; padding: 12px 18px; font-size: 15px; font-weight: 600;
  color: #64748b; cursor: pointer; border-bottom: 3px solid transparent; font-family: inherit;
  display: flex; align-items: center; gap: 7px; position: relative;
}
#eng-phone.eng-desktop .eng-teachtab:hover { color: #0052d9; }
#eng-phone.eng-desktop .eng-teachtab.active { color: #0052d9; border-bottom-color: #0052d9; }
#eng-phone.eng-desktop .eng-teachtab .eng-tab-badge {
  background: #f04848; color: #fff; font-size: 11px; border-radius: 999px; padding: 0 6px; min-width: 18px; line-height: 18px; text-align: center;
}
#eng-phone.eng-desktop #eng-tabbar-slot { display: none; }

/* 桌面端卡片、列表、表单 */
#eng-phone.eng-desktop .eng-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; box-shadow: 0 1px 3px rgba(15,23,42,.04); }
#eng-phone.eng-desktop .eng-seg-tab { background: #f1f5f9; color: #475569; border-radius: 8px; font-size: 14px; padding: 9px 16px; }
#eng-phone.eng-desktop .eng-seg-tab.active { background: #0052d9; color: #fff; }
#eng-phone.eng-desktop .eng-list-row { background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; padding: 14px 18px; }
#eng-phone.eng-desktop .eng-list-row .eng-lr-title { font-size: 15px; }
/* 列表行内的批改/查看按钮：覆盖移动端主按钮的 100% 宽，恢复为随内容的小按钮，避免整行错乱 */
.eng-list-row > .eng-btn { width: auto; flex: 0 0 auto; align-self: center; white-space: nowrap; }
#eng-phone.eng-desktop .eng-chip { background: #f1f5f9; color: #475569; border-radius: 8px; font-size: 13px; }
#eng-phone.eng-desktop .eng-chip.active { background: #e8f1ff; color: #0052d9; border-color: #b3d1ff; }
#eng-phone.eng-desktop .eng-input, #eng-phone.eng-desktop .eng-select, #eng-phone.eng-desktop .eng-textarea {
  border: 1px solid #cbd5e1; border-radius: 8px; font-size: 14px; padding: 10px 12px; background: #fff; color: #1e293b;
}
#eng-phone.eng-desktop .eng-input:focus, #eng-phone.eng-desktop .eng-select:focus, #eng-phone.eng-desktop .eng-textarea:focus { border-color: #0052d9; box-shadow: 0 0 0 3px rgba(0,82,217,.12); outline: none; }
#eng-phone.eng-desktop .eng-btn { border-radius: 8px; font-size: 14px; padding: 10px 18px; }
#eng-phone.eng-desktop .eng-btn-primary { background: #0052d9; }
#eng-phone.eng-desktop .eng-btn-ghost { background: #fff; border: 1px solid #cbd5e1; color: #475569; }
#eng-phone.eng-desktop .eng-icon-btn { background: #f1f5f9; border-radius: 8px; }
#eng-phone.eng-desktop .eng-seg-item { border-radius: 8px; padding: 8px 14px; font-size: 14px; }
#eng-phone.eng-desktop .eng-seg-item.active { background: #e8f1ff; color: #0052d9; border-color: #b3d1ff; }
#eng-phone.eng-desktop .eng-tag { border-radius: 6px; font-size: 12px; }
#eng-phone.eng-desktop table { width: 100%; border-collapse: collapse; font-size: 14px; }
#eng-phone.eng-desktop .eng-table th { background: #f8fafc; color: #475569; text-align: left; padding: 11px 12px; border-bottom: 1px solid #e2e8f0; font-weight: 600; }
#eng-phone.eng-desktop .eng-table td { padding: 11px 12px; border-bottom: 1px solid #f1f5f9; color: #1e293b; }

/* 桌面端弹窗（组卷/录题/批改）放大 */
#eng-phone.eng-desktop ~ .eng-modal-mask,
.eng-modal-mask { align-items: center; justify-content: center; }

/* ---------- PC 桌面端弹窗（录题/组卷/批改/任务表单） ---------- */
body:has(#eng-phone.eng-desktop) .eng-modal-mask { position: fixed; inset: 0; z-index: 9000; padding: 40px; }
body:has(#eng-phone.eng-desktop) .eng-sheet-card {
  background: #fff; border-radius: 14px; width: 100%; max-width: 720px; max-height: 88vh;
  display: flex; flex-direction: column; box-shadow: 0 24px 70px rgba(15,23,42,.4); overflow: hidden;
}
body:has(#eng-phone.eng-desktop) .eng-sheet-card .eng-sheet-head {
  padding: 16px 22px; border-bottom: 1px solid #e2e8f0; display: flex; align-items: center; justify-content: space-between;
}
body:has(#eng-phone.eng-desktop) .eng-sheet-card .eng-sheet-title { font-size: 17px; font-weight: 700; color: #1e293b; }
body:has(#eng-phone.eng-desktop) .eng-sheet-card #eng-sheet-body { padding: 20px 24px !important; }
body:has(#eng-phone.eng-desktop) .eng-sheet-card .eng-sheet-foot { padding: 14px 22px; border-top: 1px solid #e2e8f0; display: flex; gap: 10px; justify-content: flex-end; }
body:has(#eng-phone.eng-desktop) .eng-sheet-close { background: #f1f5f9; color: #475569; border: none; border-radius: 8px; width: 32px; height: 32px; cursor: pointer; font-size: 15px; }
/* 通用确认弹窗在桌面端也放宽 */
body:has(#eng-phone.eng-desktop) .eng-modal { max-width: 420px; border-radius: 14px; }

/* ---------- 教师端 sheet 表单（手机：底部抽屉；桌面：居中宽弹窗） ---------- */
.eng-sheet-mask { position: absolute; inset: 0; z-index: 60; display: flex; align-items: flex-end; justify-content: center; background: rgba(20,20,35,.5); animation: engFade .2s; }
.eng-sheet-card { background: #fff; border-radius: 24px 24px 0 0; width: 100%; max-width: 430px; max-height: 88vh; display: flex; flex-direction: column; animation: engPop .28s cubic-bezier(.22,1.2,.4,1); }
.eng-sheet-head { padding: 16px 18px; border-bottom: 1px solid #f0edf3; display: flex; align-items: center; }
.eng-sheet-title { flex: 1; font-size: 17px; color: #1e293b; }
.eng-sheet-head .eng-sheet-close { border: none; background: #f3f1f6; width: 36px; height: 36px; border-radius: 12px; font-size: 15px; cursor: pointer; }
#eng-sheet-body { padding: 16px 18px; overflow-y: auto; flex: 1; }
.eng-sheet-foot { padding: 12px 18px calc(14px + env(safe-area-inset-bottom,0px)); border-top: 1px solid #f0edf3; display: flex; gap: 10px; }
.eng-sheet-foot .eng-btn-ghost { flex: 1; }
.eng-sheet-foot .eng-btn-primary { flex: 2; }

/* 桌面端覆盖：居中宽弹窗 */
#eng-phone.eng-desktop .eng-sheet-mask { position: absolute; inset: 0; align-items: center; padding: 32px; }
#eng-phone.eng-desktop .eng-sheet-card { border-radius: 14px; max-width: 720px; width: 100%; box-shadow: 0 24px 70px rgba(15,23,42,.4); }
#eng-phone.eng-desktop .eng-sheet-head { padding: 16px 22px; border-bottom: 1px solid #e2e8f0; }
#eng-phone.eng-desktop #eng-sheet-body { padding: 20px 24px; }
#eng-phone.eng-desktop .eng-sheet-foot { padding: 14px 22px; border-top: 1px solid #e2e8f0; justify-content: flex-end; }
#eng-phone.eng-desktop .eng-sheet-foot .eng-btn { flex: none; min-width: 110px; }
#eng-phone.eng-desktop .eng-modal-mask { position: absolute; inset: 0; z-index: 70; }

/* ---------- 桌面布局兜底：内容区滚动、底部槽位隐藏（不依赖 :has） ---------- */
#eng-app.eng-app-desktop { background: rgba(15, 23, 42, .55); backdrop-filter: blur(3px); }
#eng-app.eng-app-desktop #eng-phone.eng-desktop {
  position: fixed;
  top: 28px; left: 50%; transform: translateX(-50%);
  width: calc(100% - 56px); max-width: 1680px;
  height: calc(100vh - 56px); max-height: calc(100vh - 56px);
  margin: 0; border-radius: 16px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, .35);
  overflow: hidden; background: #f5f7fb; display: flex; flex-direction: column;
}
#eng-app.eng-app-desktop .eng-body {
  flex: 1 1 auto; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch;
  padding: 0; display: block;
}
#eng-app.eng-app-desktop #eng-tabbar-slot { display: none; }
#eng-app.eng-app-desktop .eng-teachtabs {
  display: flex; gap: 4px; padding: 0 28px; background: #fff;
  border-bottom: 1px solid #e2e8f0; position: sticky; top: 0; z-index: 5;
}
#eng-app.eng-app-desktop .eng-page { padding: 22px 28px 60px; max-width: none; margin: 0 auto; animation: none; }

/* ============================================================
   内联页面模式（eng-embedded）：挂载到右侧内容区，非弹框
   —— 管理端/教师端侧边栏「英语打卡」正常页面显示
   ============================================================ */
#eng-app.eng-embedded {
  position: static !important;
  inset: auto !important;
  z-index: auto !important;
  display: block;
  background: #f5f7fb !important;
  backdrop-filter: none !important;
  width: 100%; height: 100%;
}
#eng-app.eng-embedded #eng-phone.eng-desktop,
#eng-app.eng-embed-desktop #eng-phone.eng-desktop {
  position: static !important;
  top: auto !important; left: auto !important; right: auto !important; bottom: auto !important;
  transform: none !important;
  width: 100% !important; max-width: none !important;
  height: 100% !important; max-height: none !important;
  margin: 0 !important; border-radius: 0 !important;
  box-shadow: none !important;
  overflow: hidden; background: #f5f7fb;
  display: flex; flex-direction: column;
}
/* 内联模式不显示弹层关闭 X（由侧边栏导航切换页面）；保留返回 */
#eng-app.eng-embedded #eng-phone.eng-desktop .eng-topbar .eng-close-x { display: none !important; }
#eng-app.eng-embedded .eng-sheet-mask { position: absolute; }
#eng-app.eng-embedded .eng-modal-mask { position: absolute; }

/* 统计卡片网格（管理端平台统计 / 学情概览） */
.eng-stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; }
.eng-stat {
  background: #f7f9fd; border: 1px solid #eef1f7; border-radius: 12px;
  padding: 16px 14px; display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.eng-stat b { font-size: 26px; line-height: 1.1; color: #0052d9; font-weight: 800; }
.eng-stat span { font-size: 13px; color: #7a8296; }
#eng-phone.eng-desktop .eng-stat { background: #f5f8ff; border-color: #e6edfb; }

/* ============================================================
   v=20260916aad 题库左侧章节目录树 + 录题目录选择
   ============================================================ */
.eng-bank-layout { display: flex; gap: 14px; align-items: flex-start; }
.eng-cattree {
  flex: 0 0 248px; width: 248px; position: sticky; top: 0;
  background: #fff; border: 1px solid #e8edf6; border-radius: 12px; overflow: hidden;
  max-height: calc(100vh - 150px); display: flex; flex-direction: column;
}
.eng-cattree-head {
  padding: 12px 14px; font-size: 14px; font-weight: 700; color: #1f2a44;
  background: linear-gradient(135deg, #f2f6ff, #eef3ff); border-bottom: 1px solid #e8edf6;
}
.eng-cattree-body { overflow-y: auto; padding: 8px; }
.eng-catnode {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 8px 10px; border-radius: 8px; cursor: pointer; font-size: 13px; color: #41506b;
  transition: background .15s, color .15s; user-select: none;
}
.eng-catnode:hover { background: #f1f5ff; }
.eng-catnode.active { background: #0052d9; color: #fff; font-weight: 600; }
.eng-catnode.active .eng-catnode-count { background: rgba(255,255,255,.25); color: #fff; }
.eng-catnode-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.eng-catnode-count {
  flex: 0 0 auto; min-width: 22px; text-align: center; font-size: 11px; font-weight: 700;
  background: #eef2f9; color: #6b7693; border-radius: 999px; padding: 1px 7px;
}
.eng-cat-root { font-weight: 700; color: #1f2a44; }
.eng-cat-grade { margin-top: 4px; font-weight: 600; }
.eng-cat-chapter { padding-left: 22px; }
.eng-cat-point { padding-left: 38px; font-size: 12.5px; }
.eng-cattree-empty { padding: 16px 12px; font-size: 12px; color: #98a2b8; line-height: 1.7; text-align: center; }
.eng-bank-main { flex: 1 1 auto; min-width: 0; }
.eng-crumb { font-size: 13px; color: #5a6478; margin: 4px 2px 10px; }
/* 录题：三级目录选择 */
.eng-catpicks { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.eng-select {
  width: 100%; padding: 9px 10px; font-size: 13px; color: #1f2a44;
  border: 1px solid #dce3f0; border-radius: 8px; background: #fff; font-family: inherit; outline: none;
}
.eng-select:focus { border-color: #0052d9; }
.eng-select:disabled { background: #f4f6fa; color: #a6afc2; }
.eng-req { color: #f04848; }
#eng-phone.eng-desktop .eng-cattree { background:#fff; }
@media (max-width: 860px) {
  .eng-bank-layout { flex-direction: column; }
  .eng-cattree { position: static; flex: none; width: 100%; max-height: none; }
  .eng-catpicks { grid-template-columns: 1fr; }
}

/* ===== 批改中心：左班级 + 右清单 ===== */
.eng-grade-layout { display: flex; gap: 14px; align-items: flex-start; }
.eng-grade-side { flex: 0 0 240px; background: #fff; border: 1px solid #e8edf5; border-radius: 12px; padding: 10px; position: sticky; top: 12px; }
.eng-grade-side-title { font-weight: 700; font-size: 14px; color: #1e293b; padding: 4px 6px 10px; }
.eng-grade-cls { padding: 10px 12px; border-radius: 10px; cursor: pointer; border: 1px solid transparent; margin-bottom: 6px; transition: background .15s; }
.eng-grade-cls:hover { background: #f5f8ff; }
.eng-grade-cls.active { background: #eef4ff; border-color: #b8d0ff; }
.eng-grade-cls-name { font-weight: 600; font-size: 14px; color: #1e293b; margin-bottom: 6px; }
.eng-grade-cls-stat { display: flex; gap: 6px; }
.eng-grade-main { flex: 1; min-width: 0; }
@media (max-width: 860px) {
  .eng-grade-layout { flex-direction: column; }
  .eng-grade-side { flex: none; width: 100%; position: static; }
}

/* ===== 任务草稿/发布状态 ===== */
.eng-icon-danger { color: #f04848; }
.eng-icon-warn { color: #f59519; }

/* ===== 题目富媒体（图片/视频/网址/录音） ===== */
.eng-media-list { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.eng-media-item { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 10px; background: #f6f8fc; border: 1px solid #e8edf5; border-radius: 8px; font-size: 13px; }
.eng-media-name { color: #334155; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.eng-media-item .eng-icon-btn { flex: 0 0 auto; }

/* ===== 批改详情：题目富媒体 ===== */
.eng-qmedias { display: flex; flex-direction: column; gap: 8px; margin: 8px 0; }
.eng-qmedia { width: 100%; border-radius: 8px; overflow: hidden; background: #000; }
.eng-qmedia-img { background: #f6f8fc; border: 1px solid #e8edf5; }
.eng-qmedia-img img { display: block; width: 100%; height: auto; max-height: 320px; object-fit: contain; margin: 0 auto; }
/* 内部 blob:<hash> 未回填前：占位，避免无 src 的 img 塌陷 */
.eng-qmedia-img img[data-blob-h] { min-height: 160px; background: #f0f3f9; }
.eng-qmedia-miss-tip { display: flex; align-items: center; justify-content: center; min-height: 160px; padding: 16px; color: #9aa6b8; font-size: 13px; line-height: 1.6; text-align: center; background: #f6f8fc; }
.eng-qmedia-vid video[data-blob-h] { min-height: 160px; background: #000; }
.eng-qmedia-vid video { display: block; width: 100%; max-height: 320px; height: auto; background: #000; }
.eng-qmedia-web { background: #fff; border: 1px solid #e8edf5; }
.eng-qmedia-webtop { display: flex; align-items: center; justify-content: space-between; padding: 6px 10px; font-size: 12px; background: #f8fafc; }
.eng-qmedia-webtop a { color: #0052D9; text-decoration: none; }
.eng-qmedia-web iframe { display: block; width: 100%; height: 360px; border: 0; }

/* ===== 课本（Textbook）管理 ===== */
.eng-tb-ribbon { display: flex; flex-direction: column; gap: 10px; padding: 12px; }
.eng-tb-card { width: 100%; box-sizing: border-box; display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid #e8edf5; border-radius: 14px; padding: 10px; cursor: pointer; transition: transform .12s ease, box-shadow .12s ease; text-align: left; }
.eng-tb-card:hover { box-shadow: 0 6px 18px rgba(15, 63, 128, .10); transform: translateY(-1px); }
.eng-tb-card:active { transform: scale(.97); }
.eng-tb-card-cover { width: 54px; height: 54px; flex: 0 0 auto; object-fit: cover; border-radius: 10px; display: block; background: #eef4ff; }
.eng-tb-card-emoji { display: flex; align-items: center; justify-content: center; font-size: 26px; color: #9fb4d6; }
.eng-tb-card-meta { flex: 1; min-width: 0; }
.eng-tb-card-name { font-size: 14px; font-weight: 700; color: #1f2d3d; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.eng-tb-card-ver { display: inline-block; margin-left: 6px; padding: 1px 7px; font-size: 11px; font-weight: 600; color: #2563eb; background: #eff6ff; border-radius: 999px; vertical-align: middle; }
.eng-tb-card-sub { font-size: 12px; color: #8a94a6; margin-top: 2px; }
.eng-tb-add { width: 100%; box-sizing: border-box; min-height: 150px; border: 2px dashed #c3d2ea; background: #fafcff; border-radius: 14px; color: #5b7299; font-size: 14px; font-weight: 600; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; cursor: pointer; transition: all .12s ease; }
.eng-tb-add:hover { border-color: #0052D9; color: #0052D9; background: #f3f7ff; }
.eng-tb-add-plus { font-size: 34px; line-height: 1; font-weight: 300; }
.eng-cattree-sep { padding: 8px 12px 4px; font-size: 11px; color: #9aa6b8; letter-spacing: .04em; }
.eng-tb-backbtn { display: block; width: calc(100% - 20px); margin: 10px 10px 4px; padding: 7px 10px; border: 1px solid #e0e8f4; background: #fff; border-radius: 10px; font-size: 13px; color: #334155; cursor: pointer; text-align: left; }
.eng-tb-backbtn:hover { background: #f3f7ff; }
.eng-tb-sidehead { display: flex; gap: 10px; align-items: center; padding: 8px 12px; }
.eng-tb-sidecover { width: 46px; height: 46px; border-radius: 10px; object-fit: cover; background: #eef4ff; display: flex; align-items: center; justify-content: center; font-size: 22px; flex: 0 0 auto; }
.eng-tb-sidename { font-size: 14px; font-weight: 700; color: #1f2d3d; max-width: 150px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.eng-tb-sidesub { font-size: 11px; color: #8a94a6; margin-top: 2px; }
.eng-tb-coverrow { display: flex; gap: 12px; align-items: center; }
.eng-tb-cover-preview { width: 88px; height: 88px; border-radius: 14px; border: 1px solid #e8edf5; background: #f6f8fc; display: flex; align-items: center; justify-content: center; overflow: hidden; font-size: 30px; color: #a9b8d0; }
.eng-tb-cover-preview img { width: 100%; height: 100%; object-fit: cover; }
.eng-tb-chapterpick { margin-top: 4px; }
.eng-tb-chapterlist { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 6px; max-height: 220px; overflow-y: auto; }
.eng-tb-chapteropt { display: flex; gap: 6px; align-items: flex-start; font-size: 12.5px; color: #334155; background: #f6f8fc; border: 1px solid #eef1f6; border-radius: 10px; padding: 7px 8px; cursor: pointer; }
.eng-tb-chapteropt input { margin-top: 2px; }
.eng-danger-tab { color: #e34d59 !important; }
/* 题干类型四选一 Tab */
#q-stemtype-seg .eng-seg-item { min-width: 84px; }
.eng-media-empty { font-size: 12px; color: #a6b0c0; padding: 4px 0; }

/* ===== 教师：打卡学生清单 ===== */
.eng-tstu-title { font-size: 15px; font-weight: 800; color: #1f2d3d; }
.eng-tstu-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.eng-tstu-sel { flex: 1 1 140px; min-width: 120px; }
.eng-tstu-count { font-size: 12.5px; color: #6b7688; margin: 4px 2px 8px; }
.eng-tstu-table { background: #fff; border: 1px solid #eef1f6; border-radius: 14px; overflow: hidden; }
.eng-tstu-row { display: grid; grid-template-columns: 1.05fr 1.2fr .6fr .7fr .85fr .7fr .7fr; gap: 8px; align-items: center; padding: 11px 14px; border-top: 1px solid #f2f5fa; font-size: 13.5px; color: #334155; }
.eng-tstu-row:first-child { border-top: 0; }
.eng-tstu-head { background: #f7f9fd; font-weight: 700; color: #5b6b84; font-size: 12.5px; }
.eng-tstu-row.is-off { background: #fafbfc; color: #9aa6b8; }
.eng-tstu-name { font-weight: 700; color: #1f2d3d; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.eng-tstu-row.is-off .eng-tstu-name { color: #9aa6b8; }
.eng-tstu-cls { font-size: 12.5px; color: #6b7688; }
.eng-wrong-badge { display: inline-flex; align-items: center; gap: 4px; border: 0; cursor: pointer; border-radius: 999px; padding: 3px 10px; font-size: 12.5px; font-weight: 700; background: #fdecec; color: #d54941; }
.eng-wrong-badge.has { background: #fde4e2; color: #c92a20; }
.eng-wrong-badge:hover { filter: brightness(.97); }
.eng-self-badge { border: 0; cursor: pointer; border-radius: 10px; padding: 4px 10px; font-size: 12.5px; line-height: 1.35; background: #eef2ff; color: #4338ca; font-weight: 700; }
.eng-self-badge .eng-self-best { font-weight: 500; font-size: 11px; color: #6366f1; }
.eng-self-badge:hover { filter: brightness(.97); }
.eng-self-trend { background: #fafbff; border: 1px solid #e7e9fb; border-radius: 14px; padding: 12px 8px 6px; margin-bottom: 14px; }
.eng-self-trend-title { font-size: 13px; font-weight: 700; color: #475569; padding: 0 6px 4px; }
.eng-self-trend svg { width: 100%; height: auto; display: block; }
.eng-self-rec { display: flex; align-items: center; gap: 12px; border: 1px solid #eef1f6; border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; }
.eng-self-rec-score { flex: 0 0 44px; height: 44px; border-radius: 11px; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 16px; }
.eng-self-rec-score.pass { background: #dcfce7; color: #15803d; }
.eng-self-rec-score.fail { background: #ffedd5; color: #c2410c; }
.eng-self-rec-info { flex: 1; }
.eng-self-rec-name { font-size: 13.5px; font-weight: 700; color: #1e293b; }
.eng-self-rec-sub { font-size: 12px; color: #64748b; margin: 1px 0; }
.eng-self-rec-time { font-size: 11px; color: #94a3b8; }
/* 任务类型切换（打卡/自测） */
.te-kindseg { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.te-kindbtn { border: 1.5px solid #d7deea; background: #fff; color: #64748b; border-radius: 10px; padding: 8px 18px; font-size: 14px; font-weight: 600; cursor: pointer; transition: all .15s ease; }
.te-kindbtn.on { border-color: #2563eb; background: #2563eb; color: #fff; box-shadow: 0 4px 12px rgba(37,99,235,.25); }
.te-kindhint { font-size: 12px; color: #8a97a8; width: 100%; }
.te-stcfg-line { display: flex; gap: 14px; flex-wrap: wrap; }
.te-stcfg-line .te-field { flex: 1; min-width: 130px; }
.te-stcfg-note { font-size: 12px; color: #8a97a8; margin-top: 6px; }
.eng-wrong-modal .eng-modal-card { max-width: 680px; }
.eng-wrong-item { border: 1px solid #f0e3e3; border-radius: 12px; padding: 12px 14px; background: #fff; margin-bottom: 10px; }
.eng-wrong-item-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.eng-wrong-item-type { font-size: 12px; font-weight: 700; color: #c92a20; background: #fdecec; border-radius: 6px; padding: 2px 8px; }
.eng-wrong-item-task { font-size: 12px; color: #8a94a6; }
.eng-wrong-stem { font-size: 14px; font-weight: 700; color: #1f2d3d; margin: 4px 0 6px; white-space: pre-wrap; }
.eng-wrong-line { font-size: 12.5px; color: #5b6b84; margin-top: 3px; }
.eng-wrong-line.bad { color: #c92a20; }
.eng-wrong-line.good { color: #0f9d58; }
.eng-wrong-time { font-size: 11.5px; color: #a4adbd; margin-top: 6px; }
@media (max-width: 640px) { .eng-tstu-row { grid-template-columns: 1fr .8fr; row-gap: 6px; } .eng-tstu-head { display: none; } }

/* ---------- 题库/任务工具栏：操作按钮在左，计数为右侧纯文本 ---------- */
.eng-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.eng-toolbar-actions { display: flex; align-items: center; gap: 8px; overflow-x: auto; padding-bottom: 2px; }
.eng-toolbar-actions .eng-seg-tab { flex: 0 0 auto; }
.eng-count-text { flex: 0 0 auto; margin-left: auto; font-size: 14px; color: #64748b; font-weight: 600; white-space: nowrap; }

/* ---------- 创建任务：顶部课本图片横条 ---------- */
.eng-task-book-strip { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; -webkit-overflow-scrolling: touch; }
.eng-task-book {
  position: relative; flex: 0 0 auto; width: 96px; border: 2px solid #e2e8f0; background: #fff;
  border-radius: 14px; padding: 8px; display: flex; flex-direction: column; align-items: center; gap: 6px; cursor: pointer;
  transition: border-color .15s ease, transform .1s ease;
}
.eng-task-book:active { transform: scale(.96); }
.eng-task-book.active { border-color: #2563EB; background: #EFF6FF; }
.eng-task-book-cover {
  width: 64px; height: 64px; border-radius: 10px; overflow: hidden; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg,#dbeafe,#bfdbfe); font-size: 30px;
}
.eng-task-book-cover img { width: 100%; height: 100%; object-fit: cover; }
.eng-task-book-name { font-size: 12px; color: #334155; font-weight: 600; text-align: center; width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.eng-task-book.active .eng-task-book-name { color: #1D4ED8; }
.eng-task-book-tick {
  position: absolute; top: -7px; right: -7px; width: 22px; height: 22px; border-radius: 50%;
  background: #2563EB; color: #fff; font-size: 13px; display: flex; align-items: center; justify-content: center; font-weight: 800;
}
.eng-task-book-none .eng-task-book-cover { background: #f1f5f9; font-size: 26px; }

/* ---------- 任务管理：班级清单 ---------- */
.eng-class-card {
  display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid #e2e8f0;
  border-radius: 14px; padding: 16px 18px; margin-bottom: 12px; cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease, transform .1s ease;
}
.eng-class-card:hover { border-color: #93c5fd; box-shadow: 0 6px 18px rgba(37,99,235,.1); }
.eng-class-card:active { transform: scale(.99); }
.eng-class-ico {
  width: 46px; height: 46px; border-radius: 12px; flex: 0 0 auto;
  background: linear-gradient(135deg,#dbeafe,#bfdbfe); display: flex; align-items: center; justify-content: center; font-size: 24px;
}
.eng-class-info { flex: 1; min-width: 0; }
.eng-class-name { font-size: 16px; font-weight: 700; color: #0f172a; }
.eng-class-sub { font-size: 12.5px; color: #94a3b8; margin-top: 3px; }
.eng-class-tasknum {
  flex: 0 0 auto; font-size: 13px; font-weight: 700; color: #2563EB;
  background: #EFF6FF; border-radius: 999px; padding: 7px 14px; white-space: nowrap;
}
.eng-class-global { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.eng-class-global .eng-btn { flex: 0 0 auto; }
.eng-class-sec-title { font-size: 15px; font-weight: 800; color: #0f172a; margin: 18px 0 10px; }

/* ---------- 任务统计列：所有任务 / 待完成 ---------- */
.eng-task-stats { display: flex; gap: 12px; margin-bottom: 16px; }
.eng-task-stat {
  flex: 1; display: flex; align-items: center; gap: 12px;
  background: #fff; border-radius: 14px; padding: 16px 20px; box-shadow: 0 2px 10px rgba(15,23,42,.05);
}
.eng-task-stat-num { font-size: 28px; font-weight: 800; color: #2563EB; line-height: 1; }
.eng-task-stat-num.eng-task-stat-todo { color: #ea580c; }
.eng-task-stat-label { font-size: 13.5px; color: #64748b; font-weight: 600; }

/* ---------- 左日历 + 右任务清单 布局 ---------- */
.eng-cal-layout { display: grid; grid-template-columns: 360px minmax(0,1fr); gap: 16px; align-items: start; }
.eng-cal-left { position: sticky; top: 12px; }
.eng-cal-right { min-width: 0; }
.eng-day-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.eng-selfzone-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; padding: 12px 16px; background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%); border-radius: 12px; }
.eng-selfzone-title { font-size: 16px; font-weight: 800; color: #4338ca; }
.eng-selfzone-sub { font-size: 12px; color: #6366f1; flex: 1; }
.eng-selfzone-list { margin-bottom: 18px; display: flex; flex-direction: column; gap: 10px; }
.eng-day-title { font-size: 16px; font-weight: 800; color: #0f172a; }
.eng-day-count { font-size: 13px; font-weight: 700; color: #2563EB; background: #EFF6FF; border-radius: 999px; padding: 5px 14px; }
@media (max-width: 1080px) {
  .eng-cal-layout { grid-template-columns: 1fr; }
  .eng-cal-left { position: static; }
}

/* ---------- 班级任务日历（左侧缩小） ---------- */
.eng-class-calendar { margin-bottom: 0; padding: 16px; }
.eng-cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.eng-cal-head b { font-size: 14px; color: #0f172a; }
.eng-cal-nav { width: 28px; height: 28px; border-radius: 50%; border: 1px solid #e2e8f0; background: #fff; color: #2563EB; font-size: 16px; font-weight: 800; cursor: pointer; }
.eng-cal-nav:hover { background: #EFF6FF; }
.eng-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.eng-cal-week { text-align: center; font-size: 11px; color: #94a3b8; padding-bottom: 4px; }
.eng-cal-cell {
  position: relative; aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
  font-size: 12px; color: #475569; border-radius: 8px; background: #f8fafc;
  border: 1px solid transparent; cursor: pointer; padding: 0; font-family: inherit;
}
.eng-cal-cell:hover { background: #eff6ff; }
.eng-cal-cell.blank { background: transparent; cursor: default; }
.eng-cal-cell.on { background: #dbeafe; color: #1d4ed8; font-weight: 700; }
.eng-cal-cell.today { box-shadow: inset 0 0 0 1.5px #f59e0b; }
.eng-cal-cell.selected { background: #2563EB; color: #fff; font-weight: 700; border-color: #1d4ed8; }
.eng-cal-cell.selected .eng-cal-dot { background: rgba(255,255,255,.3); color: #fff; }
.eng-cal-dot {
  position: absolute; right: 2px; bottom: 1px; font-style: normal; font-size: 8.5px; line-height: 1;
  background: #bfdbfe; color: #1d4ed8; border-radius: 99px; padding: 1px 4px;
}
.eng-cal-cell:not(.on):not(.selected) .eng-cal-dot { background: #e2e8f0; color: #64748b; }
.eng-cal-legend { font-size: 11.5px; color: #94a3b8; margin-top: 10px; }
.eng-cal-legend b { color: #2563EB; }

/* ===== 题库筛选条：搜索 + 状态 单行紧凑 ===== */
.eng-filterbar {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 12px;
}
.eng-filterbar .eng-filter-search {
  flex: 1 1 auto; min-width: 0;
  display: flex; align-items: center; gap: 6px;
  background: #fff; border: 1px solid #e2e8f0; border-radius: 10px;
  padding: 0 12px; height: 38px;
}
.eng-filterbar .eng-filter-search:focus-within { border-color: #2563EB; box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
.eng-filterbar .eng-filter-search input {
  flex: 1 1 auto; min-width: 0; border: 0; outline: none; background: transparent;
  font-size: 14px; color: #1e293b; height: 100%;
}
.eng-filterbar .eng-chip {
  flex: 0 0 auto; padding: 0 14px; height: 38px; line-height: 36px;
  border-radius: 10px; font-size: 13px; margin: 0;
}
.eng-filterbar .eng-filter-label { flex: 0 0 auto; font-size: 13px; color: #94a3b8; }
@media (max-width: 640px) {
  .eng-filterbar { gap: 8px; }
  .eng-filterbar .eng-chip { padding: 0 10px; font-size: 12px; }
}
/* 题目名称输入 */
#q-name { margin-bottom: 4px; }
/* 题目行：名称为主标题 */
.eng-q-title { font-size: 15px; font-weight: 700; color: #0f172a; line-height: 1.5; margin-bottom: 2px; }
.eng-q-sub { font-size: 12px; }


/* ================= 题库内联录入/编辑页 ================= */
.qe-wrap { display: flex; flex-direction: column; gap: 14px; }
.qe-rows { display: flex; flex-direction: column; gap: 14px; }
.qe-row {
  background: #fff; border: 1px solid #e5e9f2; border-radius: 16px;
  padding: 14px 16px; box-shadow: 0 6px 18px rgba(15,23,42,.04);
}
/* 三列：图片/视频槽、音频槽固定宽，文本框铺满剩余；删除按钮移到行头 */
.qe-row-grid {
  display: grid; grid-template-columns: 150px 150px minmax(0,1fr);
  align-items: stretch; gap: 12px; width: 100%;
}
.qe-row-grid > .qe-cell-media,
.qe-row-grid > .qe-cell-audios { width: 150px; min-width: 150px; max-width: 150px; }
.qe-row-grid .qe-cell-text {
  min-width: 0; width: 100%; align-self: stretch;
  display: flex; flex-direction: column;
}
.qe-row-grid .qe-cell-text .eng-textarea {
  display: block; flex: 1 1 auto; width: 100%; min-width: 100%; max-width: 100%;
  box-sizing: border-box; min-height: 132px;
}
.qe-cell {
  position: relative; border: 1.5px dashed #c7d2e3; border-radius: 12px;
  background: #f8fafc; min-height: 132px; display: flex; flex-direction: column;
  overflow: hidden;
}
.qe-cell-text { border-style: solid; border-color: #e2e8f0; background: #fff; padding: 8px; }
.qe-cell-text .eng-textarea {
  flex: 1; width: 100%; border: none; outline: none; resize: none; background: transparent;
  font-size: 14px; line-height: 1.6; min-height: 110px;
}
.qe-slot-empty {
  flex: 1; width: 100%; border: none; background: transparent; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  color: #94a3b8; padding: 16px;
}
.qe-slot-empty:hover { background: #f1f5f9; }
.qe-slot-plus {
  width: 42px; height: 42px; border-radius: 12px; background: #ecfdf5; color: #10b981;
  display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 800;
}
.qe-slot-cap { font-size: 13px; font-weight: 700; }
.qe-slot-filled { flex: 1; display: flex; flex-direction: column; }
.qe-slot-filled img, .qe-slot-filled video {
  width: 100%; height: 92px; object-fit: cover; background: #0f172a; display: block;
}
.qe-audio-preview {
  flex: 1; min-height: 92px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; color: #047857; font-size: 30px;
}
.qe-audio-preview span { font-size: 12px; color: #475569; max-width: 90%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qe-slot-up { flex: 1; display: flex; align-items: center; justify-content: center; color: #94a3b8; font-size: 13px; }
.qe-slot-reup { border: none; background: none; color: #2563eb; font-size: 12px; font-weight: 700; cursor: pointer; padding: 7px 10px; text-align: left; }
.qe-slot-del {
  position: absolute; top: 6px; right: 6px; min-width: 40px; height: 26px; padding: 0 8px; border-radius: 999px;
  border: none; background: rgba(255,255,255,.92); color: #e11d48; cursor: pointer; font-size: 12px;
  box-shadow: 0 2px 6px rgba(15,23,42,.15); z-index: 2;
}
.qe-row-del {
  align-self: auto; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid #fecaca; background: #fff5f5; color: #e11d48;
  font-size: 13px; font-weight: 700; border-radius: 999px; padding: 6px 16px; cursor: pointer; white-space: nowrap;
}
.qe-row-del:hover { background: #fee2e2; }
.qe-row-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.qe-row-no { font-size: 13px; font-weight: 800; color: #0f7a44; }
.qe-addbtn {
  width: 100%; border: 1.5px dashed #7dd3a8; background: #f0fdf6; color: #047857;
  font-size: 14px; font-weight: 800; border-radius: 12px; padding: 13px; cursor: pointer;
}
.qe-addbtn:hover { background: #dcfce7; }
.qe-foot {
  display: flex; justify-content: flex-end; gap: 12px;
  background: #fff; border: 1px solid #e5e9f2; border-radius: 14px; padding: 12px 18px;
  position: sticky; bottom: 0; z-index: 5;
}
.qe-foot .eng-btn { width: auto; min-width: 120px; }

/* 全局题型切换（跟读题 / 单选题）：选定后下面新增的题目都是该类型 */
.qe-kind-bar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: #fff; border: 1px solid #e5e9f2; border-radius: 14px; padding: 10px 16px;
  box-shadow: 0 6px 18px rgba(15,23,42,.04);
}
.qe-kind-label { font-size: 13px; font-weight: 800; color: #334155; }
.qe-kind-hint { font-size: 12.5px; color: #94a3b8; }
.qe-kind-btn {
  border: 1.5px solid #d4dbe8; background: #f6f8fc; color: #475569;
  font-size: 14px; font-weight: 800; border-radius: 999px; padding: 7px 18px; cursor: pointer;
}
.qe-kind-btn.on { background: #0f7a44; border-color: #0f7a44; color: #fff; box-shadow: 0 4px 12px rgba(15,122,68,.28); }
.qe-row-choice { background: #fbfdfc; }

/* 单选题布局：左侧题干，右侧选项两行两列 */
.qe-choice-grid {
  display: grid; grid-template-columns: minmax(260px,.9fr) minmax(0,1.4fr);
  gap: 18px; align-items: stretch; width: 100%;
}
.qe-stem-col { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.qe-stem-tag {
  align-self: flex-start; font-size: 12px; font-weight: 800; color: #0f7a44;
  background: #ecfdf5; border-radius: 999px; padding: 3px 12px;
}
.qe-stem-col .qe-stem-input { flex: 1; width: 100%; min-height: 132px; box-sizing: border-box; }
.qe-opts-col { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 1fr; gap: 12px; min-width: 0; }
.qe-opt-cell {
  display: flex; align-items: center; gap: 8px; border: 1.5px solid #e2e8f0; border-radius: 12px;
  background: #fff; padding: 8px 12px; cursor: pointer; transition: border-color .15s, box-shadow .15s, background .15s;
}
.qe-opt-cell:hover { border-color: #7dd3a8; }
.qe-opt-cell.picked { border-color: #0f7a44; background: #f0fdf6; box-shadow: 0 0 0 3px rgba(15,122,68,.12); }
.qe-opt-cell input[type="radio"] { width: 16px; height: 16px; flex: none; accent-color: #0f7a44; margin: 0; }
.qe-opt-key { font-weight: 800; color: #0f7a44; flex: none; width: 16px; text-align: center; }
.qe-opt-cell .qe-opt-input { flex: 1; min-width: 0; border: none; background: transparent; padding: 4px 0; font-size: 14px; }
.qe-opt-cell .qe-opt-input:focus { outline: none; }
.qe-opt-tip { font-size: 12px; color: #94a3b8; }
@media (max-width: 1100px) {
  .qe-choice-grid { grid-template-columns: 1fr; }
  .qe-stem-col .qe-stem-input { min-height: 96px; }
}

/* 任务类型切换（打卡 / 自测） */
.te-kindseg { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.te-kindbtn {
  border: 1.5px solid #d4dbe8; background: #f6f8fc; color: #475569;
  font-size: 14px; font-weight: 800; border-radius: 12px; padding: 9px 18px; cursor: pointer;
}
.te-kindbtn.on { background: #0f7a44; border-color: #0f7a44; color: #fff; box-shadow: 0 4px 12px rgba(15,122,68,.28); }
.te-kindhint { font-size: 12.5px; color: #94a3b8; }
.te-stcfg { background: #f4f9ff; border: 1px solid #dbeafe; border-radius: 12px; padding: 12px 14px; }
.te-stcfg-line { display: flex; gap: 14px; flex-wrap: wrap; }
.te-stcfg-line .te-field { flex: 1; min-width: 140px; }
.te-stcfg-line .te-field label { display: block; font-size: 12.5px; color: #64748b; margin-bottom: 5px; }
.te-stcfg-note { font-size: 12.5px; color: #64748b; margin-top: 8px; }
@media (max-width: 1100px) {
  .qe-row-grid { grid-template-columns: 1fr 1fr; }
  .qe-cell-text { grid-column: 1 / -1; }
  .qe-row-del { grid-column: 1 / -1; justify-self: end; align-self: auto; padding: 10px 18px; }
}

/* ================= 批改内联页：左侧序号（两列竖排） + 右侧题目批改 ================= */
.ge-wrap { display: flex; flex-direction: column; gap: 14px; }
.ge-layout { display: block; }
.ge-side {
  position: sticky; top: 8px; align-self: start;
  display: flex; flex-direction: column; gap: 10px;
  background: transparent; border: 0; border-radius: 0; padding: 0;
}
.ge-side-title { font-size: 13px; font-weight: 700; color: #4a4f5e; margin: 2px 2px 0; }
.ge-main { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
/* 旧的顶部横向座位区在新布局不再使用（保留基础样式兼容） */
.eng-grade-seats.ge-seats-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0;
  background: #fff; border: 1px solid #e5e9f2; border-radius: 14px; padding: 12px;
}
/* 左侧顶部学生+任务得分小横条（窄列内纵向堆叠） */
.ge-scorebar {
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
  background: #fff; border: 1px solid #e5e9f2; border-radius: 14px; padding: 12px 14px;
}
.ge-scorebar-name { font-size: 15px; font-weight: 800; color: #0f172a; }
.ge-scorebar-score { color: #64748b; font-size: 13px; display: inline-flex; align-items: baseline; gap: 3px; }
.ge-scorebar-score b { font-size: 24px; color: #047857; font-weight: 900; }
.ge-scorebar-score small { color: #64748b; }
.eng-seat-score { display: block; font-size: 15px; font-weight: 800; color: #334155; line-height: 1.1; }
.eng-seat.seat-on .eng-seat-score, .eng-seat.seat-ok .eng-seat-score { color: #047857; }
.eng-seat.seat-no .eng-seat-score { color: #e11d48; }
.ge-main .eng-grade-detail { margin: 0; }
.ge-voice { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 4px; background:#fff; border:1px solid #e5e9f2; border-radius:14px; padding:12px 16px; }
.ge-voice.recording { color: #e11d48; font-weight: 700; }
#g-voice-btn.ge-recording { background: #fee2e2 !important; color: #e11d48 !important; border-color: #fecaca !important; }
.ge-foot {
  display: flex; align-items: center; gap: 12px;
  background: #fff; border: 1px solid #e5e9f2; border-radius: 14px; padding: 12px 18px;
  position: sticky; bottom: 0; z-index: 6;
}
.ge-foot-cancel { margin-right: auto; }
.ge-foot-right { display: flex; gap: 12px; }
/* 底栏按钮统一内容宽度，覆盖 eng-btn-primary 的 width:100%，防止单按钮被拉伸错位 */
.ge-foot .eng-btn { width: auto; flex: 0 0 auto; white-space: nowrap; min-width: 104px; }
@media (min-width: 1000px) {
  .ge-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 14px; align-items: start; }
  .ge-foot { grid-column: 1 / -1; }
}
@media (max-width: 999px) {
  .ge-side { position: static; }
  .ge-scorebar { flex-direction: row; align-items: center; justify-content: space-between; }
  .eng-grade-seats.ge-seats-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .eng-grade-seats.ge-seats-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ================= 任务内联创建/编辑页 ================= */
.te-wrap { display: flex; flex-direction: column; gap: 14px; }
.te-body { display: flex; flex-direction: column; gap: 14px; }
/* 第一行：课本/任务名称/任务积分/截止时间/下发班级，全部等高、随分辨率自适应 */
.te-formline {
  display: grid;
  grid-template-columns: minmax(140px,.9fr) minmax(220px,1.8fr) minmax(110px,.7fr) minmax(150px,1fr) minmax(160px,1.1fr);
  gap: 12px; align-items: stretch;
  background: #fff; border: 1px solid #e5e9f2; border-radius: 14px; padding: 16px 18px;
}
.te-field { display: flex; flex-direction: column; gap: 7px; min-width: 0; margin: 0; }
.te-field > label { font-size: 13px; font-weight: 700; color: #334155; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.te-formline .te-ctl {
  width: 100%; height: 44px; min-height: 44px; max-height: 44px; box-sizing: border-box; margin: 0;
  padding: 0 12px; border-radius: 10px; border: 1px solid #d6ddea; background: #fff;
  font-size: 14px; line-height: 44px; color: #1e293b; display: inline-flex; align-items: center;
}
.te-formline input.te-ctl, .te-formline select.te-ctl { height: 44px; min-height: 44px; }
.te-formline select.te-ctl { appearance: auto; line-height: 1.2; }
.te-formline input[type="date"].te-ctl { line-height: 1; }
.te-pick-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.te-pick-meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.te-pick-btns { display: flex; gap: 8px; }
/* 课本章节横向 tab：全部 + 各章节 */
.te-chtabs { display: flex; gap: 8px; flex-wrap: wrap; }
.te-chtab {
  border: 1px solid #dce3f0; background: #fff; color: #475569;
  border-radius: 999px; padding: 6px 14px; font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap;
}
.te-chtab:hover { border-color: #93b8f5; color: #0052d9; }
.te-chtab.on { background: #eef4ff; border-color: #0052d9; color: #0052d9; font-weight: 800; }
.te-chtabs { align-items: center; }
.te-crlv-label { font-size: 12px; color: #94a3b8; font-weight: 700; margin-right: 2px; }
.te-pttabs { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 8px; padding-left: 8px; border-left: 3px solid #eef4ff; }
.te-pttab {
  border: 1px solid #e6dcf5; background: #fff; color: #6d5a8a;
  border-radius: 999px; padding: 5px 12px; font-size: 12px; font-weight: 600; cursor: pointer; white-space: nowrap;
}
.te-pttab:hover { border-color: #b79ff0; color: #6d28d9; }
.te-pttab.on { background: #f5efff; border-color: #7c3aed; color: #6d28d9; font-weight: 800; }
.te-panel {
  border: 1px solid #e5e9f2; border-radius: 12px; background: #fbfdff;
  padding: 12px; margin-top: 10px; max-height: 340px; overflow: auto;
}
.te-pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.te-auto-panel { display: flex; align-items: center; flex-wrap: wrap; }
.te-sel-title { font-size: 14px; font-weight: 800; color: #0f172a; }
.te-sel-list {
  background: #fff; border: 1px solid #e5e9f2; border-radius: 14px; padding: 12px 16px;
  min-height: 56px;
}
.te-sel-tag { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; }
.te-sel-x { cursor: pointer; color: #e11d48; font-weight: 800; padding: 0 2px; }
.te-sel-x:hover { color: #be123c; }
/* 底部操作栏：三按钮整体居右、固定不换行（覆盖 eng-btn-primary 的 width:100%） */
.te-foot { position: sticky; bottom: 0; z-index: 6; flex-wrap: nowrap; justify-content: flex-end; gap: 12px; }
.te-foot .eng-btn {
  white-space: nowrap; flex: 0 0 auto; width: auto;
  height: 44px; min-height: 44px; padding: 0 24px; margin: 0;
  display: inline-flex; align-items: center; justify-content: center;
}
.te-btn-cancel { min-width: 96px; }
.te-btn-draft { min-width: 112px; }
.te-btn-publish { min-width: 112px; }
@media (max-width: 1280px) {
  .te-formline { grid-template-columns: 1fr 1fr 1fr; }
  .te-field-classes { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .te-formline { grid-template-columns: 1fr; }
  .te-field-classes { grid-column: auto; }
}

/* ================= 题库题目列表分页器（每页 10 题） ================= */
.eng-pager {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 14px 4px 6px; margin-top: 6px;
}
.eng-pager-info { font-size: 13px; color: #64748b; }
.eng-pager-btns { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.eng-pager-btn {
  min-width: 34px; height: 34px; padding: 0 12px; border-radius: 9px;
  border: 1px solid #d6ddea; background: #fff; color: #334155; font-size: 13px;
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  transition: background .15s, border-color .15s, color .15s;
}
.eng-pager-btn:hover:not(.disabled):not(.on) { border-color: #047857; color: #047857; }
.eng-pager-btn.pager-num { padding: 0; }
.eng-pager-btn.on { background: #047857; border-color: #047857; color: #fff; font-weight: 800; cursor: default; }
.eng-pager-btn.disabled { opacity: .45; cursor: not-allowed; }
.eng-pager-gap { color: #94a3b8; font-size: 13px; padding: 0 2px; }

/* ===== acrud61 课本内自建一级目录 ===== */
.eng-dirbar { display:flex; align-items:center; justify-content:space-between; gap:8px; padding:6px 8px 8px; }
.eng-dirbar-title { font-size:12px; color:#64748b; font-weight:600; }
.eng-dir-add { border:1px dashed #2563eb; color:#2563eb; background:#f5f9ff; border-radius:8px; font-size:12px; padding:4px 10px; cursor:pointer; white-space:nowrap; }
.eng-dir-add:hover { background:#e8f1ff; }
.eng-catnode-ops { display:inline-flex; align-items:center; gap:4px; }
.eng-dir-op { border:none; background:transparent; cursor:pointer; font-size:11.5px; padding:2px 4px; color:#94a3b8; line-height:1.2; border-radius:6px; }
.eng-dir-op:hover { color:#2563eb; }
.eng-dir-op-del:hover { color:#ef4444; }
.eng-dir-empty { font-size:12px; color:#94a3b8; padding:8px 10px; line-height:1.6; }
.eng-cat-chapter:hover .eng-dir-op { visibility:visible; }
.eng-dir-op { visibility:hidden; }
.eng-cat-chapter.active .eng-dir-op, .eng-cat-chapter:hover .eng-dir-op { visibility:visible; }
.eng-cat-point.active .eng-dir-op, .eng-cat-point:hover .eng-dir-op { visibility:visible; }
.eng-dir-op-add { color:#7dd3fc; }
.eng-dir-op-add:hover { color:#0ea5e9; }
.eng-dir-op-delq { color:#fca5a5; }
.eng-dir-op-delq:hover { color:#dc2626; background:#fef2f2; }

/* ===== 按目录选择性删题面板 ===== */
.eng-pickq-wrap { display:flex; flex-direction:column; gap:10px; padding:4px 2px; }
.eng-pickq-tools { display:flex; align-items:center; justify-content:space-between; padding:8px 10px; background:#f8fafc; border:1px solid #e8edf5; border-radius:8px; font-size:13px; color:#475569; }
.eng-pickq-all { display:flex; align-items:center; gap:6px; font-weight:600; color:#1f2937; cursor:pointer; }
.eng-pickq-count b { color:#dc2626; font-size:14px; }
.eng-pickq-list { max-height:46vh; overflow-y:auto; border:1px solid #e8edf5; border-radius:8px; }
.eng-pickq-row { display:flex; align-items:center; gap:8px; padding:9px 10px; border-bottom:1px solid #f1f5f9; cursor:pointer; }
.eng-pickq-row:last-child { border-bottom:none; }
.eng-pickq-row:hover { background:#f8fafc; }
.eng-pickq-cb { width:16px; height:16px; flex:0 0 auto; accent-color:#dc2626; }
.eng-pickq-type { flex:0 0 auto; font-size:11px; font-weight:700; padding:1px 7px; border-radius:999px; }
.eng-pickq-choice { background:#dbeafe; color:#1d4ed8; }
.eng-pickq-follow { background:#fce7f3; color:#be185d; }
.eng-pickq-name { flex:1 1 auto; min-width:0; font-size:13px; color:#1f2937; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.eng-pickq-tip { font-size:12px; }

/* ===== acrud61 单选题紧凑布局 + 题目分类 + 自测配额 ===== */
.qe-qcat-label { font-size:13px; color:#475569; font-weight:600; margin-left:8px; }
.qe-qcat-select { height:34px; border:1px solid #d7dee8; border-radius:8px; padding:0 10px; font-size:13px; background:#fff; color:#1f2937; }
.eng-tag-violet { background:#f1ecff !important; color:#6d28d9 !important; }
/* 单选题：选项扁平化（去外层卡片）、一行四个，题干下移 */
/* acrud63：题库录入编辑器的 .qe-row 覆盖批改中心 main.css 全局 .qe-row{display:flex}，保证题干/选项自动拉伸铺满整行 */
.qe-rows .qe-row { display: block; flex-wrap: initial; align-items: initial; margin-bottom: 0; width: 100%; box-sizing: border-box; }
.qe-choice-flat { display:flex; flex-direction:column; gap:8px; width:100%; }
.qe-opts-flat { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px 12px; width:100%; }
.qe-stem-input-flat { width:100%; box-sizing:border-box; }
.qe-opt-flat { display:flex; align-items:center; gap:6px; padding:2px 0; cursor:pointer; border:none !important; background:transparent !important; border-radius:6px; }
.qe-opt-flat input[type=radio] { margin:0; accent-color:#16a34a; flex:0 0 auto; }
.qe-opt-flat .qe-opt-key { color:#0f7a44; font-weight:700; flex:0 0 auto; }
.qe-opt-flat.picked .qe-opt-key { color:#16a34a; }
.qe-opt-flat .qe-opt-input { flex:1 1 auto; min-width:0; border:1px solid #dbe2ea !important; background:#fff; border-radius:8px; padding:7px 10px; font-size:13px; }
.qe-opt-flat.picked .qe-opt-input { border-color:#16a34a !important; background:#f1fbf5; box-shadow:0 0 0 2px rgba(22,163,74,.12); }
.qe-stem-flat { display:flex; align-items:center; gap:8px; }
.qe-stem-flat .qe-stem-tag { flex:0 0 auto; }
.qe-stem-input-flat { flex:1 1 auto; }
.qe-stem-flat .qe-opt-tip { flex:0 0 auto; font-size:11px; }
@media (max-width:1100px) { .qe-opts-flat { grid-template-columns:repeat(2,1fr); } .qe-stem-flat { flex-wrap:wrap; } }
/* 自测选题分类筛选 */
.te-catfilter { display:flex; flex-wrap:wrap; gap:6px; margin-bottom:8px; }
.te-catbtn { border:1px solid #dbe2ea; background:#fff; border-radius:999px; font-size:12px; padding:4px 12px; cursor:pointer; color:#475569; }
.te-catbtn.on { background:#16a34a; border-color:#16a34a; color:#fff; }
/* 题型筛选（打卡选题）：全部=中性，自测=蓝，跟读=粉 */
.te-qtfilter .te-qtbtn.on { background:#2563EB; border-color:#2563EB; }
.te-qtfilter .te-qtbtn:nth-child(3).on { background:#ec4899; border-color:#ec4899; }
/* 题库列表题型 chips 分组 */
.eng-qtype-group { display:inline-flex; gap:6px; margin-right:4px; }
.eng-filterbar .eng-chip-qtype.active { background:#2563EB; color:#fff; border-color:#2563EB; font-weight:700; }
.eng-filterbar .eng-chip-qtype:last-child.active { background:#ec4899; border-color:#ec4899; }
.te-quota-head { font-size:13px; color:#334155; font-weight:600; margin-bottom:8px; }
.te-quota-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:8px 16px; margin-bottom:10px; }
.te-quota-row { display:flex; align-items:center; gap:8px; }
.te-quota-cat { font-size:13px; font-weight:600; color:#1f2937; min-width:56px; }
.te-quota-avail { font-size:12px; color:#94a3b8; flex:1 1 auto; }
.te-quota-num { width:80px; flex:0 0 auto; }
/* acrud62 自测「更多设置」分类配额 */
.te-more-btn { border:1px solid #c7d2fe; background:#eef2ff; color:#4338ca; border-radius:999px; font-size:12px; font-weight:600; padding:5px 14px; cursor:pointer; }
.te-more-btn:hover { background:#e0e7ff; }
.te-quota-panel { margin-top:14px; border:1px dashed #c7d2fe; background:#f8faff; border-radius:12px; padding:12px 14px; }
.te-quota-wrap { background:transparent; border:none; padding:0; margin:0; }
.te-quota-foot { font-size:12px; color:#64748b; margin-top:2px; }
.te-quota-num:focus { outline:none; border-color:#16a34a; box-shadow:0 0 0 2px rgba(22,163,74,.15); }

/* ===== acrud63：题库分类筛选下拉 + 任务编辑器收起态 ===== */
.eng-chip-select {
  flex: 0 0 auto; border: none; background: #fff; color: #475569; border-radius: 999px;
  padding: 0 14px; font-size: 13px; cursor: pointer; min-height: 38px;
  box-shadow: 0 2px 8px rgba(60,60,110,.05); appearance: auto;
}
.eng-chip-select:focus { outline: 2px solid rgba(22,163,74,.25); }
.te-collapse-btn, .te-expand-btn { font-weight: 700; }
.te-pickhead-collapsed {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  position: sticky; top: 0; z-index: 7; background: #f3f6fb; padding: 4px 0 10px;
}
/* 收起后：仅隐藏上方表单，底部取消/草稿/发布操作保留，抽题清单占满可用高度 */
.te-collapsed { display: flex; flex-direction: column; max-height: calc(100vh - 140px); }
.te-collapsed .te-foot { flex: 0 0 auto; background: #fff; padding: 10px 0 4px; border-top: 1px solid #eef1f6; }
.te-collapsed .te-body { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; overflow: hidden; }
.te-collapsed .te-panel {
  flex: 1 1 auto;
  max-height: none; min-height: 0;
  display: flex; flex-direction: column; overflow: hidden;
}
.te-collapsed .te-panel .te-pick-grid {
  flex: 1 1 auto; overflow-y: auto; align-content: start; padding-right: 4px;
}
.te-collapsed .te-panel .te-pick-toolbar { flex: 0 0 auto; }
.te-collapsed .te-panel .te-catfilter { flex: 0 0 auto; }
.te-collapsed .te-pick-grid { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
@media (max-width: 860px) {
  .te-collapsed { max-height: 82vh; }
  .te-collapsed .te-panel { max-height: none; min-height: 0; }
}

/* acrud63：错题弹窗选项分块（题干→选项→正确答案→学生答案） */
.eng-wrong-opts { display: flex; flex-direction: column; gap: 5px; margin: 6px 0; }
.eng-wrong-opt { display: block; border-radius: 8px; background: #f8fafc; padding: 5px 10px; font-size: 13px; color: #475569; line-height: 1.6; }
.eng-wrong-opt b { color: #64748b; margin-right: 2px; }
.eng-wrong-opt.right { background: #ecfdf5; color: #15803d; }
.eng-wrong-opt.right b { color: #15803d; }
.eng-wrong-opt.pick { background: #fef2f2; color: #dc2626; }
.eng-wrong-opt.pick b { color: #dc2626; }
.eng-wrong-opt.pick.right { background: #ecfdf5; color: #15803d; }

/* acrud66 教材版本筛选 */
.eng-cattree-head-filter { display:flex; align-items:center; justify-content:space-between; gap:8px; }
.eng-tb-verfilter {
  width: auto; min-width: 92px; height: 30px; padding: 0 26px 0 10px;
  font-size: 12px; border-radius: 999px; border: 1px solid #d6def0;
  background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%2366708a' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 10px center;
  appearance:none; -webkit-appearance:none; color:#33415e; cursor:pointer;
}
.eng-tb-verempty { font-size:12.5px; color:#97a1b5; padding:14px 6px; text-align:center; }

/* acrud67 打卡任务预览（独立页内联 pv-* 样式的补充：题目清单卡片） */
.pv-cin-head { text-align:center; padding:4px 0 18px; border-bottom:1px dashed #e5eaf2; margin-bottom:16px; }
.pv-cin-ti { font-size:19px; font-weight:800; color:#1f2937; }
.pv-cin-sub { font-size:13px; color:#64748b; margin-top:6px; }
.pv-crec { display:flex; gap:12px; border:1px solid #edf1f5; border-radius:12px; padding:14px; margin-top:10px; }
.pv-cidx { flex:0 0 30px; height:30px; border-radius:50%; background:#4f46e5; color:#fff; font-weight:700; display:flex; align-items:center; justify-content:center; }
.pv-ctag { display:inline-block; font-size:12px; color:#6d28d9; background:#f1ecff; border-radius:6px; padding:2px 8px; margin-bottom:6px; }
.pv-cin-media { font-size:12.5px; color:#64748b; margin-top:8px; }
.pv-cin-mediaurl { color:#94a3b8; word-break:break-all; }
.pv-cin-analysis { font-size:13.5px; color:#15803d; background:#f0fdf4; border-radius:8px; padding:8px 12px; margin-top:8px; line-height:1.6; }
.pv-cin-analysis span { color:#166534; font-weight:700; }

/* acrud68 打卡预览做题式（独立预览页类名 pv-cin-*） */
.pv-cin-answer { font-size:14px; color:#15803d; background:#f0fdf4; border-radius:10px; padding:10px 14px; margin-bottom:12px; line-height:1.7; }
.pv-cin-answer span { color:#166534; font-weight:700; }
.pv-cin-input { width:100%; min-height:96px; border:1.5px solid #dfe6f0; border-radius:12px; padding:12px 14px; font-size:14px; line-height:1.7; resize:vertical; outline:none; font-family:inherit; color:#1f2937; background:#fbfdff; }
.pv-cin-input:focus { border-color:#8b9cf6; box-shadow:0 0 0 3px rgba(99,102,241,.12); }
.pv-cin-done { text-align:center; padding:56px 28px; }
.pv-cin-done-ico { font-size:44px; }
.pv-cin-done-ti { font-size:20px; font-weight:800; margin:14px 0 6px; }
.pv-cin-done-sub { font-size:13.5px; color:#64748b; margin-bottom:22px; }
