/* ===== Be Go必过词测 · 云端工作台 · 自由风 UI ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --coral: #ff7a59;
  --coral-d: #f4613f;
  --teal: #2ec4b6;
  --ink: #2b2b33;
  --muted: #8a8a96;
  --warn: #f4a261;
  --bad: #ef5d6f;
  --card: rgba(255,255,255,.82);
  --line: rgba(0,0,0,.06);
}

body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", -apple-system, sans-serif;
  color: var(--ink);
  font-size: 17px;
  min-height: 100vh;
  background:
    radial-gradient(1200px 600px at 12% -8%, #ffe3d6 0%, rgba(255,227,214,0) 55%),
    radial-gradient(1000px 560px at 105% 8%, #d6f5ef 0%, rgba(214,245,239,0) 55%),
    linear-gradient(160deg, #fff6f1 0%, #f3fbf9 100%);
  background-attachment: fixed;
}
a { text-decoration: none; color: inherit; }

/* 顶部导航 */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 18px;
  padding: 14px 26px;
  background: rgba(255,255,255,.7);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand {
  font-size: 21px; font-weight: 800; letter-spacing: .5px;
  background: linear-gradient(90deg, var(--coral), var(--teal));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.tabs { display: flex; gap: 6px; }
.tab {
  font-size: 17px; padding: 9px 18px; border-radius: 999px; color: var(--muted);
  cursor: pointer; transition: .18s; font-weight: 600;
}
.tab:hover { color: var(--ink); background: rgba(0,0,0,.04); }
.tab.active {
  color: #fff; background: linear-gradient(120deg, var(--coral), var(--coral-d));
  box-shadow: 0 6px 16px rgba(255,122,89,.32);
}
.userbox { margin-left: auto; font-size: 15px; color: var(--muted); display: flex; gap: 14px; align-items: center; }
.logout { color: var(--muted); cursor: pointer; }
.logout:hover { color: var(--bad); }

.container { max-width: 940px; margin: 0 auto; padding: 26px 22px 80px; }

/* 卡片 */
.card {
  background: var(--card);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  border-radius: 18px; padding: 18px;
  margin-bottom: 14px;
  box-shadow: 0 8px 24px rgba(40,40,60,.06);
}
.flex { display: flex; align-items: center; }
.between { justify-content: space-between; }
.muted { color: var(--muted); font-size: 15px; }
.header {
  font-size: 19px; font-weight: 800; margin: 20px 0 12px;
  display: flex; align-items: center; gap: 8px;
}
.header::before {
  content: ""; width: 6px; height: 18px; border-radius: 4px;
  background: linear-gradient(180deg, var(--coral), var(--teal));
}
.empty { color: var(--muted); text-align: center; padding: 48px 0; font-size: 16px; }
.loading { color: var(--muted); text-align: center; padding: 48px 0; font-size: 16px; }
.op-tip { min-height: 20px; margin-top: 10px; text-align: center; }

/* A-Z 首字母分组标题 */
.alpha-head {
  display: flex; align-items: center; gap: 10px;
  margin: 22px 0 10px; font-size: 22px; font-weight: 900;
  background: linear-gradient(90deg, var(--coral), var(--teal));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.alpha-head:first-of-type { margin-top: 8px; }
.alpha-count {
  font-size: 13px; font-weight: 700; color: #fff;
  background: rgba(124,124,140,.55); border-radius: 20px;
  padding: 1px 9px; -webkit-text-fill-color: #fff;
}

/* 学生/错词行 */
.stu { cursor: pointer; transition: .18s; }
.stu:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(40,40,60,.1); }
.stu .name { font-size: 20px; font-weight: 700; }
.stu .meta { color: var(--muted); font-size: 15px; margin-top: 5px; }
.counts { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.count {
  flex: 1; min-width: 120px; background: rgba(255,255,255,.7);
  border-radius: 14px; padding: 12px 14px; text-align: center;
  border: 1px solid var(--line);
}
.count .n { font-size: 24px; font-weight: 800; color: var(--teal); }
.count .l { font-size: 14px; color: var(--muted); margin-top: 3px; }
.count.warn .n { color: var(--warn); }
.count.bad .n { color: var(--bad); }

/* 按钮 */
.btn-primary, .btn-ghost {
  display: inline-block; border: none; border-radius: 999px; cursor: pointer;
  font-size: 17px; font-weight: 700; padding: 12px 22px; text-align: center;
  transition: .18s;
}
.btn-primary {
  color: #fff;
  background: linear-gradient(120deg, var(--coral), var(--coral-d));
  box-shadow: 0 8px 20px rgba(255,122,89,.3);
}
.btn-primary:hover { filter: brightness(1.04); transform: translateY(-1px); }
.btn-ghost {
  background: rgba(46,196,182,.12); color: #1c8f84;
  border: 1px solid rgba(46,196,182,.3);
}
.btn-ghost:hover { background: rgba(46,196,182,.2); }
.btn-block { display: block; width: 100%; margin-top: 14px; }
.del-btn { color: var(--bad); font-size: 15px; cursor: pointer; padding: 6px 12px; border-radius: 10px; }
.del-btn:hover { background: rgba(239,93,111,.1); }

/* 表单 */
.ipt {
  width: 100%; border: 1px solid var(--line); border-radius: 14px;
  padding: 13px 15px; font-size: 17px; margin-top: 10px; background: rgba(255,255,255,.9);
  transition: .18s;
}
.ipt:focus { border-color: var(--coral); outline: none; box-shadow: 0 0 0 3px rgba(255,122,89,.15); }
label.field { display: block; margin-top: 14px; font-size: 15px; color: #555; font-weight: 600; }

/* 错词 */
.word .w-text { font-size: 22px; font-weight: 800; }
.word .w-ipa { color: var(--muted); font-size: 16px; margin-left: 8px; }
.word .pos { color: var(--teal); font-weight: 700; margin-right: 6px; }
.word .meanings { color: #444; font-size: 16px; margin-top: 6px; line-height: 1.7; }
.spk { font-size: 22px; cursor: pointer; padding: 6px 12px; background: rgba(46,196,182,.12); border-radius: 12px; transition: .15s; }
.spk:hover { background: rgba(46,196,182,.22); }
.badge { font-size: 13px; color: #1c8f84; background: rgba(46,196,182,.14); padding: 4px 10px; border-radius: 999px; }
.badge.bad { color: var(--bad); background: rgba(239,93,111,.12); }

/* 听写 */
.board { text-align: center; padding: 30px; }
.word-big { font-size: 42px; font-weight: 800; margin: 16px 0; letter-spacing: 1px; }
.d-meanings { margin-top: 10px; }
.d-m { font-size: 18px; color: #444; margin: 4px 0; }
.d-ipa { color: var(--teal); font-size: 17px; font-weight: 700; margin: 6px 0 2px; }
.spk-big {
  font-size: 18px; padding: 12px 22px; border-radius: 999px; cursor: pointer;
  display: inline-block; margin-top: 8px; color: #fff; font-weight: 700;
  background: linear-gradient(120deg, var(--teal), #25a99d);
  box-shadow: 0 8px 20px rgba(46,196,182,.3);
}
.judge { display: flex; gap: 14px; margin-top: 18px; }
.judge .btn-primary { flex: 1; }
.judge .btn-ghost { flex: 1; }
.progress { color: var(--muted); font-size: 15px; margin-top: 10px; }

/* 登录遮罩 */
.mask {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(30,28,40,.45);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
}
.login-card {
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(16px);
  border-radius: 24px; padding: 38px 34px; width: 360px; text-align: center;
  box-shadow: 0 30px 70px rgba(40,30,60,.3);
  border: 1px solid rgba(255,255,255,.6);
}
.login-title { font-size: 24px; font-weight: 800; }
.login-sub { color: var(--muted); font-size: 15px; margin: 12px 0 22px; line-height: 1.6; }
.login-tip { color: var(--muted); font-size: 13px; margin-top: 14px; line-height: 1.6; }
.hidden { display: none !important; }

/* 扫码登录二维码 */
.qr-box {
  width: 264px; height: 264px; margin: 0 auto 6px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, #fff, #fdf3ee); border-radius: 18px; overflow: hidden;
  border: 1px solid var(--line);
}
.qr-img { width: 244px; height: 244px; }
.qr-loading { color: var(--muted); font-size: 15px; }
.qr-code {
  font-family: "SF Mono", Menlo, Consolas, monospace; font-size: 22px; font-weight: 700;
  letter-spacing: 2px; color: var(--ink); background: #fff; padding: 14px 18px; border-radius: 12px;
  border: 1px dashed var(--coral);
}

/* 数据分析 */
.stat-row { display: flex; gap: 14px; flex-wrap: wrap; }
.stat {
  flex: 1; min-width: 150px; background: var(--card); backdrop-filter: blur(8px);
  border: 1px solid var(--line); border-radius: 18px; padding: 20px; text-align: center;
  box-shadow: 0 8px 24px rgba(40,40,60,.06);
}
.stat .n { font-size: 30px; font-weight: 800; background: linear-gradient(120deg, var(--coral), var(--teal)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat .l { color: var(--muted); font-size: 15px; margin-top: 6px; }
.hf-item { display: flex; justify-content: space-between; align-items: center; padding: 13px 6px; border-bottom: 1px solid var(--line); font-size: 16px; }
.hf-item:last-child { border-bottom: none; }
.hf-item .c { color: var(--bad); font-weight: 700; }

/* 词库页学生卡内可点击统计 */
.counts.stu-counts { gap: 6px; margin-top: 12px; }
.count.clickable { cursor: pointer; transition: .15s; min-width: 78px; }
.count.clickable:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(40,40,60,.12); }
/* 计数小块被选中（点它筛选）时高亮，与小程序 .cnt-on 一致 */
.count.on { background: #e8f8ef; box-shadow: inset 0 0 0 2px var(--teal); }
.count.on .l { color: var(--teal); font-weight: 600; }
.grad-badge { background: rgba(46,196,182,.15); color: #1c8f84; }

/* 错词本筛选 tab */
.filter-tabs { gap: 8px; margin: 14px 0 4px; flex-wrap: wrap; }
.ftab { font-size: 15px; padding: 7px 16px; border-radius: 999px; cursor: pointer; color: var(--muted);
  background: rgba(0,0,0,.04); transition: .15s; font-weight: 600; }
.ftab.active { color: #fff; background: linear-gradient(120deg, var(--coral), var(--coral-d)); }
.ftab:hover { color: var(--ink); }

/* 已掌握区 */
.grad-head { color: var(--teal); }
.grad-head::before { background: var(--teal); }
.word.grad { opacity: .82; }

/* ===== 错词卡片（对齐小程序学生端 .w-card） ===== */
.field { display: block; font-size: 13px; color: #888; margin: 12px 0 6px; font-weight: 600; }
.w-card { display: flex; justify-content: space-between; align-items: flex-start; background: #fff;
  border-radius: 14px; padding: 14px 16px; margin-bottom: 10px; box-shadow: 0 4px 16px rgba(0,0,0,.04); }
.w-card.grad { opacity: .72; }
.w-left { flex: 1; min-width: 0; }
.w-right { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; flex: 0 0 auto; margin-left: 12px; }
.w-word { font-size: 19px; font-weight: 700; color: #222; }
.w-ipa { font-size: 14px; color: #888; font-weight: 400; margin-left: 8px; }
.w-pos { font-size: 14px; color: #5b6bff; font-weight: 700; margin-left: 6px; }
.w-mean { font-size: 14px; color: #666; margin-top: 4px; line-height: 1.6; }
.w-none { font-size: 14px; color: #E08A8A; margin-top: 4px; }
.nm-word { color: #E08A8A; }
/* 待补释义：导入未取到义的单词置顶显示，醒目提示二次补全 */
.miss-tip { color: #D9534F; font-weight: 600; }
.header.sub-head { margin-top: 14px; }
.w-card.miss-card { border-left: 4px solid #E08A8A; background: #FFFAFA; }
.w-meta { font-size: 12px; color: #aaa; margin-top: 6px; }
.tag { font-size: 12px; padding: 4px 12px; border-radius: 999px; white-space: nowrap; }
.tag.t0 { background: #eee; color: #999; }
.tag.t1 { background: #FDECEA; color: #D6453B; }
.tag.t2 { background: #FFF3E0; color: #E8833A; }
.tag.t3 { background: #E8EAF6; color: #3F51B5; }
.tag.mastered { background: #E8F8EF; color: #2E7D5B; }
.w-actions { display: flex; align-items: center; gap: 4px; }
.w-play { font-size: 18px; cursor: pointer; padding: 4px 8px; background: rgba(46,196,182,.12); border-radius: 10px; }
.w-play:hover { background: rgba(46,196,182,.22); }

/* 编辑弹层（复用 .modal-mask/.modal，内部加状态标记区） */
.edit-modal { width: 520px; max-width: 94vw; }
.em-head { margin-bottom: 6px; }
.em-title { font-size: 19px; font-weight: 800; color: #222; }
.em-tip { font-size: 13px; color: #999; margin-top: 4px; }
.em-body { margin-top: 6px; }
.em-actions { display: flex; gap: 10px; margin-top: 16px; }
.em-actions .btn-ghost, .em-actions .btn-primary { flex: 1; padding: 12px 0; border: none; border-radius: 12px; font-size: 15px; font-weight: 700; cursor: pointer; }
.em-actions .btn-primary { background: #2E7D5B; color: #fff; }
.em-actions .btn-ghost { background: #eee; color: #555; }
.status-row { display: flex; gap: 8px; flex-wrap: wrap; }
.st-btn { padding: 8px 16px; border-radius: 10px; font-size: 14px; cursor: pointer; background: #f2f3f5; color: #555; border: 1px solid transparent; transition: .15s; }
.st-btn:hover { background: #e9eaec; }
.st-btn.on { background: #EAF2FF; color: #2a7fff; border-color: #2a7fff; font-weight: 700; }
.st-btn.mastered.on { background: #E8F8EF; color: #2E7D5B; border-color: #2E7D5B; }

/* 备注 */
.remark-row { display: flex; align-items: center; gap: 12px; margin-top: 10px; font-size: 15px; }
.remark-text { color: #555; flex: 1; }
.remark-edit { color: #07c160; font-size: 15px; cursor: pointer; white-space: nowrap; font-weight: 600; }
.remark-edit:hover { text-decoration: underline; }

/* 总数据：班级趋势 */
.class-card .name { font-size: 18px; font-weight: 700; }
.class-metrics { flex-wrap: wrap; gap: 10px 18px; margin-top: 10px; font-size: 15px; color: var(--muted); }
.up { color: var(--teal); font-weight: 700; }
.down { color: var(--bad); font-weight: 700; }
.trend { display: flex; align-items: flex-end; gap: 6px; height: 70px; margin-top: 12px; padding: 8px 6px;
  background: rgba(0,0,0,.03); border-radius: 12px; }
.tbar { flex: 1; min-width: 8px; background: linear-gradient(180deg, var(--coral), var(--teal)); border-radius: 4px 4px 0 0; min-height: 6px; }

/* 总数据：共性痛点 */
.pain-item { padding: 12px 0; border-bottom: 1px solid var(--line); }
.pain-item:last-child { border-bottom: none; }
.pain-item.common { background: rgba(239,93,111,.06); border-radius: 12px; padding: 12px; margin: 6px 0; }
.pain-cat { font-size: 17px; font-weight: 700; }

/* 总数据：分层教学 */
.tier-wrap { display: flex; gap: 14px; flex-wrap: wrap; }
.tier { flex: 1; min-width: 240px; }
.tier-title { font-size: 17px; font-weight: 800; margin-bottom: 10px; }
.tier-A .tier-title { color: var(--bad); }
.tier-B .tier-title { color: var(--coral); }
.tier-C .tier-title { color: var(--teal); }
.tier-stu { padding: 10px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 3px; }
.tier-stu:last-child { border-bottom: none; }
.tier-name { font-size: 16px; font-weight: 700; }

/* 学生库批量补全提示 */
.batch-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: rgba(244,162,97,.12); border: 1px solid rgba(244,162,97,.3); color: #b5701f;
  padding: 12px 16px; border-radius: 14px; margin: 14px 0; font-size: 15px; }
.btn-ghost.sm { font-size: 14px; padding: 7px 14px; margin: 0; }

/* 正向统计（已掌握 / 进步率） */
.stat .n.good { background: linear-gradient(120deg, var(--teal), #25a99d); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* ===== 导入错词本面板 ===== */
.ttl { font-size: 18px; font-weight: 800; color: var(--ink); margin-bottom: 10px; }

.imp-file { display: block; width: 100%; margin-top: 10px; font-size: 15px; color: #555; }
.imp-link { color: var(--teal); cursor: pointer; font-weight: 600; font-size: 15px; }
.imp-link:hover { text-decoration: underline; }
.imp-tpl {
  background: rgba(0,0,0,.04); border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 14px; font-size: 14px; color: #555; white-space: pre-wrap;
  font-family: "SF Mono", Menlo, Consolas, monospace; margin-top: 10px; line-height: 1.6; overflow-x: auto;
}

.imp-num { background: rgba(46,196,182,.14); color: #1c8f84; font-size: 14px; font-weight: 700; padding: 4px 12px; border-radius: 999px; }

.imp-check { display: flex; align-items: flex-start; gap: 8px; font-size: 15px; color: #555; margin-top: 12px; cursor: pointer; line-height: 1.5; }
.imp-check input { margin-top: 3px; flex-shrink: 0; }

.imp-list { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.imp-row {
  display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px 10px;
  background: rgba(255,255,255,.6); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px;
}
.imp-w { flex: 0 0 auto; font-size: 17px; font-weight: 700; color: var(--ink); display: flex; align-items: center; gap: 6px; }
.imp-pos { font-size: 12px; color: #1c8f84; background: rgba(46,196,182,.14); padding: 2px 8px; border-radius: 999px; font-weight: 700; }
.imp-ipa { font-size: 12px; color: #b5701f; background: rgba(244,162,97,.16); padding: 2px 8px; border-radius: 999px; font-weight: 700; }
.imp-stu { font-size: 12px; color: #b5701f; background: rgba(244,162,97,.16); padding: 2px 8px; border-radius: 999px; font-weight: 600; }
.imp-mean { flex: 1 1 160px; font-size: 15px; color: #555; line-height: 1.6; }
.imp-mean.empty { color: var(--muted); font-style: italic; }
.imp-remark { flex: 1 1 100%; font-size: 13px; color: var(--muted); margin-top: 2px; }
.imp-del { flex: 0 0 auto; color: var(--bad); cursor: pointer; font-size: 16px; padding: 2px 6px; border-radius: 8px; transition: .15s; }
.imp-del:hover { background: rgba(239,93,111,.1); }

.imp-bar { background: rgba(0,0,0,.06); border-radius: 999px; height: 12px; overflow: hidden; margin: 12px 0 8px; }
.imp-bar-in { height: 100%; width: 2%; background: linear-gradient(120deg, var(--coral), var(--teal)); border-radius: 999px; transition: width .3s ease; }

.imp-ps { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.imp-ps:last-child { border-bottom: none; }

/* 全局页脚版本号（#appFooter，app.js 填充文案） */
.app-footer {
  text-align: center;
  color: #a6adb8;
  font-size: 12px;
  padding: 32px 0 24px;
  user-select: none;
}

/* 工作台 · 联系客服卡片 */
.service-card { background: linear-gradient(120deg, rgba(255,122,89,.08), rgba(46,196,182,.08)); }
.service-row { display: flex; align-items: center; gap: 14px; margin-top: 12px; }
.service-tel { font-size: 24px; font-weight: 800; letter-spacing: 1px; background: linear-gradient(120deg, var(--coral), var(--teal)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* 错词编辑面板 */
.edit-btn { color: #07c160; font-size: 15px; cursor: pointer; padding: 6px 12px; border-radius: 10px; font-weight: 600; }
.edit-btn:hover { background: rgba(7,193,96,.1); }
.extra { color: #555; font-size: 15px; margin-top: 6px; }
.extra::before { content: "· "; color: var(--muted); }
.edit-form { display: block; }
.edit-form .ipt { margin-top: 6px; }
.edit-actions { display: flex; gap: 10px; margin-top: 14px; }
.edit-actions .btn-primary, .edit-actions .btn-ghost { flex: 1; margin: 0; }

/* 听写 · 隐藏占位 + 工具条 */
.word-big.placeholder { color: var(--muted); font-size: 22px; font-weight: 600; background: rgba(0,0,0,.04); border-radius: 12px; padding: 14px; }
.dict-tools { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; justify-content: center; }
.dict-tools .btn-ghost { margin: 0; }

/* 协议与隐私政策页 */
.doc-switch { display: flex; gap: 8px; margin: 6px 0 18px; }
.ds-item { font-size: 15px; padding: 8px 18px; border-radius: 999px; cursor: pointer; color: var(--muted); background: rgba(0,0,0,.04); font-weight: 600; transition: .15s; }
.ds-item.on { color: #fff; background: linear-gradient(120deg, var(--coral), var(--coral-d)); }
.ag-title { font-size: 22px; font-weight: 800; margin-bottom: 4px; }
.ag-updated { color: var(--muted); font-size: 14px; margin-bottom: 14px; }
.ag-sec { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; margin-bottom: 12px; box-shadow: 0 8px 24px rgba(40,40,60,.05); }
.ag-h { font-size: 17px; font-weight: 800; margin-bottom: 8px; color: var(--coral-d); }
.ag-p { font-size: 15px; color: #444; line-height: 1.8; margin: 6px 0; }
.ag-li { font-size: 15px; color: #444; line-height: 1.8; margin: 6px 0; }

/* ===== 统计页（对齐小程序「总数据」） ===== */
.stat .n.warn-n { background: linear-gradient(120deg, var(--warn), #e07b39); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.dist-row { display: flex; align-items: center; padding: 15px 4px; border-bottom: 1px solid var(--line); cursor: pointer; }
.dist-row:last-of-type { border-bottom: none; }
.dist-name { flex: 1; font-size: 17px; font-weight: 600; }
.dist-num { font-size: 19px; font-weight: 800; margin-right: 14px; }
.dist-num.warn { color: var(--warn); }
.dist-num.ok { color: var(--teal); }
.dist-btn { font-size: 14px; color: #fff; background: var(--teal); border-radius: 999px; padding: 4px 14px; }
.dist-list { max-height: 260px; overflow: auto; padding: 6px 2px; border-top: 1px dashed var(--line); margin-bottom: 8px; }
.dist-item { display: flex; justify-content: space-between; padding: 8px 4px; font-size: 15px; border-bottom: 1px solid rgba(0,0,0,.03); }
.dist-item:last-child { border-bottom: none; }
.chart-card { }
.chart-legend { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; font-size: 13px; color: var(--muted); }
.legend-dot { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.legend-txt { margin-right: 14px; }
.chart-bars { display: flex; justify-content: space-around; align-items: flex-end; padding: 8px 0 2px; }
.chart-group { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 90px; }
.chart-label { font-size: 14px; color: var(--muted); }
.chart-col { height: 130px; width: 34px; background: rgba(0,0,0,.045); border-radius: 8px; display: flex; align-items: flex-end; overflow: hidden; }
.chart-col .bar { width: 100%; border-radius: 8px 8px 0 0; min-height: 4px; }
.chart-val { font-size: 19px; font-weight: 800; }
.chart-val.warn { color: var(--warn); }
.chart-val.ok { color: var(--teal); }
.block-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 4px 0 8px; }
.block { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px; cursor: pointer; transition: .15s; box-shadow: 0 8px 24px rgba(40,40,60,.05); }
.block:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(40,40,60,.1); }
.blk-line { display: flex; align-items: center; gap: 8px; }
.blk-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.blk-name { font-size: 16px; font-weight: 700; }
.blk-sub { font-size: 13px; color: var(--muted); margin-top: 8px; }

/* ===== 工作台（对齐小程序） ===== */
.profile-card { display: flex; align-items: center; gap: 14px; }
.profile-card .avatar { width: 56px; height: 56px; border-radius: 50%; background: linear-gradient(135deg, var(--teal), #25a99d); color: #fff; font-size: 24px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.p-info { flex: 1; }
.p-name { font-size: 20px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.badge-free { font-size: 12px; color: #b5701f; background: rgba(244,162,97,.18); border-radius: 999px; padding: 2px 10px; font-weight: 700; }
.p-id { font-size: 14px; color: var(--muted); margin-top: 4px; }
.p-arrow { font-size: 14px; color: var(--muted); cursor: pointer; white-space: nowrap; }
.p-arrow:hover { color: var(--teal); }
.tool-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.tool { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px 8px 14px; text-align: center; cursor: pointer; transition: .15s; box-shadow: 0 8px 24px rgba(40,40,60,.05); }
.tool:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(40,40,60,.1); }
.tool-icon { width: 46px; height: 46px; margin: 0 auto 8px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 22px; }
.ti-import { background: rgba(46,196,182,.14); }
.ti-export { background: rgba(255,122,89,.14); }
.ti-dict { background: rgba(92,107,192,.14); }
.ti-ipa { background: rgba(171,71,188,.14); }
.ti-web { background: rgba(0,0,0,.06); }
.ti-invite { background: rgba(38,166,154,.14); }
.ti-ai { background: rgba(124,77,255,.14); }
.tool-name { font-size: 14px; font-weight: 600; color: #444; }

/* ====== 学习计划（词书 + 每日词数 + 进度） ====== */
.sp-tabs { display: flex; gap: 10px; margin-bottom: 16px; }
.sp-tab {
  padding: 9px 18px; border-radius: 999px; background: var(--card); border: 1px solid var(--line);
  color: var(--muted); font-weight: 600; cursor: pointer; transition: .18s;
}
.sp-tab.on {
  color: #fff; border-color: transparent;
  background: linear-gradient(120deg, var(--coral), var(--coral-d));
  box-shadow: 0 6px 16px rgba(255,122,89,.28);
}
.sp-cover {
  border-radius: 18px; padding: 22px 20px; color: #fff;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  box-shadow: 0 12px 28px rgba(40,40,60,.14);
}
.sp-cover-name { font-size: 21px; font-weight: 800; }
.sp-cover-tag { background: rgba(255,255,255,.26); padding: 5px 13px; border-radius: 999px; font-size: 12px; white-space: nowrap; }
.sp-desc { font-size: 13px; color: var(--muted); margin: 12px 2px 0; line-height: 1.7; }
.sp-bar { height: 10px; background: #eef1f5; border-radius: 999px; overflow: hidden; margin-top: 18px; }
.sp-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--coral), var(--teal)); transition: .35s; }
.sp-prog { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); margin-top: 8px; }
.sp-meta { font-size: 14px; color: #5B6572; line-height: 1.9; margin-top: 4px; }
.sp-meta b { color: var(--teal); font-weight: 700; }
.sp-new { color: #E0533D; font-weight: 700; }
.sp-groups { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 18px 0 6px; }
.sp-g { border: 1.5px solid var(--line); border-radius: 14px; padding: 12px 4px; text-align: center; cursor: pointer; background: var(--card); transition: .15s; }
.sp-g:hover { transform: translateY(-2px); }
.sp-g.on { border-color: var(--coral); background: #fff5f2; }
.sp-g-n { font-size: 15px; font-weight: 700; color: #444; }
.sp-g.on .sp-g-n { color: var(--coral); }
.sp-g-d { font-size: 11px; color: var(--muted); margin-top: 4px; }
.sp-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.sp-books { margin-top: 14px; }
.sp-book {
  display: flex; align-items: center; gap: 12px; background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; padding: 14px; margin-bottom: 10px; cursor: pointer; transition: .15s;
}
.sp-book:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(40,40,60,.08); }
.sp-book.on { border-color: var(--teal); box-shadow: 0 0 0 2px rgba(46,125,91,.14); }
.sp-book-c { width: 44px; height: 44px; border-radius: 12px; flex: none; }
.sp-book-info { flex: 1; min-width: 0; }
.sp-book-name { font-size: 15px; font-weight: 700; color: #333; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sp-now { font-size: 11px; color: #fff; background: var(--teal); border-radius: 999px; padding: 2px 8px; font-weight: 600; }
.sp-book-desc { font-size: 12px; color: var(--muted); margin-top: 4px; }
.sp-del { cursor: pointer; font-size: 16px; color: #c7cdd6; padding: 0 6px; }
.sp-del:hover { color: var(--bad); }
.sp-added { font-size: 12px; color: var(--teal); font-weight: 600; }
.sp-sel { padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); font-size: 14px; max-width: 260px; }

/* ====== 学习会话（看词 → 释义 → 认识 / 不认识） ====== */
.ss-top { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.ss-title { font-size: 17px; font-weight: 800; color: #333; flex: 1; }
.ss-prog { font-size: 13px; color: var(--muted); }
.ss-bar { height: 8px; background: #eef1f5; border-radius: 999px; overflow: hidden; margin-bottom: 20px; }
.ss-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--coral), var(--teal)); transition: .35s; }
.ss-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 42px 22px;
  text-align: center; min-height: 200px; box-shadow: 0 12px 30px rgba(40,40,60,.06); cursor: pointer;
}
.ss-card.q { cursor: pointer; }
.ss-word { font-size: 38px; font-weight: 800; color: #2b3442; letter-spacing: .5px; }
.ss-ipa { font-size: 17px; font-weight: 500; color: #7d8798; margin-left: 10px; }
.ss-pos { display: inline-block; font-size: 13px; color: var(--teal); background: rgba(46,125,91,.1); padding: 3px 10px; border-radius: 999px; margin-left: 10px; }
.ss-hint { font-size: 14px; color: var(--muted); margin-top: 22px; }
.ss-mean { font-size: 19px; color: #3c4655; margin-top: 22px; line-height: 1.9; }
.ss-speak { font-size: 13px; color: #8A94A6; margin-top: 22px; cursor: pointer; display: inline-block; }
.ss-card .ss-speak { cursor: pointer; }
.ss-act { display: flex; gap: 12px; margin-top: 22px; justify-content: center; flex-wrap: wrap; }
.ss-no { border-color: #f3b0a6; color: #c0392b; background: #fff6f4; }
.ss-yes { min-width: 130px; }
.ss-sid-box { margin-top: 22px; font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 10px; }
.ss-done-t { font-size: 22px; font-weight: 800; color: #2b3442; }
.ss-desc { font-size: 14px; color: #5B6572; margin-top: 12px; line-height: 1.9; }
@media (max-width: 640px) {
  .topbar { flex-wrap: wrap; gap: 10px; padding: 12px 16px; }
  .tabs { flex-wrap: wrap; }
  .sp-groups { grid-template-columns: repeat(2, 1fr); }
  .ss-word { font-size: 32px; }
}
.remind-bar { background: rgba(46,196,182,.1); border: 1px solid rgba(46,196,182,.25); border-radius: 14px; padding: 13px 16px; font-size: 15px; color: #1c8f84; margin-top: 16px; cursor: pointer; transition: .15s; }
.remind-bar:hover { background: rgba(46,196,182,.16); }
.stu2 .s-avatar { width: 46px; height: 46px; border-radius: 50%; color: #fff; font-size: 20px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.s-line1 { font-size: 18px; font-weight: 700; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.s-line2 { display: flex; align-items: center; gap: 8px; margin-top: 6px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.tag { font-size: 12px; color: #1c8f84; background: rgba(46,196,182,.14); border-radius: 6px; padding: 2px 8px; font-weight: 600; }
.tag-c { color: #b5701f; background: rgba(244,162,97,.16); }
.s-score { font-weight: 700; color: #555; }
.bottom-add { margin-top: 18px; background: linear-gradient(120deg, #2e7d5b, #256b4d); box-shadow: 0 8px 20px rgba(46,125,91,.3); }

/* 通用弹窗（词典 / 说明） */
.modal-mask { position: fixed; inset: 0; z-index: 90; background: rgba(30,28,40,.45); backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal { background: rgba(255,255,255,.96); border-radius: 20px; padding: 22px; width: 480px; max-width: 94vw; max-height: 84vh; overflow: auto; box-shadow: 0 30px 70px rgba(40,30,60,.3); }
.modal-title { font-size: 19px; font-weight: 800; margin-bottom: 14px; }
.modal-body { font-size: 15px; color: #444; line-height: 1.8; margin-bottom: 14px; }

/* ===== 导出错词：学生 / 范围 / 格式 三选 ===== */
.exp-sec { font-size: 15px; font-weight: 800; color: #2E7D5B; margin: 2px 0 10px; }
.exp-tip { font-size: 13px; color: var(--muted); margin: 8px 0 4px; line-height: 1.7; }
.exp-empty { font-size: 14px; color: var(--muted); padding: 10px 0; }
.exp-list { display: flex; flex-direction: column; gap: 8px; }
.exp-fmt { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.exp-opt { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1.5px solid var(--line);
  border-radius: 12px; background: var(--card); cursor: pointer; transition: .15s; }
.exp-opt:hover { border-color: var(--teal); }
.exp-opt.on { border-color: var(--teal); background: rgba(46,125,91,.08); box-shadow: 0 2px 10px rgba(46,125,91,.12); }
.exp-ico { font-size: 20px; flex: 0 0 auto; }
.exp-name { font-size: 14px; font-weight: 600; color: #333; flex: 1 1 auto; }
.exp-num { font-size: 12px; color: var(--muted); flex: 0 0 auto; }
.exp-fmt .exp-opt { flex-direction: row; align-items: center; }
.exp-fmt .exp-name { flex: 1 1 auto; }
.exp-fmt .exp-num { display: block; width: 100%; text-align: left; margin-top: 2px; }
@media (max-width: 640px) {
  .exp-fmt { grid-template-columns: 1fr 1fr; }
  .exp-opt { padding: 9px 10px; }
  .exp-name { font-size: 13px; }
}
.dict-result { margin-top: 14px; min-height: 60px; }
/* 拼错词提示（词典工具 / 编辑弹窗）：橙色警示条，附一键重试或改词 */
.dict-fix {
  background: #fff6e5; border: 1px solid #ffdf9e; color: #a35b00;
  border-radius: 8px; padding: 8px 12px; font-size: 13px; line-height: 1.6; margin-bottom: 10px;
}
.dict-fix a { color: #ff8f3c; font-weight: 600; text-decoration: none; }
.ipa-card { border: 3px solid var(--teal); border-radius: 24px; padding: 30px 24px; text-align: center; margin: 10px 0; }
.ic-word { font-size: 40px; font-weight: 800; }
.ic-ipa { color: var(--teal); font-size: 20px; font-weight: 700; margin-top: 8px; }
.ic-m { font-size: 17px; color: #444; margin-top: 6px; }
.ic-actions { display: flex; gap: 12px; justify-content: center; margin-top: 16px; flex-wrap: wrap; }

/* ===== AI 小管家（聊天视图） ===== */
.ai-note { font-size: 14px; color: var(--muted); background: rgba(124,77,255,.08); border: 1px solid rgba(124,77,255,.18); border-radius: 12px; padding: 10px 14px; line-height: 1.6; margin-bottom: 12px; }
.ai-wrap { display: flex; flex-direction: column; height: calc(100vh - 150px); min-height: 420px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 14px; box-shadow: 0 8px 24px rgba(40,40,60,.06); }
.ai-msgs { flex: 1; overflow-y: auto; padding: 6px 4px 12px; display: flex; flex-direction: column; gap: 12px; }
.ai-bubble { display: flex; align-items: flex-end; gap: 8px; max-width: 100%; }
.ai-avatar { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, #7c4dff, #5b8def); color: #fff; font-size: 12px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.ai-bubble-in { font-size: 15px; line-height: 1.7; padding: 11px 14px; border-radius: 14px; max-width: 100%; word-break: break-word; white-space: normal; }
.ai-bot { align-self: flex-start; }
.ai-bot .ai-bubble-in { background: rgba(124,77,255,.1); color: #2b2b33; border: 1px solid rgba(124,77,255,.16); border-bottom-left-radius: 4px; }
.ai-user { align-self: flex-end; flex-direction: row-reverse; }
.ai-user .ai-bubble-in { background: linear-gradient(120deg, var(--coral), var(--coral-d)); color: #fff; border-bottom-right-radius: 4px; }
.ai-err .ai-bubble-in { background: rgba(239,93,111,.12); color: var(--bad); border: 1px solid rgba(239,93,111,.25); }
.ai-thinking { display: flex; gap: 5px; align-items: center; }
.ai-thinking span { width: 7px; height: 7px; border-radius: 50%; background: #b39ddb; display: inline-block; animation: ai-blink 1.2s infinite both; }
.ai-thinking span:nth-child(2) { animation-delay: .2s; }
.ai-thinking span:nth-child(3) { animation-delay: .4s; }
@keyframes ai-blink { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.ai-bar { display: flex; gap: 10px; align-items: flex-end; margin-top: 10px; border-top: 1px solid var(--line); padding-top: 12px; }
.ai-textarea { flex: 1; resize: none; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; font-size: 16px; font-family: inherit; line-height: 1.5; max-height: 120px; background: rgba(255,255,255,.9); transition: .18s; }
.ai-textarea:focus { border-color: var(--coral); outline: none; box-shadow: 0 0 0 3px rgba(255,122,89,.15); }
.ai-send { flex: 0 0 auto; height: 46px; border-radius: 14px; padding: 0 22px; margin: 0; }

/* ===== AI 小管家 · 右下角悬浮窗（类似在线客服） ===== */
.ai-float { position: fixed; right: 22px; bottom: 22px; z-index: 9999; font-family: inherit; }
.ai-float-btn {
  width: 60px; height: 60px; border-radius: 50%; border: none; cursor: pointer;
  background: linear-gradient(135deg, #07c160, #0a9d54); color: #fff; font-size: 28px; line-height: 1;
  box-shadow: 0 8px 24px rgba(7,193,96,.4); display: none; align-items: center; justify-content: center;
  transition: transform .15s ease, box-shadow .15s ease; position: relative;
}
.ai-float-btn:hover { transform: scale(1.06); box-shadow: 0 10px 28px rgba(7,193,96,.5); }
.ai-float-btn::after {
  content: ''; position: absolute; top: 4px; right: 4px; width: 12px; height: 12px; border-radius: 50%;
  background: #ff5a5f; border: 2px solid #fff; display: none;
}
.ai-float--has-new .ai-float-btn::after { display: block; }
.ai-float-panel {
  display: none; width: 370px; max-width: calc(100vw - 28px); height: 540px; max-height: calc(100vh - 120px);
  flex-direction: column; background: var(--card); backdrop-filter: blur(10px);
  border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
  box-shadow: 0 18px 50px rgba(30,30,50,.28);
}
.ai-float-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 14px; cursor: pointer; user-select: none;
  background: linear-gradient(135deg, #07c160, #0a9d54); color: #fff;
}
.ai-float-title { font-size: 16px; font-weight: 800; }
.ai-float-acts { display: flex; gap: 4px; }
.ai-float-ico {
  width: 28px; height: 28px; border: none; border-radius: 8px; cursor: pointer;
  background: rgba(255,255,255,.18); color: #fff; font-size: 18px; line-height: 1;
  display: flex; align-items: center; justify-content: center; transition: background .15s;
}
.ai-float-ico:hover { background: rgba(255,255,255,.34); }
.ai-float-msgs {
  flex: 1; overflow-y: auto; padding: 12px 12px 14px; display: flex; flex-direction: column; gap: 12px;
  background: linear-gradient(180deg, rgba(7,193,96,.05), rgba(7,193,96,0));
}
.ai-float-bar { display: flex; gap: 10px; align-items: flex-end; padding: 10px 12px 12px; border-top: 1px solid var(--line); background: rgba(255,255,255,.6); }
.ai-float-textarea {
  flex: 1; resize: none; border: 1px solid var(--line); border-radius: 14px; padding: 11px 13px;
  font-size: 15px; font-family: inherit; line-height: 1.5; max-height: 110px;
  background: rgba(255,255,255,.95); transition: .18s;
}
.ai-float-textarea:focus { border-color: #07c160; outline: none; box-shadow: 0 0 0 3px rgba(7,193,96,.15); }
.ai-float-send {
  flex: 0 0 auto; height: 44px; border-radius: 14px; padding: 0 20px; margin: 0; color: #fff;
  background: linear-gradient(120deg, #07c160, #0a9d54); box-shadow: 0 6px 16px rgba(7,193,96,.3);
}
.ai-float-send:hover { filter: brightness(1.04); transform: translateY(-1px); }

/* 状态切换：closed（仅按钮）/ open（展开聊天）/ min（缩成标题条） */
.ai-float--closed .ai-float-btn { display: flex; }
.ai-float--closed .ai-float-panel { display: none; }
.ai-float--open .ai-float-btn { display: none; }
.ai-float--open .ai-float-panel { display: flex; }
.ai-float--min .ai-float-btn { display: none; }
.ai-float--min .ai-float-panel { display: flex; flex-direction: column; width: 240px; height: auto; max-height: none; }
.ai-float--min .ai-float-msgs,
.ai-float--min .ai-float-bar { display: none; }

@media (max-width: 480px) {
  .ai-float { right: 12px; bottom: 12px; }
  .ai-float--open .ai-float-panel { width: calc(100vw - 24px); height: calc(100vh - 90px); }
}

/* ===== 学管师模式：学生选择器 / 添加词书弹层 ===== */
.sp-stu-bar {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
  background: linear-gradient(135deg, #EAF5EF, #F4F9FF);
  border-radius: 14px; padding: 12px 14px; margin-bottom: 14px;
}
.sp-stu-label { font-size: 14px; color: #5A6472; }
.sp-stu-picker {
  display: inline-flex; align-items: center; background: #fff; color: var(--teal);
  border-radius: 999px; padding: 7px 16px; font-size: 15px; font-weight: 700;
  cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.05);
}
.sp-stu-tail { font-size: 12px; color: #8A94A6; }
/* 弹层：选学生 / 选词书 */
.sp-mask {
  position: fixed; inset: 0; background: rgba(20,24,30,.42); z-index: 900;
  display: flex; align-items: flex-end; justify-content: center;
}
.sp-sheet {
  width: 100%; max-width: 520px; background: #fff;
  border-radius: 20px 20px 0 0; padding: 20px 18px calc(20px + env(safe-area-inset-bottom));
  box-sizing: border-box; max-height: 84vh; overflow-y: auto;
}
.sp-sheet-title { text-align: center; font-size: 17px; font-weight: 700; color: #263238; margin-bottom: 14px; }
/* 添加词书弹层里的每日词数 */
.sp-sheet-daily { margin-bottom: 14px; }
.sp-daily-label { font-size: 13px; color: #5A6472; margin-bottom: 8px; }
.sp-daily-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.sp-daily-chip {
  min-width: 52px; text-align: center; padding: 8px 12px;
  border: 1.5px solid var(--line); border-radius: 12px;
  font-size: 14px; color: #5A6472; background: #FAFBFC; cursor: pointer;
}
.sp-daily-chip.on { background: var(--teal); color: #fff; border-color: var(--teal); font-weight: 700; }
/* 老师布置的计划标记 */
.sp-teacher { font-size: 11px; color: #fff; background: #F2A03D; border-radius: 999px; padding: 2px 8px; font-weight: 600; }
/* 网页学生卡片上的操作区 */
.stu-ops-web { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }

/* ===== 学管师：布置计划向导（#/planAssign） ===== */
.ti-assign { background: rgba(94,53,177,.14); }
.pa-wrap { padding-bottom: 20px; }
.pa-steps { display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.pa-step { display: flex; flex-direction: column; align-items: center; opacity: .45; }
.pa-step.on { opacity: 1; }
.pa-sn { width: 24px; height: 24px; line-height: 24px; text-align: center; border-radius: 50%;
  background: #E0E6ED; color: #7A8B9A; font-size: 13px; font-weight: 700; }
.pa-step.on .pa-sn { background: var(--teal); color: #fff; }
.pa-st { font-size: 12px; color: #7A8B9A; margin-top: 5px; }
.pa-step.on .pa-st { color: var(--ink); font-weight: 600; }
.pa-step-line { width: 34px; height: 1px; background: #E0E6ED; margin: 0 8px 12px; }

.pa-sec { margin-bottom: 18px; }
.pa-title { font-size: 15px; font-weight: 700; color: var(--ink); margin-bottom: 10px; }
.pa-hint { font-size: 12px; color: #7A8B9A; font-weight: 400; }
.pa-hint2 { font-size: 12px; color: #7A8B9A; margin-top: 8px; line-height: 1.6; }
.pa-book.on { border-color: var(--teal); background: rgba(46,196,182,.07); }
.pa-tick { width: 20px; height: 20px; line-height: 20px; text-align: center; border-radius: 50%;
  background: var(--teal); color: #fff; font-size: 12px; }

.pa-cls { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.pa-cls-chip { padding: 5px 12px; border-radius: 16px; background: #FFF4E6; color: #C97B2C; font-size: 12px; cursor: pointer; }
.pa-pickall { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--bg2);
  border-radius: 10px; font-size: 14px; color: var(--ink); cursor: pointer; margin-bottom: 10px; }
.pa-box { width: 18px; height: 18px; border-radius: 5px; border: 1px solid #C8D2DC; display: inline-flex;
  align-items: center; justify-content: center; font-size: 12px; color: #fff; flex: none; }
.pa-box.on { background: var(--teal); border-color: var(--teal); }
.pa-stus { display: flex; flex-direction: column; gap: 8px; max-height: 420px; overflow-y: auto; }
.pa-stu { display: flex; align-items: center; gap: 10px; padding: 11px 12px; background: var(--card);
  border-radius: 10px; border: 1px solid transparent; cursor: pointer; }
.pa-stu.on { border-color: var(--teal); background: rgba(46,196,182,.07); }
.pa-stu-name { font-size: 14px; font-weight: 600; color: var(--ink); width: 84px; flex: none; }
.pa-stu-phone { font-size: 12px; color: #7A8B9A; flex: 1; }
.pa-stu-cls { font-size: 11px; color: #9AA7B4; }

.pa-confirm { background: var(--card); border-radius: 12px; padding: 4px 14px; border: 1px solid var(--line); }
.pa-cf { display: flex; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.pa-cf:last-child { border-bottom: none; }
.pa-cf span { color: #7A8B9A; }
.pa-summary { margin-top: 12px; font-size: 13px; color: #5A6B7A; line-height: 1.7;
  background: var(--bg2); border-radius: 10px; padding: 12px; }
.pa-tip { margin-top: 10px; font-size: 12px; color: #C97B2C; line-height: 1.6; }
.pa-btns { display: flex; gap: 10px; margin-top: 8px; }
.pa-btns button { flex: 1; }

/* ===== 学管师：学习进度看板 ===== */
.sp-stu-assign { margin-left: auto; font-size: 12px; color: #5E35B1; background: #EDE7F6;
  padding: 4px 10px; border-radius: 999px; cursor: pointer; white-space: nowrap; }
.ov-head { display: flex; align-items: baseline; gap: 6px; padding: 12px 14px;
  background: rgba(46,196,182,.09); border-radius: 10px; margin-bottom: 14px; }
.ov-head b { font-size: 22px; color: var(--teal); }
.ov-head span { font-size: 13px; color: #5A6B7A; }
.ov-list { display: flex; flex-direction: column; gap: 12px; }
.ov-row { background: var(--card); border-radius: 12px; padding: 14px; border: 1px solid var(--line); cursor: pointer; }
.ov-row:hover { border-color: var(--teal); }
.ov-top { display: flex; align-items: center; justify-content: space-between; }
.ov-name { font-size: 15px; font-weight: 700; color: var(--ink); }
.ov-today { font-size: 11px; color: #8A94A6; background: var(--bg2); padding: 3px 10px; border-radius: 999px; }
.ov-today.done { color: var(--teal); background: rgba(46,196,182,.12); font-weight: 600; }
.ov-book { display: flex; align-items: center; gap: 8px; margin: 10px 0 8px; }
.ov-book-tag { font-size: 11px; color: #fff; padding: 2px 8px; border-radius: 5px; }
.ov-book-name { font-size: 13px; color: var(--ink); flex: 1; }
.ov-book-num { font-size: 12px; color: #8A94A6; }
.ov-none { font-size: 13px; color: #C97B2C; margin: 10px 0 8px; }
.ov-foot { display: flex; justify-content: space-between; font-size: 11px; color: #8A94A6; margin-top: 8px; }

/* ===== 首页「今日学习计划」卡片（一键开始学习） ===== */
.plan-card {
  background: linear-gradient(135deg, #fff 0%, #F6FBF8 100%);
  border: 1px solid rgba(46,196,182,.28);
  border-radius: 14px; padding: 16px 16px 14px; margin-bottom: 14px;
}
.pc-head { display: flex; align-items: center; gap: 12px; }
.pc-cover { width: 46px; height: 46px; border-radius: 10px; flex: none; color: #fff;
  font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.pc-head-txt { flex: 1; min-width: 0; }
.pc-title { font-size: 16px; font-weight: 700; color: var(--ink); }
.pc-teacher { font-size: 10px; color: #fff; background: #F2A03D; padding: 1px 7px;
  border-radius: 999px; margin-left: 6px; vertical-align: middle; font-weight: 600; }
.pc-sub { font-size: 12px; color: #7A8B9A; margin-top: 4px; }
.pc-badge { font-size: 11px; color: #C0392B; background: #FDECEA; padding: 3px 9px;
  border-radius: 999px; flex: none; font-weight: 600; }
.pc-badge.done { color: var(--teal); background: rgba(46,196,182,.13); }
.pc-bar { height: 7px; border-radius: 999px; background: #E6EDE9; margin: 13px 0 11px; overflow: hidden; }
.pc-bar i { display: block; height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, var(--teal), #5CC79A); }
.pc-foot { display: flex; align-items: center; justify-content: space-between; }
.pc-f-txt { font-size: 12px; color: #6B7A88; }
.pc-btn { background: linear-gradient(135deg, var(--teal), #38B26C); color: #fff; font-size: 14px;
  font-weight: 700; padding: 8px 20px; border-radius: 999px; border: none; cursor: pointer; }
.pc-btn.ghost { background: rgba(46,196,182,.12); color: var(--teal); }

/* ===== 统计页：今日学习计划完成情况 ===== */
.plan-today-card { padding: 4px 14px 14px; }
.pt-sum { display: flex; padding: 12px 0; border-bottom: 1px solid var(--line); }
.pt-sum-item { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.pt-num { font-size: 18px; font-weight: 700; color: #8A94A6; }
.pt-lbl { font-size: 11px; color: #8A94A6; }
.pt-sum-item.ok .pt-num { color: var(--teal); }
.pt-sum-item.doing .pt-num { color: #1565C0; }
.pt-sum-item.warn .pt-num { color: #C0392B; }

.pt-row { padding: 11px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.pt-row:last-of-type { border-bottom: none; }
.pt-r1 { display: flex; align-items: center; gap: 6px; }
.pt-name { font-size: 14px; font-weight: 600; color: var(--ink); }
.pt-cls { font-size: 10px; color: #8A94A6; background: var(--bg2); padding: 1px 7px; border-radius: 999px; }
.pt-st { margin-left: auto; font-size: 11px; padding: 2px 9px; border-radius: 999px; }
.pt-row.done .pt-st { color: var(--teal); background: rgba(46,196,182,.13); }
.pt-row.doing .pt-st { color: #1565C0; background: #E8F1FC; }
.pt-row.todo .pt-st { color: #C0392B; background: #FDECEA; }
.pt-row.noplan .pt-st { color: #8A94A6; background: var(--bg2); }
.pt-r2 { display: flex; align-items: baseline; gap: 8px; margin-top: 6px; flex-wrap: wrap; }
.pt-book { font-size: 12px; color: var(--ink); font-weight: 600; }
.pt-prog { font-size: 11px; color: #8A94A6; }
.pt-r2.muted { font-size: 12px; color: #C97B2C; }
.pt-bar { height: 5px; border-radius: 999px; background: #EDF0F2; margin-top: 8px; overflow: hidden; }
.pt-bar i { display: block; height: 100%; border-radius: 999px; background: #C8D2DC; }
.pt-bar i.done { background: linear-gradient(90deg, var(--teal), #5CC79A); }
.pt-bar i.doing { background: linear-gradient(90deg, #1565C0, #5B9BD5); }
.pt-assign { margin-top: 12px; text-align: center; font-size: 13px; color: #5E35B1;
  background: #EDE7F6; padding: 9px 0; border-radius: 9px; cursor: pointer; }
