/* ============================================================
   云尚在线 · 「云课堂清新蓝」全站样式（2026-09-04）
   来源：Ardot 设计稿「云课堂学习网站」清新专业方向
   设计语言：浅蓝白底 #F7F9FC × 品牌蓝 #2F5BDB × 琥珀点缀 #F7A325
   大标题深藏蓝 #16224A · 深蓝数据面板/页脚 · 柔和光斑 + 三层阴影
   —— 所有类名 / ID 与旧版完全一致，仅视觉层重设计 ——
   历史版本备份：design-backups/
   ============================================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  /* 品牌蓝（主色） */
  --primary: #2F5BDB;
  --primary-dark: #2346B8;
  --primary-deep: #1B3A99;
  --primary-tint: #E9EFFD;
  /* 琥珀点缀（评分 / 徽标 / 亮点，克制使用） */
  --accent: #F7A325;
  --accent-tint: #FFF3DC;
  --accent-deep: #B26A00;
  /* 语义色 */
  --green: #27A566;  --green-bg: #E5F5EC;
  --red: #D93848;    --red-bg: #FDEEF0;
  --orange: #B4690E; --orange-bg: #FDF3E2;
  /* 底与字 */
  --bg: #F7F9FC;
  --surface: #ffffff;
  --track: #E7ECF5;
  --ink: #16224A;
  --ink-2: #46536E;
  --muted: #8A94AC;
  --line: #E4EAF5;
  --line-strong: #D2DCEF;
  /* 深蓝色块（数据面板 / 页脚） */
  --navy-panel: #182A5C;
  --navy-footer: #121B3E;
  --navy-text: #9FB0DC;
  --navy-dim: #6B7BA8;
  /* 兼容旧引用 */
  --card: #ffffff;
  --seal: var(--primary);
  --seal-dark: var(--primary-dark);
  --seal-tint: var(--primary-tint);
  --primary-light: var(--primary-tint);
  --radius: 16px;
  --shadow-sm: 0 1px 2px rgba(23, 33, 74, .05);
  --shadow: 0 2px 6px rgba(23, 33, 74, .05), 0 10px 24px rgba(23, 33, 74, .07);
  --shadow-lift: 0 2px 6px rgba(23, 33, 74, .04), 0 8px 20px rgba(23, 33, 74, .06), 0 24px 48px rgba(23, 33, 74, .12);
  --shadow-primary: 0 4px 12px rgba(47, 91, 219, .25);
  /* 现代无衬线字体（系统栈，零外部依赖） */
  --font-display: "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "HarmonyOS Sans SC", sans-serif;
  --font-body: "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "HarmonyOS Sans SC", sans-serif;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
  font-variant-numeric: tabular-nums;
}

a { color: var(--primary); text-decoration: none; }
::selection { background: rgba(47, 91, 219, .16); }
.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); font-size: 14px; }
.link { color: var(--primary); font-size: 14px; }

/* 键盘可达性 */
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: none; }

/* 滚动条 */
.toc-list::-webkit-scrollbar, .import-errors::-webkit-scrollbar { width: 6px; }
.toc-list::-webkit-scrollbar-thumb, .import-errors::-webkit-scrollbar-thumb {
  background: var(--line-strong); border-radius: 6px;
}

/* ---- 导航：白底细线 + 品牌蓝标 ---- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .9); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1180px; margin: 0 auto; padding: 0 20px;
  height: 62px; display: flex; align-items: center; gap: 28px;
}
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-seal {
  width: 32px; height: 32px; border-radius: 9px; flex: none;
  background: var(--primary);
  color: #fff;
  font-weight: 700; font-size: 17px;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 3px 8px rgba(47, 91, 219, .3);
}
.logo-name {
  font-size: 20px; font-weight: 800;
  color: var(--ink); letter-spacing: .01em;
}
.nav-links { display: flex; gap: 28px; flex: 1; }
.nav-link {
  color: var(--ink-2); font-size: 15.5px; font-weight: 500;
  padding: 6px 2px; position: relative; transition: color .16s;
}
.nav-link:hover { color: var(--primary); }
.nav-link.active { color: var(--primary-deep); font-weight: 600; }
.nav-link.active::after {
  content: ''; position: absolute; left: 2px; right: 2px; bottom: -4px;
  height: 3px; border-radius: 3px; background: var(--primary);
}
.nav-user { display: flex; align-items: center; gap: 10px; }
.nav-hello { font-size: 15px; color: var(--ink); font-weight: 600; }
.nav-right { display: flex; align-items: center; gap: 12px; }
.admin-gear {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--muted); font-size: 13.5px; font-weight: 500;
  padding: 7px 13px; border-radius: 999px; white-space: nowrap;
  border: 1px solid transparent;
  transition: all .18s; text-decoration: none;
}
.admin-gear svg { width: 16px; height: 16px; }
.admin-gear:hover { color: var(--primary); background: var(--primary-tint); border-color: var(--line); }

/* ---- 按钮 ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: none; cursor: pointer; font-size: 15px; font-weight: 600;
  padding: 11px 24px; border-radius: 12px; transition: all .18s cubic-bezier(.2,.7,.2,1);
  font-family: inherit; line-height: 1.4;
}
.btn:active { transform: scale(.97); }
.btn-primary {
  background: var(--primary); color: #fff;
  box-shadow: var(--shadow-primary);
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 6px 16px rgba(47, 91, 219, .32); }
.btn-outline {
  background: var(--surface); color: var(--ink);
  border: 1.5px solid var(--line-strong);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: rgba(22, 34, 74, .06); color: var(--ink); }
.btn-danger { background: var(--red-bg); color: var(--red); border: 1px solid rgba(217, 56, 72, .22); }
.btn-danger:hover { background: var(--red); color: #fff; border-color: var(--red); }
.btn-white { background: #fff; color: var(--primary-deep); }
.btn-white:hover { background: var(--primary-tint); }
.btn-ghost-white { background: rgba(255, 255, 255, .16); color: #fff; border: 1.5px solid rgba(255, 255, 255, .5); }
.btn-ghost-white:hover { background: rgba(255, 255, 255, .3); }
.btn-sm { padding: 8px 16px; font-size: 13.5px; border-radius: 10px; }
.btn-block { width: 100%; }

/* ---- 首页 Hero：浅蓝底 + 柔和光斑 + 左文右视觉卡 ---- */
.hero {
  background: var(--bg);
  padding: 64px 0 72px;
  position: relative;
  overflow: hidden;
}
/* 柔和光斑装饰（右上蓝 / 下琥珀，低调） */
.hero::before {
  content: ''; position: absolute; right: -120px; top: -160px;
  width: 480px; height: 480px; border-radius: 50%;
  background: radial-gradient(circle, rgba(47, 91, 219, .13) 0%, transparent 68%);
  pointer-events: none; user-select: none;
}
.hero::after {
  content: ''; position: absolute; left: 42%; bottom: -180px;
  width: 340px; height: 340px; border-radius: 50%;
  background: radial-gradient(circle, rgba(247, 163, 37, .1) 0%, transparent 68%);
  pointer-events: none; user-select: none;
}
.hero-inner {
  max-width: 1180px; margin: 0 auto; padding: 0 20px;
  position: relative; z-index: 1;
  display: flex; align-items: center; gap: 48px;
}
.hero-text { flex: 1; min-width: 0; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 15px; border-radius: 999px;
  background: var(--accent-tint); color: var(--accent-deep);
  font-size: 13px; font-weight: 600; margin-bottom: 22px;
}
.hero-badge::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
}
.hero h1 {
  font-size: clamp(32px, 4vw, 46px); font-weight: 800;
  margin-bottom: 16px; line-height: 1.32; letter-spacing: -.01em;
  color: var(--ink);
}
.hero h1 b { color: var(--primary); font-weight: 800; }
.hero-sub { font-size: 16.5px; color: #5A6784; margin-bottom: 28px; max-width: 540px; line-height: 1.85; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-ctas .btn { padding: 13px 30px; font-size: 16px; }
.hero-visual {
  flex: none; width: 400px; max-width: 38vw;
  position: relative;
  display: flex; align-items: center; justify-content: center;
}
.hero-visual-card {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px;
  box-shadow: var(--shadow-lift);
  animation: heroFloat 5.5s ease-in-out infinite;
}
.hero-visual-card img { width: 100%; height: auto; display: block; border-radius: 12px; }
@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-visual-card { animation: none; }
}
/* 悬浮功能徽章（真实功能，不虚构数据） */
.hero-chip {
  position: absolute; z-index: 2;
  display: inline-flex; align-items: center; gap: 9px;
  padding: 11px 16px; border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 10px 24px rgba(23, 33, 74, .12), 0 2px 6px rgba(23, 33, 74, .06);
  font-size: 14px; font-weight: 600; color: var(--ink);
  white-space: nowrap;
}
.hero-chip svg { width: 21px; height: 21px; flex: none; }
.hero-chip.chip-a { top: 14px; right: -14px; }
.hero-chip.chip-b { bottom: 22px; left: -18px; }

/* ---- 首页真实数据面板（深蓝） ---- */
.stats-band { margin-top: 20px; }
.stats-panel {
  position: relative; overflow: hidden;
  background: var(--navy-panel);
  border-radius: 24px;
  padding: 34px 56px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
  box-shadow: var(--shadow);
}
.stats-panel::after {
  content: ''; position: absolute; right: -80px; top: -120px;
  width: 300px; height: 300px; border-radius: 50%;
  background: radial-gradient(circle, rgba(247, 163, 37, .14) 0%, transparent 68%);
  pointer-events: none;
}
.stats-item { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 12px; }
.stats-num { font-size: 32px; font-weight: 800; color: #fff; line-height: 1.15; letter-spacing: -.01em; }
.stats-label { font-size: 13.5px; color: var(--navy-text); }

/* ---- 区块 ---- */
.section { padding: 48px 0 64px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 22px; gap: 12px; flex-wrap: wrap; }
.section-head h2 {
  font-size: 26px; font-weight: 800;
  letter-spacing: .01em; color: var(--ink);
}
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(264px, 1fr)); gap: 22px; }

/* ---- 课程筛选栏：胶囊标签 ---- */
.course-toolbar { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; flex-wrap: wrap; }
.cat-chips { display: flex; gap: 10px; flex-wrap: wrap; }
.chip {
  border: 1px solid var(--line-strong); background: #F1F5FC; color: #4A5A7A;
  font-size: 13.5px; padding: 8px 18px; border-radius: 999px; cursor: pointer;
  font-family: inherit; transition: all .18s; font-weight: 500;
}
.chip:hover { color: var(--primary); border-color: var(--primary); background: var(--surface); }
.chip.active {
  background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 600;
  box-shadow: 0 3px 8px rgba(47, 91, 219, .28);
}
.course-search {
  margin-left: auto; min-width: 220px; padding: 10px 14px 10px 38px;
  border: 1px solid var(--line-strong); border-radius: 12px; font-size: 14.5px;
  font-family: inherit; outline: none;
  color: var(--ink); transition: border-color .16s, box-shadow .16s;
  background-color: var(--surface);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238A94AC' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: 12px center; background-size: 16px 16px;
}
.course-search::placeholder { color: var(--muted); }
.course-search:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(47, 91, 219, .12); }
@media (max-width: 700px) { .course-search { margin-left: 0; width: 100%; } }

/* ---- 课程卡片：白卡 + 大封面 + 分类标签 ---- */
.course-card {
  position: relative;
  background: var(--surface); border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm); cursor: pointer;
  transition: transform .22s cubic-bezier(.2,.7,.2,1), box-shadow .22s, border-color .22s;
  display: flex; flex-direction: column;
}
.course-card:hover {
  transform: translateY(-4px); border-color: #C6D4F5;
  box-shadow: var(--shadow-lift);
}
.course-card:hover h3 { color: var(--primary-deep); }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.card-cat {
  display: inline-block; font-size: 12px; color: var(--primary-deep); letter-spacing: .04em;
  border: 1px solid rgba(47, 91, 219, .18); background: var(--primary-tint);
  padding: 2px 10px; border-radius: 999px; font-weight: 500;
}
.card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.card-body h3 {
  font-size: 18px; font-weight: 700;
  line-height: 1.4; transition: color .18s;
}
.card-desc {
  font-size: 13.5px; color: var(--muted); flex: 1; line-height: 1.75;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-meta { font-size: 13px; color: var(--muted); }
.card-actions { display: flex; gap: 8px; margin-top: 4px; }
.card-actions .btn { flex: 1; justify-content: center; }

/* ---- 进度条 ---- */
.progress-row { display: flex; align-items: center; gap: 10px; }
.progress-row > span { font-size: 12.5px; color: var(--muted); min-width: 38px; text-align: right; }
.progress { flex: 1; height: 7px; background: var(--track); border-radius: 6px; overflow: hidden; }
.progress i {
  display: block; height: 100%; border-radius: 6px;
  background: linear-gradient(90deg, var(--primary), #5B8CFF);
  transition: width .3s;
}

/* ---- 徽章 ---- */
.badge {
  display: inline-block; font-size: 12px; padding: 3px 11px; border-radius: 999px;
  background: var(--primary-tint); color: var(--primary-deep); font-weight: 600;
  border: 1px solid rgba(47, 91, 219, .16);
}
.badge-green { background: var(--green-bg); color: var(--green); border-color: rgba(39, 165, 102, .22); }
.badge-orange { background: var(--orange-bg); color: var(--orange); border-color: rgba(180, 105, 14, .22); }
.badge-gray { background: var(--track); color: var(--muted); border-color: var(--line-strong); }
.org-badge {
  background: var(--red-bg); color: #C2263C; padding: 3px 11px; border-radius: 999px;
  font-size: 12px; font-weight: 500; border: 1px solid rgba(194, 38, 60, .16);
}

/* ---- 登录 / 注册（分屏：品牌蓝渐变侧板 + 白色表单） ---- */
.auth-page {
  min-height: calc(100vh - 62px);
  display: flex; align-items: center; justify-content: center;
  padding: 48px 20px;
  background-color: var(--bg);
  background-image: radial-gradient(900px 460px at 82% -8%, rgba(47, 91, 219, .09), transparent 65%);
}
.auth-shell {
  width: 100%; max-width: 920px; min-height: 540px;
  display: flex;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(23, 33, 74, .14);
  animation: authIn .5s cubic-bezier(.2,.7,.2,1);
}
@keyframes authIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.auth-side {
  flex: 0 0 44%;
  background: linear-gradient(155deg, #1B3A99 0%, #2F5BDB 55%, #5B8CFF 100%);
  color: #fff; padding: 48px 42px;
  position: relative; overflow: hidden;
  display: flex;
}
.auth-side::before {
  content: ''; position: absolute; width: 360px; height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.16) 0%, transparent 68%);
  right: -130px; top: -100px;
}
.auth-side-inner { position: relative; z-index: 1; display: flex; flex-direction: column; width: 100%; }
.brand-row { display: flex; align-items: center; gap: 11px; font-size: 20px; font-weight: 700; letter-spacing: .02em; }
.brand-dot {
  width: 38px; height: 38px; border-radius: 10px; flex: none;
  background: rgba(255, 255, 255, .18);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .35);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; font-weight: 700;
}
.brand-text { margin-top: 64px; }
.brand-text h1 { font-size: 27px; line-height: 1.55; font-weight: 700; letter-spacing: .01em; }
.brand-text p { margin-top: 14px; color: rgba(255, 255, 255, .82); font-size: 15px; }

.auth-main { flex: 1; display: flex; align-items: center; justify-content: center; padding: 50px 28px; }
.auth-box { width: 100%; max-width: 330px; }
.auth-box h2 { font-size: 26px; font-weight: 700; color: var(--ink); }
.auth-sub { margin: 8px 0 28px; color: var(--muted); font-size: 14.5px; }
.f-item { margin-bottom: 18px; }
.f-item > label { display: block; font-size: 13.5px; font-weight: 600; color: var(--ink-2); margin-bottom: 7px; }
.f-ctrl {
  display: flex; align-items: center; gap: 10px;
  border: 1px solid var(--line-strong); border-radius: 12px;
  padding: 0 14px; height: 47px;
  background: #FAFBFE;
  transition: border-color .18s, box-shadow .18s, background .18s;
}
.f-ctrl:focus-within { border-color: var(--primary); background: #fff; box-shadow: 0 0 0 4px rgba(47, 91, 219, .12); }
.f-ico { width: 18px; height: 18px; color: var(--muted); flex: none; }
.f-ctrl input {
  flex: 1; border: none; outline: none; font-size: 15.5px; background: transparent;
  color: var(--ink); font-family: inherit; min-width: 0;
}
.f-ctrl input::placeholder { color: #AAB8CB; }
.auth-error { color: var(--red); font-size: 13.5px; min-height: 20px; margin-bottom: 8px; }
.f-submit {
  width: 100%; height: 49px; border: none; border-radius: 12px;
  background: var(--primary); color: #fff; font-size: 15.5px; font-weight: 600;
  cursor: pointer; font-family: inherit;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: background .18s, transform .12s, box-shadow .18s;
  box-shadow: var(--shadow-primary);
}
.f-submit:hover { background: var(--primary-dark); box-shadow: 0 8px 22px rgba(47, 91, 219, .34); }
.f-submit:active { transform: scale(.98); }
.f-submit span { font-size: 17px; transition: transform .18s; }
.f-submit:hover span { transform: translateX(3px); }
.auth-meta { margin-top: 20px; text-align: center; font-size: 14.5px; color: var(--muted); }
.auth-meta a { color: var(--primary-deep); font-weight: 600; }
@media (max-width: 760px) {
  .auth-side { display: none; }
  .auth-shell { max-width: 440px; min-height: 0; }
}

/* ---- 旧版登录卡（保留兜底） ---- */
.auth-wrap { display: flex; justify-content: center; padding: 60px 20px; }
.auth-card {
  width: 100%; max-width: 420px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 34px 32px;
}
.auth-card h2 { margin-bottom: 4px; }
.auth-foot { margin-top: 18px; font-size: 14px; color: var(--muted); text-align: center; }
.auth-tip {
  margin-top: 14px; font-size: 12.5px; color: var(--muted);
  background: var(--track); border: 1px dashed var(--line-strong);
  border-radius: 8px; padding: 8px 12px; text-align: center;
}

/* ---- 表单 ---- */
.field { display: block; margin-bottom: 16px; }
.field > span { display: block; font-size: 13.5px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 10px 13px; font-size: 14.5px; font-family: inherit;
  border: 1px solid var(--line-strong); border-radius: 10px;
  background: #FAFBFE; color: var(--ink);
  transition: border .15s, box-shadow .15s, background .15s; outline: none;
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--primary); background: #fff; box-shadow: 0 0 0 3px rgba(47, 91, 219, .12);
}
.field textarea { resize: vertical; min-height: 74px; }
.form-error { color: var(--red); font-size: 13px; min-height: 20px; margin-bottom: 6px; }
.form-hint { font-size: 12.5px; color: var(--muted); margin-top: 4px; line-height: 1.6; }

/* ---- 安全设置 ---- */
.sec-banner {
  margin: 0 0 18px; padding: 13px 16px; font-size: 14px; line-height: 1.7;
  background: var(--accent-tint); border: 1px solid #F5DFAE; border-radius: 12px; color: var(--accent-deep);
}
.sec-block { border: 1px solid var(--line); border-radius: 12px; padding: 18px; background: var(--surface); }
.sec-title {
  font-size: 15px; font-weight: 700; margin-bottom: 14px; color: var(--ink);
}
.sec-title::before {
  content: ''; display: inline-block; width: 8px; height: 8px;
  background: var(--primary); border-radius: 3px;
  margin-right: 9px; vertical-align: 1px;
}

/* ---- 课程课时管理（后台弹窗） ---- */
.lesson-row {
  border: 1px solid var(--line); border-radius: 11px;
  padding: 12px; margin-bottom: 10px; background: #F8FAFD;
}
.lesson-row .lesson-head { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.lesson-row .lesson-head .l-title { flex: 1; }
.lesson-row input {
  padding: 8px 11px; font-size: 13.5px; border: 1px solid var(--line-strong);
  border-radius: 8px; background: #fff; color: var(--ink); font-family: inherit;
}
.lesson-row input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(47, 91, 219, .1); }
.lesson-row input[type="number"] { border: 1px solid var(--line-strong) !important; border-radius: 8px !important; }
.lesson-row .l-video { flex: 1; }

/* ---- 课程播放页 ---- */
.back {
  display: inline-block; margin: 24px 0 14px; color: var(--muted); font-size: 14.5px;
  transition: color .16s, padding-left .16s;
}
.back:hover { color: var(--primary); padding-left: 4px; }
.course-layout { display: grid; grid-template-columns: 1fr 320px; gap: 26px; align-items: start; }
.player-box {
  background: #0E1420; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); border: 1px solid var(--line);
}
.player-box video { display: block; width: 100%; aspect-ratio: 16/9; background: #000; }
.player-tip { font-size: 12.5px; margin: 10px 4px 0; }

/* ---- 课时主题封面（播放前遮罩） ---- */
.player-wrap { position: relative; }
.player-cover {
  position: absolute; inset: 0; z-index: 3; cursor: pointer;
  background: var(--lg, linear-gradient(135deg, #1B3A99 0%, #2F5BDB 55%, #5B8CFF 100%));
  display: flex; align-items: center; justify-content: center; text-align: center;
  transition: opacity .35s ease, visibility .35s ease;
}
.player-cover::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 82% 16%, rgba(255,255,255,.12) 0 2px, transparent 2px 40px),
    radial-gradient(circle at 8% 85%, rgba(255,255,255,.07) 0 2px, transparent 2px 34px);
}
.player-cover.pc-hide { opacity: 0; visibility: hidden; pointer-events: none; }
.pc-inner { position: relative; z-index: 1; color: #fff; padding: 20px; }
.pc-title { font-size: 21px; font-weight: 700; margin-bottom: 9px; text-shadow: 0 2px 10px rgba(0,0,0,.25); }
.pc-sub { font-size: 13.5px; opacity: .9; margin-bottom: 20px; }
.pc-play {
  border: 0; cursor: pointer; font-size: 15px; font-weight: 700; color: var(--primary-deep);
  background: #fff; padding: 12px 30px; border-radius: 999px;
  box-shadow: 0 8px 22px rgba(0,0,0,.22); transition: transform .15s, box-shadow .15s;
  font-family: inherit;
}
.pc-play:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(0,0,0,.28); }
.pc-badge {
  display: inline-block; margin-top: 16px; font-size: 11.5px; letter-spacing: .1em;
  padding: 3px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .4); color: #fff;
}

/* ---- 课时目录（课程播放页） ---- */
.toc-list { display: flex; flex-direction: column; gap: 5px; max-height: 420px; overflow-y: auto; padding-right: 2px; }
.toc-item {
  display: flex; align-items: center; gap: 10px; padding: 10px 11px;
  border-radius: 10px; cursor: pointer; font-size: 14px; color: var(--ink-2);
  transition: background .15s; border: 1px solid transparent;
}
.toc-item:hover { background: var(--track); }
.toc-item.active {
  background: var(--primary-tint); color: var(--primary-deep); font-weight: 600;
  border-color: rgba(47, 91, 219, .16);
}
.toc-state {
  width: 25px; height: 25px; flex: 0 0 auto; border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; color: var(--muted); background: var(--surface);
}
.toc-item.active .toc-state { background: var(--primary); color: #fff; border-color: var(--primary); }
.toc-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.toc-dur { display: block; font-size: 11.5px; color: var(--muted); font-weight: normal; margin-top: 1px; }
.toc-prog { flex: 0 0 auto; font-size: 11.5px; color: var(--muted); }
.toc-item.active .toc-prog { color: var(--primary-deep); }
.external-player {
  min-height: 300px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 40px 24px; gap: 14px;
  background: linear-gradient(160deg, #ffffff 0%, var(--primary-tint) 100%);
  border-radius: var(--radius); border: 1px solid var(--line);
}
.external-player .ext-badge {
  font-size: 12px; font-weight: 600; color: var(--primary-deep);
  background: var(--primary-tint); border: 1px solid rgba(47, 91, 219, .2);
  padding: 5px 15px; border-radius: 999px; letter-spacing: .06em;
}
.external-player .ext-title { font-size: 20px; font-weight: 700; color: var(--ink); margin: 0; }
.external-player .ext-sub { font-size: 14.5px; color: var(--muted); margin: 0; }
.external-player .ext-note { font-size: 12.5px; margin: 0; }
.course-info { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 26px; margin-top: 18px; }
.course-info h1 { font-size: 23px; margin-bottom: 10px; }
.course-cover-title {
  display: inline-block; font-size: 12.5px; font-weight: 600;
  color: var(--primary-deep); background: var(--primary-tint);
  border: 1px solid rgba(47, 91, 219, .18);
  padding: 5px 15px; border-radius: 999px; margin-bottom: 8px; letter-spacing: .04em;
}
.info-meta { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; font-size: 14px; color: var(--muted); flex-wrap: wrap; }
.desc { color: var(--ink-2); font-size: 15px; line-height: 1.85; }

.side-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: 22px; position: sticky; top: 82px;
}
.side-card h3 {
  font-size: 16px;
  padding-bottom: 10px; border-bottom: 1px solid var(--line); margin-bottom: 15px;
}
.stat-list { display: flex; flex-direction: column; gap: 15px; margin-bottom: 18px; }
.stat-item { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.stat-num { font-size: 20px; font-weight: 700; color: var(--primary-deep); }
.stat-label { font-size: 13.5px; color: var(--muted); }

/* ---- 课程封面（详情页） ---- */
.cover {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--surface);
  margin-bottom: 18px;
  border: 1px solid var(--line);
}
.cover::before {
  content: ''; position: absolute; left: 0; top: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--cover-accent, var(--primary)), transparent 82%);
  pointer-events: none; z-index: 1;
}
.cover-main { position: relative; display: flex; gap: 20px; align-items: center; padding: 26px 28px 20px; }
.cover-thumb {
  position: relative; width: 220px; flex: none; aspect-ratio: 16 / 10;
  border-radius: 10px; overflow: hidden;
  background: linear-gradient(135deg, #E7EDF6, #D3DFEF);
}
.cover-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cover-info { flex: 1; min-width: 0; }
.cover-subtitle {
  display: inline-block; font-size: 13px; color: var(--primary-deep); font-weight: 600;
  margin-bottom: 7px;
  padding-left: 10px; border-left: 3px solid var(--primary);
}
.cover-title { font-size: 27px; font-weight: 800; line-height: 1.35; letter-spacing: -.01em; }
.cover-meta { display: flex; flex-wrap: wrap; gap: 0 12px; margin-top: 12px; font-size: 13.5px; color: var(--muted); }
.cover-meta > span + span::before { content: '·'; margin-right: 12px; color: var(--line-strong); }
.cover-org { color: var(--primary); font-weight: 600; }
.cover-actions { display: flex; flex-direction: column; gap: 10px; flex: none; }
.btn-cover-fav {
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink-2);
  padding: 11px 24px; border-radius: 12px; font-size: 14px; cursor: pointer; font-weight: 500;
  transition: all .15s; font-family: inherit; white-space: nowrap;
}
.btn-cover-fav:hover { border-color: var(--primary); color: var(--primary); }
.btn-cover-fav.faved { border-color: var(--primary); color: var(--primary); background: var(--primary-tint); }
.btn-cover-cta {
  border: none; background: var(--primary); color: #fff;
  padding: 12px 28px; border-radius: 12px; font-size: 15px; font-weight: 600; cursor: pointer;
  transition: background .15s, transform .12s, box-shadow .15s; font-family: inherit; white-space: nowrap;
  box-shadow: var(--shadow-primary);
}
.btn-cover-cta:hover { background: var(--primary-dark); }
.btn-cover-cta:active { transform: scale(.97); }
.cover-progress { position: relative; padding: 0 28px 22px; }
.cover-progress-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 7px; font-size: 13.5px; }
.cover-progress-val { font-weight: 700; color: var(--primary-deep); }

/* ---- 标签页（课程页 / 管理后台统一：分段控件） ---- */
.tabs {
  display: inline-flex; gap: 4px; flex-wrap: nowrap;
  background: var(--track); border: 1px solid var(--line);
  padding: 4px; border-radius: 12px;
  width: fit-content; max-width: 100%;
  overflow-x: auto; margin-bottom: 20px;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab, .tab-btn {
  border: none; background: transparent; padding: 8px 18px; border-radius: 9px;
  font-size: 14.5px; color: var(--ink-2);
  cursor: pointer; font-weight: 500; position: relative;
  transition: all .16s; font-family: inherit; white-space: nowrap; flex: none;
}
.tab:hover, .tab-btn:hover { color: var(--primary); }
.tab.active, .tab-btn.active {
  background: var(--surface); color: var(--primary-deep); font-weight: 600;
  box-shadow: 0 1px 4px rgba(23, 33, 74, .14);
}
.tab.active::after { content: none; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ---- 介绍 / 资料 / 学员 ---- */
.intro-meta { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 18px; }
.intro-item {
  display: flex; justify-content: space-between; gap: 10px;
  padding: 11px 14px; background: #F8FAFD; border-radius: 10px;
  font-size: 14px; border: 1px solid var(--line);
}
.mat-item {
  display: flex; align-items: center; gap: 12px; padding: 13px 15px; margin-bottom: 9px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--surface);
  color: var(--ink); transition: all .15s;
}
.mat-item:hover { border-color: var(--primary); background: var(--primary-tint); }
.mat-ico { font-size: 19px; }
.mat-title { flex: 1; font-size: 14.5px; }
.mat-go { font-size: 13px; color: var(--primary-deep); font-weight: 500; }
.learner-row {
  display: flex; align-items: center; gap: 14px; padding: 11px 12px; margin-bottom: 6px;
  border-bottom: 1px dashed var(--line-strong); font-size: 14px; flex-wrap: wrap;
}
.learner-name { font-weight: 600; }
.learner-status { flex: none; }

/* ---- 表格 ---- */
.table-wrap {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
  overflow-x: auto; padding: 4px;
}
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 13px 14px; border-bottom: 1px solid #EEF2F8; white-space: nowrap; }
th {
  color: var(--muted); font-weight: 600; font-size: 12.5px; letter-spacing: .03em;
  background: #F7FAFD; border-bottom: 1px solid var(--line-strong);
}
tr:last-child td { border-bottom: none; }
tbody tr:hover { background: #F6F9FE; }
tbody tr:last-child:hover { border-bottom-left-radius: 10px; }
.table-actions { display: flex; gap: 8px; }
.mini-progress { display: flex; align-items: center; gap: 8px; min-width: 110px; }
.mini-progress .progress { width: 60px; }

/* ---- 空状态 ---- */
.empty {
  text-align: center; padding: 54px 20px; color: var(--muted);
  border: 1.5px dashed var(--line-strong); border-radius: 14px;
  grid-column: 1 / -1; font-size: 15px;
}
.empty .emoji { font-size: 44px; margin-bottom: 12px; }

/* ---- 管理后台 ---- */
.admin-topbar {
  background: #ffffff; color: var(--ink);
  border-bottom: 1px solid var(--line);
  box-shadow: none; height: 58px; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.admin-topbar .t-logo {
  font-weight: 700; font-size: 16px; color: var(--ink);
  display: flex; gap: 9px; align-items: center; letter-spacing: .01em;
  position: relative; padding-left: 14px;
}
.admin-topbar .t-logo::before {
  content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 5px; height: 18px; border-radius: 2px; background: var(--primary);
}
.admin-topbar a { color: var(--muted) !important; font-size: 13px; }
.admin-topbar a:hover { color: var(--primary) !important; }
.admin-topbar .btn {
  background: var(--surface) !important; color: var(--ink-2) !important;
  border: 1px solid var(--line-strong) !important; border-radius: 10px;
}
.admin-topbar .btn:hover { background: #F2F5F9 !important; color: var(--ink) !important; }
.admin-body { max-width: 1280px; margin: 0 auto; padding: 26px 20px 60px; }

/* 统计：无框大数字行，细线分隔 */
.stats-row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0; margin: 6px 0 20px; border-bottom: 1px solid var(--line);
}
.stat-card {
  background: transparent; border: none; box-shadow: none; overflow: visible;
  padding: 16px 22px 18px 0; display: block; position: relative;
  border-right: 1px solid var(--line); margin-right: 22px;
}
.stat-card:last-child { border-right: none; margin-right: 0; }
.stat-card::after { display: none; }
.stat-icon { display: none; }
.stat-card .v { font-size: 24px; font-weight: 700; line-height: 1.2; color: var(--ink); }
.stat-card .l { font-size: 13px; color: var(--muted); margin-top: 3px; }

.filter-bar { display: flex; gap: 12px; align-items: center; margin-bottom: 16px; flex-wrap: wrap; }
.filter-bar select {
  padding: 9px 12px; border: 1px solid var(--line-strong); border-radius: 10px;
  font-size: 14px; background: var(--surface); color: var(--ink);
  font-family: inherit; outline: none; min-width: 170px;
}
.filter-bar select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(47, 91, 219, .12); }
.toolbar-right { margin-left: auto; display: flex; gap: 10px; }

/* ---- 弹窗 ---- */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(15, 24, 52, .46); z-index: 100;
  display: flex; align-items: center; justify-content: center; padding: 20px;
  backdrop-filter: blur(3px);
}
.modal {
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  width: 100%; max-width: 480px;
  box-shadow: 0 24px 64px rgba(15, 24, 52, .22);
  animation: pop .18s ease;
  max-height: 90vh; display: flex; flex-direction: column;
}
@keyframes pop { from { transform: scale(.94); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 20px 22px 13px; border-bottom: 1px solid var(--line);
}
.modal-head h3 { font-size: 18px; }
.modal-x {
  border: none; background: transparent; font-size: 16px; cursor: pointer;
  color: var(--muted); padding: 6px 10px; border-radius: 8px; min-width: 34px; min-height: 32px;
  transition: background .15s, color .15s;
}
.modal-x:hover { background: rgba(22, 34, 74, .07); color: var(--ink); }
.modal-body { padding: 18px 22px; overflow-y: auto; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 0 22px 20px; }
.modal-wide { max-width: 760px; }
.preview-video { border-radius: 12px; overflow: hidden; background: #000; border: 1px solid var(--line); }
.preview-video video { display: block; width: 100%; aspect-ratio: 16/9; }

/* ---- 用户导入结果 ---- */
.import-summary {
  display: flex; gap: 16px; flex-wrap: wrap; padding: 12px 14px;
  background: #F7FAFD; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 10px;
}
.import-summary span { font-size: 14px; font-weight: 600; }
.imp-ok { color: var(--green); }
.imp-skip { color: var(--orange); }
.imp-fail { color: var(--red); }
.import-errors {
  list-style: none; max-height: 180px; overflow-y: auto;
  background: var(--red-bg); border: 1px solid #F5C9CE; border-radius: 10px; padding: 10px 14px;
}
.import-errors li { font-size: 12.5px; color: #B02330; padding: 3px 0; border-bottom: 1px dashed #F5C9CE; }
.import-errors li:last-child { border-bottom: none; }

/* ---- 预览弹窗课时切换 ---- */
.preview-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.preview-tab {
  padding: 6px 14px; font-size: 13px; border: 1px solid var(--line-strong);
  border-radius: 999px; background: var(--surface); color: var(--ink-2);
  cursor: pointer; transition: all .15s; font-family: inherit;
}
.preview-tab:hover { border-color: var(--primary); color: var(--primary); }
.preview-tab.active { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 500; }
.preview-dur { font-size: 11px; opacity: .8; margin-left: 4px; }

/* ---- Toast ---- */
#toastBox {
  position: fixed; top: 76px; left: 50%; transform: translateX(-50%);
  z-index: 200; display: flex; flex-direction: column; gap: 10px; align-items: center;
}
.toast {
  background: var(--ink); color: #fff; font-size: 14px; padding: 11px 24px;
  border-radius: 12px; box-shadow: 0 10px 30px rgba(15, 24, 52, .28);
  animation: fadein .2s ease;
}
.toast.success { background: #157347; }
.toast.error { background: #B3263A; }
@keyframes fadein { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* ---- 页脚：深蓝收尾 ---- */
.site-footer {
  position: relative; overflow: hidden;
  margin-top: 48px;
  padding: 52px 0 26px;
  background: var(--navy-footer);
  color: var(--navy-text);
}
.site-footer::before {
  content: ''; position: absolute; right: -60px; top: -140px;
  width: 380px; height: 380px; border-radius: 50%;
  background: radial-gradient(circle, rgba(247, 163, 37, .09) 0%, transparent 68%);
  pointer-events: none;
}
.footer-grid {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 1.4fr .8fr .8fr;
  gap: 36px;
  max-width: 900px;
}
.footer-brand {
  display: flex; align-items: center; gap: 10px; margin-bottom: 10px;
}
.footer-name {
  font-size: 18px; font-weight: 700; color: #fff;
}
.footer-desc {
  font-size: 13px; line-height: 1.75; color: var(--navy-text); max-width: 320px;
}
.footer-col a, .footer-col p {
  display: block; font-size: 13px; color: var(--navy-text); margin: 0 0 9px;
}
.footer-col a:hover { color: #fff; }
.footer-title {
  font-size: 13px; font-weight: 700; color: #fff; margin-bottom: 12px; letter-spacing: .02em;
}
.footer-seal {
  width: 26px; height: 26px; border-radius: 7px; flex: none;
  background: var(--primary);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700;
}
.footer-copy {
  position: relative; z-index: 1;
  border-top: 1px solid rgba(255, 255, 255, .1);
  margin-top: 34px; padding-top: 18px;
  font-size: 12px; color: var(--navy-dim);
  text-align: center;
}
.footer-copy-text { margin: 0 0 8px; font-size: 12px; color: var(--navy-dim); }
.footer-beian-line { margin: 0; font-size: 12px; }
.footer-beian-line a { color: var(--navy-dim); text-decoration: none; }
.footer-beian-line a:hover { color: var(--navy-text); }
.footer-beian-line span { margin-left: 16px; }

/* ---- 结业证书 ---- */
.btn-cert { background: var(--primary); color: #fff; font-weight: 600; box-shadow: var(--shadow-primary); }
.btn-cert:hover { background: var(--primary-dark); }
.btn-cert-sm { margin-left: 6px; }

.cert {
  position: relative;
  background: var(--surface);
  border-radius: 16px;
  padding: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.cert::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 8px;
  background: var(--cert-grad, linear-gradient(90deg, #1B3A99, #5B8CFF));
}
.cert-inner {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 36px 40px;
  background: #fff;
}
.cert-head { display: flex; align-items: center; gap: 18px; margin-bottom: 26px; }
.cert-emblem {
  width: 60px; height: 60px; border-radius: 15px; flex: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 29px; color: #fff;
  box-shadow: 0 6px 16px rgba(47, 91, 219, .25);
}
.cert-orgline { font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.cert-title { font-size: 26px; font-weight: 800; letter-spacing: 6px; color: var(--ink); }
.cert-sub { font-size: 11px; color: var(--muted); letter-spacing: 2.5px; text-transform: uppercase; }
.cert-body { text-align: center; margin: 6px 0 28px; }
.cert-name { font-size: 26px; font-weight: 800; color: var(--ink); margin-bottom: 6px; letter-spacing: .04em; }
.cert-line { font-size: 15px; color: var(--muted); }
.cert-course { font-size: 22px; font-weight: 700; color: var(--primary-deep); margin: 10px 0 4px; }
.cert-cat { font-size: 14px; color: var(--muted); }
.cert-meta { font-size: 13px; color: var(--muted); margin-top: 14px; }
.cert-foot {
  display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  border-top: 1px solid var(--line); padding-top: 16px;
}
.cert-foot-item { display: flex; flex-direction: column; gap: 2px; }
.cert-foot-label { font-size: 12px; color: var(--muted); }
.cert-foot-val { font-size: 14px; font-weight: 600; color: var(--ink); }
.cert-actions { display: flex; justify-content: center; margin-top: 16px; }

/* ---- 线下培训板块（休眠保留，样式同步蓝系） ---- */
.off-card-meta { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.off-cover {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 24px 28px;
  margin-bottom: 16px;
  overflow: hidden;
}
.off-cover::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 4px;
  background: linear-gradient(90deg, var(--off-accent, var(--primary)), transparent 80%);
}
.off-cover-tag {
  display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .04em;
  color: var(--primary-deep); background: var(--primary-tint); border: 1px solid rgba(47,91,219,.18);
  padding: 3px 11px; border-radius: 999px; margin-bottom: 10px;
}
.off-title { font-size: 25px; font-weight: 700; line-height: 1.4; }
.off-subtitle { font-size: 14px; color: var(--muted); margin-top: 6px; }
.off-enroll {
  margin-top: 16px; background: var(--primary); color: #fff; font-weight: 600;
  padding: 12px 32px; border-radius: 12px; font-size: 15px; border: none;
  cursor: pointer; font-family: inherit; box-shadow: var(--shadow-primary);
}
.off-enroll:hover { background: var(--primary-dark); }
.off-enroll.off-enrolled { background: var(--track); color: var(--muted); cursor: default; border-color: var(--line-strong); box-shadow: none; }
.off-enroll.off-enrolled:hover { background: var(--track); }

.off-infocard {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: 4px 22px; margin-bottom: 16px;
}
.off-info-row { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px dashed var(--line-strong); }
.off-info-row:last-child { border-bottom: none; }
.off-info-ico { flex: none; font-size: 16px; }
.off-info-label { flex: none; font-size: 13px; color: var(--muted); width: 66px; }
.off-info-val { flex: 1; font-size: 14.5px; color: var(--ink); }

.off-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 16px; }
.off-stat {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: 17px; text-align: center;
}
.off-stat-num { font-size: 26px; font-weight: 700; color: var(--primary-deep); line-height: 1.2; }
.off-stat-label { font-size: 13px; color: var(--muted); margin-top: 4px; }

.off-org {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: 17px 22px; margin-bottom: 18px;
}
.off-org-name { font-size: 15.5px; font-weight: 600; }
.off-org-sub { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.off-org-actions { display: flex; gap: 10px; }
.off-org-btn {
  display: inline-flex; align-items: center; gap: 4px;
  border: 1.5px solid var(--primary); color: var(--primary); background: var(--surface);
  padding: 9px 17px; border-radius: 10px; font-size: 14px; font-weight: 500; text-decoration: none;
  transition: all .15s; font-family: inherit;
}
.off-org-btn:hover { background: var(--primary-tint); }

.off-lesson-list { display: flex; flex-direction: column; gap: 10px; }
.off-lesson {
  display: flex; gap: 14px; align-items: flex-start; padding: 15px;
  border: 1px solid var(--line); border-radius: 11px; background: #F8FAFD;
}
.off-lesson-no {
  flex: none; width: 36px; height: 36px; border-radius: 50%;
  background: var(--primary-tint); color: var(--primary-deep); font-weight: 700; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(47,91,219,.18);
}
.off-lesson-body { flex: 1; min-width: 0; }
.off-lesson-title { font-size: 15px; font-weight: 600; color: var(--ink); }
.off-lesson-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 6px; font-size: 12.5px; color: var(--muted); }

.bb-done { background: var(--track) !important; color: var(--muted) !important; border-color: var(--line-strong) !important; box-shadow: none !important; }

/* ============ 首页课程卡片（cc-* 主流形态，清新蓝化） ============ */
.cc-cover {
  position: relative; aspect-ratio: 16 / 10; overflow: hidden;
  background: linear-gradient(135deg, #E7EDF6, #D3DFEF);
}
.cc-cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s ease; }
.course-card.cc-card:hover .cc-cover img { transform: scale(1.05); }
.cc-noimg { background: linear-gradient(135deg, #E7EDF6, #D3DFEF); }
.cc-initial {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 56px; font-weight: 800; color: rgba(255, 255, 255, .92); text-shadow: 0 1px 3px rgba(10, 26, 52, .18);
  opacity: 0; transition: opacity .2s;
}
.cc-noimg .cc-initial { opacity: 1; }
.cc-noimg img { display: none; }
.cc-dur {
  position: absolute; right: 10px; bottom: 10px; z-index: 1;
  font-size: 12px; line-height: 1; color: #fff; padding: 5px 9px;
  background: rgba(10, 16, 26, .68); border-radius: 6px;
}
.cc-state {
  position: absolute; left: 10px; top: 10px; z-index: 1;
  font-size: 12px; line-height: 1; color: var(--primary); padding: 5px 9px;
  background: rgba(255, 255, 255, .95); border: 1px solid #D4E2F7; border-radius: 6px;
}
.cc-state.done { color: #fff; background: var(--green); border-color: var(--green); }
.cc-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 7px; flex: 1; min-width: 0; }
.cc-tag {
  align-self: flex-start;
  font-size: 11.5px; line-height: 1; font-weight: 500;
  color: var(--primary-deep); background: var(--primary-tint);
  border: 1px solid rgba(47, 91, 219, .16);
  padding: 4px 9px; border-radius: 6px;
}
.cc-body h3 {
  font-size: 15.5px; font-weight: 600; line-height: 1.45; color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  transition: color .18s;
}
.cc-sub {
  font-size: 12.5px; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cc-foot {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  margin-top: auto; font-size: 12.5px; color: var(--ink-2);
}
.cc-teacher { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.cc-learners { flex: none; color: var(--muted); }
.cc-progress {
  height: 4px; background: var(--track); border-radius: 3px; margin-top: 8px; overflow: hidden;
}
.cc-progress i { display: block; height: 100%; background: var(--primary); border-radius: 3px; }
.course-card.cc-card:hover { border-color: #C6D4F5; }

/* ---- 继续学习横幅 ---- */
.continue-bar { margin-top: 22px; }
.continue-inner {
  display: flex; align-items: center; gap: 18px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px; cursor: pointer; transition: border-color .18s, box-shadow .18s;
  box-shadow: var(--shadow-sm);
}
.continue-inner:hover { border-color: #C6D4F5; box-shadow: var(--shadow); }
.continue-cover { position: relative; width: 132px; flex: none; aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; background: linear-gradient(135deg, #E7EDF6, #D3DFEF); }
.continue-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.continue-info { flex: 1; min-width: 0; }
.continue-label { font-size: 12px; color: var(--primary); font-weight: 600; margin-bottom: 4px; }
.continue-info h3 { font-size: 17px; font-weight: 700; margin-bottom: 4px; color: var(--ink); }
.continue-info p { font-size: 13px; color: var(--ink-2); margin-bottom: 10px; }
@media (max-width: 640px) {
  .continue-inner { flex-wrap: wrap; }
  .continue-cover { width: 100%; }
  .continue-inner .btn { width: 100%; }
}

/* ---- 我的学习 · 卡片列表 ---- */
.my-page .section-head { margin-bottom: 16px; }
.my-continue {
  display: block; text-decoration: none; color: inherit;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 18px 16px; margin-bottom: 18px;
  box-shadow: var(--shadow-sm); transition: border-color .18s, box-shadow .18s;
}
.my-continue:hover { border-color: #C6D4F5; box-shadow: var(--shadow); }
.my-continue-label {
  font-size: 13px; font-weight: 600; color: var(--primary); margin-bottom: 6px;
}
.my-continue-title {
  font-size: 18px; font-weight: 700; color: var(--ink); line-height: 1.4; margin-bottom: 8px;
}
.my-continue-meta {
  font-size: 13.5px; color: var(--ink-2); margin-bottom: 12px; line-height: 1.5;
}
.my-continue .cc-progress { height: 4px; margin-bottom: 14px; }
.my-continue-btn {
  display: flex; width: 100%; justify-content: center; align-items: center;
  min-height: 48px; font-size: 16px; pointer-events: none;
}
.my-list { display: flex; flex-direction: column; gap: 12px; }
.my-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: border-color .18s, box-shadow .18s;
}
.my-card:hover { border-color: #C6D4F5; box-shadow: var(--shadow); }
.my-card-main {
  display: block; padding: 16px 16px 12px; text-decoration: none; color: inherit;
}
.my-card-top {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 10px;
}
.my-card-top h3 {
  font-size: 16.5px; font-weight: 600; line-height: 1.4; color: var(--ink); flex: 1; min-width: 0;
}
.my-card-meta {
  display: flex; flex-wrap: wrap; gap: 6px 14px;
  font-size: 13px; color: var(--muted); margin-bottom: 12px;
}
.my-card .mini-progress { margin-bottom: 4px; }
.my-card-actions {
  display: flex; gap: 10px; padding: 0 16px 14px;
}
.my-card-actions .btn { flex: 1; min-height: 44px; justify-content: center; }
@media (min-width: 761px) {
  .my-continue-btn { width: auto; display: inline-flex; margin-top: 4px; }
  .my-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
}

/* ---- 吸底栏：开始学习后收起 ---- */
.course-bottombar {
  transition: transform .22s ease, opacity .22s ease;
}
.course-bottombar.is-hidden {
  transform: translateY(110%);
  opacity: 0;
  pointer-events: none;
}

/* ============ 移动端 / 小屏自适应 ============ */

/* ---- 中屏（平板，≤960px） ---- */
@media (max-width: 960px) {
  .hero { padding: 48px 0 56px; }
  .hero h1 { font-size: 34px; }
  .hero-inner { gap: 28px; }
  .hero-visual { width: 300px; }
  .hero-chip { font-size: 13px; padding: 9px 13px; }
  .stats-panel { padding: 28px 36px; }
  .stats-num { font-size: 26px; }
  .stats-item { min-width: 40%; }

  /* 课程播放页：侧栏移到主内容下方 */
  .course-layout { grid-template-columns: 1fr; }
  .side-card { position: static; }
  .toc-list { max-height: 300px; }

  /* 课程详情大封面：纵向堆叠 */
  .cover-main { flex-direction: column; align-items: flex-start; gap: 16px; padding: 22px 22px 18px; }
  .cover-actions { flex-direction: row; width: 100%; }
  .cover-actions .btn-cover-fav, .cover-actions .btn-cover-cta { flex: 1; white-space: normal; }
  .cover-progress { padding: 0 22px 22px; }
  .cover-title { font-size: 22px; }

  /* 管理后台 */
  .admin-body { padding: 20px 16px 60px; }
  .stats-row { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .stat-card { padding: 15px 16px 15px 0; gap: 12px; }
  th, td { padding: 11px 12px; font-size: 13.5px; }

  /* 弹窗适当收窄 */
  .modal-wide { max-width: 100%; }
}

/* ---- 手机（≤640px） ---- */
@media (max-width: 640px) {
  .container { padding: 0 14px; }

  /* 导航 */
  .nav-inner { gap: 8px; height: 54px; padding: 0 12px; }
  .logo { gap: 7px; }
  .logo-seal { width: 27px; height: 27px; font-size: 15px; border-radius: 8px; }
  .logo-name { font-size: 16px; }
  .nav-links { gap: 8px; min-width: 0; flex: 1 1 auto; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-link { font-size: 13.5px; white-space: nowrap; padding: 6px 1px; }
  .nav-user { gap: 6px; }
  .nav-user .btn-sm { padding: 6px 11px; font-size: 13px; border-radius: 9px; }
  .nav-right { gap: 6px; flex: none; }
  .nav-hello { display: none; }         /* 手机上只留按钮 */
  .admin-gear-txt { display: none; }
  .admin-gear { padding: 5px 7px; font-size: 12.5px; }

  /* 首页 Hero：手机端改为上下堆叠，插画保留并居中缩放显示 */
  .hero { padding: 36px 0 44px; }
  .hero-inner { padding: 0 14px; gap: 0; flex-direction: column; align-items: stretch; }
  .hero-badge { margin-bottom: 16px; font-size: 12px; }
  .hero h1 { font-size: 27px; }
  .hero-sub { font-size: 15px; margin-bottom: 20px; }
  .hero-ctas .btn { min-height: 48px; font-size: 16px; padding: 12px 20px; }
  .hero-visual { width: 100%; max-width: 340px; margin: 26px auto 0; align-self: center; }
  .hero-visual-card { padding: 14px; border-radius: 16px; }
  /* 徽章收进画面内，避免在小屏上溢出产生横向滚动 */
  .hero-chip { font-size: 12px; padding: 8px 12px; border-radius: 12px; gap: 7px; }
  .hero-chip svg { width: 17px; height: 17px; }
  .hero-chip.chip-a { top: 10px; right: 8px; }
  .hero-chip.chip-b { bottom: 14px; left: 8px; }

  /* 数据面板：2×2 */
  .stats-panel { padding: 24px 24px; gap: 18px 12px; border-radius: 18px; }
  .stats-item { min-width: 42%; }
  .stats-num { font-size: 23px; }
  .stats-label { font-size: 12px; }

  /* 区块与卡片网格 */
  .section { padding: 30px 0 44px; }
  .section-head { gap: 4px 10px; }
  .section-head h2 { font-size: 21px; }
  .section-head .muted { white-space: nowrap; font-size: 13px; margin-left: auto; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
  .card-body { padding: 15px 16px 17px; }
  .card-body h3 { font-size: 16.5px; }

  /* 筛选栏 */
  .course-toolbar { gap: 10px; }
  .course-search { margin-left: 0; width: 100%; min-width: 0; }
  .chip { padding: 7px 14px; font-size: 13px; }

  /* 登录 / 注册页 */
  .auth-page { padding: 24px 14px; min-height: calc(100vh - 54px); }
  .auth-shell { border-radius: 16px; }
  .auth-main { padding: 32px 22px; }
  .auth-box h2 { font-size: 23px; }
  .f-ctrl { height: 46px; }
  .f-submit { height: 48px; }
  .auth-card { padding: 26px 22px; }

  /* 表单：iOS 聚焦时字体 <16px 会自动放大页面，统一 16px */
  .field input, .field select, .field textarea,
  .f-ctrl input, .filter-bar select, .course-search {
    font-size: 16px;
  }

  /* 课程播放页 */
  .back { margin: 16px 0 12px; }
  .player-box video { aspect-ratio: 16/9; }
  .course-info { padding: 18px 16px; margin-top: 14px; }
  .course-info h1 { font-size: 19px; }
  .cover-title { font-size: 19px; }
  .cover-main { padding: 17px 17px 15px; }
  .cover-progress { padding: 0 17px 17px; }
  .cover-actions { flex-direction: column; }
  .pc-title { font-size: 18px; }

  /* 标签页可滑动 */
  .tabs { width: 100%; margin-bottom: 16px; }
  .tab, .tab-btn { padding: 8px 14px; font-size: 14px; }

  /* 介绍/资料/学员 */
  .intro-meta { grid-template-columns: 1fr; }
  .mini-progress { min-width: 90px; }
  .mini-progress .progress { width: 44px; }

  /* 管理后台 */
  .admin-topbar { padding: 0 14px; height: 54px; }
  .admin-topbar .t-logo { font-size: 15px; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .stat-card { padding: 14px 14px 14px 0; }
  .stat-card .v { font-size: 18px; }
  .filter-bar select { min-width: 0; flex: 1; }
  .toolbar-right { margin-left: 0; width: 100%; }
  .toolbar-right .btn { flex: 1; }

  /* 弹窗：手机上从底部弹出 */
  .modal-overlay { padding: 12px; align-items: flex-end; }
  .modal {
    max-height: 88vh;
    border-radius: 16px 16px 0 0;
    animation: slideUp .22s ease;
  }
  .modal-head { padding: 16px 18px 12px; }
  .modal-body { padding: 14px 18px; }
  .modal-foot { padding: 0 18px 16px; }
  .modal-foot .btn { flex: 1; }

  /* 证书 */
  .cert-inner { padding: 22px 16px; }
  .cert-head { gap: 12px; margin-bottom: 18px; }
  .cert-emblem { width: 48px; height: 48px; font-size: 23px; border-radius: 12px; }
  .cert-title { font-size: 19px; letter-spacing: 4px; }
  .cert-name { font-size: 21px; }
  .cert-course { font-size: 18px; }
  .cert-foot { flex-direction: column; gap: 12px; }

  /* 表格小字号 */
  th, td { padding: 10px 10px; font-size: 13px; }
  th { font-size: 12px; }

  /* 页脚 */
  .footer-grid { gap: 22px; grid-template-columns: 1fr 1fr; }
  .footer-grid .footer-col:first-child { grid-column: 1 / -1; }
  .site-footer a, .site-footer p { font-size: 14px; }

  /* Toast 位置避开导航 */
  #toastBox { top: 64px; width: calc(100% - 24px); }
  .toast { max-width: 100%; font-size: 13.5px; }
}

/* ---- 手机端加大字号与触控热区 ---- */
@media (max-width: 640px) {
  body { font-size: 16.5px; }
  .nav-link { font-size: 15px; padding: 10px 4px; min-height: 44px; display: inline-flex; align-items: center; }
  .nav-user .btn-sm { min-height: 40px; padding: 8px 14px; font-size: 14.5px; }
  .chip { font-size: 15.5px !important; padding: 12px 16px !important; min-height: 44px; }
  .course-search { min-height: 46px; font-size: 16px; }
  .hero h1 { font-size: 26px; }
  .hero-sub { font-size: 15.5px; }
  .section-head h2 { font-size: 21px; }
  .cc-body h3 { font-size: 16.5px; }
  .cc-sub, .cc-foot { font-size: 13.5px; }
  .tab, .tab-btn { font-size: 15.5px; padding: 12px 16px; min-height: 44px; }
  .toc-item { padding: 14px 12px; min-height: 52px; font-size: 15px; }
  .bb-fav, .bb-cta { min-height: 48px; font-size: 16px; }
  .cover-title { font-size: 21px; }
  .btn { min-height: 44px; }
  .btn-sm { min-height: 40px; }
  .my-continue-title { font-size: 19px; }
  .my-card-top h3 { font-size: 17px; }
}

/* ---- 超小屏（≤380px） ---- */
@media (max-width: 380px) {
  .nav-inner { gap: 6px; padding: 0 10px; }
  .logo-name { font-size: 15px; }
  .nav-link { font-size: 13px; }
  .nav-user .btn-sm { padding: 5px 8px; font-size: 12.5px; }
  .hero h1 { font-size: 23px; }
  .grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .hero-ctas .btn { width: 100%; }
  .stats-panel { padding: 20px 18px; }
  .stats-item { min-width: 100%; }
}

@keyframes slideUp { from { transform: translateY(24px); opacity: .6; } to { transform: none; opacity: 1; } }

/* ---- 触屏体验 ---- */
@media (hover: none) {
  .course-card:hover { transform: none; }   /* 触屏上去掉悬浮位移，避免点击时跳动 */
  .btn:hover { transform: none; }
}

/* ---- 课程页吸底操作条（手机端） ---- */
.course-bottombar { display: none; }
@media (max-width: 760px) {
  .course-bottombar {
    display: flex; gap: 12px; align-items: center;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: rgba(255, 255, 255, .95); backdrop-filter: blur(12px);
    border-top: 1px solid var(--line);
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -4px 16px rgba(23, 33, 74, .08);
  }
  .bb-fav {
    flex: none; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink-2);
    padding: 12px 17px; border-radius: 12px; font-size: 14px; cursor: pointer;
    font-family: inherit; font-weight: 500;
  }
  .bb-fav.faved { border-color: var(--primary); color: var(--primary); background: var(--primary-tint); }
  .bb-cta {
    flex: 1; border: none; background: var(--primary); color: #fff;
    padding: 12px 0; border-radius: 12px; font-size: 15px; font-weight: 600;
    cursor: pointer; font-family: inherit;
    box-shadow: var(--shadow-primary);
  }
  .bb-cta:active { transform: scale(.98); }

  /* 手机端：封面里的操作按钮由吸底条替代 */
  .cover-actions { display: none; }
  .cover-main { gap: 14px; }
  .course-page { padding-bottom: 120px; }
  .course-page:has(.course-bottombar.is-hidden) { padding-bottom: 28px; }
  .side-col { padding-bottom: 8px; }
  .toc-list { padding-bottom: 12px; max-height: none; }
  .cover-meta { gap: 4px 12px; font-size: 12.5px; line-height: 1.7; }
  .intro-item { flex-wrap: wrap; gap: 4px 10px; }
  .toc-item { padding: 9px 8px; }
}

/* ---- 线下培训 移动端（休眠保留） ---- */
@media (max-width: 640px) {
  .off-cover { padding: 18px 16px; }
  .off-title { font-size: 21px; }
  .off-stats { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .off-stat { padding: 12px 6px; }
  .off-stat-num { font-size: 21px; }
  .off-org { flex-direction: column; align-items: stretch; }
  .off-org-actions { width: 100%; }
  .off-org-btn { flex: 1; justify-content: center; }
  .off-info-row { flex-wrap: wrap; gap: 6px 10px; }
  .off-info-label { width: auto; }
  .off-enroll { width: 100%; }
}

/* ---- 管理后台 tabs：下划线式（仅后台区域） ---- */
.admin-body .tabs {
  display: flex; width: 100%; background: transparent; border: none;
  border-bottom: 1px solid var(--line); padding: 0; border-radius: 0;
  margin-bottom: 0; overflow: visible;
}
.admin-body .tab-btn { border-radius: 0; padding: 10px 18px; }
.admin-body .tab-btn.active {
  background: transparent; box-shadow: none; color: var(--primary);
  border-bottom: 2px solid var(--primary); border-radius: 0;
}
#tabContent { padding-top: 18px; }

/* ---- 打印（结业证书） ---- */
@media print {
  .cert { box-shadow: none; }
}

/* ---- 动效偏好：减少动画 ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* ---- 课程评价（2026-09-04） ---- */
.reviews-head { border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.review-sum { display: flex; align-items: baseline; gap: 10px; }
.review-num { font-size: 28px; font-weight: 700; color: var(--ink); line-height: 1; }
.stars { color: #f5a623; letter-spacing: 2px; font-size: 14px; white-space: nowrap; }
.review-list { margin-top: 6px; }
.review-item { padding: 14px 0; border-bottom: 1px solid #eef2f8; }
.review-item:last-child { border-bottom: none; }
.review-top { display: flex; align-items: center; gap: 10px; font-size: 13.5px; }
.review-top b { color: var(--ink); }
.review-top .muted { font-size: 12px; margin-left: auto; }
.review-content { margin-top: 7px; font-size: 14px; line-height: 1.7; color: var(--ink-2); white-space: pre-wrap; word-break: break-word; }
.review-form { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.review-form h4 { font-size: 14.5px; color: var(--ink); margin-bottom: 8px; }
.star-input { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; font-size: 26px; line-height: 1; color: #d8dee8; cursor: pointer; margin-bottom: 10px; }
.star-input span.on, .star-input span:hover { color: #f5a623; }
.review-form textarea {
  width: 100%; min-height: 74px; resize: vertical;
  border: 1px solid var(--line-strong); border-radius: 6px;
  padding: 10px 12px; font-size: 14px; font-family: inherit;
  color: var(--ink); outline: none;
}
.review-form textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(26, 115, 232, .1); }
.review-form .btn { margin-top: 10px; }

/* ---- 后台评价审核 ---- */
.tab-badge {
  display: inline-block; min-width: 16px; padding: 0 5px; margin-left: 6px;
  border-radius: 8px; background: var(--red); color: #fff;
  font-size: 11px; line-height: 16px; text-align: center; font-weight: 600;
}
.row-pending td { background: #fffbf0; }

/* 首页数据面板：单位放到数字旁 */
.stats-num-group { display: inline-flex; align-items: baseline; gap: 3px; }
.stats-unit { font-size: 20px; font-weight: 600; color: #fff; }
