:root {
  --brand: #185FA5;
  --brand-d: #0f3f73;
  --brand-l: #e8f1fb;
  --accent: #ff7a45;
  --ink: #1a2230;
  --muted: #5b6677;
  --line: #e7ecf3;
  --bg: #f5f7fa;
  --card: #ffffff;
  --ok: #2bb673;
  --warn: #e6a23c;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(20, 40, 80, .08);
  --maxw: 1180px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input { font-family: inherit; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ============ Header ============ */
header { background: linear-gradient(120deg, var(--brand-d), var(--brand)); color: #fff; position: sticky; top: 0; z-index: 20; }
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { font-weight: 800; font-size: 20px; letter-spacing: .5px; display: flex; align-items: center; gap: 10px; }
.logo .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(255,122,69,.25); }
.nav-links { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.nav-pill { display: inline-flex; align-items: center; justify-content: center; min-height: 38px; padding: 0 16px; border: 1px solid rgba(255,255,255,.18); border-radius: 10px; color: rgba(255,255,255,.92); background: rgba(255,255,255,.08); font: inherit; text-decoration: none; cursor: pointer; transition: background .2s, border-color .2s, transform .2s; }
.nav-pill:hover { color: #fff; background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.34); transform: translateY(-1px); }
.nav-pill-accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.nav-pill-accent:hover { background: #e67a22; border-color: #e67a22; }
.nav-actions { display: flex; gap: 10px; align-items: center; }
.user-name { color: rgba(255,255,255,.92); font-size: 14px; font-weight: 600; padding: 4px 12px; background: rgba(255,255,255,.12); border-radius: 20px; }

/* 登录态右上角用户信息 + 下拉菜单 */
.nav-user { position: relative; display: flex; align-items: center; gap: 8px; cursor: pointer; padding: 4px 10px; border-radius: 20px; background: rgba(255,255,255,.12); }
.nav-user:hover { background: rgba(255,255,255,.2); }
.nav-avatar { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; display: inline-flex; align-items: center; justify-content: center; background: var(--brand); color: #fff; font-size: 13px; font-weight: 700; }
.nav-avatar-text { background: var(--brand); }
.nav-user .caret { color: rgba(255,255,255,.7); font-size: 10px; }
.user-menu { position: absolute; top: calc(100% + 8px); right: 0; min-width: 168px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 6px; display: none; z-index: 80; }
.user-menu.open { display: block; }
.user-menu a, .user-menu button { display: block; width: 100%; text-align: left; padding: 10px 12px; border: none; background: none; border-radius: 8px; font-size: 14px; color: var(--ink); cursor: pointer; text-decoration: none; }
.user-menu a:hover, .user-menu button:hover { background: var(--brand-l); }
.nav-pending { font-size: 12px; color: #b8860b; background: #fff8e6; padding: 4px 10px; border-radius: 14px; border: 1px solid #ffe2a8; }
.nav-admin { position: relative; }
.nav-admin::after { content: "最高权限"; font-size: 10px; margin-left: 4px; color: #d93636; background: #fdecec; padding: 1px 6px; border-radius: 8px; vertical-align: middle; }
.backend-mark { display:inline-flex; align-items:center; margin-left:18px; padding-left:18px; border-left:1px solid rgba(255,255,255,.22); color:rgba(255,255,255,.92); font-size:13px; font-weight:700; white-space:nowrap; }
.tech-admin-corner { position:absolute; right:18px; bottom:12px; z-index:2; color:rgba(120,130,145,.72); font-size:11px; text-decoration:none; }
.tech-admin-corner:hover { color:var(--brand-d); text-decoration:underline; }
@media (max-width:700px) { .backend-mark { margin-left:10px; padding-left:10px; font-size:12px; } .tech-admin-corner { right:12px; bottom:10px; } }
.btn { border: none; border-radius: 9px; padding: 9px 18px; font-size: 14px; font-weight: 600; transition: .15s; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #ff6630; }
.btn-ghost { background: rgba(255,255,255,.14); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.24); }
.btn-line { background: #fff; color: var(--brand); }
.btn-line:hover { background: var(--brand-l); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ============ Hero ============ */
.hero { background: linear-gradient(120deg, var(--brand-d), var(--brand)); color: #fff; padding: 56px 0 68px; }
.hero h1 { font-size: 38px; font-weight: 800; line-height: 1.25; margin-bottom: 16px; }
.hero p { font-size: 17px; color: rgba(255,255,255,.85); max-width: 620px; }
.hero .cta { margin-top: 24px; display: flex; gap: 14px; flex-wrap: wrap; }

/* Search bar in hero */
.search-bar { margin-top: 22px; display: flex; gap: 10px; max-width: 480px; }
.search-bar input {
  flex: 1; padding: 12px 18px; border: none; border-radius: 10px; font-size: 15px;
  background: rgba(255,255,255,.95); color: var(--ink);
}
.search-bar input::placeholder { color: var(--muted); }
.search-bar input:focus { outline: none; box-shadow: 0 0 0 3px rgba(255,255,255,.3); }
.search-bar .btn { padding: 12px 22px; }

/* ============ Steps ============ */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: -40px 0 40px; }
.step { background: var(--card); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.step .n { width: 34px; height: 34px; border-radius: 50%; background: var(--brand-l); color: var(--brand); font-weight: 800; display: grid; place-items: center; margin-bottom: 12px; }
.step h4 { font-size: 16px; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 14px; }

/* ============ Section ============ */
section.block { padding: 30px 0 10px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 18px; flex-wrap: wrap; gap: 10px; }
.section-head h2 { font-size: 24px; }
.section-head .sub { color: var(--muted); font-size: 14px; }

/* View toggle (全部课程 / 我的课程) */
.view-toggle { display: flex; gap: 4px; background: #e9eef4; border-radius: 10px; padding: 3px; }
.toggle-btn { border: none; background: none; padding: 7px 16px; font-size: 14px; font-weight: 600; color: var(--muted); border-radius: 8px; transition: .15s; }
.toggle-btn.active { background: #fff; color: var(--brand); box-shadow: 0 2px 6px rgba(0,0,0,.06); }

/* Category tabs */
.category-tabs { display: flex; gap: 10px; margin-bottom: 22px; flex-wrap: wrap; }
.cat-tab { border: 1px solid var(--line); background: #fff; padding: 6px 16px; border-radius: 20px; font-size: 14px; color: var(--muted); transition: .15s; }
.cat-tab:hover { border-color: var(--brand); color: var(--brand); }
.cat-tab.active { background: var(--brand); color: #fff; border-color: var(--brand); }

/* ============ Course grid ============ */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card { background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); transition: .18s; display: flex; flex-direction: column; cursor: pointer; }
.card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(20,40,80,.14); }

/* Cover: supports both gradient fallback and background image */
.cover { height: 160px; background: linear-gradient(135deg, var(--brand), #3a86d6); position: relative; display: grid; place-items: center; color: #fff; overflow: hidden; }
.cover .play { width: 52px; height: 52px; border-radius: 50%; background: rgba(255,255,255,.25); display: grid; place-items: center; font-size: 20px; backdrop-filter: blur(4px); }
.cover .lock { position: absolute; top: 12px; right: 12px; background: rgba(0,0,0,.45); padding: 4px 10px; border-radius: 20px; font-size: 12px; }

/* Cover with background image */
.cover[style*="background-image"] .play { display: none; }
.lock-overlay { position: absolute; inset: 0; background: rgba(15,25,45,.55); display: grid; place-items: center; }
.lock-overlay span { background: rgba(0,0,0,.5); padding: 6px 16px; border-radius: 20px; font-size: 13px; font-weight: 600; }
.play-overlay { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0,0,0,.15); font-size: 28px; opacity: 0; transition: .2s; }
.card:hover .play-overlay { opacity: 1; }

.card .body { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.card h3 { font-size: 17px; margin-bottom: 6px; }
.card .desc { color: var(--muted); font-size: 13px; flex: 1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .meta { margin-top: 12px; display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--muted); }
.tag { background: var(--brand-l); color: var(--brand); padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.meta-info { font-size: 12px; color: var(--muted); }
.teacher-line { margin-top: 8px; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 8px; }
.card.locked { opacity: .92; }
.card.locked .cover { background: linear-gradient(135deg, #9aa7b8, #6b7888); }

/* ============ Modal ============ */
.modal-mask { position: fixed; inset: 0; background: rgba(15,25,45,.5); display: none; place-items: center; z-index: 50; }
.modal-mask.show { display: grid; }
.modal { position: relative; background: #fff; border-radius: var(--radius); width: 380px; max-width: 92vw; padding: 26px; box-shadow: var(--shadow); }
.modal-close { position: absolute; top: 10px; right: 12px; width: 30px; height: 30px; border: none; background: transparent; font-size: 24px; line-height: 1; color: var(--muted); cursor: pointer; border-radius: 8px; }
.modal-close:hover { background: rgba(15,25,45,.06); color: #333; }
.modal h3 { margin-bottom: 6px; font-size: 18px; }
.modal p.hint { color: var(--muted); font-size: 13px; margin-bottom: 16px; }
.input { width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 9px; font-size: 15px; margin-bottom: 12px; }
.input:focus { outline: none; border-color: var(--brand); }
.modal .row { display: flex; gap: 10px; }
.modal .row .btn { flex: 1; }
.msg { font-size: 13px; margin: 8px 0; min-height: 16px; }
.msg.err { color: #e0392b; }
.msg.ok { color: var(--ok); }

/* ============ Breadcrumb ============ */
.breadcrumb { padding: 16px 0 0; font-size: 14px; color: var(--muted); }
.breadcrumb a { color: var(--brand); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb .sep { margin: 0 8px; color: var(--muted); }

/* ============ Course detail layout ============ */
.course-layout { display: grid; grid-template-columns: 1fr 340px; gap: 24px; padding: 16px 0 50px; align-items: start; }
.course-main { min-width: 0; }
.course-side { position: sticky; top: 84px; }

/* Player area */
.player-area { background: #000; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16/9; display: grid; place-items: center; }
.player-area video { width: 100%; height: 100%; object-fit: contain; }
.player-loading { color: rgba(255,255,255,.6); font-size: 15px; }
.player-locked { display: grid; place-items: center; gap: 16px; text-align: center; color: rgba(255,255,255,.85); font-size: 16px; padding: 30px; }
.player-locked .btn { margin-top: 4px; }

/* 播放器容器（水印定位基准） */
.player-wrap { position: relative; width: 100%; height: 100%; background: #000; }
.player-wrap video, .player-wrap #vodPlayer { width: 100%; height: 100%; }

/* 版权提示条：保留轻量提示，不遮挡视频内容 */
.wm-copyright {
  position: absolute; top: 0; left: 0; right: 0; z-index: 6;
  background: rgba(20,20,20,.62);
  color: rgba(255,255,255,.86); font-size: 10px; line-height: 1; padding: 5px 8px;
  text-align: center; letter-spacing: .2px; pointer-events: none; font-weight: 400;
}

/* 视频上小号用户水印：每 2 分钟从上到下移动一次 */
.wm-layer { position: absolute; inset: 0; z-index: 5; pointer-events: none; overflow: hidden; }
.wm-track { position: absolute; top: -2px; left: 50%; white-space: nowrap; opacity: .22; animation: wm-fall 120s linear infinite; }
.wm-item { display: block; font-size: 11px; font-weight: 500; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.7); padding: 0; transform: translateX(-50%); }
@keyframes wm-fall { from { transform: translate(-50%, -10px); } to { transform: translate(-50%, calc(100vh - 30px)); } }

/* Course info card (below player) */
.course-info-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; margin-top: 16px; }
.course-info-card h1 { font-size: 24px; font-weight: 800; margin-bottom: 12px; }
.course-stats { display: flex; gap: 16px; margin-bottom: 12px; flex-wrap: wrap; }
.stat-item { font-size: 14px; color: var(--muted); background: var(--brand-l); padding: 3px 12px; border-radius: 20px; }
.course-desc { color: var(--muted); font-size: 15px; line-height: 1.7; margin-top: 8px; }
.course-meta { margin-top: 14px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.course-meta strong { color: var(--ink); }

/* Chapter panel (right sidebar) */
.chapter-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.panel-title { padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: 15px; font-weight: 700; display: flex; justify-content: space-between; align-items: center; }
.panel-title span { font-weight: 400; color: var(--muted); font-size: 13px; }

/* Chapter items */
.chapter { padding: 12px 18px; border-bottom: 1px solid var(--line); display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-size: 14px; transition: .12s; }
.chapter:last-child { border-bottom: none; }
.chapter:hover { background: var(--brand-l); }
.chapter.done { color: var(--ok); }
.chapter.active { background: var(--brand); color: #fff; }
.chapter.active .ch-dur { color: rgba(255,255,255,.7); }
.chapter.active .ch-badge { background: rgba(255,255,255,.2); color: #fff; }
.ch-num { width: 26px; height: 26px; border-radius: 50%; background: var(--brand-l); color: var(--brand); font-weight: 700; font-size: 13px; display: grid; place-items: center; flex-shrink: 0; }
.chapter.done .ch-num { background: #e8f6ee; color: var(--ok); }
.chapter.active .ch-num { background: rgba(255,255,255,.25); color: #fff; }
.ch-info { flex: 1; min-width: 0; }
.ch-title { font-weight: 600; font-size: 14px; line-height: 1.4; }
.ch-dur { font-size: 12px; color: var(--muted); margin-right: 8px; }
.ch-badge { font-size: 11px; background: #e8f6ee; color: var(--ok); padding: 2px 8px; border-radius: 10px; }

/* ============ Footer ============ */
.site-footer { background: #0f1a2c; color: rgba(255,255,255,.7); padding: 30px 0; font-size: 13px; margin-top: 40px; }
.site-footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

/* ============ Admin (unchanged) ============ */
.admin-body { padding: 24px 0 60px; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 26px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.stat .n { font-size: 30px; font-weight: 800; color: var(--brand); }
.stat .l { color: var(--muted); font-size: 13px; }
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.tab { padding: 10px 16px; font-size: 14px; border: none; background: none; color: var(--muted); border-bottom: 2px solid transparent; }
.tab.active { color: var(--brand); border-bottom-color: var(--brand); font-weight: 600; }
.panel { display: none; }
.panel.active { display: block; }
table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; }
th, td { padding: 11px 14px; text-align: left; font-size: 14px; border-bottom: 1px solid var(--line); }
th { background: var(--brand-l); color: var(--brand); font-weight: 600; }
.pill { padding: 2px 9px; border-radius: 20px; font-size: 12px; }
.pill.used { background: #fde8e6; color: #c0392b; }
.pill.unused { background: #e8f6ee; color: var(--ok); }
.pill.bad { background: #f1f2f3; color: #9499a0; }
.pill.ok { background: #e8f6ee; color: var(--ok); }
.pill.warn { background: #fff4e6; color: #d46b08; }
.pill.muted { background: #f1f2f3; color: #9499a0; }
.codes-box { background: var(--brand-l); padding: 14px; border-radius: 10px; font-family: ui-monospace, monospace; font-size: 14px; color: var(--brand-d); word-break: break-all; }

/* Legacy footer alias */
footer { background: #0f1a2c; color: rgba(255,255,255,.7); padding: 30px 0; font-size: 13px; margin-top: 40px; }
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

.hidden { display: none !important; }

/* ============ Login gate ============ */
.login-gate { display: grid; place-items: center; min-height: calc(100vh - 64px); padding: 40px 20px; }
.login-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; width: 380px; max-width: 92vw; box-shadow: var(--shadow); }
.login-card h3 { font-size: 22px; margin-bottom: 6px; }
.login-card .login-icon { width: 56px; height: 56px; border-radius: 50%; background: var(--brand-l); display: grid; place-items: center; font-size: 26px; margin-bottom: 18px; }
.login-card .hint-text { color: var(--muted); font-size: 14px; margin-bottom: 18px; line-height: 1.6; }

/* ============ Form components ============ */
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 5px; }
.form-row { display: flex; gap: 16px; flex-wrap: wrap; }
.form-row > .form-group { flex: 1; min-width: 200px; }
/* 申请弹窗内表单：label 在上、input 在下 */
#applyMask .form-row { flex-direction: column; gap: 6px; margin-bottom: 12px; }
#applyMask .form-row label { font-size: 13px; color: var(--muted); font-weight: 600; }
#applyMask .form-row .input { margin-bottom: 0; }

/* Upload zone */
.upload-zone { border: 2px dashed var(--line); border-radius: 12px; height: 140px; display: grid; place-items: center; color: var(--muted); font-size: 14px; background: var(--bg); cursor: pointer; transition: .15s; position: relative; overflow: hidden; }
.upload-zone:hover { border-color: var(--brand); background: var(--brand-l); }
.upload-zone img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.upload-zone .upload-text { position: relative; z-index: 1; text-align: center; }
.upload-zone .upload-text .icon { font-size: 28px; display: block; margin-bottom: 6px; }
.upload-zone input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.upload-zone.has-image { border-style: solid; }
.course-outline-workspace { margin-top: 16px; }
.legacy-chapter-cache { display:none; }
.outline-actions { display:grid; grid-template-columns:1.3fr 1.5fr auto; gap:14px; align-items:end; padding:16px 0 4px; border-bottom:1px solid var(--line); margin-bottom:8px; }
.outline-action-block { min-width:0; }
.outline-action-row { display:flex; gap:8px; align-items:center; }
.outline-action-row .input { margin:0; min-width:0; flex:1; }
.outline-upload-btn { white-space:nowrap; margin-bottom:0; }
.course-workspace-summary { display:flex; align-items:center; justify-content:space-between; gap:20px; background:linear-gradient(135deg,#f7fbff,#fff); }
.eyebrow { font-size:12px; color:var(--brand); font-weight:700; letter-spacing:.08em; }
.workspace-stats { display:flex; gap:10px; flex-wrap:wrap; }
.workspace-stats span { padding:8px 12px; border:1px solid var(--line); border-radius:8px; background:#fff; font-size:12px; color:var(--muted); }
.batch-toolbar { display:flex; align-items:center; gap:10px; flex-wrap:wrap; padding:12px; border:1px solid var(--line); border-radius:10px; background:var(--bg); margin-bottom:14px; }
.batch-toolbar .hint-text { margin-left:8px; }
.batch-toolbar textarea { flex:1; min-width:240px; margin:0; }
.batch-toolbar label.btn { cursor:pointer; }
.workspace-title, .outline-chapter-head, .outline-lesson { display:flex; align-items:center; gap:10px; }
.outline-chapter { border:1px solid var(--line); border-radius:10px; margin-top:12px; overflow:hidden; background:var(--card); }
.outline-chapter-head { padding:12px 14px; background:var(--bg); }
.outline-toggle { width:24px; height:24px; border:0; background:transparent; color:var(--brand); cursor:pointer; font-size:16px; }
.outline-spacer { flex:1; }
.outline-lessons { padding:0 14px; }
.outline-lesson { min-height:48px; border-top:1px solid var(--line); font-size:13px; }
.outline-lesson .lesson-index { width:24px; color:var(--muted); text-align:center; }
.outline-lesson .lesson-title { min-width:180px; font-weight:600; }
.outline-lesson .action-btn { flex:0 0 auto; }
.outline-empty { padding:14px 28px; }

/* Edit form grid */
.edit-grid { display: grid; grid-template-columns: 1fr 280px; gap: 24px; }
.edit-main { min-width: 0; }
.edit-side { min-width: 0; }

/* Chapter edit list */
.chapter-edit-list { margin-bottom: 14px; }
.chapter-edit-item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; margin-bottom: 8px; }
.chapter-edit-item .ch-num { width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; font-size: 13px; display: grid; place-items: center; flex-shrink: 0; }
.chapter-edit-item .ch-info { flex: 1; min-width: 0; }
.chapter-edit-item .ch-info .ch-title { font-weight: 600; font-size: 14px; }
.chapter-edit-item .ch-info .ch-meta { font-size: 12px; color: var(--muted); margin-top: 2px; }
.chapter-edit-item .ch-del { border: none; background: none; color: #c0392b; cursor: pointer; font-size: 18px; padding: 4px 8px; border-radius: 6px; }
.chapter-edit-item .ch-del:hover { background: #fde8e6; }

/* Stat card enhanced */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; margin-bottom: 26px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; align-items: center; gap: 14px; }
.stat .stat-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 22px; flex-shrink: 0; }
.stat .stat-icon.blue { background: var(--brand-l); color: var(--brand); }
.stat .stat-icon.orange { background: #fff0e8; color: var(--accent); }
.stat .stat-icon.green { background: #e8f6ee; color: var(--ok); }
.stat .stat-icon.purple { background: #f0e8ff; color: #7c3aed; }
.stat .stat-text .n { font-size: 28px; font-weight: 800; color: var(--ink); line-height: 1; }
.stat .stat-text .l { color: var(--muted); font-size: 13px; margin-top: 4px; }

/* Table enhancements */
table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
th, td { padding: 12px 16px; text-align: left; font-size: 14px; border-bottom: 1px solid var(--line); }
th { background: var(--brand-l); color: var(--brand); font-weight: 600; font-size: 13px; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(24,95,165,.02); }
.table-wrap { overflow-x: auto; }

/* Action buttons */
.action-btn { border: none; background: none; padding: 5px 12px; font-size: 13px; border-radius: 6px; cursor: pointer; font-weight: 600; transition: .12s; }
.action-btn.edit { color: var(--brand); background: var(--brand-l); }
.action-btn.edit:hover { background: #d0e3f5; }
.action-btn.danger { color: #c0392b; background: #fde8e6; }
.action-btn.danger:hover { background: #fbd5d0; }

/* Course table cover */
.cover-thumb { width: 64px; height: 40px; border-radius: 6px; object-fit: cover; background: var(--brand-l); }
.cover-thumb.placeholder { display: grid; place-items: center; color: var(--brand); font-size: 18px; }

/* Code result box */
.code-tool-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; margin-bottom: 16px; }
.code-tool-head h3 { margin-bottom: 6px; }
.code-result { background: var(--brand-l); border: 1px solid #c5dbf0; border-radius: 12px; padding: 18px; margin-bottom: 16px; }
.code-result .code-header { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; }
.code-result .code-list { font-family: ui-monospace, "SF Mono", monospace; font-size: 14px; color: var(--brand-d); line-height: 1.75; word-break: break-all; max-height: 240px; overflow: auto; }
.code-result .code-list div { display: grid; grid-template-columns: minmax(130px, .5fr) minmax(220px, 1fr); gap: 12px; padding: 4px 0; border-top: 1px dashed rgba(24,95,165,.18); }
.code-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.code-list-toolbar { justify-content: space-between; }
.small { font-size: 12px; }

/* Copy button */
.copy-btn { border: 1px solid var(--brand); background: #fff; color: var(--brand); padding: 5px 14px; border-radius: 8px; font-size: 13px; font-weight: 600; cursor: pointer; transition: .12s; }
.copy-btn:hover { background: var(--brand); color: #fff; }
.copy-btn.copied { background: var(--ok); border-color: var(--ok); color: #fff; }

/* Per-course stats */
.per-course-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin-bottom: 20px; }
.per-course-stat { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 14px; }
.per-course-stat .pc-title { font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.per-course-stat .pc-num { font-size: 22px; font-weight: 800; color: var(--brand); }

/* Toast */
.toast { position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 24px; border-radius: 10px; font-size: 14px; z-index: 100; opacity: 0; transition: .25s; pointer-events: none; }
.toast.show { opacity: 1; bottom: 40px; }
.toast.ok { background: var(--ok); }
.toast.err { background: #c0392b; }

/* Empty state */
.empty-state { text-align: center; padding: 50px 20px; color: var(--muted); }
.empty-state .icon { font-size: 40px; margin-bottom: 12px; }

/* Section card */
.section-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-bottom: 20px; }
.section-card h3 { font-size: 18px; margin-bottom: 16px; }

/* Inline form bar */
.inline-form { display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; align-items: center; }
.inline-form .input { margin-bottom: 0; flex: 1; min-width: 160px; }

/* Per-course list item */
.pc-item { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; background: var(--bg); border-radius: 10px; margin-bottom: 8px; }
.pc-item .pc-name { font-weight: 600; font-size: 14px; }
.pc-item .pc-count { font-size: 20px; font-weight: 800; color: var(--brand); }

/* ============ Responsive ============ */
@media (max-width: 920px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .course-layout { grid-template-columns: 1fr; }
  .course-side { position: static; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 30px; }
  .nav-links { display: flex; gap: 6px; }
  .nav-pill { min-height: 34px; padding: 0 10px; font-size: 12px; }
  .search-bar { max-width: 100%; }
  .edit-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr; }
  .hero { padding: 40px 0 52px; }
  .hero h1 { font-size: 26px; }
  .hero p { font-size: 15px; }
  .section-head h2 { font-size: 20px; }
  .course-info-card h1 { font-size: 20px; }
  .view-toggle { width: 100%; }
  .toggle-btn { flex: 1; text-align: center; }
  .edit-grid { grid-template-columns: 1fr; }
  .form-row { flex-direction: column; }
  .form-row > .form-group { min-width: 0; }
}

/* ============================================================
   阶段14 · 移动端增强（学员端优先，后台可用级）
   覆盖主流手机宽度：375 / 390 / 414 px
   ============================================================ */

/* ---- Toast 统一类型（common.js 引用 .toast-{ok,err,warn,info}）---- */
.toast-warn { background: var(--warn); }
.toast-info { background: #2f6fb0; }

/* ---- 学习页布局（student.html 的 .learn-* 类）---- */
.learn-layout { display: grid; grid-template-columns: 1fr 360px; gap: 22px; align-items: start; padding: 16px 0 50px; }
.learn-main { min-width: 0; }
.learn-side { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.learn-side .panel-title { cursor: pointer; }
.learn-panel-body { max-height: 1000px; overflow: hidden; transition: max-height .25s ease; }
.learn-panel-body.collapsed { max-height: 0; }
.collapse-caret { transition: transform .2s; font-size: 12px; color: var(--muted); }
.collapse-caret.collapsed { transform: rotate(-90deg); }
.learn-progress { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.learn-progress .bar { height: 8px; background: var(--brand-l); border-radius: 6px; overflow: hidden; margin: 8px 0; }
.learn-progress .bar > i { display: block; height: 100%; background: var(--brand); }
.learn-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 12px; }
.learn-nav .btn { flex: 1; }
.learn-resources { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }

/* ---- 个人中心卡片化（student.html 的 .profile-* 类）---- */
.profile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.profile-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.profile-card h4 { font-size: 15px; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.profile-card .kv { display: flex; justify-content: space-between; font-size: 13px; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.profile-card .kv:last-child { border-bottom: none; }
.profile-card .kv b { color: var(--ink); }
.profile-course { display: flex; gap: 12px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 10px; }
.profile-course .pc-cover { width: 56px; height: 38px; border-radius: 6px; object-fit: cover; background: var(--brand-l); flex-shrink: 0; }
.profile-course .pc-title { font-weight: 600; font-size: 14px; }
.profile-course .pc-sub { font-size: 12px; color: var(--muted); }

/* ---- 后台可用级：表格横向滚动容器、操作区换行 ---- */
.table-scroll { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tab, .action-btn { white-space: nowrap; }
@media (max-width: 920px) {
  .table-scroll table { min-width: 640px; }
}
/* 移动端后台顶部操作换行、按钮字号略增，便于点按 */
@media (max-width: 560px) {
  .nav { height: 56px; }
  .nav-actions .user-name { padding: 4px 10px; font-size: 13px; }
  .action-btn { padding: 7px 14px; font-size: 14px; }
  .admin-body { padding: 16px 0 48px; }
  .login-card { padding: 26px 20px; }
  .modal { width: auto; padding: 22px 18px; }
  .toast { left: 16px; right: 16px; transform: none; text-align: center; }
  .toast.show { transform: none; }
}

/* ---- 课程详情页移动端重排：顶部信息 → 目录 → 底部学习按钮 ---- */
@media (max-width: 920px) {
  .course-layout { display: flex; flex-direction: column; gap: 16px; }
  .course-side { position: static; order: 2; }
  .course-main { order: 1; }
  /* 移动端目录折叠：默认折叠，点标题展开 */
  .chapter-panel .panel-title { cursor: pointer; }
  .chapter-list-mobile { max-height: 0; overflow: hidden; transition: max-height .28s ease; }
  .chapter-list-mobile.open { max-height: 2000px; }
  .chapter-caret { transition: transform .2s; color: var(--muted); }
  .chapter-caret.open { transform: rotate(180deg); }
  /* 底部学习按钮 sticky */
  .mobile-learn-bar { display: none; }
}
@media (max-width: 560px) {
  .course-info-card { padding: 18px 16px; }
  .course-stats { gap: 8px; }
  .stat-item { font-size: 12px; padding: 3px 9px; }
  .player-area { border-radius: 12px; }
  .mobile-learn-bar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    background: #fff; border-top: 1px solid var(--line); padding: 10px 14px;
    gap: 10px; box-shadow: 0 -4px 16px rgba(20,40,80,.1);
  }
  .mobile-learn-bar .btn { flex: 1; }
  body { padding-bottom: 64px; }
}

/* ---- 学习页移动端：视频置顶 + 目录/资料折叠 ---- */
@media (max-width: 920px) {
  .learn-layout { display: flex; flex-direction: column; gap: 14px; }
  .learn-side { position: static; order: 2; }
  .learn-main { order: 1; }
  .learn-main .player-area { border-radius: 12px; }
}
@media (max-width: 560px) {
  .learn-layout { padding: 12px 0 40px; }
  .learn-nav .btn { padding: 11px 8px; font-size: 14px; }
  .learn-progress { padding: 12px 14px; }
}

/* ---- 首页课程卡片移动端微调 ---- */
@media (max-width: 560px) {
  .card .body { padding: 14px; }
  .card h3 { font-size: 16px; }
  .card .desc { font-size: 12px; -webkit-line-clamp: 2; }
  .teacher-line { font-size: 12px; }
  .cover { height: 150px; }
  section.block { padding: 22px 0 8px; }
  .wrap { padding: 0 14px; }
}

/* ---- 图片懒加载占位（loading=lazy 兜底）---- */
img[loading="lazy"] { background: var(--brand-l); min-height: 1px; }

/* ---- 通用折叠面板（移动端目录/资料）---- */
.collapsible-head { display: flex; align-items: center; justify-content: space-between; cursor: pointer; user-select: none; }
.collapsible-body { overflow: hidden; transition: max-height .25s ease; }
.collapsible-body.collapsed { max-height: 0 !important; }

/* ---- 底部移动端学习条按钮（课程详情页用）---- */
.mobile-learn-bar .btn-primary { font-size: 16px; font-weight: 700; }

/* ---- 首页课程卡片：试看标识（任务B）---- */
.cover-trial { position: absolute; top: 12px; left: 12px; background: var(--ok); color: #fff; padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.trial-tag { background: #e7f7ee; color: #1a9c5b; border: 1px solid #b9e8cd; }
.card .cover img { width: 100%; height: 100%; object-fit: cover; }

/* ---- 阶段16 运营数据看板（admin/teacher）---- */
.analytics-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: 14px; }
.analytics-block { background: #fafbfc; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.analytics-block h4 { margin: 0 0 10px; font-size: 14px; color: var(--ink); }
.trend-box { min-height: 110px; }
.trend-label { font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.trend-chart { display: flex; align-items: flex-end; gap: 4px; height: 90px; }
.trend-bar { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; min-width: 0; }
.trend-fill { width: 100%; max-width: 22px; background: linear-gradient(180deg, var(--brand), var(--brand-d)); border-radius: 4px 4px 0 0; transition: height .3s; }
.trend-cap { font-size: 9px; color: var(--muted); margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; width: 100%; text-align: center; }
#adminPopular .pc-item, .teacher-popular .pc-item { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
#adminPopular .pc-item:last-child, .teacher-popular .pc-item:last-child { border-bottom: none; }
.pc-rank { width: 22px; height: 22px; border-radius: 50%; background: var(--brand-l); color: var(--brand-d); font-weight: 700; font-size: 12px; display: grid; place-items: center; flex-shrink: 0; }
.pc-name { flex: 1; font-weight: 600; }
.pc-count { font-size: 12px; color: var(--muted); }
.teacher-analytics-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-top: 6px; }
.teacher-analytics-cards .ta-card { background: #fafbfc; border: 1px solid var(--line); border-radius: 12px; padding: 14px; text-align: center; }
.teacher-analytics-cards .ta-card .ta-n { font-size: 24px; font-weight: 700; color: var(--brand-d); }
.teacher-analytics-cards .ta-card .ta-l { font-size: 12px; color: var(--muted); margin-top: 4px; }
.teacher-recent { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.teacher-recent .tr-item { background: var(--brand-l); color: var(--brand-d); border-radius: 20px; padding: 4px 12px; font-size: 12px; }

/* 移动端：看板卡片压缩 */
@media (max-width: 560px) {
  .analytics-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .trend-chart { height: 70px; }
}

/* 2026-08-25 Codex：讲师课程工作台增强 */
.workspace-right { display:flex; flex-direction:column; align-items:flex-end; gap:10px; }
.workspace-actions { display:flex; gap:8px; flex-wrap:wrap; justify-content:flex-end; }
.workspace-stats .status-ok { color:#059669; border-color:#bbf7d0; background:#f0fdf4; font-weight:700; }
.workspace-stats .status-draft { color:#b45309; border-color:#fde68a; background:#fffbeb; font-weight:700; }
.outline-action-row-stack { align-items:stretch; }
.outline-action-row-stack select { max-width:180px; }
.outline-chapter.outline-ungrouped { border-style:dashed; background:#fffaf0; }
.outline-chapter.outline-ungrouped .outline-chapter-head { background:#fff7ed; }
.lesson-status { padding:4px 8px; border-radius:999px; font-size:12px; white-space:nowrap; }
.lesson-status.ok { color:#047857; background:#ecfdf5; }
.lesson-status.warn { color:#b45309; background:#fffbeb; }
.lesson-trial { color:var(--muted); font-size:12px; min-width:64px; }
.publish-check-card { border-color:#dbeafe; background:linear-gradient(135deg,#f8fbff,#fff); }
.publish-check-list { display:grid; gap:8px; margin-top:14px; }
.check-item { display:flex; align-items:center; gap:8px; padding:10px 12px; border:1px solid var(--line); border-radius:10px; background:#fff; font-size:14px; }
.check-item span { width:20px; height:20px; display:inline-flex; align-items:center; justify-content:center; border-radius:50%; font-weight:800; }
.check-item.ok span { background:#dcfce7; color:#047857; }
.check-item.warn span { background:#fef3c7; color:#b45309; }
.check-item.bad span { background:#fee2e2; color:#b91c1c; }
.publish-check-actions { display:flex; gap:10px; margin-top:10px; flex-wrap:wrap; }
button:disabled, .btn:disabled { opacity:.45; cursor:not-allowed; }
@media (max-width: 760px) {
  .course-workspace-summary { align-items:flex-start; }
  .workspace-right { align-items:flex-start; width:100%; }
  .outline-action-row-stack { flex-direction:column; }
  .outline-action-row-stack select { max-width:none; }
  .outline-lesson { flex-wrap:wrap; padding:10px 0; }
}

@media (max-width: 560px) {
  .code-tool-head, .code-result .code-header, .code-list-toolbar { flex-direction: column; align-items: stretch; }
  .code-result .code-list div { grid-template-columns: 1fr; gap: 2px; }
  .code-actions .action-btn, .code-actions .copy-btn { flex: 1 1 auto; }
}

/* ============================================================
   2026-08-25 Codex · 讲师创作中心/课程编辑后台
   目标：优化创作中心的信息层级：顶部白栏 + 左侧导航 + 课程卡片 + 单课程工作台
   ============================================================ */
.teacher-center-page {
  --bili-blue: #00aeec;
  --bili-blue-d: #008ac5;
  --bili-blue-l: #e5f7ff;
  --creator-bg: #f5f6f8;
  --creator-text: #18191c;
  --creator-sub: #61666d;
  --creator-line: #e3e5e7;
  background: var(--creator-bg);
  color: var(--creator-text);
  min-height: 100vh;
}
.teacher-center-page .hidden { display: none !important; }
.teacher-center-page .btn-line { border: 1px solid var(--creator-line); color: var(--creator-text); background: #fff; }
.teacher-center-page .btn-line:hover { border-color: var(--bili-blue); color: var(--bili-blue-d); background: var(--bili-blue-l); }
.teacher-center-page .btn-primary { background: var(--bili-blue); color: #fff; }
.teacher-center-page .btn-primary:hover { background: var(--bili-blue-d); }

.creator-topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255,255,255,.96) !important;
  color: var(--creator-text) !important;
  border-bottom: 1px solid var(--creator-line);
  box-shadow: 0 2px 10px rgba(0,0,0,.03);
  backdrop-filter: blur(12px);
}
.creator-topbar-inner {
  height: 58px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 22px;
}
.creator-logo { display: flex; align-items: center; gap: 10px; font-size: 16px; color: var(--creator-text); white-space: nowrap; }
.bili-mark { display: inline-grid; place-items: center; width: 38px; height: 24px; border-radius: 8px; background: var(--bili-blue); color: #fff; font-size: 12px; font-weight: 900; letter-spacing: .4px; }
.creator-main-site, .creator-help { color: var(--creator-sub); font-size: 14px; }
.creator-main-site:hover, .creator-help:hover { color: var(--bili-blue-d); }
.creator-ai-pill { color: #fb7299; background: #fff0f5; border: 1px solid #ffd5e5; border-radius: 999px; padding: 5px 12px; font-size: 13px; }
.creator-top-spacer { flex: 1; }

.creator-shell { display: grid; grid-template-columns: 204px minmax(0, 1fr); min-height: calc(100vh - 58px); }
.creator-sidebar {
  position: sticky;
  top: 58px;
  align-self: start;
  height: calc(100vh - 58px);
  overflow-y: auto;
  background: #fff;
  border-right: 1px solid var(--creator-line);
  padding: 18px 12px 24px;
}
.creator-upload-btn {
  width: 100%;
  height: 42px;
  border: none;
  border-radius: 8px;
  background: var(--bili-blue);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 18px;
  box-shadow: 0 6px 16px rgba(0,174,236,.22);
}
.creator-upload-btn:hover { background: var(--bili-blue-d); }
.creator-nav { display: flex; flex-direction: column; gap: 4px; }
.creator-nav-main, .creator-nav-sub {
  width: 100%;
  height: 38px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--creator-sub);
  font-size: 14px;
  text-align: left;
  padding: 0 12px;
}
.creator-nav-main span { width: 18px; text-align: center; color: #9499a0; }
.creator-nav-main:hover, .creator-nav-sub:hover, .creator-nav-main.active, .creator-nav-sub.active { background: var(--bili-blue-l); color: var(--bili-blue-d); font-weight: 700; }
.creator-nav-group { margin: 8px 0; }
.creator-nav-group-title { display: flex; align-items: center; gap: 8px; color: #9499a0; font-size: 12px; line-height: 28px; padding: 0 12px; }
.creator-nav-group-title span { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 6px; background: #f1f2f3; color: #9499a0; }
.creator-nav-sub { padding-left: 38px; height: 34px; font-size: 13px; }
.creator-main { min-width: 0; padding: 20px 28px 54px; }
.creator-notice { background: #fff7e8; border: 1px solid #ffe0a8; color: #8a5a08; border-radius: 10px; padding: 10px 14px; font-size: 13px; margin-bottom: 16px; }
.creator-page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; margin-bottom: 16px; }
.creator-page-head h1 { font-size: 24px; line-height: 1.25; margin: 0 0 6px; font-weight: 800; }
.creator-page-head p { color: var(--creator-sub); font-size: 14px; margin: 0; }
.creator-primary-btn { border: none; border-radius: 8px; background: var(--bili-blue); color: #fff; padding: 10px 18px; font-weight: 800; font-size: 14px; box-shadow: 0 6px 16px rgba(0,174,236,.18); }
.creator-primary-btn:hover { background: var(--bili-blue-d); }
.creator-card { background: #fff; border: 1px solid var(--creator-line); border-radius: 12px; padding: 18px; margin-bottom: 16px; box-shadow: 0 4px 14px rgba(0,0,0,.025); }
.creator-stats-card { display: grid; grid-template-columns: minmax(320px, 1fr) minmax(300px, .9fr); gap: 18px; }
.creator-mini-analytics { border-left: 1px solid var(--creator-line); padding-left: 18px; }
.creator-mini-analytics h3 { font-size: 16px; margin: 0 0 4px; }
.creator-mini-analytics p { color: var(--creator-sub); font-size: 13px; margin: 0 0 8px; }

.creator-list-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 14px; }
.creator-status-tabs { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.status-tab { height: 36px; padding: 0 14px; border: none; border-radius: 8px; background: transparent; color: var(--creator-sub); font-weight: 700; font-size: 14px; }
.status-tab span { margin-left: 4px; color: #9499a0; font-weight: 600; }
.status-tab:hover, .status-tab.active { background: var(--bili-blue-l); color: var(--bili-blue-d); }
.status-tab.active span { color: var(--bili-blue-d); }
.creator-search { position: relative; min-width: 260px; }
.creator-search input { width: 100%; height: 38px; border: 1px solid var(--creator-line); border-radius: 8px; background: #f6f7f8; padding: 0 36px 0 12px; margin: 0; }
.creator-search input:focus { outline: none; border-color: var(--bili-blue); background: #fff; box-shadow: 0 0 0 3px rgba(0,174,236,.09); }
.creator-search span { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: #9499a0; }
.creator-course-list { display: flex; flex-direction: column; gap: 12px; }
.creator-course-item { display: grid; grid-template-columns: 160px minmax(0,1fr) auto; align-items: center; gap: 16px; min-height: 112px; border: 1px solid var(--creator-line); border-radius: 12px; padding: 12px; background: #fff; transition: border-color .15s, box-shadow .15s, transform .15s; }
.creator-course-item:hover { border-color: #c9edf9; box-shadow: 0 8px 24px rgba(0,174,236,.08); transform: translateY(-1px); }
.creator-course-cover { position: relative; width: 160px; height: 90px; border-radius: 8px; overflow: hidden; display: grid; place-items: center; background: linear-gradient(135deg, #dff7ff, #edf9ff); color: var(--bili-blue); font-size: 28px; font-weight: 800; }
.creator-course-cover img { width: 100%; height: 100%; object-fit: cover; }
.cover-corner { position: absolute; right: 6px; top: 6px; padding: 2px 7px; border-radius: 999px; background: rgba(0,0,0,.55); color: #fff; font-size: 11px; }
.creator-course-main { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 7px; }
.creator-course-main h3 { width: 100%; font-size: 16px; line-height: 1.35; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.creator-course-sub { color: var(--creator-sub); font-size: 13px; }
.course-state { display: inline-flex; align-items: center; height: 24px; border-radius: 999px; padding: 0 9px; font-size: 12px; font-weight: 800; }
.course-state.ok { color: #008a4d; background: #e9fbf3; }
.course-state.draft { color: #b26b00; background: #fff6df; }
.course-state.offline { color: #707780; background: #f1f2f3; }
.creator-course-actions { position: relative; display: flex; align-items: center; gap: 8px; }
.bili-action { height: 34px; border: 1px solid var(--creator-line); border-radius: 8px; background: #fff; color: var(--creator-text); padding: 0 14px; font-weight: 700; }
.bili-action:hover { border-color: var(--bili-blue); color: var(--bili-blue-d); background: var(--bili-blue-l); }
.bili-action.primary { border-color: var(--bili-blue); color: var(--bili-blue-d); background: #fff; }
.bili-action.primary:hover { background: var(--bili-blue); color: #fff; }
.bili-more { width: 34px; height: 34px; border: 1px solid var(--creator-line); border-radius: 8px; background: #fff; color: var(--creator-sub); font-size: 18px; line-height: 1; }
.bili-more:hover { border-color: var(--bili-blue); color: var(--bili-blue-d); background: var(--bili-blue-l); }
.course-more-menu { display: none; position: absolute; right: 0; top: 40px; min-width: 138px; padding: 6px; border: 1px solid var(--creator-line); border-radius: 10px; background: #fff; box-shadow: 0 10px 28px rgba(0,0,0,.12); z-index: 20; }
.course-more-menu.open { display: block; }
.course-more-menu button { display: block; width: 100%; border: none; background: transparent; color: var(--creator-text); padding: 9px 10px; border-radius: 8px; text-align: left; font-size: 13px; }
.course-more-menu button:hover { background: #f6f7f8; }
.course-more-menu button.danger { color: #d03030; }

.creator-breadcrumb { color: #9499a0; font-size: 13px; margin-bottom: 6px; }
.course-workspace-summary { align-items: center; }
.workspace-stats { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.workspace-stats span { display: inline-flex; align-items: center; height: 28px; border: 1px solid var(--creator-line); border-radius: 999px; padding: 0 10px; background: #fff; color: var(--creator-sub); font-size: 12px; }
.creator-course-hero { display: grid; grid-template-columns: 176px minmax(0,1fr) auto; align-items: center; gap: 18px; background: linear-gradient(135deg,#ffffff,#f7fcff); border: 1px solid #d9f2fb; border-radius: 14px; padding: 16px; margin-bottom: 16px; box-shadow: 0 4px 16px rgba(0,174,236,.06); }
.hero-cover { width: 176px; height: 99px; border-radius: 10px; overflow: hidden; display: grid; place-items: center; background: linear-gradient(135deg,#dff7ff,#f5fbff); color: var(--bili-blue); font-size: 34px; font-weight: 900; }
.hero-cover img { width: 100%; height: 100%; object-fit: cover; }
.hero-info { min-width: 0; }
.hero-title { font-size: 20px; font-weight: 900; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero-meta { color: var(--creator-sub); font-size: 13px; margin-top: 6px; }
.hero-metrics { display: grid; grid-template-columns: repeat(4, 80px); gap: 8px; }
.hero-metrics div { background: #fff; border: 1px solid var(--creator-line); border-radius: 10px; padding: 9px 6px; text-align: center; }
.hero-metrics b { display: block; font-size: 18px; color: var(--creator-text); line-height: 1.2; white-space: nowrap; }
.hero-metrics span { display: block; color: var(--creator-sub); font-size: 12px; margin-top: 2px; }
.creator-work-tabs { position: sticky; top: 58px; z-index: 30; display: flex; gap: 6px; background: var(--creator-bg); padding: 2px 0 12px; margin-bottom: 4px; }
.creator-work-tabs button { border: none; border-radius: 8px; background: #fff; color: var(--creator-sub); padding: 9px 16px; font-weight: 800; border: 1px solid var(--creator-line); }
.creator-work-tabs button:hover, .creator-work-tabs button.active { color: var(--bili-blue-d); border-color: var(--bili-blue); background: var(--bili-blue-l); }
.bili-section-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.bili-section-title h3 { font-size: 17px; margin: 0; }
.bili-section-title span { display: block; color: var(--creator-sub); font-size: 13px; margin-top: 3px; }
.bili-form-grid { grid-template-columns: minmax(0,1fr) 260px; gap: 22px; align-items: start; }
.bili-input, .bili-textarea { border: 1px solid var(--creator-line); border-radius: 8px; background: #fff; }
.bili-input:focus, .bili-textarea:focus { outline: none; border-color: var(--bili-blue); box-shadow: 0 0 0 3px rgba(0,174,236,.08); }
.teacher-intro-tip { background: #fafbfc; border: 1px dashed var(--creator-line); border-radius: 10px; padding: 12px; }
.bili-cover-zone { width: 240px; height: 135px; border: 1px dashed #b8c0cc; border-radius: 10px; background-color: #f7f8fa; color: var(--creator-sub); box-shadow: none; }
.bili-cover-zone:hover { border-color: var(--bili-blue); background-color: var(--bili-blue-l); }
.bili-cover-zone .upload-text { text-align: center; color: var(--creator-sub); }
.creator-form-actions { display: flex; gap: 10px; justify-content: flex-end; border-top: 1px solid var(--creator-line); padding-top: 16px; margin-top: 10px; }
.legacy-chapter-cache { display: none; }

.bili-outline-toolbar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.bili-outline-toolbar .btn, .bili-batch-line .btn { height: 36px; padding: 0 13px; display: inline-flex; align-items: center; }
.outline-upload-btn { cursor: pointer; }
.bili-batch-line { display: grid; grid-template-columns: minmax(180px,1fr) auto 180px minmax(260px,1.4fr) auto; gap: 10px; align-items: center; padding: 12px; border: 1px solid var(--creator-line); border-radius: 10px; background: #fafbfc; margin-bottom: 14px; }
.bili-batch-line .input { margin: 0; height: 36px; min-height: 36px; resize: vertical; border-color: var(--creator-line); }
.bili-outline-table { border: 1px solid var(--creator-line); border-radius: 10px; overflow: hidden; background: #fff; }
.bili-outline-head { display: grid; grid-template-columns: 70px 88px minmax(280px,1fr) 120px 140px 244px; align-items: center; height: 42px; background: #f6f7f8; color: #9499a0; font-size: 12px; font-weight: 800; border-bottom: 1px solid var(--creator-line); }
.bili-outline-head span { padding: 0 10px; }
.outline-chapter + .outline-chapter { border-top: 1px solid var(--creator-line); }
.bili-chapter-row { min-height: 50px; display: flex; align-items: center; gap: 10px; background: #f8fcff; padding: 8px 12px; border-bottom: 1px solid #eaf5fb; }
.outline-toggle { width: 26px; height: 26px; border: none; background: transparent; color: var(--creator-sub); border-radius: 6px; font-size: 16px; }
.outline-toggle:hover { background: #fff; color: var(--bili-blue-d); }
.drag-handle { color: #b8c0cc; font-size: 13px; }
.chapter-badge { height: 24px; display: inline-flex; align-items: center; border-radius: 6px; background: var(--bili-blue); color: #fff; padding: 0 8px; font-size: 12px; font-weight: 800; }
.bili-chapter-input { flex: 0 1 380px; height: 32px; border: 1px solid transparent; border-radius: 7px; background: transparent; color: var(--creator-text); font-weight: 800; padding: 0 8px; }
.bili-chapter-input:hover, .bili-chapter-input:focus { outline: none; background: #fff; border-color: var(--bili-blue); }
.outline-spacer { flex: 1; }
.outline-empty { padding: 14px 22px; font-size: 13px; background: #fff; }
.bili-lesson-row { display: grid; grid-template-columns: 70px 88px minmax(280px,1fr) 120px 140px 244px; align-items: center; min-height: 58px; border-top: 1px solid #f1f2f3; background: #fff; }
.bili-lesson-row:hover { background: #fbfdff; }
.bili-lesson-row > * { padding: 0 10px; }
.lesson-index { color: #9499a0; font-size: 13px; }
.lesson-title-cell { min-width: 0; padding-top: 7px; padding-bottom: 7px; }
.bili-lesson-title-input { width: 100%; height: 30px; border: 1px solid transparent; border-radius: 7px; background: transparent; padding: 0 8px; color: var(--creator-text); font-weight: 700; }
.bili-lesson-title-input:hover, .bili-lesson-title-input:focus { outline: none; background: #fff; border-color: var(--bili-blue); }
.lesson-mini-meta { margin-top: 3px; color: #9499a0; font-size: 12px; }
.lesson-mini-meta button { border: none; background: transparent; color: #9499a0; font-size: 12px; padding: 0 3px; }
.lesson-mini-meta button:hover { color: var(--bili-blue-d); }
.bili-row-select { width: 100%; height: 32px; border: 1px solid var(--creator-line); border-radius: 7px; background: #fff; color: var(--creator-text); font-size: 13px; padding: 0 8px; }
.bili-row-select:focus { outline: none; border-color: var(--bili-blue); }
.lesson-actions-cell { display: flex; align-items: center; gap: 6px; justify-content: flex-end; }
.lesson-actions-cell .action-btn { height: 30px; min-width: 46px; padding: 0 9px; border-radius: 7px; font-size: 12px; border: 1px solid var(--creator-line); background: #fff; color: var(--creator-text); }
.lesson-actions-cell .action-btn:hover { border-color: var(--bili-blue); color: var(--bili-blue-d); background: var(--bili-blue-l); }
.lesson-actions-cell .action-btn.edit { border-color: var(--bili-blue); color: var(--bili-blue-d); }
.lesson-actions-cell .action-btn.danger { color: #d03030; }
.lesson-actions-cell .action-btn.danger:hover { border-color: #ffccc7; background: #fff2f0; color: #d03030; }

@media (max-width: 1180px) {
  .creator-shell { grid-template-columns: 178px minmax(0, 1fr); }
  .creator-sidebar { padding-left: 10px; padding-right: 10px; }
  .creator-main { padding-left: 18px; padding-right: 18px; }
  .creator-stats-card, .creator-course-hero { grid-template-columns: 1fr; }
  .creator-mini-analytics { border-left: none; border-top: 1px solid var(--creator-line); padding-left: 0; padding-top: 14px; }
  .hero-metrics { grid-template-columns: repeat(4, minmax(70px, 1fr)); }
  .bili-outline-head, .bili-lesson-row { grid-template-columns: 54px 82px minmax(220px,1fr) 96px 124px 220px; }
  .bili-batch-line { grid-template-columns: 1fr auto; }
  .bili-batch-line select, .bili-batch-line textarea { grid-column: span 1; }
}
@media (max-width: 860px) {
  .creator-topbar-inner { padding: 0 12px; gap: 10px; }
  .creator-ai-pill, .creator-main-site { display: none; }
  .creator-shell { display: block; }
  .creator-sidebar { position: static; height: auto; border-right: none; border-bottom: 1px solid var(--creator-line); display: block; }
  .creator-nav { flex-direction: row; overflow-x: auto; padding-bottom: 4px; }
  .creator-nav-group { display: flex; align-items: center; margin: 0; }
  .creator-nav-group-title { display: none; }
  .creator-nav-main, .creator-nav-sub { white-space: nowrap; padding: 0 12px; }
  .creator-upload-btn { width: auto; padding: 0 18px; margin-bottom: 10px; }
  .creator-page-head, .creator-list-toolbar { flex-direction: column; align-items: stretch; }
  .creator-search { min-width: 0; }
  .creator-course-item { grid-template-columns: 120px minmax(0,1fr); }
  .creator-course-cover { width: 120px; height: 68px; }
  .creator-course-actions { grid-column: 1 / -1; justify-content: flex-end; }
  .bili-form-grid { grid-template-columns: 1fr; }
  .bili-cover-zone { width: 100%; max-width: 280px; }
  .creator-work-tabs { top: 0; overflow-x: auto; }
  .bili-outline-table { overflow-x: auto; }
  .bili-outline-head, .bili-lesson-row { min-width: 890px; }
}
@media (max-width: 560px) {
  .creator-main { padding: 14px 12px 40px; }
  .creator-card { padding: 14px; }
  .creator-course-item { grid-template-columns: 1fr; }
  .creator-course-cover { width: 100%; height: auto; aspect-ratio: 16 / 9; }
  .hero-metrics { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .creator-form-actions, .bili-outline-toolbar, .lesson-actions-cell { justify-content: stretch; }
  .creator-form-actions > *, .bili-outline-toolbar > * { flex: 1; }
}

/* 看板卡片高度修正：左侧三张统计卡不要被右侧看板拉高 */
.creator-stats-card { align-items: start; }
.creator-stats-card .stat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 0; align-self: start; }
.creator-stats-card .stat { min-height: 88px; padding: 16px; border-radius: 12px; }
@media (max-width: 1180px) { .creator-stats-card .stat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .creator-stats-card .stat-grid { grid-template-columns: 1fr; } }

/* 2026-08-25 Codex · 弹窗/批量上传增强 */
.btn.btn-danger, .btn-danger { background: #ff4d4f; color: #fff; border: 1px solid #ff4d4f; box-shadow: 0 8px 18px rgba(255,77,79,.18); }
.btn.btn-danger:hover, .btn-danger:hover { background: #e94244; border-color: #e94244; }
.bili-confirm-box { display: grid; gap: 12px; color: #61666d; line-height: 1.7; }
.bili-confirm-box p { margin: 0; color: #18191c; font-size: 15px; font-weight: 700; }
.bili-confirm-box small { color: #9499a0; }
.bili-confirm-box.danger { background: #fff7f7; border: 1px solid #ffd7d7; border-radius: 10px; padding: 14px; }
.bili-confirm-input { display: grid; gap: 8px; margin-top: 4px; }
.bili-confirm-input span { font-size: 13px; color: #61666d; }
.bili-confirm-input b { color: #ff4d4f; }

.bili-dialog-mask { position: fixed; inset: 0; z-index: 1000; display: none; place-items: center; background: rgba(0,0,0,.48); padding: 24px; }
.bili-dialog-mask.show { display: grid; }
.bili-dialog { position: relative; width: min(620px, 94vw); max-height: min(760px, 90vh); overflow: auto; background: #fff; border-radius: 14px; box-shadow: 0 18px 60px rgba(0,0,0,.24); padding: 28px 32px 22px; }
.bili-dialog.wide { width: min(980px, 94vw); }
.bili-dialog-close { position: absolute; top: 18px; right: 20px; width: 32px; height: 32px; border: none; border-radius: 50%; background: transparent; color: #c0c4cc; font-size: 30px; line-height: 28px; cursor: pointer; }
.bili-dialog-close:hover { background: #f4f5f7; color: #606266; }
.bili-dialog-head { padding-right: 42px; border-bottom: 1px solid #f0f1f3; margin-bottom: 20px; }
.bili-dialog-head h3 { margin: 0 0 8px; font-size: 20px; color: #18191c; }
.bili-dialog-head p { margin: 0 0 18px; color: #9499a0; font-size: 13px; }
.bili-dialog-body label { display: grid; gap: 8px; color: #61666d; font-size: 13px; font-weight: 700; }
.bili-dialog-textarea { min-height: 160px; resize: vertical; line-height: 1.7; }
.bili-dialog-grid { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 18px; align-items: start; }
.bili-dialog-wide-field { grid-column: 1 / 2; }
.bili-dialog-side, .bili-dialog-tip { background: #f7f8fa; border: 1px solid #edf0f2; border-radius: 10px; padding: 14px; color: #9499a0; font-size: 13px; line-height: 1.7; }
.bili-dialog-side b, .bili-dialog-tip b { display: block; color: #18191c; margin-bottom: 4px; }
.bili-dialog-side p { margin: 0 0 14px; }
.bili-dialog-foot { display: flex; justify-content: flex-end; gap: 12px; padding-top: 18px; border-top: 1px solid #f0f1f3; margin-top: 22px; }
.bili-lesson-editor { display: grid; gap: 16px; }
.bili-upload-dialog { display: grid; gap: 14px; }
.bili-drop-zone { height: 320px; border: 1px dashed #d0d7de; border-radius: 12px; background: #fbfcfd; display: grid; place-items: center; align-content: center; gap: 8px; color: #9499a0; cursor: pointer; transition: .18s; }
.bili-drop-zone:hover, .bili-drop-zone.dragover { border-color: var(--bili-blue); background: #f1fbff; color: var(--bili-blue-d); }
.bili-cloud { width: 72px; height: 52px; border-radius: 18px; display: grid; place-items: center; background: #eef2f6; color: #c0c4cc; font-size: 34px; }
.bili-drop-zone p { margin: 0; font-size: 15px; color: #61666d; }
.bili-drop-zone p span { color: var(--bili-blue-d); padding: 0 3px; }
.bili-drop-zone small { color: #9499a0; }
.bili-auto-bind { display: flex !important; grid-template-columns: none !important; align-items: center; gap: 8px !important; font-weight: 500 !important; color: #61666d !important; }
.bili-upload-queue { border: 1px solid #edf0f2; border-radius: 10px; max-height: 190px; overflow: auto; padding: 8px; background: #fff; }
.bili-upload-item { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 8px; border-radius: 8px; }
.bili-upload-item + .bili-upload-item { border-top: 1px solid #f4f5f7; }
.bili-upload-item span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #18191c; font-weight: 700; }
.bili-upload-item small { flex: none; color: var(--bili-blue-d); }

.upload-progress { margin-top: 10px; display: grid; gap: 6px; }
.upload-progress .upload-bar { height: 8px; background: #edf0f2; border-radius: 999px; overflow: hidden; }
.upload-progress .upload-bar i { display: block; height: 100%; width: 0%; background: var(--bili-blue, #00aeec); transition: width .18s ease; }
.upload-progress .upload-status { color: #61666d; font-size: 12px; display: flex; justify-content: space-between; gap: 10px; }
.bili-upload-item { align-items: stretch; }
.bili-upload-main { min-width: 0; flex: 1; display: grid; gap: 6px; }
.bili-upload-main span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #18191c; font-weight: 700; }
.bili-upload-main .upload-bar { height: 6px; background: #edf0f2; border-radius: 999px; overflow: hidden; }
.bili-upload-main .upload-bar i { display:block; height:100%; width:0%; background: var(--bili-blue, #00aeec); transition: width .18s ease; }
@media (max-width: 720px) {
  .bili-dialog { padding: 22px 18px 18px; }
  .bili-dialog-grid { grid-template-columns: 1fr; }
  .bili-dialog-wide-field { grid-column: auto; }
  .bili-drop-zone { height: 230px; }
}

/* 2026-08-25 Codex：老师反馈整改（课时上传、素材硬盘、兑换码批次、播放器/首页布局） */
.nav-actions { flex-wrap: wrap; justify-content: flex-end; }
.nav-actions .btn { white-space: nowrap; }
.nav-user .user-name { background: transparent; padding: 0; }
.user-menu { color: var(--ink); }

/* 学员端播放器：避免错误提示被追加后撑成上下两个黑块 */
.player-area {
  display: block;
  width: 100%;
  aspect-ratio: auto;
  min-height: auto;
  background: #000;
  border-radius: var(--radius);
  overflow: hidden;
}
.player-area .player-wrap {
  position: relative;
  width: 100%;
  height: auto;
  min-height: 0;
  background: #000;
  border-radius: var(--radius);
  overflow: hidden;
}
.player-area .player-wrap video,
.player-area .player-wrap #vodPlayer {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  max-height: none;
  object-fit: contain;
  background: #000;
}
.player-area .player-wrap #vodPlayer,
.player-area .prism-player { height: auto !important; min-height: 320px; aspect-ratio: 16 / 9; }
.player-area .player-bar { border-radius: 0; flex-wrap: wrap; }
.player-area .player-loading,
.player-area .player-locked {
  width: 100%;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0f1929;
  color: #cdd7e6;
  border-radius: var(--radius);
  text-align: center;
}
.player-wrap .player-error-overlay {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #cdd7e6;
  background: rgba(15,25,41,.82);
  text-align: center;
  pointer-events: none;
}

/* 课时上传面板 */
.lesson-upload-panel { display: grid; gap: 16px; }
.lesson-upload-title { padding: 10px 12px; border: 1px solid #edf0f2; border-radius: 10px; background: #fafbfc; color: #61666d; }
.upload-tabs, .asset-type-tabs { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.asset-tab {
  height: 34px;
  padding: 0 14px;
  border: 1px solid var(--creator-line, var(--line));
  border-radius: 999px;
  background: #fff;
  color: #61666d;
  font-weight: 700;
  cursor: pointer;
}
.asset-tab:hover, .asset-tab.active { color: var(--bili-blue-d, var(--brand)); border-color: var(--bili-blue, var(--brand)); background: var(--bili-blue-l, var(--brand-l)); }
.lesson-upload-pane { display: none; }
.lesson-upload-pane.active { display: block; }
.lesson-local-drop { min-height: 260px; }
.asset-picker-toolbar { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; }
.asset-picker-toolbar .input { margin: 0; }
.lesson-asset-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; max-height: 420px; overflow: auto; padding: 2px; }
.lesson-asset-card {
  display: grid;
  grid-template-columns: 42px minmax(0,1fr);
  grid-template-rows: auto auto;
  gap: 3px 10px;
  align-items: center;
  width: 100%;
  min-height: 70px;
  padding: 10px;
  border: 1px solid #edf0f2;
  border-radius: 10px;
  background: #fff;
  text-align: left;
  cursor: pointer;
}
.lesson-asset-card:hover { border-color: var(--bili-blue, var(--brand)); box-shadow: 0 8px 22px rgba(0,174,236,.10); transform: translateY(-1px); }
.lesson-asset-card .asset-thumb { grid-row: 1 / 3; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 10px; background: #eef9ff; color: var(--bili-blue-d, var(--brand)); font-weight: 900; }
.lesson-asset-card b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #18191c; }
.lesson-asset-card small { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #9499a0; }

/* 素材中心：分类 + 容量条 */
.asset-dashboard { display: grid; gap: 14px; }
.asset-quota-box { display: grid; gap: 8px; padding: 14px; border: 1px solid #edf0f2; border-radius: 12px; background: linear-gradient(180deg,#fbfdff,#fff); }
.asset-quota-main { display: flex; justify-content: space-between; gap: 12px; align-items: center; color: #18191c; }
.asset-quota-main span { color: #61666d; font-size: 13px; }
.asset-quota-bar { height: 10px; overflow: hidden; border-radius: 999px; background: #eef1f5; }
.asset-quota-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg,var(--bili-blue, #00aeec),#7bdcff); }
.small { font-size: 12px; }
.tag.used { background: #e9f8ff; color: var(--bili-blue-d, var(--brand)); }

/* 兑换码按批次折叠 */
.code-batch-row > td { padding: 0 !important; background: #fff; }
.code-batch-head { display: grid; grid-template-columns: 32px minmax(220px,1.2fr) minmax(220px,.9fr) auto; gap: 12px; align-items: center; padding: 12px 14px; border-bottom: 1px solid #f1f2f3; }
.code-batch-toggle { width: 28px; height: 28px; border: none; border-radius: 8px; background: #f6f7f8; color: #61666d; cursor: pointer; }
.code-batch-toggle:hover { background: var(--bili-blue-l, var(--brand-l)); color: var(--bili-blue-d, var(--brand)); }
.code-batch-title { display: grid; gap: 3px; }
.code-batch-title b { color: #18191c; }
.code-batch-title span, .code-batch-stats { color: #9499a0; font-size: 12px; }
.code-batch-stats { display: flex; gap: 8px; flex-wrap: wrap; }
.code-batch-stats span { padding: 3px 8px; border-radius: 999px; background: #f6f7f8; }
.code-batch-detail > td { padding: 0 14px 14px !important; background: #fafbfc; }
.inner-code-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid #edf0f2; border-radius: 10px; overflow: hidden; }
.inner-code-table th, .inner-code-table td { padding: 10px 12px; border-bottom: 1px solid #f1f2f3; font-size: 13px; }
.inner-code-table th { background: #f6f7f8; color: #9499a0; text-align: left; }
.code-actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.code-actions .action-btn[disabled] { opacity: .45; cursor: not-allowed; }

/* 拖拽可感知 */
.outline-chapter[draggable="true"] .bili-chapter-row, .outline-lesson[draggable="true"] { cursor: grab; }
.outline-chapter[draggable="true"] .bili-chapter-row:active, .outline-lesson[draggable="true"]:active { cursor: grabbing; }
.outline-chapter[draggable="true"] .drag-handle, .outline-lesson[draggable="true"] .lesson-index { color: var(--bili-blue-d, var(--brand)); }
.outline-lessons { min-height: 42px; }

@media (max-width: 760px) {
  .code-batch-head { grid-template-columns: 32px 1fr; }
  .code-batch-stats, .code-batch-head .code-actions { grid-column: 2; }
  .asset-picker-toolbar { flex-direction: column; align-items: stretch; }
  .player-area .player-loading, .player-area .player-locked, .player-area .prism-player { min-height: 210px; }
}

/* 学员端课程目录按章节分组 */
.chapter-section{border-bottom:1px solid rgba(15,23,42,.06)}
.chapter-section:last-child{border-bottom:0}
.chapter-section-title{padding:12px 16px 6px;font-size:13px;font-weight:700;color:#1f2937;background:#fafafa;display:flex;justify-content:space-between;gap:8px;align-items:center}
.chapter-section-title span{font-size:12px;font-weight:500;color:var(--muted)}
.chapter-section .chapter{border-bottom:0}

/* 2026-08-26 Codex：学员端播放器全屏与授权状态修正 */
.tech-admin-corner {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 1200;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(148,163,184,.32);
  box-shadow: 0 8px 24px rgba(15,23,42,.08);
  color: rgba(71,85,105,.78);
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  backdrop-filter: blur(10px);
}
.tech-admin-corner:hover { color: var(--brand-d); background: #fff; text-decoration: none; transform: translateY(-1px); }
.auth-status { display:inline-flex; align-items:center; padding:3px 9px; border-radius:999px; font-size:12px; font-weight:800; }
.auth-status.on { color:#12805c; background:#e8f6ee; border:1px solid #c9edda; }
.auth-status.off { color:#8a5a00; background:#fff7e6; border:1px solid #ffe1a8; }
.student-revoked { background:#fffaf0; }
.student-revoked td { color:#6b7280; }
.player-tool-btn { border:1px solid rgba(255,255,255,.2); background:rgba(255,255,255,.1); color:#fff; border-radius:8px; padding:6px 10px; cursor:pointer; font-size:12px; font-weight:700; }
.player-tool-btn:hover { background:rgba(255,255,255,.18); border-color:rgba(255,255,255,.38); }
.player-web-fullscreen-open { overflow:hidden; }
.player-area.web-fullscreen {
  position: fixed;
  inset: 0;
  z-index: 3000;
  width: 100vw;
  height: 100vh;
  border-radius: 0;
  background:#000;
}
.player-area.web-fullscreen .player-wrap { width:100%; height:100%; border-radius:0; display:flex; flex-direction:column; }
.player-area.web-fullscreen .player-wrap video,
.player-area.web-fullscreen .player-wrap #vodPlayer,
.player-area.web-fullscreen .prism-player {
  flex:1 1 auto;
  width:100% !important;
  height:calc(100vh - 46px) !important;
  min-height:0 !important;
  aspect-ratio:auto !important;
  object-fit:contain;
}
.player-area.web-fullscreen .player-bar { flex:0 0 auto; border-radius:0; background:#111827; justify-content:flex-end; }
.player-area.web-fullscreen .wm-copyright { top:0; }
@media (max-width:700px) { .tech-admin-corner { right:12px; bottom:12px; padding:6px 9px; } }

/* 2026-08-26 UI-1525：播放器控制栏 / 水印 / 老师发布检查 / 总后台左侧菜单 */
.sr-only { position:absolute !important; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.player-area .wm-copyright { display:none !important; }
.player-area .wm-layer { position:absolute; inset:12px 0 auto 0; height:24px; z-index:6; pointer-events:none; overflow:hidden; display:flex; justify-content:center; align-items:flex-start; }
.player-area .wm-track { position:static; transform:none; white-space:nowrap; opacity:.24; animation:none; }
.player-area .wm-item { display:inline-block; font-size:12px; line-height:24px; font-weight:600; letter-spacing:.4px; color:#fff; text-shadow:0 1px 3px rgba(0,0,0,.75); padding:0 14px; border-radius:999px; background:rgba(0,0,0,.18); transform:none; }
.player-area .player-bar {
  display:flex;
  align-items:center;
  gap:10px;
  width:100%;
  min-height:46px;
  padding:8px 12px;
  background:linear-gradient(180deg,rgba(16,24,39,.96),rgba(5,8,13,.98));
  border-top:1px solid rgba(255,255,255,.08);
  color:#f8fafc;
  box-sizing:border-box;
}
.player-source-chip, .player-control-chip { display:inline-flex; align-items:center; gap:7px; height:30px; border-radius:999px; color:rgba(255,255,255,.88); font-size:12px; white-space:nowrap; }
.player-source-chip { padding:0 4px; color:rgba(226,232,240,.72); }
.player-control-chip { padding:0 9px; background:rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.10); }
.player-control-chip b { font-size:12px; color:#fff; }
.player-control-chip select { appearance:none; -webkit-appearance:none; border:0; outline:0; background:transparent; color:#fff; font-weight:700; font-size:12px; cursor:pointer; padding:0 2px; }
.player-control-chip select option { color:#111827; background:#fff; }
.player-source-chip svg, .player-control-chip svg, .player-icon-btn svg { width:18px; height:18px; fill:currentColor; flex:none; }
.player-bar-spacer { flex:1 1 auto; min-width:16px; }
.player-icon-btn { width:34px; height:34px; display:inline-flex; align-items:center; justify-content:center; border:0; border-radius:10px; background:transparent; color:rgba(255,255,255,.88); cursor:pointer; transition:background .15s,color .15s,transform .15s; }
.player-icon-btn:hover, .player-icon-btn.active { background:rgba(255,255,255,.13); color:#fff; }
.player-icon-btn:active { transform:scale(.96); }
.player-area.web-fullscreen .player-bar { flex:0 0 auto; border-radius:0; justify-content:flex-end; }
.player-area.web-fullscreen .wm-layer { top:14px; }
.player-area:fullscreen .player-wrap,
.player-area .player-wrap:fullscreen,
.player-wrap:-webkit-full-screen { width:100vw; height:100vh; border-radius:0; display:flex; flex-direction:column; background:#000; }
.player-area:fullscreen video,
.player-area .player-wrap:fullscreen video,
.player-area:fullscreen #vodPlayer,
.player-area .player-wrap:fullscreen #vodPlayer,
.player-area:fullscreen .prism-player,
.player-area .player-wrap:fullscreen .prism-player { flex:1 1 auto; width:100% !important; height:calc(100vh - 46px) !important; min-height:0 !important; aspect-ratio:auto !important; object-fit:contain; }

.teacher-center-page .creator-upload-btn { justify-content:center; }
.teacher-center-page .publish-check-card { padding:12px 14px; }
.teacher-center-page .publish-check-card .bili-section-title { align-items:center; margin-bottom:8px; }
.teacher-center-page .publish-check-card .bili-section-title h3 { font-size:15px; }
.teacher-center-page .publish-check-card .bili-section-title span { display:inline; margin-left:8px; font-size:12px; }
.teacher-center-page .publish-check-list { margin-top:8px; display:grid; grid-template-columns:1fr auto; gap:10px; align-items:center; }
.teacher-center-page .publish-check-flow { display:flex; flex-wrap:wrap; gap:6px; align-items:center; }
.teacher-center-page .publish-check-list .check-item { padding:5px 9px; border-radius:999px; font-size:12px; gap:5px; }
.teacher-center-page .publish-check-list .check-item span { width:16px; height:16px; font-size:11px; }
.teacher-center-page .publish-check-actions { margin-top:0; justify-content:flex-end; }
.teacher-center-page .teacher-intro-tip textarea { resize:vertical; min-height:74px; }

.tech-admin-corner {
  position:fixed;
  right:10px;
  bottom:8px;
  z-index:20;
  display:inline-block;
  padding:3px 4px;
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
  backdrop-filter:none;
  color:rgba(100,116,139,.32);
  font-size:11px;
  font-weight:500;
  text-decoration:none;
}
.tech-admin-corner:hover { color:rgba(37,99,235,.62); background:transparent; text-decoration:underline; transform:none; }

.admin-console-page { background:#f5f6f8; color:#18191c; min-height:100vh; }
.admin-console-page > header, .admin-console-page .site-footer { display:none; }
.admin-console-page .login-gate { min-height:100vh; }
.admin-console-shell { display:grid; grid-template-columns:224px minmax(0,1fr); min-height:100vh; background:#f5f6f8; }
.admin-console-sidebar { position:sticky; top:0; height:100vh; padding:16px 12px; background:#fff; border-right:1px solid #e3e5e7; box-sizing:border-box; display:flex; flex-direction:column; gap:14px; }
.admin-console-brand { display:flex; align-items:center; gap:10px; padding:4px 8px 10px; font-size:16px; }
.admin-console-home { display:flex; align-items:center; justify-content:center; height:34px; border-radius:8px; background:#f6f7f8; color:#61666d; font-size:13px; text-decoration:none; }
.admin-console-home:hover { background:#e5f7ff; color:#008ac5; }
.admin-console-nav { display:grid; gap:4px; }
.admin-console-nav .tab { width:100%; display:flex; align-items:center; gap:10px; height:38px; padding:0 10px; border:0; border-radius:8px; background:transparent; color:#61666d; font-size:14px; text-align:left; cursor:pointer; }
.admin-console-nav .tab span { width:22px; height:22px; display:inline-flex; align-items:center; justify-content:center; border-radius:6px; background:#f6f7f8; color:#9499a0; font-size:12px; }
.admin-console-nav .tab:hover, .admin-console-nav .tab.active { background:#e5f7ff; color:#008ac5; font-weight:700; }
.admin-console-nav .tab.active span { background:#00aeec; color:#fff; }
.admin-logout { margin-top:auto; width:100%; }
.admin-console-main { min-width:0; padding:20px 24px 48px; }
.admin-console-head { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:18px; }
.admin-console-head h1 { margin:0; font-size:24px; }
.admin-console-head p { margin:4px 0 0; color:#61666d; font-size:13px; }
.admin-console-page .tabs { display:none; }
.admin-console-page .stat-grid { grid-template-columns:repeat(4,minmax(0,1fr)); }
.admin-console-page .section-card, .admin-console-page .table-wrap { background:#fff; border:1px solid #e3e5e7; border-radius:12px; box-shadow:0 4px 14px rgba(0,0,0,.025); }
.admin-console-page .section-card { padding:16px; margin-bottom:16px; }
.admin-console-page .table-wrap { overflow:auto; margin-bottom:16px; }
@media (max-width: 900px) {
  .player-area .player-bar { gap:6px; padding:7px 8px; }
  .player-source-chip span { display:none; }
  .player-control-chip { padding:0 7px; }
  .teacher-center-page .publish-check-list { grid-template-columns:1fr; }
  .admin-console-shell { grid-template-columns:1fr; }
  .admin-console-sidebar { position:static; height:auto; }
  .admin-console-nav { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .admin-console-page .stat-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
.admin-console-page { --bili-blue:#00aeec; --bili-blue-d:#008ac5; --bili-blue-l:#e5f7ff; }

/* 2026-08-26 UI-1620：低干扰动态防盗水印（全屏可见，每 2 分钟滚动一次） */
.player-area .player-wrap { position:relative; }
.player-area .wm-copyright { display:none !important; }
.player-area .wm-layer,
.player-wrap:fullscreen .wm-layer,
.player-wrap:-webkit-full-screen .wm-layer,
#vodPlayer .prism-player:fullscreen .wm-layer,
#vodPlayer .prism-player:-webkit-full-screen .wm-layer {
  position:absolute !important;
  left:0 !important;
  right:0 !important;
  top:14px !important;
  bottom:auto !important;
  height:30px !important;
  z-index:2147483647 !important;
  pointer-events:none !important;
  overflow:hidden !important;
  display:block !important;
  justify-content:initial !important;
  align-items:initial !important;
  mix-blend-mode:normal;
}
.player-area .wm-track,
.player-wrap:fullscreen .wm-track,
.player-wrap:-webkit-full-screen .wm-track,
#vodPlayer .prism-player:fullscreen .wm-track,
#vodPlayer .prism-player:-webkit-full-screen .wm-track {
  position:absolute !important;
  top:0 !important;
  left:0 !important;
  white-space:nowrap !important;
  opacity:0;
  transform:translateX(-120%);
  animation:wm-pass-once-2min 120s linear infinite !important;
  will-change:transform,opacity;
}
.player-area .wm-item,
.player-wrap:fullscreen .wm-item,
.player-wrap:-webkit-full-screen .wm-item,
#vodPlayer .prism-player:fullscreen .wm-item,
#vodPlayer .prism-player:-webkit-full-screen .wm-item {
  display:inline-block !important;
  font-size:12px !important;
  line-height:24px !important;
  font-weight:600 !important;
  letter-spacing:.35px !important;
  color:rgba(255,255,255,.72) !important;
  text-shadow:0 1px 3px rgba(0,0,0,.68) !important;
  padding:0 12px !important;
  border-radius:999px !important;
  background:rgba(0,0,0,.12) !important;
  transform:none !important;
}
#vodPlayer .wm-vod-internal { display:none !important; }
#vodPlayer .prism-player:fullscreen .wm-vod-internal,
#vodPlayer .prism-player:-webkit-full-screen .wm-vod-internal { display:block !important; }
.player-area.web-fullscreen .wm-layer,
.player-wrap:fullscreen .wm-layer,
.player-wrap:-webkit-full-screen .wm-layer,
#vodPlayer .prism-player:fullscreen .wm-layer,
#vodPlayer .prism-player:-webkit-full-screen .wm-layer { top:18px !important; }
.player-wrap:fullscreen,
.player-wrap:-webkit-full-screen,
#vodPlayer .prism-player:fullscreen,
#vodPlayer .prism-player:-webkit-full-screen { position:relative !important; background:#000 !important; }
.player-area video::-webkit-media-controls-fullscreen-button { display:none !important; }
@keyframes wm-pass-once-2min {
  0% { transform:translateX(-120%); opacity:0; }
  1% { opacity:.22; }
  7% { transform:translateX(105vw); opacity:.22; }
  8% { transform:translateX(105vw); opacity:0; }
  100% { transform:translateX(105vw); opacity:0; }
}
@media (max-width:700px) {
  .player-area .wm-layer { top:10px !important; height:28px !important; }
  .player-area .wm-item { font-size:11px !important; background:rgba(0,0,0,.10) !important; }
}


/* 2026-08-26 UI-1810：增强阿里云播放器全屏水印兼容（含内部容器全屏/伪全屏） */
#vodPlayer,
#vodPlayer.prism-player,
#vodPlayer .prism-player { position:relative !important; }
#vodPlayer:fullscreen .wm-layer,
#vodPlayer:-webkit-full-screen .wm-layer,
#vodPlayer.prism-fullscreen .wm-layer,
#vodPlayer .prism-fullscreen .wm-layer,
#vodPlayer.prism-player-fullscreen .wm-layer,
#vodPlayer .prism-player-fullscreen .wm-layer,
#vodPlayer.fullscreen .wm-layer,
#vodPlayer .fullscreen .wm-layer {
  position:absolute !important;
  left:0 !important;
  right:0 !important;
  top:18px !important;
  height:30px !important;
  z-index:2147483647 !important;
  pointer-events:none !important;
  overflow:hidden !important;
  display:block !important;
}
#vodPlayer:fullscreen .wm-track,
#vodPlayer:-webkit-full-screen .wm-track,
#vodPlayer.prism-fullscreen .wm-track,
#vodPlayer .prism-fullscreen .wm-track,
#vodPlayer.prism-player-fullscreen .wm-track,
#vodPlayer .prism-player-fullscreen .wm-track,
#vodPlayer.fullscreen .wm-track,
#vodPlayer .fullscreen .wm-track {
  position:absolute !important;
  top:0 !important;
  left:0 !important;
  white-space:nowrap !important;
  animation:wm-pass-once-2min 120s linear infinite !important;
}
#vodPlayer:fullscreen .wm-vod-internal,
#vodPlayer:-webkit-full-screen .wm-vod-internal,
#vodPlayer.prism-fullscreen .wm-vod-internal,
#vodPlayer .prism-fullscreen .wm-vod-internal,
#vodPlayer.prism-player-fullscreen .wm-vod-internal,
#vodPlayer .prism-player-fullscreen .wm-vod-internal,
#vodPlayer.fullscreen .wm-vod-internal,
#vodPlayer .fullscreen .wm-vod-internal { display:block !important; }
@keyframes wm-pass-once-2min {
  0% { transform:translateX(-120%); opacity:0; }
  1% { opacity:.22; }
  9% { transform:translateX(105vw); opacity:.22; }
  10% { transform:translateX(105vw); opacity:0; }
  100% { transform:translateX(105vw); opacity:0; }
}
.bili-upload-item.upload-err small { color: #c0392b; white-space: normal; text-align: right; }
.bili-upload-item.upload-done small { color: #18a058; }
.bili-upload-item.upload-err .upload-bar i { background: #e0524e; }
.bili-upload-item.upload-done .upload-bar i { background: #18a058; }

/* 2026-08-27 Codex：课程封面统一 1:1、隐藏临时分类、压缩学员端章节目录 */
.category-tabs { display: none !important; }
.cover { height: auto !important; aspect-ratio: 1 / 1; }
.card .cover img { width: 100%; height: 100%; object-fit: cover; }
.teacher-line { display: none !important; }
.creator-course-item { grid-template-columns: 112px minmax(0,1fr) auto; min-height: 136px; }
.creator-course-cover { width: 112px !important; height: auto !important; aspect-ratio: 1 / 1 !important; }
.hero-cover { width: 118px !important; height: auto !important; aspect-ratio: 1 / 1 !important; }
.bili-cover-zone { width: 220px !important; height: auto !important; aspect-ratio: 1 / 1 !important; max-width: 100%; }
.cover-thumb, .profile-course .pc-cover { width: 44px !important; height: 44px !important; aspect-ratio: 1 / 1; }
.chapter-panel { border-radius: 12px; }
.panel-title { padding: 10px 12px; font-size: 14px; }
.chapter-section { border-bottom: 1px solid rgba(15,23,42,.07); }
.chapter-section-title {
  width: 100%; border: 0; cursor: pointer; padding: 8px 11px; font-size: 12px; font-weight: 800;
  color: #1f2937; background: #f8fafc; display: flex; justify-content: space-between; gap: 8px; align-items: center; text-align: left;
}
.chapter-section-title:hover { background: #eef8ff; }
.chapter-section-title .section-left { min-width: 0; display: flex; align-items: center; gap: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chapter-section-title em { flex-shrink: 0; font-style: normal; font-size: 11px; font-weight: 700; color: var(--muted); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 1px 7px; }
.section-caret { display: inline-block; font-style: normal; color: var(--muted); transition: transform .16s ease; }
.chapter-section.collapsed .section-caret { transform: rotate(-90deg); }
.chapter-section.collapsed .chapter-section-lessons { display: none; }
.chapter { padding: 7px 10px !important; gap: 8px; font-size: 12px; border-bottom: 0; }
.ch-num { width: 21px !important; height: 21px !important; font-size: 11px !important; }
.ch-title { font-size: 12px !important; line-height: 1.35; font-weight: 600; }
.ch-mini-line { min-height: 0; margin-top: 2px; }
.ch-dur { font-size: 11px; }
.ch-badge { font-size: 10px; padding: 1px 6px; }
@media (max-width: 760px) {
  .creator-course-item { grid-template-columns: 96px minmax(0,1fr); min-height: 120px; }
  .creator-course-cover { width: 96px !important; }
}
@media (max-width: 560px) {
  .creator-course-item { grid-template-columns: 1fr; }
  .creator-course-cover { width: 100% !important; }
}

/* 2026-08-27 Codex：首页/学员中心/学习页紧凑化与导航修正 */
.nav-center-btn { white-space: nowrap; padding-left: 14px; padding-right: 14px; }
.home-page .hero { padding: 52px 0 42px; }
.home-page .hero h1 { font-size: clamp(32px, 4.8vw, 50px); }
.home-page .steps { margin: -18px auto 26px; gap: 14px; }
.home-page .step { padding: 16px; }
.home-page .block { padding-top: 16px; }
.home-page .grid {
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 16px;
}
.home-page .card { border-radius: 12px; }
.home-page .card .body { padding: 12px 13px 13px; }
.home-page .card h3 { font-size: 15px; line-height: 1.35; margin-bottom: 4px; }
.home-page .card .desc { font-size: 12px; line-height: 1.45; -webkit-line-clamp: 1; min-height: 18px; }
.home-page .card .meta { margin-top: 8px; font-size: 12px; }
.home-page .cover .play { width: 42px; height: 42px; font-size: 16px; }
.home-page .lock-overlay span { padding: 5px 10px; font-size: 12px; }

.student-center-page .nav-links a { color: rgba(255,255,255,.92); }
.student-center-page .wrap > .grid,
.student-center-page #myCourseGrid {
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 14px;
}
.student-center-page .sc-card { border-radius: 12px; box-shadow: 0 4px 16px rgba(20,40,80,.07); }
.student-center-page .sc-card .cover { height: auto !important; aspect-ratio: 1 / 1 !important; }
.student-center-page .sc-card .body { padding: 12px 13px 13px !important; }
.student-center-page .sc-card h3 { font-size: 15px !important; line-height: 1.35; margin-bottom: 4px; }
.student-center-page .sc-card .desc { font-size: 12px; line-height: 1.45; -webkit-line-clamp: 1; min-height: 0; }
.student-center-page .progress-row { margin: 9px 0 4px; }
.student-center-page .teacher-box { margin-top: 8px; padding-top: 7px; gap: 6px; }
.student-center-page .sc-card .foot { margin-top: 10px; gap: 7px; }
.student-center-page .sc-card .foot .btn { padding: 7px 8px; font-size: 13px; }
.student-center-page .sc-tabs { margin: 16px 0 14px; }
.student-center-page .sc-tab { padding: 8px 16px; }

.course-page .nav-links a { color: rgba(255,255,255,.92); }
.course-page .chapter-list-mobile { max-height: none !important; overflow: visible !important; }
.course-page .course-cover { display: none !important; }
.now-playing {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0 12px;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(20,40,80,.06);
  color: var(--muted);
  font-size: 13px;
}
.now-playing span { color: var(--brand); font-weight: 800; }
.now-playing b { color: var(--ink); font-size: 15px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.now-playing em { margin-left: auto; font-style: normal; font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 38%; }
.course-page .course-info-card { padding: 16px 18px; }
.course-page .course-info-card h1 { font-size: 22px; }
.course-page .chapter-panel .panel-title { padding: 10px 12px; }
.course-page .chapter-section-title { padding: 7px 10px; }

@media (max-width: 760px) {
  .home-page .hero { padding: 38px 0 32px; }
  .home-page .steps { grid-template-columns: 1fr; margin-top: 0; }
  .home-page .grid,
  .student-center-page #myCourseGrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .home-page .card .body,
  .student-center-page .sc-card .body { padding: 10px !important; }
  .home-page .card h3,
  .student-center-page .sc-card h3 { font-size: 14px !important; }
  .now-playing { align-items: flex-start; flex-direction: column; gap: 4px; }
  .now-playing em { margin-left: 0; max-width: 100%; }
}


/* 2026-08-27 player-1415：播放器快捷按钮轻量化；普通/网页全屏不再隐藏进度条 */
.course-page .player-area .player-wrap {
  position: relative !important;
  overflow: hidden !important;
  background: #000 !important;
}
.course-page .player-area .player-fallback-tools {
  position: absolute !important;
  top: 10px !important;
  right: 10px !important;
  left: auto !important;
  bottom: auto !important;
  z-index: 50 !important;
  width: auto !important;
  min-height: 0 !important;
  padding: 4px !important;
  border: 1px solid rgba(255,255,255,.12) !important;
  border-radius: 999px !important;
  background: rgba(15,23,42,.42) !important;
  backdrop-filter: blur(10px) !important;
  box-shadow: 0 8px 24px rgba(0,0,0,.18) !important;
  gap: 4px !important;
  opacity: .86 !important;
  transition: opacity .18s ease, transform .18s ease !important;
  pointer-events: auto !important;
}
.course-page .player-area .player-fallback-tools:hover { opacity: 1 !important; }
.course-page .player-area .player-fallback-tools .player-icon-btn { width: 32px; height: 32px; border-radius: 999px; }
.course-page .player-area.web-fullscreen .player-wrap,
.course-page .player-area .player-wrap:fullscreen,
.course-page .player-area .player-wrap:-webkit-full-screen {
  width: 100vw !important;
  height: 100vh !important;
  border-radius: 0 !important;
  display: block !important;
  background: #000 !important;
}
.course-page .player-area.web-fullscreen .player-wrap video,
.course-page .player-area.web-fullscreen .player-wrap #vodPlayer,
.course-page .player-area.web-fullscreen .player-wrap .prism-player,
.course-page .player-area .player-wrap:fullscreen video,
.course-page .player-area .player-wrap:fullscreen #vodPlayer,
.course-page .player-area .player-wrap:fullscreen .prism-player,
.course-page .player-area .player-wrap:-webkit-full-screen video,
.course-page .player-area .player-wrap:-webkit-full-screen #vodPlayer,
.course-page .player-area .player-wrap:-webkit-full-screen .prism-player {
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: none !important;
  aspect-ratio: auto !important;
  object-fit: contain !important;
}
.course-page .player-area .player-wrap.fullscreen-idle { cursor: none; }
.course-page .player-area .player-wrap:fullscreen.fullscreen-idle .player-fallback-tools,
.course-page .player-area .player-wrap:-webkit-full-screen.fullscreen-idle .player-fallback-tools {
  opacity: 0 !important;
  transform: translateY(-8px) !important;
  pointer-events: none !important;
}
.course-page .player-area .player-wrap:fullscreen.fullscreen-idle .prism-controlbar,
.course-page .player-area .player-wrap:fullscreen.fullscreen-idle .prism-control-bar,
.course-page .player-area .player-wrap:fullscreen.fullscreen-idle .prism-controls,
.course-page .player-area .player-wrap:-webkit-full-screen.fullscreen-idle .prism-controlbar,
.course-page .player-area .player-wrap:-webkit-full-screen.fullscreen-idle .prism-control-bar,
.course-page .player-area .player-wrap:-webkit-full-screen.fullscreen-idle .prism-controls {
  opacity: 0 !important;
  transform: translateY(100%) !important;
  pointer-events: none !important;
  transition: opacity .22s ease, transform .22s ease !important;
}
.course-page .player-area .player-wrap:fullscreen.fullscreen-idle video::-webkit-media-controls-panel,
.course-page .player-area .player-wrap:fullscreen.fullscreen-idle video::-webkit-media-controls-enclosure,
.course-page .player-area .player-wrap:-webkit-full-screen.fullscreen-idle video::-webkit-media-controls-panel,
.course-page .player-area .player-wrap:-webkit-full-screen.fullscreen-idle video::-webkit-media-controls-enclosure {
  opacity: 0 !important;
}



/* 2026-08-27 player-rollback-001：恢复阿里云播放器原生控制栏，撤销内部强插按钮造成的重叠 */
.course-page #vodPlayer .lk-prism-web-btn,
.course-page #vodPlayer .lk-prism-system-btn { display: none !important; }
.course-page #vodPlayer .prism-fullscreen-btn.lk-native-full-hidden {
  display: block !important;
  visibility: visible !important;
  pointer-events: auto !important;
}
.course-page #vodPlayer .prism-player .prism-setting-btn,
.course-page #vodPlayer .prism-player .prism-volume,
.course-page #vodPlayer .prism-player .prism-cc-btn,
.course-page #vodPlayer .prism-player .prism-subtitle {
  right: auto;
}
.course-page .player-area.web-fullscreen,
.course-page .player-area:fullscreen,
.course-page .player-area:-webkit-full-screen {
  background:#000 !important;
  overflow:hidden !important;
}
.course-page .player-area:fullscreen .player-wrap,
.course-page .player-area:-webkit-full-screen .player-wrap,
.course-page .player-area:fullscreen #vodPlayer,
.course-page .player-area:-webkit-full-screen #vodPlayer,
.course-page .player-area:fullscreen .prism-player,
.course-page .player-area:-webkit-full-screen .prism-player {
  width:100% !important;
  height:100% !important;
  min-height:0 !important;
  aspect-ratio:auto !important;
  background:#000 !important;
}
.course-page .player-area:fullscreen .player-wrap.fullscreen-idle .prism-controlbar,
.course-page .player-area:-webkit-full-screen .player-wrap.fullscreen-idle .prism-controlbar {
  opacity:0 !important;
  transform:translateY(100%) !important;
  pointer-events:none !important;
}
