/* ============================================================
   思贝特英语 · 机构后台（阶段一）
   设计语言: 暖纸底 + 深翡翠主色 + 琥珀强调 (少儿教育 × AI科技)
   品牌适配: 沿用绿色看板, 不照搬 Logo 的品牌蓝; 思贝特狮子徽章放在白色圆底上嵌入顶栏与登录页
   ============================================================ */
/* 共用设计变量由 design/tokens.json 生成到 tokens.css。 */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { height: 100%; }
body {
  font-family: var(--font);
  background:
    radial-gradient(circle at 15% 10%, rgba(11, 122, 94, .08), transparent 42%),
    radial-gradient(circle at 90% 85%, rgba(245, 158, 27, .10), transparent 45%),
    var(--bg);
  color: var(--ink);
  min-height: 100%;
}

/* ---------- 桌面: 居中手机框 ---------- */
#stage { display: flex; justify-content: center; min-height: 100vh; }
#app {
  width: 100%; max-width: 430px; min-height: 100vh;
  background: var(--bg);
  display: flex; flex-direction: column;
  position: relative;
}
@media (min-width: 520px) {
  #app { min-height: 100vh; box-shadow: -1px 0 0 var(--line), 1px 0 0 var(--line), 0 0 60px rgba(22, 38, 31,.14); }
}

/* 机构端用宽屏侧栏；家长/老师仍保留手机宽度，不改模块顺序与配色。
   折叠按钮默认隐藏，只在下方 ≥900px 桌面侧栏里出现。 */
#tabbar .nav-fold { display: none; }
@media (min-width: 900px) {
  #app.is-admin {
    max-width: 1280px; display: grid;
    grid-template-columns: 208px minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    grid-template-areas: "top top" "nav view";
    transition: grid-template-columns .22s ease;
  }
  #app.is-admin.nav-min { grid-template-columns: 64px minmax(0, 1fr); }
  #app.is-admin #topbar { grid-area: top; border-radius: 0; }
  #app.is-admin #view { grid-area: view; min-width: 0; padding: 24px 28px; }
  #app.is-admin #tabbar {
    grid-area: nav; position: sticky; top: 80px; bottom: auto; align-self: start;
    height: calc(100vh - 80px); flex-direction: column; justify-content: flex-start;
    gap: 4px; padding: 16px 12px; border-top: 0; border-right: 1px solid var(--line);
    /* 不裁 overflow：当前页涟漪要能荡出侧栏边界 */
  }
  #app.is-admin #tabbar button {
    flex: none; flex-direction: row; justify-content: flex-start; gap: 10px;
    padding: 10px 12px; border-radius: 12px; font-size: 14px;
  }
  #app.is-admin #tabbar button:not(.on):not(.nav-fold):hover { background: var(--tab-soft, var(--brand-soft)); }
  /* 折叠态：收成图标轨，文字藏掉，悬停用 title 提示 */
  #app.is-admin.nav-min #tabbar { padding: 16px 8px; }
  #app.is-admin.nav-min #tabbar button { justify-content: center; gap: 0; padding: 10px 0; }
  #app.is-admin.nav-min #tabbar button .lb { display: none; }
  #tabbar .nav-fold {
    display: block; margin-top: auto; flex: none; width: 100%; padding: 9px 0;
    border: 1px solid #BBDCCF; border-radius: 12px; background: var(--brand-soft);
    color: var(--brand-deep); font-size: 15px; line-height: 1; cursor: pointer;
  }
  #tabbar .nav-fold:hover { background: var(--brand-soft); color: var(--brand-deep); }
  #app.is-admin.nav-min #tabbar .nav-fold { width: 40px; padding: 9px 0; }
  #app.is-admin .tiles { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
  body.admin-layout .sheet { max-width: 640px; }
}

/* ---------- 顶栏 ---------- */
#topbar {
  padding: calc(14px + env(safe-area-inset-top)) 18px 14px;
  background: linear-gradient(135deg, var(--brand-deep), var(--brand) 68%, #12996f);
  color: #fff;
  border-radius: 0 0 26px 26px;
  position: sticky; top: 0; z-index: 20;
}
#topbar::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.16) 1px, transparent 1.4px);
  background-size: 16px 16px;
  mask-image: linear-gradient(115deg, transparent 55%, #000);
}
.brand { display: flex; align-items: center; gap: 10px; }
.logo {
  width: 40px; height: 40px; border-radius: 50%; flex: none;
  object-fit: cover;
}
.brand-txt b { font-size: 17px; letter-spacing: .3px; display: block; line-height: 1.2; }
.brand-txt b span { color: #FFD98A; }
.brand-txt em { font-style: normal; font-size: 10.5px; opacity: .82; letter-spacing: 1px; }

.bar-row { display: flex; align-items: center; gap: 10px; }
.gear {
  margin-left: auto; width: 37px; height: 37px; flex: none;
  border: 1px solid rgba(255,255,255,.28); border-radius: 12px;
  background: rgba(255,255,255,.14); color: #fff;
  font-size: 17px; cursor: pointer; display: grid; place-items: center;
  transition: transform .15s;
}
.gear:active { transform: rotate(30deg); }
.head-ops { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.head-ops .gear { margin-left: 0; }

/* ---------- 通知中心 ---------- */
.bell { position: relative; }
.bell i {
  position: absolute; top: -5px; right: -5px; min-width: 17px; height: 17px; padding: 0 4px;
  border-radius: 999px; background: var(--danger); color: #fff;
  font-size: 10px; font-style: normal; font-weight: 700;
  display: none; place-items: center; box-shadow: 0 0 0 2px rgba(255,255,255,.35);
}
.bell.has i { display: grid; }
.bell:active { transform: none; }
.nt-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.nt-head h3 { display: flex; align-items: baseline; gap: 8px; }
.nt-head .btn { margin-left: auto; }
.nt-list { display: flex; flex-direction: column; gap: 8px; }
.nt {
  display: flex; align-items: flex-start; gap: 10px; width: 100%; text-align: left;
  background: #fff; border: 1.5px solid var(--line); border-radius: 14px; padding: 12px 13px;
  font-family: var(--font); cursor: pointer; transition: border-color .15s, transform .1s;
}
.nt:active { transform: scale(.99); }
.nt:hover { border-color: var(--brand); }
.nt.read { background: #F7FAF8; opacity: .72; }
.nt .nt-ic {
  flex: none; width: 30px; height: 30px; border-radius: 10px;
  background: var(--brand-soft); display: grid; place-items: center; font-size: 15px;
}
.nt b { font-size: 13.5px; display: flex; align-items: baseline; gap: 8px; }
.nt b em { font-style: normal; font-size: 10.5px; font-weight: 600; color: var(--muted); margin-left: auto; flex: none; }
.nt p { font-size: 12px; color: var(--muted); line-height: 1.55; margin-top: 3px; }
.nt .nt-dot { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-top: 6px; }

/* ---------- 设置底部弹层 ---------- */
.sheet-mask {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(10, 20, 16, .45);
  display: flex; align-items: flex-end; justify-content: center;
  animation: fade .2s ease both;
}
.sheet {
  width: 100%; max-width: 430px; max-height: 84vh; overflow-y: auto;
  background: var(--bg); border-radius: 24px 24px 0 0;
  padding: 10px 16px calc(22px + env(safe-area-inset-bottom));
  animation: up .28s cubic-bezier(.2, .9, .3, 1) both;
}
@keyframes up { from { transform: translateY(48px); opacity: 0; } to { transform: none; opacity: 1; } }
.sheet .grab { width: 40px; height: 4px; border-radius: 2px; background: #CBD6CF; margin: 4px auto 14px; }
.role-row {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  background: #fff; border: 1.5px solid var(--line); border-radius: 15px;
  padding: 13px 14px; margin-bottom: 9px; cursor: pointer; font-family: var(--font);
  transition: border-color .15s;
}
.role-row.on { border-color: var(--brand); background: var(--brand-soft); }
.role-row .r-ic {
  width: 42px; height: 42px; border-radius: 13px; flex: none;
  display: grid; place-items: center; font-size: 20px; background: #F0F4F1;
}
.role-row.on .r-ic { background: #fff; }
.role-row b { font-size: 14.5px; display: block; }
.role-row p { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.role-row .cur { margin-left: auto; font-size: 11px; font-weight: 700; color: var(--brand-deep); flex: none; }

/* ---------- 视图 ---------- */
#view { flex: 1; padding: 16px 16px 20px; }
.page-title { display: flex; align-items: baseline; justify-content: space-between; margin: 4px 2px 12px; }
.page-title h1 { font-size: 21px; font-weight: 800; letter-spacing: .3px; }
.page-title span { font-size: 11.5px; color: var(--muted); }

.card {
  background: var(--surface); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 16px; margin-bottom: 14px;
  border: 1px solid rgba(226, 233, 228, .7);
}
.card h3 { font-size: 14.5px; font-weight: 700; margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }
.card h3 .tag-ai {
  font-size: 9.5px; font-weight: 700; color: var(--brand-deep);
  background: var(--brand-soft); border-radius: 6px; padding: 2px 7px; letter-spacing: 1px;
}
.muted { color: var(--muted); font-size: 12px; line-height: 1.6; }

/* ---------- 徽章 / 芯片 ---------- */
.lv {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 999px;
}
.lv::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.lv-0, .lv-1, .lv-2, .lv-3, .lv-4 { color: var(--ink); background: var(--surface); border: 1px solid var(--brand); }
.lv-x { color: var(--muted); background: #EDF1EE; }

.chip {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 999px;
  background: var(--brand-soft); color: var(--brand-deep); margin: 3px 4px 0 0;
}
.chip.warn { background: var(--accent-soft); color: #92600A; }
.chip.info { background: var(--info-soft); color: var(--info); }
.chip.ok::before, .chip.warn::before { content: "✓"; font-size: 9px; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 0; border-radius: 13px; padding: 12px 18px;
  font-family: var(--font); font-size: 14px; font-weight: 700; cursor: pointer;
  background: var(--brand); color: #fff; width: 100%;
  box-shadow: 0 6px 16px rgba(11, 122, 94, .28);
  transition: transform .12s, box-shadow .12s;
}
.btn:active { transform: scale(.97); }
.btn.ghost { background: #fff; color: var(--brand-deep); border: 1.5px solid var(--brand); box-shadow: none; }
.btn.amber { background: var(--accent); box-shadow: 0 6px 16px rgba(245, 158, 27, .32); }
.btn.sm { width: auto; padding: 8px 14px; font-size: 12.5px; border-radius: 10px; }
.btn[disabled] { opacity: .5; pointer-events: none; }

/* ---------- 匹配度圆环 (签名元素) ---------- */
.ring {
  --p: 90; width: 62px; height: 62px; flex: none; border-radius: 50%;
  background: conic-gradient(var(--brand) calc(var(--p) * 1%), #E4EBE7 0);
  display: grid; place-items: center; position: relative;
}
.ring::before { content: ""; position: absolute; inset: 5px; background: #fff; border-radius: 50%; }
.ring b { position: relative; font-size: 15px; font-weight: 800; color: var(--brand-deep); }
.ring b i { font-style: normal; font-size: 8.5px; }
.ring.hot { background: conic-gradient(var(--accent) calc(var(--p) * 1%), #F2E8D5 0); }
.ring.hot b { color: #A96E07; }

/* ---------- 学员卡 ---------- */
.kid-head { display: flex; align-items: center; gap: 12px; }
.avatar {
  width: 52px; height: 52px; border-radius: 17px; flex: none;
  display: grid; place-items: center; color: #fff; font-size: 19px; font-weight: 700;
}
.kid-head .who b { font-size: 17px; }
.kid-head .who p { font-size: 12px; color: var(--muted); margin-top: 2px; }

/* ---------- 登录页: 像普通 App —— 一键登录 + 注册; 身份切换收进左上角 ⚙ ---------- */
#app.is-login #topbar { display: none; }
.login-page {
  position: relative; min-height: calc(100vh - 36px);
  display: flex; flex-direction: column;
}
.login-gear {
  position: absolute; top: 0; left: 0; width: 38px; height: 38px; border-radius: 12px;
  border: 1px solid var(--line); background: #fff; color: var(--muted);
  font-size: 18px; cursor: pointer; display: grid; place-items: center;
}
.login-gear:active { transform: scale(.94); }
.login-hero { text-align: center; padding: 72px 0 34px; }
.login-hero .logo {
  display: block; width: 96px; height: 96px; margin: 0 auto 16px;
  box-shadow: 0 12px 28px rgba(11, 122, 94,.28); border: 0;
}
.login-hero h1 { font-size: 26px; font-weight: 800; letter-spacing: .5px; }
.login-hero h1 span { color: var(--brand); }
.login-hero p { font-size: 13px; color: var(--muted); margin-top: 6px; letter-spacing: .3px; }
.login-main { display: flex; flex-direction: column; gap: 10px; }
.login-wx {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px; font-size: 16px; border-radius: 16px;
  background: #07C160; box-shadow: 0 10px 22px rgba(7, 193, 96, .28);
}
.login-wx .wx-ic { width: 22px; height: 22px; flex: none; }
.login-as { text-align: center; font-size: 11px; color: var(--muted); }
.login-reg {
  margin-top: 8px; padding: 13px; border-radius: 16px;
  border: 1.5px solid var(--line); background: #fff; cursor: pointer;
  font-family: var(--font); font-size: 13px; color: var(--muted);
}
.login-reg b { color: var(--brand-deep); font-weight: 700; }
.login-legal {
  margin-top: auto; padding-top: 28px; text-align: center;
  font-size: 10.5px; color: var(--muted); line-height: 1.7;
}
/* 演示身份浮层 */
.demo-roles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 12px; }
.demo-role {
  display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 9px 4px 8px;
  border: 1.5px solid var(--line); background: #fff; border-radius: 13px;
  font-family: var(--font); cursor: pointer;
}
.demo-role span { font-size: 18px; }
.demo-role b { font-size: 12.5px; }
.demo-role i { font-style: normal; font-size: 9.5px; color: var(--muted); }
.demo-role.on { border-color: var(--brand); background: var(--brand-soft); }
.demo-accts { display: flex; flex-direction: column; gap: 8px; }
.demo-accts .role-row { text-align: left; margin: 0; }
.demo-accts .role-row .avatar { width: 38px; height: 38px; border-radius: 12px; font-size: 15px; }

/* ---------- 老师匹配卡 ---------- */
.match { display: flex; gap: 13px; align-items: flex-start; }
.match .t-avatar {
  width: 46px; height: 46px; border-radius: 50%; flex: none;
  display: grid; place-items: center; font-weight: 700; font-size: 16px; color: #fff;
}
.match .info { flex: 1; min-width: 0; }
.match .info .row1 { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.match .info .row1 b { font-size: 15.5px; }
.match .info .row1 .kind { font-size: 10.5px; color: var(--muted); }
.match .meta { font-size: 12px; color: var(--muted); margin: 4px 0 2px; }
.match .when {
  display: inline-flex; align-items: center; gap: 6px; margin: 7px 0 4px;
  background: var(--accent-soft); color: #8F5B06; font-weight: 700;
  font-size: 12.5px; padding: 6px 12px; border-radius: 10px;
}
.match .ops { display: flex; gap: 8px; margin-top: 10px; }

/* ---------- 课表行 ---------- */
.lesson {
  display: flex; gap: 12px; align-items: center; padding: 12px 2px;
  border-bottom: 1px dashed var(--line);
}
.lesson-open {
  width: 100%; text-align: left; font: inherit; color: inherit; background: transparent;
  border: 0; cursor: pointer; border-radius: 12px;
}
.lesson-open:hover { background: #F2F8F4; }
.lesson-open:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.lesson-locked { cursor: default; }
.lesson:last-child { border-bottom: 0; }
/* 课表课行: 时段是主角 (与订课第③步的 slot-when 同一设计语言), 不再用仿头像方块装周几 */
.lesson .lsn-when { display: block; font-size: 15.5px; font-weight: 800; letter-spacing: .1px; color: var(--brand-deep); }
.lesson .lsn-ta { font-size: 12px; color: #33463F; margin-top: 2px; }
.lesson .body { flex: 1; min-width: 0; }
.lesson .body b { font-size: 14px; display: block; }
.lesson .body p { font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.lesson-lock { flex: none; font-size: 15px; }
.st {
  font-size: 10.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px; flex: none;
}
.st-up { background: var(--brand-soft); color: var(--brand-deep); }
.st-done { background: #EDF1EE; color: var(--muted); }
.st-miss { background: var(--danger-soft); color: var(--danger); }
.st-cancel { background: var(--bg); color: var(--muted); }
.st-attention { background: var(--danger-soft); color: var(--danger); }
.st-moved { background: var(--bg); color: var(--muted); }
.week-note { margin: 0 0 5px; }
.review-coming { margin-top: 16px; padding: 13px; border-radius: 12px; background: #F2F8F4; color: var(--muted); font-size: 13px; }

/* ---------- AI 补课方案卡 ---------- */
.mk { padding: 14px 0; border-top: 1px dashed var(--line); }
.mk:first-of-type { border-top: 0; padding-top: 4px; }
.mk .info .btn[disabled] { opacity: .55; }

/* ---------- 时间档位编辑器 (家长可上课时间 / 老师档期) ---------- */
.slot-editor .day { margin-bottom: 12px; }
.slot-editor .day .d-head {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px;
}
.slot-editor .day .d-head b { font-size: 13px; }
.slot-editor .times { display: flex; flex-wrap: wrap; gap: 6px; }
.t-chip {
  border: 1.5px solid var(--line); background: #fff; color: var(--muted);
  border-radius: 9px; padding: 6px 0; width: 62px; text-align: center;
  font-family: var(--font); font-size: 12px; font-weight: 600; cursor: pointer;
  transition: all .15s;
}
.t-chip.on { border-color: var(--brand); background: var(--brand); color: #fff; box-shadow: 0 3px 10px rgba(11, 122, 94,.3); }
.t-chip.locked {
  border-color: var(--accent); background: var(--accent-soft); color: #8F5B06;
  cursor: not-allowed; font-weight: 700;
}
.hint-bar {
  display: flex; gap: 14px; font-size: 11px; color: var(--muted); margin: 4px 2px 12px;
}
.hint-bar i { font-style: normal; display: inline-flex; align-items: center; gap: 5px; }
.hint-bar .dot { width: 10px; height: 10px; border-radius: 4px; display: inline-block; }

/* ---------- 测评 ---------- */
.q-progress { display: flex; gap: 4px; margin-bottom: 16px; }
.q-progress i { flex: 1; height: 5px; border-radius: 3px; background: var(--line); }
.q-progress i.done { background: var(--brand); }
.q-band { font-size: 10.5px; font-weight: 700; color: var(--accent); letter-spacing: 2px; margin-bottom: 6px; }
.q-text { font-size: 18px; font-weight: 700; line-height: 1.5; white-space: pre-line; margin-bottom: 18px; }
.q-opts { display: grid; gap: 10px; }
.q-opts button {
  border: 1.5px solid var(--line); background: #fff; border-radius: 14px;
  padding: 14px; font-family: var(--font); font-size: 14.5px; font-weight: 600; text-align: left;
  cursor: pointer; display: flex; align-items: center; gap: 10px; transition: all .15s;
}
.q-opts button:hover { border-color: var(--brand); }
.q-opts button em {
  font-style: normal; width: 26px; height: 26px; border-radius: 9px; flex: none;
  background: #F0F4F1; color: var(--muted); display: grid; place-items: center;
  font-size: 12px; font-weight: 700;
}
.dim-row { display: flex; align-items: center; gap: 10px; margin: 9px 0; }
.dim-row b { width: 64px; font-size: 12.5px; flex: none; }
.dim-row .bar { flex: 1; height: 8px; border-radius: 4px; background: #EDF1EE; overflow: hidden; }
.dim-row .bar i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--brand), #27AE84); }
.dim-row span { width: 38px; text-align: right; font-size: 11.5px; color: var(--muted); flex: none; }

.result-hero { text-align: center; padding: 8px 0 4px; }
.result-hero .big-lv {
  font-size: 44px; font-weight: 800; letter-spacing: 1px;
  background: linear-gradient(120deg, var(--brand-deep), var(--brand) 55%, var(--accent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.result-hero .cefr { font-size: 12.5px; color: var(--muted); margin-top: 2px; }

/* ---------- 指标瓦片 (后台/收入) ---------- */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.tile {
  background: var(--surface); border-radius: 15px; padding: 13px 15px;
  box-shadow: var(--shadow); border: 1px solid rgba(226,233,228,.7);
}
.tile b { font-size: 23px; font-weight: 800; letter-spacing: .3px; display: block; }
.tile b i { font-style: normal; font-size: 12px; font-weight: 600; color: var(--muted); margin-left: 2px; }
.tile span { font-size: 11px; color: var(--muted); }
.tile.hero { grid-column: span 2; background: linear-gradient(130deg, var(--brand-deep), var(--brand) 70%, #12996f); color: #fff; }
.tile.hero b, .tile.hero span { color: #fff; }
.tile.hero b i { color: rgba(255,255,255,.75); }

/* ---------- 运营看板 · 图表（2026-10-22，纯 SVG/CSS 零依赖） ---------- */
.dash-grid { display: grid; grid-template-columns: 1fr; gap: 14px; margin-bottom: 14px; }
@media (min-width: 900px) {
  #app.is-admin .dash-grid { grid-template-columns: 1fr 1fr; }
  #app.is-admin .dash-grid .span-2 { grid-column: span 2; }
}
.chart-svg { width: 100%; height: auto; display: block; }
.donut-wrap { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.donut-svg { width: 168px; height: 168px; flex: none; }
.legend { display: flex; flex-direction: column; gap: 9px; font-size: 12px; min-width: 120px; }
.legend .li { display: flex; align-items: center; gap: 8px; }
.legend .li b { margin-left: auto; font-size: 12.5px; }
.legend .dot { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.hbar-row { display: flex; align-items: center; gap: 10px; margin: 9px 0; }
.hbar-row b { width: 84px; font-size: 12.5px; flex: none; text-align: right; }
.hbar-row .bar { flex: 1; height: 12px; border-radius: 6px; background: #EDF1EE; overflow: hidden; position: relative; }
.hbar-row .bar i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--brand), #27AE84); }
.hbar-row .bar i.cap { position: absolute; top: 0; left: 0; background: rgba(11, 122, 94, .14); border-radius: 6px; }
.hbar-row em { width: 132px; text-align: right; font-size: 11px; color: var(--muted); font-style: normal; flex: none; }
.heat { display: grid; gap: 4px; font-size: 11px; }
.heat .hc { padding: 7px 2px; border-radius: 7px; text-align: center; font-weight: 700; min-width: 0; }
.heat .hc.off { background: #F3F6F4; color: #C4CFC9; font-weight: 400; }
.heat .hd { color: var(--muted); font-size: 10.5px; text-align: center; padding: 5px 2px; }
.heat .hd.tm { text-align: right; padding-right: 4px; font-variant-numeric: tabular-nums; }
.funnel { display: flex; flex-direction: column; gap: 7px; margin-top: 6px; }
.funnel .f-stage { display: flex; align-items: center; gap: 10px; }
.funnel .f-lab { width: 92px; font-size: 11.5px; color: var(--muted); flex: none; }
.funnel .f-track { flex: 1; height: 24px; border-radius: 8px; background: #EDF1EE; position: relative; overflow: hidden; }
.funnel .f-track i { display: block; height: 100%; border-radius: 8px; background: linear-gradient(90deg, var(--brand-deep), var(--brand)); }
.funnel .f-track em { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); font-style: normal; font-size: 11px; color: var(--muted); }
.h3-sub { font-size: 12px; font-weight: 700; color: var(--ink); margin: 14px 0 2px; }
@media (max-width: 480px) {
  .hbar-row b { width: 64px; }
  .hbar-row em { width: 96px; font-size: 10.5px; }
  .donut-svg { width: 140px; height: 140px; }
}

/* ---------- 预警 / 列表行 ---------- */
.alert { display: flex; gap: 11px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.alert:last-child { border-bottom: 0; }
.alert .ico {
  width: 36px; height: 36px; border-radius: 12px; flex: none;
  display: grid; place-items: center; font-size: 15px; font-weight: 800;
}
.alert.danger .ico { background: var(--danger-soft); color: var(--danger); }
.alert.warning .ico { background: var(--accent-soft); color: #A96E07; }
.alert.info .ico { background: var(--info-soft); color: var(--info); }
.alert b { font-size: 13.5px; display: block; }
.alert b i { font-style: normal; font-size: 11px; color: var(--muted); font-weight: 600; margin-left: 6px; }
.alert p { font-size: 12px; color: var(--muted); margin-top: 3px; line-height: 1.55; }

.mrow { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px dashed var(--line); }
.mrow:last-child { border-bottom: 0; }
.mrow .flow { flex: 1; min-width: 0; }
.mrow .flow b { font-size: 13.5px; }
.mrow .flow p { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.mrow .sc {
  flex: none; font-size: 14px; font-weight: 800; color: var(--brand-deep);
  width: 44px; height: 44px; border-radius: 50%; background: var(--brand-soft);
  display: grid; place-items: center;
}

/* ---------- 课程体系表 ---------- */
.curr { display: grid; gap: 10px; }
.curr .c-row {
  border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px;
  display: flex; gap: 12px; align-items: center; background: #FBFDFC;
}
.curr .c-row .lv { flex: none; min-width: 66px; justify-content: center; }
.curr .c-row div b { font-size: 13px; display: block; }
.curr .c-row div p { font-size: 11px; color: var(--muted); margin-top: 2px; }

/* ---------- 老师端 AI 备课卡 ---------- */
.prep {
  background: linear-gradient(120deg, #F4FAF7, #EDF6F1);
  border: 1px dashed #BBDCCF; border-radius: 13px; padding: 11px 13px; margin-top: 9px;
}
.prep b { font-size: 11px; color: var(--brand-deep); letter-spacing: 1px; display: block; margin-bottom: 5px; }
.prep p { font-size: 12px; color: #35544A; line-height: 1.6; }

/* ---------- 底部导航 ---------- */
/* 忌灰：导航全彩，每个 tab 一个鲜明专属色（--tab 主色 / --tab-soft 高亮底）；
   当前页上下悬浮 + 涟漪向外荡漾，一眼锁定所在版面。 */
#tabbar {
  position: sticky; bottom: 0; z-index: 20;
  display: flex; background: rgba(255,255,255,.94); backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  padding: 6px 8px calc(8px + env(safe-area-inset-bottom));
}
#tabbar button {
  flex: 1; border: 0; background: none; cursor: pointer; position: relative;
  font-family: var(--font); color: var(--tab, var(--brand));
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  font-size: 10.5px; font-weight: 600; padding: 5px 4px; border-radius: 12px;
}
#tabbar button .ic { font-size: 19px; line-height: 1; }
#tabbar button.on {
  color: var(--tab, var(--brand-deep)); font-weight: 700;
  background: var(--tab-soft, var(--brand-soft));
  animation: tab-bob 2.4s ease-in-out infinite;
}
/* 涟漪：两圈错相位向外荡开 */
#tabbar button.on::before,
#tabbar button.on::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  border: 1.5px solid var(--tab, var(--brand)); pointer-events: none;
  opacity: 0; animation: tab-ripple 2.4s ease-out infinite;
}
#tabbar button.on::after { animation-delay: 1.2s; }
@keyframes tab-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}
@keyframes tab-ripple {
  0% { transform: scale(1); opacity: .55; }
  70%, 100% { transform: scale(1.32); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  #tabbar button.on, #tabbar button.on::before, #tabbar button.on::after { animation: none; }
}
/* 每 tab 专属鲜色：看板洋红 / 匹配紫 / 预警红 / 档案蓝 / 课程绿 / 师资青 / 课酬橙 / 设置紫红 */
#tabbar button[data-t="dash"]    { --tab: #D6336C; --tab-soft: #FCE0EC; }
#tabbar button[data-t="match"]   { --tab: #7048E8; --tab-soft: #ECE7FD; }
#tabbar button[data-t="alerts"]  { --tab: #E03131; --tab-soft: #FDE2DF; }
#tabbar button[data-t="archive"] { --tab: #1971C2; --tab-soft: #DFF0FB; }
#tabbar button[data-t="curr"]    { --tab: #0B7A5E; --tab-soft: #E1F2EC; }
#tabbar button[data-t="fac"]     { --tab: #0C8599; --tab-soft: #DDF4F8; }
#tabbar button[data-t="pay"]     { --tab: #E8770E; --tab-soft: #FDEBD8; }
#tabbar button[data-t="set"]     { --tab: #9C36B5; --tab-soft: #F3E3FA; }

/* ---------- 空状态 / 成功页 ---------- */
.empty { text-align: center; padding: 34px 20px; color: var(--muted); }
.empty .big { font-size: 40px; margin-bottom: 10px; }
.success-hero { text-align: center; padding: 26px 10px 10px; }
.success-hero .check {
  width: 74px; height: 74px; margin: 0 auto 14px; border-radius: 50%;
  background: var(--brand-soft); display: grid; place-items: center;
  font-size: 34px; color: var(--brand); animation: pop .45s cubic-bezier(.2, 1.6, .4, 1);
}
@keyframes pop { 0% { transform: scale(.3); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
.fade-in { animation: fade .3s ease both; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Toast ---------- */
#toast {
  position: fixed; left: 50%; bottom: 86px; transform: translateX(-50%) translateY(20px);
  background: rgba(22, 38, 31, .92); color: #fff; font-size: 13px; font-weight: 600;
  padding: 11px 20px; border-radius: 999px; opacity: 0; pointer-events: none;
  transition: all .25s; z-index: 99; max-width: 86vw; text-align: center;
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- 加载 ---------- */
.loading { text-align: center; padding: 40px 0; color: var(--muted); font-size: 13px; }
.loading::after {
  content: ""; display: block; width: 26px; height: 26px; margin: 12px auto 0;
  border: 3px solid var(--line); border-top-color: var(--brand); border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.note { font-size: 11px; color: var(--muted); text-align: center; margin: 10px 0 2px; line-height: 1.6; }

/* ---------- 课时包 · 计费与退费规则 (方案 P13) ---------- */
.pack-strip {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px;
  background: var(--surface); border: 1px solid rgba(226,233,228,.7);
  border-radius: 15px; padding: 12px 14px; margin-bottom: 12px; box-shadow: var(--shadow);
}
.pack-strip b { font-size: 14px; font-weight: 800; color: var(--brand-deep); }
.pack-strip .btn { margin-left: auto; width: auto; }
.pack-strip span { flex: 1 1 100%; font-size: 11px; color: var(--muted); }
.pack-strip.warn { border-color: rgba(217,72,43,.3); background: var(--danger-soft); }
.pack-strip.warn b { color: var(--danger); }

.pack-hero { display: grid; grid-template-columns: auto 1fr; gap: 5px 13px; align-items: center; margin: 2px 0 11px; }
.pack-hero b { font-size: 27px; font-weight: 800; line-height: 1; color: var(--brand-deep); }
.pack-hero.warn b { color: var(--danger); }
.pack-hero b i { display: block; font-style: normal; font-size: 10.5px; font-weight: 600; color: var(--muted); margin-top: 4px; }
.pack-hero span { grid-column: 1 / -1; font-size: 11px; color: var(--muted); }
.pack-bar { height: 9px; border-radius: 5px; background: #EDF1EE; overflow: hidden; }
.pack-bar i { display: block; height: 100%; border-radius: 5px; background: var(--brand); }
.pack-bar i.hot { background: var(--danger); }
.pack-bar.sm { height: 6px; margin: 5px 0 3px; }

.warn-box { background: var(--danger-soft); border: 1px solid rgba(217,72,43,.22); border-radius: 13px; padding: 11px 13px; margin-bottom: 11px; }
.warn-box b { font-size: 13px; color: var(--danger); }
.warn-box p { font-size: 11.5px; color: #8A3421; margin-top: 4px; line-height: 1.55; }

.rule-list { border: 1px dashed var(--line); border-radius: 13px; padding: 11px 12px; margin-top: 6px; }
.rule-list > b { font-size: 12px; display: block; margin-bottom: 4px; }
.rule-row { display: flex; gap: 9px; padding: 6px 0 0; border-top: 1px solid rgba(226,233,228,.8); margin-top: 6px; }
.rule-row:first-of-type { border-top: 0; }
.rule-row i {
  flex: none; width: 40px; height: 21px; border-radius: 7px; font-style: normal;
  background: var(--brand-soft); color: var(--brand-deep); font-size: 10.5px; font-weight: 700;
  display: grid; place-items: center;
}
.rule-row span b { font-size: 12px; }
.rule-row span p { font-size: 11px; color: var(--muted); line-height: 1.5; margin-top: 1px; }

.pack-buy { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pack-buy .btn { display: flex; align-items: baseline; justify-content: center; gap: 3px; white-space: nowrap; padding: 9px 4px; }
.pack-buy .btn i { font-style: normal; font-size: 10.5px; opacity: .9; font-weight: 600; }
.pack-line { font-size: 11px; color: var(--muted); margin-top: 4px; }
.tile.danger { border-color: rgba(217,72,43,.32); background: var(--danger-soft); }
.tile.danger b, .tile.danger b i { color: var(--danger); }
.tile.danger span { color: #8A3421; }

/* ---------- 学情 / 授课数据档案 (方案 P9) ---------- */
.sum-line {
  font-size: 12.5px; line-height: 1.65; color: var(--ink); padding: 8px 0 0;
  border-top: 1px solid rgba(226,233,228,.8); margin-top: 8px;
}
.sum-line:first-of-type { border-top: 0; margin-top: 0; padding-top: 0; }
.traj { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin: 2px 0 12px; }
.traj i { font-style: normal; color: var(--muted); font-size: 12px; }
.traj span { font-size: 11px; color: var(--brand-deep); margin-left: 2px; }
.delta { font-size: 11px; margin: -4px 0 8px 74px; color: var(--muted); }
.delta.up { color: var(--brand-deep); }
.delta.down { color: var(--danger); }
.kv { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 10px; }
.kv span { font-size: 11px; color: var(--muted); text-align: center; }
.kv b { display: block; font-size: 17px; font-weight: 800; color: var(--ink); }
.att-hero { display: flex; align-items: center; gap: 14px; }
.att-hero .ring { flex: none; }
.att-hero .tiles { flex: 1; margin: 0; }

/* 出勤卡: 每个数字都是可点按钮 (就地展开明细), 视觉沿用瓦片, 只补 button 复位与 .on 高亮 */
.att-hero button.ring {
  border: 0; padding: 0; font: inherit; cursor: pointer;
}
.att-hero button.ring.on { box-shadow: 0 0 0 3px var(--brand-soft); }
.tile.kv-tile {
  cursor: pointer; border-color: rgba(226,233,228,.7);
}
.tile.kv-tile.on { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand-soft); }
.kv .kv-tile {
  border: 1px solid rgba(226,233,228,.7); background: var(--surface); box-shadow: var(--shadow);
  border-radius: 12px; padding: 9px 4px; font: inherit; cursor: pointer;
  font-size: 11px; color: var(--muted); text-align: center;
}
.kv .kv-tile b { display: block; font-size: 17px; font-weight: 800; color: var(--ink); }
.kv .kv-tile span { font-size: 11px; }
.kv .kv-tile.on { border-color: var(--brand); background: var(--brand-soft); }
.kv .kv-tile.on b { color: var(--brand-deep); }
/* 展开块沿用 .ab-plans 的虚线上边框 + .mu-row 的 #FBFDFC 嵌套底色, 不引入新视觉语言 */
.att-drill {
  margin-top: 12px; padding-top: 11px; border-top: 1px dashed var(--line);
}
.att-drill .mrow:first-of-type { padding-top: 0; }
.dist-row { display: flex; align-items: center; gap: 9px; margin: 7px 0; font-size: 11.5px; }
.dist-row .lv { flex: none; }
.dist-row .bar { flex: 1; height: 8px; border-radius: 4px; background: #EDF1EE; overflow: hidden; }
.dist-row .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), #27AE84); }
.dist-row em { font-style: normal; width: 34px; text-align: right; color: var(--muted); flex: none; }
.rec-row { display: flex; align-items: center; gap: 9px; padding: 9px 0; border-top: 1px solid rgba(226,233,228,.8); }
.rec-row:first-of-type { border-top: 0; }
.rec-row .who { flex: 1; min-width: 0; }
.rec-row .who b { font-size: 12.5px; }
.rec-row .who p { font-size: 11px; color: var(--muted); margin-top: 2px; }
a.btn { text-align: center; text-decoration: none; display: block; }
.wt-desc { font-size: 10.5px; color: var(--muted); margin: -4px 0 6px 74px; line-height: 1.5; }

/* ---------- 家长端首页: 六大课程模块 + 师资力量 ---------- */
.home-sec { margin-bottom: 20px; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 2px 2px 11px; }
.sec-head h2 { font-size: 16.5px; font-weight: 800; letter-spacing: .3px; }
.sec-sub { font-size: 11px; color: var(--muted); }
.kid-pill {
  border: 1.5px solid var(--line); background: #fff; color: var(--brand-deep);
  font-family: var(--font); font-size: 11.5px; font-weight: 700;
  padding: 4px 11px; border-radius: 999px; cursor: pointer; flex: none;
}
/* 首页模块卡一排三张：卡片收小（原两列 + 约 1/3 屏高），信息只留 图标 / 名称 / 类型 / 班数 / 年龄段 / 级别 */
.mod-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.mod {
  position: relative; overflow: hidden; text-align: left; cursor: pointer; font-family: var(--font);
  display: flex; flex-direction: column; gap: 1px; padding: 10px 9px 9px;
  border: 1px solid rgba(226, 233, 228, .8); border-radius: 14px; box-shadow: var(--shadow);
  background: linear-gradient(150deg, var(--m1), var(--m2));
  min-height: 132px;
  transition: transform .12s, box-shadow .12s;
}
.mod::after {
  content: ""; position: absolute; right: -22px; top: -22px; width: 56px; height: 56px;
  border-radius: 50%; background: rgba(255, 255, 255, .38); pointer-events: none;
}
.mod:active { transform: scale(.98); }
.mod:hover { box-shadow: 0 14px 34px rgba(22, 38, 31, .14); }
.mod .mod-ic { font-size: 20px; margin-bottom: 4px; }
.mod b { font-size: 12.5px; font-weight: 800; letter-spacing: .1px; line-height: 1.25; overflow-wrap: anywhere; }
.mod em { font-style: normal; font-size: 10.5px; color: #4A5F58; line-height: 1.3; }
.mod-foot { margin-top: auto; padding-top: 5px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 3px 4px; }
.mod-foot i {
  font-style: normal; font-weight: 700; font-size: 9px; color: var(--brand-deep);
  background: rgba(255, 255, 255, .78); border-radius: 999px; padding: 2px 6px;
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.mod-foot span { font-size: 9.5px; color: #5C6E66; }

.fac-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.fac {
  cursor: pointer; font-family: var(--font); display: flex; flex-direction: column; align-items: center;
  text-align: center; background: #fff; border: 1px solid rgba(226, 233, 228, .8);
  border-radius: 16px; box-shadow: var(--shadow); padding: 12px 6px 11px; transition: transform .12s;
}
.fac:active { transform: scale(.97); }
.fac .t-avatar {
  width: 44px; height: 44px; border-radius: 50%; margin-bottom: 5px;
  display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 16px;
}
.fac b { font-size: 13px; }
.fac em { font-style: normal; font-size: 10px; color: var(--muted); }
.fac .fac-meta { font-size: 10.5px; font-weight: 700; color: #8F5B06; margin-top: 4px; }
.fac .fac-lv {
  font-size: 9.5px; color: var(--brand-deep); background: var(--brand-soft);
  border-radius: 999px; padding: 2px 7px; margin-top: 5px; max-width: 100%;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
#facMore { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 12px; }
.fac-end { font-size: 11px; color: var(--muted); text-align: center; padding: 6px 0 2px; }
.fac-sent { height: 1px; width: 100%; }
.fac-loading { padding: 12px 0; font-size: 12px; }

.mod-hero {
  display: flex; align-items: center; gap: 12px; padding: 14px; margin-bottom: 12px;
  background: linear-gradient(140deg, var(--m1), var(--m2));
  border: 1px solid rgba(226, 233, 228, .8); border-radius: var(--radius);
}
.mod-hero .mod-ic { font-size: 30px; }
.mh-txt { flex: 1; min-width: 0; }
.mh-txt b { display: block; font-size: 16px; }
.mh-txt p { font-size: 11.5px; color: #4A5F58; margin-top: 3px; }
.mh-n { flex: none; text-align: center; font-size: 10px; font-weight: 700; color: var(--brand-deep); }
.mh-n i { display: block; font-style: normal; font-size: 21px; font-weight: 800; }
.pts { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.pts li { position: relative; padding-left: 17px; font-size: 12.5px; line-height: 1.6; color: #35544A; }
.pts li::before {
  content: ""; position: absolute; left: 2px; top: 8px; width: 6px; height: 6px;
  border-radius: 50%; background: var(--accent);
}
.fac-inline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.fac.mini { box-shadow: none; border-radius: 13px; padding: 9px 4px; }
.fac.mini .t-avatar { width: 34px; height: 34px; font-size: 13px; margin-bottom: 4px; }
.fac.mini b { font-size: 11.5px; }
.fac.mini em { font-size: 9.5px; }
.fac-mods { display: flex; flex-wrap: wrap; gap: 6px; }
button.chip { font-family: var(--font); cursor: pointer; }
.warn-line {
  font-size: 11.5px; line-height: 1.6; color: #92600A; background: var(--accent-soft);
  border-radius: 12px; padding: 9px 12px; margin: 12px 0;
}
.fac-hero { display: flex; align-items: center; gap: 13px; margin-bottom: 13px; }
.fac-hero .t-avatar {
  width: 54px; height: 54px; border-radius: 50%; flex: none;
  display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 20px;
}
.fac-hero b { font-size: 17px; }
.fac-hero p { font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.mod-bar {
  display: flex; align-items: center; gap: 8px; margin-bottom: 12px; padding: 9px 12px;
  background: #fff; border: 1px dashed var(--brand); border-radius: 14px;
  font-size: 12.5px; font-weight: 700; color: var(--brand-deep);
}
.mod-bar .mb-lv { margin-left: auto; font-size: 10.5px; font-weight: 600; color: var(--muted); }
.mb-x {
  border: 0; background: var(--brand-soft); color: var(--brand-deep); border-radius: 999px;
  padding: 4px 10px; font-size: 11px; font-weight: 700; font-family: var(--font); cursor: pointer; flex: none;
}
/* keep-all: CJK 不按字断行，「初级/3-6 岁」这类短标签不再被拦腰拆开 */
.mod-age { font-size: 9.5px; color: #5C6E66; margin-top: 3px; line-height: 1.35; word-break: keep-all; }
.mod-tags { display: flex; gap: 3px; flex-wrap: wrap; margin-top: 4px; }
.mod-tag {
  font-size: 9px; font-weight: 700; padding: 2px 5px; border-radius: 999px;
  border: 1px solid rgba(0,0,0,.06); background: #fff; color: #33463F;
  letter-spacing: .1px; white-space: nowrap;
}
.mod-tag.general { background: rgba(11, 122, 94,.13); color: #075E49; border-color: rgba(11, 122, 94,.2); }
.mod-tag.special { background: rgba(245, 158, 27,.16); color: #9A5F05; border-color: rgba(245, 158, 27,.28); }
.mod-tag.info { background: rgba(255,255,255,.75); color: #46584F; }
.mod-tag.ok { background: #fff; color: #075E49; border-color: rgba(11, 122, 94,.3); }

/* 年龄板块: 家长按孩子的年龄段一眼定位版面。cur=高亮 / dim=置灰可代选 */
.board { margin-top: 12px; padding: 10px 10px 12px; border-radius: var(--radius); background: #FBFDFB; border: 1px solid #E8EEE9; }
.board.me { border-color: rgba(11, 122, 94,.45); background: linear-gradient(160deg, #EEF8F3, #FFFFFF 60%); box-shadow: 0 8px 22px rgba(11, 122, 94,.1); }
.board.dim { opacity: .7; }
.board-head { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.board-head b { font-size: 14px; font-weight: 800; color: #16261F; letter-spacing: .2px; }
.board-head span { font-size: 10.5px; color: #5C6E66; }
.board-head .board-here {
  margin-left: auto; font-size: 9.5px; font-weight: 700; color: #fff;
  background: var(--brand); padding: 3px 8px; border-radius: 999px; white-space: nowrap;
}
.board-note { font-size: 10.5px; color: #5C6E66; margin: 2px 0 10px; }
.board-list { display: flex; flex-direction: column; gap: 10px; }
/* 活动课（原节假日活动课）：主课之外的补充，收成一条与模块卡同形状的小卡横排；
   突出靠琥珀暖底 + 循环滚动 + 「N 场可报」徽标，字号与模块卡完全一致，不再放大抢眼 */
.board.act-board { padding: 9px 10px 12px; background: transparent; border-style: dashed; box-shadow: none; opacity: 1; }
.act-board .board-head { margin-bottom: 9px; flex-wrap: wrap; row-gap: 2px; }
.act-board .board-head b { font-size: 13.5px; color: #33463F; }
.act-board .board-head span { font-size: 10px; }
/* 跑马灯：两份相同轨道并排，translateX(-50%) 恰好滚到第二份起点 → 无缝循环；hover 暂停 */
.act-strip { overflow: hidden; position: relative; }
.act-pills { display: flex; width: max-content; animation: act-marquee 26s linear infinite; }
.act-pills:hover { animation-play-state: paused; }
.act-track { display: flex; gap: 12px; padding-right: 12px; flex: none; }
@keyframes act-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) { .act-pills { animation: none; } }
.mod.act {
  flex: none; flex-direction: row; align-items: center; gap: 7px; min-height: 0;
  padding: 9px 12px 9px 11px; border-radius: 14px;
  background: linear-gradient(150deg, var(--m1, #FFF6E2), var(--m2, #FFE9C4));
  border: 1px solid rgba(226, 233, 228, .8); box-shadow: var(--shadow);
}
.mod.act::after { display: none; }
.mod.act .mod-ic { font-size: 20px; margin: 0; }
.mod.act b { font-size: 12.5px; font-weight: 800; letter-spacing: .1px; white-space: nowrap; }
.mod.act .mod-tag { flex: none; }
.act-row { display: flex; align-items: flex-start; gap: 10px; }
.act-row .act-when { flex: none; width: 52px; text-align: center; background: #FFF6E5; border-radius: 10px; padding: 6px 4px; }
.act-row .act-when b { display: block; font-size: 12px; color: #9A5F05; }
.act-row .act-when p { font-size: 10px; color: #5C6E66; margin: 2px 0 0; }

/* 级别 × 班 表: 家长点进模块要一眼看清「哪几段、每段几个班、每个班谁上、几点」 */
.mod-kindline { margin: -18px 16px 12px; font-size: 11px; color: #33463F; display: flex; align-items: center; gap: 6px; }
.lvt { display: grid; gap: 12px; }
.lvt-hd { display: flex; align-items: center; gap: 8px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.lvt-hd b { font-size: 12.5px; color: #16261F; }
.lvt-hd i { margin-left: auto; font-style: normal; font-size: 10px; color: #5C6E66; }
.lvt-r { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 14px; padding: 11px 12px; background: #FBFDFC; }
.lvt-r b { font-size: 13px; color: #16261F; }
.lvt-r p { font-size: 11px; color: #5C6E66; margin: 3px 0 0; }
.mb-books { font-size: 12.5px; font-weight: 700; color: var(--brand-deep); margin-bottom: 9px; line-height: 1.5; }
.mb-exit {
  font-size: 12px; color: #35544A; margin-top: 11px; padding-top: 10px;
  border-top: 1px dashed var(--line); line-height: 1.6;
}
.mb-exit b { display: inline-block; margin-right: 7px; font-size: 11px; color: var(--accent); }
.scroll-hint { display: none; }
@media (max-height: 720px) {
  .scroll-hint {
    display: block; text-align: center; font-size: 11px; color: var(--muted);
    margin-top: 10px; letter-spacing: .3px;
  }
  .scroll-hint b { color: var(--brand-deep); }
}
.sheet-cta {
  position: sticky; bottom: 0; z-index: 2;
  display: flex; flex-direction: column; gap: 9px; padding: 14px 0 2px;
  background: linear-gradient(to top, var(--bg) 60%, rgba(238, 242, 239, 0));
}

/* ============================================================
   主修 / 辅修 · 适龄段适配 · 机构端排课 · 请假缺勤补课
   ============================================================ */

/* ---------- 操作行 ---------- */
.ops { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
/* 无推荐卡时的回退态: 自主选课与上下元素留出呼吸间距 */
.selfbook-standalone { margin: 12px 0 12px; }
.ops .btn { width: auto; }
.btn.danger { background: #fff; color: var(--danger); border: 1.5px solid rgba(217, 72, 43, .5); box-shadow: none; }
.link-btn {
  background: none; border: 0; padding: 0; margin-top: 2px; cursor: pointer;
  font-family: var(--font); font-size: inherit; font-weight: 700; color: var(--brand-deep);
  text-decoration: underline; text-underline-offset: 3px;
}

/* ---------- 徽章: 主修 / 辅修 / 状态 ---------- */
.chip.trk { margin-left: 0; margin-right: 0; padding: 3px 9px; font-size: 10.5px; }
/* 通识课/专项课: 内部枚举仍是 major/minor, 样式类改跟家长口径走 */
.chip.trk.general { background: var(--brand); color: #fff; }
.chip.trk.special { background: rgba(245, 158, 27,.16); color: #9A5F05; border: 1px solid rgba(245, 158, 27,.3); }
.chip.off { background: #EDF1EE; color: var(--muted); }
.chip.bad { background: var(--danger-soft); color: var(--danger); }
.chip.miss { background: var(--danger-soft); color: var(--danger); }
.chip.leave { background: var(--accent-soft); color: #92600A; }

/* ---------- 新学员注册 (年龄必填) ---------- */
.reg-btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-top: 12px; padding: 12px 14px; background: #fff; color: var(--brand-deep);
  border: 1.5px dashed rgba(11, 122, 94, .45); border-radius: 14px;
  font-family: var(--font); font-size: 13px; font-weight: 700; cursor: pointer;
}
.reg-btn .cur { font-size: 11px; font-weight: 600; color: var(--brand); }
.reg-form { margin-top: 12px; padding: 14px; background: var(--brand-soft); border-radius: 15px; }
.rf-title { font-size: 14px; font-weight: 700; margin-bottom: 11px; }
.rf-hint { font-size: 10.5px; color: #4A5F58; line-height: 1.65; margin: 2px 0 11px; }
.f-row { margin-bottom: 11px; }
.f-row > label { display: block; font-size: 11.5px; font-weight: 700; color: #35544A; margin-bottom: 5px; }
.f-row > label i { font-style: normal; font-size: 10px; font-weight: 800; color: var(--danger); }
.reg-form input:not(.age-in) {
  width: 100%; padding: 11px 12px; border: 1.5px solid #CFDAD3; border-radius: 12px;
  background: #fff; font-family: var(--font); font-size: 13px; color: var(--ink); outline: none;
}
.reg-form input:focus { border-color: var(--brand); }
.age-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.age-p {
  width: 34px; height: 34px; border-radius: 11px; border: 1.5px solid #CFDAD3;
  background: #fff; color: var(--muted); font-family: var(--font); font-size: 13px;
  font-weight: 700; cursor: pointer;
}
.age-p.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.age-in {
  width: 62px; height: 34px; padding: 0 6px; border: 1.5px solid #CFDAD3; border-radius: 11px;
  background: #fff; font-family: var(--font); font-size: 13px; text-align: center;
  color: var(--ink); outline: none;
}
.age-in:focus { border-color: var(--brand); }

/* ---------- 课程班表单 (机构端排课) ---------- */
.sh-head {
  display: flex; align-items: baseline; gap: 10px;
  padding: 2px 2px 13px; margin-bottom: 14px; border-bottom: 1px solid var(--line);
}
.sh-head b { font-size: 16px; font-weight: 800; }
.sh-head span { margin-left: auto; font-size: 11px; color: var(--muted); }
.sheet form > div { margin-bottom: 12px; }
.sheet .f-label { display: block; font-size: 11.5px; font-weight: 700; color: #35544A; margin-bottom: 5px; }
.sheet .f-label i { font-style: normal; font-size: 10px; font-weight: 500; color: var(--muted); }
.sheet .f-in {
  width: 100%; padding: 10px 11px; border: 1.5px solid #CFDAD3; border-radius: 12px;
  background: #fff; font-family: var(--font); font-size: 13px; color: var(--ink); outline: none;
}
.sheet .f-in:focus { border-color: var(--brand); }
.f-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.f-in { box-sizing: border-box; max-width: 100%; width: 100%; }

/* ---------- 师资 / 公告表单：级别复选 chips 与字数计数（2026-10-22） ---------- */
.lvl-checks { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 5px; }
.lvl-check {
  display: inline-flex; align-items: center; gap: 5px; cursor: pointer; user-select: none;
  border: 1.5px solid #CFDAD3; border-radius: 999px; padding: 5px 11px;
  font-size: 12px; font-weight: 600; color: var(--muted); background: #fff;
}
.lvl-check:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-deep); }
.lvl-check input { accent-color: var(--brand); margin: 0; }
.f-label .cnt { float: right; font-style: normal; font-size: 10px; font-weight: 600; color: var(--muted); }

/* ---------- 首页 / 我的: 主修进度入口 ---------- */
.major-hero { display: flex; flex-direction: column; gap: 13px; }
.major-hero.amber {
  border-color: rgba(245, 158, 27, .45);
  background: linear-gradient(150deg, #FFFDF7, var(--surface) 58%);
}
.mh-row { display: flex; align-items: center; gap: 12px; }
.mc-head { display: flex; align-items: center; gap: 12px; }
.mc-ic {
  flex: none; width: 44px; height: 44px; border-radius: 14px; background: var(--brand-soft);
  display: grid; place-items: center; font-size: 21px;
}
.mc-t { flex: 1; min-width: 0; }
.mc-t b { display: block; font-size: 15px; }
.mc-t p { font-size: 11px; color: var(--muted); margin-top: 3px; line-height: 1.55; }
.mc-progress { display: flex; flex-direction: column; gap: 6px; }
.mc-progress p { font-size: 11px; color: var(--muted); }
.mc-next {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
  background: var(--brand-soft); border-radius: 13px; padding: 10px 12px;
}
.mc-next b { font-size: 14px; color: var(--brand-deep); }
.mc-next > span:not(.chip) { font-size: 11.5px; font-weight: 700; color: var(--brand-deep); }
.mc-note { margin-top: 2px; }

.major-zone { border-color: rgba(11, 122, 94, .30); box-shadow: 0 10px 30px rgba(11, 122, 94, .10); }
.major-card {
  display: flex; flex-direction: column; gap: 11px;
  padding: 13px; background: #FBFDFC; border: 1px solid var(--line); border-radius: 15px;
}

/* ---------- 课程班卡 (家长端选班) ---------- */
.ccls {
  border: 1.5px solid var(--line); border-radius: 15px; background: #fff;
  padding: 13px; margin-bottom: 11px;
}
.ccls:last-child { margin-bottom: 0; }
.ccls.locked { border-color: var(--brand); background: linear-gradient(160deg, #F4FBF8, #fff 70%); }
.ccls.blocked, .ccls.off { opacity: .72; background: #F7FAF8; }
.ccls .ops { margin-top: 11px; }
.cc-head { display: flex; align-items: center; gap: 11px; }
.cc-ic {
  flex: none; width: 40px; height: 40px; border-radius: 13px; background: var(--brand-soft);
  display: grid; place-items: center; font-size: 19px;
}
.cc-t { flex: 1; min-width: 0; }
.cc-t b { display: block; font-size: 13.5px; }
.cc-t p { font-size: 11px; color: var(--muted); margin-top: 2px; }
.cc-meta { display: flex; flex-wrap: wrap; gap: 4px 11px; font-size: 11px; color: var(--muted); margin-top: 9px; }
/* 第③步(选时段与老师): 时段行是主角放大, 名额做成稀缺徽标; 模块/班型/周数已在标题声明 */
.ccls.slot .slot-ava { flex: none; width: 42px; height: 42px; margin: 0; font-size: 16px;
  border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; }
.ccls.slot .cc-t b.slot-when { font-size: 15.5px; letter-spacing: .1px; }
.ccls.slot .slot-ta { font-size: 12px; color: #33463F; margin-top: 3px; }
.ccls.slot .slot-cap { flex: none; font-size: 11px; font-weight: 700; color: var(--brand-deep); background: rgba(11, 122, 94, .08); border-radius: 999px; padding: 3px 9px; }
.ccls.slot .slot-cap.warn { color: #92600A; background: rgba(245, 158, 27, .16); }
/* 课后复习: 推送章节行 (家长侧与老师侧共用) */
.rv-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); }
.rv-row:first-of-type { border-top: 0; }
.rv-row .body { flex: 1; min-width: 0; }
.rv-row .body b { display: block; font-size: 12.5px; }
.rv-row .body p { font-size: 10.5px; color: var(--muted); margin-top: 2px; }
.rv-row.dim { opacity: .82; }
/* 课后复习九宫格: 9 单元 × 2 课时; P2 单元卡对角线分两半 (新授/巩固) */
.rv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 8px; }
.rv-cell { position: relative; border: 1px solid var(--line); border-radius: 12px;
  padding: 24px 8px 6px; min-height: 92px; background: #FBFDFB; overflow: hidden; }
.rv-cell.diag { background: linear-gradient(135deg, #EAF6F0 0 50%, #FFFFFF 50% 100%); }
.rv-cell .rv-un { position: absolute; top: 5px; left: 8px; font-size: 10px; font-weight: 800; color: var(--brand); }
.rv-cell .rv-uname { display: block; font-size: 10.5px; color: var(--brand-deep); line-height: 1.3;
  min-height: 26px; margin-bottom: 3px; overflow: hidden; }
.rv-slot { display: flex; justify-content: space-between; align-items: center; gap: 4px;
  font-size: 9.5px; color: var(--muted); margin-top: 3px; }
.rv-slot i { font-style: normal; }
.rv-slot.off { justify-content: center; opacity: .45; }
.rv-slot .chip { white-space: nowrap; flex: none; }
/* ---------- 晋升台阶 (成长档案顶部 · 参照素材库「晋升规划」阶梯图) ----------
   12 阶一屏看完: 阶体渐变 + 下沿厚边(0 3px 0) + 下移托板(::before) + 外投影 = 立体层次;
   斜向上升由 --i 驱动 (bottom = --b0 + --rise × 阶序), 底部学段轴 = 参考图 PRIMARY/LOWER/UPPER 处理 */
.ld-sub { font-size: 10.5px; font-weight: 600; color: var(--muted); }
.ld-pos {
  margin-left: auto; flex: none; font-size: 10.5px; font-weight: 800; letter-spacing: .2px;
  color: var(--brand-deep); background: var(--brand-soft); border-radius: 999px; padding: 3px 9px;
}
.ld-note { margin: -2px 0 0; }
.ld-field { position: relative; height: 148px; margin-top: 6px; --b0: 6px; --rise: 7px; --bh: 20px; }
.ld-step {
  position: absolute; width: 8.3333%; height: var(--bh); transform: translateX(-50%);
  bottom: calc(var(--b0) + var(--rise) * var(--i)); z-index: calc(2 + var(--i));
}
.ld-step::before { /* 下移托板: 参考图每块台阶后那层浅色垫板 */
  content: ""; position: absolute; left: -4px; top: 5px; width: 100%; height: 100%;
  border-radius: 9px; background: var(--halo);
}
.ld-blk {
  position: relative; display: grid; place-items: center; width: 88%; height: 100%; margin: 0 auto;
  padding: 0; border: 0; cursor: pointer; font-family: var(--font); overflow: hidden;
  border-radius: 7px 7px 3px 3px; color: #fff; background: linear-gradient(168deg, var(--c1), var(--c2));
  box-shadow: 0 3px 0 var(--ce), 0 7px 14px -5px rgba(22, 38, 31, .34), inset 0 1px 0 rgba(255, 255, 255, .45);
  transition: transform .12s;
}
.ld-blk:active { transform: scale(.94); }
.ld-blk b { font-size: 10px; font-weight: 800; letter-spacing: -.2px; }
.ld-blk .ld-wk { position: absolute; left: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, .92); }
.ld-past::after { /* 已走完 */
  content: "✓"; position: absolute; left: 50%; bottom: calc(100% + 3px); transform: translateX(-50%);
  font-size: 9px; font-weight: 800; color: var(--brand);
}
.ld-todo .ld-blk { color: var(--brand-deep); border: 1.5px dashed rgba(11, 122, 94, .42); box-shadow: 0 2px 0 rgba(22, 38, 31, .06); }
.ld-todo .ld-blk b { opacity: .85; }
.ld-cur .ld-blk {
  box-shadow: 0 3px 0 var(--ce), 0 0 0 2px #fff, 0 0 0 4.5px rgba(245, 158, 27, .75), 0 9px 18px -5px rgba(245, 158, 27, .55);
  animation: ldPulse 2.4s ease-in-out infinite;
}
@keyframes ldPulse { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2px); } }
.ld-tag { /* 对标短标签 (参考图橙字「中考 / 高考」那一层): 2 字宽 < 阶宽, 保证不压相邻阶 */
  position: absolute; left: 50%; transform: translateX(-50%); bottom: calc(100% + 10px);
  font-size: 7.5px; font-weight: 800; line-height: 1.25; white-space: nowrap;
  color: #C2410C; background: #FFF3E0; border-radius: 999px; padding: 1px 4px;
}
.ld-tag-me { /* 当前位置标记 (参考图里那个走着的孩子) + 虚线引线 */
  bottom: calc(100% + 18px); font-size: 10px; padding: 1px 4px; background: #fff;
  border: 1.5px solid var(--accent); box-shadow: 0 3px 8px -2px rgba(245, 158, 27, .6);
}
.ld-tag-me::after {
  content: ""; position: absolute; left: 50%; top: 100%; height: 8px;
  transform: translateX(-50%); border-left: 1.5px dashed var(--accent); opacity: .7;
}
.ld-rail { height: 3px; border-radius: 3px; }
.ld-axis {
  display: grid; grid-template-columns: repeat(4, 1fr); text-align: center;
  margin-top: 7px; padding-top: 6px; border-top: 1.5px dashed var(--line);
}
.ld-ax-seg + .ld-ax-seg { border-left: 1px dashed var(--line); }
.ld-ax-seg b { display: block; font-size: 9.5px; font-weight: 700; color: #4A5D55; white-space: nowrap; }
.ld-ax-seg small { display: block; font-size: 8.5px; color: var(--muted); margin-top: 1px; }
.ld-ax-seg.on b { color: var(--brand-deep); }
.ld-ax-seg.on small { color: var(--brand); }
.ld-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; }
.ld-legend { font-size: 10px; line-height: 1.45; color: var(--muted); min-width: 0; }
.ld-legend b { color: #C2410C; }
.ld-more { flex: none; margin: 0; width: auto; padding: 4px 9px; font-size: 10.5px; }
.ld-rules { margin: 2px 0 0 16px; font-size: 12px; line-height: 1.75; color: #33463F; }
.ld-rules li { margin-bottom: 4px; }
.ld-tip-row { display: flex; justify-content: space-between; gap: 12px; font-size: 12.5px; padding: 9px 0; border-top: 1px solid var(--line); }
.ld-tip-row:first-child { border-top: 0; }
.ld-tip-row span { color: var(--muted); flex: none; }
.ld-tip-row b { text-align: right; }
@media (min-width: 400px) {
  .ld-field { height: 156px; --b0: 6px; --rise: 7.5px; --bh: 22px; }
}
@media (max-height: 700px) {
  .ld-field { height: 140px; --b0: 5px; --rise: 6.5px; --bh: 20px; }
}
@media (prefers-reduced-motion: reduce) { .ld-cur .ld-blk { animation: none; } }
.cc-meta .warn { color: #92600A; font-weight: 700; }
.cc-when { font-size: 11px; color: var(--brand-deep); margin-top: 8px; }
.cc-age { margin-top: 7px; padding: 7px 10px; border-radius: 11px; font-size: 11px; line-height: 1.5; }
.cc-age i { display: block; font-style: normal; font-size: 10px; color: var(--muted); margin-top: 2px; }
.cc-age.ok { background: var(--brand-soft); color: var(--brand-deep); }
.cc-age.no { background: var(--accent-soft); color: #92600A; }

/* ---------- 补课方案行 ---------- */
.mu-row {
  display: flex; align-items: center; gap: 10px; padding: 9px 10px;
  margin-top: 7px; background: #FBFDFC; border: 1px solid var(--line); border-radius: 12px;
}
.mu-info { flex: 1; min-width: 0; }
.mu-info b { display: block; font-size: 12px; }
.mu-info p { font-size: 11px; color: var(--muted); margin-top: 2px; line-height: 1.5; }

/* ---------- 机构端课程班行 ---------- */
.ccls-admin.off { opacity: .66; }
.ca-head { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }
.ca-head b { font-size: 14.5px; }
.ca-meta { display: flex; flex-wrap: wrap; gap: 5px 12px; font-size: 11.5px; color: var(--muted); margin-top: 9px; }
.ca-meta i { font-style: normal; font-size: 10.5px; opacity: .85; }
.ca-cap { display: flex; align-items: center; gap: 10px; margin-top: 4px; font-size: 11px; color: var(--muted); }
.ca-cap .pack-bar { flex: 1; }
.ca-members { margin-top: 6px; }
.ca-members .chip i { font-style: normal; margin-left: 4px; opacity: .75; }

/* ---------- 老师端: 请假与缺勤 ---------- */
.absent-card { padding: 14px; }
.absent-card.leave { border-color: rgba(245, 158, 27, .45); }
.absent-card.miss { border-color: rgba(217, 72, 43, .42); background: linear-gradient(160deg, var(--danger-soft), #fff 62%); }
.ab-head { display: flex; align-items: center; gap: 11px; }
.ab-head .lsn-when { display: block; font-size: 15px; font-weight: 800; color: var(--brand-deep); }
.ab-head .lsn-ta { margin-top: 3px; }
.ab-head .body { flex: 1; min-width: 0; }
.ab-head .body b { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 13px; }
.ab-head .body p { font-size: 11px; color: var(--muted); margin-top: 3px; line-height: 1.5; }
.ab-rule {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-top: 11px; padding: 9px 11px; background: #F4F8F5; border-radius: 11px;
  font-size: 11px; color: var(--muted);
}
.ab-rule b { font-size: 11.5px; color: var(--ink); }
.ab-plans { margin-top: 11px; padding-top: 10px; border-top: 1px dashed var(--line); }
.ab-plans-h { display: flex; align-items: center; gap: 8px; margin-bottom: 2px; }
.ab-plans-h b { font-size: 12.5px; }

/* 请假补课双模式: 课表「可补」区 (Mode A 插班候选 + Mode B 派单状态条) */
.mk-zone { border-top: 1px dashed var(--line); margin-top: 10px; padding-top: 10px; }
.mk-zone + .mk-zone { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 12px; }
.mk-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin: 8px 0; padding: 9px 11px; background: #FFF8EC; border-radius: 11px;
  font-size: 11.5px; color: #8a6d1a;
}
.mk-slots { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 8px; }
.mk-req { margin-top: 8px; }

/* Progressive course selection */
.booking-modules {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px; margin: 16px 0;
}
.booking-module {
  display: flex; flex-direction: column; gap: 10px; align-items: flex-start;
  text-align: left; padding: 22px 18px; min-height: 156px;
  border: 1px solid #cde5dc; border-radius: 18px;
  background: linear-gradient(150deg, var(--m1, #fff), var(--m2, #fff));
  color: inherit; cursor: pointer; font: inherit;
}
.booking-module b { font-size: 18px; }
.booking-icon { font-size: 30px; }
.booking-module:hover { border-color: var(--accent); background: #f2fbf7; }
.booking-module:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.booking-module:disabled { opacity: .55; cursor: default; }
.curriculum-topics { padding-left: 24px; margin-top: 14px; }
.curriculum-topics li { padding: 8px 0; border-bottom: 1px solid #edf2ef; }
@media (max-width: 380px) { .booking-modules { grid-template-columns: 1fr; } }
/* 越级档位默认收起：只露一行入口，展开才列档位 */
.more-levels { margin-top: 6px; border-top: 1px dashed var(--line); }
.more-levels > summary { color: var(--muted); font-size: 13px; }
.more-levels[open] > summary { color: var(--text); }
/* 私教课兜底卡：没有同水平班时出现，暖色区别于课程档位 */
.priv-fallback { background: linear-gradient(150deg, #FFF6E5, #FDE7C2); border-color: rgba(245, 158, 27, .3); }

.page-entry {display:flex;align-items:center;justify-content:space-between;gap:16px;width:100%;padding:18px 20px;margin:0 0 12px;border:1px solid var(--line);border-radius:16px;background:var(--card,#fff);color:var(--text);font:inherit;text-align:left;cursor:pointer;min-height:76px}.page-entry b{display:block;font-size:16px}.page-entry small{display:block;color:var(--muted);font-size:13px;line-height:1.5;margin-top:6px}.page-entry:focus-visible,summary:focus-visible{outline:3px solid var(--accent);outline-offset:3px}summary{cursor:pointer;padding:12px 0;min-height:44px}.compact-overview{padding:16px 20px}

/* Familiar commerce-style account center, using school brand colors and terms. */
.my-page { padding-bottom: 18px; }
.my-account-hero { margin:4px 0 14px; padding:20px; color:#fff; border-radius:20px;
  background:linear-gradient(130deg,#075e49 0%,#0b7a5e 68%,#15936e 100%);
  box-shadow:0 9px 22px rgba(7,94,73,.17); }
.my-account-hero .kid-head { padding:0; }
.my-account-hero .avatar { background:rgba(255,255,255,.2)!important; color:#fff; }
.my-account-hero .who b { color:#fff; }
.my-account-hero .who p { color:rgba(255,255,255,.82); }
.my-account-arrow { flex:none; border:0; background:transparent; color:#fff; font:32px/1 var(--font); cursor:pointer; padding:8px; }
.my-account-meta { display:flex; align-items:center; gap:10px; margin:15px -2px -3px; padding-top:12px;
  border-top:1px solid rgba(255,255,255,.22); color:rgba(255,255,255,.94); font-size:13px; }
.my-account-meta i { width:1px; height:14px; background:rgba(255,255,255,.38); }
.my-panel { margin:0 0 13px; padding:17px 15px 12px; border:1px solid rgba(226,233,228,.85);
  border-radius:19px; background:var(--surface); box-shadow:0 4px 14px rgba(22,38,31,.035); }
.my-panel-head { display:flex; align-items:center; justify-content:space-between; margin:0 2px 10px; }
.my-panel-head h3 { margin:0; font-size:16px; }
.my-panel-head button { border:0; background:none; color:var(--muted); font:13px var(--font); cursor:pointer; padding:8px 2px; }
.my-order-grid,.my-service-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); }
.my-shortcut { position:relative; display:flex; min-width:0; min-height:88px; flex-direction:column;
  align-items:center; justify-content:center; gap:7px; border:0; border-radius:13px; background:transparent;
  color:var(--ink); cursor:pointer; font:inherit; padding:10px 3px; }
.my-shortcut:hover { background:#f7f8f6; }
.my-shortcut-icon { font-size:26px; line-height:1.2; }
.my-shortcut b { font-size:12px; font-weight:550; white-space:nowrap; }
.my-shortcut-count { position:absolute; top:3px; left:calc(50% + 7px); min-width:19px; height:19px;
  padding:0 5px; display:grid; place-items:center; border:2px solid #fff; border-radius:99px;
  background:#ef594a; color:#fff; font:11px/1 var(--font); font-style:normal; }
.my-shortcut.orange .my-shortcut-icon { color:#ed8a24; }
.my-shortcut.coral .my-shortcut-icon { color:#e86f61; }
.my-shortcut.green .my-shortcut-icon { color:var(--brand); }
.my-shortcut.blue .my-shortcut-icon { color:#5484b4; }
.my-shortcut.gold .my-shortcut-icon { color:#dfa522; }
.my-pack-strip { width:100%; display:flex; align-items:center; gap:12px; margin:0 0 7px; padding:12px 13px;
  border:1px solid #f3e4c7; border-radius:14px; background:#fff9ee; color:var(--ink); text-align:left; font:inherit; cursor:pointer; }
.my-pack-icon { font-size:24px; }
.my-pack-copy { display:flex; flex:1; flex-direction:column; gap:4px; }
.my-pack-copy b { font-size:14px; }
.my-pack-copy small { color:var(--muted); font-size:12px; }
.my-pack-cta { color:#bd7813; font-size:12px; white-space:nowrap; }
.my-service-grid .my-shortcut { min-height:76px; }
.my-settings-row { display:flex; align-items:center; gap:9px; width:100%; min-height:52px; margin-top:3px; padding:0 15px;
  border:1px solid var(--line); border-radius:14px; background:var(--surface); color:var(--ink); text-align:left; font:inherit; cursor:pointer; }
.my-settings-row b { font-size:13px; }
.my-settings-row + .my-settings-row { margin-top:8px; }
.my-settings-row small { flex:1; color:var(--muted); font-size:11px; text-align:right; }
.my-settings-row i { color:var(--muted); font-size:21px; font-style:normal; }
.my-detail-top { margin-bottom:8px; }
.my-detail-title { padding:8px 3px 14px; }
.my-detail-title h1 { font-size:23px; }
.course-management { display:flex; flex-direction:column; align-items:flex-start; margin-top:7px; }
.course-management summary { min-height:36px; padding:8px 10px; color:var(--muted); font-size:12px; }
.danger-action { min-height:40px; border:1px solid #d84545!important; border-radius:9px;
  background:#fff1f0!important; color:#b4232b!important; font-weight:650; }
.danger-action:hover { background:#ffe4e1!important; border-color:#b4232b!important; }
.danger-action:focus-visible { outline:3px solid rgba(180,35,43,.28); outline-offset:2px; }
@media(max-width:350px) { .my-panel{padding-right:10px;padding-left:10px}.my-shortcut b{font-size:11px}.my-settings-row small{max-width:118px} }

/* ============================================================
   B9 私教课 & 优惠券样式
   ============================================================ */
.priv-card {
  width: 100%;
  margin: 12px 0 16px;
  padding: 18px 16px;
  border-radius: 18px;
  background: linear-gradient(135deg, #064e3b 0%, #047857 100%);
  color: #fff;
  box-shadow: 0 6px 20px rgba(6, 78, 59, 0.2);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.priv-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.priv-card-icon {
  font-size: 32px;
}
.priv-card-head h3 {
  margin: 0;
  font-size: 17px;
  color: #fff;
}
.priv-card-sub {
  margin: 3px 0 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
}
.priv-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.priv-tag {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.16);
  color: #fef08a;
  font-size: 11px;
}
.priv-btn {
  align-self: flex-start;
  background: #f59e0b !important;
  color: #fff !important;
  border: none !important;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 10px;
  cursor: pointer;
}
.priv-btn:hover {
  background: #d97706 !important;
}

.chip.trk.private {
  background: #047857 !important;
  color: #fff !important;
}

.priv-step {
  margin-bottom: 18px;
}
.priv-step-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--ink);
}
.priv-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.priv-chip {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  font-size: 13px;
  cursor: pointer;
  color: var(--ink);
  transition: all 0.15s ease;
}
.priv-chip.active {
  border-color: #047857;
  background: #ecfdf5;
  color: #047857;
  font-weight: 600;
}
.priv-teacher-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  margin-bottom: 8px;
  transition: all 0.15s ease;
}
.priv-teacher-card.active {
  border-color: #047857;
  background: #ecfdf5;
}
.priv-quote-box {
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  padding: 12px 14px;
  margin-top: 10px;
}
.priv-quote-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 4px;
}
.reschedule-box {
  margin-top: 8px;
  padding: 10px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 10px;
}
.slot-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}
.btn-reschedule {
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid #10b981;
  background: #fff;
  color: #047857;
  font-size: 12px;
}
.btn-reschedule:hover {
  background: #10b981;
  color: #fff;
}
.coupon-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 8px;
  background: var(--surface);
}
.coupon-item.unclaimed {
  border-color: #f59e0b;
  background: #fffbeb;
}
.coupon-item.expired {
  opacity: 0.6;
}

/* 薪资明细可折叠卡: 收起只留汇总行, 展开看逐课结算 */
details.pay-detail > summary { cursor: pointer; list-style: none; display: flex;
  align-items: center; gap: 8px; font-size: 14px; font-weight: 800; color: var(--brand-deep); }
details.pay-detail > summary::-webkit-details-marker { display: none; }
details.pay-detail > summary::after { content: "▸"; margin-left: auto; color: var(--muted); font-size: 13px; }
details.pay-detail[open] > summary::after { content: "▾"; }
details.pay-detail > summary .muted { font-weight: 500; font-size: 10.5px; }
details.pay-detail .pay-rows { margin-top: 10px; }

/* ---------- 📅 课表日历板 (台账 J2, 2026-10-13) ----------
   与 App 端 calendar-board.tsx 同一视觉口径: past 暗色 / future 正常色 / off 中性。
   ⚠️ past 用实心中灰 #D3DAD6 且**不降透明度** —— 初版用近白灰叠 opacity 会往白里透(更亮),
   与 future 亮薄荷亮度只差 4.3, 肉眼不可辨, 不满足用户「已经上完的暗色表示」(实测踩中)。 */
.sched-views { display: flex; gap: 8px; }
.chip.on { background: var(--brand); color: #fff; }
.cal-nav { display: flex; align-items: center; gap: 6px; margin-top: 8px; }
.cal-nav .cal-title { margin-left: auto; font-size: 12px; font-weight: 700; color: var(--ink); }
.cal-board {
  margin-top: 10px; background: var(--surface); border: 1.5px solid var(--line);
  border-radius: 14px; padding: 10px;
}
.cal-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.cal-mode-txt { font-size: 11px; font-weight: 700; color: var(--ink); }
.cal-legend { margin-left: auto; font-size: 9px; color: var(--muted); display: flex; align-items: center; gap: 4px; }
.cal-sw { width: 8px; height: 8px; border-radius: 2px; border: 1px solid #CFD6D2; display: inline-block; }
.cal-sw.past { background: #D3DAD6; }
.cal-sw.future { background: var(--brand-soft); }
.cal-sw.off { background: #F2F3F5; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-dayhead { text-align: center; }
.cal-dayhead i { font-style: normal; font-size: 9.5px; font-weight: 700; color: var(--muted); display: block; }
.cal-dayhead b { font-size: 12px; font-weight: 800; color: var(--ink); display: block; }
.cal-dayhead.today i, .cal-dayhead.today b { color: var(--brand); }
.cal-cell {
  min-height: 62px; border: 1px solid var(--line); border-radius: 6px; padding: 3px;
  background: #FAFBFA; display: flex; flex-direction: column;
}
.cal-cell.today { background: #F3FAF6; border-color: #BFE0D2; }
.cal-none { font-size: 9px; color: var(--muted); text-align: center; margin-top: 4px; }
.cal-block {
  display: block; width: 100%; text-align: left; cursor: pointer; font-family: var(--font);
  border: 0; border-left: 2.5px solid #9DADA6; border-radius: 4px;
  padding: 2px 3px; margin-bottom: 3px; background: #D3DAD6; color: #43504B;
}
.cal-block i { font-style: normal; display: block; font-size: 7.5px; font-weight: 700; }
.cal-block .cal-txt { display: block; font-size: 9.5px; line-height: 1.2; white-space: nowrap; overflow: hidden; }
.cal-block.future { background: var(--brand-soft); border-left-color: var(--brand); color: var(--brand-deep); }
.cal-block.off { background: #F2F3F5; border-left-color: #DDE1E4; color: var(--muted); opacity: .75; }
.cal-wd { margin-bottom: 3px; }
.cal-wdcell { text-align: center; font-size: 9px; font-weight: 700; color: var(--muted); }
.cal-month { margin-bottom: 3px; }
.cal-mcell {
  min-height: 46px; border: 1px solid var(--line); border-radius: 5px; padding: 3px; background: #fff;
}
.cal-mcell.off { background: #F7F8F7; }
.cal-mcell.off > i { color: #B9C2BE; }
.cal-mcell.today { background: #F3FAF6; border-color: #BFE0D2; }
.cal-mcell > i { font-style: normal; display: block; font-size: 8.5px; font-weight: 600; color: var(--ink); }
.cal-mcell .cal-block { border-left: 0; border-radius: 3px; padding: 1px 2px; margin-top: 1px; }
.cal-mcell .cal-block .cal-txt { font-size: 7.5px; }
.cal-more { font-size: 7px; color: var(--muted); }
/* 周视图时间轴 (2026-10-14 用户参考图): 左侧小时刻度 + 7 天列, 课块按开始时间绝对定位;
   与旧「堆叠卡片」周视图的区别 = 同一天多节课按时刻分排在各自时段, 不再挤在一格里 */
.cal-tg-head, .cal-tg-body { display: grid; grid-template-columns: 30px repeat(7, 1fr); column-gap: 4px; }
.cal-tg-head { margin-bottom: 2px; }
.cal-tg-times { display: block; }
.cal-tg-times i { display: block; height: var(--cal-hour-h, 44px); font-style: normal; font-size: 8px;
  color: var(--muted); text-align: right; transform: translateY(-4px); }
.cal-tg-day { position: relative; display: block; padding: 0; min-height: 0;
  height: calc(12 * var(--cal-hour-h, 44px)); overflow: hidden; }   /* 09:00–21:00 共 12 小时行 */
.cal-tg-hour { display: block; height: var(--cal-hour-h, 44px); border-bottom: 1px solid #EDF1EE; }
.cal-tg-day .cal-block { position: absolute; margin-bottom: 0; }
/* 手机端压缩 (2026-10-15 用户「长条占满屏」): 行高 28 → 块高 25, 字号降档仍保两行
   (时间 6.5 + 标题 8×1.25=10, 共 ~18px < 25-4padding); calApplyFit 按实测 fontSize 自适应, 无需特判 */
.cal-block.compact i { font-size: 6.5px; }
.cal-block.compact .cal-txt { font-size: 8px; line-height: 1.25; }
.cal-tg-now { position: absolute; left: 0; right: 0; height: 0; border-top: 2px solid #E5484D;
  z-index: 3; pointer-events: none; }
.cal-tg-now::after { content: ""; position: absolute; left: -1px; top: -3px; width: 4px; height: 4px;
  border-radius: 50%; background: #E5484D; }
/* 宽屏解放: 仅课表日历视图(用户裁定「课表页解除限宽」); 手机宽度下 ≤430 时与原先逐像素一致 */
#app.is-wide { max-width: 1100px; }
