/* ==========================================================
   课件中心 course.css
   沿用全站设计系统：品牌橙 #FF7722
   ========================================================== */
:root{
  --brand:      #FF7722;
  --brand-dark: #E85F0D;
  --brand-soft: #FFF3EC;
  --ink-1: #1A1D21;
  --ink-2: #5A6472;
  --ink-3: #98A2B3;
  --bg-soft: #F6F8FB;
  --line:  #E8ECF1;
  --r-md: 12px;
  --r-lg: 16px;
  --sh-2: 0 4px 12px rgba(16,24,40,.06);
  --sh-3: 0 12px 32px rgba(16,24,40,.10);
  --maxw: 1180px;
}
*{ box-sizing: border-box; }
body{
  margin:0;
  font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",Arial,sans-serif;
  font-size:15px; line-height:1.65; color:var(--ink-1); background:#fff;
  -webkit-font-smoothing:antialiased;
}
a{ color:inherit; text-decoration:none; }
img{ display:block; max-width:100%; }
.wrap{ width:100%; max-width:var(--maxw); margin:0 auto; padding:0 24px; }

/* ---------- 顶栏 ---------- */
.cw-nav{
  position:sticky; top:0; z-index:50;
  background:rgba(255,255,255,.92); backdrop-filter:blur(10px);
  border-bottom:1px solid var(--line);
}
.cw-nav .wrap{ display:flex; align-items:center; gap:16px; height:64px; }
.cw-brand{ display:flex; align-items:center; gap:8px; font-weight:700; font-size:18px; }
.cw-brand img{ height:30px; width:auto; }
.cw-nav .sp{ flex:1; }
.cw-links{ display:flex; gap:18px; color:var(--ink-2); font-size:14px; }
.cw-links a:hover{ color:var(--brand); }

.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:6px;
  border:0; border-radius:999px; cursor:pointer; font-size:14px; font-weight:600;
  padding:9px 18px; transition:.18s; font-family:inherit;
}
.btn-primary{ background:var(--brand); color:#fff; }
.btn-primary:hover{ background:var(--brand-dark); }
.btn-ghost{ background:#fff; color:var(--ink-1); border:1px solid var(--line); }
.btn-ghost:hover{ border-color:var(--brand); color:var(--brand); }
.btn-sm{ padding:7px 14px; font-size:13px; }

/* ---------- 课程列表 ---------- */
.cw-head{ padding:44px 0 22px; }
.cw-head h1{ margin:0 0 8px; font-size:28px; letter-spacing:-.3px; }
.cw-head p{ margin:0; color:var(--ink-2); }
.cw-tip{
  margin-top:16px; padding:10px 14px; border-radius:var(--r-md);
  background:var(--brand-soft); color:var(--brand-dark); font-size:13.5px; display:inline-block;
}
.cw-grid{
  display:grid; grid-template-columns:repeat(auto-fill,minmax(260px,1fr));
  gap:20px; padding:8px 0 60px;
}
.cw-card{
  background:#fff; border:1px solid var(--line); border-radius:var(--r-lg);
  overflow:hidden; box-shadow:var(--sh-2); transition:.2s; display:flex; flex-direction:column;
}
.cw-card:hover{ transform:translateY(-4px); box-shadow:var(--sh-3); border-color:var(--brand); }
.cw-card .m{ height:150px; background:var(--bg-soft); overflow:hidden; }
.cw-card .m img{ width:100%; height:100%; object-fit:cover; }
.cw-card .b{ padding:16px 18px 18px; flex:1; display:flex; flex-direction:column; }
.cw-card h3{ margin:0 0 6px; font-size:17px; }
.cw-card p{ margin:0 0 14px; color:var(--ink-2); font-size:13.5px; flex:1; }
.cw-card .f{ display:flex; align-items:center; justify-content:space-between; }
.cw-count{ font-size:13px; color:var(--ink-3); }

/* ---------- 课时列表 ---------- */
.cw-list{ padding:8px 0 60px; display:grid; gap:10px; }
.cw-item{
  display:flex; align-items:center; gap:14px; padding:16px 18px;
  border:1px solid var(--line); border-radius:var(--r-md); background:#fff; transition:.18s;
}
.cw-item:hover{ border-color:var(--brand); box-shadow:var(--sh-2); }
.cw-no{
  width:38px; height:38px; flex:0 0 38px; border-radius:10px;
  background:var(--brand-soft); color:var(--brand-dark);
  display:flex; align-items:center; justify-content:center; font-weight:700; font-size:14px;
}
.cw-item .t{ flex:1; }
.cw-item .t h4{ margin:0 0 2px; font-size:15.5px; }
.cw-item .t span{ font-size:12.5px; color:var(--ink-3); }
.cw-lock{ color:var(--ink-3); font-size:13px; }

/* ---------- 上课模式 / 全屏（整页全屏，工具条常驻） ---------- */
body.cw-class .cw-nav,
body.cw-class .cw-foot,
body.cw-full .cw-nav,
body.cw-full .cw-foot { display:none !important; }
/* 上课模式：隐藏文件标签条，舞台占满整屏 */
body.cw-class .cw-filebar { display:none !important; }
body.cw-class .cw-stage{
  max-width:none; margin:0; border:0; border-radius:0; box-shadow:none;
  min-height:calc(100vh - 59px);
}
body.cw-class .cw-bar,
body.cw-full .cw-bar { position:sticky; top:0; z-index:99; box-shadow:0 2px 12px rgba(0,0,0,.10); }
body.cw-class .cw-bar .tbtn,
body.cw-full .cw-bar .tbtn { height:38px; font-size:14px; }
body.cw-class .cw-stage { min-height:calc(100vh - 120px); }
body.cw-full .cw-stage { max-width:1400px; margin:16px auto 40px; min-height:calc(100vh - 130px); }
body.cw-full #paper { font-size:20px; line-height:1.95; padding:40px 6vw; }
body.cw-class #tClass { background:var(--brand); color:#fff; border-color:var(--brand); }
body.cw-full #tFull { background:var(--brand); color:#fff; border-color:var(--brand); }
html:fullscreen, html:fullscreen body { background:#fff; }
.dl-mini{
  position:absolute; right:14px; bottom:10px; z-index:5;
  font-size:12px; color:#667085; background:rgba(255,255,255,.92);
  border:1px solid var(--line); border-radius:999px; padding:4px 12px; text-decoration:none;
}
.dl-mini:hover{ color:var(--brand-dark); border-color:var(--brand); }
.cw-stage{ position:relative; }
.cw-del{
  color:#E5484D; font-size:13px; cursor:pointer; padding:4px 10px;
  border:1px solid #F1C6C8; border-radius:999px; transition:all .15s;
}
.cw-del:hover{ background:#E5484D; color:#fff; border-color:#E5484D; }

/* ---------- 课件文件 ---------- */
.cw-filebar{
  position:sticky; top:118px; z-index:39; background:#FAFBFD;
  border-bottom:1px solid var(--line); padding:8px 0;
}
.cw-filebar .wrap{ display:flex; gap:6px; flex-wrap:wrap; }
.fchip{ max-width:260px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.fchip.on{ background:var(--brand); border-color:var(--brand); color:#fff; }
.file-frame{ width:100%; height:700px; border:0; display:block; }
.file-video{ width:100%; display:block; background:#000; }
.file-img{ max-width:100%; margin:0 auto; display:block; }
.dl-card{ text-align:center; padding:110px 20px; }
.dl-card h3{ margin:0 0 6px; }
.dl-card p{ color:var(--ink-3); margin:0 0 22px; }

/* ---------- 演示页 ---------- */
.cw-bar{
  position:sticky; top:64px; z-index:40; background:#fff;
  border-bottom:1px solid var(--line); padding:10px 0;
}
.cw-bar .wrap{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.cw-bar .tt{ font-weight:700; font-size:16px; margin-right:4px; }
.cw-bar .sp{ flex:1; }
.cw-tools{ display:flex; gap:6px; flex-wrap:wrap; }
.tbtn{
  border:1px solid var(--line); background:#fff; border-radius:8px;
  padding:7px 12px; font-size:13px; cursor:pointer; color:var(--ink-2);
  display:inline-flex; align-items:center; gap:5px; font-family:inherit; transition:.15s;
}
.tbtn:hover{ border-color:var(--brand); color:var(--brand); }
.tbtn.on{ background:var(--brand); border-color:var(--brand); color:#fff; }
.tbtn kbd{
  font-size:10px; opacity:.6; border:1px solid currentColor; border-radius:3px;
  padding:0 3px; line-height:1.4;
}

.cw-stage{
  position:relative; margin:22px auto 80px; max-width:960px;
  background:#fff; border:1px solid var(--line); border-radius:var(--r-lg);
  box-shadow:var(--sh-2); min-height:520px; overflow:hidden;
}
#paper{ padding:36px 44px; font-size:16.5px; line-height:1.9; color:#1F2328; }
#paper h1,#paper h2,#paper h3{ line-height:1.4; margin:.8em 0 .5em; }
#paper h2{ font-size:23px; }
#paper img{ max-width:100%; border-radius:8px; margin:10px 0; }
#paper pre{
  background:#0F1420; color:#E6EDF3; padding:14px 16px; border-radius:10px; overflow:auto;
}
#paper code{ background:#F2F4F7; padding:2px 6px; border-radius:4px; font-size:14px; }
#paper pre code{ background:none; padding:0; color:inherit; }
#paper blockquote{
  margin:12px 0; padding:8px 14px; border-left:3px solid var(--brand);
  background:var(--brand-soft); color:var(--ink-2);
}
#board{ position:absolute; inset:0; width:100%; height:100%; touch-action:none; z-index:20; }
#board.hide{ pointer-events:none; }
/* 画笔激活时的光标 */
.cw-stage.drawing{ cursor:crosshair; }
.cw-stage.drawing *{ cursor:crosshair; }

/* 颜色圆点 / 粗细按钮（画笔、涂抹激活时出现） */
#toolExtra{ display:none; align-items:center; gap:5px; padding:0 2px; }
#toolExtra.show{ display:inline-flex; }
.cdot{
  width:20px; height:20px; border-radius:50%; border:2px solid #fff;
  box-shadow:0 0 0 1px var(--line); cursor:pointer; padding:0; transition:.15s;
}
.cdot:hover{ transform:scale(1.15); }
.cdot.on{ box-shadow:0 0 0 2px var(--brand); transform:scale(1.1); }
.sbtn{ padding:5px 10px; font-size:12px; }
.sbtn.on{ background:var(--brand); border-color:var(--brand); color:#fff; }

.cw-empty{
  text-align:center; padding:100px 20px; color:var(--ink-2);
}
.cw-empty h3{ color:var(--ink-1); margin:0 0 10px; }
.cw-foot{ text-align:center; color:var(--ink-3); font-size:13px; padding:24px 0 40px; }
.icp-line{ margin-top:10px; font-size:13px; color:var(--ink-3); }
.icp-line a{ color:var(--ink-3); text-decoration:none; }
.icp-line a:hover{ color:var(--brand); }

@media (max-width:768px){
  .cw-head{ padding:28px 0 16px; }
  .cw-head h1{ font-size:23px; }
  .cw-stage{ margin:14px 12px 60px; }
  #paper{ padding:22px 20px; font-size:15.5px; }
  .cw-links{ display:none; }
}
/* 全屏时的演示样式 */
.cw-stage:fullscreen{ max-width:none; border-radius:0; border:0; margin:0; min-height:100vh; }
.cw-stage:fullscreen #paper{ padding:48px 8vw; font-size:22px; line-height:2; }
.cw-stage:fullscreen .file-frame{ height:calc(100vh - 8px); }
.cw-stage:fullscreen .file-video{ max-height:calc(100vh - 8px); }
.cw-stage:fullscreen .file-img{ max-height:calc(100vh - 8px); width:auto; }

/* ---------- PDF 幻灯片（上课模式） ---------- */
#pdfBox{
  position:absolute; inset:0; display:none;
  align-items:center; justify-content:center;
  background:#3c4043; overflow:hidden; z-index:5;
}
#pdfCv{ background:#fff; border-radius:4px; box-shadow:0 8px 34px rgba(0,0,0,.40); }
#pdfNo{
  position:absolute; bottom:14px; left:50%; transform:translateX(-50%);
  color:#fff; background:rgba(0,0,0,.45); padding:4px 16px;
  border-radius:14px; font-size:13px; letter-spacing:1px; pointer-events:none;
}
.pdf-nav{
  position:absolute; top:50%; transform:translateY(-50%);
  width:46px; height:74px; border:none; border-radius:8px;
  background:rgba(0,0,0,.22); color:#fff; font-size:30px; line-height:1;
  cursor:pointer; z-index:21; font-family:inherit;
}
.pdf-nav:hover{ background:rgba(0,0,0,.45); }
.pdf-prev{ left:12px; }
.pdf-next{ right:12px; }
