/* ============================================================
   学生端小程序样式（mp = mini-program）
   仅作用于 #mp-app，不影响管理端/教师端 Web 界面。
   桌面端：居中手机框；移动端：全屏。
   ============================================================ */

.mp-app {
  position: fixed;
  inset: 0;
  z-index: 60;
  background:
    radial-gradient(1200px 600px at 20% -10%, #EAF1FF 0%, rgba(234,241,255,0) 60%),
    radial-gradient(1000px 500px at 110% 10%, #F3ECFF 0%, rgba(243,236,255,0) 55%),
    #EEF3FB;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow: hidden;
}

/* 手机外壳（桌面端） */
.mp-phone {
  position: relative;
  width: 390px;
  height: min(844px, calc(100vh - 48px));
  background: #F4F7FD;
  border-radius: 40px;
  box-shadow:
    0 0 0 10px #0B1220,
    0 0 0 12px rgba(255,255,255,.35),
    0 40px 90px rgba(15,23,42,.35);
  overflow: hidden;
  flex-shrink: 0;
}
.mp-screen {
  position: absolute;
  inset: 0;
  border-radius: 30px;
  overflow: hidden;
  background: #F4F7FD;
}

/* 页面容器：纵向滚动，底部留出 tabbar 高度 */
.mp-pages {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.mp-page {
  position: absolute;
  inset: 0;
  bottom: 64px;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  background: #F4F7FD;
  display: none;
  padding-bottom: 24px;
}
.mp-page.active { display: block; animation: mpFade .18s ease; }
@keyframes mpFade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- 蓝色渐变头部 ---------- */
.mp-hero {
  position: relative;
  background: linear-gradient(160deg, #2F6BFF 0%, #3B82F6 52%, #5B9BFA 100%);
  color: #fff;
  padding: calc(env(safe-area-inset-top, 0px) + 18px) 20px 56px;
  overflow: hidden;
}
.mp-hero::after {
  /* 淡淡的校园轮廓装饰 */
  content: "";
  position: absolute;
  right: -40px; top: -30px;
  width: 240px; height: 240px;
  background: radial-gradient(circle, rgba(255,255,255,.18) 0%, rgba(255,255,255,0) 70%);
  border-radius: 50%;
  pointer-events: none;
}
.mp-topbar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  margin-bottom: 14px;
}
.mp-topbar .mp-title { font-size: 18px; font-weight: 700; letter-spacing: .5px; }
.mp-topbar .mp-bell {
  position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,.16);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.mp-greet { position: relative; display: flex; align-items: center; gap: 12px; }
.mp-avatar {
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(255,255,255,.25);
  border: 2px solid rgba(255,255,255,.55);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; font-weight: 700; color: #fff;
  flex-shrink: 0; object-fit: cover;
}
.mp-greet .mp-hi { font-size: 19px; font-weight: 700; line-height: 1.3; }
.mp-greet .mp-sub {
  display: inline-flex; align-items: center; gap: 4px;
  margin-top: 4px; font-size: 13px; color: rgba(255,255,255,.88);
}

/* ---------- 白卡片 ---------- */
.mp-body { padding: 0 14px; margin-top: -40px; position: relative; z-index: 2; }
.mp-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(31,56,120,.08);
  padding: 16px;
  margin-bottom: 14px;
}
.mp-sec-title {
  display: flex; align-items: center; gap: 8px;
  font-size: 16px; font-weight: 700; color: #0F172A;
  margin: 2px 2px 14px;
}
.mp-sec-title::before {
  content: ""; width: 4px; height: 16px; border-radius: 4px;
  background: linear-gradient(180deg, #3B82F6, #2F6BFF);
}
.mp-sec-more { margin-left: auto; font-size: 13px; color: #94A3B8; font-weight: 500; cursor: pointer; }
.mp-sec-more:active { opacity: .6; }

/* 今日概览：核心数据横排 */
.mp-overview { display: flex; text-align: center; }
.mp-overview .mp-ov { flex: 1; min-width: 0; }
.mp-overview .mp-ov + .mp-ov { border-left: 1px solid #EEF2F7; }
.mp-ov .mp-ov-num { font-size: 24px; font-weight: 800; color: #0F172A; font-variant-numeric: tabular-nums; line-height: 1.1; }
.mp-ov .mp-ov-label { margin-top: 6px; font-size: 12px; color: #94A3B8; }

/* 功能图标网格 */
.mp-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px 8px; }
.mp-grid-item {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  cursor: pointer; background: none; border: none; padding: 4px 0;
}
.mp-grid-item:active { opacity: .6; }
.mp-grid-ico {
  width: 46px; height: 46px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; box-shadow: 0 6px 14px rgba(31,56,120,.16);
}
.mp-grid-ico svg { width: 24px; height: 24px; }
.mp-grid-label { font-size: 12.5px; color: #475569; font-weight: 500; }
.ico-blue   { background: linear-gradient(135deg, #4F8BFF, #2F6BFF); }
.ico-green  { background: linear-gradient(135deg, #34D399, #10B981); }
.ico-orange { background: linear-gradient(135deg, #FBBF24, #F59E0B); }
.ico-purple { background: linear-gradient(135deg, #A78BFA, #8B5CF6); }
.ico-cyan   { background: linear-gradient(135deg, #22D3EE, #06B6D4); }
.ico-pink   { background: linear-gradient(135deg, #F472B6, #EC4899); }
.ico-red    { background: linear-gradient(135deg, #F87171, #EF4444); }
.ico-indigo { background: linear-gradient(135deg, #818CF8, #6366F1); }

/* 今日课程时间线 */
.mp-lesson { display: flex; gap: 12px; padding: 12px 0; }
.mp-lesson + .mp-lesson { border-top: 1px dashed #EEF2F7; }
.mp-time {
  width: 56px; flex-shrink: 0; text-align: left;
  font-variant-numeric: tabular-nums;
}
.mp-time .mp-t1 { font-size: 16px; font-weight: 700; color: #0F172A; }
.mp-time .mp-t2 { font-size: 12px; color: #94A3B8; margin-top: 2px; }
.mp-dot {
  width: 9px; height: 9px; border-radius: 50%; margin: 6px 0 0; flex-shrink: 0;
  background: #3B82F6;
}
.mp-lesson-body { flex: 1; min-width: 0; }
.mp-lesson-name { font-size: 15px; font-weight: 700; color: #1E293B; }
.mp-lesson-meta { font-size: 12.5px; color: #94A3B8; margin-top: 4px; display: flex; gap: 10px; flex-wrap: wrap; }
.mp-status {
  flex-shrink: 0; align-self: center;
  font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px;
}
.st-doing { background: #EFF6FF; color: #2563EB; }
.st-todo  { background: #F0FDF4; color: #16A34A; }
.st-done  { background: #F1F5F9; color: #94A3B8; }

/* 学期进度 */
.mp-progress-track { height: 8px; border-radius: 999px; background: #EEF2F7; overflow: hidden; }
.mp-progress-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, #3B82F6, #2F6BFF); }

/* 空态 */
.mp-empty { text-align: center; padding: 60px 24px; color: #94A3B8; }
.mp-empty .mp-empty-ico {
  width: 84px; height: 84px; margin: 0 auto 18px; border-radius: 24px;
  background: linear-gradient(135deg, #EFF6FF, #DBEAFE);
  display: flex; align-items: center; justify-content: center; color: #3B82F6;
}
.mp-empty .mp-empty-ico svg { width: 42px; height: 42px; }
.mp-empty .mp-empty-title { font-size: 16px; font-weight: 700; color: #475569; }
.mp-empty .mp-empty-desc { font-size: 13px; margin-top: 8px; line-height: 1.7; }

/* ---------- 商城 ---------- */
.mp-shop-hero {
  background: linear-gradient(135deg, #F59E0B, #FBBF24);
  color: #fff; border-radius: 16px; padding: 16px 18px;
  margin-bottom: 14px; box-shadow: 0 10px 22px rgba(245,158,11,.28);
  display: flex; align-items: center; justify-content: space-between;
}
.mp-shop-hero .mp-pts-label { font-size: 13px; opacity: .9; }
.mp-shop-hero .mp-pts-num { font-size: 30px; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.1; }
.mp-shop-hero .mp-pts-tag { font-size: 12px; background: rgba(255,255,255,.25); padding: 4px 10px; border-radius: 999px; }
.mp-prod {
  display: flex; gap: 12px; align-items: center;
  background: #fff; border-radius: 14px; padding: 12px; margin-bottom: 10px;
  box-shadow: 0 4px 14px rgba(31,56,120,.06);
  cursor: pointer;
}
.mp-prod:active { opacity: .7; }
.mp-prod-cover {
  width: 60px; height: 60px; border-radius: 12px; flex-shrink: 0;
  background: #F1F5F9; display: flex; align-items: center; justify-content: center;
  font-size: 30px; overflow: hidden;
}
.mp-prod-cover img { width: 100%; height: 100%; object-fit: cover; }
.mp-prod-info { flex: 1; min-width: 0; }
.mp-prod-name { font-size: 15px; font-weight: 700; color: #1E293B; }
.mp-prod-meta { font-size: 12.5px; color: #94A3B8; margin-top: 4px; }
.mp-prod-points { color: #F59E0B; font-weight: 800; font-size: 15px; }
.mp-prod-btn {
  flex-shrink: 0; border: none; cursor: pointer;
  background: linear-gradient(135deg, #FBBF24, #F59E0B); color: #fff;
  font-size: 13px; font-weight: 700; padding: 8px 14px; border-radius: 999px;
}
.mp-prod-btn.is-disabled { background: #E2E8F0; color: #94A3B8; cursor: not-allowed; }

/* ---------- 我的 ---------- */
.mp-me-card {
  background: #fff; border-radius: 16px; padding: 18px 16px;
  box-shadow: 0 8px 24px rgba(31,56,120,.08);
  margin: -40px 14px 14px; position: relative; z-index: 2;
  display: flex; align-items: center; gap: 14px;
}
.mp-me-card .mp-avatar {
  width: 60px; height: 60px; background: linear-gradient(135deg, #60A5FA, #2F6BFF);
  border: none; font-size: 26px;
}
.mp-me-name { font-size: 19px; font-weight: 800; color: #0F172A; display: flex; align-items: center; gap: 8px; }
.mp-me-badge { font-size: 11px; font-weight: 700; color: #2563EB; background: #EFF6FF; padding: 2px 8px; border-radius: 999px; }
.mp-me-id { font-size: 13px; color: #64748B; margin-top: 4px; }
.mp-me-class { font-size: 12.5px; color: #94A3B8; margin-top: 4px; }
.mp-me-stats { display: flex; text-align: center; margin: 0 14px 14px; background: #fff; border-radius: 16px; box-shadow: 0 8px 24px rgba(31,56,120,.08); padding: 16px 8px; }
.mp-me-stats .mp-ms { flex: 1; }
.mp-me-stats .mp-ms + .mp-ms { border-left: 1px solid #EEF2F7; }
.mp-ms-num { font-size: 22px; font-weight: 800; color: #0F172A; font-variant-numeric: tabular-nums; }
.mp-ms-label { font-size: 12px; color: #94A3B8; margin-top: 4px; }
.mp-menu { background: #fff; border-radius: 16px; box-shadow: 0 8px 24px rgba(31,56,120,.08); margin: 0 14px 14px; overflow: hidden; }
.mp-menu-item {
  display: flex; align-items: center; gap: 12px;
  padding: 15px 16px; cursor: pointer; background: none; border: none; width: 100%; text-align: left;
}
.mp-menu-item + .mp-menu-item { border-top: 1px solid #F5F7FB; }
.mp-menu-item:active { background: #F8FAFC; }
.mp-menu-ico {
  width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; color: #fff;
}
.mp-menu-ico svg { width: 19px; height: 19px; }
.mp-menu-label { flex: 1; font-size: 15px; font-weight: 600; color: #1E293B; }
.mp-menu-arrow { color: #CBD5E1; font-size: 18px; }
.mp-logout {
  margin: 6px 14px 0; width: calc(100% - 28px);
  background: #fff; border: 1px solid #FEE2E2; color: #EF4444;
  border-radius: 14px; padding: 14px; font-size: 15px; font-weight: 700; cursor: pointer;
  box-shadow: 0 8px 24px rgba(31,56,120,.06);
}
.mp-logout:active { opacity: .7; }

/* 列表项（成绩/积分/班级 子页复用） */
.mp-list-row {
  display: flex; align-items: center; gap: 12px;
  background: #fff; border-radius: 14px; padding: 13px 14px; margin-bottom: 10px;
  box-shadow: 0 4px 14px rgba(31,56,120,.06);
}
.mp-list-ico { width: 42px; height: 42px; border-radius: 12px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 18px; font-weight: 700; }
.mp-list-main { flex: 1; min-width: 0; }
.mp-list-title { font-size: 15px; font-weight: 700; color: #1E293B; }
.mp-list-sub { font-size: 12.5px; color: #94A3B8; margin-top: 3px; }
.mp-list-val { font-size: 20px; font-weight: 800; color: #2563EB; font-variant-numeric: tabular-nums; flex-shrink: 0; }
.mp-list-val.good { color: #16A34A; }
.mp-list-val.warn { color: #F59E0B; }

/* 子页通用头部（返回 + 标题） */
.mp-subpage { display: none; }
.mp-subpage.active { display: block; animation: mpFade .18s ease; }

/* ---------- 底部 TabBar ---------- */
.mp-tabbar {
  position: absolute; left: 0; right: 0; bottom: 0;
  height: calc(60px + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: #fff;
  border-top: 1px solid #EEF2F7;
  display: flex;
  box-shadow: 0 -4px 20px rgba(15,23,42,.05);
  z-index: 20;
}
.mp-tab {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; color: #94A3B8; cursor: pointer; font-size: 11px; font-weight: 500;
}
.mp-tab svg { width: 23px; height: 23px; }
.mp-tab.active { color: #2F6BFF; font-weight: 700; }

/* ---------- 移动端：全屏（去掉手机框） ---------- */
@media (max-width: 560px) {
  .mp-app { padding: 0; background: var(--mp-bg); }
  .mp-phone {
    width: 100%; height: 100vh; height: 100dvh;
    border-radius: 0;
    box-shadow: none;
  }
  .mp-screen { border-radius: 0; }
}

/* ============================================================
   TDesign 小程序设计规范对齐层（v=20260916r）
   仅覆盖 #mp-app：统一 TDesign token（品牌色/中性色/圆角/字号/
   分割线/NavBar/TabBar/Cell/Grid/Tag/Empty/Button）。类名与 DOM 不变。
   TDesign 移动规范：
     品牌蓝 #0052D9；品牌浅蓝容器 rgba(0,82,217,.10)
     页面背景 #F3F3F3；卡片 #FFFFFF；分割线 rgba(0,0,0,.08)
     文字 主#181818 次#595959 弱#8C8C8C 禁用#BBBBBB
     圆角 卡片 12px、控件 6px（rpx 折算）；TabBar 高 50px + 安全区
   ============================================================ */
.mp-app {
  /* TDesign 色板 */
  --mp-brand: #0052D9;
  --mp-brand-2: #2B6FE6;
  --mp-brand-weak: rgba(0, 82, 217, .10);
  --mp-brand-weak2: rgba(0, 82, 217, .06);
  --mp-bg: #F3F3F3;
  --mp-card: #FFFFFF;
  --mp-line: rgba(0, 0, 0, .08);
  --mp-line-soft: rgba(0, 0, 0, .05);
  --mp-t1: #181818;
  --mp-t2: #595959;
  --mp-t3: #8C8C8C;
  --mp-t4: #BBBBBB;
  --mp-success: #2BA471;
  --mp-warning: #E37318;
  --mp-error: #D54941;
  /* 圆角：卡片 12 / 控件 8 / 胶囊 */
  --mp-r-card: 12px;
  --mp-r-ctrl: 8px;
  background:
    radial-gradient(1200px 600px at 20% -10%, #EAF1FF 0%, rgba(234,241,255,0) 60%),
    radial-gradient(1000px 500px at 110% 10%, #F3ECFF 0%, rgba(243,236,255,0) 55%),
    var(--mp-bg);
}

/* 屏幕底色与页面背景 -> TDesign 中性灰 */
.mp-phone, .mp-screen, .mp-page { background: var(--mp-bg); }

/* ---- 顶部 NavBar（TDesign 导航栏：44px 内容区、标题居中 17px/500） ---- */
.mp-topbar { height: 44px; margin-bottom: 12px; }
.mp-topbar .mp-title { font-size: 17px; font-weight: 500; letter-spacing: .2px; color: #fff; }

/* 问候区：姓名 20px/600，副标题 13px 次要 */
.mp-avatar { width: 50px; height: 50px; }
.mp-greet .mp-hi { font-size: 20px; font-weight: 600; }
.mp-greet .mp-sub { font-size: 13px; color: rgba(255,255,255,.82); }

/* ---- 卡片：白底、12px 圆角、TDesign 淡阴影、分割线 ---- */
.mp-body { margin-top: -36px; padding: 0 12px; }
.mp-card {
  border-radius: var(--mp-r-card);
  padding: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
  margin-bottom: 12px;
}
.mp-sec-title { font-size: 16px; font-weight: 600; color: var(--mp-t1); margin: 2px 0 14px; }
.mp-sec-title::before { width: 3px; height: 15px; border-radius: 2px; background: var(--mp-brand); }
.mp-sec-more { font-size: 13px; color: var(--mp-t3); }

/* 概览数字：大号 600/主色文字，弱化标签 */
.mp-overview .mp-ov + .mp-ov { border-left-color: var(--mp-line); }
.mp-ov .mp-ov-num { font-size: 26px; font-weight: 600; color: var(--mp-t1); }
.mp-ov .mp-ov-label { margin-top: 6px; font-size: 12px; color: var(--mp-t3); }

/* ---- 宫格 Grid（TDesign Grid 4 列，图标 48 圆角 14，标签 12 次要） ---- */
.mp-grid { gap: 20px 8px; }
.mp-grid-ico { width: 48px; height: 48px; border-radius: 14px; box-shadow: none; }
.mp-grid-ico svg { width: 25px; height: 25px; }
.mp-grid-label { font-size: 12px; color: var(--mp-t2); font-weight: 400; }

/* ---- 课程时间线 / Cell ---- */
.mp-lesson + .mp-lesson { border-top-color: var(--mp-line-soft); }
.mp-time .mp-t1 { font-size: 15px; font-weight: 600; color: var(--mp-t1); }
.mp-time .mp-t2 { font-size: 12px; color: var(--mp-t3); }
.mp-dot { width: 8px; height: 8px; background: var(--mp-brand); }
.mp-lesson-name { font-size: 15px; font-weight: 500; color: var(--mp-t1); }
.mp-lesson-meta { font-size: 12px; color: var(--mp-t3); }

/* 状态 Tag（TDesign Tag：浅底深字、4px 圆角、12px） */
.mp-status { font-size: 12px; font-weight: 400; padding: 3px 10px; border-radius: 4px; }
.st-doing { background: var(--mp-brand-weak); color: var(--mp-brand); }
.st-todo  { background: rgba(43,164,113,.10); color: var(--mp-success); }
.st-done  { background: rgba(0,0,0,.05); color: var(--mp-t3); }

/* 进度条 */
.mp-progress-track { height: 6px; background: rgba(0,82,217,.12); }
.mp-progress-fill { background: linear-gradient(90deg, var(--mp-brand-2), var(--mp-brand)); }

/* ---- Empty 空态（TDesign Empty：图标 64、主标题 16/600、说明 13 次要） ---- */
.mp-empty { color: var(--mp-t3); }
.mp-empty .mp-empty-ico {
  width: 72px; height: 72px; border-radius: 20px;
  background: var(--mp-brand-weak2); color: var(--mp-brand);
}
.mp-empty .mp-empty-ico svg { width: 38px; height: 38px; }
.mp-empty .mp-empty-title { font-size: 16px; font-weight: 600; color: var(--mp-t2); }
.mp-empty .mp-empty-desc { font-size: 13px; color: var(--mp-t3); }

/* ---- 商城 ---- */
.mp-shop-hero {
  border-radius: var(--mp-r-card);
  box-shadow: 0 2px 8px rgba(227,115,24,.18);
}
.mp-shop-hero .mp-pts-num { font-size: 28px; font-weight: 600; }
.mp-prod {
  border-radius: var(--mp-r-card); box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.mp-prod-name { font-size: 15px; font-weight: 500; color: var(--mp-t1); }
.mp-prod-meta { font-size: 12px; color: var(--mp-t3); }
.mp-prod-points { font-weight: 600; }
.mp-prod-cover { border-radius: var(--mp-r-ctrl); }
.mp-prod-btn {
  font-weight: 500; padding: 7px 16px; border-radius: var(--mp-r-ctrl); font-size: 13px;
}
.mp-prod-btn.is-disabled { background: rgba(0,0,0,.05); color: var(--mp-t4); }

/* ---- 我的 ---- */
.mp-me-card {
  border-radius: var(--mp-r-card); box-shadow: 0 1px 3px rgba(0,0,0,.04);
  margin: -36px 12px 12px; padding: 18px 16px;
}
.mp-me-name { font-size: 19px; font-weight: 600; color: var(--mp-t1); }
.mp-me-badge { font-weight: 500; color: var(--mp-brand); background: var(--mp-brand-weak); border-radius: 4px; padding: 2px 8px; }
.mp-me-id { font-size: 13px; color: var(--mp-t2); }
.mp-me-class { font-size: 12px; color: var(--mp-t3); }
.mp-me-stats {
  margin: 0 12px 12px; border-radius: var(--mp-r-card);
  box-shadow: 0 1px 3px rgba(0,0,0,.04); padding: 16px 8px;
}
.mp-me-stats .mp-ms + .mp-ms { border-left-color: var(--mp-line); }
.mp-ms-num { font-size: 22px; font-weight: 600; color: var(--mp-t1); }
.mp-ms-label { font-size: 12px; color: var(--mp-t3); }

/* Cell 菜单列表（TDesign Cell：分割线 inset、箭头 chevron、按压浅灰） */
.mp-menu { border-radius: var(--mp-r-card); box-shadow: 0 1px 3px rgba(0,0,0,.04); margin: 0 12px 12px; }
.mp-menu-item { padding: 15px 16px; }
.mp-menu-item + .mp-menu-item { border-top-color: var(--mp-line-soft); }
.mp-menu-item:active { background: #F5F5F5; }
.mp-menu-ico { width: 32px; height: 32px; border-radius: var(--mp-r-ctrl); }
.mp-menu-label { font-size: 15px; font-weight: 400; color: var(--mp-t1); }
.mp-menu-arrow { color: var(--mp-t4); }
.mp-logout {
  margin: 6px 12px 0; width: calc(100% - 24px);
  border-radius: var(--mp-r-card); border: 1px solid rgba(213,73,65,.2);
  color: var(--mp-error); font-weight: 500; box-shadow: 0 1px 3px rgba(0,0,0,.04);
}

/* 列表行（成绩/积分/班级）Cell 化 */
.mp-list-row { border-radius: var(--mp-r-card); box-shadow: 0 1px 3px rgba(0,0,0,.04); padding: 14px; }
.mp-list-ico { border-radius: var(--mp-r-ctrl); }
.mp-list-title { font-size: 15px; font-weight: 500; color: var(--mp-t1); }
.mp-list-sub { font-size: 12px; color: var(--mp-t3); }
.mp-list-val { font-size: 20px; font-weight: 600; color: var(--mp-brand); }
.mp-list-val.good { color: var(--mp-success); }
.mp-list-val.warn { color: var(--mp-warning); }

/* ---- TabBar（TDesign TabBar：高 50px + 安全区、图标 24、激活品牌蓝） ---- */
.mp-tabbar {
  height: calc(50px + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  border-top: 1px solid var(--mp-line);
  box-shadow: 0 -1px 4px rgba(0,0,0,.03);
}
.mp-tab { gap: 2px; font-size: 10px; font-weight: 400; color: var(--mp-t3); }
.mp-tab svg { width: 24px; height: 24px; }
.mp-tab.active { color: var(--mp-brand); font-weight: 500; }

/* 按压反馈统一 150ms */
.mp-grid-item, .mp-menu-item, .mp-prod, .mp-tab, .mp-sec-more { transition: opacity .15s ease, background .15s ease, color .15s ease; }

/* ---- 学生端独立入口：登录落地页（TDesign 风格移动端登录） ---- */
.login-page.mp-student-entry {
  background: linear-gradient(180deg, #2B6FE6 0%, #0052D9 42%, #F3F3F3 42%, #F3F3F3 100%);
  align-items: flex-start;
  padding: 0 20px;
}
.login-page.mp-student-entry .login-container {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  padding-top: calc(env(safe-area-inset-top, 0px) + 56px);
}
.login-page.mp-student-entry .login-header { margin-bottom: 28px; }
.login-page.mp-student-entry .login-title {
  color: #fff; font-size: 26px; font-weight: 700; letter-spacing: 1px;
}
.login-page.mp-student-entry .login-subtitle { color: rgba(255,255,255,.85); }
/* 仅保留学生卡片，TDesign 白底圆角、整卡可点 */
.login-page.mp-student-entry .login-cards { display: block; }
.login-page.mp-student-entry .login-card {
  margin-bottom: 16px;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0,82,217,.12);
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.login-page.mp-student-entry .login-card:active { transform: scale(.98); }
.login-page.mp-student-entry .login-card-student {
  border-top: 4px solid var(--mp-brand, #0052D9);
}
.login-page.mp-student-entry .login-footer { color: var(--mp-t3, #8C8C8C); }

/* ===== 学情档案子页（v=20260916t，对接教师端学生档案） ===== */
/* 2×2 核心指标卡 */
.mp-stat-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  margin: 14px 16px 0;
}
.mp-stat {
  border-radius: 14px; padding: 16px 14px; color: #fff;
  display: flex; flex-direction: column; gap: 4px;
  box-shadow: 0 6px 16px rgba(31,56,120,.12);
}
.mp-stat-num { font-size: 26px; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.mp-stat-label { font-size: 12px; opacity: .92; }
.mp-stat-gold   { background: linear-gradient(135deg,#FBBF24,#F59E0B); }
.mp-stat-blue   { background: linear-gradient(135deg,#3B82F6,#0052D9); }
.mp-stat-green  { background: linear-gradient(135deg,#34D399,#10B981); }
.mp-stat-purple { background: linear-gradient(135deg,#A78BFA,#7C3AED); }

/* 积分分类 / 最近打卡 两列（窄屏自动堆叠） */
.mp-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 16px; }
#mp-app .mp-cols .mp-card { padding: 14px; }
#mp-app .mp-cols .mp-sec-title { font-size: 14px; margin-bottom: 6px; }
@media (max-width: 340px) {
  .mp-cols { grid-template-columns: 1fr; }
}

/* ===== v=20260916u 商品详情 / 兑换记录 / 提示条 / 兑换按钮 / toast ===== */
.mp-prod-detail-cover {
  width: 100%; height: 180px; border-radius: 12px; overflow: hidden;
  background: linear-gradient(135deg,#EFF6FF,#DBEAFE);
  display: flex; align-items: center; justify-content: center; font-size: 64px;
}
.mp-prod-detail-cover img { width: 100%; height: 100%; object-fit: cover; }
.mp-tip {
  margin: 0 16px 12px; padding: 11px 14px; border-radius: 10px;
  font-size: 13px; line-height: 1.6; border-left: 3px solid;
}
.mp-tip-blue { background: rgba(0,82,217,.08); color: #0052D9; border-color: #0052D9; }
.mp-tip-red  { background: rgba(213,73,65,.08); color: #D54941; border-color: #D54941; }
.mp-tip-gray { background: #F3F3F3; color: #8C8C8C; border-color: #BBBBBB; }
.mp-redeem-btn {
  display: block; width: calc(100% - 32px); margin: 4px 16px 20px;
  padding: 13px; border: none; border-radius: 10px;
  background: linear-gradient(135deg,#3B82F6,#0052D9); color: #fff;
  font-size: 16px; font-weight: 700; cursor: pointer;
  box-shadow: 0 6px 16px rgba(0,82,217,.28); transition: transform .15s, box-shadow .15s, opacity .15s;
}
.mp-redeem-btn:active { transform: scale(.98); }
.mp-redeem-btn.is-disabled, .mp-redeem-btn:disabled {
  background: #E5E7EB; color: #9CA3AF; box-shadow: none; cursor: not-allowed;
}
/* 小程序轻提示 toast */
.mp-toast {
  position: absolute; left: 50%; top: 42%; transform: translate(-50%,-50%);
  max-width: 80%; padding: 12px 20px; border-radius: 10px;
  background: rgba(24,24,24,.88); color: #fff; font-size: 14px; line-height: 1.5;
  text-align: center; z-index: 1000; opacity: 0; pointer-events: none;
  transition: opacity .2s; box-shadow: 0 8px 24px rgba(0,0,0,.2);
}
.mp-toast.show { opacity: 1; }
.mp-toast[data-type="error"] { background: rgba(213,73,65,.92); }

/* ===== v=20260916w 强制隐藏 Web 端穿透的汉堡菜单/版本角标（body.mp-chrome-hidden 由小程序 JS 标记） ===== */
body.mp-chrome-hidden #mobile-nav-toggle,
body.mp-chrome-hidden #mobile-nav-overlay,
body.mp-chrome-hidden #app-version-badge { display: none !important; }

/* ===== v=20260916w 学情档案（对接学生成长档案，taste 白卡 + 品牌蓝点缀） ===== */
.mp-grow-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; }
.mp-grow-avatar {
  width: 54px; height: 54px; border-radius: 50%; flex-shrink: 0;
  background: #2563EB; color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 800;
}
.mp-grow-meta { font-size: 12px; color: #64748B; margin-top: 3px; line-height: 1.5; }
/* 6 项指标：白卡 2 列，中性标题 + 彩色数据字（去彩虹实色卡） */
.mp-gmetric-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 12px 16px; }
@media (max-width: 340px) { .mp-gmetric-grid { grid-template-columns: repeat(2, 1fr); } }
.mp-gmetric {
  background: #fff; border-radius: 12px; padding: 13px 10px;
  border: 1px solid rgba(0,0,0,.06); box-shadow: 0 1px 2px rgba(15,23,42,.04);
}
.mp-gmetric-num { font-size: 21px; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.mp-gmetric-label { font-size: 12.5px; font-weight: 600; color: #181818; margin-top: 5px; }
.mp-gmetric-sub { font-size: 10.5px; color: #9CA3AF; margin-top: 2px; }
.mp-sec-sub { float: right; font-size: 12px; font-weight: 500; color: #9CA3AF; }
/* 雷达图图例 */
.mp-radar-legend { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 12px; color: #64748B; margin-top: 8px; }
.mp-rl-dot { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
/* 学科得分概览横向条形 */
.mp-ov-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid rgba(0,0,0,.04); }
.mp-ov-row:last-child { border-bottom: none; }
.mp-ov-label { width: 84px; flex-shrink: 0; font-size: 13px; font-weight: 700; color: #334155; }
.mp-ov-tag { display: inline-block; font-size: 10px; font-weight: 500; color: #B0B7C3; margin-left: 4px; }
.mp-ov-track { flex: 1; position: relative; height: 10px; background: #F1F5F9; border-radius: 999px; overflow: hidden; }
.mp-ov-cls { position: absolute; left: 0; top: 0; height: 100%; background: #CBD5E1; border-radius: 999px; }
.mp-ov-mine { position: absolute; left: 0; top: 0; height: 100%; background: #2563EB; border-radius: 999px; min-width: 3px; }
.mp-ov-val { width: 84px; flex-shrink: 0; text-align: right; font-size: 12.5px; font-variant-numeric: tabular-nums; display: flex; gap: 4px; justify-content: flex-end; }

/* ============================================================
   v=20260916x · taste-skill 动效工程（emil-design-eng）
   仅作用 #mp-app；不动 DOM/业务逻辑。只动 transform/opacity，
   统一 150-180ms + 自定义缓动，按压有反馈，悬停门控，reduced-motion 兜底。
   ============================================================ */
#mp-app {
  --mp-ease-out: cubic-bezier(0.23, 1, 0.32, 1);      /* 强 ease-out：进出场 */
  --mp-ease-press: cubic-bezier(0.32, 0.72, 0, 1);    /* iOS 式按压 */
}
/* 页面切换：自定义 ease-out，translateY 入场更"贴手" */
#mp-app .mp-page.active { animation: mpPageIn .26s var(--mp-ease-out) both; }
#mp-app .mp-subpage.active { animation: mpPageIn .26s var(--mp-ease-out) both; }
@keyframes mpPageIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
/* 覆盖旧 mpFade，统一到新曲线/时长 */
@keyframes mpFade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* —— 可按压元素：按下立即给反馈（scale .97，仅 transform，120-160ms） —— */
#mp-app .mp-grid-item,
#mp-app .mp-prod,
#mp-app .mp-menu-item,
#mp-app .mp-logout,
#mp-app .mp-sec-more,
#mp-app .mp-prod-btn,
#mp-app .mp-tab,
#mp-app .mp-list-row {
  transition: transform .15s var(--mp-ease-press), background-color .15s ease, color .15s ease, opacity .15s ease;
  -webkit-tap-highlight-color: transparent;
}
#mp-app .mp-grid-item:active  { transform: scale(.96); opacity: 1; }
#mp-app .mp-prod:active       { transform: scale(.98); opacity: 1; }
#mp-app .mp-menu-item:active  { transform: scale(.99); }
#mp-app .mp-logout:active     { transform: scale(.98); }
#mp-app .mp-sec-more:active,
#mp-app .mp-tab:active        { transform: scale(.94); opacity: .8; }
#mp-app .mp-back:active       { scale: .92; }
#mp-app .mp-list-row:active   { transform: scale(.99); }
/* 返回钮基样式（原内联样式沉淀为类，便于统一按压反馈） */
#mp-app .mp-back {
  position: absolute; left: 18px; top: 50%;
  transform: translateY(-50%);
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,.16);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: scale .14s var(--mp-ease-press);
  -webkit-tap-highlight-color: transparent;
}
/* 主按钮：按压回弹（已有 scale(.98) 保留，统一曲线与时长） */
#mp-app .mp-redeem-btn { transition: transform .15s var(--mp-ease-press), opacity .15s ease; }
#mp-app .mp-redeem-btn:active { transform: scale(.975); }

/* —— 桌面预览（手机框）下的悬停：仅在支持 hover 的设备做极轻抬升 —— */
@media (hover: hover) and (pointer: fine) {
  #mp-app .mp-grid-item:hover { transform: translateY(-2px); }
  #mp-app .mp-prod:hover     { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(15,23,42,.08); }
  #mp-app .mp-menu-item:hover { background: #F8FAFC; }
}

/* —— 首页宫格入场 stagger：30ms 递增，仅淡入（translate 交给页面级入场，
      避免 forwards 填充的 transform 覆盖 :active 按压缩放），极短不挡操作 —— */
#mp-app .mp-grid .mp-grid-item {
  opacity: 0;
  animation: mpStagger .3s var(--mp-ease-out) forwards;
}
#mp-app .mp-grid .mp-grid-item:nth-child(1) { animation-delay: 20ms; }
#mp-app .mp-grid .mp-grid-item:nth-child(2) { animation-delay: 50ms; }
#mp-app .mp-grid .mp-grid-item:nth-child(3) { animation-delay: 80ms; }
#mp-app .mp-grid .mp-grid-item:nth-child(4) { animation-delay: 110ms; }
#mp-app .mp-grid .mp-grid-item:nth-child(5) { animation-delay: 140ms; }
#mp-app .mp-grid .mp-grid-item:nth-child(6) { animation-delay: 170ms; }
#mp-app .mp-grid .mp-grid-item:nth-child(7) { animation-delay: 200ms; }
#mp-app .mp-grid .mp-grid-item:nth-child(8) { animation-delay: 230ms; }
@keyframes mpStagger { from { opacity: 0; } to { opacity: 1; } }

/* —— toast：进出场同方向、ease、用 transition 可打断（不新增 keyframe 依赖） —— */
#mp-app .mp-toast { transition: opacity .2s ease, transform .2s var(--mp-ease-out); }
#mp-app .mp-toast:not(.show) { transform: translate(-50%, -46%); }
#mp-app .mp-toast.show       { transform: translate(-50%, -50%); }

/* —— prefers-reduced-motion：去掉位移/缩放/入场 stagger，仅保留极短透明度过渡 —— */
@media (prefers-reduced-motion: reduce) {
  #mp-app .mp-page.active,
  #mp-app .mp-subpage.active { animation: none; opacity: 1; transform: none; }
  #mp-app .mp-grid .mp-grid-item { animation: none; opacity: 1; transform: none; }
  #mp-app .mp-grid-item:active,
  #mp-app .mp-prod:active,
  #mp-app .mp-menu-item:active,
  #mp-app .mp-logout:active,
  #mp-app .mp-tab:active,
  #mp-app .mp-back:active,
  #mp-app .mp-redeem-btn:active,
  #mp-app .mp-list-row:active { transform: none; }
  #mp-app .mp-grid-item, #mp-app .mp-prod, #mp-app .mp-menu-item,
  #mp-app .mp-redeem-btn, #mp-app .mp-tab, #mp-app .mp-toast { transition: opacity .12s ease; }
}

/* ============================================================
   v=20260916z 我的课表（周历横滑 / 月历多行多列 + 课次卡片）
   ============================================================ */
.mp-sch-top { display: flex; align-items: center; justify-content: space-between; }
.mp-sch-term { display: inline-flex; align-items: center; gap: 6px; font-size: 14.5px; font-weight: 800; color: #181818; }
.mp-sch-term svg { width: 17px; height: 17px; color: #0052D9; }
.mp-sch-toggle {
  border: 1px solid rgba(0,82,217,.25); background: rgba(0,82,217,.08); color: #0052D9;
  font-size: 12.5px; font-weight: 700; padding: 5px 12px; border-radius: 999px; cursor: pointer;
  transition: transform .15s var(--mp-ease-press,cubic-bezier(.32,.72,0,1)), opacity .15s;
}
.mp-sch-toggle:active { transform: scale(.94); opacity: .85; }

/* 周历：可左右滑动 */
.mp-sch-weeknav { display: flex; align-items: center; gap: 4px; margin-top: 12px; }
.mp-sch-arrow {
  flex: 0 0 auto; width: 30px; height: 30px; border: none; background: #F1F5F9; color: #475569;
  border-radius: 10px; font-size: 20px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: transform .15s var(--mp-ease-press,cubic-bezier(.32,.72,0,1)), background .15s;
}
.mp-sch-arrow:active { transform: scale(.9); background: #E2E8F0; }
.mp-sch-week {
  flex: 1; display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px;
  overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: 2px;
}
.mp-sch-week::-webkit-scrollbar { display: none; }
.mp-sch-day {
  min-width: 38px; border: none; background: transparent; cursor: pointer; border-radius: 12px;
  padding: 7px 2px 6px; display: flex; flex-direction: column; align-items: center; gap: 3px;
  transition: transform .15s var(--mp-ease-press,cubic-bezier(.32,.72,0,1)), background .15s;
}
.mp-sch-day:active { transform: scale(.92); }
.mp-sch-wd { font-size: 11px; color: #8C8C8C; }
.mp-sch-dnum { font-size: 17px; font-weight: 700; color: #181818; font-variant-numeric: tabular-nums; line-height: 1.1; }
.mp-sch-dot { width: 5px; height: 5px; border-radius: 50%; margin-top: 1px; }
.mp-sch-day.today .mp-sch-wd { color: #0052D9; font-weight: 700; }
.mp-sch-day.today .mp-sch-dnum { color: #0052D9; }
.mp-sch-day.sel { background: #0052D9; }
.mp-sch-day.sel .mp-sch-wd, .mp-sch-day.sel .mp-sch-dnum { color: #fff; }
.mp-sch-day.sel .mp-sch-dot { background: #fff !important; }

/* 月历：多行多列 */
.mp-sch-monthnav { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; }
.mp-sch-mtitle { font-size: 15px; font-weight: 800; color: #181818; font-variant-numeric: tabular-nums; }
.mp-mcal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; margin-top: 10px; }
.mp-mcal-wd { text-align: center; font-size: 11px; color: #8C8C8C; padding: 4px 0; }
.mp-mcal-cell {
  position: relative; border: none; background: transparent; cursor: pointer; border-radius: 10px;
  aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; padding: 0;
  transition: transform .15s var(--mp-ease-press,cubic-bezier(.32,.72,0,1)), background .15s;
}
.mp-mcal-cell.blank { cursor: default; }
.mp-mcal-cell:active { transform: scale(.9); }
.mp-mcal-num { font-size: 14px; font-weight: 600; color: #181818; font-variant-numeric: tabular-nums; }
.mp-mcal-dot { position: absolute; bottom: 5px; left: 50%; transform: translateX(-50%); width: 5px; height: 5px; border-radius: 50%; }
.mp-mcal-cell.today .mp-mcal-num { color: #0052D9; font-weight: 800; }
.mp-mcal-cell.sel { background: #0052D9; }
.mp-mcal-cell.sel .mp-mcal-num { color: #fff; }
.mp-mcal-cell.sel .mp-mcal-dot { background: #fff !important; }

/* 选中日期标题 */
.mp-sch-daylabel { padding: 4px 18px 8px; font-size: 13.5px; font-weight: 700; color: #595959; }
.mp-sch-count { font-size: 12px; color: #0052D9; font-weight: 700; margin-left: 4px; }

/* 课次卡片 */
.mp-ls-card {
  position: relative; background: #fff; border-radius: 12px; margin: 0 16px 12px;
  padding: 14px 14px 14px 16px; display: flex; align-items: stretch; gap: 14px;
  border-left: 4px solid #0052D9; box-shadow: 0 1px 3px rgba(15,23,42,.06);
}
.mp-ls-time { flex: 0 0 auto; width: 60px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.mp-ls-t1, .mp-ls-t2 { font-size: 16px; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.15; }
.mp-ls-sep { font-size: 13px; font-weight: 700; opacity: .5; }
.mp-ls-body { flex: 1; min-width: 0; }
.mp-ls-name { font-size: 15.5px; font-weight: 800; color: #181818; line-height: 1.3; }
.mp-ls-meta { font-size: 12.5px; color: #8C8C8C; margin-top: 6px; line-height: 1.6; }
.mp-ls-tag {
  flex: 0 0 auto; align-self: flex-start; font-size: 11.5px; font-weight: 700;
  padding: 3px 9px; border-radius: 999px; white-space: nowrap;
}
.mp-ls-done {
  position: absolute; right: 12px; bottom: 10px; font-size: 10.5px; font-weight: 700;
  color: #2BA471; background: rgba(43,164,113,.12); padding: 2px 7px; border-radius: 6px;
}

@media (prefers-reduced-motion: reduce) {
  .mp-sch-toggle, .mp-sch-arrow, .mp-sch-day, .mp-mcal-cell { transition: opacity .12s ease; }
  .mp-sch-toggle:active, .mp-sch-arrow:active, .mp-sch-day:active, .mp-mcal-cell:active { transform: none; }
}

/* ===== v=20260916z 商城卡片式布局 + 商品封面图修复 ===== */
/* 两列商品卡片网格 */
.mp-prod-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
  padding: 2px 16px 8px;
}
.mp-prod-card {
  background: #fff; border-radius: 14px; overflow: hidden;
  box-shadow: 0 1px 3px rgba(15,23,42,.06);
  display: flex; flex-direction: column;
  transition: transform .15s var(--mp-ease-press,cubic-bezier(.32,.72,0,1)), box-shadow .15s;
}
.mp-prod-card:active { transform: scale(.97); }
.mp-prod-card.is-soldout { opacity: .62; }
@media (hover: hover) and (pointer: fine) {
  .mp-prod-card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(15,23,42,.08); }
}
.mp-prod-card-cover {
  position: relative; width: 100%; aspect-ratio: 1 / 1;
  background: linear-gradient(135deg,#EFF6FF,#DBEAFE);
  display: flex; align-items: center; justify-content: center; font-size: 52px; overflow: hidden;
}
.mp-prod-card-name {
  font-size: 14.5px; font-weight: 800; color: #181818;
  padding: 10px 12px 0; line-height: 1.35;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mp-prod-card-meta {
  display: flex; align-items: center; justify-content: space-between;
  padding: 5px 12px 10px;
}
.mp-prod-stock { font-size: 11.5px; color: #9CA3AF; }
.mp-prod-card .mp-prod-points { font-size: 15px; }
.mp-prod-card-btn {
  margin: 0 12px 12px; padding: 9px 0; border: none; border-radius: 10px;
  background: #0052D9; color: #fff; font-size: 14px; font-weight: 800; cursor: pointer;
  transition: transform .15s var(--mp-ease-press,cubic-bezier(.32,.72,0,1)), background .15s, opacity .15s;
}
.mp-prod-card-btn:active { transform: scale(.96); }
.mp-prod-card-btn.is-disabled { background: #E2E8F0; color: #94A3B8; cursor: not-allowed; }

/* 封面图片统一铺满 + emoji 占位兜底（列表与详情共用） */
.mp-cover-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mp-cover-emoji { background: linear-gradient(135deg,#EFF6FF,#DBEAFE); }
.mp-prod-detail-cover.mp-cover-emoji { background: linear-gradient(135deg,#EFF6FF,#DBEAFE); }

/* 商品详情富文本内嵌图片：限宽圆角，防撑破 */
.mp-prod-rich { font-size: 13.5px; line-height: 1.8; color: #475569; word-break: break-word; }
.mp-prod-rich img { max-width: 100%; height: auto; border-radius: 10px; margin: 8px 0; display: block; }
.mp-prod-rich img[data-shop-skey] { background: #F1F5F9; min-height: 80px; }

@media (prefers-reduced-motion: reduce) {
  .mp-prod-card, .mp-prod-card-btn { transition: opacity .12s ease; }
  .mp-prod-card:active, .mp-prod-card-btn:active { transform: none; }
}

/* ===== v=20260916za 积分商城卡片效果精修 ===== */
/* 积分 hero 更有质感（克制深靛 + 暖金数字） */
.mp-shop-hero {
  background: linear-gradient(135deg, #12244D 0%, #0E2A55 100%);
  border-radius: 16px; padding: 18px 20px; margin: -46px 16px 18px;
  position: relative; box-shadow: 0 10px 24px rgba(18,36,77,.26);
  display: flex; align-items: center; justify-content: space-between;
}
.mp-shop-hero .mp-pts-label { color: rgba(255,255,255,.82); font-size: 12.5px; font-weight: 600; }
.mp-shop-hero .mp-pts-num { color: #FFD57A; font-size: 30px; font-weight: 800; margin-top: 4px; font-variant-numeric: tabular-nums; }
.mp-shop-hero .mp-pts-tag {
  background: rgba(255,255,255,.16); color: #fff; border: none;
  padding: 8px 14px; border-radius: 999px; font-size: 12.5px; font-weight: 700;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.mp-shop-hero .mp-pts-tag:active { transform: scale(.95); background: rgba(255,255,255,.28); }

/* 卡片网格加大间距 */
.mp-prod-grid { gap: 14px; padding: 2px 16px 12px; }
.mp-prod-card {
  border-radius: 16px; border: 1px solid rgba(15,23,42,.05);
  box-shadow: 0 2px 10px rgba(15,23,42,.06);
}
/* 封面更大、顶部圆角、底部留白 */
.mp-prod-card-cover {
  border-radius: 0; font-size: 56px;
  border-bottom: 1px solid rgba(15,23,42,.05);
}
/* 商品名：两行省略，更高可读性 */
.mp-prod-card-name {
  font-size: 14px; font-weight: 700; color: #181818;
  padding: 11px 13px 0; line-height: 1.4; min-height: 44px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  white-space: normal; overflow: hidden; text-overflow: ellipsis;
}
.mp-prod-card-meta { padding: 8px 13px 10px; }
/* 积分价格：品牌色高亮，突出“可兑换” */
.mp-prod-card .mp-prod-points {
  font-size: 17px; font-weight: 800; color: #E87613;
  display: inline-flex; align-items: center; gap: 2px;
}
.mp-prod-card .mp-prod-points::before { content: ""; }
.mp-prod-stock { font-size: 11px; color: #9CA3AF; }
/* 兑换按钮：品牌蓝实色，整宽，按压缩放 */
.mp-prod-card-btn {
  margin: 0 13px 13px; padding: 10px 0; border-radius: 10px;
  background: #0052D9; color: #fff; font-size: 14px; font-weight: 700;
}
.mp-prod-card-btn.is-disabled { background: #F1F5F9; color: #94A3B8; }
.mp-prod-card.is-soldout .mp-prod-card-btn { background: #F1F5F9; color: #B6BCC6; }

@media (prefers-reduced-motion: reduce) {
  .mp-prod-card, .mp-prod-card-btn, .mp-pts-tag { transition: opacity .12s ease; }
}

/* ============================================================
   v=20260916zd · 积分商城「马卡龙糖果风」（按用户参考图）
   商品图片用管理端上传真实图（JS 已修）；本层只改商城视觉：
   淡紫粉蓝渐变背景、奶油色积分卡、圆角厚边框马卡龙商品卡、
   品牌蓝胶囊兑换钮、宝箱+星星装饰。
   ============================================================ */

/* 商城 tab 顶部 hero：淡紫→淡粉→淡蓝的马卡龙渐变（仅商城主页面，不含详情/订单子页） */
#mp-app .mp-ctx-shop .mp-hero {
  background: linear-gradient(160deg, #C9D4F7 0%, #E6D3F5 38%, #F6D7E8 66%, #CFE7F4 100%) !important;
  padding-bottom: 84px !important;
}
#mp-app .mp-ctx-shop .mp-hero .mp-title { color: #4A4466; }
#mp-app .mp-ctx-shop .mp-hero .mp-bell { color: #5B5574; }

/* 商城内容区背景奶白 */
#mp-app .mp-ctx-shop { background: #F7F6FB; }

/* 装饰：宝箱 + 星星（绝对定位在积分卡上方） */
.mp-shop-deco { position: relative; height: 0; margin: 0 16px; pointer-events: none; z-index: 3; }
.mp-deco-box {
  position: absolute; top: -74px; left: 4px; font-size: 52px;
  filter: drop-shadow(0 6px 10px rgba(124,108,180,.35));
  animation: mpFloat 3.2s ease-in-out infinite;
}
.mp-deco-star { position: absolute; font-size: 18px; opacity: .9; animation: mpTwinkle 2.6s ease-in-out infinite; }
.mp-deco-star.s1 { top: -64px; right: 26px; font-size: 34px; animation-delay: .2s; }
.mp-deco-star.s2 { top: -40px; right: 78px; font-size: 16px; animation-delay: .8s; }
.mp-deco-star.s3 { top: -22px; left: 120px; font-size: 20px; animation-delay: 1.3s; }
.mp-deco-star.s4 { top: -58px; left: 210px; font-size: 15px; animation-delay: .5s; }
@keyframes mpFloat { 0%,100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-6px) rotate(3deg); } }
@keyframes mpTwinkle { 0%,100% { transform: scale(.9); opacity: .65; } 50% { transform: scale(1.15); opacity: 1; } }

/* 积分卡：奶油白→淡金渐变、圆润大圆角、柔和暖色阴影 */
.mp-shop-hero {
  background: linear-gradient(135deg, #DCE9FF 0%, #FFF3D6 55%, #FDE3EF 100%) !important;
  border-radius: 22px !important;
  padding: 20px 22px !important;
  margin: -30px 16px 18px !important;
  position: relative; z-index: 2;
  box-shadow: 0 12px 28px rgba(150,140,200,.28) !important;
  border: 2px solid rgba(255,255,255,.7);
  display: flex; align-items: center; justify-content: space-between;
}
.mp-shop-hero .mp-pts-label { color: #8A85A6 !important; font-size: 13px !important; font-weight: 700; }
.mp-shop-hero .mp-pts-num { color: #F5A623 !important; font-size: 32px !important; font-weight: 800; margin-top: 4px; text-shadow: 0 1px 0 rgba(255,255,255,.6); }
.mp-shop-hero .mp-pts-tag {
  background: rgba(255,255,255,.75) !important; color: #7A729A !important;
  border: 1.5px solid rgba(150,140,200,.25);
  padding: 9px 16px !important; border-radius: 999px; font-size: 13px !important; font-weight: 700;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.mp-shop-hero .mp-pts-tag:active { transform: scale(.95); background: rgba(255,255,255,.95); }

/* 商品网格：两列，间距更舒展 */
.mp-prod-grid { gap: 15px !important; padding: 4px 16px 16px !important; }

/* 商品卡：马卡龙淡彩底 + 白色厚边框 + 圆润大圆角 + 柔和彩色阴影（nth 轮换淡彩） */
.mp-prod-card {
  border-radius: 22px !important;
  border: 3px solid #FFFFFF !important;
  background: linear-gradient(160deg, #FFF6F0 0%, #FDECE4 100%) !important;
  box-shadow: 0 6px 16px rgba(244,178,150,.28) !important;
  padding: 0 0 12px !important; overflow: hidden; position: relative;
}
.mp-prod-grid .mp-prod-card:nth-child(4n+2) { background: linear-gradient(160deg, #EFFBE9 0%, #E2F5DA 100%) !important; box-shadow: 0 6px 16px rgba(150,205,130,.26) !important; }
.mp-prod-grid .mp-prod-card:nth-child(4n+3) { background: linear-gradient(160deg, #FDEEF6 0%, #FBDDF0 100%) !important; box-shadow: 0 6px 16px rgba(236,158,200,.26) !important; }
.mp-prod-grid .mp-prod-card:nth-child(4n+4) { background: linear-gradient(160deg, #EAF4FF 0%, #DCEDFD 100%) !important; box-shadow: 0 6px 16px rgba(130,180,235,.26) !important; }
@media (hover:hover) and (pointer:fine) {
  .mp-prod-card:hover { transform: translateY(-3px); box-shadow: 0 12px 24px rgba(150,140,200,.30) !important; }
}
.mp-prod-card:active { transform: scale(.97); }
.mp-prod-card.is-soldout { opacity: .6; filter: grayscale(.25); }

/* 封面：内嵌白色圆角画框，真实商品图完整展示（object-fit:contain 白底，不裁切） */
.mp-prod-card-cover {
  border-radius: 0 !important; border: none !important;
  background: rgba(255,255,255,.55) !important;
  padding: 10px; margin: 0; height: 150px !important;
}
.mp-prod-card-cover .mp-cover-img,
.mp-prod-card-cover img {
  border-radius: 14px; object-fit: contain !important; background: #fff;
  width: 100%; height: 100%; display: block;
}
.mp-prod-card-cover.mp-cover-emoji {
  border-radius: 14px !important; margin: 10px; height: 130px !important;
  font-size: 52px; background: rgba(255,255,255,.7) !important;
}

/* 商品名：深色粗体，左对齐 */
.mp-prod-card-name {
  font-size: 15px !important; font-weight: 800 !important; color: #33304A !important;
  padding: 10px 14px 2px !important; min-height: 0 !important; line-height: 1.35 !important;
  -webkit-line-clamp: 1;
}
.mp-prod-card-meta { padding: 4px 14px 10px !important; display: flex; align-items: center; justify-content: space-between; }
.mp-prod-card .mp-prod-points {
  font-size: 19px !important; font-weight: 800 !important; color: #F5A623 !important;
}
.mp-prod-stock { font-size: 11px !important; color: #A7A1C0 !important; font-weight: 600; }

/* 兑换钮：品牌蓝实心胶囊（参考图样式），整宽 */
.mp-prod-card-btn {
  margin: 0 14px !important; padding: 10px 0 !important; border-radius: 999px !important;
  background: linear-gradient(135deg, #3E7BFA 0%, #2E63E0 100%) !important;
  color: #fff !important; font-size: 14px !important; font-weight: 700;
  box-shadow: 0 4px 10px rgba(62,123,250,.35); border: none;
}
.mp-prod-card-btn:active { transform: scale(.96); }
.mp-prod-card-btn.is-disabled,
.mp-prod-card.is-soldout .mp-prod-card-btn {
  background: #ECEAF4 !important; color: #B0AAC8 !important; box-shadow: none;
}

/* 详情页封面同步马卡龙画框 */
.mp-prod-detail-cover { border-radius: 18px !important; background: #fff !important; border: 3px solid #fff !important; box-shadow: 0 6px 18px rgba(150,140,200,.22); }
.mp-prod-detail-cover .mp-cover-img, .mp-prod-detail-cover img { object-fit: contain !important; background: #fff; }

@media (prefers-reduced-motion: reduce) {
  .mp-deco-box, .mp-deco-star { animation: none !important; }
  .mp-prod-card, .mp-prod-card-btn, .mp-pts-tag { transition: opacity .12s ease; }
}

/* ========== v=20260916zf 英语发音打卡 ========== */
#mp-app .mp-task-card {
  display: flex; align-items: center; gap: 12px;
  background: linear-gradient(135deg, #EEF2FF 0%, #FDF2F8 55%, #E0F2FE 100%);
  border: 2.5px solid rgba(255,255,255,.9);
  border-radius: 22px; padding: 16px; margin-bottom: 14px;
  box-shadow: 0 10px 26px rgba(124,108,240,.18);
  cursor: pointer; transition: transform .15s var(--mp-ease-press, cubic-bezier(.32,.72,0,1));
  -webkit-tap-highlight-color: transparent;
}
#mp-app .mp-task-card:active { transform: scale(.97); }
#mp-app .mp-task-ico {
  width: 52px; height: 52px; flex: 0 0 52px; border-radius: 16px;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, #818CF8, #6366F1);
  box-shadow: 0 6px 14px rgba(99,102,241,.4);
}
#mp-app .mp-task-ico svg { width: 26px; height: 26px; }
#mp-app .mp-task-info { flex: 1; min-width: 0; }
#mp-app .mp-task-name { font-size: 16px; font-weight: 800; color: #1E293B; }
#mp-app .mp-task-desc { font-size: 12px; color: #64748B; margin-top: 3px; line-height: 1.4; }
#mp-app .mp-task-go { color: #94A3B8; flex: 0 0 auto; }
#mp-app .mp-task-go svg { width: 20px; height: 20px; }
#mp-app .mp-task-tip { font-size: 12.5px; color: #64748B; line-height: 1.9; }
#mp-app .mp-task-tip b { color: #0052D9; }

/* 年级选择 */
#mp-app .mp-eng-step { font-size: 16px; font-weight: 800; color: #1E293B; margin-bottom: 6px; }
#mp-app .mp-eng-desc { font-size: 13px; color: #64748B; line-height: 1.6; margin-bottom: 14px; }
#mp-app .mp-eng-grade-list { display: flex; flex-direction: column; gap: 12px; }
#mp-app .mp-eng-grade-btn {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  border: 2.5px solid rgba(255,255,255,.9); border-radius: 18px; padding: 16px;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: transform .15s var(--mp-ease-press, cubic-bezier(.32,.72,0,1));
}
#mp-app .mp-eng-grade-btn:nth-child(1) { background: linear-gradient(135deg,#FCE7F3,#FBCFE8); box-shadow: 0 8px 20px rgba(244,114,182,.2); }
#mp-app .mp-eng-grade-btn:nth-child(2) { background: linear-gradient(135deg,#DCFCE7,#BBF7D0); box-shadow: 0 8px 20px rgba(74,222,128,.2); }
#mp-app .mp-eng-grade-btn:nth-child(3) { background: linear-gradient(135deg,#DBEAFE,#BFDBFE); box-shadow: 0 8px 20px rgba(96,165,250,.2); }
#mp-app .mp-eng-grade-btn:active { transform: scale(.97); }
#mp-app .mp-eng-grade-name { font-size: 17px; font-weight: 800; color: #1E293B; }
#mp-app .mp-eng-grade-meta { flex: 1; font-size: 12.5px; color: #64748B; }
#mp-app .mp-eng-grade-arrow { color: #94A3B8; }
#mp-app .mp-eng-grade-arrow svg { width: 20px; height: 20px; }

/* 练习页 */
#mp-app .mp-eng-progbar { height: 8px; border-radius: 99px; background: #E2E8F0; overflow: hidden; }
#mp-app .mp-eng-progfill { height: 100%; border-radius: 99px; background: linear-gradient(90deg,#818CF8,#6366F1); transition: width .3s ease; }
#mp-app .mp-eng-progtext { font-size: 12.5px; color: #94A3B8; text-align: center; margin: 8px 0 14px; }
#mp-app .mp-eng-word { font-size: 40px; font-weight: 800; text-align: center; color: #0F172A; letter-spacing: .5px; font-family: -apple-system, "Segoe UI", sans-serif; }
#mp-app .mp-eng-ipa { text-align: center; font-size: 15px; color: #6366F1; margin-top: 6px; font-weight: 600; }
#mp-app .mp-eng-listen {
  display: flex; align-items: center; justify-content: center; gap: 6px; margin: 14px auto 0;
  background: #EEF2FF; color: #4F46E5; border: none; border-radius: 99px;
  padding: 9px 18px; font-size: 13.5px; font-weight: 700; cursor: pointer;
  -webkit-tap-highlight-color: transparent; transition: transform .15s var(--mp-ease-press, cubic-bezier(.32,.72,0,1));
}
#mp-app .mp-eng-listen:active { transform: scale(.95); }
#mp-app .mp-eng-listen svg { width: 18px; height: 18px; }
#mp-app .mp-eng-hint { text-align: center; font-size: 13.5px; color: #64748B; line-height: 1.7; margin: 20px 4px 6px; }
#mp-app .mp-eng-hint b { color: #0052D9; }
#mp-app .mp-eng-evaluating { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 26px 0; color: #6366F1; font-size: 14px; font-weight: 700; }
#mp-app .mp-eng-spinner { width: 22px; height: 22px; border: 3px solid #C7D2FE; border-top-color: #6366F1; border-radius: 50%; animation: mpEngSpin .8s linear infinite; }
@keyframes mpEngSpin { to { transform: rotate(360deg); } }

/* 录音大按钮 */
#mp-app .mp-eng-mic-wrap { display: flex; flex-direction: column; align-items: center; margin: 22px 0 6px; }
#mp-app .mp-eng-mic {
  width: 96px; height: 96px; border-radius: 50%; border: none; cursor: pointer;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, #F472B6, #EC4899);
  box-shadow: 0 12px 30px rgba(236,72,153,.45);
  -webkit-tap-highlight-color: transparent; user-select: none; touch-action: none;
  transition: transform .15s var(--mp-ease-press, cubic-bezier(.32,.72,0,1)), box-shadow .15s ease;
}
#mp-app .mp-eng-mic svg { width: 42px; height: 42px; }
#mp-app .mp-eng-mic:active { transform: scale(.92); }
#mp-app .mp-eng-mic.recording {
  background: linear-gradient(135deg, #EF4444, #DC2626);
  box-shadow: 0 0 0 8px rgba(239,68,68,.18), 0 12px 30px rgba(220,38,38,.5);
  animation: mpEngPulse 1.1s ease-in-out infinite;
}
@keyframes mpEngPulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.06); } }
#mp-app .mp-eng-mic-tip { margin-top: 12px; font-size: 14px; font-weight: 800; color: #EC4899; }

/* 反馈 */
#mp-app .mp-eng-feedback { margin-top: 18px; }
#mp-app .mp-eng-score-row { display: flex; gap: 10px; }
#mp-app .mp-eng-score-box { flex: 1; background: #F8FAFC; border-radius: 14px; padding: 12px 4px; text-align: center; }
#mp-app .mp-eng-score-num { font-size: 24px; font-weight: 800; line-height: 1; }
#mp-app .mp-eng-score-lab { font-size: 11.5px; color: #94A3B8; margin-top: 5px; }
#mp-app .mp-eng-heard { font-size: 13px; color: #475569; margin: 12px 2px 4px; }
#mp-app .mp-eng-heard b { color: #0F172A; }
#mp-app .mp-eng-errtitle { font-size: 13px; font-weight: 700; color: #D54941; margin: 14px 2px 8px; }
#mp-app .mp-eng-err { display: flex; gap: 10px; align-items: flex-start; background: #FEF2F2; border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; }
#mp-app .mp-eng-err.mp-eng-ok { background: #ECFDF5; color: #2BA471; font-weight: 700; font-size: 13.5px; justify-content: center; }
#mp-app .mp-err-phone { flex: 0 0 auto; font-weight: 800; color: #D54941; font-size: 15px; min-width: 52px; }
#mp-app .mp-err-hint { font-size: 12.5px; color: #64748B; line-height: 1.55; }
#mp-app .mp-eng-advice { background: #FFFBEB; border-radius: 12px; padding: 11px 13px; font-size: 13px; color: #92400E; line-height: 1.6; margin-top: 10px; }

#mp-app .mp-eng-primary {
  width: 100%; border: none; border-radius: 16px; padding: 14px; margin-top: 16px;
  background: linear-gradient(135deg,#6366F1,#4F46E5); color: #fff;
  font-size: 16px; font-weight: 800; cursor: pointer; -webkit-tap-highlight-color: transparent;
  box-shadow: 0 10px 22px rgba(79,70,229,.35);
  transition: transform .15s var(--mp-ease-press, cubic-bezier(.32,.72,0,1));
}
#mp-app .mp-eng-primary:active { transform: scale(.97); }
#mp-app .mp-eng-ghost {
  width: 100%; border: 2px solid #E2E8F0; background: #fff; border-radius: 16px;
  padding: 12px; margin-top: 10px; color: #64748B; font-size: 14px; font-weight: 700;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: transform .15s var(--mp-ease-press, cubic-bezier(.32,.72,0,1));
}
#mp-app .mp-eng-ghost:active { transform: scale(.97); }

/* 总分页 */
#mp-app .mp-eng-result { text-align: center; }
#mp-app .mp-eng-trophy { width: 64px; height: 64px; margin: 6px auto 10px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg,#FDE68A,#F59E0B); color: #fff; box-shadow: 0 8px 20px rgba(245,158,11,.4); }
#mp-app .mp-eng-trophy svg { width: 32px; height: 32px; }
#mp-app .mp-eng-total-label { font-size: 14px; color: #94A3B8; }
#mp-app .mp-eng-total-score { font-size: 64px; font-weight: 800; line-height: 1.1; }
#mp-app .mp-eng-total-unit { font-size: 20px; font-weight: 700; margin-left: 4px; }
#mp-app .mp-eng-level { display: inline-block; margin: 8px 0 4px; padding: 5px 16px; border-radius: 99px; font-size: 14px; font-weight: 800; }
#mp-app .mp-eng-stat { font-size: 13px; color: #64748B; margin: 6px 0 16px; }
#mp-app .mp-eng-wordres { text-align: left; background: #F8FAFC; border-radius: 14px; padding: 6px 14px; margin-bottom: 6px; }
#mp-app .mp-eng-wr { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; border-bottom: 1px solid #EEF2F7; font-size: 14px; }
#mp-app .mp-eng-wr:last-child { border-bottom: none; }
#mp-app .mp-eng-wr-word { font-weight: 700; color: #334155; }
#mp-app .mp-eng-wr-score { font-weight: 800; }

@media (prefers-reduced-motion: reduce) {
  #mp-app .mp-eng-spinner, #mp-app .mp-eng-mic.recording { animation: none; }
  #mp-app .mp-task-card, #mp-app .mp-eng-grade-btn, #mp-app .mp-eng-mic,
  #mp-app .mp-eng-primary, #mp-app .mp-eng-ghost, #mp-app .mp-eng-listen { transition: opacity .12s ease; }
}

/* ============================================================
   英语打卡闭环（任务中心 / 学练一体 / 结果页 / 错题本）v=20260916zr
   ============================================================ */
/* 任务列表 */
#mp-app .mp-engtask-banner{display:flex;align-items:center;gap:12px;background:linear-gradient(135deg,#E8F7FF,#F0F0FF);border:none;border-radius:18px;padding:16px;margin-bottom:14px;}
#mp-app .mp-engtask-banner-ico{font-size:34px;line-height:1;}
#mp-app .mp-engtask-banner-ti{font-size:17px;font-weight:800;color:#0F172A;}
#mp-app .mp-engtask-banner-sub{font-size:12px;color:#64748B;margin-top:3px;line-height:1.5;}
#mp-app .mp-engtask-list{display:flex;flex-direction:column;gap:12px;}
#mp-app .mp-engtask-item{border-radius:16px;padding:15px 16px;cursor:pointer;transition:transform .12s ease,box-shadow .12s ease;}
#mp-app .mp-engtask-item:active{transform:scale(.985);}
#mp-app .mp-engtask-row{display:flex;align-items:center;justify-content:space-between;gap:10px;}
#mp-app .mp-engtask-name{font-size:15px;font-weight:800;color:#0F172A;flex:1;line-height:1.4;}
#mp-app .mp-engtask-badge{font-size:11px;font-weight:700;padding:3px 9px;border-radius:999px;white-space:nowrap;}
#mp-app .mp-engtask-badge.new{background:#E8F1FF;color:#0052D9;}
#mp-app .mp-engtask-badge.doing{background:#FFF6E6;color:#E37318;}
#mp-app .mp-engtask-badge.wait{background:#F0F0FF;color:#6A5AF9;}
#mp-app .mp-engtask-badge.pass{background:#E6F6F0;color:#2BA471;}
#mp-app .mp-engtask-badge.done{background:#EEF2F7;color:#64748B;}
#mp-app .mp-engtask-badge.reject{background:#FDECEE;color:#D54941;}
#mp-app .mp-engtask-badge.over{background:#EEF2F7;color:#94A3B8;}
#mp-app .mp-engtask-meta{display:flex;flex-wrap:wrap;gap:6px 12px;margin-top:9px;font-size:12px;color:#64748B;}
#mp-app .mp-engtask-reject{margin-top:9px;font-size:12px;color:#D54941;background:#FDECEE;border-radius:10px;padding:8px 10px;line-height:1.5;}
#mp-app .mp-engtask-go{margin-top:11px;text-align:right;font-size:13px;font-weight:700;color:#0052D9;}
#mp-app .mp-engtask-reject-link{margin-top:8px;font-size:12px;font-weight:600;color:#D54941;}
#mp-app .mp-rj-card{padding:18px 16px;text-align:left;}
#mp-app .mp-rj-badge{display:inline-block;font-size:12px;font-weight:700;color:#D54941;background:#FDECEE;border-radius:999px;padding:5px 12px;}
#mp-app .mp-rj-task{margin-top:12px;font-size:17px;font-weight:800;color:#1f2937;line-height:1.4;}
#mp-app .mp-rj-time{margin-top:8px;font-size:12px;color:#94a3b8;}
#mp-app .mp-rj-block{margin-top:12px;padding:16px;text-align:left;}
#mp-app .mp-rj-label{font-size:13px;font-weight:800;color:#374151;margin-bottom:8px;}
#mp-app .mp-rj-content{font-size:14px;color:#4b5563;line-height:1.7;white-space:normal;word-break:break-word;}
#mp-app .mp-rj-voice{margin-top:4px;width:100%;border:none;border-radius:12px;background:#eef2ff;color:#4338ca;font-size:14px;font-weight:700;padding:13px;}
#mp-app .mp-rj-redo{width:100%;border:none;border-radius:14px;background:#0052D9;color:#fff;font-size:16px;font-weight:800;padding:15px;}
#mp-app .mp-engtask-freetip{display:flex;align-items:center;gap:12px;margin-top:14px;border-radius:16px;padding:14px 16px;cursor:pointer;border:1px dashed #C7D7FE;background:#FAFCFF;}
#mp-app .mp-task-badge{font-size:10px;font-weight:700;padding:2px 8px;border-radius:999px;vertical-align:middle;}

/* 步骤胶囊导航（做题页：紧随蓝色导航头，不用首页 -40px 上移，避免白卡片遮住圆点） */
#mp-app .mp-engquiz-body{margin-top:12px;}
#mp-app .mp-engstep-bar{background:linear-gradient(180deg,#D6ECFF 0%,#EAF6FF 100%);padding:14px 16px 16px;}
#mp-app .mp-engstep-title{text-align:center;font-size:17px;font-weight:800;color:#0F172A;margin-bottom:14px;}
#mp-app .mp-engstep-dots.mp-engqnav{overflow-x:auto;padding-bottom:4px;}
#mp-app .mp-engstep-dots.mp-engqnav::-webkit-scrollbar{height:0;}
#mp-app .mp-engstep-dots{display:flex;justify-content:space-between;align-items:flex-start;gap:2px;}
#mp-app .mp-engstep-dot{flex:1 0 auto;min-width:30px;display:flex;flex-direction:column;align-items:center;gap:5px;position:relative;cursor:pointer;-webkit-tap-highlight-color:transparent;}
#mp-app .mp-engstep-dot span{position:relative;z-index:1;width:34px;height:34px;line-height:30px;border-radius:50%;background:#fff;border:2px solid #DCE8F5;display:block;text-align:center;font-size:14px;color:#94A3B8;font-weight:700;box-sizing:border-box;transition:background .15s,color .15s,border-color .15s,box-shadow .15s;}
#mp-app .mp-engstep-dot:active span{transform:scale(.92);}
/* 已作答：绿 */
#mp-app .mp-engstep-dot.done span{background:#2BA471;border-color:#2BA471;color:#fff;box-shadow:0 3px 8px rgba(43,164,113,.30);}
/* 当前题：蓝底白字高亮描边（同时已作答则仍保持蓝色当前态，加粗内描边区分） */
#mp-app .mp-engstep-dot.on span{background:#0052D9;border-color:#0052D9;color:#fff;box-shadow:0 0 0 3px rgba(0,82,217,.18);}
#mp-app .mp-engstep-dot.on.done span{box-shadow:0 0 0 3px rgba(0,82,217,.18),0 3px 8px rgba(43,164,113,.30);}
#mp-app .mp-engstep-dot.todo span{background:#fff;border-color:#DCE8F5;color:#94A3B8;}
#mp-app .mp-engstep-dot::after{content:'';position:absolute;top:17px;left:50%;width:100%;height:2px;background:#DCE8F5;z-index:0;}
#mp-app .mp-engstep-dot:last-child::after{display:none;}

/* 答题卡片 */
#mp-app .mp-engquiz-intro{text-align:center;padding:30px 22px;}
#mp-app .mp-engquiz-intro-ico{font-size:50px;}
#mp-app .mp-engquiz-intro-ti{font-size:20px;font-weight:800;color:#0F172A;margin-top:10px;}
#mp-app .mp-engquiz-intro-meta{font-size:13px;color:#64748B;margin-top:6px;}
#mp-app .mp-engquiz-intro-desc{font-size:13px;color:#475569;background:#F8FAFC;border-radius:12px;padding:12px;margin-top:14px;line-height:1.6;text-align:left;}
#mp-app .mp-engquiz-intro-tips{font-size:13px;color:#475569;background:#FFFBEB;border-radius:12px;padding:12px 14px;margin-top:12px;line-height:1.9;text-align:left;}
#mp-app .mp-engquiz-card{border-radius:18px;padding:20px 18px;min-height:340px;}
#mp-app .mp-engquiz-type{display:inline-block;font-size:12px;font-weight:700;color:#0052D9;background:#E8F1FF;padding:4px 12px;border-radius:999px;margin-bottom:14px;}
#mp-app .mp-engquiz-word{font-size:42px;font-weight:800;color:#1E293B;text-align:center;letter-spacing:1px;word-break:break-all;}
#mp-app .mp-engquiz-ipa{font-size:18px;color:#0052D9;text-align:center;margin-top:8px;font-style:italic;}
#mp-app .mp-engquiz-meaning{font-size:15px;color:#64748B;text-align:center;margin-top:8px;}
#mp-app .mp-engquiz-sentence{font-size:14px;color:#334155;background:#F8FAFC;border-left:3px solid #0052D9;border-radius:0 10px 10px 0;padding:10px 12px;margin-top:14px;line-height:1.7;}
#mp-app .mp-engquiz-sentence span{color:#94A3B8;font-size:12px;}
#mp-app .mp-engquiz-stem{font-size:16px;font-weight:700;color:#0F172A;line-height:1.6;margin-bottom:14px;}
#mp-app .mp-engquiz-multitip{font-size:12px;color:#E37318;margin-bottom:10px;}
#mp-app .mp-engquiz-opts{display:flex;flex-direction:column;gap:10px;margin-top:6px;}
#mp-app .mp-engquiz-opt{display:flex;align-items:center;gap:10px;width:100%;text-align:left;background:#F8FAFC;border:2px solid #E2E8F0;border-radius:14px;padding:13px 15px;font-size:15px;color:#1E293B;cursor:pointer;transition:all .15s ease;font-family:inherit;}
#mp-app .mp-engquiz-opt:active{transform:scale(.98);}
#mp-app .mp-engquiz-opt.sel{background:#E8F1FF;border-color:#0052D9;color:#0052D9;font-weight:700;}
#mp-app .mp-engquiz-optkey{width:26px;height:26px;border-radius:50%;background:#fff;border:1.5px solid #CBD5E1;display:flex;align-items:center;justify-content:center;font-size:13px;font-weight:800;flex-shrink:0;}
#mp-app .mp-engquiz-opt.sel .mp-engquiz-optkey{background:#0052D9;border-color:#0052D9;color:#fff;}
#mp-app .mp-engquiz-fill{margin-top:8px;}
#mp-app .mp-engquiz-input{width:100%;border:2px solid #E2E8F0;border-radius:14px;padding:14px 16px;font-size:16px;font-family:inherit;color:#1E293B;box-sizing:border-box;background:#F8FAFC;}
#mp-app .mp-engquiz-input:focus{outline:none;border-color:#0052D9;background:#fff;}
#mp-app .mp-engquiz-filled{margin-top:12px;font-size:13px;color:#2BA471;font-weight:700;text-align:center;}
#mp-app .mp-engquiz-nav{display:flex;gap:10px;margin-top:14px;}
#mp-app .mp-engquiz-navbtn{flex:1;border:none;border-radius:14px;padding:15px;font-size:16px;font-weight:800;cursor:pointer;font-family:inherit;transition:transform .12s ease,opacity .12s;}
#mp-app .mp-engquiz-navbtn:active{transform:scale(.98);}
#mp-app .mp-engquiz-navbtn.primary{background:linear-gradient(135deg,#1677FF,#0052D9);color:#fff;box-shadow:0 6px 16px rgba(0,82,217,.28);}
#mp-app .mp-engquiz-navbtn.ghost{background:#fff;color:#475569;border:1.5px solid #E2E8F0;}
#mp-app .mp-engquiz-navbtn.disabled{opacity:.5;}

/* 结果页（挑战完成） */
#mp-app .mp-engresult{text-align:center;padding:34px 20px 26px;}
#mp-app .mp-engresult-owl{font-size:84px;line-height:1;animation:mpEngOwlFloat 2.4s ease-in-out infinite;}
@keyframes mpEngOwlFloat{0%,100%{transform:translateY(0) rotate(-3deg);}50%{transform:translateY(-10px) rotate(3deg);}}
#mp-app .mp-engresult-title{font-size:28px;font-weight:800;color:#F5A623;margin-top:16px;letter-spacing:2px;}
#mp-app .mp-engresult-stats{display:flex;gap:10px;margin:24px 0;}
#mp-app .mp-engresult-stat{flex:1;border-radius:16px;padding:14px 6px;border:2.5px solid;}
#mp-app .mp-engresult-stat .lab{font-size:12px;font-weight:700;margin-bottom:8px;}
#mp-app .mp-engresult-stat .val{font-size:20px;font-weight:800;}
#mp-app .mp-engresult-stat.yellow{border-color:#F5C242;background:#FFFDF5;}
#mp-app .mp-engresult-stat.yellow .lab{color:#D99400;}#mp-app .mp-engresult-stat.yellow .val{color:#F5A623;}
#mp-app .mp-engresult-stat.green{border-color:#5BC892;background:#F6FDF9;}
#mp-app .mp-engresult-stat.green .lab{color:#2BA471;}#mp-app .mp-engresult-stat.green .val{color:#2BA471;}
#mp-app .mp-engresult-stat.blue{border-color:#5AA9F0;background:#F5FAFF;}
#mp-app .mp-engresult-stat.blue .lab{color:#0052D9;}#mp-app .mp-engresult-stat.blue .val{color:#0052D9;}
#mp-app .mp-engresult-banner{border-radius:14px;padding:14px 16px;font-size:14px;line-height:1.7;margin-bottom:16px;text-align:left;}
#mp-app .mp-engresult-banner.wait{background:#F0F0FF;color:#5B4FD9;}
#mp-app .mp-engresult-banner.pass{background:#E6F6F0;color:#1E7D52;}
#mp-app .mp-engresult-banner.reject{background:#FDECEE;color:#C23B48;}
#mp-app .mp-engresult .mp-eng-primary{width:100%;}
#mp-app .mp-engresult .mp-eng-ghost{width:100%;margin-top:10px;}

/* 错题本 */
#mp-app .mp-engwrong-tip{font-size:13px;color:#64748B;margin:0 4px 12px;}
#mp-app .mp-engwrong-item{border-radius:16px;padding:15px 16px;margin-bottom:12px;}
#mp-app .mp-engwrong-type{font-size:11px;font-weight:700;color:#0052D9;background:#E8F1FF;display:inline-block;padding:3px 10px;border-radius:999px;margin-bottom:10px;}
#mp-app .mp-engwrong-stem{font-size:16px;font-weight:800;color:#0F172A;margin-bottom:8px;}
#mp-app .mp-engwrong-line{font-size:14px;color:#475569;line-height:1.6;margin-top:5px;}
#mp-app .mp-engwrong-line.wrong{color:#D54941;}
#mp-app .mp-engwrong-line.right{color:#2BA471;}
#mp-app .mp-engwrong-explain{font-size:13px;color:#92610A;background:#FFFBEB;border-radius:10px;padding:9px 11px;margin-top:9px;line-height:1.6;}
#mp-app .mp-engwrong-listen{margin-top:10px;background:#E8F1FF;color:#0052D9;border:none;border-radius:10px;padding:9px 14px;font-size:13px;font-weight:700;cursor:pointer;font-family:inherit;}

/* ============================================================
   v=20260916aad 任务期望完成日期 + 打卡结果题目清单
   ============================================================ */
/* 任务卡：期望完成日期 */
#mp-app .mp-engtask-due{display:flex;align-items:center;gap:6px;margin:8px 0 4px;font-size:12.5px;color:#475569;background:#F1F5FF;border-radius:8px;padding:7px 10px;}
#mp-app .mp-engtask-due b{color:#0052D9;font-weight:700;}
#mp-app .mp-engtask-due-ico{font-size:14px;}
#mp-app .mp-engtask-due.is-over{background:#FDECEE;}
#mp-app .mp-engtask-due.is-over b{color:#D54941;}
#mp-app .mp-engtask-due.is-soon{background:#FFF7E8;}
#mp-app .mp-engtask-due.is-soon b{color:#E37318;}
#mp-app .mp-engtask-due-tag{margin-left:auto;background:#D54941;color:#fff;font-size:11px;border-radius:999px;padding:1px 8px;font-weight:600;}
#mp-app .mp-engtask-due-tag.soon{background:#E37318;}
#mp-app .mp-engquiz-intro-due{background:#F1F5FF;color:#334155;border-radius:10px;padding:10px 12px;font-size:13.5px;line-height:1.6;margin:10px 0;}
#mp-app .mp-engquiz-intro-due b{color:#0052D9;}
#mp-app .mp-engquiz-intro-over{color:#D54941;font-size:12px;margin-left:4px;}

/* 结果页：完成进度 */
#mp-app .mp-engresult-progress{font-size:14px;color:#475569;margin:14px 0 10px;}
#mp-app .mp-engresult-progress b{color:#0052D9;font-size:18px;}
#mp-app .mp-engresult-progressbar{height:8px;border-radius:999px;background:#E8EDF6;overflow:hidden;margin-top:7px;}
#mp-app .mp-engresult-progressbar i{display:block;height:100%;border-radius:999px;background:linear-gradient(90deg,#4f9dff,#0052D9);transition:width .4s;}
#mp-app .mp-engresult-stat.indigo{background:#EEF2FF;}
#mp-app .mp-engresult-stat.indigo .val{color:#4F46E5;}

/* 结果页：题目清单 */
#mp-app .mp-engqlist{margin-top:16px;text-align:left;}
#mp-app .mp-engqlist-head{font-size:14px;font-weight:700;color:#1E293B;margin-bottom:10px;}
#mp-app .mp-engqitem{background:#F8FAFC;border:1px solid #EEF2F7;border-radius:12px;padding:11px 12px;margin-bottom:9px;}
#mp-app .mp-engqitem.ok{border-color:#BEE7CF;background:#F3FBF6;}
#mp-app .mp-engqitem.bad{border-color:#F6C9CC;background:#FDF3F4;}
#mp-app .mp-engqitem.todo{border-style:dashed;background:#FAFBFD;}
#mp-app .mp-engqitem-top{display:flex;align-items:flex-start;gap:9px;}
#mp-app .mp-engqitem-no{flex:0 0 22px;height:22px;border-radius:7px;background:#0052D9;color:#fff;font-size:12px;font-weight:700;display:flex;align-items:center;justify-content:center;}
#mp-app .mp-engqitem.bad .mp-engqitem-no{background:#D54941;}
#mp-app .mp-engqitem.ok .mp-engqitem-no{background:#2BA471;}
#mp-app .mp-engqitem.todo .mp-engqitem-no{background:#94A3B8;}
#mp-app .mp-engqitem-stem{flex:1;font-size:13.5px;color:#1E293B;line-height:1.55;font-weight:600;word-break:break-word;}
#mp-app .mp-engqitem-meta{display:flex;justify-content:space-between;align-items:center;margin:8px 0 0 31px;}
#mp-app .mp-engqitem-type{font-size:11.5px;color:#64748B;background:#EEF2F7;border-radius:6px;padding:2px 8px;}
#mp-app .mp-engqitem-state{font-size:12px;font-weight:700;color:#64748B;}
#mp-app .mp-engqitem.ok .mp-engqitem-state{color:#2BA471;}
#mp-app .mp-engqitem.bad .mp-engqitem-state{color:#D54941;}
#mp-app .mp-engqitem-line{margin:6px 0 0 31px;font-size:12.5px;color:#64748B;line-height:1.55;word-break:break-word;}
#mp-app .mp-engqitem-line.mine{color:#B45309;}
#mp-app .mp-engqitem-line.right{color:#15803D;}

/* ===== 做题页富媒体题干：图片/视频/网页，自适应宽高 ===== */
.mp-eng-medias { display: flex; flex-direction: column; gap: 10px; margin: 10px 0 4px; }
.mp-eng-media { width: 100%; border-radius: 10px; overflow: hidden; background: #000; }
.mp-eng-media-img { background: #f3f6fc; border: 1px solid #e8edf5; }
.mp-eng-media-img img { display: block; width: 100%; height: auto; max-height: 320px; object-fit: contain; margin: 0 auto; }
/* 内部 blob:<hash> 异步回填前：占位固定高度，避免塌陷/误闪失败态 */
.mp-eng-media-img img[data-blob-h] { min-height: 180px; background: #eef2f9; }
.mp-eng-media-vid video[data-blob-h] { min-height: 180px; width: 100%; background: #000; }
.mp-eng-media-vid video { display: block; width: 100%; max-height: 320px; height: auto; background: #000; }
.mp-eng-media-web { background: #fff; border: 1px solid #e8edf5; }
.mp-eng-media-webtop { display: flex; align-items: center; justify-content: space-between; padding: 6px 10px; font-size: 12px; color: #475569; background: #f8fafc; }
.mp-eng-media-webtop a { color: #0052D9; text-decoration: none; }
.mp-eng-media-web iframe { display: block; width: 100%; height: 60vh; min-height: 280px; max-height: 460px; border: 0; }
.mp-eng-media-fail { display: flex; align-items: center; justify-content: center; min-height: 120px; background: #f3f6fc; border: 1px dashed #c7d2e0; }
.mp-eng-media-tip { color: #94a3b8; font-size: 13px; line-height: 1.6; text-align: center; padding: 16px; }

/* ============================================================
   英语课本打卡 · 儿童森林闯关风（面向 8-15 岁）
   ============================================================ */
.etk-bg {
  position: absolute; inset: 0; overflow-y: auto;
  background: linear-gradient(180deg, #2EBD67 0%, #1FA463 30%, #CDEFB0 100%);
  -webkit-overflow-scrolling: touch;
}
.etk-topbar { padding: 18px 20px 6px; }
.etk-topbar-title { color: #fff; font-size: 18px; font-weight: 800; text-shadow: 0 1px 2px rgba(0,0,0,.12); }
.etk-hero { padding: 6px 20px 18px; }
.etk-hero-title { color: #fff; font-size: 26px; font-weight: 900; letter-spacing: .5px; }
.etk-hero-sub { color: rgba(255,255,255,.92); font-size: 13px; margin-top: 4px; }
.etk-body { padding: 4px 16px 32px; }

/* ---- 任务首页课本横卡入口 ---- */
.etk-entry { margin: 0 0 14px; background: #fff; border-radius: 22px; padding: 14px; box-shadow: 0 8px 22px rgba(20,83,45,.12); }
.etk-entry-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.etk-entry-title { font-size: 15px; font-weight: 800; color: #14532d; }
.etk-entry-more { font-size: 12.5px; color: #1FA463; font-weight: 700; background: none; border: 0; }
.etk-entry .etk-book-card { box-shadow: none; background: #F4FBF3; margin-bottom: 8px; }
.etk-entry .etk-book-card:last-child { margin-bottom: 0; }

/* ---- 课本卡（白色圆角横卡 + 彩色块） ---- */
.etk-book-card {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  background: #fff; border: 0; border-radius: 20px; padding: 12px 14px; margin-bottom: 12px;
  box-shadow: 0 8px 20px rgba(20,83,45,.12); transition: transform .12s ease;
}
.etk-book-card:active { transform: scale(.97); }
.etk-book-cover { width: 58px; height: 58px; border-radius: 16px; object-fit: cover; flex: 0 0 auto; }
.etk-book-cover-ph { display: flex; align-items: center; justify-content: center; font-size: 24px; color: #fff; font-weight: 900; }
.etk-book-info { flex: 1; min-width: 0; }
.etk-book-name { font-size: 16px; font-weight: 800; color: #1F2937; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.etk-book-desc { font-size: 12.5px; color: #6b7280; margin-top: 3px; }
.etk-book-arrow { color: #16a34a; font-size: 22px; font-weight: 700; }
.etk-book-progress { display: flex; align-items: center; gap: 8px; margin-top: 7px; }
.etk-book-bar { flex: 1; height: 7px; border-radius: 99px; background: #E7F6E7; overflow: hidden; }
.etk-book-fill { height: 100%; border-radius: 99px; background: linear-gradient(90deg, #34D058, #1FA463); }
.etk-book-pct { font-size: 11.5px; color: #16a34a; font-weight: 700; white-space: nowrap; }

.etk-empty { text-align: center; padding: 70px 24px; }
.etk-empty-ico { font-size: 52px; }
.etk-empty-title { color: #fff; font-size: 17px; font-weight: 800; margin-top: 12px; text-shadow: 0 1px 2px rgba(0,0,0,.1); }
.etk-empty-desc { color: rgba(255,255,255,.9); font-size: 13px; margin-top: 6px; }

/* ---- 路径地图 ---- */
.etk-path-head { display: flex; align-items: center; gap: 10px; padding: 16px 18px 8px; }
.etk-back { width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(255,255,255,.85); color: #14532d; font-size: 22px; line-height: 1; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.etk-back-light { background: rgba(255,255,255,.25); color: #fff; }
.etk-path-title { flex: 1; color: #fff; font-size: 18px; font-weight: 900; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 2px rgba(0,0,0,.12); }
.etk-path-fire { color: #fff; font-weight: 800; font-size: 14px; background: rgba(255,255,255,.22); border-radius: 99px; padding: 4px 10px; }
.etk-path-scene { position: relative; min-height: 70%; padding: 8px 0 40px; }
.etk-trail { position: relative; max-width: 420px; margin: 0 auto; padding: 10px 0; }
.etk-step { position: relative; width: 50%; padding: 14px 0; }
.etk-step-left { left: 0; text-align: right; padding-right: 52px; }
.etk-step-right { left: 50%; text-align: left; padding-left: 52px; }
.etk-node-wrap { display: inline-flex; flex-direction: column; align-items: center; gap: 4px; position: relative; }
.etk-step-left .etk-node-wrap { align-items: center; }
.etk-node {
  width: 64px; height: 64px; border-radius: 50%; border: 4px solid #fff;
  display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 900;
  box-shadow: 0 6px 0 rgba(0,0,0,.12), 0 10px 18px rgba(0,0,0,.15); transition: transform .12s ease;
}
button.etk-node { cursor: pointer; }
.etk-node.current { background: radial-gradient(circle at 35% 30%, #5BE08A, #22C55E); color: #fff; animation: etkBounce 1.4s ease-in-out infinite; }
.etk-node.done { background: radial-gradient(circle at 35% 30%, #4ADE80, #16A34A); color: #fff; }
.etk-node.locked { background: radial-gradient(circle at 35% 30%, #c9a878, #a07d4c); color: #fff; opacity: .92; }
.etk-node.current:active, .etk-node.done:active { transform: scale(.92); }
.etk-node-label { font-size: 12px; font-weight: 700; color: #14532d; background: rgba(255,255,255,.9); border-radius: 8px; padding: 2px 8px; max-width: 110px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.etk-node-tag { position: absolute; top: -8px; right: -14px; background: #FF8A3D; color: #fff; font-size: 10px; font-weight: 800; border-radius: 99px; padding: 1px 7px; }
.etk-node-tag.ok { background: #16A34A; }
.etk-step-left .etk-node-tag { right: auto; left: -14px; }
/* 弯曲虚线小路（中线） */
.etk-trail::before {
  content: ''; position: absolute; top: 0; bottom: 0; left: 50%; width: 0;
  border-left: 5px dashed #FFF6E0; transform: translateX(-50%); opacity: .9;
}
.etk-mascot { text-align: center; font-size: 40px; margin-top: 6px; animation: etkBounce 2s ease-in-out infinite; }
.etk-blocked-banner { margin: 10px 24px; background: rgba(213,73,65,.95); color: #fff; text-align: center; border-radius: 12px; padding: 10px; font-size: 13px; font-weight: 700; }
@keyframes etkBounce { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }

/* ---- 准备页（水平测试式） ---- */
.etk-ready { position: absolute; inset: 0; overflow-y: auto; background: linear-gradient(180deg, #2EBD67 0%, #1FA463 42%, #CDEFB0 100%); padding: 0 20px 30px; }
.etk-ready-top { padding: 14px 0; }
.etk-ready-mascot { text-align: center; font-size: 86px; margin: 8px 0 6px; animation: etkBounce 2.2s ease-in-out infinite; }
.etk-ready-card { background: #fff; border-radius: 26px; padding: 24px 20px 22px; box-shadow: 0 14px 30px rgba(20,83,45,.18); text-align: center; }
.etk-ready-title { font-size: 21px; font-weight: 900; color: #14532d; }
.etk-ready-pill { display: inline-block; margin-top: 10px; background: #EAFBEF; color: #16A34A; font-size: 13px; font-weight: 800; border-radius: 99px; padding: 6px 14px; }
.etk-ready-due { font-size: 12px; color: #6b7280; margin-top: 8px; }
.etk-ready-reqs { margin: 20px 0 8px; display: flex; flex-direction: column; gap: 12px; text-align: left; }
.etk-ready-req { display: flex; align-items: center; gap: 12px; }
.etk-ready-req-ico { width: 42px; height: 42px; border-radius: 13px; background: #F0FBF2; display: flex; align-items: center; justify-content: center; font-size: 20px; flex: 0 0 auto; }
.etk-ready-req b { display: block; font-size: 14.5px; color: #1F2937; }
.etk-ready-req span { font-size: 12px; color: #9ca3af; }
.etk-ready-start { width: 100%; margin-top: 18px; border: 0; border-radius: 16px; padding: 15px; font-size: 17px; font-weight: 900; color: #fff; background: linear-gradient(180deg, #3DDC7A, #1FA463); box-shadow: 0 8px 0 #15803d, 0 12px 18px rgba(20,83,45,.25); transition: transform .1s ease; }
.etk-ready-start:active { transform: translateY(3px); box-shadow: 0 5px 0 #15803d; }
.etk-ready-skip { width: 100%; margin-top: 12px; border: 0; background: none; color: #6b7280; font-size: 14px; font-weight: 700; padding: 6px; }

/* ---- 提交完成页 ---- */
.etk-done { position: absolute; inset: 0; overflow-y: auto; background: linear-gradient(180deg, #2EBD67 0%, #1FA463 40%, #7BD88F 100%); padding: 40px 24px; text-align: center; }
.etk-done-mascot { font-size: 96px; animation: etkBounce 2s ease-in-out infinite; }
.etk-done-title { color: #fff; font-size: 34px; font-weight: 900; margin-top: 6px; text-shadow: 0 2px 4px rgba(0,0,0,.12); }
.etk-done.is-reject { background: linear-gradient(180deg, #f59e0b, #d97706); }
.etk-done-card { background: #fff; border-radius: 22px; padding: 8px 18px; margin: 22px auto 14px; max-width: 360px; box-shadow: 0 12px 26px rgba(20,83,45,.2); }
.etk-done-row { display: flex; align-items: center; gap: 10px; padding: 15px 0; border-bottom: 1px solid #f0f4f0; }
.etk-done-row:last-child { border-bottom: 0; }
.etk-done-ico { font-size: 20px; }
.etk-done-lab { flex: 1; text-align: left; color: #6b7280; font-size: 14px; }
.etk-done-val { color: #14532d; font-size: 16px; }
.etk-done-note { color: #fff; font-size: 13.5px; font-weight: 600; margin: 4px 0 16px; text-shadow: 0 1px 2px rgba(0,0,0,.12); }
.etk-done-continue { width: 100%; max-width: 360px; border: 0; border-radius: 16px; padding: 15px; font-size: 17px; font-weight: 900; color: #1FA463; background: #fff; box-shadow: 0 8px 18px rgba(20,83,45,.25); }
.etk-done-continue:active { transform: scale(.97); }

/* ---- 我的打卡 ---- */
.etk-mine-head { display: flex; align-items: center; gap: 12px; padding: 20px 20px 26px; background: linear-gradient(135deg,#2EBD67,#1FA463); }
.etk-mine-avatar { width: 52px; height: 52px; border-radius: 50%; background: rgba(255,255,255,.25); display: flex; align-items: center; justify-content: center; font-size: 28px; }
.etk-mine-name { color: #fff; font-size: 18px; font-weight: 900; }
.etk-mine-sub { color: rgba(255,255,255,.9); font-size: 12.5px; margin-top: 2px; }
.etk-mine-tabs { display: flex; gap: 8px; overflow-x: auto; padding: 14px 0 4px; }
.etk-mine-tab { flex: 0 0 auto; border: 0; background: #dcf3e6; color: #3f6f54; font-size: 13px; font-weight: 700; border-radius: 99px; padding: 7px 14px; box-shadow: 0 3px 8px rgba(20,83,45,.06); }
.etk-mine-tab.active { background: #0f7a44; color: #fff; box-shadow: 0 4px 12px rgba(15,122,68,.35); }
.etk-mine-stat { display: flex; gap: 10px; margin: 12px 0; }
.etk-mine-stat-box { flex: 1; background: #fff; border-radius: 16px; padding: 12px 6px; text-align: center; box-shadow: 0 5px 14px rgba(20,83,45,.08); }
.etk-mine-stat-box b { display: block; font-size: 18px; color: #14532d; }
.etk-mine-stat-box span { font-size: 11px; color: #94a3b8; }
.etk-card { background: #fff; border-radius: 20px; padding: 16px; margin-bottom: 14px; box-shadow: 0 6px 16px rgba(20,83,45,.08); }
.etk-cal-head { display: flex; align-items: center; justify-content: space-between; font-size: 15px; color: #14532d; margin-bottom: 12px; }
.etk-cal-nav { width: 30px; height: 30px; border-radius: 50%; border: 0; background: #F0FBF2; color: #16A34A; font-size: 18px; font-weight: 800; }
.etk-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.etk-cal-week { text-align: center; font-size: 11px; color: #9ca3af; padding-bottom: 4px; }
.etk-cal-cell { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; font-size: 12.5px; color: #4b5563; border-radius: 50%; }
.etk-cal-cell.blank { visibility: hidden; }
.etk-cal-cell.on { background: linear-gradient(135deg,#34D058,#1FA463); color: #fff; font-weight: 900; }
.etk-cal-cell.today { box-shadow: inset 0 0 0 2px #FF8A3D; }
.etk-rank-title { font-size: 15px; font-weight: 900; color: #14532d; margin-bottom: 6px; }
.etk-rank-mine { font-size: 12.5px; color: #16A34A; font-weight: 700; margin-bottom: 10px; }
.etk-rank-list { display: flex; flex-direction: column; gap: 4px; max-height: 340px; overflow-y: auto; }
.etk-rank-row { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 12px; }
.etk-rank-row.me { background: #EAFBEF; }
.etk-rank-medal { width: 26px; text-align: center; font-size: 16px; }
.etk-rank-no { display: inline-block; width: 22px; text-align: center; font-size: 12.5px; color: #94a3b8; font-weight: 700; }
.etk-rank-avatar { width: 32px; height: 32px; border-radius: 50%; background: #E7F6E7; display: flex; align-items: center; justify-content: center; font-size: 16px; }
.etk-rank-name { flex: 1; font-size: 13.5px; color: #1f2937; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.etk-rank-pts { font-size: 12.5px; color: #16A34A; font-weight: 800; }

@media (prefers-reduced-motion: reduce) {
  .etk-node.current, .etk-mascot, .etk-ready-mascot, .etk-done-mascot { animation: none; }
}

/* ---- 学生登录后：小程序 / 网页 选择层 ---- */
.mp-ui-choice {
  position: fixed; inset: 0; z-index: 10000;
  background: linear-gradient(180deg, rgba(30,164,99,.92), rgba(20,83,45,.95));
  display: flex; align-items: center; justify-content: center; padding: 24px;
  animation: etkFade .2s ease;
}
@keyframes etkFade { from { opacity: 0; } to { opacity: 1; } }
.mp-ui-choice-card {
  width: 100%; max-width: 380px; background: #fff; border-radius: 28px;
  padding: 28px 22px 22px; text-align: center; box-shadow: 0 24px 60px rgba(0,0,0,.3);
}
.mp-ui-choice-brand { display:flex; align-items:center; justify-content:center; gap:10px; margin-bottom:2px; }
.mp-ui-choice-logo { width:46px; height:46px; border-radius:14px; background:linear-gradient(135deg,#34d399,#059669); color:#fff; font-size:22px; font-weight:900; display:flex; align-items:center; justify-content:center; box-shadow:0 6px 14px rgba(5,150,105,.3); }
.mp-ui-choice-name { font-size:18px; font-weight:900; color:#14532d; letter-spacing:1px; }
.mp-ui-choice-title { font-size: 22px; font-weight: 900; color: #14532d; margin-top: 6px; }
.mp-ui-choice-sub { font-size: 13px; color: #94a3b8; margin: 6px 0 20px; }
.mp-ui-opt {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  border: 2px solid #edf2ee; background: #FAFEFA; border-radius: 18px; padding: 14px; margin-bottom: 12px;
  transition: transform .1s ease, border-color .15s ease;
}
.mp-ui-opt:active { transform: scale(.97); }
.mp-ui-opt-mp { border-color: #b9ebc9; background: #F0FBF2; }
.mp-ui-opt-ico { width: 46px; height: 46px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 24px; flex: 0 0 auto; background: #fff; }
.mp-ui-opt-mp .mp-ui-opt-ico { background: #DCFCE7; }
.mp-ui-opt-web .mp-ui-opt-ico { background: #E0EDFF; }
.mp-ui-opt-tx { flex: 1; display: flex; flex-direction: column; }
.mp-ui-opt-tx b { font-size: 16px; color: #14532d; }
.mp-ui-opt-tx i { font-style: normal; font-size: 12px; color: #94a3b8; margin-top: 2px; }
.mp-ui-opt-go { font-size: 22px; color: #16a34a; font-weight: 800; }
.mp-ui-opt-web .mp-ui-opt-go { color: #2f6fed; }
.mp-ui-remember { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 12.5px; color: #6b7280; margin-top: 4px; }
.mp-ui-remember input { accent-color: #1FA463; width: 16px; height: 16px; }

/* 任务中心课本卡：待完成徽标 */
.etk-book-badgewrap { flex: 0 0 auto; display: flex; align-items: center; }
.etk-book-todobadge { background: linear-gradient(135deg,#FF8A3D,#ff6a00); color: #fff; font-size: 11px; font-weight: 800; border-radius: 99px; padding: 4px 10px; white-space: nowrap; box-shadow: 0 3px 8px rgba(255,122,0,.3); }
.etk-book-donebadge { background: #EAFBEF; color: #16A34A; font-size: 11px; font-weight: 800; border-radius: 99px; padding: 4px 10px; white-space: nowrap; }
.etk-entry .etk-book-card { position: relative; }

/* ============================================================
   路径地图（严格参考：深绿森林 + 浅绿草地 + 弯曲奶白小路）
   ============================================================ */
.etp { position: absolute; inset: 0; display: flex; flex-direction: column; }
.etp-topbar {
  position: relative; z-index: 5; display: flex; align-items: center; gap: 10px;
  padding: 16px 18px 10px; color: #fff;
  background: linear-gradient(180deg, #0f7d3c 0%, #15964a 100%);
}
.etp-back {
  width: 34px; height: 34px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,.22); color: #fff; font-size: 22px; line-height: 1; font-weight: 800;
  display: flex; align-items: center; justify-content: center; flex: 0 0 auto;
}
.etp-title { flex: 1; font-size: 17px; font-weight: 900; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.etp-fire {
  flex: 0 0 auto; font-size: 13px; font-weight: 800; background: rgba(255,255,255,.22);
  border-radius: 99px; padding: 4px 11px;
}
.etp-scene {
  position: relative; flex: 1; overflow-y: auto;
  background: linear-gradient(180deg, #15964a 0%, #1fa855 30%, #bfe79a 30.2%, #cdeab0 100%);
  -webkit-overflow-scrolling: touch;
}
.etp-canopy {
  position: absolute; top: -10px; left: -30px; right: -30px; height: 190px; pointer-events: none;
  background:
    radial-gradient(120px 90px at 12% 20%, #0f8a44 60%, transparent 62%),
    radial-gradient(150px 110px at 42% 8%, #10a04c 60%, transparent 62%),
    radial-gradient(130px 100px at 72% 26%, #0c8a42 60%, transparent 62%),
    radial-gradient(160px 110px at 96% 10%, #12a350 60%, transparent 62%);
  opacity: .9;
}
.etp-grass { position: absolute; inset: 30% 0 0 0; pointer-events: none; }

/* 小路容器：相对定位，弯曲奶白路为一条居中的纵向 S 形 */
.etp-trail { position: relative; max-width: 420px; margin: 0 auto; padding: 26px 0 60px; }
.etp-path {
  position: absolute; top: 0; bottom: 0; left: 50%; width: 74px; transform: translateX(-50%);
  background: #fbf3dd; border-radius: 40px; z-index: 0;
  /* 用多个径向偏移让中线呈 S 弯曲（背景随滚动重复） */
  -webkit-mask-image: radial-gradient(60px 120px at 50% 120px, #000 99%, transparent 100%);
  box-shadow: inset 0 0 0 2px #efe2bd;
}
/* 用伪元素叠加虚线，强化“蜿蜒小路”节奏 */
.etp-path::after {
  content: ''; position: absolute; inset: 0; border-radius: 40px;
  background: repeating-linear-gradient(180deg, transparent 0 26px, #e7d49a 26px 32px, transparent 32px 56px);
  opacity: .55;
}
.etp-step { position: relative; z-index: 1; width: 100%; height: 150px; }
.etp-node-cell { position: absolute; top: 6px; width: 78px; display: flex; justify-content: center; }
.etp-step-l .etp-node-cell { left: calc(50% - 118px); }
.etp-step-r .etp-node-cell { left: calc(50% + 40px); }
.etp-node {
  width: 72px; height: 72px; border-radius: 50%; border: 4px solid #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; font-size: 26px; font-weight: 900; color: #fff;
  box-shadow: 0 6px 0 rgba(0,0,0,.15), 0 10px 18px rgba(0,0,0,.18); position: relative;
}
.etp-node.done { background: radial-gradient(circle at 35% 30%, #46d17d, #16a34a); }
.etp-node.current { background: radial-gradient(circle at 35% 30%, #63e58f, #22c55e); animation: etkBounce 1.5s ease-in-out infinite; }
.etp-node.locked { background: radial-gradient(circle at 35% 30%, #d3b483, #a9814c); }
.etp-node-label {
  position: absolute; top: 92px; left: 50%; transform: translateX(-50%);
  font-size: 12px; font-weight: 700; color: #355826; background: rgba(255,255,255,.92);
  border-radius: 8px; padding: 2px 9px; white-space: nowrap; max-width: 130px; overflow: hidden; text-overflow: ellipsis;
}
.etp-node-tag {
  position: absolute; top: -6px; right: -8px; min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 99px; background: #ff8a3d; color: #fff; font-size: 11px; font-weight: 800;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 5px rgba(0,0,0,.2);
}
.etp-node-tag.ok { background: #16a34a; }

.etp-stump {
  position: absolute; right: 16px; bottom: 150px; width: 96px; height: 78px; pointer-events: none;
  background: radial-gradient(ellipse at 50% 22%, #c98a5a 0 42%, #8a5a33 43% 60%, transparent 61%);
  border-radius: 40% 40% 18% 18%; opacity: .9;
}
.etp-dino { position: absolute; right: 26px; bottom: 64px; font-size: 54px; animation: etkBounce 2.4s ease-in-out infinite; pointer-events: none; }
.etp-bushes { position: absolute; inset: 0; pointer-events: none; }
.etp-bushes span { position: absolute; font-size: 22px; opacity: .9; }
.etp-bushes span:nth-child(1) { left: 8%; top: 30%; }
.etp-bushes span:nth-child(2) { left: 80%; top: 44%; font-size: 16px; }
.etp-bushes span:nth-child(3) { left: 6%; bottom: 18%; font-size: 30px; }
.etp-bushes span:nth-child(4) { left: 70%; bottom: 12%; font-size: 16px; }
.etp-bushes span:nth-child(5) { left: 30%; top: 62%; font-size: 18px; }

.etp-empty { text-align: center; padding: 90px 30px 0; position: relative; z-index: 2; }
.etp-empty-ico { font-size: 54px; }
.etp-empty-title { color: #fff; font-weight: 900; font-size: 18px; margin-top: 12px; text-shadow: 0 1px 3px rgba(0,0,0,.2); }
.etp-empty-desc { color: rgba(255,255,255,.92); font-size: 13px; margin-top: 6px; }
.etp-blocked {
  position: relative; z-index: 3; margin: -10px 24px 16px; background: rgba(213,73,65,.96); color: #fff;
  text-align: center; border-radius: 12px; padding: 10px; font-size: 13px; font-weight: 700;
}

/* ============================================================
   准备页（水平测试风格：黄墙白板小恐龙 + 白色下半页）
   ============================================================ */
.etx-ready { position: absolute; inset: 0; overflow-y: auto; background: #fff; -webkit-overflow-scrolling: touch; display: flex; flex-direction: column; }
.etx-ready-back { position: absolute; top: 14px; left: 14px; z-index: 6; }
.etx-ready-back button {
  width: 38px; height: 38px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,.55); color: #6b5a2e; font-size: 24px; line-height: 1; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.etx-board-zone { position: relative; flex: 0 0 auto; height: 32vh; min-height: 210px; overflow: hidden;
  background: repeating-linear-gradient(0deg, #efe08f 0 30px, #e7d47e 30px 32px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.18) 0 70px, transparent 70px 140px), #ece08d; }
.etx-wall { position: absolute; inset: 0; }
.etx-board {
  position: absolute; top: 30px; left: 50%; transform: translateX(-50%) rotate(-1.5deg);
  width: min(72%, 280px); height: 146px; background: #fdf8f2; border: 7px solid #b5763f;
  border-radius: 14px; box-shadow: 0 12px 24px rgba(120,80,30,.25); padding: 14px;
}
.etx-board::before {
  content: ''; position: absolute; top: -40px; left: 50%; width: 4px; height: 40px;
  background: #8a5a2b; transform: translateX(-50%) rotate(0);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}
.etx-board-pin { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); width: 14px; height: 14px; background: #8a5a2b; border-radius: 50%; }
.etx-board-exam { text-align: center; font-size: 32px; font-weight: 800; color: #9a5a23; letter-spacing: 2px; }
.etx-board-abcd { margin-top: 4px; text-align: center; font-size: 26px; font-weight: 800; color: #e2a95c; line-height: 1.15; letter-spacing: 6px; }

.etx-ready-sheet { position: relative; flex: 1 0 auto; display: flex; flex-direction: column; background: #fff; border-radius: 28px 28px 0 0; margin-top: -26px; padding: 22px 24px 20px; text-align: center; z-index: 3; }
.etx-ready-title { font-size: 26px; font-weight: 900; color: #1f2937; }
.etx-ready-taskname { font-size: 14px; color: #64748b; margin-top: 6px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.etx-ready-due { font-size: 12px; color: #94a3b8; margin-top: 10px; }
.etx-ready-sure { margin-top: 18px; font-size: 15px; font-weight: 700; color: #374151; }
.etx-ready-reqs {
  margin-top: 12px; background: #eef6f1; border-radius: 18px; padding: 16px 12px;
  display: flex; align-items: flex-start; justify-content: center; gap: 28px;
}
.etx-ready-reqs-2 { gap: 14px; }
.etx-req { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 13px; color: #334155; font-weight: 600; flex: 1 1 0; }
.etx-req-img { width: 96px; height: 96px; object-fit: contain; display: block; }
/* 操作按钮始终钉在底部，不滚动也可见 */
.etx-ready-actions { position: sticky; bottom: 0; display: flex; gap: 14px; margin: auto 0 0; padding: 14px 0 4px; background: #fff; z-index: 5; }
.etx-btn-skip, .etx-btn-start {
  flex: 1; border: 0; border-radius: 20px; padding: 15px 0; font-size: 18px; font-weight: 900; cursor: pointer;
}
.etx-btn-skip { background: #dcfce7; color: #16a34a; box-shadow: 0 6px 0 #b6ecc9; }
.etx-btn-start { background: linear-gradient(180deg, #34d058, #16a34a); color: #fff; box-shadow: 0 6px 0 #0f7a37, 0 10px 16px rgba(22,163,74,.3); }
.etx-btn-skip:active { transform: translateY(3px); box-shadow: 0 3px 0 #b6ecc9; }
.etx-btn-start:active { transform: translateY(3px); box-shadow: 0 3px 0 #0f7a37; }

/* 结果页/我的打卡返回箭头微调 */
.etk-done-back { position: absolute; top: 16px; left: 16px; z-index: 6; }
.etk-mine-back { margin-right: 4px; }
.etk-mine-info { display: flex; flex-direction: column; }
.etk-mine-head { gap: 10px; }
@media (prefers-reduced-motion: reduce) { .etp-node.current, .etp-dino { animation: none; } }

/* ================= 学练一体·强制横屏答题（etl-） ================= */
/* 根级覆盖层 #mp-et-land：几何由 JS 按真实可视像素计算（width=视口高、height=视口宽、
   left/top 50% + 负 margin 居中 + rotate(90deg)），不使用 vh/vw，真机微信 WebView 也精确铺满。 */
#mp-app .mp-et-land {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1200;
  background: linear-gradient(160deg, #EAF6EF 0%, #F4FAFF 55%, #EAF1FF 100%);
  overflow: hidden;
  border-radius: 0;
  box-shadow: 0 0 0 9999px rgba(15, 23, 42, .18);
  transform-origin: center center;
  will-change: transform;
}
#mp-app .mp-et-land .etl-wrap { position: static; width: 100%; height: 100%; display: flex; flex-direction: column; overflow: hidden; }
#mp-app .etl-stage { flex: 1 1 auto; display: flex; flex-direction: column; min-height: 0; padding: 10px 16px 14px; box-sizing: border-box; }

/* 顶部细条：题型 + 任务名 + 跟读文字/音标/释义 + 网页入口（一行排开，超出省略）+ 进度 */
#mp-app .etl-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex: 0 0 auto; padding: 2px 4px 8px; }
#mp-app .etl-top-left { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1 1 auto; }
#mp-app .etl-top-type { flex: 0 0 auto; font-size: 12px; font-weight: 700; color: #0F9D6E; background: #E4F6EE; padding: 4px 12px; border-radius: 999px; }
#mp-app .etl-top-title { flex: 0 0 auto; font-size: 16px; font-weight: 800; color: #0F172A; white-space: nowrap; max-width: 22%; overflow: hidden; text-overflow: ellipsis; }
#mp-app .etl-top-word { min-width: 0; flex: 0 1 auto; font-size: 17px; font-weight: 800; color: #1E293B; letter-spacing: .5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#mp-app .etl-top-ipa { flex: 0 0 auto; font-size: 13px; color: #0F9D6E; font-style: italic; }
#mp-app .etl-top-meaning { flex: 0 0 auto; font-size: 13px; color: #64748B; white-space: nowrap; }
#mp-app .etl-top-weblink { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: #64748B; white-space: nowrap; }
#mp-app .etl-top-weblink a { color: #2563EB; text-decoration: none; font-weight: 600; }
#mp-app .etl-top-prog { flex: 0 0 auto; font-size: 13px; font-weight: 700; color: #0F9D6E; background: #E4F6EE; padding: 3px 12px; border-radius: 999px; }

/* 主区域两栏（内容区禁止滚动，媒体整块铺满，不拖拽） */
#mp-app .etl-main { flex: 1 1 auto; min-height: 0; display: flex; gap: 14px; }
#mp-app .etl-content {
  flex: 1 1 auto; min-width: 0; min-height: 0; overflow: hidden;
  background: #fff; border-radius: 18px; box-sizing: border-box;
  box-shadow: 0 8px 26px rgba(15, 23, 42, .08);
  display: flex; flex-direction: column;
}
/* 有媒体题干时整面铺满，不留内边距；纯文本题才给内边距居中 */
#mp-app .etl-content:not(.is-text) { padding: 0; }
#mp-app .etl-content.is-text { justify-content: center; padding: 14px 18px; }

/* 题干媒体：整块铺满内容区，无圆角缝隙、无滚动条 */
#mp-app .etl-media {
  flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column;
  width: 100%;
}
#mp-app .etl-media:empty { display: none; }
#mp-app .etl-media .mp-eng-medias { flex: 1 1 auto; min-height: 0; width: 100%; height: 100%; display: flex; flex-direction: column; gap: 8px; }
#mp-app .etl-media .mp-eng-media { margin: 0; width: 100%; min-height: 0; display: flex; flex-direction: column; }
/* 多图时平分高度；单媒体整面铺满 */
#mp-app .etl-media .mp-eng-media-img,
#mp-app .etl-media .mp-eng-media-vid { flex: 1 1 0; min-height: 0; width: 100%; display: flex; }
#mp-app .etl-media .mp-eng-media-img img,
#mp-app .etl-media .mp-eng-media-vid video {
  width: 100%; height: 100%; max-width: 100%; max-height: 100%;
  object-fit: contain; border-radius: 18px; background: #0F172A; display: block;
}
/* 网页：iframe 整块铺满（标题/新窗口链接已挪到顶部条） */
#mp-app .etl-media .mp-eng-media-web { flex: 1 1 0; min-height: 0; width: 100%; display: flex; flex-direction: column; }
#mp-app .etl-media .mp-eng-media-web iframe { flex: 1 1 auto; width: 100%; height: 100%; min-height: 0; border: 0; border-radius: 18px; background: #fff; display: block; }
#mp-app .etl-media .mp-eng-media-webtop { flex: 0 0 auto; display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: #64748B; margin-bottom: 4px; }
#mp-app .etl-media .mp-eng-media-webtop a { color: #2563EB; text-decoration: none; }

/* 跟读文本 */
#mp-app .etl-word { font-size: 34px; font-weight: 800; color: #1E293B; text-align: center; letter-spacing: 1px; word-break: break-word; line-height: 1.3; }
#mp-app .etl-ipa { font-size: 16px; color: #0F9D6E; text-align: center; margin-top: 6px; font-style: italic; }
#mp-app .etl-meaning { font-size: 14px; color: #64748B; text-align: center; margin-top: 4px; }
#mp-app .etl-stem { font-size: 17px; font-weight: 700; color: #1E293B; line-height: 1.6; margin-bottom: 12px; }

/* 评测反馈紧凑条 */
#mp-app .etl-feedback { margin-top: 12px; display: flex; align-items: center; gap: 14px; justify-content: center; flex-wrap: wrap; }
#mp-app .etl-scoreline { background: #F0FDF4; border: 1px solid #BBF7D0; border-radius: 12px; padding: 8px 16px; }
#mp-app .etl-score { font-size: 22px; font-weight: 800; }
#mp-app .etl-acc, #mp-app .etl-pass { font-size: 14px; font-weight: 700; color: #475569; }
#mp-app .etl-heard { margin-top: 8px; font-size: 13px; color: #64748B; text-align: center; }

/* 客观题选项横排自适应 */
#mp-app .etl-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; margin-top: 6px; }
#mp-app .etl-opt { display: flex; align-items: center; gap: 10px; text-align: left; background: #F8FAFC; border: 2px solid #E2E8F0; border-radius: 12px; padding: 12px 14px; font-size: 15px; color: #1E293B; cursor: pointer; font-family: inherit; }
#mp-app .etl-opt.sel { background: #ECFDF5; border-color: #10B981; color: #0F9D6E; font-weight: 700; }
#mp-app .etl-optkey { width: 28px; height: 28px; flex: 0 0 28px; border-radius: 8px; background: #fff; border: 1.5px solid #CBD5E1; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; }
#mp-app .etl-opt.sel .etl-optkey { background: #10B981; border-color: #10B981; color: #fff; }
#mp-app .etl-fill { margin-top: 8px; }
#mp-app .etl-input { width: 100%; box-sizing: border-box; border: 2px solid #E2E8F0; border-radius: 12px; padding: 13px 15px; font-size: 16px; font-family: inherit; }
#mp-app .etl-input:focus { outline: none; border-color: #10B981; }

/* 右侧操作列 */
#mp-app .etl-side { flex: 0 0 118px; width: 118px; display: flex; flex-direction: column; align-items: stretch; gap: 10px; }
#mp-app .etl-side-spacer { flex: 1 1 auto; }
#mp-app .etl-listen {
  flex: 0 0 auto; height: 46px; border-radius: 12px; border: 1.5px solid #CBD5E1; background: #fff; color: #475569;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
#mp-app .etl-listen svg { width: 22px; height: 22px; }
#mp-app .etl-listen:active { transform: scale(.95); }
#mp-app .etl-mic {
  flex: 0 0 auto; height: 118px; border-radius: 18px; border: none; cursor: pointer;
  background: linear-gradient(180deg, #34D399 0%, #10B981 100%);
  color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  box-shadow: 0 8px 20px rgba(16, 185, 129, .38);
}
#mp-app .etl-mic svg { width: 40px; height: 40px; }
#mp-app .etl-mic-label { font-size: 14px; font-weight: 800; }
#mp-app .etl-mic:active, #mp-app .etl-mic.recording { transform: scale(.96); }
#mp-app .etl-mic.recording { background: linear-gradient(180deg, #F87171 0%, #EF4444 100%); box-shadow: 0 8px 20px rgba(239, 68, 68, .4); }

#mp-app .etl-navbtn {
  flex: 0 0 auto; height: 52px; border-radius: 12px; font-size: 16px; font-weight: 800; cursor: pointer; font-family: inherit;
  border: 2px solid transparent; display: flex; align-items: center; justify-content: center;
}
#mp-app .etl-navbtn.ghost { background: #fff; border-color: #CBD5E1; color: #475569; }
#mp-app .etl-navbtn.ghost.disabled { opacity: .4; pointer-events: none; }
#mp-app .etl-navbtn.primary { background: #2563EB; color: #fff; }
#mp-app .etl-navbtn.submit { background: linear-gradient(180deg, #34D399 0%, #10B981 100%); color: #fff; box-shadow: 0 8px 18px rgba(16,185,129,.35); }
#mp-app .etl-navbtn:active { transform: scale(.97); }

/* ================= 英语打卡·数据加载骨架 ================= */
#mp-app .etk-entry-loading { min-height: 132px; }
#mp-app .etk-loading {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  background: #fff; border-radius: 16px; padding: 34px 16px; min-height: 96px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, .05);
}
#mp-app .etk-loading-spinner {
  width: 30px; height: 30px; border-radius: 50%;
  border: 3px solid #D1FAE5; border-top-color: #10B981;
  animation: etk-spin .8s linear infinite;
}
#mp-app .etk-loading-text { font-size: 14px; font-weight: 600; color: #0F9D6E; }
@keyframes etk-spin { to { transform: rotate(360deg); } }

/* ================= 横屏答题·顶部退出按钮 ================= */
#mp-app .etl-top { gap: 8px; }
#mp-app .etl-exit {
  flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%;
  border: 0; background: rgba(15, 23, 42, .08); color: #334155;
  font-size: 14px; line-height: 1; cursor: pointer; font-family: inherit;
  display: flex; align-items: center; justify-content: center; padding: 0;
}
#mp-app .etl-exit:active { background: rgba(15, 23, 42, .18); }

/* ================= 横屏答题·层内轻提示（随层旋转，钉在顶部） ================= */
#mp-app .etl-land-toast {
  position: absolute; left: 50%; top: 40px; transform: translateX(-50%) translateY(-8px);
  background: rgba(15, 23, 42, .88); color: #fff; font-size: 14px; line-height: 1.5;
  padding: 10px 18px; border-radius: 12px; max-width: 70%; text-align: center;
  opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease; z-index: 50;
  white-space: pre-line;
}
#mp-app .etl-land-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
#mp-app .etl-land-toast[data-type="error"] { background: rgba(213, 73, 65, .92); }

/* ================= 横屏答题·层内确认框（随层旋转，置顶） ================= */
#mp-app .etl-land-confirm-mask {
  position: absolute; inset: 0; background: rgba(15, 23, 42, .4);
  display: flex; align-items: flex-start; justify-content: center; padding-top: 70px; z-index: 60;
}
#mp-app .etl-land-confirm {
  width: min(440px, 80%); background: #fff; border-radius: 18px; overflow: hidden;
  box-shadow: 0 18px 50px rgba(15, 23, 42, .3);
}
#mp-app .etl-land-confirm-text { padding: 24px 22px; font-size: 16px; line-height: 1.7; color: #1E293B; text-align: center; white-space: pre-line; }
#mp-app .etl-land-confirm-actions { display: flex; border-top: 1px solid #E2E8F0; }
#mp-app .etl-land-confirm-btn {
  flex: 1; height: 50px; border: 0; background: #fff; font-size: 16px; cursor: pointer; font-family: inherit;
}
#mp-app .etl-land-confirm-btn.cancel { color: #475569; border-right: 1px solid #E2E8F0; }
#mp-app .etl-land-confirm-btn.ok { color: #2563EB; font-weight: 700; }
#mp-app .etl-land-confirm-btn:active { background: #F1F5F9; }

/* ================= 英语打卡：图标与其他模块统一（线性 SVG） ================= */
.et-ico { display: inline-flex; align-items: center; justify-content: center; vertical-align: -2px; color: inherit; flex: 0 0 auto; }
.et-ico svg { display: block; width: 100%; height: 100%; }
.et-title-ico { display: inline-flex !important; align-items: center; gap: 6px; }
.et-title-ico .et-ico { color: #15803d; }
.et-freemic {
  width: 38px; height: 38px; border-radius: 12px; background: #ecfdf5; color: #059669;
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
}
.etk-cover-svg { color: #fff; }
.etk-cover-svg svg { display: block; }
.mp-engtask-due-ico.et-ico { color: #64748b; vertical-align: -3px; }
.mp-engtask-meta .et-ico { color: #94a3b8; vertical-align: -2px; margin-right: 3px; }
.mp-menu-ico-svg { color: #fff; }
.mp-menu-ico-svg svg { display: block; }
.etk-done-ico.et-ico { color: #15803d; vertical-align: -3px; }

/* ================= 首页功能：一行四个小卡（纯图标方块 + 两字标题） ================= */
.mp-feat-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
  margin: 14px 16px 0;
}
/* 模块区与下方今日课程区留间距 */
.mp-feat-grid + .mp-card { margin-top: 18px; }
.mp-feat {
  position: relative; display: flex; flex-direction: column; align-items: stretch;
  width: 100%; padding: 0; border: none; overflow: hidden; cursor: pointer;
  border-radius: 14px; background: #fff;
  box-shadow: 0 6px 16px rgba(15,23,42,.08);
  transition: transform .15s ease, box-shadow .15s ease;
}
.mp-feat:active { transform: scale(.96); }
/* 上：纯图标小方块（完整方形彩色图，铺满卡片顶部，由卡片圆角裁切） */
.mp-feat-img {
  display: block; width: 100%; aspect-ratio: 1 / 1;
  object-fit: cover; border: none; border-radius: 0;
  pointer-events: none; -webkit-user-drag: none;
}
/* 下：两字标题横条居中（一行四列，字号收紧） */
.mp-feat-title {
  display: block; padding: 6px 2px; text-align: center;
  font-size: 13px; line-height: 1.2; font-weight: 800; letter-spacing: 0; color: #1f2937;
  white-space: nowrap;
}
.mp-feat.feat-blue   .mp-feat-title { background: #eaf3ff; color: #1d4ed8; }
.mp-feat.feat-green  .mp-feat-title { background: #e8f6ee; color: #15803d; }
.mp-feat.feat-mint   .mp-feat-title { background: #e6faf2; color: #0f766e; }
.mp-feat.feat-orange .mp-feat-title { background: #fff0e6; color: #c2410c; }
/* 概览数字与文字水平居中 */
.mp-overview .mp-ov { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }

/* ================= 任务中心：课本横向高卡片（直接展示，无英语打卡包装） ================= */
.tbc-loading-card { background:#fff; border-radius:22px; padding:48px 16px; box-shadow:0 6px 18px rgba(15,23,42,.06); display:flex; justify-content:center; }
.tbc-list { display: flex; flex-direction: column; gap: 14px; }
.tbc-card {
  display: flex; align-items: center; gap: 14px; width: 100%; text-align: left;
  background: #fff; border: 2px solid transparent; border-radius: 22px;
  padding: 16px 16px; min-height: 150px; box-sizing: border-box;
  box-shadow: 0 6px 18px rgba(15,23,42,.06); transition: transform .15s, border-color .15s;
}
.tbc-card:active { transform: scale(.985); }
.tbc-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 9px; }
.tbc-state {
  align-self: flex-start; font-size: 13px; font-weight: 800; line-height: 1;
  padding: 7px 14px; border-radius: 999px; color: #fff; background: #f59e0b;
}
.tbc-state-doing { background: #f59e0b; }
.tbc-state-done { background: #34c759; }
.tbc-state-off { background: #9ca3af; }
.tbc-card-off { opacity: .62; filter: grayscale(.35); }
.tbc-card-off .tbc-name { color: #6b7280; }
.tbc-name { font-size: 19px; font-weight: 800; color: #1f2937; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tbc-progress { display: flex; align-items: baseline; gap: 5px; flex-wrap: wrap; }
.tbc-progress b.tbc-done { font-size: 26px; font-weight: 800; color: #f59e0b; }
.tbc-progress .tbc-sep { font-size: 16px; color: #c2c6cf; font-weight: 700; }
.tbc-progress .tbc-total { font-size: 17px; color: #9aa0ab; font-weight: 700; }
.tbc-progress .tbc-unit { font-size: 12.5px; color: #9aa0ab; margin-left: 1px; }
.tbc-progress .tbc-todo { font-size: 12.5px; color: #ea580c; font-weight: 600; }
.tbc-progress .tbc-alldone { font-size: 12.5px; color: #16a34a; font-weight: 600; }
.tbc-bar { height: 6px; border-radius: 999px; background: #eef1f5; overflow: hidden; }
.tbc-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg,#fbbf24,#f59e0b); }
.tbc-state-loading { background: linear-gradient(135deg,#cbd5e1,#94a3b8); color: #fff; }
.tbc-progress-loading { color: #9aa0ab !important; font-size: 12.5px !important; font-weight: 600; }
.tbc-fill-loading {
  width: 45% !important; background: linear-gradient(90deg,#eef1f5 25%,#e2e8f0 37%,#eef1f5 63%);
  background-size: 400% 100%; animation: tbcShimmer 1.3s ease-in-out infinite;
}
@keyframes tbcShimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }
.ebt-loading { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 48px 0; color: #94a3b8; }
.ebt-spinner {
  width: 30px; height: 30px; border-radius: 50%;
  border: 3px solid #e2e8f0; border-top-color: #22c55e; animation: ebtSpin .8s linear infinite;
}
@keyframes ebtSpin { to { transform: rotate(360deg); } }
.tbc-cover {
  flex: 0 0 auto; width: 108px; height: 108px; border-radius: 18px; overflow: hidden;
  background: #eef2e9; box-shadow: 0 4px 12px rgba(15,23,42,.10);
}
img.tbc-cover { object-fit: cover; display: block; }
div.tbc-cover { display: flex; align-items: center; justify-content: center; font-size: 40px; }


/* ================= 课本内任务列表卡 ================= */
.ebt-list { display: flex; flex-direction: column; gap: 12px; }
.ebt-disabled-banner {
  margin: 12px 4px 4px; padding: 12px 16px; border-radius: 14px;
  background: #f3f4f6; color: #6b7280; font-size: 14px; font-weight: 700; text-align: center;
}
.ebt-card {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  background: #fff; border: 1px solid #eef1f6; border-left: 4px solid #cbd5e1;
  border-radius: 16px; padding: 15px 16px; box-sizing: border-box;
  box-shadow: 0 4px 12px rgba(15,23,42,.04); transition: transform .15s;
}
.ebt-card:active { transform: scale(.985); }
.ebt-card-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.ebt-card-title { font-size: 16.5px; font-weight: 800; color: #1f2937; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ebt-card-meta { display: flex; flex-wrap: wrap; gap: 14px; }
.ebt-meta-item { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; color: #8a909c; }
.ebt-meta-item .et-ico { color: #aab0bb; display: inline-flex; }
.ebt-meta-item i { font-style: normal; }
.ebt-status { flex: 0 0 auto; font-size: 12.5px; font-weight: 800; padding: 6px 12px; border-radius: 999px; white-space: nowrap; }
.ebt-status-open { background: #eaf3ff; color: #1d4ed8; }
.ebt-status-doing { background: #fff1e0; color: #c2610b; }
.ebt-status-overdue { background: #f1f2f5; color: #8a909c; }
.ebt-status-closed { background: #f1f2f5; color: #8a909c; }
.ebt-status-submitted { background: #fef3c7; color: #b45309; }
.ebt-status-passed { background: #e6f7ec; color: #15803d; }
.ebt-status-rejected { background: #fde8e8; color: #dc2626; }
.ebt-open { border-left-color: #60a5fa; }
.ebt-doing { border-left-color: #f59e0b; }
.ebt-overdue, .ebt-closed { border-left-color: #cbd5e1; }
.ebt-submitted { border-left-color: #f59e0b; }
.ebt-passed { border-left-color: #34c759; }
.ebt-rejected { border-left-color: #ef4444; }

/* ================= 首页今日课程：通知卡列表 ================= */
.mp-lc-list { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; }
.mp-lc {
  display: flex; align-items: center; gap: 14px;
  background: #fff; border: 1px solid #eef1f6; border-radius: 18px;
  padding: 14px 16px; box-shadow: 0 4px 14px rgba(15,23,42,.04);
}
/* 左侧：开始/结束日期上下两排 */
.mp-lc-date {
  flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-start; gap: 5px;
  min-width: 92px;
}
.mp-lc-d {
  font-size: 12.5px; font-weight: 700; line-height: 1.25; white-space: nowrap;
  font-variant-numeric: tabular-nums; color: #475569;
}
.mp-lc-d-start { color: #2563eb; }
.mp-lc-d-end { color: #94a3b8; font-weight: 600; }
.mp-lc-d-sep { width: 26px; height: 0; border-top: 1px dashed #cbd5e1; margin: 1px 0; }
.mp-lc-body { flex: 1 1 auto; min-width: 0; }
.mp-lc-title {
  font-size: 15.5px; font-weight: 800; color: #1f2937; line-height: 1.35;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mp-lc-sub {
  margin-top: 6px; display: flex; align-items: center; gap: 14px; flex-wrap: nowrap;
  font-size: 12.5px; color: #9aa3b2; overflow: hidden;
}
.mp-lc-sub span {
  display: inline-flex; align-items: center; gap: 4px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mp-lc-right { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; justify-content: center; gap: 6px; }
.mp-lc-status { font-size: 11px; font-weight: 700; padding: 3px 11px; border-radius: 999px; line-height: 1.5; white-space: nowrap; }
.mp-lc-status.st-todo { background: #e0edff; color: #2563eb; }
.mp-lc-status.st-done { background: #eef2f7; color: #94a3b8; }

/* ============ 自测任务（随机抽题 · 单选题） ============ */
.est-section { margin-top: 22px; }
.est-section-head {
  display: flex; align-items: baseline; gap: 8px;
  font-size: 16px; font-weight: 800; color: #1e3a2f;
  padding: 0 4px 10px;
}
.est-section-tip { font-size: 11px; font-weight: 500; color: #8a9a90; }
.est-card { border-left-color: #6366f1 !important; background: linear-gradient(180deg,#ffffff,#f5f6ff); }
.est-stat { font-size: 12px; color: #4f46e5; margin-top: 6px; font-weight: 600; }
.est-stat b { font-size: 14px; }
.est-stat-empty { color: #94a3b8; font-weight: 500; }

/* 做题页 */
.est-quiz { padding: 14px 14px 30px; }
.est-quiz-top { display: flex; align-items: center; gap: 10px; }
.est-quiz-title { flex: 1; font-size: 16px; font-weight: 800; color: #1e3a2f; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.est-progress { height: 8px; border-radius: 99px; background: #e8eef0; overflow: hidden; margin: 14px 0 8px; }
.est-progress-bar { height: 100%; border-radius: 99px; background: linear-gradient(90deg,#6366f1,#8b5cf6); transition: width .25s ease; }
.est-quiz-meta { display: flex; justify-content: space-between; font-size: 12px; color: #7a8a80; margin-bottom: 14px; }
.est-question-card { background: #fff; border-radius: 20px; padding: 20px 16px; box-shadow: 0 6px 18px rgba(31,164,99,.08); }
.est-stem { font-size: 17px; font-weight: 700; color: #1e293b; line-height: 1.6; margin-bottom: 18px; }
.est-options { display: flex; flex-direction: column; gap: 12px; }
.est-option {
  display: flex; align-items: center; gap: 12px; width: 100%;
  background: #f8fafc; border: 2px solid #e8edf0; border-radius: 14px;
  padding: 13px 14px; font-size: 15px; color: #334155; text-align: left;
  transition: all .15s ease;
}
.est-option:active { transform: scale(.985); }
.est-option-key {
  flex: 0 0 30px; height: 30px; border-radius: 9px; background: #eef2f7;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 14px; color: #64748b;
}
.est-option-text { flex: 1; line-height: 1.4; }
.est-option-dot { color: #6366f1; font-size: 10px; width: 16px; text-align: right; }
.est-option.selected { border-color: #6366f1; background: #eef2ff; }
.est-option.selected .est-option-key { background: #6366f1; color: #fff; }
.est-option.selected .est-option-text { color: #3730a3; font-weight: 600; }
.est-quiz-actions { position: sticky; bottom: 0; display: flex; justify-content: space-between; gap: 12px; margin-top: 14px; padding: 10px 0 4px; background: linear-gradient(180deg, rgba(241,246,243,0), #f1f6f3 30%); z-index: 5; }
.est-btn { border: none; border-radius: 999px; padding: 12px 26px; font-size: 15px; font-weight: 700; cursor: pointer; }
.est-btn-primary { background: linear-gradient(135deg,#6366f1,#8b5cf6); color: #fff; box-shadow: 0 6px 16px rgba(99,102,241,.32); }
.est-btn-ghost { background: #eef2f7; color: #475569; }

/* 结果页 */
.est-result { padding: 20px 0 30px; text-align: center; }
.est-back { position: absolute; top: 14px; left: 14px; }
.est-result-emoji { font-size: 56px; margin: 10px 0; }
.est-result-title { font-size: 22px; font-weight: 900; margin-bottom: 14px; }
.est-result.pass .est-result-title { color: #0f7a44; }
.est-result.fail .est-result-title { color: #c2410c; }
.est-score-ring {
  width: 132px; height: 132px; margin: 0 auto 12px; border-radius: 50%;
  display: flex; align-items: baseline; justify-content: center;
  background: conic-gradient(#6366f1 0deg, #eef2f7 0deg);
}
.est-result.pass .est-score-ring { background: conic-gradient(#10b981 0deg, #eef2f7 0deg); }
.est-score-num { font-size: 46px; font-weight: 900; color: #312e81; align-self: center; }
.est-score-unit { font-size: 16px; color: #94a3b8; align-self: flex-end; margin-bottom: 40px; }
.est-result-meta { font-size: 14px; color: #64748b; }
.est-result-actions { display: flex; gap: 12px; justify-content: center; margin: 18px 14px 0; }

/* 记录页 */
.est-rec-summary { display: flex; gap: 10px; padding: 4px 0 12px; }
.est-rec-pill { background: #eef2ff; color: #4338ca; border-radius: 999px; padding: 7px 14px; font-size: 13px; font-weight: 600; }
.est-trend-card { background: #fff; border-radius: 16px; padding: 12px 8px 6px; box-shadow: 0 4px 14px rgba(15,23,42,.06); margin-bottom: 14px; }
.est-trend-title { font-size: 13px; font-weight: 700; color: #475569; padding: 0 8px 4px; }
.est-trend-svg { width: 100%; height: auto; display: block; }
.est-rec-list { display: flex; flex-direction: column; gap: 10px; }
.est-rec-item { display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 14px; padding: 12px 14px; box-shadow: 0 3px 10px rgba(15,23,42,.05); }
.est-rec-score { flex: 0 0 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 17px; font-weight: 800; }
.est-rec-score.pass { background: #dcfce7; color: #15803d; }
.est-rec-score.fail { background: #ffedd5; color: #c2410c; }
.est-rec-info { flex: 1; text-align: left; }
.est-rec-name { font-size: 14px; font-weight: 700; color: #1e293b; }
.est-rec-sub { font-size: 12px; color: #64748b; margin: 2px 0; }
.est-rec-time { font-size: 11px; color: #94a3b8; }


/* ===== 桌面网页学生端「我的任务」：网页原生卡片布局（非手机框） ===== */
.student-tasks-host { min-height: 300px; }
.wt-webhost { width: 100%; }
.wt-page-web { padding: 4px 0 32px; }

/* 加载 / 空态 */
.wt-loading { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 70px 0; color: #64748b; font-size: 14px; }
.wt-empty { text-align: center; padding: 48px 20px; color: #94a3b8; font-size: 14px; background: #fff; border: 1px dashed #e2e8f0; border-radius: 16px; }
.wt-empty .wt-empty-ico { font-size: 40px; display: block; margin-bottom: 10px; }
.wt-empty p { margin: 6px 0 0; font-size: 12px; }
.wt-banner-off { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; border-radius: 12px; padding: 10px 14px; font-size: 13px; margin-bottom: 18px; }

/* 分区 */
.wt-sec { margin-bottom: 34px; }
.wt-sec-head { display: flex; align-items: baseline; gap: 12px; margin: 0 0 16px; }
.wt-sec-title { font-size: 18px; font-weight: 800; color: #0f172a; }
.wt-sec-sub { font-size: 13px; color: #94a3b8; }

/* 课本卡片网格 */
.wt-book-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.wt-book-card { display: flex; flex-direction: column; background: #fff; border-radius: 18px; overflow: hidden; border: 1px solid #edf1f7; box-shadow: 0 6px 20px rgba(15,23,42,.05); cursor: pointer; transition: transform .18s ease, box-shadow .18s ease; }
.wt-book-card:hover { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(15,23,42,.1); }
.wt-book-cover { width: 100%; height: 128px; object-fit: cover; display: block; }
.wt-book-cover-ph { display: flex; align-items: center; justify-content: center; font-size: 42px; }
.wt-book-cover-ph span { filter: drop-shadow(0 2px 6px rgba(0,0,0,.15)); }
.wt-book-body { padding: 14px 16px 16px; }
.wt-book-name { font-size: 15px; font-weight: 800; color: #0f172a; margin-bottom: 4px; }
.wt-book-grade { font-size: 12px; color: #94a3b8; margin-bottom: 10px; }
.wt-book-bar { height: 6px; border-radius: 999px; background: #eef2f7; overflow: hidden; }
.wt-book-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg,#34d399,#10b981); transition: width .3s; }
.wt-book-off { margin-top: 8px; font-size: 12px; color: #b91c1c; }
.wt-book-card.off { opacity: .6; cursor: not-allowed; filter: grayscale(.4); }

/* 任务卡片网格 */
.wt-task-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.wt-task-card { background: #fff; border-radius: 16px; border: 1px solid #edf1f7; box-shadow: 0 4px 16px rgba(15,23,42,.04); padding: 18px; cursor: pointer; display: flex; flex-direction: column; gap: 12px; transition: transform .18s ease, box-shadow .18s ease, border-color .18s; }
.wt-task-card:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(15,23,42,.09); border-color: #dbeafe; }
.wt-self-card { border-left: 4px solid #6366f1; }
.wt-task-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.wt-task-name { font-size: 16px; font-weight: 800; color: #0f172a; line-height: 1.4; }
.wt-task-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 12.5px; color: #64748b; }
.wt-task-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 2px; }
.wt-task-go { color: #2563eb; font-size: 13px; font-weight: 700; white-space: nowrap; }
.wt-self-stat { font-size: 12.5px; color: #64748b; }
.wt-self-stat b { color: #4f46e5; }

/* 状态徽章 */
.wt-badge { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.wt-badge-pass { background: #dcfce7; color: #15803d; }
.wt-badge-wait { background: #fef9c3; color: #a16207; }
.wt-badge-reject { background: #fee2e2; color: #b91c1c; }
.wt-badge-doing { background: #ffedd5; color: #c2410c; }
.wt-badge-over { background: #f1f5f9; color: #64748b; }
.wt-badge-open { background: #dbeafe; color: #1d4ed8; }
.wt-badge-self { background: #eef2ff; color: #4f46e5; }

/* 面包屑 */
.wt-crumb { display: flex; align-items: center; gap: 12px; margin: 2px 0 20px; }
.wt-back-btn { width: 36px; height: 36px; border-radius: 10px; border: 1px solid #e2e8f0; background: #fff; font-size: 20px; line-height: 1; color: #334155; cursor: pointer; display: flex; align-items: center; justify-content: center; flex: none; }
.wt-back-btn:hover { background: #f8fafc; border-color: #cbd5e1; }
.wt-crumb-trail { display: flex; align-items: center; gap: 8px; font-size: 14px; color: #94a3b8; flex-wrap: wrap; }
.wt-crumb-item.cur { color: #0f172a; font-weight: 800; }
.wt-crumb-sep { color: #cbd5e1; }

/* 做题页：中间居中竖版区域 */
.wt-quiz-page { min-height: calc(100vh - 220px); display: flex; justify-content: center; padding: 8px 0 40px; }
.wt-quiz-center { width: 100%; max-width: 720px; display: flex; flex-direction: column; }
.wt-quiz-exit { align-self: flex-start; height: 36px; min-width: 36px; padding: 0 12px; border-radius: 10px; border: 1px solid #e2e8f0; background: #fff; font-size: 15px; color: #334155; cursor: pointer; }
.wt-quiz-exit:hover { background: #f8fafc; }

/* 准备卡片 */
.wt-ready-card { margin: 36px auto 0; width: 100%; max-width: 520px; background: #fff; border-radius: 22px; border: 1px solid #edf1f7; box-shadow: 0 16px 44px rgba(15,23,42,.08); padding: 42px 36px; text-align: center; }
.wt-ready-title { font-size: 24px; font-weight: 900; color: #0f172a; margin-bottom: 8px; }
.wt-ready-sub { font-size: 14px; color: #64748b; margin-bottom: 22px; }
.wt-ready-tip { background: #f0fdf4; color: #15803d; border-radius: 12px; padding: 12px 16px; font-size: 13.5px; margin-bottom: 28px; }
.wt-ready-actions { display: flex; justify-content: center; }

/* 通用按钮 */
.wt-btn-primary { background: linear-gradient(135deg,#1f7a4d,#16a34a); color: #fff; border: none; border-radius: 12px; padding: 12px 28px; font-size: 15px; font-weight: 800; cursor: pointer; box-shadow: 0 8px 20px rgba(22,163,74,.28); }
.wt-btn-primary:hover { filter: brightness(1.05); }
.wt-btn-ghost { background: #fff; color: #475569; border: 1px solid #e2e8f0; border-radius: 12px; padding: 12px 22px; font-size: 14px; font-weight: 700; cursor: pointer; }
.wt-btn-ghost:hover { background: #f8fafc; }
.wt-btn-ghost.disabled { opacity: .45; cursor: not-allowed; }
.wt-btn-mic { background: linear-gradient(135deg,#2563eb,#1d4ed8); color: #fff; border: none; border-radius: 12px; padding: 12px 28px; font-size: 15px; font-weight: 800; cursor: pointer; box-shadow: 0 8px 20px rgba(37,99,235,.28); }
.wt-btn-mic.recording { background: linear-gradient(135deg,#dc2626,#b91c1c); box-shadow: 0 8px 20px rgba(220,38,38,.28); }

/* 做题中 */
.wt-doing-head { display: flex; align-items: center; gap: 14px; margin: 14px 0 12px; }
.wt-doing-prog { font-size: 15px; font-weight: 800; color: #0f172a; flex: 1; }
.wt-doing-type { font-size: 12px; color: #16a34a; background: #dcfce7; border-radius: 999px; padding: 4px 12px; font-weight: 700; }
.wt-doing-bar { height: 8px; border-radius: 999px; background: #e8edf4; overflow: hidden; margin-bottom: 18px; }
.wt-doing-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg,#34d399,#10b981); transition: width .25s; }
.wt-fill-self { background: linear-gradient(90deg,#818cf8,#6366f1); }
.wt-doing-card { background: #fff; border-radius: 20px; border: 1px solid #edf1f7; box-shadow: 0 10px 30px rgba(15,23,42,.06); padding: 28px; }
.wt-doing-media { margin-bottom: 18px; border-radius: 14px; overflow: hidden; }
.wt-doing-media img, .wt-doing-media video, .wt-doing-media iframe { max-width: 100%; border-radius: 12px; display: block; margin: 0 auto; }
.wt-doing-word { text-align: center; font-size: 30px; font-weight: 900; color: #0f172a; line-height: 1.4; margin: 10px 0 6px; }
.wt-doing-ipa { text-align: center; color: #64748b; font-size: 15px; margin-bottom: 4px; }
.wt-doing-meaning { text-align: center; color: #94a3b8; font-size: 14px; margin-bottom: 18px; }
.wt-doing-feedback { display: flex; align-items: center; justify-content: center; gap: 18px; margin: 18px 0 6px; font-size: 14px; color: #64748b; }
.wt-doing-feedback b { font-size: 22px; }
.wt-doing-heard { text-align: center; color: #94a3b8; font-size: 13px; }
.wt-doing-actions { display: flex; gap: 14px; justify-content: center; margin-top: 24px; flex-wrap: wrap; }
.wt-doing-stem { font-size: 19px; font-weight: 800; color: #0f172a; line-height: 1.6; margin-bottom: 20px; }
.wt-doing-options { display: flex; flex-direction: column; gap: 12px; }
.wt-doing-option { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; background: #f8fafc; border: 2px solid #e8edf4; border-radius: 14px; padding: 15px 18px; font-size: 15px; color: #1e293b; cursor: pointer; transition: border-color .15s, background .15s; }
.wt-doing-option:hover { border-color: #a5b4fc; background: #f5f7ff; }
.wt-doing-option.selected { border-color: #6366f1; background: #eef2ff; font-weight: 700; }
.wt-opt-key { width: 30px; height: 30px; flex: none; border-radius: 50%; background: #fff; border: 1.5px solid #cbd5e1; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; color: #475569; }
.wt-doing-option.selected .wt-opt-key { background: #6366f1; border-color: #6366f1; color: #fff; }
.wt-doing-fill { margin-top: 8px; }
.wt-doing-input { width: 100%; border: 2px solid #e8edf4; border-radius: 12px; padding: 14px 16px; font-size: 15px; outline: none; }
.wt-doing-input:focus { border-color: #6366f1; }
.wt-doing-nav { position: sticky; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 16px; padding: 12px 4px; background: linear-gradient(180deg, rgba(246,248,252,0), #f6f8fc 32%); z-index: 5; }

/* 自测结果 */
.wt-result-center { width: 100%; max-width: 720px; margin: 0 auto; }
.wt-result-card { background: #fff; border-radius: 22px; border: 1px solid #edf1f7; box-shadow: 0 16px 44px rgba(15,23,42,.08); padding: 36px; text-align: center; }
.wt-result-card.pass { background: linear-gradient(180deg,#f0fdf4,#fff); }
.wt-result-card.fail { background: linear-gradient(180deg,#fff7ed,#fff); }
.wt-result-emoji { font-size: 52px; margin-bottom: 8px; }
.wt-result-title { font-size: 22px; font-weight: 900; color: #0f172a; margin-bottom: 14px; }
.wt-result-score b { font-size: 52px; font-weight: 900; color: #4f46e5; }
.wt-result-score span { font-size: 18px; color: #94a3b8; }
.wt-result-meta { color: #64748b; font-size: 14px; margin-top: 10px; }
.wt-review-card { background: #fff; border-radius: 18px; border: 1px solid #edf1f7; padding: 22px 24px; margin-top: 20px; }
.wt-review-head { font-size: 15px; font-weight: 800; color: #0f172a; margin-bottom: 14px; }
.wt-review-item { border-radius: 12px; padding: 14px 16px; margin-bottom: 10px; background: #f8fafc; border-left: 4px solid #cbd5e1; }
.wt-review-item.ok { border-left-color: #16a34a; background: #f0fdf4; }
.wt-review-item.bad { border-left-color: #dc2626; background: #fef2f2; }
.wt-review-q { display: flex; gap: 10px; font-size: 14px; font-weight: 700; color: #1e293b; margin-bottom: 8px; }
.wt-review-no { width: 22px; height: 22px; flex: none; border-radius: 50%; background: #e2e8f0; color: #475569; font-size: 12px; display: flex; align-items: center; justify-content: center; }
.wt-review-lines { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13px; color: #64748b; padding-left: 32px; }
.wt-review-lines .mine b, .wt-review-lines .mine { color: #475569; }
.wt-review-lines .right { color: #15803d; }
.wt-review-state.ok { color: #16a34a; font-weight: 700; }
.wt-review-state.bad { color: #dc2626; font-weight: 700; }
.wt-result-actions { display: flex; gap: 14px; justify-content: center; margin-top: 24px; }

/* 子页沿用手机渲染时，把容器内手机壳样式摊平为全宽 */
.wt-sub-wrap { background: transparent; }
.wt-sub-wrap .mp-page, .wt-sub-wrap .etk-bg, .wt-sub-wrap .mp-body { position: static !important; background: transparent; }
.wt-sub-wrap .sub-header { position: static; }

@media (max-width: 640px) {
  .wt-task-grid, .wt-book-grid { grid-template-columns: 1fr; }
  .wt-doing-card { padding: 20px; }
  .wt-doing-word { font-size: 24px; }
}

/* acrud62 任务筛选条 */
.etf-filterbar { display:flex; gap:8px; margin:4px 0 12px; }
.etf-filterbtn { border:1px solid #d8dee8; background:#fff; border-radius:999px; font-size:13px; color:#475569; padding:6px 14px; cursor:pointer; }
.etf-filterbtn b { color:#16a34a; margin-left:2px; }
.etf-filterbtn.on { background:#16a34a; border-color:#16a34a; color:#fff; font-weight:600; }
.etf-filterbtn.on b { color:#fff; }
.wt-filterbar { display:flex; gap:8px; margin-left:auto; }
.wt-filterbtn { border:1px solid #d8dee8; background:#fff; border-radius:999px; font-size:12px; color:#475569; padding:5px 12px; cursor:pointer; }
.wt-filterbtn b { color:#16a34a; margin-left:2px; }
.wt-filterbtn.on { background:#16a34a; border-color:#16a34a; color:#fff; font-weight:600; }
.wt-filterbtn.on b { color:#fff; }
/* acrud62 课本卡突出待完成数 */
.wt-book-todo-row { display:flex; align-items:center; justify-content:space-between; margin:6px 0; }
.wt-book-todo { color:#ea580c; font-size:13px; }
.wt-book-todo b { font-size:16px; }
.wt-book-doneall { color:#16a34a; font-size:13px; font-weight:600; }
.wt-book-total { color:#94a3b8; font-size:12px; }
.wt-book-coverbtn { display:block; padding:0; border:none; background:none; cursor:pointer; width:100%; }
.wt-book-coverbtn.off { cursor:default; }
.etk-book-todob { color:#ea580c; font-size:13px; }
.etk-book-doneb { color:#16a34a; font-size:13px; }
.etk-book-totals { color:#94a3b8; font-size:12px; font-weight:400; }
/* acrud62 做题页底部固定操作栏（网页） */
.wt-doing-bar { position:sticky; bottom:0; }

/* acrud62 答题回顾错题/全部 tab */
.mp-review-head { display:flex; align-items:center; justify-content:space-between; gap:8px; flex-wrap:wrap; }
.mp-review-tabs, .wt-review-tabs { display:inline-flex; gap:6px; }
.mp-review-tab { border:1px solid #d8dee8; background:#fff; border-radius:999px; font-size:12px; color:#475569; padding:3px 10px; cursor:pointer; }
.mp-review-tab b { color:#dc2626; margin-left:2px; }
.mp-review-tab.on { background:#dc2626; border-color:#dc2626; color:#fff; }
.mp-review-tab.on b { color:#fff; }
.mp-review-empty, .wt-review-empty { text-align:center; color:#94a3b8; font-size:13px; padding:20px 0; }
.wt-review-head-bar { display:flex; align-items:center; justify-content:space-between; gap:8px; flex-wrap:wrap; }
.wt-review-tab { border:1px solid #d8dee8; background:#fff; border-radius:999px; font-size:12px; color:#475569; padding:4px 12px; cursor:pointer; }
.wt-review-tab b { color:#dc2626; margin-left:2px; }
.wt-review-tab.on { background:#dc2626; border-color:#dc2626; color:#fff; }
.wt-review-tab.on b { color:#fff; }
.wt-btn-warn { background:#f59e0b; color:#fff; border:none; border-radius:12px; font-size:14px; font-weight:700; padding:11px 18px; cursor:pointer; }
.est-btn-warn { background:#f59e0b; }
.wt-result-card.wrongredo, .est-result.wrongredo { --res-accent:#f59e0b; }
.est-quiz-redo .est-progress-bar { background:linear-gradient(90deg,#f59e0b,#fbbf24); }

/* acrud62 任务中心底部固定自测区（小程序）；acrud64 改为页内底部固定 + 打卡区独立滚动 */
.mp-page.page-task-flex { display: none; flex-direction: column; overflow: hidden; padding-bottom: 0; }
.mp-page.page-task-flex.active { display: flex; animation: mpFade .18s ease; }
.mp-task-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.mp-page.page-task-flex .mp-sub-header, .mp-page.page-task-flex .mp-hero { flex: 0 0 auto; }
.mp-dock-wrap { flex: 0 0 auto; padding: 8px 0 calc(10px + env(safe-area-inset-bottom, 0px)); background: rgba(255,255,255,.98); border-top: 1px solid #e6ebf1; box-shadow: 0 -6px 18px rgba(15,23,42,.08); }
.est-dock { position: static; left: auto; right: auto; bottom: auto; z-index: auto; background: transparent; backdrop-filter: none; border: none; box-shadow: none; padding: 0 12px; }
.est-dock-head { display:flex; align-items:baseline; gap:8px; font-size:13px; font-weight:800; color:#1e3a2f; padding:0 2px 6px; }
.est-dock-head span { font-size:11px; font-weight:500; color:#8a9a90; }
.est-dock-scroll { display:flex; gap:10px; overflow-x:auto; padding-bottom:2px; -webkit-overflow-scrolling:touch; }
.est-dock-scroll::-webkit-scrollbar { display:none; }
.est-dock-card { position:relative; flex:0 0 230px; text-align:left; background:linear-gradient(135deg,#f0fdf4,#ecfdf5); border:1px solid #bbf7d0; border-radius:14px; padding:10px 12px 10px; cursor:pointer; }
.est-dock-card:active { transform:scale(.98); }
.est-dock-name { font-size:14px; font-weight:800; color:#14532d; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; padding-right:70px; }
.est-dock-meta { font-size:11px; color:#5f7a6a; margin-top:3px; }
.est-dock-stat { font-size:11px; color:#5f7a6a; margin-top:2px; }
.est-dock-stat b { color:#16a34a; }
.est-dock-go { position:absolute; top:10px; right:10px; font-size:11px; font-weight:700; color:#16a34a; background:#fff; border:1px solid #86efac; border-radius:999px; padding:2px 8px; }


/* acrud63：网页做题页文字退出按钮 */
.wt-quiz-exit-text { min-width: auto; font-size: 14px; font-weight: 600; }

/* acrud63：小程序自测做题页文字退出按钮；acrud64：加深对比保证清晰可见 */
.est-exit-text { width: auto; min-width: 0; border-radius: 999px; padding: 0 16px; font-size: 15px; font-weight: 700; color: #fff; background: #16a34a; border: 1px solid #15803d; box-shadow: 0 2px 8px rgba(22,163,74,.25); }
.est-exit-text:active { background: #15803d; }

/* acrud64：网页「我的任务」中 dock 随页面流式排布，不固定 */
.wt-web-host .mp-dock-wrap { position: static; box-shadow: none; border-top: none; padding: 12px 0; background: transparent; }
.wt-web-host .est-dock { padding: 0; }

/* acrud64：任务中心去蓝色大标题，改白底分区标签 */
.et-zone-head { flex: 0 0 auto; display: flex; align-items: center; gap: 10px; padding: 14px 14px 10px; background: #fff; }
.et-zone-badge { width: 34px; height: 34px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; font-size: 17px; flex: 0 0 auto; }
.et-zone-badge-checkin { background: linear-gradient(135deg,#dbeafe,#bfdbfe); }
.et-zone-title { font-size: 17px; font-weight: 800; color: #0f172a; line-height: 1.2; }
.et-zone-sub { font-size: 11.5px; color: #94a3b8; margin-top: 2px; }
.et-zone-topbar { flex: 0 0 auto; display: flex; align-items: center; gap: 4px; padding: 10px 8px 2px; background: #fff; }
.et-zone-back { width: 34px; height: 34px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; color: #0f172a; background: #f1f5f9; border: none; }
.et-zone-topname { font-size: 15px; font-weight: 700; color: #0f172a; padding-left: 4px; }
.mp-page.page-task-flex .et-zone-head, .mp-page.page-task-flex .et-zone-topbar { flex: 0 0 auto; }

/* acrud66：答题回顾展示每题选项 */
.mp-review-opts { display: flex; flex-direction: column; gap: 8px; margin: 10px auto 4px; max-width: 460px; }
.mp-review-opt { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 10px; background: #f8fafc; border: 1px solid #e2e8f0; font-size: 14px; color: #334155; }
.mp-review-opt-key { width: 22px; height: 22px; border-radius: 999px; background: #e2e8f0; color: #475569; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.mp-review-opt-text { flex: 1; line-height: 1.4; word-break: break-word; }
.mp-review-opt.is-right { background: #f0fdf4; border-color: #86efac; }
.mp-review-opt.is-right .mp-review-opt-key { background: #22c55e; color: #fff; }
.mp-review-opt.is-pick { background: #fef2f2; border-color: #fca5a5; }
.mp-review-opt.is-pick .mp-review-opt-key { background: #ef4444; color: #fff; }
/* WT 端复用同构样式 */
.wt-review-opts { display: flex; flex-direction: column; gap: 8px; margin: 10px auto 4px; max-width: 520px; }
.wt-review-opt { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 10px; background: #f8fafc; border: 1px solid #e2e8f0; font-size: 14.5px; color: #334155; }
.wt-review-opt-key { width: 24px; height: 24px; border-radius: 999px; background: #e2e8f0; color: #475569; font-size: 12.5px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.wt-review-opt-text { flex: 1; line-height: 1.45; word-break: break-word; }
.wt-review-opt.is-right { background: #f0fdf4; border-color: #86efac; }
.wt-review-opt.is-right .wt-review-opt-key { background: #22c55e; color: #fff; }
.wt-review-opt.is-pick { background: #fef2f2; border-color: #fca5a5; }
.wt-review-opt.is-pick .wt-review-opt-key { background: #ef4444; color: #fff; }

/* acrud68 子页明显返回钮（圆底+文字） */
#mp-app .mp-back.mp-back-text {
  width: auto; height: 34px; padding: 0 14px 0 8px;
  gap: 3px; border-radius: 999px;
  background: rgba(255,255,255,.92);
  color: #2b5cff; font-size: 15px; font-weight: 700;
  box-shadow: 0 2px 10px rgba(15,23,42,.12);
  border: none;
}
#mp-app .mp-back.mp-back-text .mp-back-label { line-height: 1; }
#mp-app .mp-back-text:active { scale: .94; }
.wt-webhost .mp-back.mp-back-text { color: #4f46e5; }

/* acrud68 打卡任务分页 */
.etf-pager { display:flex; align-items:center; justify-content:center; gap:10px; padding:14px 0 6px; flex-wrap:wrap; }
.etf-page-nums { display:flex; align-items:center; gap:6px; flex-wrap:wrap; justify-content:center; }
.etf-page, .etf-page-nav {
  min-width:32px; height:32px; padding:0 10px; border-radius:999px;
  border:1px solid #e2e8f0; background:#fff; color:#475569;
  font-size:13px; font-weight:600; cursor:pointer; line-height:30px;
}
.etf-page.on { background:#4f46e5; border-color:#4f46e5; color:#fff; }
.etf-page:active, .etf-page-nav:active { transform:scale(.94); }
.etf-page-nav:disabled { opacity:.4; cursor:not-allowed; }
.etf-page-gap { color:#94a3b8; font-size:13px; padding:0 2px; }
.wt-webhost .etf-pager { grid-column:1/-1; }

/* acrud69 智聆口语评测反馈 */
.etl-engine { font-size:10.5px; font-weight:700; color:#7c3aed; background:#f3e8ff; border:1px solid #e9d5ff; padding:1px 8px; border-radius:999px; white-space:nowrap; }
.etl-advice { font-size:13px; color:#475569; line-height:1.6; margin-top:6px; padding:6px 10px; background:#f8fafc; border-left:3px solid #818cf8; border-radius:0 8px 8px 0; max-width:560px; }
.etl-wordfix { display:flex; flex-wrap:wrap; gap:6px; margin-top:6px; }
.etl-wordfix-item { font-size:12px; color:#b45309; background:#fef3c7; border:1px solid #fde68a; padding:2px 9px; border-radius:999px; }
.etl-wordfix-item em { font-style:normal; font-weight:700; margin-left:2px; }

/* ============================================================
   acrud89 英语打卡做题页 · 竖屏游戏化布局
   ============================================================ */
.etq-wrap {
  position: fixed; inset: 0; z-index: 60;
  width: 100%; height: 100%;
  background: radial-gradient(120% 90% at 50% 0%, #33386f 0%, #23284f 55%, #1b1f42 100%);
  display: flex; flex-direction: column;
  padding: calc(env(safe-area-inset-top, 0px) + 10px) 14px calc(env(safe-area-inset-bottom, 0px) + 10px);
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}
/* 顶部 / 底部控制行：两端按钮 + 中间通栏信息条；顶部行与卡片紧挨（无下间距） */
.etq-ctl { display:flex; align-items:center; justify-content:space-between; gap:8px; flex:0 0 auto; padding: 2px 0; }
.etq-ctl-top { padding-top: 2px; padding-bottom: 4px; }
.etq-ctl-bottom { padding-top: 4px; padding-bottom: 2px; }

/* 中央舞台：卡片填满整块（上接标题条、下探到底部行、左右到箭头内侧），箭头绝对贴边 */
.etq-stage { flex:1 1 0; min-height:0; display:flex; align-items:stretch; justify-content:stretch; position:relative; padding:0 40px; margin:0; }

/* 顶部通栏信息条：夹在两个角按钮之间，喇叭+题型+题号横排不换行；字号缩小、压低高度 */
.etq-info { flex:0 1 auto; min-width:0; height:32px; display:flex; align-items:center; justify-content:center; padding:0 12px; border-radius:999px; background:rgba(255,255,255,.08); border:1.5px solid rgba(255,255,255,.14); white-space:nowrap; overflow:hidden; }
.etq-info-speaker { width:28px; height:28px; flex:0 0 auto; border-radius:50%; border:none; background:rgba(52,211,153,.2); color:#8ff0c0; cursor:pointer; display:flex; align-items:center; justify-content:center; padding:0; }
.etq-info-speaker svg { width:16px; height:16px; }
.etq-info-speaker.placeholder { background:transparent; }
.etq-info-type { flex:0 0 auto; font-size:12px; font-weight:800; color:#8ff0c0; letter-spacing:.5px; background:rgba(52,211,153,.18); border-radius:999px; padding:3px 9px; white-space:nowrap; }
.etq-info-no { flex:0 0 auto; font-size:11px; font-weight:700; color:rgba(255,255,255,.85); letter-spacing:.5px; white-space:nowrap; }

/* 左/右翻题：绝对贴屏幕物理边缘的窄竖条，垂直居中；尽量窄，把空间让给卡片 */
.etq-arrow {
  position:absolute; top:50%; transform:translateY(-50%);
  width:30px; height:108px; z-index:4; border:none; cursor:pointer;
  border-radius:13px; color:#fff;
  background: rgba(255,255,255,.10); border:1.5px solid rgba(255,255,255,.16);
  display:flex; align-items:center; justify-content:center; transition:transform .12s, background .2s;
}
.etq-arrow-left { left:3px; }
.etq-arrow-right { right:3px; }
.etq-arrow svg { width:22px; height:22px; }
.etq-arrow:active { transform:translateY(-50%) scale(.94); }
.etq-arrow.disabled { opacity:.32; }
.etq-arrow.is-last { background: rgba(52,211,153,.22); border-color:rgba(52,211,153,.6); }

/* 中央大卡片：填满整个舞台（跟读/客观/填空一致），上接标题条、下探到底部行 */
.etq-card {
  position:relative; flex:1 1 0; align-self:stretch; margin:0;
  width:100%; min-width:0;
  background: linear-gradient(180deg,#5a90ff 0%, #3f6ff0 100%);
  border-radius:22px; padding:6px;
  box-shadow: 0 18px 40px rgba(10,16,50,.5), inset 0 0 0 2px rgba(255,255,255,.18);
  display:flex; min-height:0;
}
.etq-card-inner {
  flex:1; min-width:0; min-height:0; border-radius:16px; overflow:hidden;
  background: #efe7fb;
  display:flex; flex-direction:column; align-items:stretch;
}
.etq-card-inner.is-text { background: linear-gradient(180deg,#eaf1ff 0%, #d7e5ff 100%); justify-content:center; align-items:center; padding:20px 16px; overflow:auto; }
.etq-card-inner.has-media { justify-content:center; align-items:center; padding:0; gap:0; }
/* 媒体外壳填满蓝卡并居中 */
.etq-media-frame {
  position:relative; flex:1 1 auto; min-height:0; min-width:0;
  width:100%; height:100%; margin:0 auto; background:#efe7fb;
  display:flex; align-items:center; justify-content:center; overflow:hidden;
}
/* 严格竖版 9:16 内容盒：由一个固定 aspect-ratio 的盒子约束，绝不随图片原生比例变化。
   高度优先吃满；当推算宽度超过卡宽时，改用宽度 100%、高度由比例自动收窄。恒为 9:16。 */
.etq-media-ratio {
  position:relative;
  height:100%;
  aspect-ratio:9 / 16;
  max-width:100%;
  margin:0 auto;
  display:flex; align-items:center; justify-content:center;
  background:#efe7fb; overflow:hidden;
}
@supports not (aspect-ratio:9 / 16) {
  .etq-media-ratio { width:calc(100% * 9 / 16); height:auto; }
}
/* 媒体区右上角浮层播放按钮：置于图片上层，点击播放本题标准音 */
.etq-media-play {
  position:absolute; top:8px; right:8px; z-index:6;
  width:32px; height:32px; border-radius:50%; padding:0;
  background:rgba(0,0,0,.42); border:1.5px solid rgba(255,255,255,.7);
  color:#fff; cursor:pointer; display:flex; align-items:center; justify-content:center;
  box-shadow:0 3px 8px rgba(0,0,0,.3);
}
.etq-media-play:active { transform:scale(.92); }
.etq-media-play span { font-size:12px; margin-left:1px; }
/* 自测卡媒体区：因卡内还要放题干与选项，媒体区只占约上半部分，避免选项被挤出 */
.etq-self-media { flex:0 0 auto; width:100%; max-height:46%; padding:6px 0 0; }
.etq-self-media .etq-media-ratio { height:auto; aspect-ratio:9/16; max-height:100%; max-width:100%; margin:0 auto; }
.etq-media-ratio > .mp-eng-media,
.etq-media-ratio > img,
.etq-media-ratio > video {
  width:100% !important; height:100% !important; max-width:100%; max-height:100%;
  display:flex; align-items:center; justify-content:center;
}
.etq-media-frame img, .etq-media-frame video {
  width:100%; height:100%; max-width:100%; max-height:100%;
  object-fit:contain; display:block; margin:0 auto;
}
.etq-media-frame img[data-blob-h] { min-height:0; background:#e7e0f8; }
/* 有媒体时卡内只放图，不再显示图下文字 */
.etq-card-inner.has-media .etq-opts { flex:0 0 auto; padding:8px; }
.etq-word-overlay { display:none; }
.etq-word { text-align:center; font-size:32px; font-weight:800; color:#1f2a55; letter-spacing:1px; padding:8px 12px 2px; word-break:break-word; }
.etq-word-cap { font-size:24px; padding:12px 10px 4px; }
.etq-stem-cap { font-size:17px; margin-bottom:8px; }
.etq-ipa { font-size:17px; color:#3f5aa8; margin:4px 0 0; letter-spacing:.5px; }
.etq-meaning { font-size:15px; color:#5a6da8; margin-top:6px; }
.etq-stem { font-size:20px; font-weight:700; color:#1f2a55; text-align:center; line-height:1.6; margin-bottom:16px; }

/* 客观题选项 / 填空（竖排） */
.etq-opts { display:flex; flex-direction:column; gap:10px; width:100%; padding:6px 4px 12px; }
.etq-opt { display:flex; align-items:center; gap:10px; width:100%; padding:12px 14px; border-radius:14px; border:2px solid #b9cdff; background:#fff; color:#24315c; font-size:16px; cursor:pointer; text-align:left; }
.etq-opt .etq-optkey { width:28px; height:28px; flex:0 0 auto; border-radius:50%; background:#e7eeff; color:#3f6ff0; font-weight:800; display:flex; align-items:center; justify-content:center; font-size:14px; }
.etq-opt.sel { border-color:#3f6ff0; background:#e8f0ff; box-shadow:0 4px 14px rgba(63,111,240,.25); }
.etq-opt.sel .etq-optkey { background:#3f6ff0; color:#fff; }
.etq-opt.right { border-color:#16a673; background:#e7f9f1; }
.etq-opt.right .etq-optkey { background:#16a673; color:#fff; }
.etq-opt.wrong { border-color:#e03131; background:#fdecec; }
.etq-opt.wrong .etq-optkey { background:#e03131; color:#fff; }
.etq-fill { width:100%; padding:4px; }
.etq-input { width:100%; padding:14px; border-radius:14px; border:2px solid #b9cdff; font-size:16px; background:#fff; color:#24315c; box-sizing:border-box; }

/* 反馈 */
.etq-feedback { margin:auto 10px 10px; display:flex; align-items:center; justify-content:center; gap:10px; flex-wrap:wrap; }

/* 自测页：即时对错 + 占位 + 提交方块 */
.etq-stem-cap.etq-self-stemcap { font-size:15px; margin:6px 8px 8px; line-height:1.4; }
.etq-self-wrongtag { margin:6px 0 0; font-size:12px; font-weight:800; color:#b45309; background:#fef3c7; border-radius:999px; padding:4px 12px; white-space:nowrap; }
.etq-self-judge { margin:2px 4px 12px; text-align:center; font-size:15px; font-weight:800; border-radius:12px; padding:10px; }
.etq-self-judge.ok { color:#0f8a5f; background:#e7f9f1; }
.etq-self-judge.bad { color:#d54941; background:#fdecec; }
.etq-corner-blank { background:transparent; border-color:transparent; box-shadow:none; pointer-events:none; }
.etq-self-tag { margin-left:auto; font-size:12px; font-weight:800; color:#ffe08a; background:rgba(255,255,255,.1); border-radius:999px; padding:6px 12px; white-space:nowrap; }
.etq-self-submit { background:linear-gradient(180deg,#42dca0,#16a673); width:auto; min-width:72px; padding:0 18px; }
.etq-self-submit-txt { writing-mode:horizontal-tb; font-size:14px; white-space:nowrap; letter-spacing:1px; }


/* 四角控制按钮（位于顶部/底部控制行内，非绝对定位）；文字一律正立横排、强制不换行 */
.etq-corner {
  position:relative; z-index:5; min-width:64px; height:64px; padding:0 8px; border-radius:22px; border:2px solid rgba(255,255,255,.5);
  color:#fff; cursor:pointer; flex:0 0 auto;
  display:flex; flex-direction:row; align-items:center; justify-content:center; gap:5px;
  box-shadow:0 8px 20px rgba(10,16,50,.4); transition:transform .12s;
}
.etq-corner:active { transform:scale(.93); }
.etq-corner .etq-corner-ico { line-height:1; display:flex; align-items:center; justify-content:center; flex:0 0 auto; }
.etq-corner .etq-corner-ico svg { width:22px; height:22px; }
.etq-corner > svg { width:26px; height:26px; }
.etq-corner .etq-corner-txt { font-size:13px; font-weight:800; writing-mode:horizontal-tb; letter-spacing:0; white-space:nowrap; word-break:keep-all; line-height:1; }

/* 左下：打分（绿色方块，横排“打分”+图标/分数，不换行） */
.etq-score { background:linear-gradient(180deg,#42dca0,#16a673); }
.etq-score .etq-corner-ico b { font-size:18px; font-weight:900; }
.etq-score.has { background:linear-gradient(180deg,#34d399,#059669); }

/* 右下：录音（橙色方块，横排“录音”+麦克风，不换行，录制中红色脉冲） */
.etq-mic { background:linear-gradient(180deg,#ff9b4a,#f06a12); }
.etq-mic.recording { background:linear-gradient(180deg,#ff5a5a,#e03131); animation:etqPulse 1.1s infinite; }
.etq-mic.busy { opacity:.85; }

/* 右上：菜单（绿色圆形，三条/列表图标，点开含退出） */
.etq-menu { border-radius:50%; width:60px; height:60px; padding:0; background:linear-gradient(180deg,#3fd39a,#16a673); }

/* 左上：去提交（绿色方块，上箭头图标 + 正立横排“去提交”，不换行） */
.etq-gosubmit { background:linear-gradient(180deg,#42dca0,#16a673); }
.etq-gosubmit .etq-corner-txt { font-size:13px; white-space:nowrap; letter-spacing:0; }

@keyframes etqPulse { 0%,100%{ box-shadow:0 0 0 0 rgba(255,90,90,.5);} 50%{ box-shadow:0 0 0 12px rgba(255,90,90,0);} }

/* 菜单按钮容器：弹出的"退出任务"锚定在按钮正下方 */
.etq-menu-anchor { position:relative; flex:0 0 auto; }
.etq-menu-backdrop { position:fixed; inset:0; z-index:70; background:transparent; }
.etq-menu-pop {
  position:absolute; top:calc(100% + 10px); right:0; z-index:71;
  width:168px; background:#fff; border-radius:16px; padding:6px;
  box-shadow:0 16px 40px rgba(8,12,40,.42);
  animation:etqPopIn .16s ease-out; transform-origin:top right;
}
.etq-menu-pop::before { content:""; position:absolute; top:-6px; right:20px; width:12px; height:12px; background:#fff; transform:rotate(45deg); border-radius:2px; }
.etq-menu-pop-item {
  width:100%; display:flex; align-items:center; gap:10px; padding:12px 12px;
  border:none; background:transparent; border-radius:10px; cursor:pointer;
  font-size:15px; font-weight:700; color:#1f2a55; text-align:left; white-space:nowrap;
}
.etq-menu-pop-item:hover { background:#f1f5ff; }
.etq-menu-pop-item svg { width:20px; height:20px; color:#3f6ff0; flex:0 0 auto; }
@keyframes etqPopIn { from { opacity:0; transform:scale(.92) translateY(-6px);} to { opacity:1; transform:scale(1) translateY(0);} }

/* 评分中遮罩：跟读评测期间覆盖全屏中央提示，完成后自动弹星星 */
.etq-busy { position:fixed; inset:0; z-index:90; background:rgba(12,16,42,.55); backdrop-filter:blur(2px); display:flex; align-items:center; justify-content:center; }
.etq-busy-card { display:flex; flex-direction:column; align-items:center; gap:16px; padding:34px 44px; border-radius:26px; background:rgba(30,38,84,.82); border:1.5px solid rgba(255,255,255,.16); box-shadow:0 20px 50px rgba(0,0,0,.4); }
.etq-busy-spin { width:54px; height:54px; border-radius:50%; border:4px solid rgba(255,255,255,.18); border-top-color:#8ff0c0; animation:etqSpin .8s linear infinite; display:flex; align-items:center; justify-content:center; color:#8ff0c0; }
.etq-busy-spin svg { width:26px; height:26px; display:none; }
.etq-busy-txt { font-size:18px; font-weight:800; color:#fff; letter-spacing:2px; }
@keyframes etqSpin { to { transform:rotate(360deg);} }

/* 遮罩弹层（打分） */
.etq-mask { position:fixed; inset:0; z-index:80; background:rgba(10,14,38,.62); display:flex; align-items:flex-end; justify-content:center; }
.etq-sheet { width:100%; max-width:520px; background:#fff; border-radius:22px 22px 0 0; padding:16px 18px calc(env(safe-area-inset-bottom,0px) + 20px); max-height:78vh; overflow:auto; box-shadow:0 -10px 40px rgba(0,0,0,.4); }
.etq-sheet-head { display:flex; align-items:center; justify-content:space-between; font-size:16px; font-weight:800; color:#1f2a55; margin-bottom:10px; }
.etq-sheet-x { border:none; background:#f1f4fb; width:30px; height:30px; border-radius:50%; font-size:14px; cursor:pointer; color:#64748b; }
.etq-sheet-empty { text-align:center; color:#64748b; font-size:14px; padding:30px 10px; line-height:1.7; }
.etq-score-big { font-size:56px; font-weight:900; text-align:center; line-height:1; }
.etq-score-big em { font-style:normal; font-size:20px; font-weight:700; margin-left:4px; }
.etq-score-big.ok { color:#16a34a; } .etq-score-big.bad { color:#dc2626; }
.etq-dims { display:flex; gap:10px; margin:16px 0 10px; }
.etq-dim { flex:1; background:#f4f7ff; border-radius:14px; padding:12px 6px; text-align:center; }
.etq-dim b { display:block; font-size:22px; color:#2f56c8; }
.etq-dim span { font-size:12px; color:#64748b; }
.etq-badge { display:inline-block; font-size:13px; font-weight:700; padding:4px 14px; border-radius:999px; margin:4px 0 10px; }
.etq-badge.ok { color:#16a34a; background:#dcfce7; }
.etq-badge.bad { color:#dc2626; background:#fee2e2; }
.etq-sheet-line { font-size:13px; color:#475569; line-height:1.7; margin-top:6px; word-break:break-word; }
.etq-sheet-line.advice { background:#f8fafc; border-left:3px solid #818cf8; padding:6px 10px; border-radius:0 8px 8px 0; }
.etq-sheet-actions { display:flex; gap:10px; margin-top:16px; }
.etq-pill { flex:1; border:none; border-radius:999px; padding:12px; font-size:14px; font-weight:700; cursor:pointer; background:#3f6ff0; color:#fff; }
.etq-pill.ghost { background:#eef2ff; color:#3f6ff0; }
.etq-wordfix { display:flex; flex-wrap:wrap; gap:6px; margin-top:8px; }
.etq-wordfix-item { font-size:12px; color:#b45309; background:#fef3c7; border:1px solid #fde68a; padding:2px 9px; border-radius:999px; }
.etq-wordfix-item em { font-style:normal; font-weight:700; margin-left:2px; }

/* 去提交清单层（全屏） */
.etq-submit { position:fixed; inset:0; z-index:80; background:linear-gradient(180deg,#3a2f7d 0%, #2a2560 100%); display:flex; flex-direction:column; padding:calc(env(safe-area-inset-top,0px) + 10px) 12px calc(env(safe-area-inset-bottom,0px) + 10px); }
.etq-submit-head { display:flex; align-items:center; gap:10px; padding:4px 2px 12px; }
.etq-submit-back { width:36px; height:36px; border-radius:50%; border:none; background:rgba(255,255,255,.14); color:#fff; font-size:20px; cursor:pointer; flex:0 0 auto; }
.etq-submit-title { flex:1; min-width:0; font-size:18px; font-weight:800; color:#fff; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.etq-submit-confirm { flex:0 0 auto; border:none; background:#fff; color:#2a2560; font-size:14px; font-weight:800; padding:9px 16px; border-radius:999px; cursor:pointer; box-shadow:0 4px 14px rgba(0,0,0,.3); }
.etq-submit-grid { flex:1; min-height:0; overflow:auto; display:grid; grid-template-columns:1fr 1fr; gap:10px; align-content:start; }
.etq-sub-card { position:relative; display:flex; align-items:center; gap:8px; background:rgba(20,16,60,.55); border:1px solid rgba(255,255,255,.08); border-radius:14px; padding:8px; cursor:pointer; min-height:74px; }
.etq-sub-thumb { position:relative; width:54px; height:54px; flex:0 0 auto; border-radius:10px; overflow:hidden; background:linear-gradient(180deg,#7fb0ff,#4f86ff); display:flex; align-items:center; justify-content:center; }
.etq-sub-thumb img { width:100%; height:100%; object-fit:cover; display:block; }
.etq-sub-thumb img[data-blob-h] { min-height:54px; }
.etq-sub-thumb-ph { font-size:22px; font-weight:800; color:#fff; }
.etq-sub-no { position:absolute; top:-5px; right:-5px; min-width:20px; height:20px; padding:0 5px; border-radius:999px; background:#7c9bff; color:#fff; font-size:11px; font-weight:800; display:flex; align-items:center; justify-content:center; box-shadow:0 2px 6px rgba(0,0,0,.3); }
.etq-sub-body { flex:1; min-width:0; }
.etq-sub-stem { font-size:13px; font-weight:700; color:#eef1ff; line-height:1.35; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.etq-sub-state { font-size:12px; margin-top:6px; color:#9aa3d8; }
.etq-sub-card.done .etq-sub-state { color:#5ee0a0; }
.etq-sub-score { position:absolute; right:10px; bottom:8px; font-size:20px; font-weight:900; color:#ffc24d; text-shadow:0 2px 6px rgba(0,0,0,.4); }
.etq-sub-arrow { position:absolute; right:8px; bottom:8px; color:#ffd34d; font-size:18px; font-weight:800; }
.etq-sub-mark { position:absolute; right:10px; bottom:8px; width:24px; height:24px; border-radius:50%; color:#fff; font-size:13px; display:flex; align-items:center; justify-content:center; }
.etq-sub-mark.ok { background:#22c55e; } .etq-sub-mark.bad { background:#ef4444; }
.etq-submit-foot { margin:12px auto 0; align-self:center; background:rgba(0,0,0,.45); color:#fff; font-size:14px; font-weight:700; padding:8px 22px; border-radius:999px; }

/* ============================================================
   acrud101 跟读评分四档弹层：Excellent / Good / Nice Try / Speak Louder
   ============================================================ */
#etCheerLayer.sp-mask {
  position:fixed; inset:0; z-index:120; padding:24px;
  display:flex; align-items:center; justify-content:center;
  background:rgba(10,16,40,.55); overflow:hidden;
  cursor:pointer; -webkit-tap-highlight-color:transparent;
}
#etCheerLayer .sp-card {
  position:relative; display:flex; flex-direction:column; align-items:center;
  animation:spPop .32s cubic-bezier(.18,.9,.32,1.2);
}
@keyframes spPop { from { transform:scale(.7); opacity:0; } to { transform:scale(1); opacity:1; } }

#etCheerLayer .sp-badge { position:relative; display:flex; align-items:center; justify-content:center; }
#etCheerLayer .sp-score-num {
  width:110px; height:110px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  font-size:42px; font-weight:800; color:#7a5200;
  background:radial-gradient(circle at 34% 28%,#fff6d0,#ffd54a 55%,#f5a623);
  border:4px solid #ffe9a0;
  box-shadow:0 7px 15px rgba(245,166,35,.45), inset 0 -4px 9px rgba(180,110,0,.25);
}
#etCheerLayer.sp-nicetry .sp-score-num {
  color:#7c3a00;
  background:radial-gradient(circle at 34% 28%,#ffe7c4,#ffb15c 55%,#f97316);
  border-color:#ffd9ad;
  box-shadow:0 7px 15px rgba(249,115,22,.4), inset 0 -4px 9px rgba(160,70,0,.22);
}
#etCheerLayer .sp-wing {
  position:absolute; top:50%; width:48px; height:60px; z-index:-1;
  background:linear-gradient(180deg,#fff7d6,#ffcf3f); border:2px solid #f5a623;
}
#etCheerLayer .sp-wing-l { right:100%; margin-right:-9px; transform:translateY(-50%) skewY(18deg); border-radius:90% 10% 80% 20%; }
#etCheerLayer .sp-wing-r { left:100%; margin-left:-9px; transform:translateY(-50%) skewY(-18deg); border-radius:10% 90% 20% 80%; }

#etCheerLayer.sp-louder .sp-badge {
  width:110px; height:110px; border-radius:50%;
  border:5px solid #34d399;
  background:radial-gradient(circle at 50% 42%,#ecfdf5,#d1fae5);
  box-shadow:0 7px 15px rgba(16,185,129,.35);
}
#etCheerLayer .sp-robot { position:relative; width:100%; height:100%; display:flex; align-items:center; justify-content:center; }
#etCheerLayer .sp-robot-antenna { position:absolute; top:12px; left:50%; transform:translateX(-50%); width:4px; height:15px; background:#10b981; border-radius:2px; }
#etCheerLayer .sp-robot-antenna::before { content:''; position:absolute; top:-7px; left:50%; transform:translateX(-50%); width:9px; height:9px; border-radius:50%; background:#34d399; }
#etCheerLayer .sp-robot-head { position:relative; width:60px; height:52px; border-radius:13px; background:linear-gradient(180deg,#6ee7b7,#10b981); box-shadow:inset 0 -4px 7px rgba(6,95,70,.3); }
#etCheerLayer .sp-robot-eye { position:absolute; top:15px; width:11px; height:11px; border-radius:50%; background:#064e3b; box-shadow:0 0 0 2px rgba(255,255,255,.85); }
#etCheerLayer .sp-robot-eye.l { left:14px; } #etCheerLayer .sp-robot-eye.r { right:14px; }
#etCheerLayer .sp-robot-mouth { position:absolute; bottom:11px; left:50%; transform:translateX(-50%); width:22px; height:5px; border-radius:3px; background:#064e3b; }

#etCheerLayer .sp-ribbon {
  position:relative; margin-top:15px; min-width:140px; padding:7px 24px;
  background:linear-gradient(180deg,#ffe07a,#f5b324); border-radius:6px;
  box-shadow:0 4px 9px rgba(245,166,35,.4);
}
#etCheerLayer .sp-ribbon::before, #etCheerLayer .sp-ribbon::after {
  content:''; position:absolute; bottom:-6px; border-style:solid; border-width:6px 6px 0 0; border-color:#d98a10 transparent transparent transparent;
}
#etCheerLayer .sp-ribbon::before { left:0; } #etCheerLayer .sp-ribbon::after { right:0; transform:scaleX(-1); }
#etCheerLayer .sp-ribbon span { font-size:20px; font-weight:800; color:#7a4a00; letter-spacing:1px; }
#etCheerLayer.sp-nicetry .sp-ribbon { background:linear-gradient(180deg,#ffc98a,#f97316); box-shadow:0 4px 9px rgba(249,115,22,.4); }
#etCheerLayer.sp-nicetry .sp-ribbon::before, #etCheerLayer.sp-nicetry .sp-ribbon::after { border-color:#c2410c transparent transparent transparent; }
#etCheerLayer.sp-nicetry .sp-ribbon span { color:#6b2e00; }
#etCheerLayer.sp-louder .sp-ribbon { background:linear-gradient(180deg,#6ee7b7,#10b981); box-shadow:0 4px 9px rgba(16,185,129,.4); }
#etCheerLayer.sp-louder .sp-ribbon::before, #etCheerLayer.sp-louder .sp-ribbon::after { border-color:#047857 transparent transparent transparent; }
#etCheerLayer.sp-louder .sp-ribbon span { color:#053f31; }

#etCheerLayer .sp-sub { margin-top:12px; font-size:17px; font-weight:700; color:#fff; }
#etCheerLayer .sp-tip { margin-top:9px; font-size:11px; color:rgba(255,255,255,.7); }

#etCheerLayer .sp-confetti {
  position:absolute; top:-15px; border-radius:2px; opacity:.95; z-index:1;
  animation-name:spFall; animation-timing-function:linear; animation-iteration-count:infinite;
}
@keyframes spFall {
  0% { transform:translateY(-20px) rotate(0deg); opacity:1; }
  100% { transform:translateY(110vh) rotate(720deg); opacity:.9; }
}

/* 底部我的录音条 */
.etq-myaudio {
  position:fixed; left:60px; right:60px; bottom:56px; z-index:110;
  height:42px; border-radius:21px; padding:0 10px 0 7px;
  display:flex; align-items:center; gap:9px;
  background:rgba(20,28,60,.92); color:#fff; cursor:pointer;
  box-shadow:0 6px 15px rgba(0,0,0,.4);
  animation:myUp .3s ease;
}
@keyframes myUp { from { transform:translateY(120%); } to { transform:translateY(0); } }
.etq-myaudio-ico {
  width:32px; height:32px; border-radius:50%; flex:0 0 auto;
  background:linear-gradient(135deg,#4a6bff,#2f4ae0);
  display:flex; align-items:center; justify-content:center; font-size:12px;
}
.etq-myaudio-text { flex:1 1 auto; min-width:0; font-size:14px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.etq-myaudio-tag {
  flex:0 0 auto; font-size:11px; color:rgba(255,255,255,.7);
  padding:3px 9px; border-radius:999px; background:rgba(255,255,255,.12);
}

/* ============================================================
   acrud107 做题页布局（横屏）：四角按钮宽约屏宽 1/15 + 中央大展示区
   展示区宽约 4/5、高约 7/10；准备页保持竖屏，不在此覆盖
   ============================================================ */
@media (orientation: landscape) {
  .etq-wrap {
    display: block;
    padding: 8px;
  }

  /* 四角按钮：绝对定位，宽度约屏宽 1/15 */
  .etq-ctl { position: static; }
  .etq-ctl-top, .etq-ctl-bottom {
    position: absolute;
    left: 8px;
    right: 8px;
    padding: 0;
    margin: 0;
    height: 0;
    pointer-events: none;
  }
  .etq-ctl-top { top: 8px; }
  .etq-ctl-bottom { bottom: 8px; }

  .etq-corner {
    position: absolute;
    width: 6.7vw;
    height: 6.7vw;
    min-width: 30px;
    max-width: 52px;
    border-radius: 10px;
    padding: 0;
    pointer-events: auto;
    flex-direction: column;
    gap: 1px;
  }
  .etq-corner .etq-corner-ico svg { width: 14px; height: 14px; }
  .etq-corner .etq-corner-ico b { font-size: 14px; }
  .etq-corner .etq-corner-txt { font-size: 8px; }

  .etq-gosubmit { left: 0; top: 0; }
  .etq-menu-anchor {
    position: absolute !important;
    right: 0;
    top: 0;
    width: 6.7vw;
    height: 6.7vw;
    min-width: 30px;
    max-width: 52px;
  }
  .etq-menu {
    width: 100% !important;
    height: 100% !important;
    border-radius: 10px !important;
  }
  .etq-score { left: 0; bottom: 0; }
  .etq-mic { right: 0; bottom: 0; }

  /* 顶部题号：纯序号、无圆角背景，字体减半 */
  .etq-info {
    position: absolute;
    top: 4px;
    left: 50%;
    transform: translateX(-50%);
    height: 16px;
    width: auto;
    min-width: 40px;
    background: transparent;
    border: none;
    padding: 0;
  }
  .etq-info-no { font-size: 8px; font-weight: 500; }

  /* 媒体区右上角播放按钮：小而克制 */
  .etq-media-play {
    top: 6px;
    right: 6px;
    height: 20px;
    padding: 0 10px;
    border-radius: 10px;
    gap: 4px;
  }
  .etq-media-play svg { width: 11px; height: 11px; }
  .etq-media-play .etq-media-play-txt { font-size: 10px; }

  /* 中央舞台：相对定位，箭头贴边 */
  .etq-stage {
    position: absolute;
    inset: 0;
    padding: 0;
    align-items: center;
    justify-content: center;
  }

  /* 中央展示卡：宽约 4/5、高约 7/10 */
  .etq-card {
    flex: 0 0 auto;
    width: 82vw;
    height: 72vh;
    align-self: center;
    border-radius: 20px;
  }

  /* 翻题箭头：细窄贴边、垂直居中 */
  .etq-arrow {
    width: 14px;
    height: 54px;
    border-radius: 10px;
  }
  .etq-arrow-left { left: 2px; }
  .etq-arrow-right { right: 2px; }

  /* 底部我的录音条：居中，避开四角按钮 */
  .etq-myaudio {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    bottom: calc(8px + 6.7vw + 8px);
  }

}

