/* ============================================================
   产品培训系统 - 样式（PC + 手机自适应）
   ============================================================ */
:root {
  --bg: #f6f7fb; --card: #fff; --ink: #2d2a32; --muted: #8a8f9c;
  --primary: #6d5df6; --primary-d: #5545d9; --soft: #efedfe;
  --green: #4caf50; --red: #e05252; --radius: 14px; --shadow: 0 2px 10px rgba(0,0,0,.06);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif; background: var(--bg); color: var(--ink); line-height: 1.6; }
a { color: var(--primary-d); text-decoration: none; }
img, video { max-width: 100%; }
.container { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); font-size: .92em; }
.mt10 { margin-top: 10px; }
.hidden { display: none !important; }

/* 顶栏 */
.topbar { background: #fff; border-bottom: 1px solid #eee; position: sticky; top: 0; z-index: 50; }
.topbar-inner { display: flex; align-items: center; gap: 16px; height: 60px; }
.brand { font-size: 1.2rem; font-weight: 800; color: var(--primary-d); }
.main-nav { display: flex; gap: 4px; flex: 1; }
.main-nav a { padding: 8px 14px; border-radius: 20px; color: var(--ink); font-weight: 600; font-size: .95rem; }
.main-nav a.active, .main-nav a:hover { background: var(--soft); color: var(--primary-d); }
.topbar-right { display: flex; gap: 10px; align-items: center; }
.user-chip { font-size: .9em; color: var(--muted); }

/* 按钮/表单 */
.btn { display: inline-block; border: 0; border-radius: 20px; padding: 8px 18px; font-size: .92rem; cursor: pointer; font-weight: 600; font-family: inherit; transition: .15s; }
.btn-primary { background: var(--primary); color: #fff; } .btn-primary:hover { background: var(--primary-d); }
.btn-soft { background: var(--soft); color: var(--primary-d); } .btn-soft:hover { background: #e2dcfd; }
.btn-danger { background: #fff; color: var(--red); border: 1px solid #f0c9c9; }
.btn-sm { padding: 5px 13px; font-size: .84rem; }
.btn-xs { padding: 2px 10px; font-size: .78rem; border-radius: 14px; }
.btn-block { width: 100%; }
input[type=text], input[type=password], textarea, select { width: 100%; padding: 9px 12px; border: 1.5px solid #e3e3e3; border-radius: 10px; font-size: .93rem; outline: none; font-family: inherit; background: #fff; }
input:focus, textarea:focus { border-color: var(--primary); }
label { font-size: .85rem; color: var(--muted); display: block; margin: 10px 0 4px; }
.mini-input { width: 130px; padding: 5px 9px; }
.inline-form { display: inline-flex; gap: 6px; align-items: center; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.form-grid .full { grid-column: 1 / -1; }

/* 卡片/布局 */
.page { padding: 24px 0 48px; }
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; margin-bottom: 16px; }
.card h2 { font-size: 1.1rem; margin-bottom: 12px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.stat-grid { display: grid; gap: 12px; margin-bottom: 16px; }
.stat { background: var(--card); border-radius: 12px; padding: 16px; text-align: center; box-shadow: var(--shadow); }
.stat b { display: block; font-size: 1.6rem; color: var(--primary-d); }
.stat span { color: var(--muted); font-size: .85rem; }

/* 课程卡片 */
.course-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.course-card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; color: var(--ink); transition: transform .18s, box-shadow .18s; }
.course-card:hover { transform: translateY(-4px); box-shadow: 0 12px 26px rgba(0,0,0,.10); }
.cc-cover { position: relative; background: linear-gradient(135deg, #6d5df6, #9b6df6); color: #fff; padding: 30px 20px; text-align: center; }
.cc-icon { font-size: 34px; }
.cc-cat { position: absolute; left: 12px; top: 12px; font-size: 11px; background: rgba(255,255,255,.22); padding: 2px 10px; border-radius: 999px; }
.cc-badge { position: absolute; right: 12px; top: 12px; font-size: 12px; background: #fff; color: var(--green); padding: 2px 10px; border-radius: 999px; font-weight: 700; }
.cc-body { padding: 14px 16px 16px; flex: 1; display: flex; flex-direction: column; }
.cc-body h3 { font-size: 1rem; margin-bottom: 4px; }
.cc-body .muted { font-size: .85rem; margin-bottom: 10px; }
.cc-meta { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.tag { font-size: 11px; padding: 2px 9px; border-radius: 999px; background: #f2f3f8; color: var(--muted); }
.tag.on { background: #e8f7e8; color: var(--green); font-weight: 600; }
.tag.off { background: #fdeaea; color: var(--red); font-weight: 600; }
.progress-row { display: flex; align-items: center; gap: 8px; }
.bar { flex: 1; background: #f0ece6; border-radius: 8px; height: 9px; overflow: hidden; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, #9b8cff, #6d5df6); border-radius: 8px; }
.pct { font-size: .82rem; color: var(--primary-d); font-weight: 700; }

/* 课程详情 */
.course-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 14px; }
.badge-done { background: #e8f7e8; color: var(--green); border-radius: 999px; padding: 5px 14px; font-weight: 700; font-size: .9rem; white-space: nowrap; }
.video-box { background: #000; border-radius: 12px; overflow: hidden; margin-bottom: 14px; }
.video-box video { display: block; width: 100%; max-height: 480px; background: #000; }
.video-box iframe { width: 100%; height: 420px; display: block; }
.no-video { color: #ccc; text-align: center; padding: 60px 20px; }
.desc-box { background: var(--bg); border-radius: 12px; padding: 16px; }
.desc-box h3 { font-size: .98rem; margin-bottom: 6px; }

/* 表格 */
.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: .9rem; }
table.data th, table.data td { padding: 9px 12px; border-bottom: 1px solid #eef1f6; text-align: left; }
table.data th { color: var(--muted); font-weight: 600; white-space: nowrap; }

/* 文档学习 */
.doc-list { list-style:none; margin-top:8px; }
.doc-list li { display:flex; align-items:center; gap:10px; padding:7px 0; border-bottom:1px dashed #eee; font-size:.9rem; flex-wrap:wrap; }
.doc-list li:last-child { border-bottom:0; }
.doc-item { display:flex; align-items:center; gap:12px; padding:10px 0; border-bottom:1px dashed #eee; flex-wrap:wrap; }
.doc-item:last-child { border-bottom:0; }
.doc-icon { font-size:1.6rem; }
.doc-info { flex:1; min-width:200px; }
.doc-ops { display:flex; gap:8px; margin-top:4px; }

/* 文档卡片（学员端框内预览） */
.doc-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(200px,1fr)); gap:12px; margin-top:6px; }
.doc-card { background:#fff; border:1px solid #e8e8ef; border-radius:12px; padding:14px; display:flex; flex-direction:column; gap:8px; transition:transform .15s, box-shadow .15s; }
.doc-card:hover { transform:translateY(-2px); box-shadow:0 6px 16px rgba(0,0,0,.08); }
.dc-top { display:flex; justify-content:space-between; align-items:center; }
.dc-icon { font-size:1.8rem; }
.dc-name { font-size:.92rem; line-height:1.4; overflow:hidden; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; }
.dc-ops { display:flex; gap:8px; flex-wrap:wrap; }
.pdf-preview { margin:6px 0 14px; }
.pdf-preview iframe { width:100%; height:460px; border:1px solid #e3e3e3; border-radius:10px; background:#fff; }

/* 文档预览弹层 */
.modal { position:fixed; inset:0; background:rgba(0,0,0,.5); display:none; align-items:center; justify-content:center; z-index:100; padding:16px; }
.modal.open { display:flex; }
.modal-box { background:#fff; border-radius:14px; max-width:900px; width:100%; max-height:92vh; display:flex; flex-direction:column; padding:14px; }
.modal-wide { width:100%; }
.modal-head { display:flex; justify-content:space-between; align-items:center; margin-bottom:10px; }
.modal-head h3 { font-size:1rem; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.modal-close { background:none; border:0; font-size:1.5rem; cursor:pointer; color:var(--muted); line-height:1; }
#docModalFrame { flex:1; width:100%; height:78vh; border:0; border-radius:8px; background:#fff; }

/* 上传区（先上传确认、可删除） */
.upload-zone { background:var(--bg); border:1px dashed #d5d5e0; border-radius:12px; padding:14px; margin-top:14px; }
.uz-head { font-weight:700; font-size:.93rem; margin-bottom:10px; color:var(--primary-d); }
.uz-sub { font-weight:700; font-size:.88rem; margin:12px 0 4px; color:#555; }
.file-list { min-height:20px; }
.uz-row { display:flex; gap:10px; align-items:center; flex-wrap:wrap; }
.uz-row input[type=file] { width:auto; flex:1; min-width:220px; }
.uz-row select { width:auto; }
.up-item { display:flex; align-items:center; gap:10px; background:#fff; border:1px solid #ececf3; border-radius:10px; padding:8px 12px; margin-top:8px; flex-wrap:wrap; }
.ui-icon { font-size:1.2rem; }
.ui-name { flex:1; min-width:140px; font-size:.9rem; word-break:break-all; }
.up-chips { display:inline-flex; gap:6px; flex-wrap:wrap; }
.ui-size { color:var(--muted); font-size:.8rem; }
.up-remove { margin-left:auto; }

/* 上传进度条 + 拖拽高亮 */
.up-progress { display:flex; align-items:center; gap:10px; margin-top:10px; }
.up-progress.hidden { display:none; }
.up-progress-bar { flex:1; background:#eef0f6; border-radius:8px; height:10px; overflow:hidden; }
.up-progress-bar i { display:block; height:100%; width:0; background:linear-gradient(90deg,#4da3ff,#6d5df6); border-radius:8px; transition:width .2s; }
.up-progress-text { font-size:.78rem; color:var(--muted); min-width:110px; text-align:right; }
#fileUploadBox.drag-over { border-color:#4da3ff; background:#f2f8ff; box-shadow:inset 0 0 0 2px rgba(77,163,255,.35); }
.up-toast { position:fixed; left:50%; bottom:30px; transform:translateX(-50%) translateY(16px); background:#333; color:#fff; padding:9px 20px; border-radius:20px; opacity:0; transition:.25s; z-index:300; font-size:.9rem; pointer-events:none; }
.up-toast.show { opacity:1; transform:translateX(-50%); }
.up-toast.err { background:#c0392b; }
.pm-frame { width:100%; height:76vh; border:0; border-radius:8px; background:#fff; }
.study-time { font-size:.92rem; }
.study-time b { color:var(--primary-d); }

/* 题库表单 */
.opt-grid { display:grid; grid-template-columns:1fr 1fr; gap:6px 16px; }
.opt-row { display:flex; align-items:center; gap:8px; }
.opt-key { font-weight:700; color:var(--primary-d); width:18px; }
.radio-line { display:flex; align-items:center; gap:6px; font-size:.9rem; }
.radio-line input { width:auto; }

/* ---------- 左侧菜单布局 ---------- */
.layout { display:flex; min-height:100vh; }
.side { width:224px; background:#232a3b; color:#cdd3e0; flex-shrink:0; display:flex; flex-direction:column; position:sticky; top:0; height:100vh; }
.side-brand { color:#fff; font-weight:800; padding:18px 20px 14px; font-size:1.1rem; border-bottom:1px solid #2e3750; }
.side-company { padding:10px 20px; font-size:.83rem; color:#aab3c5; border-bottom:1px solid #2e3750; }
.side-nav { flex:1; padding:10px 0; overflow-y:auto; }
.side-nav a { display:flex; align-items:center; gap:10px; padding:11px 20px; color:#aab3c5; font-size:.93rem; }
.side-nav a:hover { background:#2e3750; color:#fff; }
.side-nav a.active { background:#2e3750; color:#fff; border-left:3px solid var(--primary); }
.sn-icon { width:22px; text-align:center; }
.side-foot { padding:12px 16px; border-top:1px solid #2e3750; display:flex; flex-direction:column; gap:8px; }
.side-user { font-size:.85rem; color:#7c86a0; word-break:break-all; }
.main { flex:1; min-width:0; }
.side-admin .side-brand { color:#ffd28f; }
@media (max-width: 860px) {
  .side { position:fixed; left:-240px; transition:.2s; z-index:90; }
  .side.open { left:0; box-shadow:8px 0 24px rgba(0,0,0,.18); }
  .nav-toggle { display:block; background:none; border:1px solid #ddd; border-radius:8px; font-size:1.1rem; cursor:pointer; padding:4px 10px; color:var(--ink); }
}

/* 登录 */
.auth-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(150deg, #eef0ff, #f6eefe); padding: 20px; }
.auth-card { background: #fff; border-radius: 18px; box-shadow: 0 10px 34px rgba(109, 93, 246, .18); padding: 30px 28px; width: 100%; max-width: 380px; }
.brand-big { font-size: 1.4rem; font-weight: 800; text-align: center; color: var(--primary-d); }
.auth-card .sub { text-align: center; color: var(--muted); margin: 4px 0 16px; font-size: .9rem; }
.alert { padding: 10px 14px; border-radius: 10px; font-size: .9rem; margin-bottom: 12px; }
.alert-err { background: #fdeaea; color: #c0392b; }
.alert-ok { background: #e8f7e8; color: #2e7d32; }
.filter-bar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.filter-bar input[type=text] { width: 220px; }
.footer { background: #fff; border-top: 1px solid #eee; padding: 18px 0; color: var(--muted); font-size: .85rem; text-align: center; margin-top: 20px; }

@media (max-width: 768px) {
  .grid-2, .form-grid { grid-template-columns: 1fr; }
  .opt-grid { grid-template-columns: 1fr; }
  .video-box iframe { height: 240px; }
  .pdf-preview iframe { height: 320px; }
  .topbar-inner { gap: 10px; }
  .brand { font-size: 1.05rem; }
}

/* ============================================================
   12123 学法减分风格 · 学习框 + 统一学习列表 + 统一对话框
   ============================================================ */
.learn-frame {
  background: linear-gradient(135deg, #182238 0%, #1d2c4f 55%, #243b5e 100%);
  border-radius: 18px;
  padding: 22px 24px;
  color: #fff;
  box-shadow: 0 10px 30px rgba(24, 34, 56, .35);
  position: relative;
  overflow: hidden;
}
.learn-frame::after {
  content: '';
  position: absolute; right: -60px; top: -60px;
  width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(77, 163, 255, .25), transparent 65%);
  pointer-events: none;
}
.lf-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; position: relative; z-index: 1; }
.lf-info { flex: 1; min-width: 260px; }
.lf-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.lf-tag { font-size: 11px; padding: 2px 10px; border-radius: 999px; background: rgba(255,255,255,.12); color: #cddcf5; }
.lf-title { font-size: 1.35rem; font-weight: 800; margin: 2px 0 6px; line-height: 1.35; }
.lf-desc { color: #9fb2d4; font-size: .88rem; margin-bottom: 10px; }
.lf-stats { display: flex; gap: 8px; flex-wrap: wrap; }
.lf-stat { font-size: .8rem; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.10); color: #d7e2f7; padding: 3px 12px; border-radius: 999px; }
.lf-stat b { color: #4da3ff; }
.lf-stat.lf-ok { background: rgba(34, 197, 94, .18); border-color: rgba(34,197,94,.4); color: #7ee2a5; font-weight: 700; }
.lf-ring { width: 122px; height: 122px; position: relative; flex-shrink: 0; }
.lf-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
#ringBar { transition: stroke-dashoffset .6s ease; }
.lf-ring-text { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.lf-ring-text b { font-size: 1.5rem; font-weight: 800; color: #fff; line-height: 1.1; }
.lf-ring-text span { font-size: .72rem; color: #9fb2d4; }
.lf-ring-text i { font-style: normal; color: #4da3ff; font-weight: 700; }

/* 学习内容列表 */
.learn-list { margin-top: 18px; }
.learn-list-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.learn-list-head h3 { font-size: 1.05rem; }
.learn-item {
  display: flex; align-items: center; gap: 14px;
  background: #fff; border: 1.5px solid #eef0f6; border-radius: 14px;
  padding: 13px 16px; margin-bottom: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
  cursor: pointer; transition: transform .15s, border-color .15s, box-shadow .15s;
}
.learn-item:hover { border-color: #4da3ff; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(77, 163, 255, .14); }
.learn-item:focus-visible { outline: 2px solid #4da3ff; outline-offset: 2px; }
.learn-item.done { background: #f3faf4; border-color: #cdeed4; }
.li-num {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, #4da3ff, #6d5df6); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .95rem;
}
.learn-item.done .li-num { background: linear-gradient(135deg, #22c55e, #16a34a); }
.li-icon { font-size: 1.5rem; flex-shrink: 0; }
.li-body { flex: 1; min-width: 0; }
.li-title { font-weight: 600; font-size: .95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.li-meta { font-size: .8rem; color: var(--muted); margin-top: 2px; }
.li-meta b { color: #4da3ff; }
.li-status {
  flex-shrink: 0; font-size: .8rem; font-weight: 600;
  color: #8a8f9c; background: #f2f3f8; border-radius: 999px; padding: 3px 12px;
}
.li-status.on { color: #16a34a; background: #e8f7e8; }
.li-arrow { color: #c3c8d4; font-size: 1.3rem; flex-shrink: 0; }

/* 统一学习对话框（12123 深色学习框） */
.learn-modal {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(8, 12, 24, .78);
  display: none; align-items: center; justify-content: center;
  padding: 16px;
}
.learn-modal.open { display: flex; }
.lm-box {
  width: 100%; max-width: 1000px; height: 92vh; max-height: 92vh;
  background: #101827; border-radius: 18px;
  display: flex; flex-direction: column; overflow: hidden;
  box-shadow: 0 24px 70px rgba(0,0,0,.55);
}
.lm-head { display: flex; align-items: center; gap: 12px; padding: 13px 18px; background: #16233f; color: #fff; flex-shrink: 0; }
.lm-index { font-size: .78rem; background: rgba(255,255,255,.12); color: #9fb2d4; padding: 3px 11px; border-radius: 999px; white-space: nowrap; }
.lm-title { flex: 1; font-weight: 700; font-size: .98rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lm-close { background: none; border: 0; color: #8fa3c5; font-size: 1.7rem; cursor: pointer; line-height: 1; padding: 0 4px; }
.lm-close:hover { color: #fff; }
.lm-body { flex: 1; min-height: 0; background: #000; display: flex; }
.lm-body video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.lm-body iframe { width: 100%; height: 100%; border: 0; background: #fff; }
.lm-nopreview { flex: 1; background: #f6f7fb; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; padding: 30px; }
.lm-nopreview b { font-size: 1.05rem; }
.lm-np-ops { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 6px; }
.lm-foot { background: #16233f; padding: 12px 18px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; color: #c7d3ea; flex-shrink: 0; }
.lm-timer { font-size: .85rem; }
.lm-timer b { color: #4da3ff; font-weight: 700; }
.lm-hint { font-size: .78rem; color: #8fa3c5; flex: 1; min-width: 150px; }
.lm-btns { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.lm-nav { display: inline-flex; gap: 8px; }
.lm-btn {
  display: inline-block; border: 0; border-radius: 999px; cursor: pointer;
  padding: 7px 16px; font-size: .85rem; font-weight: 600; font-family: inherit;
  text-decoration: none; transition: .15s;
}
.lm-btn.lm-green { background: linear-gradient(135deg, #22c55e, #16a34a); color: #fff; }
.lm-btn.lm-green:hover { filter: brightness(1.08); }
.lm-btn.lm-ghost { background: rgba(255,255,255,.1); color: #dbe6ff; border: 1px solid rgba(255,255,255,.18); }
.lm-btn.lm-ghost:hover { background: rgba(255,255,255,.18); }
.lm-toast {
  position: fixed; left: 50%; bottom: 34px; transform: translateX(-50%) translateY(16px);
  background: #16a34a; color: #fff; padding: 10px 22px; border-radius: 999px;
  font-size: .9rem; opacity: 0; transition: .25s; z-index: 400; pointer-events: none;
  box-shadow: 0 8px 24px rgba(22, 163, 74, .35);
}
.lm-toast.show { opacity: 1; transform: translateX(-50%); }

@media (max-width: 768px) {
  .learn-frame { padding: 18px 16px; }
  .lf-inner { justify-content: center; text-align: center; }
  .lf-ring { width: 104px; height: 104px; }
  .learn-modal { padding: 0; }
  .lm-box { height: 100vh; max-height: 100vh; border-radius: 0; }
  .lm-foot { padding: 10px 14px; }
  .li-status { display: none; }
}

/* ============================================================
   PPT 分页查看器 + 放映模式（从当前页播放）
   ============================================================ */
.pv-wrap { flex: 1; display: flex; flex-direction: column; background: #1c2436; min-height: 0; }
.pv-stage { position: relative; flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; background: #1c2436; overflow: hidden; }
.pv-stage img { max-width: 100%; max-height: 100%; object-fit: contain; box-shadow: 0 6px 30px rgba(0,0,0,.5); background: #fff; }
.pv-loading { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #9fb2d4; font-size: .92rem; background: #1c2436; z-index: 2; }
.pv-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 42px; height: 42px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,.12); color: #fff; font-size: 1.6rem; line-height: 1;
  transition: .15s;
}
.pv-nav:hover { background: rgba(255,255,255,.26); }
.pv-prev { left: 14px; }
.pv-next { right: 14px; }
.pv-bar {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  padding: 10px 14px; background: #16233f; flex-shrink: 0; flex-wrap: wrap;
}
.pv-page { color: #c7d3ea; font-size: .85rem; }
.pv-page b { color: #4da3ff; }

/* 放映模式（全屏暗色） */
.show-modal {
  position: fixed; inset: 0; z-index: 400;
  background: rgba(6, 9, 18, .97);
  display: none; flex-direction: column;
}
.show-modal.open { display: flex; }
.sm-stage { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 20px; position: relative; }
.sm-stage img { max-width: 100%; max-height: 100%; object-fit: contain; box-shadow: 0 10px 60px rgba(0,0,0,.6); background: #fff; }
.sm-loading { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; color: #8fa3c5; }
.sm-bar {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  padding: 14px 18px; background: #0d1424; flex-shrink: 0; flex-wrap: wrap;
}
.sm-btn {
  border: 0; border-radius: 999px; cursor: pointer;
  background: rgba(255,255,255,.1); color: #e4ecfb; border: 1px solid rgba(255,255,255,.16);
  padding: 8px 20px; font-size: .9rem; font-weight: 600; font-family: inherit; transition: .15s;
}
.sm-btn:hover { background: rgba(255,255,255,.2); }
.sm-btn.sm-auto { background: #16233f; }
.sm-btn.sm-close { background: #c0392b; border-color: #c0392b; }
.sm-page { color: #9fb2d4; font-size: .9rem; min-width: 72px; text-align: center; }
.sm-page b { color: #4da3ff; }

@media (max-width: 768px) {
  .pv-nav { width: 34px; height: 34px; font-size: 1.2rem; }
  .pv-prev { left: 6px; } .pv-next { right: 6px; }
  .sm-bar { gap: 8px; padding: 10px 8px; }
  .sm-btn { padding: 7px 12px; font-size: .8rem; }
}
