/* ============ 基础 ============ */
/* 品牌手写体：随网页一起加载，避免有的电脑/平板没有同款字体 */
@font-face {
  font-family: "DP Brand";
  src: url("assets/great-vibes.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
:root {
  --brand: #4839db;
  --brand-2: #7b61ff;
  --brand-soft: #ece9ff;
  --bg: #f6f7fb;
  --card: #ffffff;
  --text: #101828;
  --muted: #667085;
  --line: #e9ecf3;
  --line-soft: #f1f3f8;
  --ok: #12b76a;
  --ok-soft: #e6f8ef;
  --bad: #f04438;
  --bad-soft: #fdecea;
  --warn: #f79009;
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 4px 14px rgba(16, 24, 40, .04);
  --radius: 12px;
  --font-cn-serif: "Songti SC", "STSong", "SimSun", "Noto Serif SC", serif;
  --font-phonetic: "Times New Roman", "Liberation Serif", "Noto Serif", Times, serif;
}
html, body { margin: 0; padding: 0; height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
}

/* ============ 页面外壳（网页端） ============ */
.app-shell { height: 100vh; display: flex; flex-direction: column; background: var(--bg); }
.app-body { flex: 1; min-height: 0; display: flex; }

/* ============ 顶栏 ============ */
.app-header {
  flex: none;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 clamp(16px, 3vw, 32px);
  color: #fff;
  background: linear-gradient(110deg, #3b2ec0 0%, var(--brand) 42%, var(--brand-2) 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .08) inset, 0 6px 20px rgba(72, 57, 219, .22);
  z-index: 20;
}
.header-right { display: flex; align-items: center; gap: 14px; }
.header-user { font-size: 13px; opacity: .92; }
.header-icon-btn {
  flex: none; width: 34px; height: 34px; border-radius: 10px; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, .32);
  background: rgba(255, 255, 255, .16);
  color: #fff; font-size: 15px; line-height: 1; display: grid; place-items: center;
}
.header-icon-btn:hover { background: rgba(255, 255, 255, .26); }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand-logo {
  width: 36px; height: 36px; border-radius: 11px;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .18);
  border: 1px solid rgba(255, 255, 255, .28);
  font-weight: 700; font-size: 18px;
}
.brand-text { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.brand-text strong {
  font-family: "DP Brand", "Snell Roundhand", "Apple Chancery", "Segoe Script", "Brush Script MT", Georgia, "Songti SC", serif;
  font-size: 27px; font-weight: 400; letter-spacing: .3px; line-height: 1.1;
  background: linear-gradient(94deg, #ffffff 6%, #ffe6ae 48%, #fff7e3 70%, #ffffff 96%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  filter: drop-shadow(0 1px 2px rgba(28, 16, 92, .32));
  white-space: nowrap;
}
.brand-text small { font-size: 11.5px; opacity: .82; white-space: nowrap; }
.header-btn {
  flex: none;
  border: 1px solid rgba(255, 255, 255, .35);
  background: rgba(255, 255, 255, .16);
  color: #fff;
  font-size: 13px;
  padding: 8px 13px;
  border-radius: 999px;
  cursor: pointer;
}
.header-btn:active { transform: scale(.96); }

/* ============ 内容区 ============ */
.view { flex: 1; min-width: 0; overflow-y: auto; padding: 22px clamp(16px, 3vw, 36px) 48px; }
.view > * { max-width: 1180px; margin-left: auto; margin-right: auto; }
.view > .narrow { max-width: 660px; }
.view > .sched-page { max-width: 980px; }

/* ============ 页面头（标题 / 说明 / 主操作） ============ */
.page-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 18px;
  padding-bottom: 14px; margin-bottom: 18px; border-bottom: 1px solid var(--line);
}
.page-head .ph-main { min-width: 0; }
.page-head h1 {
  margin: 0; font-size: 21px; font-weight: 700; letter-spacing: -.015em; color: var(--text);
  display: flex; align-items: center; gap: 9px;
}
.page-head h1::before {
  content: ""; width: 4px; height: 18px; border-radius: 2px;
  background: linear-gradient(180deg, var(--brand), var(--brand-2));
}
.page-head p { margin: 6px 0 0 13px; font-size: 13px; color: var(--muted); line-height: 1.6; }
.ph-actions { display: flex; gap: 8px; flex: none; }

/* 桌面端多列卡片 */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 12px; align-items: start; }
.cards > .card + .card { margin-top: 0; }
.cards > .card { margin-top: 0 !important; }
.narrow { width: 100%; }

.section-title {
  display: flex; align-items: center; justify-content: space-between;
  margin: 16px 2px 9px; font-size: 13.5px; color: var(--muted); font-weight: 600;
}
.section-title:first-child { margin-top: 2px; }
.section-title .link { color: var(--brand); font-weight: 600; cursor: pointer; }

/* ============ 卡片 ============ */
/* 控制台 KPI 行 */
.kpi-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 14px; }
.kpi {
  position: relative; overflow: hidden; background: #fff; cursor: default;
  border: 1px solid #eef0f6; border-radius: 16px; padding: 20px 22px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 8px 24px rgba(16, 24, 40, .05);
  transition: .16s;
}
.kpi[data-action] { cursor: pointer; }
.kpi[data-action]:hover { border-color: #dcd8fb; box-shadow: 0 10px 30px rgba(72, 57, 219, .13); transform: translateY(-1px); }
.kpi::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg, var(--brand), var(--brand-2));
}
.kpi-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.kpi-label { font-size: 12.5px; color: #667085; font-weight: 600; letter-spacing: .02em; }
.kpi-ico {
  width: 34px; height: 34px; border-radius: 10px; flex: none;
  background: var(--brand-soft); color: var(--brand); display: grid; place-items: center;
}
.kpi-ico svg { width: 19px; height: 19px; }
.kpi-value { margin-top: 10px; font-size: 34px; font-weight: 800; letter-spacing: -.02em; color: #101828; line-height: 1.1; }
.kpi-value small { font-size: 13px; font-weight: 600; color: #98a2b3; margin-left: 4px; }
.kpi-sub { margin-top: 6px; font-size: 12px; color: #98a2b3; }

.mini-stats {
  display: flex; flex-wrap: wrap; gap: 22px;
  font-size: 12.5px; color: #667085; margin: 0 2px 18px;
}
.mini-stats b { color: #101828; font-size: 14px; }

/* 排课表格 */
.tbl {
  border: 1px solid #eef0f6; border-radius: 16px; background: #fff;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 8px 24px rgba(16, 24, 40, .05);
}
.tbl-head, .tbl-row {
  display: grid; align-items: center;
  grid-template-columns: 72px 122px minmax(120px, 1fr) 150px minmax(160px, 1.2fr) 150px;
}
.tbl-head {
  position: sticky; top: 0; z-index: 3;
  background: #fafbff; border-bottom: 1px solid #eef0f6;
  border-radius: 16px 16px 0 0;
  font-size: 12.5px; font-weight: 700; color: #667085;
}
.tbl-head > div, .tbl-row > div { padding: 12px 16px; }
.tbl-row { border-bottom: 1px solid #f2f4f7; font-size: 13.5px; color: #1e2130; }
.tbl-row:last-child { border-bottom: none; }
.tbl-row:hover { background: #fafbff; }
.tbl-row .c-idx { color: #98a2b3; font-variant-numeric: tabular-nums; }
.tbl-row .c-stu { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.tbl-row .c-stu .avatar { width: 24px; height: 24px; font-size: 12px; }
.tbl-row .c-time { font-variant-numeric: tabular-nums; color: #475467; }
.tbl-row .c-time .tag { margin-left: 6px; }
.tbl-row .c-coach { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.tbl-row .c-coach .avatar { width: 24px; height: 24px; font-size: 12px; }
.tbl-row .c-coach .badge { margin-left: 4px; }
.tbl-row .c-ops { display: flex; gap: 6px; }
.tbl-row .c-ops .btn { padding: 5px 11px; font-size: 12.5px; }

/* ============ 销课记录表格（真正的 table，列宽全表统一） ============ */
.lib-search { display: grid; grid-template-columns: minmax(180px, 1.5fr) repeat(3, minmax(120px, 1fr)); gap: 8px; }
.lib-search.lib-search-3 { grid-template-columns: repeat(3, minmax(100px, 1fr)); }
@media (max-width: 720px) {
  .lib-search { grid-template-columns: 1fr 1fr; }
  .lib-search.lib-search-3 { grid-template-columns: 1fr; }
}
.rec-scroll, .data-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
.rec-table, .data-table {
  border-collapse: separate; border-spacing: 0;
  width: max-content; min-width: 100%;
  background: #fff; border: 1px solid #eef0f6; border-radius: 16px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 8px 24px rgba(16, 24, 40, .05);
}
.rec-table th, .rec-table td, .data-table th, .data-table td {
  padding: 12px 16px; text-align: left; white-space: nowrap; vertical-align: middle;
}
.rec-table thead th, .data-table thead th {
  position: sticky; top: 0; z-index: 3; background: #fafbff;
  font-size: 12.5px; font-weight: 700; color: #667085;
  border-bottom: 1px solid #eef0f6;
}
.rec-table tbody td, .data-table tbody td { font-size: 13.5px; color: #1e2130; border-bottom: 1px solid #f2f4f7; }
.rec-table tbody tr:last-child td, .data-table tbody tr:last-child td { border-bottom: none; }
.rec-table tbody tr:hover td, .data-table tbody tr:hover td { background: #fafbff; }
.rec-table td.c-idx, .data-table td.c-idx { color: #98a2b3; font-variant-numeric: tabular-nums; }
.rec-table td.c-ops .btn, .data-table td.c-ops .btn { padding: 5px 11px; font-size: 12.5px; }
/* 「操作」列吸在右侧 */
.rec-table th:last-child, .rec-table td:last-child, .data-table th:last-child, .data-table td:last-child {
  position: sticky; right: 0; z-index: 2; background: #fff;
  box-shadow: -8px 0 12px -8px rgba(16, 24, 40, .18);
}
.rec-table thead th:last-child, .data-table thead th:last-child { background: #fafbff; z-index: 4; }
.rec-table tbody tr:hover td:last-child, .data-table tbody tr:hover td:last-child { background: #fafbff; }

.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px;
}
.card + .card { margin-top: 10px; }

/* ============ 日期条 ============ */
.weekbar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px;
}
.weekbar .month { font-size: 15px; font-weight: 700; }
.weekbar .nav { display: flex; gap: 6px; }
.weekbar .nav button {
  width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line);
  background: #fff; box-shadow: var(--shadow); color: var(--muted);
  font-size: 17px; cursor: pointer; transition: .16s;
}
.weekbar .nav button:hover { color: var(--brand); border-color: #dcd8fb; }
.weekbar .nav button:active { transform: scale(.94); }
.days-wrap {
  position: relative; background: #eceef6; border-radius: 20px; padding: 7px;
  box-shadow: inset 0 1px 2px rgba(16, 24, 40, .05);
}
.days { position: relative; display: grid; grid-template-columns: repeat(7, 1fr); }
.days .pill {
  position: absolute; top: 0; bottom: 0; width: calc(100% / 7);
  left: calc(var(--di, 0) * (100% / 7));
  background: linear-gradient(140deg, var(--brand), var(--brand-2));
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(72, 57, 219, .32);
  transition: left .36s cubic-bezier(.34, 1.35, .5, 1);
}
.day {
  position: relative; z-index: 1; border: none; background: transparent; cursor: pointer;
  padding: 15px 2px 14px; border-radius: 15px;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  transition: transform .16s ease;
}
.day:active { transform: scale(.94); }
.day .dw { font-size: 12.5px; font-weight: 600; color: var(--muted); transition: color .18s; }
.day .dd { font-size: 21px; font-weight: 800; color: #344054; letter-spacing: -.01em; transition: color .18s, transform .2s; }
.day:hover:not(.is-active) .dd { transform: translateY(-2px); color: var(--brand); }
.day.is-today:not(.is-active) .dd { color: var(--brand-2); }
.day.is-today:not(.is-active) { box-shadow: inset 0 0 0 1.5px rgba(123, 97, 255, .45); }
.day.is-active .dw, .day.is-active .dd { color: #fff; }
.day .dot {
  width: 5px; height: 5px; border-radius: 50%; background: var(--brand-2);
  opacity: 0; transform: scale(.4); transition: .22s;
}
.day.has-class .dot { opacity: 1; transform: scale(1); }
.day.is-active .dot { background: #fff; }

/* 课表列表：和控制台上方卡片同款，自动铺满 */
.sched-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.sched-item { animation: schedIn .32s cubic-bezier(.4, 0, .2, 1) both; }
@keyframes schedIn { from { opacity: 0; transform: translateY(10px); } }
.sched-item .card {
  position: relative; overflow: hidden; margin-top: 0 !important;
  border: 1px solid #eef0f6; border-radius: 16px; padding: 16px 20px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 8px 24px rgba(16, 24, 40, .05);
}
.sched-item .card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg, var(--brand), var(--brand-2));
}

/* ============ 学科标签 ============ */
.subjects { display: flex; gap: 8px; overflow-x: auto; padding: 2px; margin: 14px 0 4px; }
.subjects::-webkit-scrollbar { height: 0; }
.subj {
  flex: none; border: none; cursor: pointer;
  background: #fff; color: var(--muted); font-size: 13px; font-weight: 600;
  padding: 8px 15px; border-radius: 999px; box-shadow: var(--shadow);
}
.subj.is-active { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; }

/* ============ 课表项 ============ */
.sched-card { display: flex; flex-direction: column; gap: 12px; }
.sc-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.sc-time { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.sc-time b { font-size: 15px; font-weight: 700; color: #101828; transition: color .18s; }
.sc-time em { font-style: normal; font-size: 11px; color: var(--muted); font-weight: 600; }
.sc-clock { width: 15px; height: 15px; flex: none; color: var(--brand); }
.sc-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.sc-actions .btn { padding: 7px 14px; font-size: 12.5px; white-space: nowrap; }
.sc-bottom { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sc-stu { font-size: 16px; font-weight: 700; color: #101828; }
.sc-pill {
  font-size: 11.5px; font-weight: 600; padding: 3px 8px; border-radius: 7px;
  background: var(--brand-soft); color: var(--brand);
}
.sc-coach { font-size: 12.5px; color: var(--muted); }
.class-card { display: flex; gap: 10px; align-items: stretch; width: 100%; }
.class-main { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.class-main .who { display: flex; align-items: center; justify-content: center; gap: 7px; font-weight: 700; font-size: 15px; }
.avatar {
  width: 24px; height: 24px; border-radius: 50%; flex: none;
  display: grid; place-items: center; font-size: 12px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
}
.class-main .meta { margin-top: 5px; display: flex; flex-wrap: wrap; gap: 6px; }
.class-main .who .badge { margin-left: 4px; }
.sched-item .card {
  border: 1px solid transparent;
  transition: transform .18s cubic-bezier(.4, 0, .2, 1), box-shadow .18s, border-color .18s, background .18s;
}
.sched-item .card:hover {
  transform: translateY(-2px);
  border-color: #e3dfff;
  box-shadow: 0 10px 26px rgba(72, 57, 219, .12);
}
.sched-item .card:hover .cc-time b { color: var(--brand); }
.class-actions .btn { transition: transform .12s ease, box-shadow .18s; }
.class-actions .btn:active { transform: scale(.95); }
.tag {
  font-size: 11.5px; padding: 3px 8px; border-radius: 7px;
  background: var(--brand-soft); color: var(--brand); font-weight: 600;
}
.tag.gray { background: #f1f2f6; color: var(--muted); }
.class-actions { display: flex; flex-direction: column; gap: 6px; justify-content: center; flex: none; }
.class-actions .btn { padding: 7px 14px; font-size: 12.5px; white-space: nowrap; }

/* ============ 状态徽标 ============ */
.badge { font-size: 11.5px; font-weight: 700; padding: 4px 9px; border-radius: 999px; }
.badge.wait { background: #fff5e6; color: var(--warn); }
.badge.done { background: var(--ok-soft); color: var(--ok); }
.badge.live { background: var(--bad-soft); color: var(--bad); }
/* 内测教练：淡紫底，和顶栏/分组标签同一套品牌色 */
.badge.beta { background: var(--brand-soft); color: var(--brand); margin-right: 2px; }
/* 内测标签单独占一格，保证后面的名字始终对齐 */
.co-name { display: flex; align-items: center; gap: 6px; }
.beta-slot { width: 40px; flex: none; display: flex; align-items: center; }
.data-table td:nth-child(2) { max-width: 280px; }
.data-table td:nth-child(2) .co-name { max-width: 240px; min-width: 0; }
.data-table td:nth-child(2) .co-name b {
  min-width: 0; flex: 1 1 auto; white-space: normal;
  overflow-wrap: anywhere; word-break: break-word;
}

/* ============ 按钮 ============ */
.btn {
  border: none; cursor: pointer; border-radius: 11px;
  font-size: 13.5px; font-weight: 600; padding: 9px 14px;
  background: #f1f2f6; color: var(--text); transition: .15s;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; }
.btn-ghost { background: #fff; color: var(--muted); box-shadow: var(--shadow); }
.btn-danger { background: linear-gradient(135deg, #e23c31, #f2564b); color: #fff; box-shadow: 0 4px 14px rgba(240, 68, 56, .28); }
.btn-block { display: block; width: 100%; padding: 13px; font-size: 15px; border-radius: 14px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ============ 空状态 ============ */
.empty { text-align: center; color: var(--muted); font-size: 13.5px; padding: 26px 10px; }

/* ============ 答题 ============ */
.quiz-top { display: flex; align-items: center; justify-content: space-between; font-size: 12.5px; color: var(--muted); }
.quiz-top .stop { color: var(--bad); font-weight: 600; cursor: pointer; }
.timer-bar { height: 6px; border-radius: 999px; background: #e9eaf2; overflow: hidden; margin: 9px 0 14px; }
.timer-bar > i { display: block; height: 100%; width: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--brand), var(--brand-2)); transition: width .2s linear; }

.word-card {
  background: linear-gradient(150deg, #fff, #f3f1ff);
  border-radius: 20px; padding: 30px 16px; text-align: center;
  box-shadow: var(--shadow);
}
.word-card .word { font-size: 40px; font-weight: 800; letter-spacing: .5px; color: var(--brand); }
.word-card .word-sub { margin-top: 8px; font-size: 12.5px; color: var(--muted); }
.word-card .countdown { margin-top: 12px; font-size: 13px; font-weight: 700; color: var(--warn); }

.options { display: flex; flex-direction: column; gap: 9px; margin-top: 14px; }
.option {
  border: 1.5px solid var(--line); background: #fff; cursor: pointer;
  border-radius: 13px; padding: 14px 15px; text-align: left;
  font-family: var(--font-cn-serif);
  font-size: 16.5px; line-height: 1.55; font-weight: 600;
  color: var(--text); box-shadow: var(--shadow);
  transition: .12s; position: relative;
}
.option:active { transform: scale(.985); }
.option.is-correct { background: var(--ok-soft); border-color: var(--ok); color: var(--ok); font-weight: 700; }
.option.is-wrong { background: var(--bad-soft); border-color: var(--bad); color: var(--bad); font-weight: 700; }
.option[disabled] { cursor: default; }
.feedback {
  font-family: var(--font-cn-serif);
  text-align: center; font-size: 15.5px; font-weight: 700;
  margin-top: 12px; min-height: 18px;
}
.feedback.ok { color: var(--ok); }
.feedback.no { color: var(--bad); }

/* ============ 结果 ============ */
.result-hero { text-align: center; padding: 6px 0 2px; }
.ring {
  width: 132px; height: 132px; border-radius: 50%; margin: 6px auto 10px;
  display: grid; place-items: center; position: relative;
}
.ring::after {
  content: ""; position: absolute; inset: 11px; border-radius: 50%; background: var(--bg);
}
.ring .val { position: relative; z-index: 1; text-align: center; }
.ring .val b { font-size: 30px; }
.ring .val span { display: block; font-size: 12px; color: var(--muted); }
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-top: 12px; }
.stat { background: #fff; border-radius: 14px; box-shadow: var(--shadow); padding: 12px 8px; text-align: center; }
.stat b { display: block; font-size: 19px; }
.stat span { font-size: 11.5px; color: var(--muted); }
.stat.ok b { color: var(--ok); }
.stat.bad b { color: var(--bad); }

/* ============ 列表 ============ */
.list-item { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.list-item:last-child { border-bottom: none; }
.list-item .li-main { flex: 1; min-width: 0; }
.list-item .li-main b { font-size: 14.5px; }
.list-item .li-main small { display: block; color: var(--muted); font-size: 12px; margin-top: 3px; }
.li-h { font-size: 13px; font-weight: 700; color: var(--brand); white-space: nowrap; }
.li-h.zero { color: var(--muted); }

/* ============ 单词条 ============ */
.word-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.word-row:last-child { border-bottom: none; }
.word-row .en { font-weight: 700; font-size: 15px; min-width: 96px; }
.word-row .cn {
  font-family: var(--font-cn-serif);
  color: var(--muted); font-size: 15.5px; font-weight: 600; flex: 1;
}
.word-row .ph {
  font-family: var(--font-phonetic);
  font-size: 14px; font-style: normal; font-weight: 400;
  margin-right: 8px; color: var(--muted);
}
.word-row .rm { border: none; background: transparent; color: var(--muted); cursor: pointer; font-size: 13px; }
/* 词条行右侧的「改 / 删」 */
.cw-row .cw-ops { display: flex; gap: 6px; flex: none; }
.cw-row .cw-ops .btn { padding: 4px 10px; font-size: 12.5px; }
/* 词库信息：按教材版本分组的吸顶标签 */
.lib-group-head {
  position: sticky; top: 0; z-index: 3;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin: 16px 0 8px; padding: 9px 14px;
  background: linear-gradient(110deg, #3b2ec0 0%, var(--brand) 42%, var(--brand-2) 100%);
  color: #fff;
  font-size: 14px; font-weight: 800; letter-spacing: .3px;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(72, 57, 219, .24);
  border-bottom: none;
}
.lib-group-head:first-child { margin-top: 6px; }
.lib-group-head em {
  font-style: normal; font-weight: 700; font-size: 12.5px; color: #fff;
  background: rgba(255, 255, 255, .22); padding: 3px 10px; border-radius: 999px;
}
.lib-group-head span { display: flex; align-items: center; gap: 8px; }
.lib-group-head span::before {
  content: ""; width: 4px; height: 15px; border-radius: 2px;
  background: rgba(255, 255, 255, .85); display: block;
}
/* 词库「开通」弹窗里的学员勾选列表 */
.grant-list { max-height: 46vh; overflow-y: auto; border: 1px solid var(--line); border-radius: 12px; }
.grant-row {
  display: flex; align-items: center; gap: 9px; padding: 10px 12px;
  font-size: 13.5px; border-bottom: 1px solid var(--line-soft); cursor: pointer;
}
.grant-row:last-child { border-bottom: none; }
.grant-row input { width: 17px; height: 17px; accent-color: var(--brand); flex: none; }
.grant-row span { flex: 1; min-width: 0; }
.grant-row em { font-style: normal; font-size: 12px; color: var(--muted); }

/* 教练端「课程开通」：沿用管理员端的卡片式选择设计 */
.modal.course-access-modal {
  max-width: 650px;
  overflow: hidden;
  border-radius: 24px;
  background: #fff;
}
.course-access-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 25px 15px;
}
.course-access-head h2 { margin: 0; color: #20283a; font-size: 20px; line-height: 1.25; }
.course-access-head p { margin: 6px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.course-access-close {
  width: 34px; height: 34px; flex: none; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 11px; background: #fff;
  color: #8b93a5; font-size: 21px; line-height: 1; cursor: pointer;
}
.course-access-student {
  display: flex; align-items: center; gap: 12px;
  margin: 0 25px 15px; padding: 14px 15px;
  border: 1px solid #e8ebf5; border-radius: 16px;
  background: linear-gradient(135deg, #f8f9ff, #f2f4ff);
}
.course-access-avatar {
  width: 42px; height: 42px; flex: none; display: grid; place-items: center;
  border-radius: 13px; background: #fff; color: var(--brand);
  box-shadow: 0 8px 20px rgba(72, 57, 219, .1); font-size: 17px; font-weight: 800;
}
.course-access-copy { min-width: 0; flex: 1; display: grid; gap: 3px; }
.course-access-copy b { color: #293247; font-size: 14px; }
.course-access-copy small { color: var(--muted); font-size: 11.5px; }
.course-access-hours {
  flex: none; padding: 7px 11px; border-radius: 999px;
  background: #fff; color: var(--brand); font-size: 11.5px; font-weight: 700;
}
.course-access-body { padding: 0 25px 4px; max-height: 54vh; overflow-y: auto; }
.course-access-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 11px; }
.course-access-toolbar b { color: #34405a; font-size: 13px; }
.course-access-toolbar span { color: var(--muted); font-size: 11.5px; }
.course-access-toolbar strong { color: var(--brand); }
.course-access-search {
  display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 13px;
  border: 1px solid #e8ebf2; border-radius: 13px; background: #f8f9fc;
}
.course-access-search span { color: #97a0b2; font-size: 19px; line-height: 1; }
.course-access-search input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: transparent;
  color: var(--text); font: inherit; font-size: 13px;
}
.course-access-chips { display: flex; gap: 8px; margin: 11px 0; }
.course-access-chip {
  padding: 7px 13px; border: 1px solid #e7eaf1; border-radius: 999px;
  background: #fff; color: #697389; font-size: 11.5px; font-weight: 700; cursor: pointer;
}
.course-access-chip.is-active { border-color: transparent; background: var(--brand); color: #fff; }
.course-access-list { display: grid; gap: 9px; padding-bottom: 4px; }
.course-access-option {
  width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px 13px;
  border: 1px solid #e8ebf3; border-radius: 14px; background: #fff;
  color: inherit; text-align: left; cursor: pointer; transition: .16s ease;
}
.course-access-option:hover { border-color: #cfc9ff; background: #fbfaff; }
.course-access-option.is-selected { border-color: #7c6df2; background: #f6f4ff; box-shadow: 0 0 0 2px rgba(72, 57, 219, .06); }
.course-access-book {
  width: 36px; height: 36px; flex: none; display: grid; place-items: center;
  border-radius: 11px; background: #f2f3fa; color: #66708a;
}
.course-access-option.is-selected .course-access-book { background: #e7e3ff; color: var(--brand); }
.course-access-book svg { width: 19px; height: 19px; }
.course-access-option-copy { flex: 1; min-width: 0; display: grid; gap: 4px; }
.course-access-option-copy b { color: #293247; font-size: 12.5px; line-height: 1.45; overflow-wrap: anywhere; }
.course-access-option-copy small { color: var(--muted); font-size: 10.5px; }
.course-access-check {
  width: 23px; height: 23px; flex: none; display: grid; place-items: center;
  border: 1px solid #dde1ea; border-radius: 50%; background: #fff;
  color: transparent; font-size: 12px; font-weight: 800;
}
.course-access-option.is-selected .course-access-check { border-color: var(--brand); background: var(--brand); color: #fff; }
.course-access-foot { display: flex; gap: 10px; padding: 15px 25px 22px; border-top: 1px solid var(--line-soft); }
.course-access-foot .btn { flex: 1; padding: 12px; }
@media (max-width: 620px) {
  .modal-backdrop { padding: 10px; }
  .course-access-head { padding: 18px 17px 13px; }
  .course-access-student { margin: 0 17px 13px; padding: 12px; }
  .course-access-body { padding: 0 17px 4px; max-height: 57vh; }
  .course-access-foot { padding: 13px 17px 17px; }
  .course-access-hours { display: none; }
}

/* 教练端长列表分页 */
.coach-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 14px 0 4px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
  color: var(--muted);
  font-size: 12px;
}
.coach-pager-buttons { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.coach-pager-buttons button {
  min-width: 32px;
  height: 30px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  color: #66708a;
  font: inherit;
  font-size: 11.5px;
  cursor: pointer;
}
.coach-pager-buttons button:hover:not(:disabled) { border-color: #c9c1ff; color: var(--brand); background: #f7f5ff; }
.coach-pager-buttons button.is-active { border-color: var(--brand); background: var(--brand); color: #fff; font-weight: 700; }
.coach-pager-buttons button:disabled { opacity: .42; cursor: default; }
.coach-pager-buttons i { color: #9ca4b5; font-style: normal; padding: 0 2px; }
@media (max-width: 640px) {
  .coach-pager { align-items: flex-start; flex-direction: column; }
  .coach-pager-buttons { width: 100%; }
}
/* 上课中误点导航后，右下角常驻「继续上课」 */
.resume-lesson {
  position: fixed; right: 22px; bottom: 22px; z-index: 40;
  padding: 12px 20px; border: none; border-radius: 999px; cursor: pointer;
  font-size: 14px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, #3b2ec0, var(--brand) 45%, var(--brand-2));
  box-shadow: 0 10px 24px rgba(72, 57, 219, .35);
  animation: pop .18s ease-out;
}
.resume-lesson:hover { filter: brightness(1.06); }
@media (max-width: 720px) { .resume-lesson { right: 14px; bottom: 16px; padding: 11px 17px; } }

/* ============ 弹窗 ============ */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(16, 17, 32, .5);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  backdrop-filter: blur(3px);
}
.modal {
  width: 100%; max-width: 380px; background: #fff; border-radius: 20px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
  /* 小屏手机 / 键盘弹起时，表单再长也能上下滑动，不会把「保存」挡在屏幕外 */
  max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px);
  overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
  animation: pop .18s ease-out;
}
@keyframes pop { from { transform: translateY(10px) scale(.97); opacity: 0; } }
.modal-head { padding: 16px 18px 12px; font-weight: 700; font-size: 16px; display: flex; justify-content: space-between; align-items: center; gap: 10px; overflow-wrap: anywhere; }
.modal-head .x { cursor: pointer; color: var(--muted); font-size: 20px; line-height: 1; flex: none; }
.modal-body { padding: 0 18px 6px; max-height: 54vh; overflow-y: auto; }
.modal-foot { padding: 14px 18px 18px; display: flex; gap: 10px; }
.modal-foot .btn { flex: 1; padding: 12px; }

.field { margin-bottom: 12px; }
.field label { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 6px; font-weight: 600; }
.field input, .field select {
  width: 100%; padding: 11px 12px; border-radius: 11px;
  border: 1.5px solid var(--line); background: #fafbff; font-size: 14px; color: var(--text);
  font-family: inherit;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--brand); background: #fff; }
.field select:disabled {
  color: #596174; background: #f4f5f8;
  cursor: not-allowed; opacity: 1;
}
.field-hint { display: block; margin-top: 5px; font-size: 11.5px; color: var(--muted); }
.seg { display: flex; gap: 7px; }
.seg button {
  flex: 1; border: 1.5px solid var(--line); background: #fff; border-radius: 11px;
  padding: 9px 4px; font-size: 13px; cursor: pointer; color: var(--muted); font-weight: 600;
}
.seg button.is-active { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); }

/* 休息计时 */
.break-timer { text-align: center; padding: 10px 0 4px; }
.break-timer .big { font-size: 46px; font-weight: 800; letter-spacing: 1px; color: var(--brand); }
.break-timer p { color: var(--muted); font-size: 13px; margin: 6px 0 0; }

/* ============ Toast ============ */
.toast-root { position: fixed; left: 50%; bottom: 40px; transform: translateX(-50%); z-index: 99; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast {
  background: rgba(24, 26, 42, .94); color: #fff; font-size: 13.5px;
  padding: 10px 16px; border-radius: 999px; box-shadow: 0 10px 30px rgba(0, 0, 0, .3);
  animation: pop .16s ease-out;
}

/* ============ 左侧导航 ============ */
.sidebar {
  flex: none; width: 196px; background: #fff; border-right: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 2px; padding: 14px 10px;
  transition: width .18s ease, padding .18s ease;
}
.sidebar .tab {
  border: none; background: transparent; cursor: pointer; color: var(--muted);
  display: flex; flex-direction: row; align-items: center; gap: 10px;
  font-size: 15.5px; font-weight: 600; padding: 15px 12px; border-radius: 9px;
  text-align: left; transition: .14s; font-family: inherit; position: relative;
}
.sidebar .tab svg { width: 19px; height: 19px; flex: none; }
.sidebar .tab.has-active { color: var(--text); }
.sidebar .tab.is-open { color: var(--text); }
.nav-sub {
  display: flex; flex-direction: column; gap: 2px;
  padding-left: 12px; overflow: hidden;
  max-height: 0; opacity: 0;
  transition: max-height .26s cubic-bezier(.4, 0, .2, 1), opacity .2s ease;
}
.nav-sub.is-open { max-height: 96px; opacity: 1; }
.sidebar .tab.is-sub { font-size: 13.5px; padding: 11px 12px; }
.sidebar .tab.is-sub svg { width: 16px; height: 16px; }
.sidebar .tab.is-sub::before {
  content: ""; position: absolute; left: -8px; top: 50%; width: 4px; height: 4px;
  margin-top: -2px; border-radius: 50%; background: #cfd4e0;
}
.sidebar .tab.is-sub.is-active::before { background: var(--brand); }
.sidebar .tab:hover { background: var(--line-soft); color: var(--text); }
.sidebar .tab.is-active { background: #f1efff; color: var(--brand); }
.sidebar .tab.is-active::before {
  content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px;
  border-radius: 0 3px 3px 0; background: linear-gradient(180deg, var(--brand), var(--brand-2));
}

/* 收起状态（点顶栏 ☰ 切换） */
.app-body.is-collapsed .sidebar { width: 68px; padding: 14px 9px; }
.app-body.is-collapsed .sidebar .tab { justify-content: center; padding: 12px 0; }
.app-body.is-collapsed .nav-sub { padding-left: 0; }
.app-body.is-collapsed .sidebar .tab.is-sub::before { display: none; }
.app-body.is-collapsed .sidebar .tab span { display: none; }

/* ============ 学员卡片 ============ */
.stu-head { display: flex; align-items: center; gap: 10px; }
.stu-head .avatar { width: 34px; height: 34px; font-size: 14px; }
.stu-head b { font-size: 15px; flex: 1; }
.stu-info { color: var(--muted); font-size: 12.5px; margin: 9px 0 11px; }
.stu-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.stu-actions .btn { padding: 6px 11px; font-size: 12.5px; }

.input {
  width: 100%; padding: 11px 12px; border-radius: 11px;
  border: 1.5px solid var(--line); background: #fafbff;
  font-size: 14px; color: var(--text); font-family: inherit;
}
.input:focus { outline: none; border-color: var(--brand); background: #fff; }
textarea.input { resize: vertical; line-height: 1.7; font-family: inherit; }

.kv { display: flex; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.kv:last-child { border-bottom: none; }
.kv .k { width: 92px; flex: none; color: var(--muted); }
.kv .v { flex: 1; min-width: 0; word-break: break-all; }

.chk-row {
  display: flex; align-items: center; gap: 10px; padding: 9px 0;
  border-bottom: 1px solid var(--line); cursor: pointer;
}
.chk-row:last-child { border-bottom: none; }
.chk-row .cm { flex: 1; min-width: 0; }
.chk-row .cm b { font-size: 13.5px; }
.chk-row .cm small { display: block; color: var(--muted); font-size: 11.5px; margin-top: 2px; }

/* ============ 管理列表（学员 / 教练） ============ */
.mgmt-list { padding: 4px 0; }
.mgmt-row {
  display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 16px;
  padding: 14px 18px; border-bottom: 1px solid var(--line-soft);
  transition: background .15s;
}
.mgmt-row:last-child { border-bottom: none; }
.mgmt-row:hover { background: #fafbff; }
.mgmt-info { display: flex; align-items: center; gap: 11px; min-width: 0; }
.mgmt-info .avatar { width: 34px; height: 34px; font-size: 14px; flex: none; }
.mgmt-info .mi-main { min-width: 0; }
.mgmt-info .mi-main b { font-size: 14.5px; }
.mgmt-info .mi-main small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 3px; }
.mgmt-ops { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 7px; }
.mgmt-ops .btn { padding: 6px 12px; font-size: 12.5px; }

/* ============ 窄屏自适应 ============ */
@media (max-width: 760px) {
  .sidebar { width: 66px; padding: 14px 8px; }
  .sidebar .tab { justify-content: center; padding: 12px 0; }
  .sidebar .tab span { display: none; }
  .header-user { display: none; }
  .view { padding: 16px 14px 40px; }
  .cards { grid-template-columns: 1fr; }
  .pre-item.grid-row .pre-word { min-width: 132px; }
  .pre-item { padding: 9px 11px; }
  .pre-item .pm button { width: 50px; height: 44px; font-size: 22px; }
  .kpi-row { grid-template-columns: 1fr; gap: 10px; }
  .sched-grid { grid-template-columns: 1fr; }
  .mgmt-row { grid-template-columns: 1fr; gap: 10px; }
  .mgmt-ops { justify-content: flex-start; }
  .tbl-head { display: none; }
  .tbl-row { grid-template-columns: 1fr; gap: 4px; padding: 10px 0; }
  .tbl-row > div { padding: 2px 14px; }
}

/* ============ 课程 / 词库 ============ */
.course-card { display: flex; align-items: center; gap: 12px; }
.course-card .ci {
  width: 44px; height: 44px; border-radius: 13px; flex: none;
  background: var(--brand-soft); color: var(--brand);
  display: grid; place-items: center; font-weight: 800; font-size: 13px;
}
.course-card .cm { flex: 1; min-width: 0; }
.course-card .cm b { font-size: 14.5px; }
.course-card .cm small { display: block; color: var(--muted); font-size: 12px; margin-top: 3px; }
.progress-mini { height: 6px; border-radius: 99px; background: #eceef6; overflow: hidden; margin-top: 7px; }
.progress-mini > i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--brand), var(--brand-2)); }

/* ============ 步骤条 ============ */
.steps { display: flex; gap: 6px; margin-bottom: 12px; }
.steps .st {
  flex: 1; text-align: center; font-size: 11.5px; color: var(--muted); font-weight: 600;
  padding: 8px 2px; border-radius: 10px; background: #fff; box-shadow: var(--shadow);
}
.steps .st.on { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; }

/* ============ 选单词 ============ */
.pickbar { display: flex; gap: 7px; margin: 10px 0; }
.pickbar .btn { flex: 1; padding: 8px 2px; font-size: 12px; }
.group { margin-bottom: 12px; }
.group-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.group-head b { font-size: 13.5px; }
.group-head span { font-size: 12px; color: var(--brand); font-weight: 700; cursor: pointer; }
.pick-row { display: flex; align-items: center; gap: 9px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.pick-row:last-child { border-bottom: none; }
.pick-row .en { font-weight: 700; min-width: 92px; font-size: 14.5px; }
.pick-row .cn { color: var(--muted); font-size: 13px; flex: 1; }
.chk {
  width: 21px; height: 21px; border-radius: 6px; flex: none; cursor: pointer;
  border: 1.5px solid #d9dcea; display: grid; place-items: center;
  color: transparent; font-size: 12px;
}
.chk.on { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ============ 识记卡 ============ */
.study-card {
  background: linear-gradient(150deg, #fff, #f2f0ff);
  border-radius: 20px; padding: 26px 16px; text-align: center; box-shadow: var(--shadow);
}
.study-card .big-word { font-size: 38px; font-weight: 800; color: var(--brand); letter-spacing: .5px; }
.study-card .ph {
  font-family: var(--font-phonetic);
  color: var(--muted); margin-top: 6px; font-size: 14px; font-style: normal;
}
.study-card .mean { margin-top: 14px; font-size: 17px; font-weight: 700; }
.study-card .ex { margin-top: 9px; color: var(--muted); font-size: 12.5px; line-height: 1.65; }
.chips { display: flex; gap: 8px; justify-content: center; margin-top: 15px; flex-wrap: wrap; }
.chip2 {
  border: 1.5px solid var(--line); background: #fff; border-radius: 99px;
  padding: 7px 13px; font-size: 12.5px; color: var(--muted); cursor: pointer; font-weight: 600;
}
.chip2.on { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); }
.study-nav { display: flex; gap: 10px; margin-top: 14px; }
.study-nav .btn { flex: 1; padding: 13px; }

/* ============ 学前检测 ============ */
.pre-counts { display: flex; justify-content: center; gap: 18px; font-size: 13px; color: var(--muted); margin-top: 10px; }
.pre-counts b.ok { color: var(--ok); font-size: 16px; }
.pre-counts b.no { color: var(--bad); font-size: 16px; }
.pre-actions { display: flex; gap: 10px; margin-top: 14px; }
.pre-actions .btn { flex: 1; padding: 14px; font-size: 15px; }
.btn-ok { background: var(--ok-soft); color: var(--ok); }
.btn-no { background: var(--bad-soft); color: var(--bad); }

/* ============ 九宫格抗遗忘 ============ */
.sudoku { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.sudoku .cell {
  border: none; cursor: pointer; background: #fff; border-radius: 14px;
  box-shadow: var(--shadow); padding: 13px 4px; text-align: center;
}
.sudoku .cell b { display: block; font-size: 19px; color: var(--brand); }
.sudoku .cell span { font-size: 11px; color: var(--muted); }
.sudoku .cell.empty { opacity: .5; }
.sudoku .cell.empty b { color: var(--muted); }
.sudoku .cell:active { transform: scale(.97); }

/* ============ 学习成果 ============ */
.outcome { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; margin-top: 12px; }
.outcome .o { background: #fff; border-radius: 14px; box-shadow: var(--shadow); padding: 13px 10px; text-align: center; }
.outcome .o b { display: block; font-size: 22px; }
.outcome .o span { font-size: 12px; color: var(--muted); }
.o.ok b { color: var(--ok); }
.o.bad b { color: var(--bad); }
.o.brand b { color: var(--brand); }

/* ============ 导出本课单词 ============ */
.export-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 0; border-bottom: 1px solid var(--line);
}
.export-row:last-child { border-bottom: none; }
.export-row > span { font-size: 14px; font-weight: 600; }
.export-row > div { display: flex; gap: 6px; }
.export-row .btn { padding: 6px 14px; font-size: 12.5px; }

/* PDF 预览（与打印内容一致） */
.print-preview {
  max-height: 42vh; overflow-y: auto; background: #fff;
  border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px;
}
.print-preview h1 { font-size: 16px; margin: 0 0 4px; }
.print-preview .pmeta { font-size: 11.5px; color: var(--muted); margin-bottom: 10px; }
.print-preview .plist { font-size: 13.5px; line-height: 1.9; }
.print-preview table.ptable { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.print-preview table.ptable th,
.print-preview table.ptable td { border: 1px solid var(--line); padding: 5px 9px; text-align: left; }
.print-preview table.ptable th { background: #f6f7fb; font-weight: 700; }
.print-preview table.ptable th:first-child,
.print-preview table.ptable td:first-child { width: 28%; font-weight: 600; }
.print-preview table.ptable th:last-child,
.print-preview table.ptable td:last-child { width: 38%; }
.print-preview .pfoot { display: none; }

/* ============ 打印（另存为 PDF） ============ */
#printArea { display: none; }
@media print {
  html, body { background: #fff !important; height: auto !important; }
  .app-shell, #modalRoot, .toast-root { display: none !important; }
  #printArea { display: block !important; padding: 8mm 6mm; color: #000; }
  #printArea h1 { font-size: 19px; margin: 0 0 4px; font-weight: 700; }
  #printArea .pmeta { font-size: 12px; color: #555; margin-bottom: 14px; }
  #printArea .plist { font-size: 14px; line-height: 2.1; }
  #printArea table.ptable { width: 100%; border-collapse: collapse; font-size: 14px; }
  #printArea table.ptable th,
  #printArea table.ptable td { border: 1px solid #bbb; padding: 6px 10px; text-align: left; vertical-align: top; }
  #printArea table.ptable th { background: #f2f2f2; font-weight: 700; }
  #printArea table.ptable th:first-child,
  #printArea table.ptable td:first-child { width: 28%; font-weight: 600; }
  #printArea table.ptable th:last-child,
  #printArea table.ptable td:last-child { width: 38%; }
  #printArea .pfoot { margin-top: 18px; font-size: 11px; color: #888; }
}

/* ============ 学前/学后检测（列表·每行一个） ============ */
.card.sticky-bar {
  position: sticky; top: 0; z-index: 6;
  margin-bottom: 12px;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(180%) blur(8px);
  -webkit-backdrop-filter: saturate(180%) blur(8px);
  box-shadow: 0 1px 0 var(--line), 0 8px 18px rgba(16, 24, 40, .06);
}
.pre-list { display: flex; flex-direction: column; gap: 8px; }
#gridBtns { flex-wrap: wrap; justify-content: flex-end; }
.pre-item {
  display: flex; align-items: center; gap: 12px;
  background: #fff; border-radius: 12px; box-shadow: var(--shadow);
  padding: 13px 14px; border: 1.5px solid transparent;
}
.pre-item.ok { border-color: var(--ok); background: var(--ok-soft); }
.pre-item.bad { border-color: var(--bad); background: var(--bad-soft); }
.pre-item .pw { flex: 1; min-width: 0; cursor: pointer; display: flex; align-items: baseline; gap: 10px; }
.pre-item.grid-row .pw { align-items: flex-start; }
.pre-item .pre-word {
  flex: 0 0 auto; min-width: 170px;
  display: flex; flex-direction: column; align-items: flex-start;
}
.pre-item .pw b { font-family: "Times New Roman", Times, "Songti SC", serif; font-size: 24px; letter-spacing: .3px; }
.pre-item .pre-ph {
  margin-top: 2px; font-family: var(--font-phonetic);
  font-size: 13px; line-height: 1.25; font-style: normal;
  letter-spacing: .2px; color: var(--muted);
}
.pre-item .pw small {
  font-family: var(--font-cn-serif);
  color: #35384a; font-size: 17px; line-height: 1.5; font-weight: 600;
}
.pre-item .pm { flex: none; display: flex; gap: 6px; }
.pre-item .pm button {
  width: 56px; height: 46px; border: 1.5px solid var(--line); background: #fff;
  border-radius: 12px; line-height: 1; cursor: pointer;
  display: grid; place-items: center; opacity: .6; color: var(--muted);
  transition: transform .12s ease, border-color .12s ease, background .12s ease, opacity .12s ease;
}
.pre-item .pm button svg { width: 25px; height: 25px; display: block; }
.pre-item .pm button[data-action$="-ok"] { color: var(--ok); }
.pre-item .pm button[data-action$="-no"] { color: var(--bad); }
.pre-item .pm button:hover { opacity: .95; border-color: currentColor; }
.pre-item .pm button:active { transform: scale(.92); }
.pre-item .pm button.on { opacity: 1; border-color: currentColor; background: #fff; }
.pre-item .pm button[data-action$="-ok"].on { box-shadow: 0 0 0 3px rgba(18, 183, 106, .14); }
.pre-item .pm button[data-action$="-no"].on { box-shadow: 0 0 0 3px rgba(240, 68, 56, .12); }
.pre-item.cut-ok { border-color: var(--ok); background: var(--ok-soft); }
.pre-item.cut-bad { border-color: var(--bad); background: var(--bad-soft); }
.pre-item .pw .ph2 {
  font-family: var(--font-phonetic);
  color: var(--muted); font-size: 13px; font-style: normal;
  letter-spacing: .2px; margin-left: 8px;
}

/* ============ 剪纸盒小游戏：两个归类区 ============ */
.cut-row { animation: cutRowIn .22s ease both; }
.cut-row.fly-out { opacity: 0; transform: translateY(16px) scale(.96); transition: opacity .18s ease, transform .18s ease; }
@keyframes cutRowIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: none; }
}
.cut-boxes {
  position: sticky; bottom: 12px; z-index: 5;
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  margin-top: 18px; padding: 4px 2px 2px;
  max-width: 640px; margin-left: auto; margin-right: auto;
}
.cut-box {
  position: relative; min-height: 112px; padding: 14px 16px 15px; border-radius: 20px;
  border: 1px solid rgba(16, 24, 40, .06); text-align: left; color: inherit;
  box-shadow: 0 8px 24px rgba(16, 24, 40, .07), inset 0 1px 0 rgba(255, 255, 255, .85);
  overflow: hidden;
  transition: transform .14s ease, box-shadow .14s ease;
}
.cut-box::after {
  content: ""; position: absolute; left: 50%; top: 0; width: 64px;
  height: 5px; border-radius: 0 0 999px 999px; transform: translateX(-50%);
}
.cut-box.green { background: linear-gradient(150deg, #fbfffd 0%, #ecfaf3 100%); }
.cut-box.green::after { background: linear-gradient(90deg, #a9ecc9, #39c983); opacity: .7; }
.cut-box.red { background: linear-gradient(150deg, #fffbfa 0%, #fff0ee 100%); }
.cut-box.red::after { background: linear-gradient(90deg, #f9c4be, #f26a5e); opacity: .65; }
.cut-box.red.has-items { cursor: pointer; }
.cut-box.red.has-items:hover { box-shadow: 0 12px 30px rgba(240, 68, 56, .14), inset 0 1px 0 #fff; }
.cut-box.red.has-items:active { transform: scale(.985); }
.cut-box-top { position: relative; display: flex; align-items: center; justify-content: center; }
.cut-icon {
  position: relative; width: 48px; height: 48px; border-radius: 16px;
  display: grid; place-items: center; background: #fff;
  box-shadow: 0 4px 14px rgba(16, 24, 40, .09), 0 0 0 6px rgba(16, 24, 40, .025);
}
.cut-icon svg { width: 26px; height: 26px; display: block; }
.cut-box.green .cut-icon { color: var(--ok); }
.cut-box.red .cut-icon { color: var(--bad); }
.cut-box.green .cut-icon { box-shadow: 0 4px 14px rgba(18, 183, 106, .10), 0 0 0 6px rgba(18, 183, 106, .06); }
.cut-box.red .cut-icon { box-shadow: 0 4px 14px rgba(240, 68, 56, .09), 0 0 0 6px rgba(240, 68, 56, .055); }
.cut-count {
  position: absolute; top: -6px; right: -7px; min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 999px; display: grid; place-items: center;
  font-size: 11px; font-weight: 800; color: #fff; background: #101828;
  box-shadow: 0 2px 6px rgba(16, 24, 40, .18);
}
.cut-return {
  position: absolute; right: 0; top: 7px; width: 34px; height: 34px; border-radius: 11px;
  display: grid; place-items: center; color: var(--bad);
  background: rgba(255, 255, 255, .72);
  box-shadow: 0 2px 8px rgba(240, 68, 56, .10);
  animation: cutReturnPulse 1.9s ease-in-out infinite;
}
.cut-return svg { width: 19px; height: 19px; display: block; }
@keyframes cutReturnPulse {
  0%, 100% { transform: translateY(0); opacity: .72; }
  50% { transform: translateY(-2px); opacity: 1; }
}
.cut-box-body {
  display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px;
  min-height: 30px; align-content: flex-start; justify-content: center;
}
.cut-box-body.is-empty {
  border-radius: 10px; opacity: .32;
  background-image: radial-gradient(circle, rgba(16, 24, 40, .14) 1px, transparent 1.4px);
  background-size: 11px 11px;
}
.cut-chip {
  padding: 5px 11px; border-radius: 999px; background: rgba(255, 255, 255, .94);
  border: 1px solid rgba(16, 24, 40, .05);
  font-family: "Times New Roman", Times, "Songti SC", serif;
  font-size: 15px; box-shadow: 0 1px 2px rgba(16, 24, 40, .05);
  animation: cutChipIn .26s cubic-bezier(.2, .9, .3, 1.2) both;
}
.cut-box.green .cut-chip { color: #067647; }
.cut-box.red .cut-chip { color: #b42318; }
@keyframes cutChipIn {
  from { opacity: 0; transform: scale(.7) translateY(8px); }
  to { opacity: 1; transform: none; }
}
.cut-progress { display: flex; align-items: center; gap: 14px; width: 100%; }
.cut-progress span { min-width: 54px; font-size: 14px; font-weight: 700; color: var(--text); }
.cut-progress span b { font-size: 16px; }
.cut-progress i { flex: 1; height: 8px; border-radius: 999px; background: #edf0f6; overflow: hidden; }
.cut-progress em {
  display: block; height: 100%; border-radius: inherit;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  transition: width .28s ease;
}

/* ============ 识记（双栏卡片） ============ */
.study-tiles { display: flex; flex-direction: column; gap: 10px; }
.study-tile {
  position: relative; display: flex;
  align-items: center; gap: 14px;
  background: linear-gradient(145deg, #fff 0%, #faf9ff 100%);
  border: 1.5px solid #eeecff; border-radius: 16px;
  box-shadow: var(--shadow); padding: 16px 19px;
  cursor: pointer; overflow: hidden;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease, background .16s ease;
}
.study-tile::before {
  content: ""; position: absolute; left: 0; top: 14px; bottom: 14px;
  width: 3px; border-radius: 0 3px 3px 0; background: transparent;
  transition: background .16s ease;
}
.study-tile:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(16, 24, 40, .08); }
.study-tile.is-active {
  border-color: rgba(72, 57, 219, .36);
  background: linear-gradient(145deg, #f5f3ff, #eeebff);
  box-shadow: 0 7px 22px rgba(72, 57, 219, .13);
}
.study-tile.is-active::before { background: linear-gradient(var(--brand), var(--brand-2)); }
.study-tile.on { border-color: #e0dbff; background: linear-gradient(145deg, #fffdf8, #f8f4ff); }
.study-tile.on::before { background: linear-gradient(#c9a646, #e4c66d); }
.st-main { flex: 0 0 auto; min-width: 190px; }
.study-tile .st-en {
  font-family: "Times New Roman", Times, Georgia, serif;
  font-size: 26px; font-weight: 700; line-height: 1.15;
  color: var(--text); overflow-wrap: anywhere;
}
.study-tile.is-active .st-en { color: #2c1fb8; }
.study-tile .st-ph {
  margin-top: 5px; font-family: var(--font-phonetic);
  font-style: normal; font-size: 13px; letter-spacing: .2px;
  color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.study-tile.is-active .st-ph { color: #6a5fd0; }
.study-tile .st-side,
.study-tile.on .st-side {
  flex: 1; min-width: 0; min-height: 26px; display: flex; align-items: center;
  padding-left: 0; border-left: none;
}
.study-tile .st-cn {
  font-family: var(--font-cn-serif);
  font-size: 18px; line-height: 1.65; color: #2b2d3a; font-weight: 600;
  animation: cnReveal .22s ease both;
}
.study-tile.on .st-cn { font-size: 18px; }
@keyframes cnReveal {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}
@media (max-width: 760px) {
  .study-tile { align-items: flex-start; gap: 12px; padding: 14px 15px; }
  .st-main { min-width: 145px; }
  .study-tile .st-cn,
  .study-tile.on .st-cn { font-size: 17px; }
}

/* ============ 登录门 ============ */
.login-gate {
  position: fixed; inset: 0; z-index: 80;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  background:
    radial-gradient(900px 460px at 50% -6%, #e9e3ff 0%, rgba(233, 227, 255, 0) 70%),
    linear-gradient(180deg, #f7f8fc 0%, #eef1f8 100%);
}
.login-card {
  width: 100%; max-width: 380px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 30px 26px 24px;
  box-shadow: 0 18px 48px rgba(16, 24, 40, .12), 0 2px 6px rgba(16, 24, 40, .05);
  animation: loginIn .28s cubic-bezier(.2, .8, .2, 1) both;
}
@keyframes loginIn { from { opacity: 0; transform: translateY(10px) scale(.985); } to { opacity: 1; transform: none; } }
.login-logo {
  font-family: "DP Brand", "Snell Roundhand", "Apple Chancery", "Segoe Script", "Brush Script MT", Georgia, "Songti SC", serif;
  font-size: 34px; font-weight: 400; letter-spacing: .4px; line-height: 1.15;
  text-align: center;
  background: linear-gradient(96deg, #4436d6 8%, #7b61ff 52%, #9a86ff 78%, #4436d6 98%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.login-tip { text-align: center; color: var(--muted); font-size: 12.5px; margin: 8px 0 22px; }
.login-card .field input { padding: 12px 13px; font-size: 14px; }
.login-err { min-height: 18px; color: var(--bad); font-size: 12.5px; margin: 0 2px 8px; }
.login-remember {
  display: flex; align-items: center; gap: 7px; cursor: pointer;
  font-size: 13px; color: var(--muted); margin: -2px 2px 14px;
}
.login-remember input { width: 15px; height: 15px; accent-color: var(--brand); cursor: pointer; }
.login-card .btn-block { padding: 14px; font-size: 15px; border-radius: 14px; margin-top: 2px; }

/* ============ 存储不可用提醒 ============ */
.storage-warn {
  flex: none;
  padding: 10px clamp(16px, 3vw, 32px);
  font-size: 12.5px; line-height: 1.6; color: #b54708;
  background: #fff4e5; border-bottom: 1px solid #ffe0bd;
}
.storage-warn b { color: #93370d; }

/* ============ 抗遗忘日期分组 ============ */
.review-date-head {
  display: flex; align-items: center; gap: 9px;
  min-height: 42px; margin: 14px 0 8px; padding: 8px 11px;
  background: linear-gradient(105deg, #fbfaff 0%, #f4f1ff 100%);
  border: 1px solid #e3deff; border-left: 3px solid var(--brand);
  border-radius: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 2px 8px rgba(72, 57, 219, .045);
}
.review-date-head b { flex: none; font-size: 15.5px; color: var(--brand); letter-spacing: .01em; }
.review-date-head span {
  flex: none; font-size: 12.5px; color: #6f6a88;
  padding-left: 9px; border-left: 1px solid #d9d2ff;
}
.review-date-head i {
  flex: 1; min-width: 18px; height: 1px;
  background: linear-gradient(90deg, #dcd6ff, rgba(220, 214, 255, 0));
}
.review-date-head em {
  flex: none; font-style: normal; font-size: 11.5px; font-weight: 700;
  color: var(--brand); background: rgba(255, 255, 255, .9);
  border: 1px solid #ded8ff; padding: 3px 9px; border-radius: 999px;
}
.review-date-head.today {
  border-color: #d9d1ff; border-left-color: var(--brand-2);
  background: linear-gradient(105deg, #f8f5ff 0%, #eee9ff 100%);
}
.review-date-head.completed {
  border-color: #d6f0e2; border-left-color: var(--ok);
  background: linear-gradient(105deg, #fbfffd 0%, #eefbf5 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .95), 0 2px 8px rgba(18, 183, 106, .04);
}
.review-date-head.completed b { color: #067647; }
.review-date-head.completed span { color: #5f7269; border-left-color: #ccebdc; }
.review-date-head.completed i { background: linear-gradient(90deg, #cdeedf, rgba(205, 238, 223, 0)); }
.review-date-head.completed em {
  color: #067647; background: #fff; border-color: #abefc6;
}
.review-date-group .card { margin-bottom: 2px; }
@media (max-width: 520px) {
  .review-date-head { gap: 7px; padding: 8px 9px; }
  .review-date-head span { padding-left: 7px; font-size: 12px; }
  .review-date-head em { padding: 3px 7px; }
}

/* ============ 学习报告 ============ */
.modal.report-modal {
  max-width: 620px;
  overflow-y: auto;
  overflow-x: hidden;
}
.report-hero {
  position: relative;
  padding: 26px 26px 24px;
  color: #fff;
  border-radius: 20px 20px 0 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 86% 10%, rgba(255, 255, 255, .24), transparent 34%),
    linear-gradient(135deg, #4436d6 0%, #6e55f5 54%, #a78bfa 100%);
}
.report-hero::after {
  content: "";
  position: absolute; right: -70px; bottom: -110px;
  width: 240px; height: 240px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .16);
}
.report-close {
  position: absolute; right: 18px; top: 12px; z-index: 1;
  font-size: 23px; line-height: 1; cursor: pointer;
  color: rgba(255, 255, 255, .82);
}
.report-kicker {
  font-size: 10.5px; letter-spacing: .22em; font-weight: 700;
  opacity: .68;
}
.report-hero-row {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; margin-top: 8px;
}
.report-hero-main { min-width: 0; }
.report-hero-main h2 {
  margin: 0; font-size: 26px; line-height: 1.25;
  overflow-wrap: anywhere;
}
.report-hero-sub {
  margin-top: 7px; font-size: 13px; opacity: .86;
  overflow-wrap: anywhere;
}
.report-hero-meta { margin-top: 10px; font-size: 11.5px; opacity: .62; }
.report-score {
  flex: none; width: 106px; height: 106px; border-radius: 50%;
  display: grid; place-items: center; text-align: center;
  background: rgba(255, 255, 255, .13);
  border: 1px solid rgba(255, 255, 255, .3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18);
}
.report-score b { display: block; font-size: 29px; line-height: 1; letter-spacing: -.5px; }
.report-score span { display: block; margin-top: 7px; font-size: 10.5px; opacity: .82; }
.report-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  padding: 18px 20px 0;
}
.report-stat {
  background: #fafaff; border: 1px solid #efedff;
  border-radius: 16px; padding: 14px 15px;
}
.report-stat span { font-size: 12px; color: var(--muted); }
.report-stat b { display: inline-block; margin-top: 6px; font-size: 25px; line-height: 1; }
.report-stat small { margin-left: 3px; font-size: 11px; color: var(--muted); }
.report-stat.bad b { color: var(--bad); }
.report-bar {
  height: 6px; margin-top: 10px; border-radius: 999px;
  background: #ececf4; overflow: hidden;
}
.report-bar i {
  display: block; height: 100%; border-radius: inherit;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
}
.report-stat.bad .report-bar i {
  background: linear-gradient(90deg, var(--warn), var(--bad));
}
.report-course {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px;
  margin: 12px 20px 0; padding: 12px 15px;
  border-radius: 14px; background: #f4f2ff;
}
.report-course span { flex: none; font-size: 12px; color: var(--muted); }
.report-course b { flex: 1; min-width: 0; font-size: 13.5px; overflow-wrap: anywhere; }
.report-course-progress {
  flex: none; margin-left: auto; padding: 4px 9px;
  border: 1px solid #ddd7ff; border-radius: 999px;
  background: #fff; color: var(--brand); font-size: 11.5px; font-weight: 700;
}
.report-note {
  margin: 14px 20px 16px; padding: 14px 18px 16px;
  border-radius: 16px; border: 1px solid #fde9bf;
  background: linear-gradient(135deg, #fffdf6, #fff6e5);
}
.report-note::before {
  content: "“"; display: block; height: 18px;
  font-family: Georgia, "Songti SC", serif;
  font-size: 34px; line-height: 1; color: #d97706; opacity: .5;
}
.report-note-title {
  font-size: 11.5px; font-weight: 800; color: #b54708;
  letter-spacing: .04em;
}
.report-note p {
  margin: 8px 0 0; font-size: 13.5px; line-height: 1.8; color: #5b4636;
}
.modal-foot.report-foot { padding: 0 20px 20px; }
@media (max-width: 520px) {
  .report-hero { padding: 22px 20px; }
  .report-hero-row { gap: 12px; }
  .report-hero-main h2 { font-size: 22px; }
  .report-score { width: 88px; height: 88px; }
  .report-score b { font-size: 25px; }
  .report-grid { padding: 16px 16px 0; gap: 8px; }
  .report-stat { padding: 12px; }
  .report-stat b { font-size: 22px; }
  .report-course, .report-note { margin-left: 16px; margin-right: 16px; }
  .report-course-progress { width: 100%; margin-left: 0; text-align: center; }
  .modal-foot.report-foot { padding: 0 16px 16px; }
}

/* ==========================================================================
   教练端视觉系统：与管理员端保持一致的皇家宝蓝 SaaS 风格
   ========================================================================== */
:root {
  --brand: #1c27c9;
  --brand-2: #394bff;
  --brand-soft: #eef0ff;
  --bg: #f5f6fa;
  --card: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #e5e7eb;
  --line-soft: #f1f3f7;
  --ok: #10b981;
  --ok-soft: #e9fbf3;
  --bad: #ef4444;
  --bad-soft: #fef0f0;
  --warn: #f59e0b;
  --shadow: 0 12px 36px rgba(31, 41, 55, .055);
  --shadow-soft: 0 20px 55px rgba(28, 39, 201, .08), 0 4px 18px rgba(31, 41, 55, .05);
  --radius: 12px;
}

body {
  background:
    radial-gradient(circle at 7% 8%, rgba(57, 75, 255, .055), transparent 24rem),
    radial-gradient(circle at 94% 4%, rgba(70, 185, 255, .045), transparent 22rem),
    var(--bg);
  -webkit-font-smoothing: antialiased;
}

.app-shell {
  background:
    radial-gradient(circle at 94% 0%, rgba(72, 185, 255, .05), transparent 26rem),
    linear-gradient(145deg, #f8f9fc 0%, #f5f6fa 52%, #f2f4f9 100%);
}

.app-header {
  height: 72px;
  padding: 0 24px;
  gap: 18px;
  background:
    radial-gradient(circle at 72% -80%, rgba(147, 161, 255, .5), transparent 35%),
    linear-gradient(110deg, #1722bf 0%, #1c27c9 56%, #2133db 100%);
  box-shadow: 0 10px 30px rgba(20, 31, 156, .18);
}

.brand {
  gap: 11px;
}

.header-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .2);
  background: rgba(255, 255, 255, .08);
}

.header-icon-btn svg {
  width: 19px;
  height: 19px;
}

.header-icon-btn:hover {
  background: rgba(255, 255, 255, .16);
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex: none;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 11px;
  background: rgba(255, 255, 255, .13);
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16);
}

.brand-text {
  align-items: flex-start;
  gap: 0;
  flex-direction: column;
}

.brand-text strong {
  color: #fff;
  background: none;
  -webkit-text-fill-color: #fff;
  filter: none;
  font-family: "Baskerville", "Times New Roman", Georgia, serif;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -.035em;
}

.brand-text small {
  margin-top: 1px;
  color: rgba(255, 255, 255, .56);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.header-right {
  gap: 12px;
}

.header-profile {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-avatar {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, .34);
  border-radius: 50%;
  background: linear-gradient(145deg, #fff, #dfe4ff);
  color: var(--brand);
  font-family: Georgia, serif;
  font-size: 15px;
  font-weight: 700;
}

.header-user-copy {
  display: grid;
  gap: 2px;
  line-height: 1.15;
}

.header-user-copy b {
  font-size: 12px;
  font-weight: 700;
}

.header-user-copy small {
  color: rgba(255, 255, 255, .58);
  font-size: 9px;
}

.header-role-pill,
.header-btn {
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  color: rgba(255, 255, 255, .9);
}

.header-role-pill {
  padding: 7px 11px;
  font-size: 10px;
  font-weight: 700;
}

.header-btn {
  padding: 8px 13px;
  font-size: 11px;
}

.sidebar {
  width: 226px;
  padding: 22px 14px 18px;
  border-right: 1px solid rgba(220, 225, 236, .75);
  background: rgba(252, 253, 255, .84);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.sidebar .tab {
  min-height: 45px;
  gap: 12px;
  padding: 11px 13px;
  border-radius: 12px;
  color: #697287;
  font-size: 15.5px;
  font-weight: 600;
}

.sidebar .tab.is-sub {
  font-size: 13.5px;
}

.sidebar .tab:hover {
  background: #f3f5fb;
  color: #35405a;
}

.sidebar .tab.is-active {
  background: linear-gradient(90deg, rgba(28, 39, 201, .11), rgba(28, 39, 201, .055));
  color: var(--brand);
  font-weight: 700;
}

.sidebar .tab.is-active::before {
  left: 0;
  top: 11px;
  bottom: 11px;
  width: 3px;
  border-radius: 999px;
}

.app-body.is-collapsed .sidebar {
  width: 76px;
  padding: 22px 10px 18px;
}

.view {
  padding: 34px clamp(24px, 3vw, 44px) 52px;
}

.view > * {
  max-width: 1280px;
}

.page-head {
  align-items: flex-end;
  margin-bottom: 26px;
  padding-bottom: 0;
  border-bottom: 0;
}

.page-head h1 {
  gap: 10px;
  color: #202940;
  font-family: inherit;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -.015em;
}

.page-head h1::before {
  width: 5px;
  height: 25px;
  border-radius: 999px;
}

.page-head p {
  margin: 9px 0 0 15px;
  color: #8b93a4;
  font-size: 12px;
}

.ph-actions .btn {
  min-height: 42px;
  padding-left: 18px;
  padding-right: 18px;
}

.btn {
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease, border-color .16s ease;
}

.btn-primary {
  border-radius: 999px;
  background: linear-gradient(180deg, #3347f1 0%, var(--brand) 58%, #151fb0 100%);
  box-shadow: 0 10px 22px rgba(28, 39, 201, .2), inset 0 1px 0 rgba(255, 255, 255, .2);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(28, 39, 201, .27), 0 0 22px rgba(57, 75, 255, .12);
}

.btn-ghost {
  border: 1px solid #e9edf4;
  background: #fff;
  box-shadow: none;
}

.kpi-row {
  gap: 18px;
  margin-bottom: 22px;
}

.kpi {
  min-height: 148px;
  padding: 22px 21px 19px;
  overflow: hidden;
  border: 1px solid rgba(235, 238, 246, .86);
  border-radius: 20px;
  background: rgba(255, 255, 255, .93);
  box-shadow: var(--shadow-soft);
}

.kpi::before {
  display: none;
}

.kpi::after {
  content: "";
  position: absolute;
  width: 104px;
  height: 104px;
  right: -42px;
  bottom: -58px;
  border-radius: 50%;
  background: rgba(57, 75, 255, .05);
}

.kpi:hover {
  transform: translateY(-2px);
  border-color: rgba(28, 39, 201, .13);
  box-shadow: 0 18px 46px rgba(28, 39, 201, .1);
}

.kpi-label {
  color: #6e778b;
  font-size: 11.5px;
}

.kpi-ico {
  width: 37px;
  height: 37px;
  border-radius: 12px;
  background: #f2f4ff;
  color: var(--brand);
}

.kpi-value {
  margin-top: 15px;
  color: #202940;
  font-size: 34px;
  letter-spacing: -.05em;
}

.kpi-sub {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 7px;
  color: #9aa1b0;
  font-size: 10px;
}

.kpi-trend {
  display: inline-flex;
  align-items: center;
  padding: 3px 7px;
  border-radius: 999px;
  background: var(--ok-soft);
  color: #0d8a5b;
  font-size: 9px;
  font-weight: 800;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.72fr) minmax(260px, .68fr);
  gap: 22px;
  align-items: start;
}

.panel {
  overflow: hidden;
  border: 1px solid rgba(235, 238, 246, .86);
  border-radius: 20px;
  background: rgba(255, 255, 255, .94);
  box-shadow: var(--shadow-soft);
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 21px 22px 15px;
}

.panel-title {
  margin: 0;
  color: #2b3448;
  font-size: 14px;
  font-weight: 800;
}

.panel-sub {
  margin: 5px 0 0;
  color: #9aa1b0;
  font-size: 10px;
}

.table-count {
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 9px;
  font-weight: 800;
}

.dashboard-main-panel .tbl {
  margin: 0 12px 14px;
  overflow: hidden;
  border: 1px solid #edf0f6;
  border-radius: 14px;
  box-shadow: none;
}

.tbl-head {
  background: #f8f9fc;
  border-radius: 0;
  color: #8c94a5;
}

.tbl-head > div,
.tbl-row > div {
  padding: 12px 15px;
}

.tbl-row {
  border-bottom-color: #f0f2f6;
  color: #4c566b;
}

.tbl-row:hover {
  background: #f8faff;
}

.tbl-row .c-stu,
.tbl-row .c-coach {
  color: #273048;
}

.tbl-row .c-time {
  color: #333d53;
}

.tbl-row .btn {
  padding: 6px 11px;
  font-size: 10px;
  border: 0;
  background: transparent;
  color: #7d8698;
  box-shadow: none;
}

.tbl-row .btn:hover {
  background: var(--brand-soft);
  color: var(--brand);
}

.table-count,
.sc-pill,
.tag {
  background: var(--brand-soft);
  color: var(--brand);
  border-radius: 999px;
}

.overview-panel {
  padding-bottom: 18px;
}

.overview-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #6f788b;
  font-size: 9px;
  font-weight: 700;
}

.overview-live i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, .1);
}

.today-focus {
  margin: 5px 18px 18px;
  padding: 19px;
  border-radius: 16px;
  background:
    radial-gradient(circle at 92% 0%, rgba(255, 255, 255, .18), transparent 34%),
    linear-gradient(130deg, #1c27c9, #3147ed);
  color: #fff;
  box-shadow: 0 14px 28px rgba(28, 39, 201, .19);
}

.today-focus span {
  display: block;
  color: rgba(255, 255, 255, .68);
  font-size: 10px;
  font-weight: 600;
}

.today-focus b {
  display: inline-block;
  margin-top: 10px;
  font-size: 36px;
  line-height: 1;
  letter-spacing: -.05em;
}

.today-focus small {
  margin-left: 5px;
  color: rgba(255, 255, 255, .7);
  font-size: 11px;
}

.overview-list {
  display: grid;
  gap: 5px;
  padding: 0 18px;
}

.overview-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 2px;
  border-bottom: 1px solid #f0f2f6;
}

.overview-row:last-child {
  border-bottom: 0;
}

.overview-row span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #7d8698;
  font-size: 10px;
}

.overview-row span i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
}

.overview-row span i.mint { background: var(--ok); }
.overview-row span i.amber { background: var(--warn); }

.overview-row b {
  color: #30394e;
  font-size: 11px;
}

.quick-tip {
  margin: 16px 18px 0;
  padding: 14px;
  border: 1px solid #eef0ff;
  border-radius: 14px;
  background: linear-gradient(145deg, #f3f5ff, #fafbff);
  color: #6f7990;
  font-size: 10px;
  line-height: 1.75;
}

.quick-tip strong {
  display: block;
  margin-bottom: 4px;
  color: var(--brand);
  font-size: 10px;
}

.section-title {
  color: #7d8698;
}

.card {
  border: 1px solid rgba(235, 238, 246, .86);
  border-radius: 18px;
  box-shadow: 0 12px 34px rgba(31, 41, 55, .045);
}

.rec-table,
.data-table {
  border: 1px solid #edf0f6;
  border-radius: 16px;
  box-shadow: 0 12px 34px rgba(31, 41, 55, .045);
}

.rec-table thead th,
.data-table thead th {
  background: #f8f9fc;
  color: #8c94a5;
}

.rec-table tbody tr:hover td,
.data-table tbody tr:hover td {
  background: #f8faff;
}

.badge.done,
.list-status.ok {
  background: var(--ok-soft);
  color: #0d8a5b;
}

.badge.wait,
.list-status.wait {
  background: #fff5e5;
  color: #b97512;
}

.badge.live,
.list-status.off {
  background: var(--bad-soft);
  color: var(--bad);
}

.sched-page {
  max-width: 1100px;
}

.weekbar {
  margin-bottom: 13px;
}

.weekbar .month {
  color: #293247;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
}

.weekbar .nav button {
  width: 36px;
  height: 36px;
  border: 1px solid #e9edf4;
  border-radius: 11px;
  box-shadow: 0 8px 20px rgba(31, 41, 55, .05);
}

.days-wrap {
  padding: 10px;
  border: 1px solid #ebeff6;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(31, 41, 55, .045);
}

.days {
  gap: 6px;
}

.days .pill {
  top: 0;
  bottom: 0;
  width: calc((100% - 36px) / 7);
  left: calc(var(--di, 0) * ((100% - 36px) / 7 + 6px));
  border-radius: 13px;
  background: linear-gradient(180deg, #3348ef, var(--brand));
  box-shadow: 0 12px 24px rgba(28, 39, 201, .22);
}

.day {
  min-height: 82px;
  padding: 12px 3px;
  border-radius: 13px;
  background: #f8f9fc;
}

.day.is-active {
  background: transparent;
}

.day:not(.is-active):hover {
  background: #f2f4fb;
}

.day .dw {
  color: #8d95a5;
  font-size: 12.5px;
}

.day .dd {
  color: #354056;
  font-size: 21px;
}

.day.is-active .dw,
.day.is-active .dd {
  color: #fff;
}

.subjects {
  gap: 8px;
  margin: 16px 0 14px;
}

.subj {
  padding: 8px 15px;
  border: 1px solid #e9edf4;
  background: #fff;
  box-shadow: none;
  color: #7d8697;
  font-size: 13px;
}

.subj.is-active {
  border-color: transparent;
  background: var(--brand);
  color: #fff;
  box-shadow: 0 8px 17px rgba(28, 39, 201, .17);
}

.sched-grid {
  gap: 15px;
}

.sched-item .card {
  border: 1px solid #ecf0f6;
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(31, 41, 55, .045);
}

.sched-item .card::before {
  width: 0;
}

.sched-item .card:hover {
  border-color: rgba(28, 39, 201, .15);
  box-shadow: 0 17px 38px rgba(28, 39, 201, .1);
}

.sc-top {
  margin-bottom: 14px;
}

.sc-time b {
  color: var(--brand);
  font-size: 15px;
}

.sc-actions .btn {
  min-height: 34px;
  padding: 7px 13px;
  font-size: 12.5px;
}

.sc-stu {
  color: #293247;
  font-size: 16px;
}

.sc-pill {
  border-radius: 999px;
  font-size: 11.5px;
}

.sc-coach {
  font-size: 12.5px;
}

.lib-group-head {
  background: linear-gradient(110deg, #1722bf, var(--brand) 58%, #2639df);
  border-radius: 12px;
}

.review-date-head,
.review-date-head.today {
  border-color: #dfe3ff;
  border-left-color: var(--brand);
  background: linear-gradient(105deg, #f7f8ff, #eef0ff);
}

.review-date-head b,
.review-date-head em {
  color: var(--brand);
}

.report-hero {
  background:
    radial-gradient(circle at 86% 10%, rgba(255, 255, 255, .24), transparent 34%),
    linear-gradient(135deg, #1c27c9 0%, #2f45ed 56%, #4263f6 100%);
}

.report-course {
  background: #f2f4ff;
}

/* 登录页：左 6 / 右 4 */
.login-gate {
  display: grid;
  place-items: center;
  overflow-y: auto;
  padding: 38px 28px;
  background:
    radial-gradient(circle at 9% 12%, rgba(57, 75, 255, .1), transparent 29rem),
    radial-gradient(circle at 88% 10%, rgba(72, 185, 255, .08), transparent 25rem),
    linear-gradient(145deg, #f8f9fc 0%, #f5f6fa 54%, #f1f3f9 100%);
}

.login-gate::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .22;
  background-image: radial-gradient(rgba(66, 76, 150, .16) .55px, transparent .55px);
  background-size: 5px 5px;
  mask-image: linear-gradient(to bottom, #000, transparent 82%);
}

.login-stage {
  position: relative;
  z-index: 1;
  width: min(1120px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(350px, 2fr);
  gap: clamp(48px, 7vw, 94px);
  align-items: center;
}

.login-intro {
  padding-left: clamp(0px, 2vw, 24px);
}

.preview-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 13px;
  border: 1px solid rgba(28, 39, 201, .12);
  border-radius: 999px;
  background: rgba(255, 255, 255, .68);
  color: var(--brand);
  box-shadow: 0 8px 24px rgba(28, 39, 201, .06);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .16em;
}

.preview-badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 5px rgba(16, 185, 129, .11);
}

.login-intro h2 {
  max-width: 620px;
  margin: 28px 0 20px;
  color: #1b2441;
  font-family: "Baskerville", "Songti SC", "STSong", Georgia, serif;
  font-size: clamp(43px, 5.2vw, 70px);
  font-weight: 500;
  line-height: .98;
  letter-spacing: -.052em;
}

.login-intro h2 span {
  color: var(--brand);
}

.login-intro > p {
  max-width: 480px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.9;
}

.intro-points {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  margin-top: 34px;
  color: #475069;
  font-size: 11px;
  font-weight: 600;
}

.intro-points span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.intro-points i {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #fff;
  color: var(--brand);
  box-shadow: 0 7px 18px rgba(31, 41, 55, .07);
  font-style: normal;
}

.login-card-wrap {
  position: relative;
}

.card-halo {
  position: absolute;
  left: 12%;
  bottom: -34px;
  width: 76%;
  height: 38%;
  border-radius: 50%;
  background: rgba(28, 39, 201, .18);
  filter: blur(56px);
}

.login-card {
  position: relative;
  width: 100%;
  max-width: none;
  padding: 42px 40px 32px;
  border: 1px solid rgba(255, 255, 255, .94);
  border-radius: 28px;
  background: rgba(255, 255, 255, .91);
  box-shadow: 0 34px 90px rgba(31, 41, 55, .12), 0 12px 32px rgba(28, 39, 201, .08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.login-brand-mark {
  width: 45px;
  height: 45px;
  display: grid;
  place-items: center;
  margin: 0 auto 17px;
  border-radius: 14px;
  background: linear-gradient(145deg, #3348ef, var(--brand));
  color: #fff;
  font-family: Georgia, serif;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 12px 26px rgba(28, 39, 201, .22);
}

.login-logo {
  color: var(--brand);
  background: none;
  -webkit-text-fill-color: currentColor;
  font-family: "Baskerville", "Times New Roman", Georgia, serif;
  font-size: 33px;
  font-weight: 500;
  letter-spacing: -.045em;
}

.login-tip {
  margin: 9px 0 28px;
  color: var(--muted);
  font-size: 12px;
}

.login-card .field {
  margin-bottom: 16px;
}

.login-card .field label {
  color: #46506a;
  font-size: 11px;
  font-weight: 700;
}

.login-input-shell {
  display: flex;
  align-items: center;
  height: 52px;
  padding: 0 15px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: #f7f8fc;
  color: #9aa1b4;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.login-input-shell:focus-within {
  border-color: var(--brand);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(28, 39, 201, .09);
  color: var(--brand);
}

.login-input-shell svg {
  width: 18px;
  height: 18px;
  flex: none;
  margin-right: 11px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.login-card .login-input-shell input {
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 13px;
  box-shadow: none;
}

.login-card .login-input-shell input:focus {
  border: 0;
  background: transparent;
  box-shadow: none;
}

.login-err {
  min-height: 18px;
  margin: 0 2px 7px;
  color: var(--bad);
  font-size: 11px;
}

.login-remember {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 11px;
  user-select: none;
}

.login-remember input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.login-check {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border: 1px solid #ccd1dc;
  border-radius: 6px;
  background: #fff;
  color: transparent;
  font-size: 11px;
  font-weight: 800;
  transition: .15s ease;
}

.login-remember input:checked + .login-check {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}

.login-submit {
  width: 100%;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 0;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 13px;
}

.login-submit b {
  font-size: 16px;
  transition: transform .16s ease;
}

.login-submit:hover b {
  transform: translateX(3px);
}

.gate-view[hidden],
.login-register-success[hidden] {
  display: none;
}

.login-register-link {
  width: 100%;
  margin: 15px 0 0;
  padding: 4px;
  border: 0;
  background: transparent;
  color: #7d8598;
  font-size: 11px;
  text-align: center;
  cursor: pointer;
}

.login-register-link b {
  margin-left: 4px;
  color: var(--brand);
  font-weight: 800;
}

.login-register-link:hover b {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.login-register-success {
  padding: 10px 0 3px;
  text-align: center;
}

.login-success-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
  border-radius: 20px;
  background: var(--ok-soft);
  color: var(--ok);
  font-size: 25px;
  font-weight: 800;
  box-shadow: 0 12px 26px rgba(18, 183, 106, .12);
}

.login-register-success h3 {
  margin: 0 0 9px;
  color: var(--text);
  font-size: 20px;
}

.login-register-success p {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

.login-register-success p b {
  color: var(--brand);
}

.login-footer {
  margin-top: 22px;
  color: #9aa1b1;
  font-size: 10px;
  text-align: center;
  letter-spacing: .04em;
}

.login-footer span,
.login-footer a {
  display: block;
}

.login-footer a {
  margin-top: 5px;
  color: inherit;
  font-size: 11px;
  text-decoration: none;
}

.login-footer a:hover,
.login-footer a:focus-visible {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 2px;
}

@keyframes loginIn {
  from { opacity: 0; transform: translateY(12px) scale(.985); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 1080px) {
  .kpi-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .dashboard-aside {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 16px;
  }
}

@media (max-width: 860px) {
  .login-stage {
    grid-template-columns: 1fr;
    width: min(430px, 100%);
  }
  .login-intro {
    display: none;
  }
  .login-card {
    padding: 36px 30px 28px;
  }
  .dashboard-aside {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .app-header {
    height: 64px;
    padding: 0 15px;
  }
  .brand-mark,
  .brand-text small,
  .header-user-copy {
    display: none;
  }
  .brand-text strong {
    font-size: 19px;
  }
  .sidebar {
    width: 76px;
    padding: 16px 9px;
  }
  .view {
    padding: 24px 14px 44px;
  }
  .page-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }
  .page-head p {
    margin-left: 15px;
  }
  .ph-actions {
    width: 100%;
  }
  .ph-actions .btn {
    width: 100%;
  }
  .kpi-row {
    grid-template-columns: 1fr;
  }
  .days {
    gap: 5px;
    overflow-x: auto;
  }
  .day {
    min-width: 58px;
  }
  .login-gate {
    padding: 22px 16px;
  }
}

/* ============ 词库信息：对齐管理员端词库管理 ============ */
.library-filter-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: end;
  margin-bottom: 20px;
  padding: 18px;
  border: 1px solid rgba(235, 238, 246, .9);
  border-radius: 18px;
  background: rgba(255, 255, 255, .94);
  box-shadow: var(--shadow-soft);
}

.library-filter-fields {
  display: grid;
  grid-template-columns: minmax(220px, 1.5fr) repeat(3, minmax(130px, .8fr));
  gap: 13px;
}

.library-filter-field {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.library-filter-field > span {
  color: #7d8698;
  font-size: 10px;
  font-weight: 700;
}

.library-filter-control.input {
  width: 100%;
  height: 43px;
  min-width: 0;
  padding: 0 13px;
  border: 1px solid #edf0f6;
  border-radius: 12px;
  outline: 0;
  background: #f8f9fc;
  color: #30394c;
  font-size: 11px;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

select.library-filter-control.input {
  appearance: none;
  padding-right: 32px;
  background-image:
    linear-gradient(45deg, transparent 50%, #9ba3b3 50%),
    linear-gradient(135deg, #9ba3b3 50%, transparent 50%);
  background-position:
    calc(100% - 17px) 18px,
    calc(100% - 13px) 18px;
  background-repeat: no-repeat;
  background-size: 4px 4px, 4px 4px;
}

.library-filter-control.input:focus {
  border-color: var(--brand);
  background-color: #fff;
  box-shadow: 0 0 0 4px rgba(28, 39, 201, .07);
}

.library-search-btn {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(180deg, #3045f0, var(--brand));
  box-shadow: 0 9px 18px rgba(28, 39, 201, .2);
  color: #fff;
  cursor: pointer;
}

.library-search-btn svg {
  width: 17px;
  height: 17px;
}

.library-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0 2px 12px;
  color: #7d8698;
  font-size: 11px;
  font-weight: 700;
}

.library-list-head > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #8d95a5;
  font-size: 9px;
  font-weight: 600;
}

.library-list-head > span i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, .1);
}

.library-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 17px;
}

.library-grid-coach {
  margin-bottom: 22px;
}

.library-card {
  position: relative;
  min-height: 206px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #ebeff6;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 33px rgba(31, 41, 55, .055);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.library-card:hover {
  transform: translateY(-3px);
  border-color: rgba(28, 39, 201, .12);
  box-shadow: 0 20px 44px rgba(28, 39, 201, .09);
}

.library-card::after {
  content: "";
  position: absolute;
  width: 105px;
  height: 105px;
  right: -48px;
  top: -45px;
  border-radius: 50%;
  background: rgba(57, 75, 255, .055);
  pointer-events: none;
}

.library-main {
  flex: 1;
  padding: 19px 19px 14px;
}

.library-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.library-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: linear-gradient(145deg, #f1f3ff, #e7eaff);
  color: var(--brand);
}

.library-icon svg {
  width: 19px;
  height: 19px;
}

.library-tag {
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--ok-soft);
  color: #0d8a5b;
  font-size: 9px;
  font-weight: 800;
}

.library-tag.muted {
  background: #f2f4f8;
  color: #7d8698;
}

.library-name {
  margin: 17px 0 8px;
  color: #293247;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.library-meta {
  color: #8d95a5;
  font-size: 10px;
  line-height: 1.7;
}

.library-note {
  margin-top: 7px;
  color: #a0a7b5;
  font-size: 9px;
  line-height: 1.6;
}

.library-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 55px;
  padding: 11px 15px;
  border-top: 1px solid #f0f2f6;
  background: #fcfdff;
}

.word-total {
  flex: none;
  color: #6f788b;
  font-size: 10px;
  font-weight: 700;
}

.word-total strong {
  color: var(--brand);
  font-size: 14px;
}

.library-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 5px;
}

.tiny-btn {
  min-height: 29px;
  padding: 0 9px;
  border: 1px solid #e9edf4;
  border-radius: 999px;
  background: #fff;
  color: #737d90;
  font-size: 9px;
  font-weight: 700;
  cursor: pointer;
}

.tiny-btn:hover {
  border-color: rgba(28, 39, 201, .2);
  color: var(--brand);
}

.tiny-btn.primary {
  border-color: transparent;
  background: var(--brand);
  color: #fff;
}

.tiny-btn.danger {
  color: var(--bad);
}

.tiny-btn.danger:hover {
  border-color: rgba(239, 68, 68, .2);
  background: var(--bad-soft);
}

.library-help-card {
  margin-top: 22px;
  padding: 17px 19px;
  border: 1px solid #e8ecf4;
  border-radius: 16px;
  background: rgba(255, 255, 255, .8);
  color: #7b8495;
  font-size: 11px;
  line-height: 1.9;
}

.library-help-card b {
  color: #46506a;
}

@media (max-width: 1100px) {
  .library-filter-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .library-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .library-filter-panel {
    grid-template-columns: 1fr;
  }
  .library-filter-fields {
    grid-template-columns: 1fr;
  }
  .library-search-btn {
    width: 100%;
  }
  .library-grid {
    grid-template-columns: 1fr;
  }
  .library-foot {
    align-items: flex-start;
    flex-direction: column;
  }
  .library-actions {
    width: 100%;
    justify-content: flex-start;
  }
}

/* 词库版本分组：取消吸顶，仅用细灰线分隔 */
.lib-group-head {
  position: static;
  z-index: auto;
  margin: 24px 0 12px;
  padding: 16px 2px 0;
  border-top: 1px solid #e5e7eb;
  border-bottom: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #6b7280;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
}

.lib-group-head:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.lib-group-head span::before {
  display: none;
}

.lib-group-head em {
  padding: 3px 9px;
  border: 1px solid #e5e7eb;
  background: #f8f9fc;
  color: #8d95a5;
  font-size: 10px;
  font-weight: 700;
}

/* 左侧导航：与管理员端的字号、字重和子栏展开方式一致 */
.sidebar .tab {
  width: 100%;
  flex: none;
  min-height: 46px;
  gap: 13px;
  padding: 0 14px;
  border-radius: 13px;
  font-size: 16px;
  font-weight: 400;
  line-height: normal;
  letter-spacing: normal;
}

.sidebar {
  gap: 5px;
  padding: 24px 15px 18px;
}

.app-body.is-collapsed .sidebar {
  padding: 24px 10px 18px;
}

.sidebar .tab svg {
  width: 18px;
  height: 18px;
}

.sidebar .tab.is-active {
  font-weight: 700;
}

.sidebar .tab.is-sub {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 11px;
  font-size: 15px;
  font-weight: inherit;
  letter-spacing: normal;
}

.sidebar .tab.is-sub::before {
  display: none;
}

.side-group {
  display: grid;
  gap: 4px;
}

.side-parent {
  position: relative;
}

.side-chevron {
  width: 6px;
  height: 6px;
  margin-left: auto;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform .18s ease;
}

.side-group.open .side-chevron {
  transform: rotate(225deg) translate(-2px, -2px);
}

.sidebar .nav-sub {
  display: none;
  gap: 3px;
  max-height: none;
  margin: 0 10px 3px 31px;
  padding-left: 11px;
  overflow: visible;
  border-left: 1px solid #e7ebf3;
  opacity: 1;
  transition: none;
}

.side-group.open > .nav-sub {
  display: grid;
}

.side-subitem .side-subdot {
  width: 5px;
  height: 5px;
  flex: none;
  border-radius: 50%;
  background: #cbd2df;
}

.side-subitem.is-active .side-subdot {
  background: var(--brand);
  box-shadow: 0 0 0 4px rgba(28, 39, 201, .08);
}

.app-body.is-collapsed .sidebar .side-chevron,
.app-body.is-collapsed .sidebar .nav-sub {
  display: none;
}

/* ============ 抗遗忘复习：校园感、轻量、松弛 ============ */
.review-kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.review-kpi {
  position: relative;
  overflow: hidden;
  min-height: 142px;
  padding: 20px 21px;
  border: 1px solid #ebeff6;
  border-radius: 18px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 12px 34px rgba(31, 41, 55, .055);
}

.review-kpi::after {
  content: "";
  position: absolute;
  right: -42px;
  bottom: -58px;
  width: 105px;
  height: 105px;
  border-radius: 50%;
  background: rgba(57, 75, 255, .05);
}

.review-kpi.accent {
  border-color: rgba(28, 39, 201, .12);
  background:
    radial-gradient(circle at 96% 0%, rgba(100, 119, 255, .12), transparent 42%),
    linear-gradient(145deg, #f9faff, #fff);
}

.review-kpi-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #6e778b;
  font-size: 11px;
  font-weight: 700;
}

.review-kpi-top i {
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 9px;
  font-style: normal;
  font-weight: 800;
}

.review-kpi-top i.soft {
  background: #f2f4f8;
  color: #7d8698;
}

.review-kpi-top i.success {
  background: var(--ok-soft);
  color: #0d8a5b;
}

.review-kpi > b {
  display: inline-block;
  margin-top: 14px;
  color: #202940;
  font-size: 35px;
  line-height: 1;
  letter-spacing: -.05em;
}

.review-kpi > small {
  margin-left: 4px;
  color: #949baa;
  font-size: 11px;
  font-weight: 700;
}

.review-kpi > p {
  margin: 9px 0 0;
  color: #9aa1b0;
  font-size: 10px;
}

.review-section {
  margin-bottom: 28px;
}

.review-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin: 0 2px 14px;
}

.review-section-head > div > span {
  display: block;
  margin-bottom: 4px;
  color: var(--brand);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .16em;
}

.review-section-head h2 {
  margin: 0;
  color: #293247;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -.02em;
}

.review-section-head em {
  padding: 5px 10px;
  border: 1px solid #e7ebf3;
  border-radius: 999px;
  background: rgba(255, 255, 255, .8);
  color: #7d8698;
  font-size: 9px;
  font-style: normal;
  font-weight: 700;
}

.review-date-group + .review-date-group {
  margin-top: 17px;
}

.review-date-head {
  min-height: 0;
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0 0 10px;
  padding: 0 2px 9px;
  border: 0;
  border-bottom: 1px solid #e5e7eb;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.review-date-cal {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  align-content: center;
  flex: none;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand);
}

.review-date-cal b {
  color: var(--brand);
  font-size: 16px;
  line-height: 1;
}

.review-date-cal small {
  margin-top: 3px;
  color: #7480a1;
  font-size: 8px;
}

.review-date-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.review-date-copy b {
  color: #35405a;
  font-size: 12px;
  font-weight: 800;
}

.review-date-copy span {
  color: #98a0b0;
  font-size: 9px;
}

.review-date-head > em {
  margin-left: auto;
  padding: 4px 8px;
  border: 1px solid #e7ebf3;
  border-radius: 999px;
  background: #fff;
  color: #7d8698;
  font-size: 9px;
  font-style: normal;
  font-weight: 700;
}

.review-date-head.today .review-date-cal {
  background: linear-gradient(145deg, #3045f0, var(--brand));
  color: #fff;
  box-shadow: 0 8px 18px rgba(28, 39, 201, .18);
}

.review-date-head.today .review-date-cal b,
.review-date-head.today .review-date-cal small {
  color: #fff;
}

.review-date-head.completed {
  border-bottom-color: #dfe5ee;
  background: transparent;
  box-shadow: none;
}

.review-date-head.completed .review-date-cal {
  background: var(--ok-soft);
  color: #0d8a5b;
}

.review-date-head.completed .review-date-cal b,
.review-date-head.completed .review-date-cal small {
  color: #0d8a5b;
}

.review-card-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.review-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 104px;
  padding: 17px 18px;
  border: 1px solid #ebeff6;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(31, 41, 55, .045);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.review-item:hover {
  transform: translateY(-2px);
  border-color: rgba(28, 39, 201, .12);
  box-shadow: 0 16px 36px rgba(28, 39, 201, .08);
}

.review-item-main {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.review-avatar {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 11px;
  background: #f0f3ff;
  color: var(--brand);
  font-size: 13px;
  font-weight: 800;
}

.review-item-copy {
  min-width: 0;
}

.review-item-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}

.review-item-title b {
  color: #293247;
  font-size: 13px;
  font-weight: 800;
}

.review-item-copy > p {
  margin: 5px 0 0;
  color: #7d8698;
  font-size: 10px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.review-item-meta {
  margin-top: 6px;
  color: #a0a7b5;
  font-size: 9px;
}

.review-state-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 700;
}

.review-state-pill.ready {
  background: #fff5e5;
  color: #b97512;
}

.review-state-pill.done {
  background: var(--ok-soft);
  color: #0d8a5b;
}

.review-state-pill.later {
  background: #f2f4f8;
  color: #7d8698;
}

.review-item-side {
  flex: none;
}

.review-start-btn {
  min-height: 34px;
  padding: 0 13px;
  font-size: 10px;
}

.review-result {
  display: grid;
  gap: 5px;
  justify-items: end;
}

.review-result span {
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 700;
  white-space: nowrap;
}

.review-result .ok {
  background: var(--ok-soft);
  color: #0d8a5b;
}

.review-result .bad {
  background: var(--bad-soft);
  color: var(--bad);
}

.review-empty-card {
  display: grid;
  gap: 5px;
  padding: 22px;
  border: 1px dashed #dfe4ee;
  border-radius: 16px;
  background: rgba(255, 255, 255, .64);
  text-align: center;
}

.review-empty-card b {
  color: #5d677b;
  font-size: 12px;
}

.review-empty-card span {
  color: #9aa1b0;
  font-size: 9px;
}

@media (max-width: 980px) {
  .review-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .review-card-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .review-kpi-grid {
    grid-template-columns: 1fr;
  }
  .review-item {
    align-items: flex-start;
    flex-direction: column;
  }
  .review-item-side,
  .review-result {
    width: 100%;
    justify-items: start;
  }
  .review-start-btn {
    width: 100%;
  }
}

/* ============ 单词识记：手风琴卡片与固定操作栏 ============ */
.study-page {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding-bottom: 118px;
}

.study-page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.study-page-head > div {
  min-width: 0;
}

.study-kicker {
  display: block;
  margin-bottom: 5px;
  color: var(--brand);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .16em;
}

.study-page-head h1 {
  margin: 0;
  color: #202940;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -.015em;
}

.study-page-head p {
  margin: 7px 0 0;
  color: #8d95a5;
  font-size: 11px;
}

.study-progress {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 13px;
  padding: 11px 15px;
  border: 1px solid #ebeff6;
  border-radius: 14px;
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 8px 22px rgba(31, 41, 55, .035);
}

.study-progress > span {
  flex: none;
  color: #7d8698;
  font-size: 10px;
  font-weight: 700;
}

.study-progress > b {
  flex: none;
  color: #35405a;
  font-size: 11px;
}

.study-progress > i {
  flex: 1;
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf0f6;
}

.study-progress > i > em {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  transition: width .24s ease;
}

.study-accordion {
  display: grid;
  gap: 10px;
}

.study-accordion-card {
  overflow: hidden;
  border: 1px solid #e9edf4;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(31, 41, 55, .045);
  transition: border-color .18s ease, box-shadow .18s ease;
}

.study-accordion-card.is-open {
  border-color: rgba(28, 39, 201, .16);
  box-shadow: 0 16px 38px rgba(28, 39, 201, .085);
}

.study-accordion-card.is-active {
  border-color: rgba(28, 39, 201, .18);
}

.study-accordion-card.marked-known {
  border-color: rgba(16, 185, 129, .2);
}

.study-accordion-card.marked-unknown {
  border-color: rgba(239, 68, 68, .19);
}

.study-card-head {
  min-height: 76px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 42px auto;
  align-items: center;
  gap: 13px;
  padding: 13px 15px;
  cursor: pointer;
}

.study-card-head:hover {
  background: #fbfcff;
}

.study-order {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: #f1f3ff;
  color: var(--brand);
  font-size: 11px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.study-word-main {
  min-width: 0;
}

.study-word-line {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
}

.study-word-line > b {
  color: #202940;
  font-family: "Times New Roman", Times, serif;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: .2px;
  overflow-wrap: anywhere;
}

.study-phonetic {
  color: #7d8698;
  font-family: var(--font-phonetic);
  font-size: 12px;
}

.study-word-meaning {
  display: none;
  margin-top: 4px;
  color: #8b93a3;
  font-family: var(--font-cn-serif);
  font-size: 12px;
  line-height: 1.5;
}

.study-accordion-card.is-reveal .study-word-meaning {
  display: block;
  animation: studyMeaningIn .18s ease both;
}

@keyframes studyMeaningIn {
  from { opacity: 0; transform: translateY(-2px); }
  to { opacity: 1; transform: none; }
}

.study-audio-btn {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid #e8ecf4;
  border-radius: 11px;
  background: #fff;
  color: #7480a1;
  cursor: pointer;
  transition: .16s ease;
}

.study-audio-btn svg {
  width: 18px;
  height: 18px;
}

.study-audio-btn:hover,
.study-audio-btn.is-speaking {
  border-color: rgba(28, 39, 201, .2);
  background: var(--brand-soft);
  color: var(--brand);
}

.study-audio-btn.is-speaking {
  animation: studySoundPulse .5s ease;
}

@keyframes studySoundPulse {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(28, 39, 201, .18); }
  55% { transform: scale(1.06); box-shadow: 0 0 0 7px rgba(28, 39, 201, 0); }
  100% { transform: scale(1); }
}

.study-expand-btn {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 11px;
  background: transparent;
  cursor: pointer;
}

.study-expand-btn:hover {
  border-color: #e8ecf4;
  background: #f8f9fc;
}

.study-chevron {
  width: 9px;
  height: 9px;
  margin-bottom: 4px;
  border-right: 2px solid #8b93a3;
  border-bottom: 2px solid #8b93a3;
  transform: rotate(45deg);
  transition: transform .2s ease;
}

.study-chevron.is-open {
  margin-bottom: -4px;
  transform: rotate(225deg);
}

.study-test-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.study-test-btn {
  width: 46px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1.5px solid #e5e9f1;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  opacity: .72;
  transition: .15s ease;
}

.study-test-btn svg {
  width: 23px;
  height: 23px;
}

.study-test-btn.known {
  color: var(--ok);
}

.study-test-btn.unknown {
  color: var(--bad);
}

.study-test-btn:hover,
.study-test-btn.is-active {
  opacity: 1;
  border-color: currentColor;
}

.study-test-btn.known.is-active {
  background: var(--ok-soft);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, .1);
}

.study-test-btn.unknown.is-active {
  background: var(--bad-soft);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, .09);
}

.study-expanded {
  padding: 0 17px 18px;
  border-top: 1px solid #f0f2f6;
  animation: studyExpand .22s ease both;
}

@keyframes studyExpand {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: none; }
}

.study-expanded-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 0;
}

.study-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}

.study-tabs::-webkit-scrollbar {
  display: none;
}

.study-tab {
  min-height: 30px;
  flex: none;
  padding: 0 12px;
  border: 1px solid #e8ecf4;
  border-radius: 999px;
  background: #fff;
  color: #7d8698;
  font-size: 9px;
  font-weight: 700;
  cursor: pointer;
}

.study-tab.is-active {
  border-color: transparent;
  background: var(--brand);
  color: #fff;
  box-shadow: 0 7px 15px rgba(28, 39, 201, .16);
}

.study-font-tools {
  display: flex;
  flex: none;
  gap: 5px;
}

.study-font-tools button {
  min-width: 34px;
  height: 30px;
  border: 1px solid #e8ecf4;
  border-radius: 10px;
  background: #fff;
  color: #737d90;
  font-size: 9px;
  font-weight: 800;
  cursor: pointer;
}

.study-tab-content {
  padding: 15px;
  border-radius: 14px;
  background: #f8f9fc;
  color: #4c566b;
  line-height: 1.7;
}

.study-tab-content mark {
  padding: 1px 3px;
  border-radius: 4px;
  background: #e6eaff;
  color: var(--brand);
  font-weight: 800;
}

.study-example-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 14px;
  border: 1px solid #e9edf4;
  border-radius: 13px;
  background: #fff;
}

.study-example-row + .study-example-row {
  margin-top: 9px;
}

.study-example-copy {
  min-width: 0;
}

.study-example-copy p {
  margin: 0;
  color: #293247;
  font-family: "Times New Roman", Times, serif;
  font-size: 1em;
}

.study-example-copy small {
  display: block;
  margin-top: 6px;
  color: #7d8698;
  font-family: var(--font-cn-serif);
  font-size: .82em;
}

.study-example-tools {
  display: flex;
  flex: none;
  gap: 5px;
}

.study-mini-btn {
  min-height: 28px;
  padding: 0 9px;
  border: 1px solid #e8ecf4;
  border-radius: 999px;
  background: #fff;
  color: #737d90;
  font-size: 9px;
  font-weight: 700;
  cursor: pointer;
}

.study-mini-listen {
  color: var(--brand);
}

.study-phrase-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.study-phrase-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 13px;
  border: 1px solid #e9edf4;
  border-radius: 12px;
  background: #fff;
}

.study-phrase-card b {
  display: block;
  color: #35405a;
  font-family: "Times New Roman", Times, serif;
  font-size: .96em;
}

.study-phrase-card small {
  display: block;
  margin-top: 4px;
  color: #8d95a5;
  font-size: .78em;
}

.study-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.study-form-row {
  display: grid;
  grid-template-columns: minmax(72px, .7fr) minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  border: 1px solid #e9edf4;
  border-radius: 11px;
  background: #fff;
}

.study-form-row span {
  color: #8d95a5;
  font-size: .78em;
}

.study-form-row b {
  color: #35405a;
  font-family: "Times New Roman", Times, serif;
  font-size: .9em;
  overflow-wrap: anywhere;
}

.study-derived-list {
  display: grid;
  gap: 8px;
}

.study-derived-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 12px;
  border: 1px solid #e9edf4;
  border-radius: 11px;
  background: #fff;
}

.study-derived-row b {
  color: #35405a;
  font-family: "Times New Roman", Times, serif;
  font-size: 1.05em;
}

.study-derived-row em {
  margin-left: 7px;
  color: #7d8698;
  font-family: var(--font-phonetic);
  font-size: .78em;
  font-style: normal;
}

.study-derived-row small {
  display: block;
  margin-top: 4px;
  color: #8d95a5;
  font-size: .78em;
}

.study-phonics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.study-sound-block {
  min-width: 54px;
  padding: 9px 10px 8px;
  border-radius: 11px;
  text-align: center;
}

.study-sound-block b {
  display: block;
  color: #293247;
  font-family: "Times New Roman", Times, serif;
  font-size: 17px;
}

.study-sound-block small {
  display: block;
  margin-top: 3px;
  color: #697287;
  font-family: var(--font-phonetic);
  font-size: 10px;
}

.study-sound-block.sound-0 { background: #eaf0ff; }
.study-sound-block.sound-1 { background: #fff3df; }
.study-sound-block.sound-2 { background: #e8faf2; }
.study-sound-block.sound-3 { background: #fdecef; }

.study-mnemonic,
.study-content-empty {
  padding: 15px;
  border: 1px dashed #dfe4ee;
  border-radius: 12px;
  background: #fff;
  color: #7d8698;
}

.study-mnemonic b {
  color: var(--brand);
  font-size: .86em;
}

.study-mnemonic p {
  margin: 6px 0 0;
  color: #596377;
  font-family: var(--font-cn-serif);
  font-size: .95em;
}

.study-memory-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 11px;
}

.study-memory-steps span {
  padding: 4px 8px;
  border: 1px solid #dfe4ff;
  border-radius: 999px;
  background: #f3f5ff;
  color: var(--brand);
  font-family: inherit;
  font-size: 9px;
  font-weight: 700;
}

.study-note-input {
  width: 100%;
  min-height: 110px;
  resize: vertical;
  padding: 13px 14px;
  border: 1px solid #e5e9f1;
  border-radius: 12px;
  outline: 0;
  background: #fff;
  color: #35405a;
  font-family: var(--font-cn-serif);
  line-height: 1.75;
}

.study-note-input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(28, 39, 201, .07);
}

.study-expanded.is-simple {
  padding-top: 14px;
}

.study-simple-meaning {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 14px;
  border-radius: 12px;
  background: #f8f9fc;
}

.study-simple-meaning span {
  color: #8d95a5;
  font-size: 10px;
}

.study-simple-meaning b {
  color: #35405a;
  font-family: var(--font-cn-serif);
  font-size: 15px;
}

.study-bottom-bar {
  position: fixed;
  left: 226px;
  right: 0;
  bottom: 0;
  z-index: 36;
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px clamp(18px, 3vw, 38px);
  border-top: 1px solid rgba(226, 231, 240, .9);
  background: rgba(255, 255, 255, .93);
  box-shadow: 0 -12px 32px rgba(31, 41, 55, .07);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.app-body.is-collapsed .study-bottom-bar {
  left: 76px;
}

.study-mode-group,
.study-main-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

.study-mode-group {
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.study-mode-group::-webkit-scrollbar {
  display: none;
}

.study-mode-btn {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
  padding: 0 11px;
  border: 1px solid #e7ebf3;
  border-radius: 999px;
  background: #fff;
  color: #7d8698;
  font-size: 9px;
  font-weight: 700;
  cursor: pointer;
}

.study-mode-btn i {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: #f2f4f8;
  color: #7d8698;
  font-size: 8px;
  font-style: normal;
}

.study-mode-btn.is-active {
  border-color: rgba(28, 39, 201, .16);
  background: var(--brand-soft);
  color: var(--brand);
}

.study-mode-btn.is-active i {
  background: var(--brand);
  color: #fff;
}

.study-boost-btn,
.study-next-btn {
  min-height: 42px;
  flex: none;
  padding: 0 17px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}

.study-boost-btn {
  border: 1px solid #f4dea9;
  background: #fff7e5;
  color: #a66b08;
}

.study-next-btn {
  border: 0;
  background: linear-gradient(180deg, #3347f1, var(--brand));
  color: #fff;
  box-shadow: 0 10px 22px rgba(28, 39, 201, .2);
}

.study-next-btn span {
  margin-left: 4px;
  font-size: 13px;
}

@media (max-width: 980px) {
  .study-bottom-bar {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    min-height: 0;
    padding-top: 10px;
    padding-bottom: 10px;
  }
  .study-mode-group,
  .study-main-actions {
    width: 100%;
  }
  .study-main-actions {
    justify-content: flex-end;
  }
  .study-page {
    padding-bottom: 142px;
  }
}

@media (max-width: 720px) {
  .study-page {
    padding-bottom: 164px;
  }
  .study-bottom-bar {
    left: 0;
  }
  .study-page-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .study-card-head {
    grid-template-columns: 36px minmax(0, 1fr) 38px auto;
    gap: 9px;
    padding: 12px;
  }
  .study-order {
    width: 34px;
    height: 34px;
  }
  .study-word-line > b {
    font-size: 21px;
  }
  .study-audio-btn {
    width: 35px;
    height: 35px;
  }
  .study-test-actions {
    gap: 5px;
  }
  .study-test-btn {
    width: 38px;
    height: 36px;
  }
  .study-expanded {
    padding-left: 12px;
    padding-right: 12px;
  }
  .study-expanded-top {
    align-items: flex-start;
    flex-direction: column;
  }
  .study-font-tools {
    align-self: flex-end;
  }
  .study-phrase-grid,
  .study-form-grid {
    grid-template-columns: 1fr;
  }
  .study-example-row {
    flex-direction: column;
  }
  .study-main-actions .study-boost-btn,
  .study-main-actions .study-next-btn {
    flex: 1;
  }
}

/* ============ 柔和卡片主题（2026-11-27） ============ */
:root {
  --brand: #6f61d5;
  --brand-2: #a38de8;
  --brand-soft: #f1edff;
  --bg: #f8f8fc;
  --line: #ebe8f3;
  --line-soft: #f4f2f8;
  --ok: #2a9b78;
  --ok-soft: #eaf7f2;
  --warn: #d18a34;
  --shadow: 0 1px 2px rgba(31, 38, 66, .035), 0 10px 28px rgba(74, 65, 128, .065);
  --shadow-soft: 0 1px 2px rgba(31, 38, 66, .032), 0 8px 24px rgba(74, 65, 128, .055);
}

body {
  background:
    radial-gradient(circle at 12% 0%, rgba(220, 211, 255, .4), transparent 28rem),
    radial-gradient(circle at 92% 8%, rgba(214, 239, 250, .44), transparent 24rem),
    linear-gradient(145deg, #faf9fd 0%, #f7f8fc 54%, #f8fafc 100%);
}
.app-shell { background: transparent; }
.app-header {
  background: linear-gradient(112deg, #5d54a8 0%, #7768c8 48%, #a895e4 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 8px 24px rgba(87, 73, 165, .18);
}
.sidebar {
  border-right-color: rgba(229, 226, 241, .9);
  background: rgba(254, 253, 255, .88);
  box-shadow: 10px 0 28px rgba(91, 78, 145, .035);
}
.sidebar .tab.is-active {
  background: linear-gradient(90deg, #f0ecff 0%, #f8f5ff 100%);
}
.card,
.panel,
.kpi,
.tbl,
.data-table,
.rec-table,
.library-card,
.review-item,
.coach-pager {
  border-color: rgba(232, 229, 241, .92);
  box-shadow: var(--shadow-soft);
}
.card,
.library-card,
.review-item {
  border-radius: 16px;
  background: rgba(255, 255, 255, .95);
}
.panel {
  border-radius: 18px;
  background: rgba(255, 255, 255, .9);
}
.kpi {
  border-radius: 18px;
  background: linear-gradient(145deg, #fff 0%, #fbf9ff 100%);
}
.kpi:nth-child(2) { background: linear-gradient(145deg, #fff 0%, #fff8f2 100%); }
.kpi:nth-child(3) { background: linear-gradient(145deg, #fff 0%, #f3f9ff 100%); }
.kpi-ico { background: #f0ecff; }
.kpi:nth-child(2) .kpi-ico { background: #fff0e5; color: #b66c33; }
.kpi:nth-child(3) .kpi-ico { background: #eaf5ff; color: #4c7ba6; }
.page-head h1::before { background: linear-gradient(180deg, #7b6bd8, #b6a3ee); }
.tbl-head,
.data-table thead th,
.rec-table thead th { background: #fbfaff; }
.btn-primary {
  background: linear-gradient(180deg, #8374df 0%, var(--brand) 58%, #5d51bd 100%);
  box-shadow: 0 9px 20px rgba(94, 81, 181, .16), inset 0 1px 0 rgba(255, 255, 255, .2);
}
.btn-ghost { border-color: var(--line); background: rgba(255, 255, 255, .9); }
.review-date-head {
  border-color: #e7e2f5;
  background: linear-gradient(105deg, #fbfaff 0%, #f5f1ff 100%);
}
.review-date-head.completed {
  border-color: #efe3c8;
  border-left-color: #d8b264;
  background: linear-gradient(105deg, #fffdf7 0%, #fff5dc 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .95), 0 2px 8px rgba(178, 133, 45, .055);
}
.review-date-head.completed .review-date-cal {
  background: #fff1cf;
  color: #9a6a18;
}
.review-date-head.completed .review-date-cal b,
.review-date-head.completed .review-date-cal small,
.review-date-head.completed b { color: #936719; }
.review-state-pill.done { background: #f1eefe; color: #6556ba; }
.review-result .ok { background: #f0f8f5; color: #3d7964; }
.course-access-student {
  border-color: #e8e3f5;
  background: linear-gradient(135deg, #fff7f1 0%, #f4efff 56%, #eef8ff 100%);
}
.fullscreen-btn svg { width: 17px; height: 17px; }
.fullscreen-btn[aria-pressed="true"] {
  background: rgba(255, 255, 255, .26);
  border-color: rgba(255, 255, 255, .5);
}
:fullscreen .app-shell { height: 100vh; }

.today-focus {
  border: 1px solid #ece5f4;
  background:
    radial-gradient(circle at 91% 4%, rgba(255, 216, 195, .76), transparent 38%),
    linear-gradient(135deg, #fff8f1 0%, #f2eeff 55%, #edf8ff 100%);
  color: var(--text);
  box-shadow: 0 12px 28px rgba(91, 78, 145, .09);
}
.today-focus span {
  color: #7c7890;
}
.today-focus b {
  color: var(--brand);
}
.today-focus small {
  color: #7c7890;
}

.report-hero {
  color: var(--text);
  border: 1px solid #ece5f4;
  background:
    radial-gradient(circle at 88% 2%, rgba(255, 216, 195, .76), transparent 36%),
    linear-gradient(135deg, #fff8f1 0%, #f2eeff 56%, #edf8ff 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .94);
}
.report-hero::after {
  border-color: rgba(113, 96, 173, .12);
}
.report-close {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #716b84;
  background: rgba(255, 255, 255, .68);
}
.report-kicker {
  color: #6b6482;
  opacity: 1;
}
.report-hero-main h2 {
  color: var(--text);
}
.report-hero-sub {
  color: #5f5a72;
  opacity: 1;
}
.report-hero-meta {
  color: #8b869b;
  opacity: 1;
}
.report-score {
  background: linear-gradient(145deg, rgba(255, 255, 255, .92), rgba(244, 239, 255, .86));
  border-color: #e7def7;
  box-shadow: 0 10px 24px rgba(91, 78, 145, .08), inset 0 1px 0 #fff;
}
.report-score b {
  color: var(--brand);
}
.report-score span {
  color: #7c7591;
  opacity: 1;
}

/* 课表当前日期块：跟随柔和卡片主题，不再使用旧蓝色 */
.days .pill {
  background: linear-gradient(135deg, #6e62bd 0%, #9380d8 54%, #c59fbd 100%);
  box-shadow:
    0 10px 22px rgba(93, 82, 147, .2),
    inset 0 1px 0 rgba(255, 255, 255, .22);
}

/* 单词识记底部“下一步：听音识义”统一为柔和马卡龙按钮 */
.study-next-btn {
  background: linear-gradient(135deg, #6e62bd 0%, #9380d8 54%, #c59fbd 100%);
  box-shadow:
    0 10px 22px rgba(93, 82, 147, .16),
    inset 0 1px 0 rgba(255, 255, 255, .22);
}

/* 教练端登录页：统一柔和马卡龙主题，不再使用旧宝蓝 */
.login-gate {
  background:
    radial-gradient(circle at 9% 12%, rgba(211, 201, 255, .48), transparent 29rem),
    radial-gradient(circle at 88% 10%, rgba(255, 220, 197, .42), transparent 25rem),
    linear-gradient(145deg, #fbf9ff 0%, #f8f7fc 54%, #fff9f4 100%);
}
.login-gate::before {
  background-image: radial-gradient(rgba(111, 97, 213, .14) .55px, transparent .55px);
}
.preview-badge {
  border-color: rgba(111, 97, 213, .16);
  color: #675ab2;
  box-shadow: 0 8px 24px rgba(93, 82, 147, .07);
}
.login-intro h2 {
  color: #29263d;
}
.login-intro h2 span {
  color: #6f61c8;
}
.login-intro > p {
  color: #756f83;
}
.intro-points {
  color: #656070;
}
.intro-points i {
  background: #f2edff;
  color: #6f61c8;
  box-shadow: 0 7px 18px rgba(93, 82, 147, .07);
}
.card-halo {
  background: rgba(111, 97, 213, .13);
}
.login-card {
  border-color: rgba(238, 231, 247, .94);
  box-shadow:
    0 34px 90px rgba(74, 65, 128, .11),
    0 12px 32px rgba(111, 97, 213, .07);
}
.login-brand-mark {
  background: linear-gradient(145deg, #6e62bd 0%, #9380d8 54%, #c59fbd 100%);
  box-shadow:
    0 12px 26px rgba(93, 82, 147, .2),
    inset 0 1px 0 rgba(255, 255, 255, .22);
}
.login-card .field label {
  color: #625d70;
}
.login-input-shell {
  background: #faf8fd;
  color: #948ca4;
}
.login-input-shell:focus-within {
  border-color: #8d7bd0;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(111, 97, 213, .1);
  color: #6f61c8;
}
.login-submit {
  background: linear-gradient(135deg, #6e62bd 0%, #9380d8 54%, #c59fbd 100%);
  box-shadow:
    0 10px 22px rgba(93, 82, 147, .18),
    inset 0 1px 0 rgba(255, 255, 255, .22);
}
.login-check {
  border-color: #d9d2e9;
  background: #fcfbff;
}
.login-remember input:checked + .login-check {
  border-color: #7b6bc4;
  background: #7b6bc4;
}
.login-footer {
  color: #9a93a6;
}

