/* 外教课务管理系统 · 全局样式
 *
 * ★ 2026-10-03 甲方裁决：三页统一【白色主题】，与老师端同一套色板。
 *   甲方原话：「管理员的界面改成跟老师的界面要都是白色，黑色太难看了。」
 *       追加：「家长页 / 点评页……也改白。」
 *
 *   本文件被 3 页共用：admin.html（管理端）· report.html（家长页）· review.html（点评页）
 *   → 改这一处，三页同时生效。
 *
 *   ⚠️ 下面这几个变量名【不许改】：三页的 <style> 里都在用 var(--panel) / var(--line) /
 *      var(--dim) / var(--fg) / var(--bg)。改名 = 三页全掉色。
 *   ⚠️ 老师端 teacher.html 不用本文件（它自己带一套同色板的内联样式），不受影响。
 */

:root {
  --bg:     #F7F6F2;   /* 页面底色：暖白（老师端 --soft 同值） */
  --panel:  #FFFFFF;   /* 卡片 / 顶栏：纯白 */
  --line:   #E3E1D9;   /* 描边：浅米灰（老师端 --line 同值） */
  --fg:     #2C2C2A;   /* 正文：近黑（老师端 --ink 同值） */
  --dim:    #8A8880;   /* 次要文字：暖灰（老师端 .muted 同值） */
  --brand:  #0F6E56;   /* 品牌色：墨绿（老师端 --brand 同值） */
  --soft:   #F0EFE9;   /* 浅填充：hover / 标签底 */
  --danger: #C0392B;   /* 危险动作 */
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-text-size-adjust: 100%;
}

#app { display: flex; flex-direction: column; height: 100%; }

#bar {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}

.tag {
  font-size: 13px; padding: 2px 10px; border-radius: 99px;
  background: var(--soft); color: var(--dim);
}

.grow { flex: 1; }

.ver { font-size: 12px; color: var(--dim); font-variant-numeric: tabular-nums; }

/* ── 视频房间相关（★ 房间页已随视频层退役，保留仅为兼容旧页面）── */
#stage {
  flex: 1; min-height: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 10px;
}

.tile { position: relative; background: #000; border-radius: 12px; overflow: hidden; }
.tile video { width: 100%; height: 100%; object-fit: cover; display: block; }

.label {
  position: absolute; left: 10px; bottom: 8px;
  font-size: 12px; color: #fff;
  background: rgba(0, 0, 0, .45);
  padding: 2px 8px; border-radius: 99px;
}

#controls {
  display: flex; gap: 10px; justify-content: center;
  padding: 12px;
  background: var(--panel);
  border-top: 1px solid var(--line);
}

/* ── 按钮 ── */
/* ★ 2026-10-05 第十三轮（规格 §F13.37⑥ / AK-328）：甲方"部分按钮太大、文字太小，大大小小不协调"。
   → ① 去掉 `min-width: 110px`（"撤销""停用"这类短按钮被撑成一个大空块）
      ② 字号 14 → 14.5px（不那么"文字太小"）
      ③ 内边距略收（10/16 → 9/15），整体更紧凑、与文字比例协调 */
.btn {
  min-width: 0; padding: 9px 15px;
  border-radius: 8px; border: 1px solid var(--brand);
  background: var(--brand); color: #fff;
  font-size: 14.5px; line-height: 1.4; cursor: pointer;
}
/* 表格里的小按钮（撤销 / 停用 / 恢复 …）—— 单独一档，不跟主按钮一样大 */
.btn-sm { min-width: 0; padding: 5px 10px; font-size: 13px; border-radius: 6px; }
.btn:hover { filter: brightness(1.08); }
.btn:disabled { opacity: .5; cursor: not-allowed; filter: none; }

.btn.ghost,
.btn.secondary {
  background: var(--panel); color: var(--brand); border-color: var(--line);
}
.btn.ghost:hover,
.btn.secondary:hover { background: var(--soft); filter: none; }

.btn.danger { background: var(--danger); border-color: var(--danger); color: #fff; }

/* ── 遮罩 ── */
.overlay {
  position: fixed; inset: 0;
  background: rgba(247, 246, 242, .94);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.overlay.hidden { display: none; }

.msg {
  max-width: 560px; text-align: center;
  font-size: 15px; line-height: 1.8;
  white-space: pre-wrap;
}

@media (max-width: 720px) {
  #stage { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
  .btn { min-width: 0; flex: 1; font-size: 13px; }
}


/* ★ 2026-10-02 补（规格 §5-F6「待填清单 + 红点」）：红点角标 */
.dot {
  display: inline-block; width: 9px; height: 9px; border-radius: 50%;
  background: #D33; margin-left: 6px; vertical-align: middle;
  box-shadow: 0 0 0 2px rgba(221, 51, 51, .18);
}
.hide { display: none !important; }


/* ★ AK-209（2026-10-04 甲方）：课表网格样式 —— 管理员端「老师课表 / 学生课表」复用老师端同款。
   原来这两块只是普通列表，甲方要求"复制复用老师界面的课程表那个板块"。 */
table.week { border-collapse:collapse; width:100%; font-size:13px; margin-top:10px; table-layout:fixed; }
table.week th, table.week td { border:1px solid var(--line); padding:5px 6px; vertical-align:top; }
table.week th { background:var(--soft); font-weight:600; text-align:center; }
table.week th .d { display:block; font-weight:400; color:var(--dim); font-size:12px; }
table.week td.slot { text-align:center; color:var(--dim); white-space:nowrap; width:62px; background:var(--soft); }
table.week td.cell { font-size:12px; line-height:1.5; }
table.week td.cell .k { color:var(--dim); font-size:11px; }
@media (max-width:900px) { table.week { font-size:11px; } }

/* ══════════════════════════════════════════════════════════════════════
   ★ 2026-10-04（甲方第五轮第 2 条）：全局尺寸统一 —— 更紧凑、更整齐
   🔴 硬约束（甲方原话）：「**不要删除或调整功能，只是调整大小和位置**」
      → 本节**只动尺寸/间距/字号**，**不动任何功能与板块顺序**。
   ⚠️ `table.week`（课表）有它自己的样式，本节**不碰**。
   ══════════════════════════════════════════════════════════════════════ */

/* 行内小按钮（表格「操作」列那类）—— 比主按钮小一号 */
.btn-sm {
  min-width: 0;
  padding: 3px 9px;
  font-size: 12px;
  border-radius: 6px;
  line-height: 1.5;
}

/* 普通数据表格：字号与内边距收紧一档，行更紧凑 */
.wrap table:not(.week) {
  font-size: 13px;
  border-collapse: collapse;
}
.wrap table:not(.week) th,
.wrap table:not(.week) td {
  padding: 6px 8px;
  vertical-align: middle;
}
.wrap table:not(.week) th {
  font-size: 12.5px;
  font-weight: 600;
  background: var(--soft);
  white-space: nowrap;
}
/* 表格里的输入框跟着小一档 */
.wrap table:not(.week) input[type="text"] {
  padding: 5px 8px;
  font-size: 13px;
}

/* 板块之间的间距略收紧（只改间距，不动顺序） */
.wrap .card { margin-bottom: 14px; }
.wrap .card > h2 { margin-bottom: 6px; }
.wrap .acts { gap: 6px; }

/* ══════════════════════════════════════════════════════════════════════
   ★ 2026-10-10（v4.54）域名 ICP 备案通过 → 网站底部**公示备案号**
     依据：工信部要求网站底部标注备案号，并链接到 beian.miit.gov.cn
     备案：津ICP备2026014472号（审核通过 2026-10-10）
   ⚠️ teacher.html / review-token.html **不引本文件**（自带一套内联样式），
      这两页的 .site-foot 规则内联写在各自 <style> 里 —— **改样式时两处一起改**。
   ══════════════════════════════════════════════════════════════════════ */
.site-foot {
  margin-top: 20px;
  padding: 14px 12px 6px;
  text-align: center;
  font-size: 12px;
  line-height: 1.9;
  color: var(--dim);
}
.site-foot a { color: var(--dim); text-decoration: none; }
.site-foot a:hover { text-decoration: underline; }
