/* ==========================================================================
   智教星图 · 页面级样式（门户 / 登录 / 业务视图 / 小程序预览）
   ========================================================================== */

/* ============================ 门户首页 ============================ */
.portal { background: #fff; }
.p-nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 26px;
  height: 66px; padding: 0 clamp(16px, 4vw, 56px);
  background: rgba(255, 255, 255, .9);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.p-nav .brand { padding: 0; min-height: 0; }
.p-nav .brand-name { font-size: 16.5px; }
.p-links { display: flex; gap: 24px; margin-left: 14px; flex: 1; }
.p-links a { font-size: 13.5px; color: var(--ink-3); font-weight: 550; }
.p-links a:hover { color: var(--primary); }
.p-nav .btn { padding: 8px 16px; }

.p-hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1100px 500px at 78% -8%, rgba(143, 108, 242, .16), transparent 62%),
    radial-gradient(760px 420px at 8% 12%, rgba(79, 91, 213, .12), transparent 58%),
    linear-gradient(180deg, #fbfcff 0%, #f6f8ff 68%, #fff 100%);
  padding: clamp(46px, 7vw, 88px) clamp(16px, 4vw, 56px) clamp(54px, 8vw, 92px);
}
.p-hero-inner { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 1.06fr .94fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 11.5px; font-weight: 650; letter-spacing: .04em;
  color: var(--primary-600); background: #fff;
  border: 1px solid #e2e6ff; border-radius: var(--r-pill);
  padding: 5px 12px; box-shadow: var(--shadow-xs);
}
.eyebrow i { width: 6px; height: 6px; border-radius: 50%; background: var(--primary); }
.p-hero h1 {
  font-size: clamp(30px, 4.1vw, 50px);
  line-height: 1.16; letter-spacing: -.035em;
  margin: 18px 0 16px;
}
.p-hero h1 em {
  font-style: normal;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.p-hero .lead { font-size: clamp(13.5px, 1.35vw, 16px); color: var(--ink-3); max-width: 560px; line-height: 1.85; }
.p-hero .cta { display: flex; gap: 11px; margin-top: 26px; flex-wrap: wrap; }
.p-facts { display: flex; gap: 26px; margin-top: 34px; flex-wrap: wrap; }
.p-facts div b { display: block; font-size: 21px; font-weight: 780; letter-spacing: -.02em; }
.p-facts div span { font-size: 11.5px; color: var(--muted); }

.hero-visual { position: relative; }
.hero-visual .glass {
  background: #fff; border: 1px solid var(--line);
  border-radius: 22px; padding: 20px;
  box-shadow: 0 30px 70px rgba(50, 63, 130, .13);
}
.hv-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.hv-head b { font-size: 13px; }
.hv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.hv-stat { background: var(--surface-2); border-radius: 12px; padding: 11px 12px; }
.hv-stat span { font-size: 10.5px; color: var(--muted); display: block; }
.hv-stat b { font-size: 17px; font-weight: 750; }
.hv-bar { display: flex; align-items: flex-end; gap: 6px; height: 62px; margin-top: 6px; }
.hv-bar i { flex: 1; border-radius: 4px 4px 2px 2px; background: linear-gradient(180deg, #a9a4f5, #6a63e8); opacity: .85; }

.p-section { padding: clamp(48px, 6vw, 82px) clamp(16px, 4vw, 56px); }
.p-section.soft { background: linear-gradient(180deg, #fbfcff, #f6f8fd); }
.p-inner { max-width: 1180px; margin: 0 auto; }
.sec-head { text-align: center; margin-bottom: clamp(28px, 4vw, 46px); }
.sec-head h2 { font-size: clamp(22px, 2.6vw, 32px); letter-spacing: -.03em; }
.sec-head p { color: var(--muted); font-size: 13.5px; margin-top: 10px; }
.sec-head .eyebrow { margin-bottom: 14px; }

.stage-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.stage-card {
  background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 22px;
  position: relative; overflow: hidden; transition: transform .2s, box-shadow .2s, border-color .2s;
}
.stage-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #dbe1f5; }
.stage-card .stage-no {
  font-size: 11px; font-weight: 700; letter-spacing: .1em; color: var(--primary);
  background: var(--primary-soft); display: inline-block; padding: 3px 9px; border-radius: 6px;
}
.stage-card h3 { font-size: 17px; margin: 12px 0 8px; }
.stage-card p { font-size: 12.5px; color: var(--muted); line-height: 1.8; min-height: 44px; }
.stage-card .stage-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.stage-card .stage-ring {
  position: absolute; right: -30px; top: -30px; width: 96px; height: 96px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(131, 103, 240, .14), rgba(79, 91, 213, .04));
}

.feature-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.feature {
  background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px;
  transition: border-color .18s, box-shadow .2s, transform .18s;
}
.feature:hover { border-color: #d8dff4; box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.feature .f-icon {
  width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
  background: var(--grad-soft); color: var(--primary); margin-bottom: 12px;
}
.feature .f-icon svg { width: 19px; height: 19px; }
.feature h4 { font-size: 13.5px; margin-bottom: 5px; }
.feature p { font-size: 12px; color: var(--muted); line-height: 1.75; }

.dim-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.dim-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px; text-align: center; }
.dim-card b { display: block; font-size: 12.5px; margin-bottom: 3px; }
.dim-card span { font-size: 10.5px; color: var(--faint); line-height: 1.6; }

.org-ladder { display: flex; align-items: stretch; gap: 10px; flex-wrap: wrap; }
.org-step {
  flex: 1; min-width: 132px; background: #fff; border: 1px solid var(--line);
  border-radius: 14px; padding: 15px; position: relative;
}
.org-step .num { font-size: 10.5px; font-weight: 700; color: var(--primary); letter-spacing: .08em; }
.org-step b { display: block; font-size: 13.5px; margin: 5px 0 3px; }
.org-step span { font-size: 11.5px; color: var(--muted); line-height: 1.6; }

.term-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.term {
  border: 1px solid var(--line); border-radius: 16px; padding: 18px; background: #fff;
  display: flex; flex-direction: column; gap: 8px;
}
.term .t-icon { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-2); color: var(--ink-2); }
.term b { font-size: 13.5px; }
.term span { font-size: 11.5px; color: var(--muted); line-height: 1.7; }
.term .ok { font-size: 11px; color: var(--green); font-weight: 650; }
.term .pending { font-size: 11px; color: var(--amber); font-weight: 650; }

.p-cta {
  margin: 0 clamp(16px, 4vw, 56px) clamp(40px, 6vw, 70px);
  border-radius: 24px; padding: clamp(30px, 4vw, 50px);
  background: var(--grad); color: #fff; position: relative; overflow: hidden;
}
.p-cta::after {
  content: ''; position: absolute; right: -60px; top: -80px; width: 300px; height: 300px;
  border-radius: 50%; background: rgba(255, 255, 255, .1);
}
.p-cta h2 { font-size: clamp(21px, 2.5vw, 29px); letter-spacing: -.03em; }
.p-cta p { color: #e6e7ff; font-size: 13.5px; margin-top: 9px; max-width: 620px; line-height: 1.8; }
.p-cta .btns { display: flex; gap: 11px; margin-top: 22px; flex-wrap: wrap; }
.p-cta .btn.ghost { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .34); color: #fff; }
.p-cta .btn.ghost:hover { background: rgba(255, 255, 255, .22); }

.p-foot { border-top: 1px solid var(--line); padding: 28px clamp(16px, 4vw, 56px); background: #fbfcff; }
.p-foot-inner { max-width: 1180px; margin: 0 auto; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 11.5px; color: var(--muted); }
.p-foot-inner .links { display: flex; gap: 16px; flex-wrap: wrap; }

@media (max-width: 980px) {
  .p-hero-inner { grid-template-columns: minmax(0, 1fr); }
  .hero-visual { order: -1; max-width: 520px; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dim-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .term-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stage-grid { grid-template-columns: minmax(0, 1fr); }
  .p-links { display: none; }
}
@media (max-width: 620px) {
  .feature-grid { grid-template-columns: minmax(0, 1fr); }
  .dim-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .term-grid { grid-template-columns: minmax(0, 1fr); }
  .p-facts { gap: 18px; }
  .p-nav { gap: 10px; }
  .p-nav .brand-sub { display: none; }
}

/* ============================ 登录页 ============================ */
.auth {
  min-height: 100vh; display: grid; grid-template-columns: 1.02fr .98fr;
  background: #fff;
}
.auth-brand {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(800px 500px at 15% 8%, rgba(255, 255, 255, .18), transparent 60%),
    radial-gradient(600px 460px at 88% 92%, rgba(255, 210, 255, .22), transparent 62%),
    linear-gradient(150deg, #3d47bd 0%, #5b53d8 42%, #8265ee 100%);
  padding: clamp(30px, 4vw, 54px);
  display: flex; flex-direction: column;
}
.auth-brand::after {
  content: ''; position: absolute; inset: auto -90px -140px auto;
  width: 380px; height: 380px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .16);
  box-shadow: 0 0 0 46px rgba(255, 255, 255, .05), 0 0 0 96px rgba(255, 255, 255, .035);
}
.auth-brand .brand { padding: 0; color: #fff; }
.auth-brand .brand-name { color: #fff; }
.auth-brand .brand-sub { color: rgba(255, 255, 255, .66); }
.auth-brand .brand-mark { background: rgba(255, 255, 255, .16); box-shadow: none; border: 1px solid rgba(255, 255, 255, .22); }
.auth-copy { margin: auto 0; position: relative; z-index: 2; padding: 30px 0; }
.auth-copy h1 { font-size: clamp(25px, 2.7vw, 37px); line-height: 1.28; letter-spacing: -.03em; }
.auth-copy p { color: rgba(255, 255, 255, .82); font-size: 13.5px; line-height: 1.9; margin-top: 14px; max-width: 430px; }
.auth-points { display: grid; gap: 11px; margin-top: 26px; max-width: 430px; }
.auth-points div { display: flex; gap: 10px; align-items: flex-start; font-size: 12.5px; color: rgba(255, 255, 255, .9); }
.auth-points svg { width: 16px; height: 16px; flex: 0 0 16px; margin-top: 2px; opacity: .9; }
.auth-brand .copy { font-size: 11px; color: rgba(255, 255, 255, .55); position: relative; z-index: 2; }

.auth-panel {
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(26px, 4vw, 52px); overflow-y: auto;
}
.auth-box { width: 100%; max-width: 396px; margin: 0 auto; }
.auth-box h2 { font-size: 24px; letter-spacing: -.03em; }
.auth-box .sub { color: var(--muted); font-size: 12.5px; margin-top: 6px; margin-bottom: 22px; }

.role-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 18px; }
.role-card {
  border: 1px solid var(--line); border-radius: 12px; padding: 11px 6px;
  text-align: center; transition: all .16s; background: #fff;
}
.role-card svg { width: 19px; height: 19px; color: var(--muted); margin: 0 auto 5px; }
.role-card b { display: block; font-size: 11.5px; font-weight: 600; color: var(--ink-3); }
.role-card:hover { border-color: #ccd4ea; }
.role-card.active { border-color: var(--primary); background: var(--primary-soft); box-shadow: 0 0 0 3px rgba(79, 91, 213, .08); }
.role-card.active svg, .role-card.active b { color: var(--primary-600); }

.auth-input {
  display: flex; align-items: center; gap: 9px;
  border: 1px solid var(--line); border-radius: 11px; padding: 0 12px;
  background: #fff; transition: border-color .16s, box-shadow .16s;
}
.auth-input:focus-within { border-color: #bdc4f2; box-shadow: 0 0 0 3px rgba(79, 91, 213, .1); }
.auth-input svg { width: 17px; height: 17px; color: var(--faint); flex: 0 0 17px; }
.auth-input input { flex: 1; border: 0; outline: 0; padding: 12px 0; background: transparent; font-size: 13.5px; min-width: 0; }
.auth-input .eye { color: var(--muted); width: 28px; height: 28px; border-radius: 7px; display: grid; place-items: center; }
.auth-input .eye:hover { background: var(--surface-2); color: var(--ink); }
.captcha-row { display: grid; grid-template-columns: 1fr 132px; gap: 9px; }
.captcha-img {
  border: 1px solid var(--line); border-radius: 11px; overflow: hidden;
  display: grid; place-items: center; background: #f4f6ff; cursor: pointer; height: 45px;
}
.captcha-img img, .captcha-img svg { width: 100%; height: 100%; object-fit: cover; }
.captcha-img canvas { width: 100%; height: 100%; display: block; }

.auth-opt { display: flex; align-items: center; justify-content: space-between; margin: 4px 0 18px; gap: 10px; flex-wrap: wrap; }
.auth-note {
  margin-top: 16px; background: var(--surface-2); border: 1px solid var(--line);
  border-radius: 11px; padding: 11px 13px; font-size: 11.5px; color: var(--muted); line-height: 1.8;
}
.auth-note b { color: var(--ink-2); }
.auth-error {
  margin-top: 12px; background: var(--rose-soft); color: #c33c49;
  border: 1px solid #f8d7db; border-radius: 10px; padding: 9px 12px; font-size: 12px;
  display: flex; gap: 7px; align-items: flex-start;
}
.auth-error svg { width: 15px; height: 15px; flex: 0 0 15px; margin-top: 1px; }
.auth-links { margin-top: 20px; display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); flex-wrap: wrap; gap: 8px; }

.api-panel { margin-top: 14px; border: 1px dashed #d6dcf0; border-radius: 11px; padding: 12px; background: #fcfdff; }
.api-panel summary { cursor: pointer; font-size: 12px; color: var(--ink-3); font-weight: 600; list-style: none; display: flex; align-items: center; gap: 6px; }
.api-panel summary::-webkit-details-marker { display: none; }
.api-panel summary svg { width: 14px; height: 14px; color: var(--muted); }
.api-panel .body { margin-top: 11px; }

.demo-accounts { margin-top: 16px; border-top: 1px dashed var(--line); padding-top: 13px; }
.demo-accounts .ttl { font-size: 11px; color: var(--faint); margin-bottom: 7px; }
.demo-accounts .row-btns { display: flex; gap: 6px; flex-wrap: wrap; }
.demo-accounts .row-btns button {
  font-size: 11px; padding: 4px 9px; border-radius: 6px; border: 1px solid var(--line);
  color: var(--ink-3); background: #fff;
}
.demo-accounts .row-btns button:hover { border-color: #c9d1ea; color: var(--primary); }

@media (max-width: 900px) {
  .auth { grid-template-columns: minmax(0, 1fr); }
  .auth-brand { padding: 26px 22px 30px; min-height: auto; }
  .auth-copy { margin: 18px 0 0; padding: 0; }
  .auth-copy h1 { font-size: 23px; }
  .auth-copy p, .auth-points { display: none; }
  .auth-brand .copy { display: none; }
  .auth-panel { padding: 24px 20px 40px; }
  .auth-box { max-width: 460px; }
}
@media (max-width: 420px) {
  .role-cards { grid-template-columns: repeat(2, 1fr); }
  .captcha-row { grid-template-columns: 1fr 112px; }
}

/* ============================ 业务视图通用 ============================ */
.hero-band {
  border-radius: var(--r-lg); padding: 22px 24px; color: #fff;
  background:
    radial-gradient(600px 220px at 88% -20%, rgba(255, 255, 255, .22), transparent 60%),
    var(--grad);
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.hero-band h2 { font-size: 19px; letter-spacing: -.02em; }
.hero-band p { color: rgba(255, 255, 255, .86); font-size: 12.5px; margin-top: 6px; max-width: 560px; line-height: 1.75; }
.hero-band .hb-right { display: flex; gap: 22px; align-items: center; }
.hero-band .hb-stat b { display: block; font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.hero-band .hb-stat span { font-size: 11px; color: rgba(255, 255, 255, .78); }
.hero-band .btn.ghost { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .3); color: #fff; }
.hero-band .btn.ghost:hover { background: rgba(255, 255, 255, .24); color: #fff; }

.quick-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.quick {
  display: flex; gap: 12px; align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px;
  transition: all .18s; text-align: left; width: 100%;
}
.quick:hover { border-color: #d3dbf2; box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.quick .q-icon { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); flex: 0 0 36px; }
.quick .q-icon svg { width: 18px; height: 18px; }
.quick b { display: block; font-size: 13px; color: var(--ink); }
.quick span { font-size: 11px; color: var(--muted); }

/* 课程卡片 */
.course-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(272px, 1fr)); gap: 14px; }
.course-card {
  background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  display: flex; flex-direction: column; transition: all .2s; cursor: pointer;
}
.course-card:hover { border-color: #d3dbf2; box-shadow: var(--shadow-md); transform: translateY(-3px); }
.course-cover {
  height: 92px; position: relative; padding: 14px 16px; color: #fff;
  display: flex; flex-direction: column; justify-content: space-between;
}
.course-cover.c0 { background: linear-gradient(120deg, #4f5bd5, #7d6cf0); }
.course-cover.c1 { background: linear-gradient(120deg, #0f8f86, #43c3b4); }
.course-cover.c2 { background: linear-gradient(120deg, #d9822b, #f0b45f); }
.course-cover.c3 { background: linear-gradient(120deg, #b8489a, #e184c7); }
.course-cover.c4 { background: linear-gradient(120deg, #2f6fd0, #61a4f0); }
.course-cover.c5 { background: linear-gradient(120deg, #5c6b8a, #8fa0bd); }
.course-cover .cc-stage { font-size: 10.5px; font-weight: 700; letter-spacing: .12em; opacity: .9; }
.course-cover .cc-title { font-size: 14px; font-weight: 700; line-height: 1.4; }
.course-cover::after {
  content: ''; position: absolute; right: -26px; top: -26px; width: 88px; height: 88px;
  border-radius: 50%; background: rgba(255, 255, 255, .12);
}
.course-body { padding: 13px 15px 15px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.course-desc { font-size: 11.5px; color: var(--muted); line-height: 1.7; flex: 1; }
.course-meta { display: flex; align-items: center; justify-content: space-between; font-size: 11px; color: var(--faint); }
.course-tags { display: flex; gap: 5px; flex-wrap: wrap; }

/* 六维雷达 */
.radar-panel { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 16px; align-items: center; }
@media (max-width: 720px) { .radar-panel { grid-template-columns: minmax(0, 1fr); } }

.dim-list { display: flex; flex-direction: column; gap: 9px; }
.dim-row { display: grid; grid-template-columns: 62px 1fr 34px; align-items: center; gap: 9px; font-size: 12px; }
.dim-row .dname { color: var(--ink-3); }
.dim-row .dtrack { height: 6px; background: var(--line-2); border-radius: 99px; overflow: hidden; }
.dim-row .dfill { display: block; height: 100%; border-radius: 99px; background: var(--grad); }
.dim-row .dval { text-align: right; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }

.score-ring { display: grid; place-items: center; position: relative; }
.score-ring .ring-center { position: absolute; text-align: center; }
.score-ring .ring-center b { font-size: 26px; font-weight: 800; letter-spacing: -.03em; display: block; line-height: 1.1; }
.score-ring .ring-center span { font-size: 10.5px; color: var(--muted); }

/* 时间线 */
.timeline { position: relative; padding-left: 20px; }
.timeline::before { content: ''; position: absolute; left: 5px; top: 6px; bottom: 6px; width: 1.5px; background: var(--line); }
.tl-item { position: relative; padding-bottom: 16px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ''; position: absolute; left: -19px; top: 5px; width: 9px; height: 9px;
  border-radius: 50%; background: #fff; border: 2px solid #c3cbf0;
}
.tl-item.done::before { border-color: var(--primary); background: var(--primary); }
.tl-item.warn::before { border-color: var(--amber); background: var(--amber); }
.tl-item b { font-size: 12.5px; display: block; }
.tl-item span { font-size: 11px; color: var(--faint); }

/* 章节列表 */
.chapter-list { display: flex; flex-direction: column; gap: 8px; }
.chapter {
  display: flex; align-items: center; gap: 11px; padding: 11px 13px;
  border: 1px solid var(--line); border-radius: 11px; background: #fff; transition: all .16s;
}
.chapter:hover { border-color: #d3dbf2; background: #fcfdff; }
.chapter.active { border-color: #c9d1f5; background: var(--primary-soft); }
.chapter .ch-no {
  width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center;
  font-size: 11px; font-weight: 700; background: var(--surface-2); color: var(--ink-3); flex: 0 0 24px;
}
.chapter.active .ch-no { background: var(--primary); color: #fff; }
.chapter .ch-main { flex: 1; min-width: 0; }
.chapter .ch-title { font-size: 12.5px; font-weight: 600; }
.chapter .ch-meta { font-size: 11px; color: var(--faint); }
.chapter .ch-ops { display: flex; gap: 3px; }

/* 学习内容 */
.lesson { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px 22px; }
.lesson h3 { font-size: 16px; margin-bottom: 6px; }
.lesson .lesson-meta { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.lesson .lesson-body { font-size: 13.5px; color: var(--ink-2); line-height: 2; white-space: pre-wrap; }

/* 后台管理 tabs */
.admin-tabs { display: flex; gap: 4px; margin-bottom: 16px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.admin-tabs button {
  padding: 9px 15px; font-size: 13px; font-weight: 550; color: var(--muted);
  border-bottom: 2px solid transparent; white-space: nowrap; margin-bottom: -1px;
}
.admin-tabs button:hover { color: var(--ink); }
.admin-tabs button.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 650; }

/* 组织树 */
.org-tree { display: flex; flex-direction: column; gap: 2px; }
.org-node {
  display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 9px;
  font-size: 12.5px; cursor: pointer; transition: background .14s;
}
.org-node:hover { background: var(--surface-2); }
.org-node.selected { background: var(--primary-soft); color: var(--primary-600); font-weight: 600; }
.org-node .o-icon { width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; background: var(--surface-2); color: var(--ink-3); flex: 0 0 24px; }
.org-node .o-icon svg { width: 13px; height: 13px; }
.org-node .o-count { margin-left: auto; font-size: 10.5px; color: var(--faint); }
.org-children { margin-left: 16px; border-left: 1px dashed var(--line); padding-left: 6px; }

/* 权限矩阵 */
.matrix { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.matrix th, .matrix td { padding: 11px 12px; border-bottom: 1px solid var(--line-2); text-align: center; }
.matrix th:first-child, .matrix td:first-child { text-align: left; font-weight: 600; color: var(--ink); }
.matrix thead th { font-size: 11.5px; color: var(--muted); font-weight: 650; background: var(--surface-2); }
.matrix .yes { color: var(--green); font-weight: 700; }
.matrix .no { color: #cbd3e2; }

/* 小程序方案 */
.mp-wrap { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 26px; align-items: start; }
@media (max-width: 860px) { .mp-wrap { grid-template-columns: minmax(0, 1fr); justify-items: center; } }
.phone {
  width: 292px; border-radius: 38px; background: #10162a; padding: 9px;
  box-shadow: 0 26px 60px rgba(20, 28, 50, .28); position: relative;
}
.phone-screen {
  border-radius: 30px; background: #f6f8fd; height: 574px; overflow: hidden;
  display: flex; flex-direction: column; position: relative;
}
.phone-notch {
  position: absolute; top: 14px; left: 50%; transform: translateX(-50%);
  width: 84px; height: 20px; border-radius: 99px; background: #10162a; z-index: 3;
}
.mp-status { display: flex; justify-content: space-between; padding: 10px 20px 0; font-size: 10.5px; color: #fff; position: relative; z-index: 2; }
.mp-head { background: var(--grad); color: #fff; padding: 26px 18px 46px; border-radius: 0 0 22px 22px; position: relative; }
.mp-head h4 { font-size: 15px; }
.mp-head p { font-size: 10.5px; color: rgba(255, 255, 255, .8); margin-top: 2px; }
.mp-body { flex: 1; overflow-y: auto; padding: 0 14px 12px; margin-top: -32px; }
.mp-card { background: #fff; border-radius: 13px; padding: 12px; box-shadow: 0 4px 14px rgba(30, 45, 80, .07); margin-bottom: 9px; }
.mp-card .mp-t { font-size: 11.5px; font-weight: 700; margin-bottom: 6px; }
.mp-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; text-align: center; }
.mp-grid .g { font-size: 9.5px; color: var(--muted); }
.mp-grid .g i { display: grid; place-items: center; width: 30px; height: 30px; margin: 0 auto 3px; border-radius: 9px; background: var(--primary-soft); color: var(--primary); }
.mp-grid .g svg { width: 15px; height: 15px; }
.mp-tabbar {
  display: grid; grid-template-columns: repeat(4, 1fr); background: #fff;
  border-top: 1px solid var(--line); padding: 6px 0 10px;
}
.mp-tabbar div { text-align: center; font-size: 9px; color: var(--faint); }
.mp-tabbar div.on { color: var(--primary); }
.mp-tabbar svg { width: 17px; height: 17px; display: block; margin: 0 auto 1px; }

.mp-features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 620px) { .mp-features { grid-template-columns: minmax(0, 1fr); } }

/* 移动端方案提示卡 */
.notice-bar {
  display: flex; gap: 10px; align-items: flex-start;
  background: #fdf8ec; border: 1px solid #f6e6c6; border-radius: 12px;
  padding: 11px 13px; font-size: 12px; color: #8a6520; line-height: 1.75;
}
.notice-bar svg { width: 16px; height: 16px; flex: 0 0 16px; margin-top: 2px; }

/* 数据表内联小进度 */
.mini-bar { display: flex; align-items: center; gap: 7px; min-width: 110px; }
.mini-bar .progress { flex: 1; height: 5px; }
.mini-bar span { font-size: 11px; color: var(--ink-3); font-variant-numeric: tabular-nums; width: 30px; text-align: right; }

/* 分段趋势图 */
.spark { display: flex; align-items: flex-end; gap: 3px; height: 34px; }
.spark i { flex: 1; background: #dfe4fb; border-radius: 2px; min-height: 3px; }
.spark i.on { background: var(--primary); }

/* 尺寸辅助 */
.h-160 { height: 160px }
.w-full { width: 100% }
.pointer { cursor: pointer }
