/* ============================================================
   青少年AI素养授课平台 · 课件平台 外壳样式（总入口/播放器）
   ============================================================ */

/* ── 布局 ── */
.shell { display: flex; height: 100vh; overflow: hidden; }

.sidebar {
  flex: none; width: 232px;
  background: var(--c-white);
  border-right: 1.5px solid var(--c-line);
  display: flex; flex-direction: column;
  padding: 20px 14px;
  z-index: 30;
}
.side-logo { display: flex; align-items: center; gap: 12px; padding: 6px 10px 20px; border-bottom: 1.5px solid var(--c-line); margin-bottom: 16px; }
.side-logo .logo-tile {
  flex: none; width: 46px; height: 46px; border-radius: 14px;
  background: var(--grad-brand); color: #fff;
  display: grid; place-items: center;
  box-shadow: var(--sh-2);
}
.side-logo .logo-tile .ic { width: 26px; height: 26px; }
.side-logo b { font-size: 17px; font-weight: 800; letter-spacing: .02em; display: block; }
.side-logo span { font-size: 12px; color: var(--c-ink-soft); font-weight: 600; letter-spacing: .14em; }

.side-nav { display: grid; gap: 6px; }
.side-nav button, .side-nav a.side-nav-link {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 16px; border-radius: var(--r-md);
  font-size: 15px; font-weight: 700; color: var(--c-ink-2);
  text-decoration: none; width: 100%; box-sizing: border-box;
  transition: all var(--dur) var(--ease-out);
  text-align: left;
}
.side-nav button .ic, .side-nav a.side-nav-link .ic { width: 21px; height: 21px; }
.side-nav button:hover, .side-nav a.side-nav-link:hover { background: var(--c-bg-deep); color: var(--c-primary-deep); text-decoration: none; }
.side-nav button.on { background: var(--c-primary-soft); color: var(--c-primary-deep); box-shadow: inset 0 0 0 1.5px var(--c-primary); }
.side-foot { margin-top: auto; padding: 14px 12px 4px; font-size: 11.5px; color: var(--c-ink-soft); line-height: 1.8; }

.side-nav .nav-group { font-size: 11px; font-weight: 800; letter-spacing: .16em; color: var(--c-ink-soft); padding: 14px 16px 6px; }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  flex: none; height: 62px;
  display: flex; align-items: center; gap: 14px;
  padding: 0 26px;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(12px);
  border-bottom: 1.5px solid var(--c-line);
  z-index: 20;
}
.topbar h2 { font-size: 19px; font-weight: 800; }
.topbar .crumb { font-size: 13px; color: var(--c-ink-soft); font-weight: 600; }
.topbar .sp { flex: 1; }
.topbar .date-chip {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; color: var(--c-ink-2);
  padding: 8px 14px; border-radius: var(--r-pill);
  background: var(--c-bg-deep);
}
.topbar .date-chip .ic { width: 16px; height: 16px; color: var(--c-primary); }

.content { flex: 1; overflow-y: auto; padding: 30px 34px 60px; position: relative; }

/* ── 首页英雄区 ── */
.hero {
  position: relative;
  border-radius: 26px; padding: 44px 48px;
  background: linear-gradient(135deg, #E9F8F2 0%, #EDF6F1 55%, #EAF6F0 100%);
  border: 1.5px solid #E2EFE8;
  display: flex; align-items: center; gap: 36px;
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; width: 340px; height: 340px; right: -90px; top: -120px;
  background: radial-gradient(circle, rgba(22, 184, 134, .14), transparent 65%);
}
.hero .hero-txt { flex: 1; position: relative; z-index: 2; }
.hero .hero-txt .hi { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; letter-spacing: .12em; color: var(--c-violet); margin-bottom: 12px; }
.hero h1 { font-size: 34px; font-weight: 900; line-height: 1.35; }
.hero h1 em { font-style: normal; background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { margin-top: 14px; color: var(--c-ink-2); font-size: 16px; line-height: 1.9; max-width: 620px; }
.hero .hero-btns { margin-top: 24px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero .mascot { width: 190px; height: 190px; flex: none; animation: float-soft 5.5s ease-in-out infinite; position: relative; z-index: 2; }

/* 功能入口卡 */
.feat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; margin-top: 26px; }
.feat-card {
  background: var(--c-white); border: 1.5px solid var(--c-line);
  border-radius: var(--r-xl); padding: 26px;
  cursor: pointer;
  transition: all .25s var(--ease-spring);
  position: relative; overflow: hidden;
}
.feat-card:hover { transform: translateY(-5px); box-shadow: var(--sh-2); border-color: var(--c-primary); }
.feat-card .fc-ic { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; color: #fff; margin-bottom: 16px; }
.feat-card .fc-ic .ic { width: 27px; height: 27px; }
.feat-card b { font-size: 17px; display: block; }
.feat-card p { margin-top: 8px; color: var(--c-ink-soft); font-size: 13.5px; line-height: 1.75; }
.feat-card .fc-go { position: absolute; right: 20px; top: 22px; color: var(--c-line); transition: all .25s; }
.feat-card:hover .fc-go { color: var(--c-primary); transform: translateX(3px); }

/* ── 课程库 ── */
.section-h { display: flex; align-items: flex-end; justify-content: space-between; margin: 34px 0 18px; }
.section-h:first-child { margin-top: 0; }
.section-h h3 { font-size: 21px; font-weight: 800; }
.section-h span { font-size: 13px; color: var(--c-ink-soft); font-weight: 600; }

.course-card {
  display: flex; gap: 22px; align-items: center;
  background: var(--c-white); border: 1.5px solid var(--c-line);
  border-radius: var(--r-xl); padding: 24px 26px;
  cursor: pointer; position: relative; overflow: hidden;
  transition: all .25s var(--ease-spring);
}
.course-card:hover { transform: translateY(-4px); box-shadow: var(--sh-2); border-color: var(--c-primary); }
.course-card .cc-cover {
  flex: none; width: 108px; height: 108px; border-radius: 22px;
  background: var(--grad-brand); color: #fff;
  display: grid; place-items: center;
  box-shadow: var(--sh-2);
}
.course-card .cc-cover .ic { width: 52px; height: 52px; }
.course-card .cc-txt { flex: 1; }
.course-card .cc-txt .cc-tag { display: inline-flex; gap: 6px; margin-bottom: 8px; }
.course-card .cc-txt b { font-size: 21px; display: block; }
.course-card .cc-txt p { margin-top: 8px; color: var(--c-ink-2); font-size: 14px; line-height: 1.8; }
.course-card .cc-go { flex: none; }
.course-card .cc-prog { margin-top: 12px; max-width: 420px; display: flex; align-items: center; gap: 12px; }
.course-card .cc-prog .progress { flex: 1; height: 10px; }
.course-card .cc-prog span { font-size: 12.5px; color: var(--c-ink-soft); font-weight: 700; }

/* ── 设置 ── */
.set-card { background: var(--c-white); border: 1.5px solid var(--c-line); border-radius: var(--r-xl); padding: 24px 28px; margin-bottom: 18px; }
.set-row { display: flex; align-items: center; gap: 18px; padding: 12px 0; }
.set-row + .set-row { border-top: 1.5px dashed var(--c-line); }
.set-row .sr-ic { flex: none; width: 44px; height: 44px; border-radius: 13px; background: var(--c-primary-soft); color: var(--c-primary-deep); display: grid; place-items: center; }
.set-row .sr-ic .ic { width: 22px; height: 22px; }
.set-row .sr-txt { flex: 1; }
.set-row .sr-txt b { font-size: 15px; display: block; }
.set-row .sr-txt span { font-size: 13px; color: var(--c-ink-soft); }
.set-row .danger { background: var(--c-danger-soft); color: #B91C1C; }
.set-row .danger .ic { color: #B91C1C; }

/* 开关 */
.switch { position: relative; width: 52px; height: 30px; flex: none; cursor: pointer; }
.switch input { display: none; }
.switch i {
  position: absolute; inset: 0; border-radius: var(--r-pill);
  background: var(--c-bg-deep); transition: background .25s;
}
.switch i::after {
  content: ""; position: absolute; width: 24px; height: 24px; border-radius: 50%;
  background: #fff; top: 3px; left: 3px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .18);
  transition: transform .25s var(--ease-spring);
}
.switch input:checked + i { background: var(--grad-brand); }
.switch input:checked + i::after { transform: translateX(22px); }

/* ── 激活页 ── */
.act-wrap {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  background: radial-gradient(1000px 600px at 80% -10%, rgba(22, 184, 134, .16), transparent 60%),
              radial-gradient(900px 500px at -10% 110%, rgba(45, 168, 119, .14), transparent 60%),
              var(--c-bg);
  padding: 30px;
}
.act-card {
  width: min(680px, 94vw);
  background: var(--c-white); border-radius: 28px;
  box-shadow: var(--sh-3); border: 1.5px solid var(--c-line);
  padding: 40px 46px 36px;
  position: relative; overflow: hidden;
}
.act-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 7px;
  background: var(--grad-brand);
}
.act-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.act-brand .logo-tile { width: 52px; height: 52px; border-radius: 16px; background: var(--grad-brand); color: #fff; display: grid; place-items: center; box-shadow: var(--sh-2); }
.act-brand .logo-tile .ic { width: 28px; height: 28px; }
.act-brand b { font-size: 21px; display: block; }
.act-brand span { font-size: 12.5px; color: var(--c-ink-soft); letter-spacing: .12em; font-weight: 700; }
.act-card h1 { font-size: 26px; font-weight: 900; }
.act-card .act-sub { color: var(--c-ink-2); font-size: 15px; line-height: 1.8; margin: 10px 0 22px; }
.mc-box {
  display: flex; align-items: center; gap: 14px;
  background: var(--c-bg-deep); border-radius: var(--r-md);
  padding: 14px 18px; border: 2px dashed #C2D5CB;
}
.mc-box .mc {
  flex: 1; font-family: var(--font-num); font-size: 19px; font-weight: 800;
  letter-spacing: .06em; color: var(--c-primary-deep);
  word-break: break-all;
}
.act-steps { display: grid; gap: 10px; margin: 20px 0 22px; }
.act-steps .st { display: flex; gap: 10px; align-items: center; font-size: 14.5px; color: var(--c-ink-2); font-weight: 600; }
.act-steps .st .no { flex: none; width: 24px; height: 24px; border-radius: 8px; background: var(--c-primary-soft); color: var(--c-primary-deep); display: grid; place-items: center; font-size: 13px; font-weight: 800; }
.act-err { display: none; margin-top: 12px; padding: 12px 16px; border-radius: var(--r-md); background: var(--c-danger-soft); color: #B91C1C; font-size: 14px; font-weight: 700; }
.act-err.show { display: block; animation: shake-x .45s ease; }
.act-ok { display: none; margin-top: 12px; padding: 12px 16px; border-radius: var(--r-md); background: var(--c-ok-soft); color: var(--c-ok-deep); font-size: 14px; font-weight: 700; }
.act-ok.show { display: block; }
.act-mascot { position: absolute; right: -30px; bottom: -34px; width: 150px; height: 150px; opacity: .9; pointer-events: none; }

/* ── 授权信息 ── */
.lic-hero {
  display: flex; align-items: center; gap: 18px;
  background: linear-gradient(135deg, #E9F8F2, #EDF6F1);
  border: 1.5px solid #E2EFE8; border-radius: var(--r-xl);
  padding: 22px 26px; margin-bottom: 20px;
}
.lic-hero .lh-ic { width: 52px; height: 52px; border-radius: 16px; background: var(--grad-brand); color: #fff; display: grid; place-items: center; }
.lic-hero .lh-ic .ic { width: 27px; height: 27px; }
.lic-hero b { font-size: 18px; display: block; }
.lic-hero span { font-size: 13.5px; color: var(--c-ink-2); }
.lic-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.lic-item { background: var(--c-white); border: 1.5px solid var(--c-line); border-radius: var(--r-md); padding: 16px 18px; }
.lic-item span { font-size: 12px; color: var(--c-ink-soft); font-weight: 700; display: block; margin-bottom: 4px; }
.lic-item b { font-size: 15.5px; word-break: break-all; }

/* 播放器 */
.player-top {
  flex: none; height: 54px;
  display: flex; align-items: center; gap: 12px;
  padding: 0 18px;
  background: var(--c-white); border-bottom: 1.5px solid var(--c-line);
}
.player-top .pt-title { font-size: 15px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 38vw; }
.player-top .pt-sub { font-size: 12.5px; color: var(--c-ink-soft); font-weight: 700; }
.player-stage { flex: 1; position: relative; background: var(--c-bg); }
.player-stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* 分组芯片 */
.group-chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 15px; border-radius: var(--r-pill);
  background: var(--c-bg-deep); border: 2px solid transparent;
  font-size: 13.5px; font-weight: 800; color: var(--c-ink-2);
  cursor: pointer; transition: all .22s var(--ease-spring);
}
.group-chip.on { background: var(--c-primary-soft); color: var(--c-primary-deep); border-color: var(--c-primary); box-shadow: 0 0 0 4px var(--c-primary-soft); }
.group-chip .gc-dot { width: 10px; height: 10px; border-radius: 50%; }
.group-chip .gc-score { font-size: 13px; font-family: var(--font-num); font-weight: 900; color: var(--c-primary-deep); min-width: 18px; text-align: center; }
.group-chip .gc-ctl { display: inline-flex; gap: 3px; align-items: center; }
.group-chip .gc-ctl i {
  font-style: normal; width: 17px; height: 17px; border-radius: 50%;
  display: inline-grid; place-items: center; font-size: 13px; font-weight: 900; line-height: 1;
  background: var(--c-bg-deep); color: var(--c-ink-soft); cursor: pointer; user-select: none;
  transition: all .15s var(--ease-out);
}
.group-chip .gc-ctl i:hover { color: #fff; transform: scale(1.15); }
.group-chip .gc-ctl i.gc-plus:hover { background: var(--c-ok); }
.group-chip .gc-ctl i.gc-minus:hover { background: var(--c-danger); }

/* 组能量浮标 */
.energy-float {
  position: fixed; top: 74px; right: 22px; z-index: 90;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 18px; border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .95); backdrop-filter: blur(10px);
  box-shadow: var(--sh-2); border: 1.5px solid var(--c-line);
  font-size: 13.5px; font-weight: 800; color: var(--c-ink);
  animation: rise-in .4s var(--ease-spring);
}
.energy-float .ef-plus { color: var(--c-energy); animation: pop-in .4s var(--ease-spring); }

/* 计时器 */
.timer-float {
  position: fixed; top: 74px; right: 22px; z-index: 90;
  background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px);
  border: 1.5px solid var(--c-line); border-radius: var(--r-xl);
  box-shadow: var(--sh-2); padding: 16px 18px; width: 230px;
}
.timer-float .tf-num { font-family: var(--font-num); font-size: 40px; font-weight: 900; text-align: center; letter-spacing: .03em; }
.timer-float .tf-num.warn { color: var(--c-danger); animation: breathe 1s ease-in-out infinite; }
.timer-float .tf-bar { height: 8px; border-radius: var(--r-pill); background: var(--c-bg-deep); margin-top: 10px; overflow: hidden; }
.timer-float .tf-bar i { display: block; height: 100%; width: 100%; background: var(--grad-brand); border-radius: var(--r-pill); transition: width .3s linear; }
.timer-float .tf-bar i.warn { background: linear-gradient(90deg, #EF4444, #F97316); }
.timer-float .tf-ctrl { display: flex; gap: 8px; margin-top: 12px; }
.timer-float .tf-ctrl .btn { flex: 1; padding: 8px 0; font-size: 13px; border-radius: 10px; }

/* 抽人 */
.lottery-float {
  position: fixed; inset: 0; z-index: 95;
  display: none; place-items: center;
  background: rgba(6, 59, 51, .42); backdrop-filter: blur(6px);
}
.lottery-float.show { display: grid; }
.lottery-box {
  width: min(560px, 92vw); text-align: center;
  background: var(--c-white); border-radius: 26px;
  box-shadow: var(--sh-3); padding: 34px 40px 30px;
}
.lottery-box .lb-name {
  font-size: 46px; font-weight: 900; margin: 20px 0 6px;
  background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lottery-box .lb-run { font-size: 46px; font-weight: 900; color: var(--c-ink-soft); margin: 20px 0 6px; }
.lottery-box p { color: var(--c-ink-soft); font-size: 14px; }
.lottery-box .btn { margin-top: 20px; }

/* 聚光灯遮罩 */
.spotlight {
  position: fixed; inset: 0; z-index: 85; pointer-events: none;
  background: radial-gradient(circle 260px at var(--sx, 50%) var(--sy, 40%), transparent 20%, rgba(20, 24, 48, .72) 72%);
  display: none;
}
.spotlight.show { display: block; }

/* 讲师备注按钮状态 */
.icon-btn.on { background: var(--c-primary-soft); color: var(--c-primary-deep); border-color: var(--c-primary); }

/* ═══ 画笔批注（在课件上画线标注） ═══ */
.pen-canvas {
  position: fixed; inset: 0; z-index: 1000;
  pointer-events: none; display: none;
}
.pen-canvas.show { display: block; pointer-events: auto; cursor: crosshair; }
.pen-canvas.erase { cursor: cell; }
.pen-tool {
  position: fixed; right: 18px; top: 64px; z-index: 1001;
  background: var(--c-white); border: 1.5px solid var(--c-line); border-radius: var(--r-lg);
  padding: 10px 14px; display: flex; gap: 8px; align-items: center;
  box-shadow: var(--sh-3);
}
.pen-tool.hidden { display: none; }
.pen-tool .pt-label { font-size: 13px; font-weight: 800; color: var(--c-ink-soft); margin-right: 2px; }
.pen-color {
  width: 26px; height: 26px; border-radius: 50%;
  border: 2.5px solid rgba(0,0,0,.12); cursor: pointer;
  transition: all .2s var(--ease-spring);
}
.pen-color:hover { transform: scale(1.18); }
.pen-color.on { border-color: var(--c-ink); transform: scale(1.22); box-shadow: 0 0 0 3px rgba(14,159,110,.25); }
.pen-tool .btn { font-size: 13px; padding: 7px 14px; }
.pen-tool .btn.on { background: var(--c-danger-soft); color: #B91C1C; border-color: var(--c-danger); }


/* ═══════════════ 文力德品牌层 · 衬线标题（2026-08-23） ═══════════════ */
.hero h1, .topbar h2, .section-h h3 { font-family: var(--font-display); letter-spacing: -0.015em; }
.course-card .cc-txt b { font-family: var(--font-display); }
.act-brand b { font-family: var(--font-display); letter-spacing: .04em; }
.act-card h2 { font-family: var(--font-display); }
.side-logo b { font-family: var(--font-display); letter-spacing: .06em; }
