/* =========================================================
   教师课件管理系统 v1.3.0 · 全站视觉系统
   ---------------------------------------------------------
   01 设计令牌（Design Tokens）
   02 基础与排版
   03 通用工具类 / 焦点与可达性
   04 容器 / 跳转链接
   05 按钮与链接按钮
   06 顶栏 / 面包屑
   07 提示条 Flash / Toast
   08 页脚
   适配 Chrome/Edge 87+，纯离线（无 CDN、无外部字体、无远程图片）
   品牌色全部来自后端注入的 --brand / --brand-deep / --brand-light / --brand-soft，
   不写死任何蓝色，5 套预设主题与自定义主色均自动协调。
   ========================================================= */

/* =========================================================
   01 设计令牌
   ========================================================= */

:root {
    /* ---- 品牌（后端 theme_style_attr() 注入，此处为默认回退） ---- */
    --brand: #1d6ef5;
    --brand-deep: #0b3fa8;
    --brand-light: #6aa6ff;
    --brand-soft: #e8f0ff;

    /* ---- 中性色阶 ---- */
    --ink-900: #0b1220;
    --ink: #101a2c;
    --text: #33415c;
    --muted: #5b6b84;
    --faint: #5f6e88;
    --line: #e2e8f1;
    --line-strong: #cdd7e5;
    --surface: #ffffff;
    --surface-2: #f6f8fc;
    --surface-3: #eef2f8;
    --bg: #f1f5fa;
    --bg-deep: #e8eef7;
    --overlay: rgba(8, 14, 26, .62);

    /* ---- 语义色（与品牌解耦，保证语义稳定） ---- */
    --success: #0b7a56;
    --success-bg: #e6f7f0;
    --success-line: #bfe8d8;
    --warn: #9a5a06;
    --warn-bg: #fff6e8;
    --warn-line: #f5ddb6;
    --danger: #b3261e;
    --danger-bg: #fdeceb;
    --danger-line: #f6c9c5;
    --info: var(--brand-deep);
    --info-bg: var(--brand-soft);

    /* ---- 间距（4pt 栅格） ---- */
    --sp-1: 4px;
    --sp-2: 8px;
    --sp-3: 12px;
    --sp-4: 16px;
    --sp-5: 24px;
    --sp-6: 32px;
    --sp-7: 48px;
    --sp-8: 64px;

    /* ---- 圆角（8 · 12 · 16 · 24） ---- */
    --r-xs: 8px;
    --r-sm: 10px;
    --r-md: 12px;
    --r-lg: 16px;
    --r-xl: 20px;
    --r-2xl: 24px;
    --r-pill: 999px;
    /* 兼容旧变量名（历史样式仍在引用） */
    --radius: 16px;
    --radius-sm: 10px;

    /* ---- 阴影（3 级，中性色，随品牌无关，投影仪下不发灰） ---- */
    --shadow-xs: 0 1px 2px rgba(11, 18, 32, .06);
    --shadow-sm: 0 2px 6px rgba(11, 18, 32, .06), 0 1px 2px rgba(11, 18, 32, .05);
    --shadow-md: 0 10px 24px rgba(11, 18, 32, .09), 0 2px 6px rgba(11, 18, 32, .05);
    --shadow-lg: 0 24px 56px rgba(11, 18, 32, .16), 0 6px 16px rgba(11, 18, 32, .06);
    /* 兼容旧变量名（历史样式仍在引用） */
    --shadow: 0 10px 24px rgba(11, 18, 32, .09), 0 2px 6px rgba(11, 18, 32, .05);

    /* ---- 字号 / 行高 / 字重 ---- */
    --fs-12: 12px;
    --fs-13: 13px;
    --fs-14: 14px;
    --fs-15: 15px;
    --fs-16: 16px;
    --fs-18: 18px;
    --fs-21: 21px;
    --fs-26: 26px;
    --fs-32: 32px;
    --lh-tight: 1.28;
    --lh-snug: 1.5;
    --lh-base: 1.7;
    --font: "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", "Source Han Sans SC",
        "Noto Sans CJK SC", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --mono: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", "Courier New", monospace;
    /* 中文数字与标题字距：标题收紧、正文放开 */
    --tracking-tight: -.012em;
    --tracking-wide: .16em;

    /* ---- 层级 ---- */
    --z-base: 1;
    --z-sticky: 60;
    --z-drawer: 80;
    --z-modal: 120;
    --z-lightbox: 150;
    --z-toast: 200;
}

/* =========================================================
   02 基础与排版
   ========================================================= */

*,
*::before,
*::after { box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    font-family: var(--font);
    font-size: var(--fs-15);
    line-height: var(--lh-base);
    color: var(--text);
    background-color: var(--bg);
    background-image:
        radial-gradient(1100px 520px at 8% -10%, var(--brand-soft), transparent 62%),
        radial-gradient(900px 460px at 100% 0%, var(--surface-2), transparent 58%);
    background-repeat: no-repeat;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-variant-numeric: tabular-nums;
}

h1, h2, h3, h4, h5 {
    margin: 0 0 var(--sp-2);
    color: var(--ink);
    font-weight: 700;
    line-height: var(--lh-tight);
    letter-spacing: var(--tracking-tight);
}
h1 { font-size: var(--fs-32); font-weight: 800; }
h2 { font-size: var(--fs-21); }
h3 { font-size: 17px; }
h4 { font-size: var(--fs-15); }
p { margin: 0 0 var(--sp-3); }
a {
    color: var(--brand-deep);
    text-decoration: none;
    transition: color .15s ease;
}
a:hover { color: var(--brand); }
strong, b { font-weight: 700; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; }
code {
    font-family: var(--mono);
    font-size: .88em;
    background: var(--surface-3);
    color: var(--ink);
    padding: 1px 6px;
    border-radius: 6px;
}
hr { border: 0; border-top: 1px solid var(--line); margin: var(--sp-4) 0; }
::selection { background: var(--brand-soft); color: var(--brand-deep); }

/* 滚动条：桌面细、可读 */
* { scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: var(--r-pill); border: 2px solid transparent; background-clip: content-box; }
*::-webkit-scrollbar-thumb:hover { background: var(--faint); background-clip: content-box; }

/* =========================================================
   03 通用工具类 / 焦点与可达性
   ========================================================= */

.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; line-height: 1.6; }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.dot { margin: 0 6px; color: var(--line-strong); }
[hidden] { display: none !important; }

/* 焦点可见环：统一使用品牌色实线，任意主题下都清晰可见 */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
    outline: 3px solid var(--brand);
    outline-offset: 2px;
    border-radius: var(--r-xs);
}
/* 深底（hero / 播放器 / 页脚）上的焦点环改为白色，保证可见 */
.hero a:focus-visible,
.topnav-light a:focus-visible,
.site-footer a:focus-visible,
.player-shell button:focus-visible,
.player-shell a:focus-visible,
.paper-lightbox button:focus-visible {
    outline-color: #fff;
}
:focus:not(:focus-visible) { outline: none; }

/* =========================================================
   04 容器 / 跳转链接
   ========================================================= */

.container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 var(--sp-5);
}
.container-fluid { max-width: none; padding: 0 26px; }

.skip-link {
    position: absolute;
    left: -999px;
    top: 0;
    z-index: 999;
    padding: 10px 18px;
    background: var(--brand-deep);
    color: #fff;
    font-weight: 600;
    border-radius: 0 0 var(--r-sm) 0;
    box-shadow: var(--shadow-md);
}
.skip-link:focus { left: 0; color: #fff; }

/* =========================================================
   05 按钮与链接按钮
   ========================================================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 38px;
    padding: 8px 15px;
    border: 1px solid transparent;
    border-radius: var(--r-sm);
    font-size: var(--fs-14);
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: .01em;
    color: var(--ink);
    background: #fff;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color .16s ease, border-color .16s ease, color .16s ease,
        box-shadow .16s ease, transform .16s ease, filter .16s ease;
}
.btn:hover { transform: translateY(-1px); color: var(--ink); }
.btn:active { transform: translateY(0); }
.btn:disabled,
.btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; transform: none; }

.btn-primary {
    background: var(--brand-deep);
    background-image: linear-gradient(180deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, 0) 42%);
    border-color: var(--brand-deep);
    color: #fff;
    box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
    color: #fff;
    border-color: var(--brand-deep);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}
.btn-primary:active { box-shadow: var(--shadow-xs); }

.btn-ghost {
    background: #fff;
    border-color: var(--line-strong);
    color: var(--ink);
    box-shadow: none;
}
.btn-ghost:hover { border-color: var(--brand); color: var(--brand-deep); background: #fff; }

.btn-danger {
    background: var(--danger-bg);
    border-color: var(--danger-line);
    color: var(--danger);
}
.btn-danger:hover { background: #fbdcd9; color: #8f1c16; }

.btn-light {
    background: rgba(255, 255, 255, .14);
    border-color: rgba(255, 255, 255, .34);
    color: #fff;
}
.btn-light:hover { background: rgba(255, 255, 255, .26); color: #fff; }

.btn-block { width: 100%; }
.btn-sm { min-height: 32px; padding: 5px 11px; font-size: 12.5px; border-radius: var(--r-xs); }
.btn-lg { min-height: 48px; padding: 12px 26px; font-size: var(--fs-16); border-radius: var(--r-md); }
.btn.is-disabled { opacity: .4; pointer-events: none; }

.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    min-height: 34px;
    padding: 4px 7px;
    border: 0;
    border-radius: var(--r-xs);
    background: transparent;
    color: var(--muted);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease;
}
.icon-btn:hover { background: var(--surface-3); color: var(--ink); }

.mini-link {
    display: inline-block;
    padding: 3px 4px;
    border: 0;
    background: none;
    color: var(--muted);
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.5;
    cursor: pointer;
    border-radius: 6px;
    transition: color .15s ease, background-color .15s ease;
}
.mini-link:hover { color: var(--brand-deep); background: var(--brand-soft); }
.mini-link.danger:hover { color: var(--danger); background: var(--danger-bg); }
.mini-link.strong { color: var(--brand-deep); }

/* =========================================================
   06 顶栏 / 面包屑
   ========================================================= */

.topbar {
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 1px 0 rgba(11, 18, 32, .02);
}
@supports ((backdrop-filter: saturate(180%) blur(14px)) or (-webkit-backdrop-filter: saturate(180%) blur(14px))) {
    .topbar {
        background: rgba(255, 255, 255, .86);
        -webkit-backdrop-filter: saturate(180%) blur(14px);
        backdrop-filter: saturate(180%) blur(14px);
    }
}
.topbar-inner {
    display: flex;
    align-items: center;
    gap: var(--sp-4);
    min-height: 66px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); flex: 0 0 auto; }
.brand:hover { color: var(--ink); }
.brand-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: var(--r-md);
    background: #fff;
    border: 1px solid var(--line);
    padding: 3px;
}
.brand-mark {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--r-md);
    background: linear-gradient(145deg, var(--brand), var(--brand-deep));
    color: #fff;
    font-size: 19px;
    font-weight: 800;
    box-shadow: var(--shadow-sm);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.22; min-width: 0; }
.brand-text strong {
    font-size: 15.5px;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -.01em;
    white-space: nowrap;
}
.brand-text small { font-size: 11.5px; color: var(--muted); letter-spacing: .05em; }

/* 主导航：桌面均分，窄屏横向滚动（见响应式） */
.topnav {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-left: var(--sp-2);
    flex: 1 1 auto;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
}
.topnav::-webkit-scrollbar { display: none; }
.topnav a {
    position: relative;
    padding: 8px 13px;
    border-radius: var(--r-sm);
    color: var(--text);
    font-size: var(--fs-14);
    font-weight: 600;
    white-space: nowrap;
    transition: background-color .16s ease, color .16s ease;
}
.topnav a:hover { background: var(--brand-soft); color: var(--brand-deep); }
.topnav a.active { background: var(--brand-soft); color: var(--brand-deep); box-shadow: inset 0 0 0 1px var(--brand-light); }
.topnav a.active::after {
    content: "";
    position: absolute;
    left: 13px;
    right: 13px;
    bottom: 3px;
    height: 2px;
    border-radius: 2px;
    background: var(--brand);
    opacity: .85;
}
.topnav-light a { color: rgba(255, 255, 255, .86); }
.topnav-light a:hover,
.topnav-light a.active { background: rgba(255, 255, 255, .16); color: #fff; box-shadow: none; }
.topnav-light a.active::after { background: #fff; }

.userbox { display: flex; align-items: center; gap: var(--sp-2); flex: 0 0 auto; }
.user-chip { display: flex; align-items: center; gap: 9px; padding: 3px 6px 3px 3px; border-radius: var(--r-pill); color: var(--ink); }
.user-chip:hover { color: var(--brand-deep); background: var(--surface-2); }
.avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--brand-soft);
    color: var(--brand-deep);
    font-weight: 800;
    font-size: var(--fs-14);
    flex: 0 0 auto;
}
.avatar-lg { width: 74px; height: 74px; font-size: 28px; }
.avatar-fallback { border: 1px solid var(--brand-light); }
.user-meta { display: flex; flex-direction: column; line-height: 1.22; min-width: 0; }
.user-meta strong { font-size: 13.5px; white-space: nowrap; }
.user-meta small { font-size: 11px; color: var(--muted); }

.crumb-bar { background: rgba(255, 255, 255, .72); border-bottom: 1px solid var(--line); }
.crumb-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-4);
    min-height: 46px;
}
.crumbs { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--brand-deep); }
.crumb-current { color: var(--ink); font-weight: 600; }
.crumb-sep { color: var(--line-strong); }
.crumb-actions { display: flex; gap: var(--sp-2); flex: 0 0 auto; }

/* =========================================================
   07 提示条 Flash / Toast
   ========================================================= */

.flash {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-3);
    margin: var(--sp-4) 0;
    padding: 11px 16px 11px 18px;
    border: 1px solid var(--line);
    border-left: 4px solid var(--muted);
    border-radius: var(--r-md);
    font-size: 13.5px;
    font-weight: 600;
    box-shadow: var(--shadow-xs);
}
.flash-success { background: var(--success-bg); border-color: var(--success-line); border-left-color: var(--success); color: var(--success); }
.flash-error { background: var(--danger-bg); border-color: var(--danger-line); border-left-color: var(--danger); color: var(--danger); }
.flash-info { background: var(--info-bg); border-color: var(--brand-light); border-left-color: var(--brand); color: var(--brand-deep); }
.flash-warning { background: var(--warn-bg); border-color: var(--warn-line); border-left-color: var(--warn); color: var(--warn); }
.flash-close {
    border: 0;
    background: none;
    color: inherit;
    font-size: 19px;
    line-height: 1;
    padding: 2px 6px;
    border-radius: 6px;
    opacity: .65;
    cursor: pointer;
}
.flash-close:hover { opacity: 1; background: rgba(0, 0, 0, .05); }

.toast {
    position: fixed;
    left: 50%;
    bottom: 28px;
    z-index: var(--z-toast);
    max-width: 86vw;
    padding: 11px 20px;
    border-radius: var(--r-md);
    background: var(--ink-900);
    color: #fff;
    font-size: 13.5px;
    font-weight: 600;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, .12);
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 16px);
    transition: opacity .22s ease, transform .22s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* =========================================================
   08 页脚
   ========================================================= */

.site-footer {
    margin-top: var(--sp-7);
    padding: 34px 0 28px;
    background: linear-gradient(180deg, #0d1524 0%, #0b1220 100%);
    color: #9aa8bd;
    position: relative;
}
.site-footer::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--brand) 30%, var(--brand-light) 70%, transparent);
    opacity: .55;
}
.footer-inner { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--sp-6); flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: var(--sp-3); }
.footer-mark {
    width: 40px;
    height: 40px;
    border-radius: var(--r-md);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .14);
    color: #fff;
    font-weight: 800;
}
.footer-brand strong { display: block; color: #e6ecf5; font-size: 14.5px; }
.footer-brand p { margin: 3px 0 0; font-size: 11.5px; color: #8797ae; }
.footer-legal { text-align: right; font-size: 11.5px; line-height: 1.9; }
.footer-copy { margin: 0; color: #c3cfdf; }
.footer-notice { margin: 0; color: #8797ae; }
.footer-record { margin: 4px 0 0; color: #7d8ca3; }
.footer-record a { color: #9aa8bd; }
.footer-record a:hover { color: #fff; }
.footer-dot { margin: 0 5px; }

/* =========================================================
   09 首页 Hero / 公告
   ========================================================= */

.hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding-bottom: 34px;
    color: #fff;
    background:
        radial-gradient(820px 400px at 88% -14%, var(--brand-light) 0%, transparent 62%),
        radial-gradient(620px 360px at 2% 114%, var(--brand) 0%, transparent 64%),
        linear-gradient(135deg, var(--brand-deep) 0%, var(--brand) 72%, var(--brand) 100%);
}
/* 中性暗色叠加：任意品牌色下都能保证白字对比度（投影仪友好） */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(112deg, rgba(5, 10, 22, .46) 0%, rgba(5, 10, 22, .30) 52%, rgba(5, 10, 22, .16) 100%),
        radial-gradient(900px 460px at 50% 128%, rgba(5, 10, 22, .24), transparent 62%);
}
.hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .35), transparent);
    z-index: 2;
}
.hero-deco { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(8px); opacity: .5; }
.blob-1 {
    width: 440px; height: 440px; right: -110px; top: -160px;
    background: radial-gradient(circle, rgba(255, 255, 255, .46), transparent 66%);
}
.blob-2 {
    width: 380px; height: 380px; left: -140px; bottom: -200px;
    background: radial-gradient(circle, rgba(255, 255, 255, .28), transparent 68%);
}
.grid-lines {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .075) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .075) 1px, transparent 1px);
    background-size: 52px 52px;
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .62), transparent 86%);
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .62), transparent 86%);
}
.hero-container { position: relative; z-index: 2; }

.hero-nav { display: flex; align-items: center; gap: var(--sp-4); padding: 14px 0 4px; }
.brand-light .brand-text strong { color: #fff; }
.brand-light .brand-text small { color: rgba(255, 255, 255, .78); }
.brand-light .brand-logo { background: rgba(255, 255, 255, .94); border-color: rgba(255, 255, 255, .6); }
.brand-light .brand-mark {
    background: rgba(255, 255, 255, .16);
    border: 1px solid rgba(255, 255, 255, .38);
    box-shadow: none;
}
.hero-nav .topnav { margin-left: var(--sp-4); }
.hero-nav .topnav a { color: rgba(255, 255, 255, .88); }
.hero-user { display: flex; align-items: center; gap: var(--sp-2); margin-left: auto; flex: 0 0 auto; }
.hero-user-name { font-size: 13.5px; font-weight: 600; color: rgba(255, 255, 255, .94); }

/* 精简后的首屏：标题 + 一句说明 + 行动按钮/统计 + 授课信息一行 */
.hero-main { padding: 20px 0 2px; }
.hero-center { max-width: 880px; min-width: 0; }
.hero-center h1 {
    margin: 0 0 10px;
    font-size: clamp(24px, 2.5vw, 34px);
    line-height: 1.24;
    letter-spacing: -.02em;
    text-wrap: balance;
    color: #fff;
    text-shadow: 0 2px 18px rgba(3, 10, 26, .22);
}
.hero-sub {
    max-width: 680px;
    margin: 0 0 16px;
    font-size: var(--fs-15);
    line-height: 1.65;
    color: #edf3ff;
}
.hero-actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.hero-cta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hero-stats { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.hero-stats > div { display: flex; align-items: baseline; gap: 5px; }
.hero-stats strong {
    font-size: var(--fs-18);
    font-weight: 800;
    letter-spacing: -.02em;
    color: #fff;
    font-variant-numeric: tabular-nums;
}
.hero-stats span { font-size: 12px; color: rgba(255, 255, 255, .78); }
.hero-meta { margin: 12px 0 0; font-size: 12.5px; color: rgba(255, 255, 255, .74); }
.hero-meta strong { color: #fff; font-weight: 650; }
.hero-meta span { margin: 0 6px; opacity: .6; }

/* 首屏主行动按钮：白底深字，任何品牌色下对比度最高 */
.btn-hero {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 42px;
    padding: 9px 20px;
    border-radius: var(--r-md);
    border: 1px solid rgba(255, 255, 255, .9);
    background: #fff;
    color: var(--ink);
    font-size: var(--fs-14);
    font-weight: 700;
    box-shadow: 0 10px 24px rgba(4, 12, 30, .22);
    transition: transform .16s ease, box-shadow .16s ease, background-color .16s ease;
}
.btn-hero:hover { color: var(--ink); background: #fff; transform: translateY(-1px); box-shadow: 0 14px 30px rgba(4, 12, 30, .28); }
.btn-hero-ghost {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 42px;
    padding: 9px 18px;
    border-radius: var(--r-md);
    border: 1px solid rgba(255, 255, 255, .42);
    background: rgba(255, 255, 255, .12);
    color: #fff;
    font-size: var(--fs-14);
    font-weight: 600;
    transition: background-color .16s ease, border-color .16s ease;
}
.btn-hero-ghost:hover { color: #fff; background: rgba(255, 255, 255, .22); border-color: rgba(255, 255, 255, .62); }

/* ---- 公告条 ---- */
.notice-wrap { position: relative; z-index: 5; margin-top: -26px; }
.notice-bar {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    margin-bottom: 10px;
    padding: 13px 18px;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    background: var(--surface);
    color: var(--ink);
    box-shadow: var(--shadow-md);
    transition: border-color .16s ease, transform .16s ease, box-shadow .16s ease;
}
.notice-bar:hover {
    color: var(--ink);
    border-color: var(--brand-light);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}
.notice-tag {
    flex: 0 0 auto;
    padding: 2px 9px;
    border-radius: var(--r-pill);
    background: var(--danger-bg);
    border: 1px solid var(--danger-line);
    color: var(--danger);
    font-size: 11.5px;
    font-weight: 700;
}
.notice-title { font-size: 14.5px; font-weight: 600; color: var(--ink); }
.notice-meta { color: var(--muted); font-size: 12px; }
.notice-arrow { margin-left: auto; flex: 0 0 auto; color: var(--brand-deep); font-size: 12.5px; font-weight: 700; }

/* =========================================================
   10 分区标题 / 科目卡片 / 快捷入口 / 空状态
   ========================================================= */

.section { padding-top: 44px; padding-bottom: 8px; }
.section-last { padding-bottom: 56px; }
.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
    flex-wrap: wrap;
}
.section-head h2 { margin: 2px 0 4px; font-size: 24px; }
.section-sub { margin: 0; color: var(--muted); font-size: 13.5px; }
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 6px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: var(--tracking-wide);
    text-transform: uppercase;
    color: var(--brand-deep);
}
.eyebrow::before {
    content: "";
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    opacity: .7;
}
.section-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.subject-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); gap: 22px; }
.subject-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--r-xl);
    background: var(--surface);
    box-shadow: var(--shadow-xs);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.subject-card:hover {
    transform: translateY(-6px);
    border-color: var(--brand-light);
    box-shadow: var(--shadow-lg);
}
.subject-cover { position: relative; aspect-ratio: 16 / 9.4; overflow: hidden; background: var(--brand-soft); }
.subject-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.subject-card:hover .subject-cover img { transform: scale(1.05); }
.cover-fallback { position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.cover-fallback.g1 { background: linear-gradient(135deg, var(--brand), var(--brand-light)); }
.cover-fallback.g2 { background: linear-gradient(135deg, #0b7a56, #45c99b); }
.cover-fallback.g3 { background: linear-gradient(135deg, #b4501e, #ee9b55); }
.cover-fallback.g4 { background: linear-gradient(135deg, #5743b3, #9d8beb); }
.cover-fallback.g5 { background: linear-gradient(135deg, #0b6377, #33c1dc); }
.cover-fallback.g6 { background: linear-gradient(135deg, #7c3a0e, #e2a13b); }
.cover-letter {
    position: relative;
    z-index: 2;
    font-size: 52px;
    font-weight: 800;
    letter-spacing: .02em;
    color: rgba(255, 255, 255, .96);
    text-shadow: 0 6px 20px rgba(0, 0, 0, .22);
}
.cover-pattern {
    position: absolute;
    inset: 0;
    opacity: .45;
    background-image: radial-gradient(rgba(255, 255, 255, .6) 1px, transparent 1px);
    background-size: 18px 18px;
    mix-blend-mode: soft-light;
}
.subject-badge {
    position: absolute;
    right: 12px;
    bottom: 12px;
    z-index: 3;
    padding: 3px 10px;
    border-radius: var(--r-pill);
    background: rgba(9, 15, 28, .58);
    border: 1px solid rgba(255, 255, 255, .18);
    color: #fff;
    font-size: 11.5px;
    font-weight: 600;
}
@supports ((backdrop-filter: blur(6px)) or (-webkit-backdrop-filter: blur(6px))) {
    .subject-badge { -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
}
.subject-body { display: flex; flex-direction: column; flex: 1; gap: 8px; padding: 18px 20px 16px; }
.subject-body h3 { margin: 0; font-size: 19px; }
.subject-intro { margin: 0; min-height: 44px; color: var(--muted); font-size: 13.5px; line-height: 1.65; }
.subject-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--line);
    font-size: 12px;
    color: var(--muted);
}
.subject-owner { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.subject-go { color: var(--brand-deep); font-weight: 700; white-space: nowrap; }
.subject-go em { font-style: normal; margin-left: 2px; }

.quick-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.quick-card {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    padding: 18px 20px;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    background: var(--surface);
    color: var(--ink);
    box-shadow: var(--shadow-xs);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.quick-card:hover {
    color: var(--ink);
    transform: translateY(-3px);
    border-color: var(--brand-light);
    box-shadow: var(--shadow-md);
}
.quick-icon {
    width: 46px;
    height: 46px;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: var(--brand-soft);
    border: 1px solid var(--brand-light);
}
.quick-icon svg {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: var(--brand-deep);
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.quick-card strong { display: block; font-size: var(--fs-15); }
.quick-card p { margin: 2px 0 0; color: var(--muted); font-size: 12.5px; }

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 50px 24px;
    border: 1px dashed var(--line-strong);
    border-radius: var(--r-xl);
    background: var(--surface);
    text-align: center;
    box-shadow: var(--shadow-xs);
}
.empty-state.compact { padding: 28px 18px; border: 0; background: transparent; box-shadow: none; }
.empty-art {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin-bottom: 4px;
    border-radius: 50%;
    background: var(--brand-soft);
    border: 1px solid var(--brand-light);
    font-size: 28px;
    line-height: 1;
}
.empty-state.compact .empty-art { width: 52px; height: 52px; font-size: 24px; }
.empty-state h3 { margin: 4px 0 0; font-size: 18px; }
.empty-state p { max-width: 520px; margin: 0 0 10px; color: var(--muted); font-size: 13.5px; }

/* =========================================================
   11 页面标题 / 工具条
   ========================================================= */

.page-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-6);
    padding: 36px 0 22px;
}
.page-head.compact { padding: 26px 0 18px; }
.page-head-main { min-width: 0; max-width: 780px; }
.page-head-main h1 { margin: 2px 0 8px; font-size: 30px; }
.page-desc { max-width: 720px; margin: 0; color: var(--muted); font-size: 14.5px; }
.page-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 10px;
    font-size: 12.5px;
    color: var(--muted);
}
.page-head-cover {
    width: 236px;
    height: 138px;
    flex: 0 0 auto;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    overflow: hidden;
    background: var(--brand-soft);
    box-shadow: var(--shadow-md);
}
.page-head-cover img { width: 100%; height: 100%; object-fit: cover; }
.page-head-cover-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(140deg, var(--brand), var(--brand-deep));
    color: #fff;
    font-size: 48px;
    font-weight: 800;
}
.page-head-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; flex: 0 0 auto; }

/* 带封面的页面头（科目页）：浅品牌渐变卡片，成为页面视觉锚点 */
.page-head.feature {
    margin-top: 22px;
    padding: 26px 30px;
    border: 1px solid var(--line);
    border-radius: var(--r-2xl);
    background:
        radial-gradient(600px 260px at 100% 0%, var(--brand-soft), transparent 70%),
        linear-gradient(120deg, var(--surface) 0%, var(--surface) 58%, var(--brand-soft) 100%);
    box-shadow: var(--shadow-sm);
}
.page-head.feature h1 { font-size: 32px; }
.page-head.feature .page-head-cover { width: 288px; height: 168px; border-radius: var(--r-xl); }

.toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-4);
    flex-wrap: wrap;
    margin: 2px 0 18px;
}
.sort-tabs {
    display: inline-flex;
    gap: 2px;
    padding: 4px;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    background: var(--surface);
    box-shadow: var(--shadow-xs);
    max-width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
}
.sort-tabs::-webkit-scrollbar { display: none; }
.sort-tab {
    padding: 7px 14px;
    border-radius: var(--r-xs);
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    transition: background-color .15s ease, color .15s ease;
}
.sort-tab:hover { color: var(--brand-deep); background: var(--surface-2); }
.sort-tab.active {
    background: var(--brand-soft);
    color: var(--brand-deep);
    box-shadow: inset 0 0 0 1px var(--brand-light);
}
.search-box { display: flex; align-items: center; gap: var(--sp-2); flex-wrap: wrap; }
.search-box input[type="search"],
.search-box input[type="text"] {
    width: 262px;
    max-width: 100%;
    min-height: 38px;
    padding: 8px 13px;
    border: 1px solid var(--line-strong);
    border-radius: var(--r-sm);
    background: var(--surface);
    color: var(--ink);
    font-size: 13.5px;
    font-family: inherit;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.search-box input::placeholder { color: var(--faint); }
.search-box input:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px var(--brand-soft);
}
.wall-tip { color: var(--muted); font-size: 13.5px; }
.drag-hint { margin: -6px 0 16px; color: var(--faint); font-size: 12.5px; }

/* =========================================================
   12 课时卡片 / 课时详情 / 海报墙
   ========================================================= */

.lesson-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(272px, 1fr)); gap: 22px; }
.lesson-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--r-xl);
    background: var(--surface);
    box-shadow: var(--shadow-xs);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.lesson-card:hover {
    transform: translateY(-4px);
    border-color: var(--brand-light);
    box-shadow: var(--shadow-md);
}
.lesson-card.is-pinned { border-color: var(--danger-line); box-shadow: var(--shadow-sm); }
.lesson-cover {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--brand-soft);
}
.lesson-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.lesson-card:hover .lesson-cover img { transform: scale(1.04); }
.pin-badge {
    position: absolute;
    right: 12px;
    top: 12px;
    z-index: 3;
    padding: 3px 10px;
    border-radius: var(--r-pill);
    background: linear-gradient(135deg, #ef4444, #b3261e);
    color: #fff;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .04em;
    white-space: nowrap;
    box-shadow: 0 6px 14px rgba(179, 38, 30, .28);
}
.pin-badge.inline { position: static; display: inline-block; margin-left: 10px; vertical-align: middle; }
.lesson-count {
    position: absolute;
    right: 12px;
    bottom: 12px;
    z-index: 3;
    padding: 3px 10px;
    border-radius: var(--r-pill);
    background: rgba(9, 15, 28, .62);
    border: 1px solid rgba(255, 255, 255, .16);
    color: #fff;
    font-size: 11.5px;
    font-weight: 600;
}
.lesson-body { display: flex; flex-direction: column; flex: 1; gap: 8px; padding: 16px 18px 14px; }
.lesson-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag {
    display: inline-block;
    padding: 2px 9px;
    border-radius: 6px;
    background: var(--brand-soft);
    color: var(--brand-deep);
    font-size: 11.5px;
    font-weight: 600;
    line-height: 1.6;
    white-space: nowrap;
}
.tag-soft { background: var(--surface-3); color: var(--muted); }
.tag-red { background: var(--danger-bg); color: var(--danger); }
.tag-orange { background: var(--warn-bg); color: var(--warn); }
.lesson-body h3 { margin: 0; font-size: 17px; line-height: 1.45; }
.lesson-body h3 a { color: var(--ink); }
.lesson-body h3 a:hover { color: var(--brand-deep); }
.lesson-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid var(--line);
}
.lesson-date { color: var(--muted); font-size: 12px; }
.lesson-links { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.inline-actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 26px 0 40px; }

.lesson-hero {
    display: flex;
    gap: var(--sp-5);
    margin: 24px 0 22px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--r-2xl);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}
.lesson-hero-cover {
    position: relative;
    width: 320px;
    flex: 0 0 auto;
    aspect-ratio: 16 / 9.6;
    border-radius: var(--r-lg);
    overflow: hidden;
    background: var(--brand-soft);
}
.lesson-hero-cover img { width: 100%; height: 100%; object-fit: cover; }
.lesson-hero-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
    min-width: 0;
    padding: 6px 10px 6px 0;
}
.lesson-hero-body h1 { margin: 2px 0 12px; font-size: 28px; }
.lesson-hero-meta { display: flex; gap: var(--sp-5); flex-wrap: wrap; margin-bottom: 16px; }
.meta-item { display: flex; flex-direction: column; gap: 2px; font-size: 13.5px; color: var(--ink); }
.meta-item em { font-style: normal; font-size: 11px; letter-spacing: .08em; color: var(--muted); }
.lesson-hero-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.share-state {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: var(--r-pill);
    background: var(--success-bg);
    border: 1px solid var(--success-line);
    color: var(--success);
    font-size: 12px;
    font-weight: 600;
}
.dot-live { width: 7px; height: 7px; border-radius: 50%; background: #10b981; box-shadow: 0 0 0 3px rgba(16, 185, 129, .2); }

.poster-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(204px, 1fr)); gap: 20px; }
.poster {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    background: var(--surface);
    box-shadow: var(--shadow-xs);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.poster:hover { transform: translateY(-5px); border-color: var(--brand-light); box-shadow: var(--shadow-md); }
.poster-link { display: block; color: var(--ink); }
.poster-link:hover { color: var(--ink); }
.poster-cover {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 4 / 3.1;
    overflow: hidden;
}
.poster-cover::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(120deg, rgba(255, 255, 255, .16) 0 40%, transparent 40%),
        radial-gradient(circle at 78% 18%, rgba(255, 255, 255, .28), transparent 46%);
}
.p-ppt { background: linear-gradient(140deg, #a83c0f, #f07a2a); }
.p-pdf { background: linear-gradient(140deg, #a12a24, #e6463d); }
.p-word { background: linear-gradient(140deg, #1b47b8, #3b82f6); }
.p-video { background: linear-gradient(140deg, #4d1f99, #8355e0); }
.p-audio { background: linear-gradient(140deg, #0c635c, #14a89a); }
.p-image { background: linear-gradient(140deg, #146b34, #43bf74); }
.p-html { background: linear-gradient(140deg, #3a2f9f, #6366f1); }
.p-link { background: linear-gradient(140deg, #0b6377, #06a3be); }
.p-file { background: linear-gradient(140deg, #3d4a5d, #8b9bb0); }
.poster-type-big {
    position: absolute;
    left: 14px;
    top: 12px;
    z-index: 2;
    font-family: var(--mono);
    font-size: 11.5px;
    letter-spacing: .16em;
    color: rgba(255, 255, 255, .86);
}
.poster-glyph {
    position: relative;
    z-index: 2;
    font-size: 54px;
    font-weight: 800;
    color: rgba(255, 255, 255, .96);
    text-shadow: 0 8px 22px rgba(0, 0, 0, .22);
}
.poster-lines {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 18px;
    height: 32px;
    background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .16) 0 2px, transparent 2px 12px);
    opacity: .7;
}
.poster-thumb { width: 100%; height: 100%; object-fit: cover; }
.poster-play {
    position: absolute;
    right: 12px;
    bottom: 12px;
    z-index: 3;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 2px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .95);
    color: var(--ink);
    font-size: 13px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, .2);
    transition: transform .18s ease, background-color .18s ease, color .18s ease;
}
.poster:hover .poster-play { transform: scale(1.08); background: #fff; color: var(--brand-deep); }
.poster-type-tag {
    position: absolute;
    left: 12px;
    bottom: 12px;
    z-index: 3;
    padding: 2px 8px;
    border-radius: 6px;
    background: rgba(9, 15, 28, .42);
    border: 1px solid rgba(255, 255, 255, .14);
    color: #fff;
    font-size: 11px;
}
.poster-body { padding: 12px 14px 14px; }
.poster-body h3 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0 0 4px;
    font-size: 14.5px;
    line-height: 1.45;
}
.poster-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: var(--muted);
    font-size: 11.5px;
    font-variant-numeric: tabular-nums;
}
.note-pill {
    padding: 1px 6px;
    border-radius: 5px;
    background: var(--warn-bg);
    border: 1px solid var(--warn-line);
    color: var(--warn);
    font-size: 10.5px;
}

/* =========================================================
   13 播放页（工具栏 / 舞台 / 侧栏 / 批注 / 计时）
   ========================================================= */

.play-page { background: var(--surface-3); background-image: none; }
.player-shell {
    position: relative;
    margin: 20px 0 28px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--r-xl);
    background: var(--surface);
    box-shadow: var(--shadow-md);
}
.player-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-4);
    flex-wrap: wrap;
    padding: 12px 18px;
    border-bottom: 1px solid var(--line);
    background: linear-gradient(180deg, #fff 0%, var(--surface-2) 100%);
}
.player-title { display: flex; align-items: center; gap: var(--sp-4); min-width: 0; }
.player-back {
    flex: 0 0 auto;
    padding: 6px 11px;
    border: 1px solid var(--line-strong);
    border-radius: var(--r-xs);
    background: #fff;
    color: var(--muted);
    font-size: 12.5px;
    font-weight: 600;
    transition: color .15s ease, border-color .15s ease, background-color .15s ease;
}
.player-back:hover { color: var(--brand-deep); border-color: var(--brand); background: var(--brand-soft); }
.player-title-text { min-width: 0; }
.player-title-text h1 {
    max-width: 620px;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: var(--fs-18);
}
.player-title-text p { margin: 2px 0 0; color: var(--muted); font-size: 12px; }
.player-head-side {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
    margin-left: auto;
}
.version-switch { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; }
.version-switch select {
    max-width: 168px;
    min-height: 32px;
    padding: 5px 26px 5px 9px;
    border: 1px solid var(--line-strong);
    border-radius: var(--r-xs);
    background: #fff;
    color: var(--text);
    font-size: 12px;
    font-family: inherit;
}
/* 工具分组：把 10+ 个按钮按「翻页 / 面板 / 课堂」分组，降低视觉噪音 */
.player-tools { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.player-tool-group {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 3px;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    background: var(--surface-2);
}
.player-tool-group .btn {
    min-height: 30px;
    padding: 4px 9px;
    border-color: transparent;
    border-radius: var(--r-xs);
    background: transparent;
    color: var(--text);
    font-size: 12.5px;
    font-weight: 600;
    box-shadow: none;
}
.player-tool-group .btn:hover {
    transform: none;
    background: #fff;
    border-color: var(--line-strong);
    color: var(--brand-deep);
    box-shadow: var(--shadow-xs);
}
.player-tool-group .btn.is-disabled { opacity: .38; }
.player-tool-group .btn-primary {
    background: var(--brand-deep);
    border-color: var(--brand-deep);
    color: #fff;
    box-shadow: var(--shadow-xs);
}
.player-tool-group .btn-primary:hover { background: var(--brand-deep); color: #fff; }
.player-tool-sep { width: 1px; height: 22px; margin: 0 2px; background: var(--line-strong); }

.player-body { position: relative; display: flex; align-items: stretch; background: #0b1220; }
.player-stage {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
    height: min(62vh, 640px);
    min-height: 380px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    background: radial-gradient(120% 120% at 50% 0%, #101a2e 0%, #0a1020 70%);
    overflow: hidden;
}
.player-stage iframe,
.player-stage video { width: 100%; height: 100%; border: 0; }
.stage-frame { background: #fff; }
.office-wrap { position: relative; width: 100%; flex: 1 1 auto; min-height: 0; background: #fff; }
.office-frame { width: 100%; height: 100%; border: 0; }
.office-loading {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: #fff;
    color: var(--muted);
    font-size: 13px;
}
.spinner {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 3px solid var(--brand-soft);
    border-top-color: var(--brand);
    animation: spin .9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.stage-media { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; background: #000; }
.stage-media video { width: 100%; max-height: 100%; object-fit: contain; }
.stage-image { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; padding: 14px; background: #0d1524; }
.stage-image img { width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; }
.stage-audio { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; width: 100%; color: #fff; }
.stage-audio h3 { color: #fff; }
.audio-art {
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--r-2xl);
    background: linear-gradient(140deg, #0b635c, #14a89a);
    color: rgba(255, 255, 255, .9);
    font-family: var(--mono);
    font-size: var(--fs-14);
    letter-spacing: .12em;
    box-shadow: var(--shadow-lg);
}
.stage-audio audio { width: min(560px, 86%); }
.stage-link { display: flex; flex-direction: column; width: 100%; }
.stage-link .stage-frame { flex: 1 1 auto; }
.link-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 14px;
    background: #111c30;
    color: #cbd5e1;
    font-size: 12px;
}
.player-fallback {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 40px 24px;
    color: #e2e8f0;
    text-align: center;
}
.fallback-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--r-lg);
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .14);
    font-family: var(--mono);
    font-size: 13px;
    letter-spacing: .08em;
}
.player-fallback h3 { color: #fff; }
.player-fallback p { max-width: 480px; margin: 0; color: #a9b6c8; font-size: 13px; }
.office-fallback { width: 100%; height: 100%; background: #fff; color: var(--text); }
.office-fallback h3 { color: var(--ink); }
.office-fallback p { color: var(--muted); }
.fallback-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 6px; }
.ppt-hint {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding: 10px 16px;
    background: var(--warn-bg);
    border-top: 1px solid var(--warn-line);
}
.ppt-hint-main strong { color: var(--warn); font-size: 13px; }
.ppt-hint-main p { max-width: 720px; margin: 2px 0 0; color: var(--warn); font-size: 12.5px; opacity: .92; }
.ppt-hint-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.notes-panel {
    display: flex;
    flex-direction: column;
    width: 296px;
    flex: 0 0 auto;
    border-left: 1px solid var(--line);
    background: var(--surface);
}
.notes-panel.is-hidden { display: none; }
.notes-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--line);
}
.notes-head h3 { margin: 0; font-size: var(--fs-15); }
.notes-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    color: var(--text);
    font-size: 13.5px;
    line-height: 1.85;
    white-space: pre-wrap;
}
.notes-tip { margin: 0; padding: 10px 16px; border-top: 1px solid var(--line); color: var(--faint); font-size: 11.5px; line-height: 1.6; }
.player-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-4);
    flex-wrap: wrap;
    padding: 9px 18px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 11.5px;
    background: var(--surface-2);
}
.player-meta { display: flex; gap: 14px; flex-wrap: wrap; }
.share-mark { color: var(--brand-deep); font-weight: 700; }
.player-shortcuts { display: flex; gap: 12px; flex-wrap: wrap; }
.player-stage:fullscreen { width: 100vw; height: 100vh; background: #000; }
.player-stage:fullscreen .stage-frame { background: #fff; }

/* 分享页（播放器形态） */
.share-topbar { background: #fff; border-bottom: 1px solid var(--line); }
.share-topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.share-topbar-actions { display: flex; gap: 8px; }
.share-readonly {
    padding: 4px 12px;
    border: 1px solid var(--line);
    border-radius: var(--r-pill);
    background: var(--surface-2);
    color: var(--muted);
    font-size: 12px;
}
.share-foot-note { padding: 12px 0 30px; color: var(--muted); font-size: 12px; text-align: center; }
.share-play-page .container-fluid { padding: 0 18px; }
.share-container { padding-top: 28px; padding-bottom: 32px; }
.share-hero { margin-top: 0; }
.share-note {
    margin-top: 24px;
    padding: 14px 18px;
    border: 1px dashed var(--line-strong);
    border-radius: var(--r-md);
    background: var(--surface);
    color: var(--muted);
    font-size: 12.5px;
}
.share-note p { margin: 0; }

/* 计时器 */
.player-timer-rail {
    width: 236px;
    flex: 0 0 236px;
    padding: 14px;
    border-left: 1px solid var(--line);
    background: var(--surface-2);
    display: flex;
    align-items: flex-start;
    justify-content: center;
}
.player-timer {
    width: 100%;
    padding: 11px 12px 10px;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    background: #fff;
    box-shadow: var(--shadow-xs);
}
.timer-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.timer-label { display: block; color: var(--muted); font-size: 10.5px; letter-spacing: .1em; }
.timer-display {
    display: block;
    margin-top: 2px;
    color: var(--ink);
    font-size: 26px;
    line-height: 1.05;
    letter-spacing: .02em;
    font-variant-numeric: tabular-nums;
}
.timer-sound {
    width: 30px;
    height: 30px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: var(--r-xs);
    background: #fff;
    font-size: 14px;
    cursor: pointer;
}
.timer-sound:hover { border-color: var(--brand); }
.timer-modes { display: flex; gap: 4px; margin: 8px 0 6px; }
.timer-modes button,
.timer-presets button {
    padding: 4px 7px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    color: var(--muted);
    font-size: 11px;
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.timer-modes button:hover,
.timer-presets button:hover { border-color: var(--brand); color: var(--brand-deep); }
.timer-modes button.active,
.timer-presets button.active { background: var(--brand-deep); border-color: var(--brand-deep); color: #fff; }
.timer-presets { display: flex; flex-wrap: wrap; gap: 4px; }
.timer-actions { display: flex; align-items: center; gap: 5px; margin-top: 8px; }
.timer-actions .btn { padding: 4px 9px; font-size: 11px; min-height: 28px; }
.timer-save { padding: 4px 0; border: 0; background: transparent; color: var(--brand-deep); font-size: 11px; font-weight: 600; cursor: pointer; }
.timer-help { margin: 6px 0 0; color: var(--muted); font-size: 12px; }

.projection-mask { position: fixed; inset: 0; z-index: var(--z-toast); background: #000; }
.projection-mask[hidden] { display: none; }

/* PDF 画布 */
.pdf-viewer { position: relative; display: flex; flex-direction: column; width: 100%; height: 100%; min-height: 0; background: #0b1220; }
.pdf-toolbar {
    position: absolute;
    left: 50%;
    top: 12px;
    transform: translateX(-50%);
    z-index: 7;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: var(--r-sm);
    background: rgba(9, 15, 28, .74);
    border: 1px solid rgba(255, 255, 255, .12);
    color: #e2e8f0;
    font-size: 12px;
}
@supports ((backdrop-filter: blur(6px)) or (-webkit-backdrop-filter: blur(6px))) {
    .pdf-toolbar,
    .annotation-toolbar { -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
}
.pdf-toolbar .icon-btn { width: 26px; height: 26px; min-width: 26px; min-height: 26px; color: #fff; }
.pdf-toolbar .icon-btn:hover { background: rgba(255, 255, 255, .14); }
.pdf-zoom-hint { color: #bfdbfe; font-size: 11px; white-space: nowrap; }
.pdf-canvas-wrap {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 44px 12px 16px;
    overflow: hidden;
}
#pdfCanvas { display: block; max-width: 100%; max-height: 100%; background: #fff; box-shadow: 0 10px 30px rgba(0, 0, 0, .32); }
.pdf-loading {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #0b1220;
    color: #cbd5e1;
    font-size: 12px;
}
.pdf-fallback { background: #fff; }

/* 批注层 */
.annotation-layer { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.annotation-layer.is-drawing { pointer-events: auto; }
.annotation-layer canvas { display: block; width: 100%; height: 100%; touch-action: none; }
.annotation-layer.is-readonly { pointer-events: none; }
.annotation-toolbar {
    position: absolute;
    left: 12px;
    bottom: 12px;
    z-index: 8;
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
    max-width: calc(100% - 24px);
    padding: 5px 7px;
    border-radius: var(--r-sm);
    border: 1px solid rgba(255, 255, 255, .12);
    background: rgba(9, 15, 28, .8);
    color: #fff;
    font-size: 11px;
}
.annotation-toolbar[hidden] { display: none; }
.annotation-toolbar button {
    padding: 4px 7px;
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 6px;
    background: transparent;
    color: #e2e8f0;
    font-size: 11px;
    cursor: pointer;
}
.annotation-toolbar button:hover { background: rgba(255, 255, 255, .14); }
.annotation-toolbar button.active { background: #fff; border-color: #fff; color: var(--ink-900); }
.annot-color { display: inline-flex; align-items: center; }
.annot-color input { width: 24px; height: 24px; padding: 0; border: 0; background: transparent; }
.annot-hint { padding-left: 2px; color: #bfdbfe; font-size: 11px; }
.annot-office-hint {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 52px;
    z-index: 8;
    margin: 0;
    padding: 6px 9px;
    border-radius: 7px;
    background: rgba(255, 246, 232, .96);
    border: 1px solid var(--warn-line);
    color: var(--warn);
    font-size: 11.5px;
    line-height: 1.4;
}

/* 抽屉 / 书签 / 标记 / 素材 */
.side-drawer {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 12;
    width: 264px;
    padding: 12px;
    overflow: auto;
    border-right: 1px solid var(--line);
    background: #fff;
    box-shadow: 8px 0 24px rgba(11, 18, 32, .12);
}
.side-drawer.is-hidden { display: none; }
.side-drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.side-drawer-head h3 { margin: 0; font-size: 13.5px; }
.drawer-body { color: var(--text); font-size: 12.5px; line-height: 1.75; white-space: normal; }
.moral-image { width: 100%; max-height: 152px; object-fit: cover; border: 1px solid var(--line); border-radius: var(--r-xs); margin-bottom: 8px; }
.bookmark-list { display: flex; flex-direction: column; gap: 5px; }
.bookmark-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    width: 100%;
    padding: 6px 8px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: var(--surface-2);
    text-align: left;
    cursor: pointer;
}
.bookmark-item:hover { border-color: var(--brand); background: var(--brand-soft); }
.bookmark-item span { color: var(--brand-deep); font-size: 10.5px; }
.bookmark-item strong { color: var(--text); font-size: 12px; }
.mark-panel {
    position: absolute;
    right: 16px;
    bottom: 44px;
    z-index: 20;
    width: min(336px, calc(100% - 24px));
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    background: #fff;
    box-shadow: var(--shadow-lg);
}
.mark-panel[hidden] { display: none; }
.mark-panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.mark-panel-head strong { font-size: 13px; }
.mark-buttons { display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 8px; }
.mark-buttons button {
    padding: 5px 8px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    color: var(--text);
    font-size: 11.5px;
    cursor: pointer;
}
.mark-buttons button.active { background: var(--brand-deep); border-color: var(--brand-deep); color: #fff; }
.mark-toast {
    position: fixed;
    left: 50%;
    bottom: 28px;
    z-index: 10001;
    padding: 9px 16px;
    border-radius: var(--r-sm);
    background: var(--ink-900);
    color: #fff;
    font-size: 12px;
    box-shadow: var(--shadow-lg);
}
.mark-toast[hidden] { display: none; }
.material-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.material-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-xs); background: var(--surface-2); }
.material-card img { width: 100%; height: 72px; object-fit: cover; display: block; background: var(--surface-3); }
.material-meta { padding: 5px 7px 0; }
.material-meta strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11.5px; }
.material-meta small { display: block; margin-top: 2px; color: var(--muted); font-size: 11px; }
.material-card .inline-form { padding: 2px 7px 5px; }
.version-list { display: flex; flex-direction: column; gap: 5px; margin-bottom: 8px; }
.version-row { display: flex; align-items: center; gap: 4px; }
.version-name-form { flex: 1 1 auto; }
.version-name-form input { width: 100%; min-width: 0; }
.version-add-form { margin-top: 6px; }
.version-add-form input { flex: 1 1 auto; min-width: 0; }
.bookmark-row { display: flex; align-items: center; gap: 4px; margin-bottom: 4px; }
.bookmark-row input[type="text"] { flex: 1 1 auto; min-width: 0; }
.bookmark-row input[type="number"] { width: 62px; flex: 0 0 auto; }
.sub-panel { margin: 4px 0; padding: 9px; border: 1px dashed var(--line-strong); border-radius: var(--r-sm); background: var(--surface-2); }
.sub-panel .panel-head { margin-bottom: 6px; }
.sub-panel .panel-head h2 { font-size: 13px; }
.sub-panel .field { margin-bottom: 6px; }

/* =========================================================
   14 课表
   ========================================================= */

.schedule-page .page-head,
.admin-page .page-head { padding-top: 26px; }
.schedule-toolbar {
    display: flex;
    align-items: center;
    gap: var(--sp-4);
    flex-wrap: wrap;
    margin-bottom: 16px;
    padding: 12px 16px;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    background: var(--surface);
    box-shadow: var(--shadow-xs);
}
.inline-form { display: inline-flex; align-items: center; gap: 8px; margin: 0; }
.compact-field { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12.5px; white-space: nowrap; }
.compact-field select {
    min-height: 34px;
    max-width: 100%;
    padding: 6px 34px 6px 10px;
    border: 1px solid var(--line-strong);
    border-radius: var(--r-xs);
    background-color: #fff;
    background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
        linear-gradient(135deg, var(--muted) 50%, transparent 50%);
    background-position: calc(100% - 15px) 52%, calc(100% - 10px) 52%;
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
    font-size: 13px;
    color: var(--ink);
    font-family: inherit;
    appearance: none;
}
.week-nav { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.week-label { padding: 0 6px; color: var(--ink); font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.schedule-side { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-left: auto; }
.timetable-wrap {
    position: relative;
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    background: var(--surface);
    box-shadow: var(--shadow-xs);
}
.timetable { width: 100%; min-width: 900px; border-collapse: separate; border-spacing: 0; }
.timetable th,
.timetable td { padding: 8px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); vertical-align: top; }
.timetable thead th { position: sticky; top: 0; z-index: 3; padding: 10px 8px; background: var(--surface-2); text-align: center; font-size: 13px; }
.timetable thead th span { display: block; color: var(--ink); font-weight: 700; white-space: nowrap; }
.timetable thead th small { display: block; color: var(--muted); font-size: 11px; font-weight: 500; white-space: nowrap; }
.timetable thead th.is-today { background: var(--brand-soft); color: var(--brand-deep); box-shadow: inset 0 3px 0 var(--brand); }
.timetable thead th.is-today span,
.timetable thead th.is-today small { color: var(--brand-deep); }
.tt-corner { width: 92px; }
.tt-period { position: sticky; left: 0; z-index: 2; background: var(--surface-2); text-align: center; }
.tt-period span { display: block; color: var(--ink); font-size: 12.5px; font-weight: 600; }
.tt-period small { display: block; color: var(--muted); font-size: 10.5px; font-weight: 500; font-variant-numeric: tabular-nums; }
.timetable td { height: 80px; background: var(--surface); }
.timetable td.is-today { background: #fbfdff; }
.timetable td.has-course { padding: 6px; }
.tt-course {
    display: flex;
    flex-direction: column;
    gap: 2px;
    height: 100%;
    padding: 7px 9px;
    border: 1px solid var(--line);
    border-left: 3px solid var(--brand);
    border-radius: var(--r-xs);
    background: linear-gradient(160deg, var(--brand-soft) 0%, #fff 100%);
    color: var(--ink);
    transition: border-color .16s ease, transform .16s ease, box-shadow .16s ease;
}
.tt-course:hover {
    color: var(--ink);
    border-color: var(--brand-light);
    border-left-color: var(--brand-deep);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}
.tt-subject { color: var(--brand-deep); font-size: 10.5px; font-weight: 700; letter-spacing: .04em; }
.tt-course strong {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 12.5px;
    line-height: 1.4;
}
.tt-course small { color: var(--muted); font-size: 10.5px; }
.tt-empty { display: block; height: 100%; border-radius: var(--r-xs); color: var(--line-strong); text-align: center; font-size: 15px; }
.tt-missing { display: block; padding-top: 12px; color: var(--danger); font-size: 11px; text-align: center; }
.admin-tt .timetable { min-width: 780px; }
.admin-tt .tt-slot { transition: background-color .15s ease; }
.admin-tt .tt-slot.drop-target { background: var(--brand-soft); outline: 2px dashed var(--brand); outline-offset: -4px; }
.tt-drag {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-height: 60px;
    padding: 7px 9px;
    border: 1px solid var(--line);
    border-left: 3px solid var(--brand-light);
    border-radius: var(--r-xs);
    background: linear-gradient(160deg, var(--brand-soft), #fff);
    cursor: grab;
}
.tt-drag.dragging { opacity: .45; }
.tt-drag strong { padding-right: 16px; font-size: 12px; line-height: 1.35; }
.tt-del { position: absolute; right: 3px; top: 3px; }
.tt-del button { padding: 2px 4px; border: 0; background: transparent; color: var(--faint); font-size: 14px; line-height: 1; cursor: pointer; }
.tt-del button:hover { color: var(--danger); }
.print-hint { margin: 12px 0 30px; color: var(--faint); font-size: 12px; }
.print-head { display: none; }
.schedule-layout { align-items: flex-start; }
.schedule-layout .split-main { min-width: 0; }

/* =========================================================
   15 随机点名
   ========================================================= */

.roster-stage {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 306px;
    gap: 20px;
    align-items: start;
    margin-bottom: 40px;
}
.classroom {
    position: relative;
    overflow: hidden;
    min-height: 460px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: var(--r-2xl);
    background:
        radial-gradient(520px 260px at 85% 0%, var(--brand-soft), transparent 68%),
        linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
    box-shadow: var(--shadow-sm);
}
.classroom::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(var(--line-strong) 1px, transparent 1px);
    background-size: 24px 24px;
    opacity: .45;
    pointer-events: none;
}
.classroom-top { position: relative; z-index: 2; display: flex; align-items: flex-start; gap: 20px; }
.blackboard {
    flex: 1;
    min-height: 132px;
    padding: 18px 22px;
    border: 9px solid #a9793f;
    border-radius: var(--r-md);
    background:
        repeating-linear-gradient(180deg, rgba(255, 255, 255, .02) 0 28px, transparent 28px 30px),
        #163f2d;
    color: #e9f7ee;
    box-shadow: inset 0 0 44px rgba(0, 0, 0, .38), 0 12px 26px rgba(20, 61, 43, .2);
}
.board-label { color: #8fd3ad; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; }
.blackboard p { margin: 10px 0 0; color: #f4fff8; font-size: 20px; font-weight: 600; line-height: 1.5; }
.teacher-area { position: relative; display: flex; justify-content: center; width: 150px; flex: 0 0 auto; }
.teacher-figure { width: 132px; height: auto; filter: drop-shadow(0 12px 18px rgba(15, 23, 42, .16)); }
.teacher-bubble {
    position: absolute;
    right: 118px;
    top: -6px;
    z-index: 3;
    width: 190px;
    padding: 8px 12px;
    border: 1px solid var(--brand-light);
    border-radius: 12px 12px 2px 12px;
    background: #fff;
    color: var(--ink);
    font-size: 12.5px;
    box-shadow: var(--shadow-md);
}
.student-desks {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
    gap: 14px;
    margin-top: 20px;
}
.student {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 10px 6px 7px;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    background: #fff;
    box-shadow: var(--shadow-xs);
    cursor: default;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}
.student-face {
    position: relative;
    display: block;
    width: 40px;
    height: 40px;
    margin-bottom: 2px;
    border-radius: 50%;
    background: var(--skin, #f7c99b);
    box-shadow: inset 0 -5px 0 rgba(0, 0, 0, .05);
    transition: transform .22s ease, background-color .22s ease;
}
.student-face::before {
    content: "";
    position: absolute;
    left: 3px;
    right: 3px;
    top: -4px;
    height: 17px;
    border-radius: 52% 52% 45% 45%;
    background: var(--hair, #2f3b4f);
}
.face-eye { position: absolute; left: 11px; top: 19px; width: 4px; height: 5px; border-radius: 50%; background: #2f2a26; box-shadow: 14px 0 0 #2f2a26; }
.face-mouth { position: absolute; left: 14px; top: 26px; width: 12px; height: 7px; border: 2px solid #a3543f; border-top: 0; border-radius: 0 0 10px 10px; }
.student-face[data-mood="surprised"] .face-mouth { left: 16px; top: 25px; width: 9px; height: 9px; border: 2px solid #a3543f; border-radius: 50%; }
.student-face[data-mood="sleepy"] .face-eye { top: 21px; height: 2px; border-radius: 2px; box-shadow: 14px 0 0 #2f2a26; }
.student-face[data-mood="sleepy"] .face-mouth { left: 16px; top: 29px; width: 8px; height: 2px; border: 0; border-top: 2px solid #a3543f; border-radius: 0; }
.student-face[data-mood="shy"] .face-eye { top: 20px; height: 3px; }
.student-face[data-mood="shy"] .face-mouth { left: 16px; width: 8px; }
.student-face[data-mood="shy"]::after {
    content: "";
    position: absolute;
    left: 4px;
    top: 26px;
    width: 7px;
    height: 4px;
    border-radius: 50%;
    background: #f08a8a;
    opacity: .55;
    box-shadow: 27px 0 0 #f08a8a;
}
.student-face[data-mood="excited"] .face-mouth { left: 13px; top: 24px; width: 15px; height: 10px; border: 0; border-radius: 0 0 12px 12px; background: #a3543f; }
.student-face[data-mood="whisper"] .face-mouth { left: 17px; top: 27px; width: 6px; height: 6px; border-radius: 50%; }
.student-face[data-mood="happy"] .face-mouth { left: 14px; width: 13px; }
.student-name { color: var(--ink); font-size: 12.5px; font-weight: 600; }
.student-no { color: var(--faint); font-size: 10px; font-variant-numeric: tabular-nums; }
.student:hover { border-color: var(--brand-light); box-shadow: var(--shadow-sm); }
.student.is-rolling { border-color: var(--brand); background: var(--brand-soft); transform: translateY(-3px) scale(1.03); box-shadow: var(--shadow-md); }
.student.is-picked {
    z-index: 5;
    border-color: #f59e0b;
    background: linear-gradient(160deg, #fff7e6, #fff);
    transform: translateY(-8px) scale(1.1);
    box-shadow: 0 18px 34px rgba(245, 158, 11, .26);
}
.student.is-picked .student-face { transform: scale(1.35); }
.student.is-calling { animation: studentCall .6s ease infinite alternate; }
@keyframes studentCall { from { transform: translateY(0); } to { transform: translateY(-4px); } }
.student.is-shy .student-face { transform: rotate(-8deg); }
.student.is-sleepy .student-face { filter: saturate(.7); transform: translateY(2px) rotate(6deg); }
.student.is-whisper .student-face { transform: translateX(2px); }
.student.is-excited .student-face { transform: scale(1.1); }

.roster-console {
    position: sticky;
    top: 84px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--r-xl);
    background: var(--surface);
    box-shadow: var(--shadow-md);
}
.picked-panel { padding-bottom: 12px; border-bottom: 1px dashed var(--line); margin-bottom: 14px; }
.picked-label { margin: 0; color: var(--muted); font-size: 11px; letter-spacing: .16em; }
.picked-name {
    min-height: 46px;
    margin: 4px 0 2px;
    color: var(--ink);
    font-size: 34px;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -.02em;
    font-variant-numeric: tabular-nums;
}
.picked-name.picked { color: var(--warn); animation: pop .45s ease; }
@keyframes pop { 0% { transform: scale(.86); opacity: .5; } 100% { transform: scale(1); opacity: 1; } }
.picked-hint { min-height: 18px; margin: 0 0 12px; color: var(--muted); font-size: 12px; }
.roster-controls { display: flex; flex-direction: column; gap: 9px; margin-bottom: 14px; }
.roster-controls .btn { width: 100%; min-height: 42px; }
.switch { display: flex; align-items: center; gap: 8px; color: var(--text); font-size: 12.5px; cursor: pointer; }
.switch input { width: 16px; height: 16px; accent-color: var(--brand); }
.roster-log { padding-top: 10px; border-top: 1px dashed var(--line); }
.roster-log strong { display: block; margin-bottom: 6px; color: var(--muted); font-size: 12px; }
.called-list { display: flex; flex-wrap: wrap; gap: 5px; font-size: 11.5px; }
.called-list .called-tag { padding: 2px 8px; border-radius: var(--r-pill); background: var(--brand-soft); color: var(--brand-deep); }

/* =========================================================
   16 作业 / 通用面板 / 统计卡
   ========================================================= */

.split-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.split-main { min-width: 0; }
.split-side { display: flex; flex-direction: column; gap: 18px; }
.panel {
    padding: 18px 20px;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    background: var(--surface);
    box-shadow: var(--shadow-xs);
}
.panel + .panel { margin-top: 0; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.panel-head h2 { margin: 0; font-size: 17px; }
.settings-form .panel + .panel { margin-top: 18px; }
.panel.sticky { position: sticky; top: 84px; }

.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(158px, 1fr)); gap: 14px; margin: 8px 0 20px; }
.stat-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 15px 16px;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    background: var(--surface);
    box-shadow: var(--shadow-xs);
    transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.stat-card:hover { border-color: var(--brand-light); box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.stat-card > span:not(.stat-icon):not(.stat-sub) { color: var(--muted); font-size: 11.5px; letter-spacing: .04em; }
.stat-card strong {
    color: var(--ink);
    font-size: 26px;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -.02em;
    font-variant-numeric: tabular-nums;
}
.stat-card a { margin-top: 2px; color: var(--brand-deep); font-size: 11.5px; font-weight: 600; }
.stat-card a:hover { color: var(--brand); }
.stat-accent { background: linear-gradient(160deg, var(--brand-soft), #fff); border-color: var(--brand-light); }
.stat-accent strong { color: var(--brand-deep); }
.stat-text { font-size: var(--fs-15) !important; line-height: 1.6; padding-top: 6px; }
.stat-code { font-size: 15px !important; letter-spacing: .08em; padding-top: 6px; overflow: hidden; text-overflow: ellipsis; }
.stat-sub { color: var(--muted); font-size: 11.5px; }
/* 统计卡图标（后台 dashboard 新增结构） */
.stat-icon {
    position: absolute;
    right: 14px;
    top: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: var(--r-xs);
    background: var(--brand-soft);
    border: 1px solid var(--brand-light);
}
.stat-icon svg { width: 16px; height: 16px; fill: none; stroke: var(--brand-deep); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.hw-list { display: flex; flex-direction: column; gap: 12px; }
.hw-card {
    display: block;
    padding: 15px 17px;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    background: var(--surface);
    color: var(--ink);
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.hw-card:hover {
    color: var(--ink);
    border-color: var(--brand);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.hw-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; flex-wrap: wrap; }
.hw-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.hw-time { color: var(--faint); font-size: 11px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hw-card h3 { margin: 0 0 4px; font-size: var(--fs-16); }
.hw-desc { margin: 0 0 8px; color: var(--muted); font-size: 12.5px; }
.hw-stats { display: flex; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: 11.5px; }
.hw-stats strong { color: var(--ink); font-variant-numeric: tabular-nums; }
.hw-rate { color: var(--brand-deep); font-weight: 700; font-variant-numeric: tabular-nums; }
.hw-content { margin-bottom: 14px; color: var(--text); font-size: var(--fs-14); line-height: 1.9; }
.file-list { display: flex; flex-direction: column; gap: 8px; }
.file-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    background: var(--surface);
    color: var(--ink);
    font-size: 13px;
    transition: border-color .15s ease, background-color .15s ease;
}
.file-item:hover { border-color: var(--brand); background: var(--surface-2); color: var(--brand-deep); }
.file-icon { flex: 0 0 auto; padding: 2px 7px; border-radius: 5px; background: var(--brand-soft); color: var(--brand-deep); font-size: 10.5px; font-weight: 700; }
.file-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-size { color: var(--muted); font-size: 11.5px; font-variant-numeric: tabular-nums; }
.inline-upload { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 10px 0; }
.inline-upload input[type="file"] { flex: 1; min-width: 180px; font-size: 12px; }
.answer-preview { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }
.answer-thumb {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-width: 320px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    color: var(--muted);
    font-size: 12px;
}
.answer-thumb img { width: 100%; max-height: 200px; object-fit: contain; border-radius: 6px; background: var(--surface-2); }
.answer-pdf { width: 100%; height: 360px; border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff; }
.sub-list { display: flex; flex-direction: column; gap: 10px; max-height: 520px; overflow: auto; }
.sub-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 11px;
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
}
.sub-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sub-main strong { font-size: 13px; }
.sub-main a { max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11.5px; }
.sub-main small { color: var(--faint); font-size: 10.5px; }

/* =========================================================
   17 表单
   ========================================================= */

.form-stack { display: flex; flex-direction: column; gap: var(--sp-3); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
.field { display: flex; flex-direction: column; gap: 5px; color: var(--muted); font-size: 12.5px; }
.field > span:first-child { color: var(--text); font-size: 13px; font-weight: 600; }
.field input[type="text"],
.field input[type="password"],
.field input[type="date"],
.field input[type="url"],
.field input[type="number"],
.field input[type="search"],
.field input[type="email"],
.field input[type="tel"],
.field select,
.field textarea,
.inline-form select,
.inline-form input[type="search"],
.inline-form input[type="text"],
.inline-form input[type="number"] {
    width: 100%;
    max-width: 100%;
    min-height: 40px;
    padding: 8px 12px;
    border: 1px solid var(--line-strong);
    border-radius: var(--r-sm);
    background: var(--surface);
    color: var(--ink);
    font-family: inherit;
    font-size: 13.5px;
    line-height: 1.5;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.field select,
.inline-form select { cursor: pointer; }
.field input::placeholder,
.field textarea::placeholder { color: var(--faint); }
.field input:hover,
.field select:hover,
.field textarea:hover { border-color: var(--faint); }
.field input:focus,
.field select:focus,
.field textarea:focus,
.inline-form input:focus,
.inline-form select:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px var(--brand-soft);
}
.field textarea { resize: vertical; line-height: 1.7; }
.field input[type="file"] {
    padding: 8px;
    border: 1px dashed var(--line-strong);
    border-radius: var(--r-sm);
    background: var(--surface-2);
    color: var(--muted);
    font-size: 12px;
    cursor: pointer;
}
.field input[type="file"]:hover { border-color: var(--brand); background: var(--brand-soft); }
.field-help { color: var(--faint); font-size: 11.5px; line-height: 1.55; }
.check { display: flex; align-items: flex-start; gap: 8px; color: var(--text); font-size: 13px; cursor: pointer; }
.check input { width: 16px; height: 16px; margin-top: 2px; flex: 0 0 auto; accent-color: var(--brand); }
.check-box { padding: 9px 12px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface-2); }
.password-wrap { position: relative; display: block; }
.password-eye {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    padding: 3px 6px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--muted);
    font-size: 11.5px;
    cursor: pointer;
}
.password-eye:hover { background: var(--brand-soft); color: var(--brand-deep); }
.cover-preview { display: flex; flex-direction: column; gap: 8px; }
.cover-preview img { width: auto; max-height: 130px; border: 1px solid var(--line); border-radius: var(--r-xs); }
.logo-preview { display: flex; align-items: center; gap: 14px; }
.logo-preview img { width: 64px; height: 64px; object-fit: contain; padding: 4px; border: 1px solid var(--line); border-radius: var(--r-xs); background: #fff; }
.color-field { display: flex; align-items: center; gap: 8px; }
.color-field input[type="color"] { width: 46px; height: 36px; padding: 2px; border: 1px solid var(--line-strong); border-radius: var(--r-xs); background: #fff; }
.color-field input[type="text"] { flex: 1; }

/* =========================================================
   18 表格
   ========================================================= */

/* 可横向滚动的表格容器：两侧渐隐阴影提示“还有内容” */
.table-wrap,
.timetable-wrap {
    background:
        linear-gradient(to right, #fff 30%, rgba(255, 255, 255, 0)) left center no-repeat local,
        linear-gradient(to left, #fff 30%, rgba(255, 255, 255, 0)) right center no-repeat local,
        radial-gradient(farthest-side at 0% 50%, rgba(11, 18, 32, .12), transparent) left center no-repeat scroll,
        radial-gradient(farthest-side at 100% 50%, rgba(11, 18, 32, .12), transparent) right center no-repeat scroll;
    background-size: 28px 100%, 28px 100%, 16px 100%, 16px 100%;
    background-color: var(--surface);
    -webkit-overflow-scrolling: touch;
}
.table-wrap { width: 100%; overflow-x: auto; border-radius: var(--r-md); }
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th,
.table td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.table thead th {
    background: var(--surface-2);
    color: var(--muted);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .03em;
    white-space: nowrap;
}
.table tbody tr { transition: background-color .14s ease; }
.table tbody tr:hover { background: var(--surface-2); }
.table tbody tr:last-child td { border-bottom: 0; }
.table .thumb { width: 52px; height: 34px; border-radius: 7px; object-fit: cover; }
.table .tag { white-space: nowrap; }
.thumb-fallback { display: inline-flex; align-items: center; justify-content: center; background: var(--brand-soft); color: var(--brand-deep); font-weight: 800; font-size: var(--fs-14); }
.drag-cell { width: 34px; color: var(--line-strong); }
.drag-handle { font-size: 15px; letter-spacing: -2px; cursor: grab; }
tr.dragging { opacity: .5; background: var(--brand-soft) !important; }
tr.drop-target { outline: 2px dashed var(--brand); outline-offset: -2px; }
.row-pinned td { background: #fffaf7; }
.state {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 6px;
    background: var(--surface-3);
    color: var(--muted);
    font-size: 11.5px;
    font-weight: 600;
    white-space: nowrap;
}
.state-ok { background: var(--success-bg); color: var(--success); }
.state-missing { background: var(--surface-3); color: var(--muted); }
.state-redo { background: var(--warn-bg); color: var(--warn); }
.switch-btn {
    padding: 3px 9px;
    border: 1px solid var(--line-strong);
    border-radius: var(--r-pill);
    background: var(--surface-2);
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
}
.switch-btn.on { background: var(--success-bg); border-color: var(--success-line); color: var(--success); }
.table td strong { white-space: nowrap; }
.note-form { display: flex; align-items: center; gap: 6px; width: 100%; }
.note-form input { width: 100%; min-width: 92px; padding: 5px 8px; border: 1px solid var(--line-strong); border-radius: 7px; font-size: 11.5px; }
.pick-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.pick-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-md); color: var(--ink); }
.pick-item:hover { border-color: var(--brand); color: var(--ink); box-shadow: var(--shadow-xs); }
.pick-letter { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; flex: 0 0 auto; border-radius: var(--r-xs); background: var(--brand-soft); color: var(--brand-deep); font-weight: 800; }
.pick-main { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.pick-main strong { font-size: 13.5px; }
.pick-main small { color: var(--muted); font-size: 11px; }
.pick-go { flex: 0 0 auto; color: var(--brand-deep); font-size: 11.5px; font-weight: 600; }

/* =========================================================
   19 上传 / 拖拽区
   ========================================================= */

.upload-form { display: flex; flex-direction: column; gap: 12px; }
.dropzone {
    position: relative;
    border: 2px dashed var(--line-strong);
    border-radius: var(--r-lg);
    background: var(--surface-2);
    transition: border-color .18s ease, background-color .18s ease;
}
.dropzone:hover { border-color: var(--brand); background: var(--brand-soft); }
.dropzone input[type="file"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.dropzone-inner { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 26px 18px; text-align: center; pointer-events: none; }
.dropzone-inner strong { color: var(--ink); font-size: var(--fs-14); }
.dropzone-inner small { max-width: 520px; color: var(--muted); font-size: 11.5px; }
.dz-icon { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--brand-soft); border: 1px solid var(--brand-light); color: var(--brand-deep); font-size: 22px; }
.dropzone.dragover { border-color: var(--brand); background: var(--brand-soft); }
.dz-file-list { display: flex; flex-direction: column; gap: 6px; font-size: 12px; }
.dz-file { display: flex; align-items: center; justify-content: space-between; padding: 6px 10px; border: 1px solid var(--line); border-radius: var(--r-xs); background: var(--surface-2); }
.dz-file small { color: var(--muted); }

/* =========================================================
   20 管理后台
   ========================================================= */

.admin-shell {
    display: grid;
    grid-template-columns: 176px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
    padding: 24px 0 10px;
}
.admin-nav {
    position: sticky;
    top: 84px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 12px 10px;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    background: var(--surface);
    box-shadow: var(--shadow-xs);
}
.admin-nav-title { margin: 4px 8px 8px; color: var(--faint); font-size: 10.5px; letter-spacing: .18em; }
.admin-nav-item {
    padding: 8px 11px;
    border-radius: var(--r-xs);
    color: var(--text);
    font-size: 13px;
    font-weight: 600;
    transition: background-color .15s ease, color .15s ease;
}
.admin-nav-item:hover { background: var(--brand-soft); color: var(--brand-deep); }
.admin-nav-item.active { background: var(--brand-deep); color: #fff; box-shadow: var(--shadow-xs); }
.admin-body { min-width: 0; }
.admin-content { min-width: 0; }
.admin-tabs {
    display: none;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 10px;
    scrollbar-width: none;
}
.admin-tabs::-webkit-scrollbar { display: none; }
.admin-tab {
    padding: 7px 13px;
    border: 1px solid var(--line);
    border-radius: var(--r-pill);
    background: var(--surface);
    color: var(--text);
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}
.admin-tab:hover { border-color: var(--brand); color: var(--brand-deep); }
.admin-tab.active { background: var(--brand-deep); border-color: transparent; color: #fff; }
.admin-page .container { max-width: 1280px; }
.mini-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 10px; }
.mini-card {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 12px 13px;
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    background: var(--surface);
    color: var(--ink);
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.mini-card:hover { border-color: var(--brand); color: var(--ink); box-shadow: var(--shadow-xs); transform: translateY(-1px); }
.mini-card strong { font-size: 13.5px; }
.mini-card span { color: var(--muted); font-size: 11px; }
.mini-card small { color: var(--faint); font-size: 11px; }
.quick-list { display: flex; flex-direction: column; }
.quick-list a { display: flex; align-items: center; justify-content: space-between; padding: 10px 2px; border-bottom: 1px dashed var(--line); color: var(--text); font-size: 13px; }
.quick-list a:last-child { border-bottom: 0; }
.quick-list a:hover { color: var(--brand-deep); }
.tips { margin: 0; padding-left: 18px; color: var(--muted); font-size: 12.5px; line-height: 1.85; }
.tips li { margin-bottom: 4px; }
.info-list { display: flex; flex-direction: column; gap: 8px; margin: 0; }
.info-list > div { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 7px; border-bottom: 1px dashed var(--line); font-size: 12.5px; }
.info-list dt { color: var(--muted); }
.info-list dd { margin: 0; color: var(--ink); font-weight: 600; text-align: right; }
.profile-head { display: flex; align-items: center; gap: 16px; margin-bottom: 6px; }
.profile-head p { margin: 2px 0 0; font-size: 12px; }
.theme-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-bottom: 14px; }
.theme-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 9px;
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    background: var(--surface);
    cursor: pointer;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.theme-card input { position: absolute; opacity: 0; }
.theme-card strong { color: var(--ink); font-size: 12.5px; }
.theme-card small { color: var(--muted); font-family: var(--mono); font-size: 10px; }
.theme-swatch { height: 34px; border-radius: 7px; background: linear-gradient(135deg, var(--swatch), var(--swatch-deep)); }
.theme-card:hover { border-color: var(--brand-light); }
.theme-card.selected { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand-soft); }
.theme-card:focus-within { outline: 3px solid var(--brand); outline-offset: 2px; }
.theme-preview { border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; }
.tp-bar { height: 38px; background: linear-gradient(120deg, var(--brand), var(--brand-deep)); }
.theme-preview p { margin: 0; padding: 7px 12px; background: var(--surface-2); color: var(--muted); font-size: 11.5px; }
.link-box { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.link-box input {
    flex: 1;
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid var(--line-strong);
    border-radius: var(--r-sm);
    background: var(--surface-2);
    color: var(--brand-deep);
    font-family: var(--mono);
    font-size: 12.5px;
}
.link-actions { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0 4px; }
.log-filter { flex-wrap: wrap; }
.log-filter input[type="search"] { width: 220px; }

/* =========================================================
   21 登录页
   ========================================================= */

.login-page {
    background:
        radial-gradient(900px 520px at 6% -6%, var(--brand-soft), transparent 62%),
        radial-gradient(760px 480px at 102% 104%, var(--brand-soft), transparent 58%),
        linear-gradient(180deg, #f8fafd 0%, #eef3fa 100%);
}
.login-page main { max-width: none; padding: 0; }
.login-page .site-footer { margin-top: 0; }
.login-wrap {
    display: grid;
    grid-template-columns: 1.06fr .94fr;
    align-items: stretch;
    max-width: 1120px;
    min-height: calc(100vh - 140px);
    margin: 0 auto;
    padding: 40px 24px 48px;
}
.login-side {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 44px 44px;
    border-radius: var(--r-2xl) 0 0 var(--r-2xl);
    color: #fff;
    background:
        radial-gradient(520px 300px at 90% 0%, var(--brand-light), transparent 62%),
        linear-gradient(150deg, var(--brand-deep) 0%, var(--brand) 100%);
    box-shadow: var(--shadow-lg);
}
.login-side::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .08) 1px, transparent 1px);
    background-size: 48px 48px;
    -webkit-mask-image: linear-gradient(150deg, rgba(0, 0, 0, .75), transparent 74%);
    mask-image: linear-gradient(150deg, rgba(0, 0, 0, .75), transparent 74%);
    pointer-events: none;
}
.login-side::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(112deg, rgba(5, 10, 22, .26) 0%, rgba(5, 10, 22, 0) 62%);
    pointer-events: none;
}
.login-side > * { position: relative; z-index: 2; }
.login-deco {
    position: absolute;
    right: -70px;
    bottom: -80px;
    width: 300px;
    height: 300px;
    z-index: 1;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .16);
    box-shadow: 0 0 0 40px rgba(255, 255, 255, .05), 0 0 0 90px rgba(255, 255, 255, .035);
    pointer-events: none;
}
.login-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 32px; }
.login-logo { width: 52px; height: 52px; object-fit: contain; padding: 5px; border-radius: var(--r-md); background: rgba(255, 255, 255, .95); }
.login-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: var(--r-md);
    border: 1px solid rgba(255, 255, 255, .34);
    background: rgba(255, 255, 255, .16);
    font-size: 22px;
    font-weight: 800;
}
.login-brand strong { display: block; font-size: var(--fs-16); }
.login-brand span { color: rgba(255, 255, 255, .78); font-size: 11.5px; }
.login-side h1 {
    margin-bottom: 14px;
    color: #fff;
    font-size: clamp(26px, 2.7vw, 34px);
    line-height: 1.3;
    letter-spacing: -.02em;
    text-shadow: 0 2px 16px rgba(3, 10, 26, .18);
}
.login-desc { max-width: 430px; color: #eef3ff; font-size: var(--fs-14); line-height: 1.75; }
.login-points { display: flex; flex-direction: column; gap: 12px; margin: 22px 0 0; padding: 0; list-style: none; }
.login-points li { display: flex; align-items: center; gap: 12px; color: rgba(255, 255, 255, .94); font-size: 13.5px; }
.login-points span {
    flex: 0 0 auto;
    padding: 2px 6px;
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 6px;
    background: rgba(255, 255, 255, .08);
    color: rgba(255, 255, 255, .8);
    font-family: var(--mono);
    font-size: 10.5px;
}
.login-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.login-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: 1px solid rgba(255, 255, 255, .26);
    border-radius: var(--r-pill);
    background: rgba(255, 255, 255, .12);
    color: rgba(255, 255, 255, .94);
    font-size: 11.5px;
    font-weight: 600;
}
.login-badge i { font-style: normal; opacity: .85; }
.login-foot { margin: auto 0 0; padding-top: 28px; color: rgba(255, 255, 255, .6); font-size: 11px; letter-spacing: .02em; }
.login-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 44px 44px;
    border-radius: 0 var(--r-2xl) var(--r-2xl) 0;
    background: var(--surface);
    box-shadow: var(--shadow-lg);
}
.login-card-head { margin-bottom: 24px; }
.login-card-head h2 { margin: 2px 0 6px; font-size: 26px; }
.login-card-head .muted { margin: 0; font-size: 13px; }
.login-card .form-stack { gap: 16px; }
.login-card .field > span:first-child { font-size: 13px; }
.login-card .field input[type="text"],
.login-card .field input[type="password"] { min-height: 46px; font-size: var(--fs-15); border-radius: var(--r-md); }
.login-card .btn-lg { min-height: 48px; font-size: var(--fs-16); letter-spacing: .18em; }
.login-hint {
    margin-top: 24px;
    padding: 12px 14px;
    border: 1px dashed var(--line-strong);
    border-radius: var(--r-sm);
    background: var(--surface-2);
    color: var(--muted);
    font-size: 12px;
    line-height: 1.7;
}
.login-hint strong { margin-right: 6px; color: var(--text); }
.login-hint span { color: var(--brand-deep); font-family: var(--mono); font-weight: 600; }
.login-hint p { margin: 4px 0 0; font-size: 11px; }

/* =========================================================
   22 错误页
   ========================================================= */

.error-page main { display: flex; align-items: center; justify-content: center; min-height: 66vh; }
.error-wrap {
    max-width: 640px;
    padding: 48px 40px;
    border: 1px solid var(--line);
    border-radius: var(--r-2xl);
    background: var(--surface);
    box-shadow: var(--shadow-md);
    text-align: center;
}
.error-art { position: relative; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.error-code {
    position: relative;
    z-index: 2;
    color: var(--brand);
    font-size: 84px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -.04em;
    font-variant-numeric: tabular-nums;
}
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
    .error-code {
        background: linear-gradient(135deg, var(--brand), var(--brand-deep));
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
        color: transparent;
    }
}
.error-ring { position: absolute; width: 154px; height: 154px; border: 2px dashed var(--brand-light); border-radius: 50%; animation: spin 16s linear infinite; }
.error-wrap h1 { margin: 8px 0; font-size: 24px; }
.error-msg { margin-bottom: 4px; color: var(--text); font-size: var(--fs-14); }
.error-tip { color: var(--muted); font-size: 12.5px; }
.error-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }

/* =========================================================
   23 其它通用组件（特性开关 / 标签云 / 教学反思）
   ========================================================= */

.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; margin: 4px 0 14px; }
.feature-toggle {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    background: var(--surface-2);
    cursor: pointer;
    transition: border-color .15s ease, background-color .15s ease;
}
.feature-toggle:hover { border-color: var(--brand-light); background: var(--surface); }
.feature-toggle input { margin-top: 3px; flex: 0 0 auto; accent-color: var(--brand); }
.feature-toggle-text strong { display: block; color: var(--ink); font-size: 13px; }
.feature-toggle-text small { display: block; margin-top: 2px; color: var(--muted); font-size: 11.5px; line-height: 1.5; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tag-cloud .tag { text-decoration: none; }
.tag-cloud .tag small { margin-left: 2px; opacity: .72; }
.reflection-text {
    width: 100%;
    min-height: 300px;
    padding: 12px;
    border: 1px solid var(--line-strong);
    border-radius: var(--r-xs);
    background: var(--surface-2);
    color: var(--text);
    font-family: var(--mono);
    font-size: 12.5px;
    line-height: 1.75;
    resize: vertical;
}

/* =========================================================
   24 试卷模块 · 管理端共用组件（app.css 补齐，避免 admin_papers 丢样式）
   ========================================================= */

.paper-store-note {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: 0 0 16px;
    padding: 10px 14px;
    border: 1px solid var(--warn-line);
    border-radius: var(--r-md);
    background: var(--warn-bg);
    color: var(--warn);
    font-size: 12.5px;
}
.paper-store-note strong {
    padding: 2px 8px;
    border-radius: var(--r-pill);
    background: #fff;
    border: 1px solid var(--warn-line);
    font-size: 12px;
    white-space: nowrap;
}
.paper-store-note.is-ok { border-color: var(--success-line); background: var(--success-bg); color: var(--success); }
.paper-store-note.is-ok strong { border-color: var(--success-line); color: var(--success); }
.paper-inline-warning {
    margin: 0 0 16px;
    padding: 10px 14px;
    border: 1px solid var(--warn-line);
    border-radius: var(--r-sm);
    background: var(--warn-bg);
    color: var(--warn);
    font-size: 12.5px;
    line-height: 1.7;
}
.paper-inline-warning code { background: #fff; color: var(--warn); }
.paper-task-table { min-width: 780px; }
.paper-storage-choice { display: flex; gap: 16px; flex-wrap: wrap; color: var(--text); font-size: 13px; }
.paper-storage-choice label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.paper-storage-choice label.is-disabled { color: var(--muted); cursor: not-allowed; }
.paper-storage-choice input { accent-color: var(--brand); }
.paper-storage-badge {
    display: inline-block;
    margin-left: 4px;
    padding: 1px 7px;
    border-radius: var(--r-pill);
    background: var(--surface-3);
    color: var(--muted);
    font-size: 10.5px;
    font-weight: 700;
    vertical-align: middle;
}
.paper-storage-badge.is-oss { background: var(--brand-soft); color: var(--brand-deep); }
.paper-warn-text { color: var(--warn); }
.paper-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    border-radius: var(--r-pill);
    background: var(--surface-3);
    color: var(--muted);
    font-size: 11.5px;
    font-weight: 700;
    white-space: nowrap;
}
.paper-status-active { background: var(--success-bg); color: var(--success); }
.paper-status-expired { background: var(--warn-bg); color: var(--warn); }
.paper-status-closed { background: var(--surface-3); color: var(--muted); }
.paper-steps { margin: 0 0 12px; padding-left: 20px; color: var(--text); font-size: 13px; line-height: 1.9; }
.paper-steps li { margin-bottom: 5px; }
.paper-steps strong { color: var(--ink); }
.paper-help-panel { margin-top: 18px; }

/* =========================================================
   25 响应式 · 平板 / 投影（≤1024）
   ---------------------------------------------------------
   1024×768 是教室投影主力尺寸：正文 ≥15px、导航可横滑、
   表格可横向滚动并带渐隐提示、后台侧栏堆叠。
   ========================================================= */

@media (max-width: 1180px) {
    .admin-page .split-layout { grid-template-columns: minmax(0, 1fr); }
    .admin-page .split-side { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
    .player-timer-rail { width: 212px; flex-basis: 212px; }
    .split-layout { grid-template-columns: minmax(0, 1fr) 312px; }
}

@media (max-width: 1024px) {
    .container { padding: 0 20px; }
    .container-fluid { padding: 0 20px; }

    /* 顶栏：导航横滑，不再整块隐藏 */
    .topbar-inner { min-height: 60px; gap: 10px; }
    .topnav { margin-left: 4px; gap: 0; }
    .topnav a { display: inline-flex; align-items: center; min-height: 40px; padding: 7px 10px; font-size: 13.5px; }
    .user-meta small { display: none; }

    /* 投影下正文 ≥15px（紧凑辅助文字维持 12px） */
    main p,
    .page-desc,
    .section-sub { font-size: 15px; }
    main td,
    main li { font-size: 14.5px; }
    .player-timer p,
    .notes-tip,
    .share-foot-note p,
    .paper-mobile-privacy { font-size: 12px; }

    /* 首页 hero：精简单行，标题 + 说明 + 操作/统计 + 授课信息 */
    .hero { padding-bottom: 28px; }
    .hero-nav { flex-wrap: wrap; row-gap: 8px; }
    .hero-nav .topnav { order: 3; width: 100%; margin-left: 0; padding: 2px 0; }
    .hero-user { margin-left: auto; }
    .hero-main { padding: 16px 0 2px; }
    .hero-center h1 { font-size: clamp(22px, 2.6vw, 30px); }
    .hero-actions { gap: 16px; }
    .hero-stats { gap: 14px; }

    /* 分区与卡片 */
    .section { padding-top: 34px; }
    .subject-grid { grid-template-columns: repeat(auto-fill, minmax(238px, 1fr)); gap: 16px; }
    .lesson-grid { grid-template-columns: repeat(auto-fill, minmax(244px, 1fr)); gap: 16px; }
    .poster-grid { grid-template-columns: repeat(auto-fill, minmax(184px, 1fr)); gap: 14px; }
    .quick-grid { gap: 12px; }
    .empty-state { padding: 40px 20px; }

    /* 页面标题 */
    .page-head { padding: 28px 0 18px; gap: 24px; }
    .page-head-main h1 { font-size: 27px; }
    .page-head.feature { margin-top: 16px; padding: 22px 24px; }
    .page-head.feature h1 { font-size: 28px; }
    .page-head.feature .page-head-cover { width: 236px; height: 140px; }
    .page-head-cover { width: 210px; height: 126px; }
    .page-head-actions { justify-content: flex-start; }

    /* 信息区块：两栏变单栏；侧栏改两列网格 */
    .split-layout { grid-template-columns: minmax(0, 1fr); }
    .split-side { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
    .panel.sticky { position: static; }
    .stat-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }

    /* 点名：控制台堆叠 */
    .roster-stage { grid-template-columns: minmax(0, 1fr); }
    .roster-console { position: static; }

    /* 管理后台：侧栏收起，顶部页签常驻 */
    .admin-shell { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 16px 0 8px; }
    .admin-nav { display: none; }
    .admin-tabs {
        display: flex;
        position: sticky;
        top: 60px;
        z-index: 40;
        padding: 8px 0 10px;
        background: var(--bg);
    }
    .admin-page .page-head { padding-top: 14px; }
    .admin-page .container { max-width: none; }

    /* 登录页：上下堆叠 */
    .login-wrap { grid-template-columns: 1fr; min-height: 0; padding: 26px 20px 40px; }
    .login-side { border-radius: var(--r-2xl) var(--r-2xl) 0 0; padding: 28px 30px; }
    .login-card { border-radius: 0 0 var(--r-2xl) var(--r-2xl); padding: 32px 30px; }
    .login-side h1 { font-size: 25px; }
    .login-points { display: none; }
    .login-badges { margin-top: 16px; }
    .login-deco { display: none; }
    .login-card-head h2 { font-size: 23px; }

    /* 播放页：压缩三段式头部，舞台优先 */
    .play-page .crumb-bar { display: none; }
    .play-page .container-fluid { padding: 0 14px; }
    .player-shell { margin: 10px 0 20px; }
    .player-head { align-items: flex-start; padding: 10px 14px; gap: 10px; }
    .player-title-text h1 { font-size: 16.5px; }
    .player-head-side { width: 100%; justify-content: flex-start; gap: 8px; }
    .player-tools { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; padding-bottom: 2px; scrollbar-width: thin; }
    .player-tool-group { flex: 0 0 auto; }
    .player-tool-sep { flex: 0 0 auto; }
    .player-body { flex-wrap: wrap; }
    .player-stage {
        order: 1;
        width: 100%;
        flex-basis: 100%;
        height: min(54vh, 540px);
        min-height: 320px;
    }
    .player-timer-rail {
        order: 0;
        width: 100%;
        flex-basis: 100%;
        padding: 10px 14px;
        border-left: 0;
        border-bottom: 1px solid var(--line);
    }
    .player-timer-rail { display: block; }
    .player-timer {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 8px 10px;
        width: 100%;
        max-width: none;
    }
    .player-timer .timer-head { flex: 0 0 auto; min-width: 120px; }
    .player-timer .timer-display { font-size: 21px; }
    .player-timer .timer-modes { margin: 0; }
    .player-timer .timer-presets { flex: 1 1 auto; margin: 0; }
    .player-timer .timer-actions { margin: 0; }
    .player-timer .timer-help { flex: 1 1 100%; margin: 0; }
    .notes-panel { order: 2; width: 100%; border-left: 0; border-top: 1px solid var(--line); }
    .side-drawer { width: min(100%, 320px); }
    .material-grid { grid-template-columns: 1fr 1fr; }

    /* 打印/投影可读性：数据表格字号上调 */
    .table { font-size: 14px; }
    .table thead th { font-size: 12px; }
    .paper-task-table,
    .admin-tt .timetable { min-width: 760px; }
}

/* =========================================================
   26 响应式 · 手机（≤720）
   ========================================================= */

@media (max-width: 720px) {
    body { font-size: 15px; }
    h1 { font-size: 24px; }
    h2 { font-size: 19px; }
    .container { padding: 0 16px; }
    .container-fluid { padding: 0 14px; }

    /* 顶栏：触控目标 ≥40px，用户信息精简 */
    .topbar-inner { min-height: 56px; gap: 8px; }
    .brand { gap: 8px; }
    .brand-logo,
    .brand-mark { width: 34px; height: 34px; border-radius: 10px; font-size: 16px; }
    .brand-text strong { font-size: 13.5px; }
    .brand-text small { font-size: 10.5px; letter-spacing: .02em; }
    .user-meta { display: none; }
    .user-chip { padding: 2px; }
    .avatar { width: 32px; height: 32px; font-size: 12.5px; }
    .userbox .btn { min-height: 40px; padding: 6px 10px; font-size: 12px; }
    .brand { min-height: 40px; }
    .user-chip { min-height: 40px; }
    .topnav a { display: inline-flex; align-items: center; min-height: 40px; padding: 7px 9px; font-size: 13px; }

    .crumb-inner { min-height: 42px; gap: 8px; }
    .crumbs { font-size: 12px; }
    .crumb-actions .btn { min-height: 40px; padding: 6px 10px; font-size: 12px; }

    /* Hero */
    .hero { padding-bottom: 22px; }
    .hero-nav { padding: 12px 0 4px; gap: 10px; }
    .hero-main { padding: 14px 0 2px; }
    .hero-center h1 { font-size: 21px; line-height: 1.34; letter-spacing: -.02em; }
    .hero-sub { margin-bottom: 14px; font-size: 13.5px; line-height: 1.6; }
    .hero-actions { gap: 12px; }
    .hero-cta .btn-hero,
    .btn-hero-ghost { min-height: 40px; padding: 8px 14px; font-size: 13px; }
    .hero-stats { gap: 14px; }
    .hero-stats strong { font-size: 17px; }
    .hero-stats span { font-size: 11.5px; }
    .hero-meta { margin-top: 10px; font-size: 12px; }

    /* 公告条：手机换行重排，避免挤压 */
    .notice-wrap { margin-top: -18px; }
    .notice-bar { flex-wrap: wrap; gap: 6px 10px; padding: 11px 14px; }
    .notice-tag { order: 1; }
    .notice-meta { order: 2; flex: 1 1 auto; font-size: 11.5px; }
    .notice-title { order: 3; flex: 1 1 100%; font-size: 14px; line-height: 1.5; }
    .notice-arrow { order: 4; margin-left: auto; }

    /* 分区与卡片 */
    .section { padding-top: 26px; }
    .section-head { gap: 10px; margin-bottom: 16px; }
    .section-head h2 { font-size: 20px; }
    .section-sub { font-size: 12.5px; }
    .section-actions { margin-left: auto; }
    .subject-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .subject-body { padding: 12px 14px 12px; }
    .subject-body h3 { font-size: 16px; }
    .subject-intro {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        min-height: 0;
        font-size: 12px;
    }
    .subject-foot { padding-top: 8px; font-size: 11px; }
    .cover-letter { font-size: 36px; }
    .subject-badge { right: 8px; bottom: 8px; padding: 2px 8px; font-size: 10.5px; }
    .quick-grid { grid-template-columns: 1fr; }
    .quick-card { padding: 14px 16px; }
    .empty-state { padding: 32px 16px; }
    .empty-art { width: 56px; height: 56px; font-size: 24px; }
    .empty-state h3 { font-size: 17px; }

    /* 页面标题 */
    .page-head { flex-direction: column; align-items: flex-start; gap: 14px; padding: 22px 0 14px; }
    .page-head-main { max-width: none; }
    .page-head-main h1 { font-size: 23px; }
    .page-head.compact { padding: 18px 0 12px; }
    .page-desc { font-size: 13.5px; }
    .page-head-cover { width: 100%; height: 132px; }
    .page-head.feature { padding: 18px; border-radius: var(--r-xl); }
    .page-head.feature h1 { font-size: 23px; }
    .page-head.feature .page-head-cover { width: 100%; height: 140px; }
    .page-head-actions { width: 100%; justify-content: flex-start; }
    .page-head-actions .btn { flex: 1 1 auto; min-height: 40px; }

    /* 工具条 */
    .toolbar { flex-direction: column; align-items: stretch; gap: 10px; }
    .sort-tabs { width: 100%; }
    .sort-tab { flex: 1; min-height: 38px; display: inline-flex; align-items: center; justify-content: center; }
    .search-box { width: 100%; }
    .search-box input[type="search"],
    .search-box input[type="text"] { flex: 1 1 140px; width: auto; }
    .wall-tip { font-size: 12.5px; }

    /* 课时 / 海报 */
    .lesson-grid { grid-template-columns: 1fr; gap: 14px; }
    .lesson-body { padding: 12px 14px; }
    .lesson-body h3 { font-size: 15.5px; }
    .poster-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .poster-body { padding: 10px 12px 12px; }
    .poster-body h3 { font-size: 13px; }
    .poster-glyph { font-size: 38px; }
    .poster-play { width: 34px; height: 34px; right: 9px; bottom: 9px; }
    .poster-type-big { left: 10px; top: 9px; font-size: 10.5px; }
    .poster-type-tag { left: 9px; bottom: 9px; font-size: 10.5px; }
    .lesson-hero { flex-direction: column; gap: 14px; padding: 14px; margin: 16px 0 16px; }
    .lesson-hero-cover { width: 100%; }
    .lesson-hero-body { padding: 0; }
    .lesson-hero-body h1 { font-size: 22px; }
    .lesson-hero-meta { gap: 16px; margin-bottom: 12px; }
    .lesson-hero-actions .btn { min-height: 40px; }
    .inline-actions { margin: 18px 0 28px; }
    .inline-actions .btn { flex: 1 1 auto; }

    /* 面板 / 统计 / 作业 */
    .panel { padding: 14px; }
    .panel-head h2 { font-size: 16px; }
    .split-side,
    .admin-page .split-side { grid-template-columns: 1fr; }
    .stat-row { grid-template-columns: 1fr 1fr; gap: 10px; }
    .stat-card { padding: 12px 14px; }
    .stat-card strong { font-size: 22px; }
    .stat-icon { display: none; }
    .hw-card { padding: 13px 14px; }
    .hw-time { font-size: 10.5px; }
    .hw-stats { gap: 10px; }
    .hw-content { font-size: 13.5px; }
    .answer-pdf { height: 240px; }
    .sub-list { max-height: none; }

    /* 表格：横向滚动 + 渐隐提示，行高适配触控 */
    .table-wrap { border: 1px solid var(--line); }
    .table { min-width: 560px; font-size: 13.5px; }
    .table th,
    .table td { padding: 9px 10px; }
    .mini-link { display: inline-flex; align-items: center; min-height: 40px; padding: 0 6px; }
    .table .thumb { width: 46px; height: 30px; }

    /* 表单 */
    .form-row,
    .form-grid,
    .feature-grid { grid-template-columns: 1fr; }
    .field input,
    .field select,
    .field textarea,
    .inline-form input,
    .inline-form select { min-height: 42px; font-size: 15px; }
    .btn { min-height: 40px; }
    .btn-sm { min-height: 40px; }
    .player-back { min-height: 40px; }
    .switch { min-height: 40px; }
    .switch input { width: 22px; height: 22px; }
    .icon-btn { min-width: 40px; min-height: 40px; }

    /* 管理后台 */
    .admin-tabs { top: 56px; }
    .admin-page .page-head { padding-top: 12px; }
    .admin-tab { min-height: 38px; }
    .mini-grid { grid-template-columns: 1fr 1fr; }
    .theme-grid { grid-template-columns: 1fr 1fr; }
    .link-box { flex-direction: column; align-items: stretch; }
    .link-box .btn { width: 100%; }
    .quick-list a { min-height: 44px; }

    /* 播放页 */
    .play-page .container-fluid { padding: 0 10px; }
    .player-shell { border-radius: 14px; margin: 8px 0 16px; }
    .player-head { padding: 10px; gap: 8px; }
    .player-title { flex-wrap: wrap; gap: 8px; width: 100%; }
    .player-title-text h1 { font-size: 16px; white-space: normal; }
    .player-title-text p { font-size: 11.5px; }
    .version-switch { width: 100%; }
    .version-switch select { flex: 1; max-width: none; }
    .player-tools { width: 100%; overflow-x: auto; flex-wrap: nowrap; }
    .player-tool-group .btn { min-height: 40px; padding: 6px 9px; font-size: 12px; }
    .player-stage { height: min(46vh, 420px); min-height: 240px; }
    .player-timer-rail { padding: 10px; }
    .player-timer { max-width: none; }
    .player-timer .timer-display { font-size: 22px; }
    .player-foot { padding: 8px 10px; font-size: 11px; gap: 6px; }
    .player-shortcuts { display: none; }
    .notes-panel { width: 100%; }
    .notes-body { padding: 12px; font-size: 13px; }
    .pdf-toolbar { left: 8px; right: 8px; top: 8px; transform: none; justify-content: center; }
    .annotation-toolbar { left: 8px; right: 8px; bottom: 8px; max-width: none; gap: 4px; }
    .annotation-toolbar button { min-height: 34px; padding: 6px 8px; font-size: 11px; }
    .annot-hint { display: none; }
    .annot-office-hint { left: 8px; right: 8px; bottom: 46px; font-size: 11px; }
    .mark-panel { right: 8px; bottom: 18px; }
    .side-drawer { width: 100%; }

    /* 课表 */
    .schedule-toolbar { flex-direction: column; align-items: stretch; gap: 10px; padding: 12px; }
    .inline-form { width: 100%; }
    .compact-field { width: 100%; justify-content: space-between; white-space: normal; }
    .compact-field select { flex: 1 1 auto; min-width: 0; }
    .week-nav { width: 100%; justify-content: space-between; }
    .week-label { font-size: 12px; }
    .schedule-side { width: 100%; margin-left: 0; justify-content: flex-start; gap: 8px; }
    .timetable { min-width: 720px; }
    .timetable td { height: 70px; }
    .tt-period { width: 76px; }

    /* 点名 */
    .classroom { padding: 12px; border-radius: var(--r-lg); min-height: 0; }
    .classroom-top { flex-direction: column; gap: 14px; }
    .blackboard { padding: 14px 16px; border-width: 7px; min-height: 104px; }
    .blackboard p { font-size: 17px; }
    .teacher-area { align-self: flex-end; width: 120px; }
    .teacher-bubble { right: auto; left: 0; top: -10px; }
    .student-desks { grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 8px; margin-top: 14px; }
    .student { padding: 8px 4px 6px; }
    .student-face { width: 34px; height: 34px; }
    .roster-console { padding: 14px; }
    .roster-controls .btn { min-height: 44px; }
    .picked-name { font-size: 28px; min-height: 38px; }

    /* 登录 */
    .login-wrap { padding: 16px 14px 28px; }
    .login-side { padding: 22px 20px; border-radius: var(--r-lg) var(--r-lg) 0 0; }
    .login-side::before { background-size: 40px 40px; }
    .login-card { padding: 24px 20px; border-radius: 0 0 var(--r-lg) var(--r-lg); }
    .login-side h1 { font-size: 21px; }
    .login-desc { font-size: 13px; }
    .login-brand { margin-bottom: 18px; }
    .login-badge { font-size: 11px; padding: 5px 10px; }
    .login-card-head { margin-bottom: 18px; }
    .login-hint { margin-top: 18px; }
    .login-card .btn-lg { min-height: 46px; }

    /* 错误页 / 页脚 */
    .error-wrap { padding: 34px 20px; }
    .error-code { font-size: 64px; }
    .error-ring { width: 124px; height: 124px; }
    .site-footer { padding: 26px 0 22px; }
    .footer-inner { flex-direction: column; gap: 16px; }
    .footer-legal { text-align: left; }
}

@media (max-width: 400px) {
    .poster-grid { grid-template-columns: 1fr; }
    .subject-grid { grid-template-columns: 1fr; }
    .stat-row { grid-template-columns: 1fr; }
    .hero-effects .blob-1 { display: none; }
}

/* =========================================================
   27 减少动态偏好 / 高对比 / 旧浏览器回退
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *,
    *::before,
    *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }
    .blob,
    .grid-lines { display: none; }
    .error-ring { animation: none; }
    .student.is-calling { animation: none; }
    .subject-card:hover,
    .lesson-card:hover,
    .poster:hover,
    .quick-card:hover,
    .hw-card:hover,
    .student.is-picked { transform: none; }
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .topbar { background: #fff; }
    .hero-teacher { background: rgba(255, 255, 255, .16); }
    .pdf-toolbar { background: rgba(9, 15, 28, .92); }
    .annotation-toolbar { background: rgba(9, 15, 28, .94); }
}

@media (forced-colors: active) {
    .btn,
    .panel,
    .stat-card,
    .table,
    .tag,
    .state { border: 1px solid CanvasText; }
    .topnav a.active { outline: 1px solid CanvasText; }
}

/* =========================================================
   28 打印（课表 / 作业 / 学情）：去导航、去阴影、黑白可读
   ========================================================= */

@media print {
    @page { size: A4 landscape; margin: 10mm; }

    body {
        background: #fff !important;
        color: #111 !important;
        font-size: 11pt;
    }
    body::before,
    body::after { display: none !important; }

    .topbar,
    .crumb-bar,
    .site-footer,
    .admin-nav,
    .admin-tabs,
    .page-head-actions,
    .schedule-toolbar,
    .schedule-toolbar .btn,
    .schedule-toolbar .inline-form,
    .week-nav,
    .schedule-side,
    .print-hint,
    .flash,
    .toast,
    .player-tools,
    .player-head-side,
    .player-back,
    .player-foot,
    .notes-panel,
    .player-timer-rail,
    .side-drawer,
    .annotation-toolbar,
    .annotation-layer,
    .pdf-toolbar,
    .mark-panel,
    .mark-toast,
    .projection-mask,
    .inline-actions,
    .split-side,
    .inline-upload,
    .answer-pdf,
    .empty-art,
    .hero-deco,
    .hero-cta,
    .hero-chips,
    .paper-command,
    .paper-foot-note,
    .paper-modal,
    .paper-lightbox { display: none !important; }

    .hero {
        padding: 0 !important;
        background: #fff !important;
        color: #111 !important;
    }
    .hero::before,
    .hero::after { display: none !important; }
    .hero-center h1,
    .hero-sub,
    .hero-eyebrow,
    .hero-stats strong,
    .hero-stats span,
    .hero-teacher-name,
    .hero-teacher-label,
    .hero-teacher-role,
    .hero-teacher-date,
    .brand-light .brand-text strong,
    .brand-light .brand-text small { color: #111 !important; text-shadow: none !important; }
    .hero-teacher { border: 1px solid #999; background: #fff; }
    .btn-hero,
    .btn-hero-ghost { border: 1px solid #666; color: #111; background: #fff; }
    .notice-bar { box-shadow: none; border: 1px solid #999; }

    a { color: #111 !important; }

    .panel,
    .stat-card,
    .subject-card,
    .lesson-card,
    .poster,
    .hw-card,
    .player-shell,
    .timetable-wrap,
    .table-wrap,
    .error-wrap {
        background: #fff !important;
        border: 1px solid #bbb !important;
        box-shadow: none !important;
        transform: none !important;
    }
    .stat-accent,
    .tt-course,
    .tt-drag { background: #f5f5f5 !important; }

    .container { max-width: none; padding: 0; }
    .admin-shell { display: block; padding: 0; }
    .page-head { padding: 0 0 4mm; flex-direction: row; }
    .page-desc { display: none; }
    .print-head {
        display: flex;
        align-items: baseline;
        justify-content: space-between;
        gap: 6mm;
        margin: 0 0 3mm;
        color: #111;
        font-size: 11pt;
    }
    .print-head strong { font-size: 14pt; }

    .timetable-wrap {
        border: 0 !important;
        overflow: visible !important;
        background: #fff !important;
    }
    .timetable { min-width: 0; page-break-inside: avoid; }
    .timetable th,
    .timetable td { height: 16mm; padding: 3mm 2mm; border: 1px solid #999 !important; font-size: 9pt; }
    .timetable thead th { background: #f2f2f2 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    .timetable td.is-today { background: #fff !important; }
    .timetable thead th.is-today { box-shadow: none !important; background: #e8e8e8 !important; }
    .tt-empty { visibility: hidden; }
    .tt-subject { color: #333 !important; }
    .tt-course { border: 1px solid #999; }

    .table-wrap { overflow: visible !important; border: 0 !important; }
    .table { min-width: 0; font-size: 9.5pt; }
    .table th,
    .table td { border-bottom: 1px solid #999; }
    .table thead th { background: #f2f2f2 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }

    .annotation-dock,
    .player-stage,
    .hero-nav,
    .topnav { display: none !important; }

    .subject-grid,
    .lesson-grid,
    .poster-grid { display: block; }
    .subject-card,
    .lesson-card,
    .poster,
    .hw-card { break-inside: avoid; margin-bottom: 4mm; }
    .poster-cover,
    .lesson-cover,
    .subject-cover { display: none; }
}

/* =========================================================
   29 播放页：非遮挡式「板书批注」工具条（在舞台下方独立成条）
   ---------------------------------------------------------
   批注工具条从舞台内部移出，改为舞台下方的独立工具条，
   不再盖住 PDF / PPT 画面内容；舞台高度与批注坐标保持不变。
   ========================================================= */

.annotation-dock {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 8px 16px 10px;
    border-top: 1px solid var(--line);
    background: var(--surface-2);
}
.player-shell > .annotation-dock > .annotation-toolbar {
    position: static;
    left: auto;
    right: auto;
    bottom: auto;
    max-width: none;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--text);
    box-shadow: none;
}
.player-shell > .annotation-dock .annotation-toolbar button {
    min-height: 32px;
    padding: 4px 10px;
    border: 1px solid var(--line-strong);
    border-radius: var(--r-xs);
    background: #fff;
    color: var(--text);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.player-shell > .annotation-dock .annotation-toolbar button:hover {
    border-color: var(--brand);
    background: var(--brand-soft);
    color: var(--brand-deep);
}
.player-shell > .annotation-dock .annotation-toolbar button.active {
    border-color: var(--ink-900);
    background: var(--ink-900);
    color: #fff;
}
.annot-dock-label {
    margin-right: 2px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    white-space: nowrap;
}
.player-shell > .annotation-dock .annot-office-hint {
    position: static;
    left: auto;
    right: auto;
    bottom: auto;
    margin: 0;
    padding: 7px 10px;
    border: 1px solid var(--warn-line);
    border-radius: var(--r-xs);
    background: var(--warn-bg);
    color: var(--warn);
    font-size: 11.5px;
    line-height: 1.55;
}
.annotation-toolbar[hidden] { display: none !important; }

@media (max-width: 720px) {
    .annotation-dock { padding: 8px 10px 10px; }
    .player-shell > .annotation-dock .annotation-toolbar {
        gap: 5px;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 2px;
    }
    .player-shell > .annotation-dock .annotation-toolbar button { min-height: 40px; padding: 6px 10px; }
    .annot-dock-label { display: none; }
    .player-shell > .annotation-dock .annot-office-hint { font-size: 11px; }
}

/* =========================================================
   30 Hero 标题排版护栏：1024–1920 宽度下不出现单字孤行
   ========================================================= */

.hero-center h1 {
    max-width: 700px;
    min-height: 1px;
    word-break: normal;
    overflow-wrap: break-word;
}
@media (min-width: 1400px) {
    .hero-center h1 { max-width: 760px; }
}
@media (max-width: 1024px) {
    .hero-center h1 { max-width: 620px; }
}
@media (max-width: 720px) {
    .hero-center h1 { max-width: none; }
}

/* =========================================================
   31 封面可读性：图片封面增加底部遮罩，CSS 徽标字号在投影下可读
   ========================================================= */

.subject-cover::after,
.lesson-cover::after,
.poster-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(9, 15, 28, 0) 38%, rgba(9, 15, 28, .30) 74%, rgba(9, 15, 28, .55) 100%);
}
.subject-cover > img,
.lesson-cover > img,
.poster-cover > .poster-thumb { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; }
.poster-cover > .poster-lines { z-index: 1; }
.poster-cover-fallback > .poster-fallback-top,
.poster-cover-fallback > .poster-fallback-name,
.poster-cover-fallback > .poster-fallback-rule { position: relative; z-index: 2; }
.poster-cover-fallback .poster-fallback-name { align-self: stretch; }

.subject-badge,
.lesson-count,
.poster-type-tag {
    font-size: 12px;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: .01em;
}
.subject-badge,
.lesson-count {
    background: rgba(9, 15, 28, .68);
    border: 1px solid rgba(255, 255, 255, .22);
    box-shadow: 0 2px 8px rgba(9, 15, 28, .25);
}
.poster-type-big { font-size: 12px; font-weight: 700; color: #fff; opacity: .92; }
.poster-type-tag { background: rgba(9, 15, 28, .62); border: 1px solid rgba(255, 255, 255, .22); }

/* =========================================================
   32 无封面课件的「类型化封面」：图标 + 名称 + 纹理，替代单字大汉字
   ========================================================= */

.poster-cover-fallback {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    padding: 14px 14px 16px;
    color: #fff;
}
.poster-cover-fallback .poster-fallback-top { display: flex; align-items: center; gap: 8px; }
.poster-fallback-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: var(--r-md);
    background: rgba(255, 255, 255, .18);
    border: 1px solid rgba(255, 255, 255, .34);
    font-size: 20px;
    line-height: 1;
}
.poster-fallback-type {
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .16em;
    color: rgba(255, 255, 255, .92);
}
.poster-fallback-name {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: -.01em;
    text-shadow: 0 2px 10px rgba(0, 0, 0, .28);
    text-align: left;
}
.poster-fallback-rule {
    width: 28px;
    height: 2px;
    border-radius: 2px;
    background: rgba(255, 255, 255, .72);
}
.poster-cover-fallback .poster-glyph { display: none; }

/* =========================================================
   33 交互反馈增强：hover / focus / active 更明确，但保持克制
   ========================================================= */

.subject-card:focus-visible,
.lesson-card:focus-visible,
.poster:focus-within,
.quick-card:focus-visible,
.hw-card:focus-visible,
.mini-card:focus-visible,
.notice-bar:focus-visible,
.pick-item:focus-visible,
.review-card:focus-visible {
    outline: 3px solid var(--brand);
    outline-offset: 2px;
    border-radius: var(--r-md);
}
.subject-card:focus-visible,
.lesson-card:focus-visible,
.poster:focus-within {
    border-color: var(--brand) !important;
    box-shadow: var(--shadow-md) !important;
}
.btn:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.btn-primary:focus-visible { outline: 3px solid var(--ink-900); outline-offset: 2px; }
.topnav a:focus-visible { outline-offset: -2px; }
.table tbody tr:focus-within { background: var(--surface-2); }
a:hover .file-name,
a:hover .subject-go { color: var(--brand-deep); }
.quick-card:hover .quick-icon { border-color: var(--brand); background: var(--brand-soft); }

/* 后台「最近操作」表格：操作人列不再竖排断字（配合横向滚动） */
.table-logs { min-width: 620px; }
.table-logs .cell-time { width: 148px; white-space: nowrap; }
.table-logs .cell-user { width: 108px; white-space: nowrap; }
.table-logs .cell-action { width: 92px; white-space: nowrap; }
.table-logs .cell-detail { min-width: 200px; }


/* 科目页头部：封面 + 操作按钮纵向组合 */
.page-head-side { display: flex; flex-direction: column; align-items: flex-end; gap: 14px; flex: 0 0 auto; }
.page-head-side .page-head-actions { justify-content: flex-end; }
.page-head.feature .page-head-side { max-width: 100%; }

/* 操作日志表格：角色/操作人短列不换行 */
.log-table { min-width: 880px; }
.log-table td:nth-child(1),
.log-table td:nth-child(2),
.log-table td:nth-child(3),
.log-table td:nth-child(4),
.log-table td:nth-child(6) { white-space: nowrap; }
.log-table td:nth-child(5) { min-width: 220px; }

@media (max-width: 1024px) {
    .page-head-side { align-items: flex-start; }
    .page-head-side .page-head-actions { justify-content: flex-start; }
}
@media (max-width: 720px) {
    .page-head-side { width: 100%; align-items: stretch; }
    .page-head.feature .page-head-cover { width: 100%; }
}

.hero-logo-caption { white-space: nowrap; letter-spacing: .16em; font-size: 9px; }

/* 试卷采集后台：任务表优先占满宽度，表单移到下方双列 */
.paper-admin-page .split-layout { grid-template-columns: minmax(0, 1fr); }
.paper-admin-page .split-side { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.paper-admin-page .paper-task-table { min-width: 840px; }
@media (max-width: 1024px) {
    .paper-admin-page .split-side { grid-template-columns: 1fr; }
}

/* 批注提示在浅色工具条上的对比度 */
.player-shell > .annotation-dock .annot-hint { color: var(--muted); font-size: 11px; }

/* 试卷照片完整展示，避免 4:3 裁掉卷面 */
.paper-card-open img { object-fit: contain; background: #f1f5f9; }

/* 封面左上角可读标题片：替代封面图里过小、半透明的烘焙文字 */
.cover-chip {
    position: absolute;
    left: 12px;
    top: 12px;
    z-index: 5;
    max-width: calc(100% - 24px);
    padding: 3px 9px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 6px;
    background: rgba(9, 15, 28, .68);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.5;
    white-space: nowrap;
    text-overflow: ellipsis;
    box-shadow: 0 2px 8px rgba(9, 15, 28, .22);
}
.lesson-hero-cover .cover-chip { left: 14px; top: 14px; font-size: 12.5px; }
@media (max-width: 720px) {
    .cover-chip { left: 8px; top: 8px; max-width: calc(100% - 16px); padding: 2px 7px; font-size: 10.5px; }
}
/* 图片型海报封面：遮罩更轻，保留卷面/图片可读性 */
.poster-cover:not(.poster-cover-fallback)::after {
    background: linear-gradient(180deg, rgba(9, 15, 28, 0) 58%, rgba(9, 15, 28, .24) 100%);
}
