/* ==========================================================================
   大班页面的补充样式
   只补老站没有的东西（表单、订单、课程区、后台），颜色、圆角、阴影全部用 main.css 的令牌，
   卡片、按钮、价格卡、FAQ、页头页脚直接复用老站的类。手机优先：先写窄屏，再在 ≥721px 放宽
   ========================================================================== */

.ke-main .all-block { padding: 28px 0 44px; }
.ke-main .all-block + .all-block { padding-top: 44px; }
.ke-main .sec-head { margin-bottom: 26px; }
body.ke:not(.ke-learn) .ke-main > .all-block:first-child { padding-top: 32px; }

.ke-devbar {
  padding: 6px 16px; font-size: 12px; line-height: 1.5;
  background: #fff7d6; color: #6b5300; text-align: center;
}
.ke-devnote { margin-bottom: 14px; padding: 10px 14px; border-radius: var(--r-sm); background: #fff7d6; color: #6b5300; font-size: 13px; line-height: 1.7; }

.ke-flash { margin: 16px auto 0; max-width: 860px; padding: 12px 16px; border-radius: var(--r-sm); font-size: 14px; line-height: 1.7; }
.ke-flash--ok { background: var(--primary-050); color: var(--primary-700); border: 1px solid var(--primary-100); }
.ke-flash--error { background: var(--accent-050); color: #b13a12; border: 1px solid rgba(255, 101, 52, .25); }

/* ---------- 卡片与文字 ---------- */
.ke-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 20px 18px; box-shadow: var(--sh-1);
}
.ke-card + .ke-card, .ke-card + form, .ke-alert + .ke-card { margin-top: 16px; }
.ke-card__title { font-size: 17px; font-weight: 650; color: var(--ink); margin-bottom: 14px; }
.ke-center { text-align: center; padding: 34px 20px; }
.ke-lead { font-size: 17px; font-weight: 600; color: var(--ink); line-height: 1.7; }
.ke-hint { margin-top: 10px; font-size: 13.5px; line-height: 1.8; color: var(--ink-3); }
.ke-hint a, .ke-more, .ke-link { color: var(--primary); }
.ke-muted { font-size: 13px; color: var(--ink-4); }
.ke-actions { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: inherit; }
.ke-center .ke-actions { justify-content: center; }
.ke-more { display: inline-block; margin-top: 12px; font-size: 14px; }
.ke-h2 { margin: 28px 0 12px; font-size: 18px; font-weight: 650; }
.ke-err { display: block; margin-top: 4px; color: #b13a12; font-size: 12px; line-height: 1.6; max-width: 26em; }

.ke-badge {
  display: inline-block; vertical-align: middle; margin-left: 8px;
  padding: 2px 9px; border-radius: 999px; font-size: 12px; line-height: 1.6; font-weight: 500;
  background: var(--surface-3); color: var(--ink-3); white-space: nowrap;
}
.ke-badge--paid, .ke-badge--live { background: #e3f6ec; color: #17794a; }
.ke-badge--pending, .ke-badge--soon { background: #fff2dc; color: #9a5b00; }
.ke-badge--refunded { background: var(--accent-050); color: #b13a12; }
.ke-badge--upcoming { background: var(--primary-050); color: var(--primary-700); }

/* ---------- 表单 ---------- */
.ke-form .ke-field { display: block; margin-bottom: 16px; }
.ke-field > span { display: block; margin-bottom: 6px; font-size: 13.5px; color: var(--ink-2); }
.ke input[type="text"], .ke input[type="tel"], .ke input[type="email"], .ke input[type="datetime-local"], .ke input:not([type]),
.ke textarea, .ke select, .ke input[type="file"] {
  width: 100%; min-height: 46px; padding: 10px 14px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--surface);
  font-size: 16px; /* 低于 16px 时 iOS 会在聚焦时放大页面 */
  line-height: 1.5; color: var(--ink);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.ke textarea { min-height: 96px; resize: vertical; }
.ke input[type="file"] { padding: 10px; font-size: 14px; }
.ke input:focus, .ke textarea:focus, .ke select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-100); }
.ke-inline { display: flex; gap: 10px; }
.ke-inline input { flex: 1; min-width: 0; }
.ke-sms { flex: none; min-width: 112px; height: 46px; padding: 0 12px; font-size: 14px; }
.ke-sms:disabled { opacity: .55; }
.ke-msg { min-height: 0; font-size: 13.5px; line-height: 1.7; }
.ke-msg:not(:empty) { margin: 2px 0 12px; }
.ke-msg.is-err { color: #b13a12; }
.ke-msg.is-ok { color: #17794a; }
.ke-check { display: flex; gap: 8px; align-items: flex-start; margin-bottom: 12px; font-size: 14px; line-height: 1.7; color: var(--ink-2); }
.ke-check input { margin-top: 5px; width: 17px; height: 17px; flex: none; accent-color: var(--primary); }
.ke-check a { color: var(--primary); }
.ke-form__title { font-size: 18px; font-weight: 650; line-height: 1.5; margin-bottom: 16px; }
.ke-form__title small { display: block; margin-top: 4px; font-size: 13px; font-weight: 400; color: var(--ink-3); }
.ke-two { display: grid; gap: 0 14px; }
.btn:disabled { opacity: .6; cursor: default; transform: none; }

/* 档位单选 */
.ke-tiers { border: 0; padding: 0; margin: 0 0 16px; }
.ke-tiers legend { font-size: 13.5px; color: var(--ink-2); margin-bottom: 8px; }
.ke-tier {
  display: flex; align-items: center; gap: 12px; padding: 14px; margin-bottom: 10px;
  border: 1px solid var(--line); border-radius: 12px; cursor: pointer;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.ke-tier:has(input:checked) { border-color: var(--primary); background: var(--primary-050); }
.ke-tier.is-disabled { opacity: .5; cursor: not-allowed; }
.ke-tier input { accent-color: var(--primary); width: 18px; height: 18px; flex: none; }
.ke-tier__main { flex: 1; min-width: 0; font-size: 15px; line-height: 1.5; }
.ke-tier__main small, .ke-tier__price small { display: block; font-size: 12.5px; color: var(--ink-3); font-weight: 400; }
.ke-tier__price { font-size: 20px; font-weight: 700; color: var(--accent); text-align: right; white-space: nowrap; }
.ke-account { margin: 4px 0 14px; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); font-size: 13.5px; color: var(--ink-2); line-height: 1.7; }
/* 登录页：邮箱验证码 / 手机验证码切换（链接，不靠脚本） */
.ke-logintabs { display: flex; gap: 4px; padding: 4px; margin: 16px 0 0; border-radius: 12px; background: var(--surface-2); }
.ke-logintabs a { flex: 1; text-align: center; padding: 9px 8px; border-radius: 9px; font-size: 14.5px; color: var(--ink-2); text-decoration: none; }
.ke-logintabs a[aria-current="page"] { background: #fff; color: var(--primary-700); font-weight: 600; box-shadow: 0 1px 3px rgba(20, 24, 27, .08); }
.ke-logintabs + .ke-flash, .ke-logintabs + .ke-card { margin-top: 12px; }
/* 「我的」里的登录方式卡片：已绑定的两种 + 补绑另一种的表单 */
.ke-loginways__bind { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.ke-loginways__bind h4 { margin: 0 0 10px; font-size: 15px; }
.m-selftest-phone { margin-top: 10px; }

/* ---------- 订单 ---------- */
.ke-kv { display: grid; grid-template-columns: 5.5em 1fr; gap: 8px 12px; font-size: 14.5px; line-height: 1.6; margin-bottom: 18px; }
.ke-kv dt { color: var(--ink-3); }
.ke-kv dd { color: var(--ink); word-break: break-all; }
.ke-money { font-size: 18px; font-weight: 700; color: var(--accent); }
.ke-money small { font-size: 12px; font-weight: 400; color: var(--ink-3); }
.ke-pay-btns { display: grid; gap: 10px; }
.ke-pay-qr { margin-top: 16px; text-align: center; font-size: 13.5px; color: var(--ink-3); }
.ke-pay-qr svg { width: 220px; height: 220px; display: block; margin: 0 auto 8px; }
.ke-pay-qr p { margin: 0 0 6px; }
.ke-copy { display: flex; gap: 8px; margin: 10px 0; }
.ke .ke-copy input { flex: 1; min-width: 0; }
.ke-copy .btn { flex: none; }
.ke-or { margin: 18px 0; text-align: center; font-size: 13px; color: var(--ink-4); }
.ke-pay-manual .ke-doc { padding: 14px 16px; border-radius: 12px; background: var(--surface-2); }
.ke-qr { margin: 16px auto 0; max-width: 220px; text-align: center; }
.ke-qr img { width: 100%; border-radius: 10px; border: 1px solid var(--line); }
.ke-qr figcaption { margin-top: 6px; font-size: 13px; color: var(--ink-3); }
/* 临时支付宝收款单：整张收款单图（码在中间），放大一点方便手机长按和截图后扫 */
.ke-pay-manual .ke-pay-steps { margin: 0; padding: 14px 16px 14px 36px; list-style: decimal; line-height: 1.75; }
.ke-pay-manual .ke-pay-steps li + li { margin-top: 6px; }
.ke-pay-manual .ke-pay-steps b { word-break: break-all; }
/* 后面「我的」页班级群码那条 .ke-qr 规则会把居中顶掉，收款块里的码按这里居中 */
.ke-pay-manual .ke-qr { margin: 16px auto 0; }
.ke-pay-manual .ke-qr--alipay { max-width: 280px; }
.ke-qr--alipay img { border: 0; }
.ke-pay-alipay { padding-bottom: 20px; border-bottom: 1px dashed var(--line); }
.ke-pay-manual .ke-pay-alipay + .ke-qr { margin-top: 20px; }

/* ---------- 销售页 ---------- */
.ke-hero__cta { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; }
.ke-hero__price { font-size: 26px; font-weight: 700; color: #fff; letter-spacing: -.3px; }
.ke-hero__intro { margin-top: 10px; }
.ke-grid { gap: 16px; }
.ke-plans--one { display: block; max-width: 420px; margin: 0 auto; }
.ke-plan__note { margin-top: 6px; font-size: 13px; color: var(--ink-3); }
.ke-plan__gap { height: 24px; }
.ke-values { display: grid; gap: 10px; }
.ke-values li {
  display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 14px 44px; position: relative;
  border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-size: 15px; line-height: 1.7;
}
.ke-values li::before {
  content: ""; position: absolute; left: 16px; top: 19px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--primary-050) url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f6be5' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / 10px no-repeat;
}
.ke-values span { font-size: 13.5px; color: var(--ink-3); }
.ke-case__title { font-size: 16px; font-weight: 650; line-height: 1.5; }
.ke-case__ft { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; font-size: 13.5px; color: var(--ink-3); }
.ke-case__ft b { color: var(--primary-700); }
.ke-case p { margin-top: 10px; font-size: 14px; line-height: 1.85; color: var(--ink-2); }
.ke-instructor { display: grid; gap: 18px; }
.ke-instructor__avatar { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; }
.ke-instructor__name { font-size: 20px; font-weight: 650; }
.ke-instructor__title { margin: 4px 0 12px; font-size: 14px; color: var(--ink-3); }
.ke-dock__price { flex: .8; background: none; font-size: 17px; font-weight: 700; color: var(--accent); }
.ke-dock .dock__item { font-size: 14px; }
.ke-dock .ke-dock--on { color: var(--primary); background: var(--primary-050); font-weight: 600; }

/* ---------- 课程区 ---------- */
.ke-wm { position: fixed; inset: 0; z-index: 150; pointer-events: none; background-repeat: repeat; }
.ke-alert { padding: 12px 16px; border-radius: 12px; background: #fff2dc; color: #7a4a00; font-size: 14px; line-height: 1.8; margin-bottom: 16px; }
.ke-alert a { color: #7a4a00; text-decoration: underline; }
.ke-course { display: grid; gap: 4px; }
.ke-course .ke-badge { margin-left: 0; }
.ke-course__title { margin-top: 8px; font-size: 20px; font-weight: 650; line-height: 1.45; }
.ke-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; padding: 11px 0; border-top: 1px solid var(--line-2); font-size: 14.5px; line-height: 1.6; }
.ke-list li:first-child { border-top: 0; padding-top: 0; }
.ke-list a { color: var(--ink); flex: 1; min-width: 0; }
.ke-list small { color: var(--ink-4); font-size: 12.5px; width: 100%; }
.ke-list .ke-badge { margin-left: 0; }
.ke-scheds { display: grid; }
.ke-sched { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line-2); }
.ke-sched:first-child { border-top: 0; padding-top: 0; }
.ke-sched__time { grid-column: 1 / -1; font-size: 13px; color: var(--ink-3); }
.ke-sched__main { font-size: 15px; line-height: 1.6; }
.ke-sched__main .ke-badge { margin-left: 6px; }
.ke-sched--ended .ke-sched__main b { color: var(--ink-2); font-weight: 500; }
.ke-btn-sm { height: 34px; padding: 0 14px; font-size: 13.5px; }
.ke-lessons { counter-reset: l; }
.ke-lessons li { counter-increment: l; display: flex; align-items: center; gap: 10px; padding: 12px 0; border-top: 1px solid var(--line-2); font-size: 15px; line-height: 1.6; }
.ke-lessons li:first-child { border-top: 0; padding-top: 0; }
.ke-lessons li::before { content: counter(l, decimal-leading-zero); flex: none; width: 2em; font-size: 13px; font-weight: 600; color: var(--primary); }
.ke-lessons a { flex: 1; color: var(--ink); }
.ke-tags i { font-style: normal; margin-left: 6px; padding: 1px 7px; border-radius: 6px; background: var(--surface-2); font-size: 12px; color: var(--ink-3); }
.ke-pager { display: flex; justify-content: space-between; gap: 12px; margin-top: 20px; font-size: 14px; }
.ke-pager a { color: var(--primary); max-width: 48%; }
.ke-logout { margin-top: 22px; text-align: center; font-size: 13px; color: var(--ink-4); }
.ke-logout span { margin-right: 10px; }
.ke-link { background: none; border: 0; padding: 0; font-size: 13px; cursor: pointer; }
.ke-logout a { color: var(--primary); }

/* 正文排版：课时页里飞书转过来的内容 */
.ke-doc { font-size: 15.5px; line-height: 1.95; color: var(--ink-2); word-break: break-word; }
.ke-doc > :first-child { margin-top: 0; }
.ke-doc p { margin: 0 0 14px; }
.ke-doc h2 { margin: 30px 0 12px; font-size: 20px; line-height: 1.5; color: var(--ink); font-weight: 650; }
.ke-doc h3 { margin: 24px 0 10px; font-size: 17px; line-height: 1.5; color: var(--ink); font-weight: 650; }
.ke-doc h4, .ke-doc h5, .ke-doc h6 { margin: 20px 0 8px; font-size: 15.5px; color: var(--ink); font-weight: 650; }
.ke-doc strong { color: var(--ink); font-weight: 650; }
.ke-doc a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.ke-doc ul, .ke-doc ol { margin: 0 0 14px; padding-left: 1.4em; }
.ke-doc ul { list-style: disc; }
.ke-doc ol { list-style: decimal; }
.ke-doc li { margin: 4px 0; }
.ke-doc li > ul, .ke-doc li > ol { margin: 4px 0 0; }
.ke-doc blockquote { margin: 0 0 14px; padding: 10px 16px; border-left: 3px solid var(--primary-100); background: var(--surface-2); border-radius: 0 10px 10px 0; color: var(--ink-2); }
.ke-doc blockquote p:last-child { margin-bottom: 0; }
.ke-doc code { padding: 1px 6px; border-radius: 5px; background: var(--surface-3); font-size: .9em; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.ke-doc .ke-code { margin: 0 0 16px; padding: 14px 16px; border-radius: 12px; background: #0f1b2d; color: #e6edf6; overflow-x: auto; font-size: 13.5px; line-height: 1.7; }
.ke-doc .ke-code code { padding: 0; background: none; color: inherit; font-size: inherit; }
.ke-doc hr { margin: 24px 0; border: 0; border-top: 1px solid var(--line); }
.ke-doc .ke-figure { margin: 0 0 16px; }
.ke-doc .ke-figure img { display: block; max-width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--line-2); }
.ke-doc figcaption { margin-top: 6px; font-size: 13px; color: var(--ink-4); text-align: center; }
.ke-doc .ke-callout { margin: 0 0 16px; padding: 12px 16px; border-radius: 12px; background: var(--primary-050); border: 1px solid var(--primary-100); }
.ke-doc .ke-callout p:last-child { margin-bottom: 0; }
.ke-doc .ke-table { margin: 0 0 16px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.ke-doc table { border-collapse: collapse; min-width: 100%; font-size: 14px; line-height: 1.7; }
.ke-doc th, .ke-doc td { padding: 8px 12px; border: 1px solid var(--line); text-align: left; vertical-align: top; min-width: 7em; max-width: 26em; }
.ke-doc th { background: var(--surface-2); color: var(--ink); font-weight: 600; white-space: nowrap; }
.ke-doc td p, .ke-doc th p { margin: 0; }
.ke-content { padding: 22px 18px; }

.ke-video { margin-bottom: 16px; }
.ke-video__title { font-size: 15px; font-weight: 650; line-height: 1.6; color: var(--ink); margin: 4px 0 8px; }
.ke-video + .ke-video { margin-top: 24px; }
.ke-video__box { position: relative; border-radius: var(--r); overflow: hidden; background: #0b1424; min-height: 180px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ke-video__box video { display: block; width: 100%; max-height: 70vh; background: #000; }
.ke-video__box .ke-hint { color: rgba(255, 255, 255, .7); padding: 0 16px 10px; }
.ke-video__box > div { width: 100%; }

.ke-hw { margin-top: 16px; }
.ke-hw .ke-doc { margin-bottom: 16px; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); font-size: 14.5px; }
.ke-sub-title { margin: 22px 0 10px; font-size: 15px; font-weight: 650; }
.ke-subs { display: grid; gap: 12px; }
.ke-sub { padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.ke-sub__head { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; margin-bottom: 8px; }
.ke-sub__head small { color: var(--ink-4); }
.ke-sub__body { font-size: 14.5px; line-height: 1.85; color: var(--ink-2); }
.ke-sub__body p { margin-bottom: 8px; }
.ke-sub__links, .ke-sub__files { margin-top: 6px; font-size: 13.5px; line-height: 1.9; word-break: break-all; }
.ke-sub__links a, .ke-sub__files a { color: var(--primary); }
.ke-sub__files small { margin-left: 8px; color: var(--ink-4); }
.ke-review { margin-top: 12px; padding: 12px 14px; border-radius: 10px; background: #f1f8f3; border: 1px solid #d5ecdc; font-size: 14px; line-height: 1.85; color: var(--ink-2); }
.ke-review b { color: #17794a; margin-right: 8px; }
.ke-review small { color: var(--ink-4); }
.ke-review p { margin-top: 6px; }
.ke-review-form { margin-top: 12px; }
.ke-review-form textarea { min-height: 72px; margin-bottom: 8px; }
.ke-sub-meta { font-size: 13.5px; color: var(--ink-3); margin-bottom: 10px; }
.ke-sub-meta a { color: var(--primary); }

/* ---------- 后台 ---------- */
.ke-admin-block { padding: 24px 0 60px !important; }
.ke-tabs { display: flex; gap: 6px; overflow-x: auto; -webkit-overflow-scrolling: touch; margin-bottom: 18px; padding-bottom: 4px; }
.ke-tabs a { flex: none; padding: 8px 14px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); font-size: 14px; color: var(--ink-2); }
.ke-tabs a.is-on { background: var(--primary); border-color: var(--primary); color: #fff; }
.ke-filter { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 14px; }
.ke-filter input, .ke-filter select { width: auto; flex: 1 1 140px; min-height: 38px; padding: 6px 10px; font-size: 14px; }
.ke-filter .ke-check { margin: 0; white-space: nowrap; align-items: center; }
.ke-filter .ke-check input { flex: none; width: 17px; height: 17px; min-height: 0; margin: 0; padding: 0; }
.ke-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.ke-table-a { width: 100%; border-collapse: collapse; font-size: 13.5px; line-height: 1.6; background: var(--surface); }
.ke-table-a th, .ke-table-a td { padding: 9px 10px; border-bottom: 1px solid var(--line-2); text-align: left; vertical-align: top; white-space: nowrap; }
.ke-table-a th { color: var(--ink-3); font-weight: 500; background: var(--surface-2); }
.ke-table-a td small { display: block; color: var(--ink-4); font-size: 12px; }
.ke-table-a a { color: var(--primary); }
.ke-table-a .ke-badge { margin-left: 0; }
.ke-ops { display: flex; flex-wrap: wrap; gap: 6px; }
.ke-inline-form { display: inline-flex; align-items: center; gap: 6px; margin: 0; }
.ke-inline-form .ke-msg:not(:empty) { margin: 0; font-size: 12px; }
.ke-tiles { gap: 12px; margin-bottom: 8px; }
.ke-tile { display: block; padding: 18px 16px; }
.ke-tile .stat-tile__num { font-size: 28px; }
.ke-cols { display: grid; gap: 16px; margin-top: 18px; }
.ke-cols .ke-card + .ke-card { margin-top: 0; }
.ke-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 12px; }
.ke-grow { flex: 1 1 260px; margin: 0; }
.ke-log { margin: 0; white-space: pre-wrap; font-size: 12px; line-height: 1.6; color: var(--ink-2); max-width: 36em; font-family: inherit; }
.ke-admin .grid--4 { grid-template-columns: repeat(2, 1fr); }

@media (min-width: 721px) {
  .ke-main .all-block { padding: 40px 0 64px; }
  .ke-card { padding: 26px 28px; }
  .ke-content { padding: 34px 40px; }
  .ke-two { grid-template-columns: 1fr 1fr; }
  .ke-instructor { grid-template-columns: auto 1fr; align-items: start; gap: 28px; }
  .ke-sched { grid-template-columns: 11em 1fr auto; }
  .ke-sched__time { grid-column: auto; font-size: 14px; }
  .ke-cols { grid-template-columns: 1fr 1fr; }
  .ke-admin .grid--4 { grid-template-columns: repeat(4, 1fr); }
  .ke-doc .ke-code { font-size: 14px; }
}
@media (max-width: 720px) {
  .ke-main .grid--3, .ke-main .grid--2 { grid-template-columns: 1fr; }
  .ke-hero__price { font-size: 22px; }
}

/* ---------- 正文里的附件、网页嵌入、文档视频、站内直播 ---------- */
.ke-doc .ke-file { margin: 0 0 14px; }
.ke-doc .ke-file a {
  display: inline-flex; align-items: center; gap: 8px; max-width: 100%;
  padding: 10px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2);
  color: var(--ink); text-decoration: none; font-size: 14.5px; line-height: 1.5; word-break: break-all;
}
.ke-doc .ke-file a::before {
  content: ""; flex: none; width: 18px; height: 18px;
  background: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f6be5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v12'/%3E%3Cpath d='M7 10l5 5 5-5'/%3E%3Cpath d='M5 21h14'/%3E%3C/svg%3E") center / contain no-repeat;
}
.ke-doc .ke-file a:active { background: var(--surface-3); }
.ke-embed { position: relative; margin: 0 0 16px; border-radius: 12px; overflow: hidden; background: var(--surface-2); aspect-ratio: 16 / 9; }
.ke-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ke-embed--live { aspect-ratio: 16 / 10; background: #0b1424; }
.ke-video--doc { margin: 0 0 16px; }
.ke-video__name { margin-top: 6px; font-size: 13px; color: var(--ink-3); text-align: center; }
.ke-live .ke-video__box { min-height: 210px; }
@supports not (aspect-ratio: 16 / 9) {
  .ke-embed { height: 0; padding-top: 56.25%; }
}

/* ---------- 陪跑转化卡：复用首页服务卡，单张居中 ---------- */
.ke-coach { max-width: 460px; margin: 0 auto; }
.ke-card + .ke-coach, .ke-coach + .ke-logout { margin-top: 16px; }
.ke-coach .entry-card { display: block; }
/* 首页大图卡有 460px 的最小高度，单张放在这里会留一大块空，改成随内容高 */
.ke-coach .entry-card--photo { min-height: 0; }

/* 后台：专属登录链接 */
.ke-link-url { font-size: 12.5px; word-break: break-all; user-select: all; }
.ke-msg .btn { margin-left: 4px; }
/* 学员：专属登录链接确认页 */
.ke-linkbox form { margin: 18px 0 14px; }
.ke-linkbox .ke-hint { margin: 8px 0 0; }

/* ==========================================================================
   大班 v2 学习区外壳（views/layout.js 的 shell）
   深色标题带接老站页头（页头是 fixed 透明的，所以标题带顶部留出页头高度）；
   导航：≥921px 是标题带下面的一排标签，≤920px 吸在底部（和老站的吸底条同一套外观）
   ========================================================================== */
/* 学习区外壳：课程顶栏（不出现官网导航）。不用 backdrop-filter：手机上课程导航是顶栏里的 fixed 元素，
   祖先有 backdrop-filter / transform 会让 fixed 相对它定位，吸底就失效 */
body.ke-shell { background: var(--surface-2); }
/* 学习区没有官网页头了，正文目录、标题跳转这些按页头高度留空的地方（fsdoc.css 用 --header-h）只需要避开课程顶栏 */
body.ke-shell { --header-h: 0px; }
@media (max-width: 920px) { body.ke-shell { --header-h: 40px; } }
.ke-topbar { position: sticky; top: 0; z-index: 200; background: var(--surface); border-bottom: 1px solid var(--line); }
.ke-topbar__inner { max-width: 1180px; margin: 0 auto; padding: 0 20px; height: 60px; display: flex; align-items: center; gap: 18px; }
.ke-topbar__brand { display: flex; align-items: center; gap: 10px; min-width: 0; color: var(--ink); flex: none; }
.ke-topbar__brand img { width: 30px; height: 30px; border-radius: 8px; flex: none; }
.ke-topbar__brand span { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.ke-topbar__brand b { font-size: 15px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ke-topbar__brand small { font-size: 11.5px; color: var(--ink-4); }
.ke-topbar__right { margin-left: auto; display: flex; align-items: center; gap: 12px; flex: none; }
.ke-topbar__admin { font-size: 13px; color: var(--ink-3); padding: 5px 10px; border: 1px solid var(--line); border-radius: 999px; }
.ke-topbar__admin:hover { color: var(--primary); border-color: var(--primary); }
.ke-topbar__me { display: flex; align-items: center; gap: 8px; color: var(--ink-2); font-size: 14px; }
.ke-topbar__me[aria-current="page"] { color: var(--primary); }
.ke-topbar__avatar { width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--primary-050); color: var(--primary-700); font-size: 13px; font-weight: 600; }

.ke-tabbar { display: flex; }
.ke-tabbar a { display: flex; align-items: center; justify-content: center; gap: 6px; color: var(--ink-2); font-size: 15px; line-height: 1.2; }
.ke-tabbar a[aria-current="page"] { color: var(--primary); font-weight: 600; }
@media (min-width: 921px) {
  .ke-topbar .ke-tabbar { align-self: stretch; gap: 2px; margin-left: 12px; }
  .ke-tabbar a { padding: 0 16px; border-bottom: 2px solid transparent; }
  .ke-tabbar a:hover { color: var(--primary); }
  .ke-tabbar a[aria-current="page"] { border-bottom-color: var(--primary); }
  .ke-tabbar svg { width: 18px; height: 18px; }
}
@media (max-width: 920px) {
  .ke-topbar__inner { height: 54px; padding: 0 16px; gap: 10px; }
  .ke-topbar__who { display: none; }
  .ke-tabbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 160;
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
    background: var(--surface); border-top: 1px solid var(--line);
    box-shadow: 0 -4px 24px rgba(12, 22, 48, .08);
  }
  .ke-tabbar a { flex: 1; flex-direction: column; gap: 2px; min-height: 48px; font-size: 11.5px; border-radius: 10px; }
  .ke-tabbar a:active { background: var(--surface-3); }
  .ke-shell { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
}

/* 页面标题（浅色，不占一屏） */
.ke-shell .ke-main .all-block { padding-top: 22px; }
.ke-shell__head { padding-top: 22px; }
.ke-shell__head + .all-block { padding-top: 6px; }
.ke-pagehead { margin-bottom: 16px; }
.ke-pagehead__crumb { font-size: 13px; color: var(--ink-4); margin-bottom: 4px; }
.ke-pagehead__crumb a { color: var(--ink-3); }
.ke-pagehead__crumb a:hover { color: var(--primary); }
.ke-pagehead__title { font-size: clamp(21px, 2.6vw, 26px); font-weight: 700; color: var(--ink); line-height: 1.35; }
.ke-pagehead__desc { margin-top: 4px; font-size: 14px; color: var(--ink-3); }
.ke-shell__block { padding: 22px 0 56px; }
.ke-shell .ke-devbar { margin: 0; }
.ke-shell .ke-flash { margin-top: 14px; max-width: none; }
@media (max-width: 920px) {
  .ke-shell__block, .ke-shell .ke-main .all-block { padding-top: 16px; padding-bottom: 32px; }
  .ke-shell__head { padding-top: 16px; }
}

/* 学习首页仪表盘：问候 + 一排数字，下面是卡片网格（电脑两列、手机一列） */
.ke-dash__hello { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 24px; margin-bottom: 18px; }
.ke-dash__hello h1 { font-size: clamp(22px, 2.6vw, 28px); font-weight: 700; color: var(--ink); line-height: 1.3; }
.ke-dash__hello p { margin-top: 4px; font-size: 14px; color: var(--ink-3); }
.ke-stats { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(96px, auto); gap: 10px; }
.ke-stat { display: flex; flex-direction: column; gap: 2px; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); color: inherit; }
.ke-stat:hover { border-color: var(--primary-100); }
.ke-stat span { font-size: 12px; color: var(--ink-3); white-space: nowrap; }
.ke-stat b { font-size: 18px; font-weight: 700; color: var(--ink); white-space: nowrap; }
.ke-dash { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: stretch; margin-top: 16px; }
.ke-dash > * { margin: 0 !important; min-width: 0; }
.ke-dash > .ke-tutor { grid-column: 1 / -1; }
.ke-dash .ke-course { display: flex; flex-direction: column; align-items: stretch; gap: 14px; }
.ke-dash + .ke-card, .ke-dash ~ .ke-coach { margin-top: 16px; }
@media (max-width: 720px) {
  .ke-dash { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .ke-stats { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
}

/* 学习区页脚：一行，备案号保留 */
.ke-foot { padding: 22px 0 26px; font-size: 12.5px; color: var(--ink-4); text-align: center; }
.ke-foot a { color: var(--ink-3); }
.ke-foot a:hover { color: var(--primary); }


/* 课程里「目录 / 课表」的切换 */
.ke-seg { display: inline-flex; padding: 3px; margin-bottom: 14px; background: var(--surface-3); border-radius: 999px; }
.ke-seg a { padding: 7px 16px; border-radius: 999px; font-size: 14px; color: var(--ink-2); }
.ke-seg a.is-on { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: var(--sh-1); }
.ke-sched__extra { list-style: none; padding: 0 0 12px; font-size: 13.5px; color: var(--ink-2); }

/* 专属助教 */
.ke-avatar { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--sky)); color: #fff; font-size: 17px; font-weight: 600; }
.ke-avatar--lg { width: 52px; height: 52px; font-size: 21px; }
.ke-tutor { display: flex; align-items: center; gap: 12px; color: inherit; }
a.ke-tutor:hover { border-color: var(--primary-100); }
.ke-tutor__main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ke-tutor__main small { font-size: 12px; color: var(--ink-3); }
.ke-tutor__main b { font-size: 16px; color: var(--ink); }
.ke-tutor__main span { font-size: 13.5px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ke-tutor + .ke-alert, .ke-alert + .ke-alert, .ke-tutor + .ke-card { margin-top: 12px; }
.ke-alert small { display: block; margin-top: 2px; color: var(--ink-3); }

.ke-fb { padding: 14px 0 16px; border-top: 1px solid var(--line-2); }
.ke-card__title + .ke-fb { border-top: 0; padding-top: 0; }
.ke-fb__head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.ke-fb__head .ke-avatar { width: 34px; height: 34px; font-size: 15px; }
.ke-fb__head div { display: flex; flex-direction: column; min-width: 0; }
.ke-fb__head b { font-size: 15px; color: var(--ink); }
.ke-fb__head span:not(.ke-avatar) { font-size: 12.5px; color: var(--ink-3); }
.ke-fb__body { font-size: 15px; line-height: 1.75; color: var(--ink); }
.ke-fb__body p + p { margin-top: 8px; }
.ke-fb__next { margin-top: 12px; padding: 12px 14px; background: var(--primary-050); border-radius: var(--r-sm); font-size: 14.5px; }
.ke-fb__next b { display: block; margin-bottom: 6px; color: var(--primary-700); font-size: 13.5px; }
.ke-fb__next ol { padding-left: 20px; }
.ke-fb__next li + li { margin-top: 4px; }
.ke-fb__verdict { display: inline-block; margin-bottom: 8px; padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.ke-fb__verdict--pass { background: #e8f7ee; color: #18794e; }
.ke-fb__verdict--revise { background: var(--accent-050); color: var(--accent); }
.ke-fb__label { margin-top: 10px; font-size: 12px; color: var(--ink-4); }
.ke-fb__label small { margin-left: 8px; }
.ke-fb__rate { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; font-size: 13px; color: var(--ink-3); }
.ke-fb__rate input[type="text"] { flex: 1 1 160px; min-width: 0; padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; font-size: 13px; }
.ke-chip { padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: 13px; color: var(--ink-2); cursor: pointer; }
.ke-chip:hover { border-color: var(--primary); color: var(--primary); }
.ke-fb--pending .ke-hint { margin: 0; }

/* 工具箱、即将开放、我的 */
.ke-tools { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.ke-tool { display: flex; flex-direction: column; gap: 4px; padding: 14px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface-2); color: inherit; }
.ke-tool:hover { border-color: var(--primary); }
.ke-tool b { font-size: 15px; color: var(--ink); }
.ke-tool span { font-size: 12.5px; color: var(--ink-3); line-height: 1.5; }
.ke-soon ul { display: grid; gap: 10px; }
.ke-soon li { display: flex; flex-direction: column; gap: 2px; padding-left: 12px; border-left: 2px solid var(--line); }
.ke-soon b { font-size: 14.5px; color: var(--ink-2); font-weight: 600; }
.ke-soon span { font-size: 13px; color: var(--ink-3); line-height: 1.55; }
.ke-check { display: flex; align-items: flex-start; gap: 8px; margin: 4px 0 14px; font-size: 14px; color: var(--ink-2); line-height: 1.55; }
.ke-check input { margin-top: 4px; flex: none; }
.ke-qr { display: block; margin: 8px 0; border-radius: 8px; }
.ke-ai-note { margin-top: 14px; font-size: 12.5px; color: var(--ink-4); line-height: 1.6; }
.ke-ai-note a { color: var(--ink-3); text-decoration: underline; }
.ke-shell .ke-coach { margin-top: 16px; }
.ke-shell .ke-coach + .ke-hint, .ke-shell .ke-hint + .ke-hint { margin-top: 8px; }

/* 后台：助教把关 */
.ke-fbq__head { display: flex; flex-direction: column; gap: 2px; margin-bottom: 6px; }
.ke-fbq__head span { font-size: 13px; color: var(--ink-3); }
.ke-fbq details { margin: 8px 0 12px; }
.ke-fbq summary { cursor: pointer; font-size: 14px; color: var(--primary); }
.ke-fbq .ke-actions { margin-top: 10px; }
.ke-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.ke-fb__next ol { list-style: decimal; }
.ke-form .ke-card__title + .ke-hint { margin: -6px 0 14px; }
/* 整张卡片可点的链接卡（模块首页卡片常用 <a class="ke-card">） */
a.ke-card { display: block; color: inherit; }
a.ke-card.ke-tutor { display: flex; }
.ke-flash + .ke-card, .ke-flash + .ke-tutor { margin-top: 12px; }
/* 仪表盘里卡片只有半宽：课表行改成上下排；陪跑卡和「即将开放」铺满 */
.ke-dash .ke-sched { grid-template-columns: 1fr auto; }
.ke-dash .ke-sched__time { grid-column: 1 / -1; font-size: 13px; }
.ke-shell .ke-dash ~ .ke-coach { max-width: none; }
.ke-shell .ke-dash ~ .ke-soon { margin-top: 16px; }

/* ---------- 开课导读第二版：中心进度环 + 一圈泡泡 + 待办面板（2026-11-17） ----------
   电脑：左边正方形舞台（中间大环，泡泡围一圈，细虚线连到中心），右边是学完拿到什么、几个事实、下一步和当前泡泡的待办
   手机：大环和数字横排在上，泡泡排成三列网格，面板在下 */
.ke-ring { display: block; width: 100%; height: auto; }
.ke-ring__track { fill: none; stroke: #e7edf6; }
.ke-ring__bar { fill: none; stroke: var(--primary); stroke-linecap: round; transition: stroke-dasharray .4s; }
.ke-ring--big .ke-ring__track { stroke: #e3eaf6; }

.ke-orbit { display: grid; grid-template-columns: minmax(280px, 380px) minmax(0, 1fr); gap: 12px 36px; align-items: start;
  margin: 0 0 16px; padding: 24px 28px; border-color: #dfe7f5;
  background: radial-gradient(120% 90% at 0% 0%, #eef4ff 0%, rgba(238, 244, 255, 0) 55%), #fff; }
.ke-orbit__stage { position: relative; aspect-ratio: 1 / 1; width: 100%; }
.ke-orbit__spokes { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ke-orbit__track { fill: none; stroke: #dbe4f2; stroke-width: .35; stroke-dasharray: 1 1.4; }
.ke-orbit__spoke { stroke: #cfdaeb; stroke-width: .35; stroke-dasharray: .8 1.2; }
.ke-orbit__spoke.is-done { stroke: var(--primary); stroke-dasharray: none; stroke-width: .45; }
.ke-orbit__core { position: absolute; left: 50%; top: 50%; width: 42%; transform: translate(-50%, -50%); }
.ke-orbit__core .ke-ring { filter: drop-shadow(0 10px 24px rgba(47, 107, 229, .14)); }
.ke-orbit__core::before { content: ""; position: absolute; inset: 7%; border-radius: 50%; background: #fff; }
.ke-orbit__num { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.ke-orbit__num small { font-size: 12px; color: var(--ink-3); letter-spacing: .08em; }
.ke-orbit__pct { font-size: clamp(30px, 3.4vw, 40px); line-height: 1.05; font-weight: 800; color: var(--deep-900); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.ke-orbit__num span { margin-top: 2px; font-size: 12.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }

.ke-bubble { position: absolute; transform: translate(-50%, -50%); width: 86px; padding: 0; border: 0; background: none; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 2px; font: inherit; color: var(--ink); -webkit-tap-highlight-color: transparent; }
.ke-bubble__dot { position: relative; width: 60px; height: 60px; border-radius: 50%; background: #fff; box-shadow: 0 4px 14px rgba(12, 22, 48, .08); transition: transform .18s, box-shadow .18s; }
.ke-bubble__dot .ke-ring { position: absolute; inset: 0; }
.ke-bubble__dot .ke-ring__track { stroke: #e9eef5; }
.ke-bubble__dot .kf-glyph-i { position: absolute; left: 50%; top: 50%; width: 30px; height: 30px; transform: translate(-50%, -50%); }
.ke-bubble__dot .kf-glyph { fill: none; stroke: var(--ink-3); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.ke-bubble__t { margin-top: 4px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.ke-bubble__n { font-size: 11.5px; color: var(--ink-4); font-variant-numeric: tabular-nums; }
.ke-bubble--part .kf-glyph { stroke: var(--primary); }
.ke-bubble--done .ke-bubble__dot { background: var(--primary); }
.ke-bubble--done .ke-ring__bar { stroke: var(--primary); }
.ke-bubble--done .kf-glyph { stroke: #fff; }
.ke-bubble--done .ke-bubble__n { color: var(--primary-700); }
.ke-bubble--empty .ke-bubble__dot { background: rgba(255, 255, 255, .7); box-shadow: none; border: 1.5px dashed #c9d3e1; }
.ke-bubble--empty .ke-ring { display: none; }
.ke-bubble--empty .kf-glyph { stroke: #b3bfcf; }
.ke-bubble--empty .ke-bubble__t { color: var(--ink-3); }
.ke-bubble:hover .ke-bubble__dot { transform: scale(1.06); }
.ke-bubble[aria-pressed="true"] .ke-bubble__dot { box-shadow: 0 0 0 5px var(--primary-050), 0 0 0 6px var(--primary-100), 0 6px 18px rgba(47, 107, 229, .2); }
.ke-bubble[aria-pressed="true"] .ke-bubble__t { color: var(--primary-700); }
.ke-bubble:focus-visible { outline: none; }
.ke-bubble:focus-visible .ke-bubble__dot { box-shadow: 0 0 0 3px var(--primary); }

.ke-orbit__side { min-width: 0; padding-top: 4px; }
.ke-orbit__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ke-orbit__eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .14em; color: var(--primary); }
.ke-orbit__toggle .ke-link { font-size: 12.5px; color: var(--ink-4); }
.ke-orbit__goal { margin-top: 10px; font-size: clamp(18px, 1.9vw, 22px); line-height: 1.45; font-weight: 700; color: var(--ink); letter-spacing: -.01em; }
.ke-orbit__goal small { display: block; margin-bottom: 4px; font-size: 12.5px; font-weight: 500; color: var(--ink-3); letter-spacing: 0; }
.ke-orbit__facts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.ke-orbit__facts li { padding: 3px 10px; border-radius: 999px; background: #f2f5fa; font-size: 12.5px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.ke-orbit__next { margin-top: 16px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ke-orbit__panel { margin-top: 18px; padding: 14px 16px 8px; border-radius: 14px; background: #f7f9fc; border: 1px solid #edf1f7; }
.ke-orbit__panel[hidden] { display: none; }
.ke-orbit__ph { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding-bottom: 6px; }
.ke-orbit__ph b { font-size: 15px; color: var(--ink); }
.ke-orbit__ph span { font-size: 13px; font-weight: 600; color: var(--primary-700); font-variant-numeric: tabular-nums; }
.ke-orbit__panel .ke-todos { max-height: 288px; overflow: auto; }
.ke-orbit__empty { padding: 6px 0 10px; font-size: 13.5px; color: var(--ink-3); }

.ke-orbit--closed { display: flex; align-items: center; gap: 12px; padding: 10px 16px; }
.ke-orbit--closed .ke-ring { width: 40px; flex: none; }
.ke-orbit__bar { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 10px; }
.ke-orbit__bar b { font-size: 14.5px; color: var(--ink); }
.ke-orbit__bar span { font-size: 13px; color: var(--ink-3); font-variant-numeric: tabular-nums; }

@media (max-width: 860px) {
  /* 手机：舞台和右栏都拆开，按「大环 + 一句结果 → 事实 → 泡泡三列 → 下一步 → 待办」重新排 */
  .ke-orbit { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 8px; padding: 16px 14px 18px; }
  .ke-orbit__stage, .ke-orbit__side { display: contents; }
  .ke-orbit__spokes { display: none; }
  .ke-orbit__top { grid-column: 1 / -1; order: 0; }
  .ke-orbit__core { position: relative; left: auto; top: auto; transform: none; width: 100%; max-width: 112px; justify-self: center; align-self: center; order: 1; }
  .ke-orbit__num small { display: none; }
  .ke-orbit__pct { font-size: 26px; }
  .ke-orbit__num span { font-size: 11.5px; }
  .ke-orbit__goal { grid-column: 2 / -1; order: 1; margin: 0; align-self: center; font-size: 16px; }
  .ke-orbit__facts { grid-column: 1 / -1; order: 2; margin: 0; }
  .ke-bubble { position: static; transform: none; width: auto; order: 3; }
  .ke-bubble__dot { width: 54px; height: 54px; }
  .ke-bubble__dot .kf-glyph-i { width: 26px; height: 26px; }
  .ke-orbit__next { grid-column: 1 / -1; order: 4; margin: 0; justify-self: stretch; text-align: center; }
  .ke-orbit__panel { grid-column: 1 / -1; order: 5; margin: 0; }
}
}

/* 学习区通用的待办清单（导读面板、学习日历面板）：圆点 + 类型 + 标题 + 状态，完成的打勾写「已看 / 已交」，不划线 */
.ke-todos { list-style: none; padding: 0; margin: 0; }
.ke-todo { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid #e9eef5; min-width: 0; }
.ke-todo:first-child { border-top: 0; }
.ke-todo__mark { flex: none; position: relative; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid #c3cedd; background: #fff; padding: 0; }
.ke-todo__mark--btn { cursor: pointer; }
.ke-todo__mark--btn:hover { border-color: var(--primary); }
.ke-todo.is-done .ke-todo__mark { background: #18794e; border-color: #18794e; }
.ke-todo.is-done .ke-todo__mark::after { content: ""; position: absolute; left: 5px; top: 2px; width: 4px; height: 8px; border-right: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(45deg); }
.ke-todo__form { margin: 0; display: inline-flex; }
.ke-todo__kind { flex: none; padding: 0 6px; border-radius: 5px; background: #fff; border: 1px solid var(--line); font-size: 11px; line-height: 1.7; color: var(--ink-3); }
.ke-todo a { flex: 1; min-width: 0; font-size: 14px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ke-todo a:hover { color: var(--primary); }
.ke-todo.is-done a { color: var(--ink-2); }
.ke-todo__tag { flex: none; padding: 1px 8px; border-radius: 999px; background: #e3f6ec; color: #17794a; font-size: 11.5px; font-weight: 600; }
.ke-todo__tag--late { background: #fdece6; color: #b13a12; }
.ke-todo__tag--soon { background: #eef1f5; color: var(--ink-3); font-weight: 500; }
.ke-todo.is-late a { color: #b13a12; }
.ke-todo.is-soon a { color: var(--ink-3); }
.ke-todo__go { flex: none; width: 7px; height: 7px; border-right: 1.5px solid var(--ink-4); border-top: 1.5px solid var(--ink-4); transform: rotate(45deg); margin-right: 4px; }

/* 管理员角落的「待配置」：没定口径的配置收在这一条里，默认折叠 */
.ke-cfg { position: fixed; left: 16px; bottom: 16px; z-index: 140; max-width: min(340px, calc(100vw - 32px));
  background: #fffaf0; border: 1px solid #f1dcae; border-radius: 12px; box-shadow: 0 6px 20px rgba(12, 22, 48, .1); font-size: 12.5px; color: #6b4a00; }
.ke-cfg summary { cursor: pointer; padding: 7px 12px; font-weight: 600; list-style: none; }
.ke-cfg summary::-webkit-details-marker { display: none; }
.ke-cfg summary::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: #e8a33d; vertical-align: 1px; }
.ke-cfg ul { padding: 0 12px; display: grid; gap: 8px; }
.ke-cfg li { display: grid; gap: 1px; line-height: 1.5; }
.ke-cfg code { font-size: 11.5px; color: #8a5a00; overflow-wrap: anywhere; }
.ke-cfg small { color: #8f7a52; }
.ke-cfg p { padding: 8px 12px 10px; color: #a08a5c; font-size: 11.5px; }
@media (max-width: 920px) { .ke-cfg { bottom: calc(76px + env(safe-area-inset-bottom)); left: 12px; } }

/* ---------- 课程目录：章节卡片网格（宽屏 3 列、平板 2 列、手机 1 列） ---------- */
.ke-cat-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 0 0 16px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh-1); }
.ke-cat-tools > * { margin: 0 !important; }
.ke-cat-tools .m-qa-search--bar { flex: 1 1 280px; display: flex; gap: 8px; min-width: 0; }
.ke-cat-tools .m-qa-search--bar input { flex: 1; min-width: 0; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 14.5px; background: var(--surface-2); color: var(--ink); }
.ke-cat-tools .m-qa-search--bar input:focus { outline: none; border-color: var(--primary); background: #fff; }
.ke-cat-tools .m-path-hint { flex: 2 1 360px; display: flex; align-items: center; justify-content: space-between; gap: 10px; min-width: 0; padding: 0; border: 0; box-shadow: none; background: none; }
.ke-cat-tools .m-path-hint p { min-width: 0; font-size: 14px; color: var(--ink-2); line-height: 1.55; }
.ke-cat-tools .m-path-hint p span { color: var(--ink-3); }
.ke-cat-tools .m-path-hint .btn { flex: none; }
@media (max-width: 720px) { .ke-cat-tools .m-path-hint p span { display: none; } }

.ke-cat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
@media (max-width: 1000px) { .ke-cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .ke-cat-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; } }
.ke-cat-grid > .ke-card { margin: 0 !important; }

/* 章节卡第二版：封面是主角（插画 + 章号小字 + 章名），下面一条细信息带：节数 / 进度 / 从哪一节开始 */
.ke-chcard { display: flex !important; flex-direction: column; padding: 0; overflow: hidden; color: inherit; border-color: #e3e9f2;
  transition: transform .22s, box-shadow .22s, border-color .22s; }
.ke-chcard:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(12, 32, 80, .14); border-color: #cfdcf2; }
.ke-chcover { position: relative; aspect-ratio: 400 / 220; overflow: hidden; background: #0a1b3c; }
.ke-chcover__art { position: absolute; inset: 0; }
.ke-chcover__art .kf-cover { transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.ke-chcard:hover .ke-chcover__art .kf-cover { transform: scale(1.035); }
.ke-chcover__text { position: absolute; left: 20px; bottom: 18px; right: 40%; display: flex; flex-direction: column; gap: 6px; }
.ke-chcover__no { font-size: 11.5px; font-weight: 600; letter-spacing: .16em; color: rgba(190, 212, 255, .78); font-variant-numeric: tabular-nums; }
.ke-chcover__title { font-size: clamp(19px, 1.9vw, 23px); line-height: 1.25; font-weight: 750; color: #fff; letter-spacing: .01em; text-shadow: 0 2px 14px rgba(4, 12, 30, .45); overflow-wrap: anywhere; }
.ke-chcover__title--long { font-size: clamp(16px, 1.45vw, 18px); line-height: 1.35; }
.ke-chcover__text:has(.ke-chcover__title--long) { right: 30%; }
.ke-chcover__badge { position: absolute; left: 20px; top: 16px; display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 8px; border-radius: 999px;
  background: var(--accent); color: #fff; font-size: 12px; font-weight: 650; box-shadow: 0 4px 14px rgba(255, 101, 52, .35); }
.ke-chcover__badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #fff; }
.ke-chcard--now { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 12px 30px rgba(255, 101, 52, .16); }
.ke-chcard__body { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 14px 18px 16px; }
.ke-chcard__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: 12.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.ke-chcard__meta span + span:not(.ke-chcard__stage)::before { content: ""; display: inline-block; width: 3px; height: 3px; margin: 0 10px 2px -6px; border-radius: 50%; background: #c3cedd; vertical-align: middle; }
.ke-chcard__stage { padding: 1px 8px; border-radius: 999px; background: var(--primary-050); color: var(--primary-700); font-size: 11.5px; font-weight: 600; }
.ke-chcard__prog { display: flex; align-items: center; gap: 10px; }
.ke-chcard__bar { flex: 1; display: block; height: 4px; border-radius: 999px; background: #e9eef5; overflow: hidden; }
.ke-chcard__bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--primary), var(--sky)); border-radius: 999px; }
.ke-chcard__prog small { flex: none; font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.ke-chcard__next { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13.5px; font-weight: 600; color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ke-chcard__next::after { content: ""; flex: none; width: 7px; height: 7px; margin-right: 3px; border-right: 1.6px solid var(--primary); border-top: 1.6px solid var(--primary); transform: rotate(45deg); transition: transform .2s; }
.ke-chcard:hover .ke-chcard__next { color: var(--primary-700); }
.ke-chcard:hover .ke-chcard__next::after { transform: translateX(3px) rotate(45deg); }

/* 开篇：横跨整行，左边封面，右边几项直达那一节 */
.ke-intro { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); padding: 0; overflow: hidden; margin: 0 0 16px; border-color: #e3e9f2; }
.ke-intro__cover { position: relative; min-height: 190px; background: #0a1b3c; }
.ke-intro__list { list-style: none; margin: 0; padding: 10px 18px; display: flex; flex-direction: column; justify-content: center; }
.ke-intro__item + .ke-intro__item { border-top: 1px solid #edf1f7; }
.ke-intro__item a { display: flex; align-items: center; gap: 14px; padding: 13px 4px; color: inherit; }
.ke-intro__no { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 12.5px; font-weight: 700; color: var(--primary-700); background: var(--primary-050); font-variant-numeric: tabular-nums; }
.ke-intro__t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ke-intro__t b { font-size: 15px; font-weight: 650; color: var(--ink); }
.ke-intro__t small { font-size: 12.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ke-intro__go { flex: none; width: 7px; height: 7px; border-right: 1.6px solid var(--ink-4); border-top: 1.6px solid var(--ink-4); transform: rotate(45deg); margin-right: 4px; }
.ke-intro__item a:hover .ke-intro__t b { color: var(--primary-700); }
.ke-intro__item.is-done .ke-intro__no { background: #18794e; color: #fff; }
.ke-intro__item--now .ke-intro__no { background: var(--accent); color: #fff; }
.ke-now { flex: none; font-style: normal; padding: 2px 9px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 11.5px; font-weight: 650; }
@media (max-width: 760px) {
  .ke-intro { grid-template-columns: minmax(0, 1fr); }
  .ke-intro__cover { min-height: 0; aspect-ratio: 400 / 170; }
  .ke-intro__list { padding: 4px 14px; }
}
@media (max-width: 620px) {
  .ke-chcover { aspect-ratio: 400 / 190; }
  .ke-chcover__text { left: 16px; bottom: 14px; right: 38%; }
  .ke-chcover__title { font-size: 21px; }
  .ke-chcard__body { padding: 12px 16px 14px; }
}

/* 章节页顶上的插画横幅（章名在页头，这里不再重复） */
.ke-chapter-page__cover { position: relative; height: 168px; margin: -4px 0 14px; border-radius: 12px; overflow: hidden; background: linear-gradient(120deg, #081733, #0d2550); }
.ke-chapter-page__cover .ke-chcover__art { position: absolute; inset: 0; }
.ke-lessons--chapter li.is-done a { color: var(--ink-3); }
.ke-seen { flex: none; margin-left: 6px; padding: 1px 7px; border-radius: 999px; background: #e8f7ee; color: #18794e; font-size: 11.5px; font-weight: 600; }

/* 底座 B 插槽的外壳：销售页首屏补充一行、档位卡最下面一行 */
.ke-hero__facts { margin-top: 8px; font-size: 14px; color: rgba(255, 255, 255, .78); }
.ke-plan__extra { margin-top: 10px; font-size: 13px; color: var(--ink-3); }
