/* ============================================================
   FastGPT 企业培训平台
   全局样式：设计令牌 / 组件 / 响应式 / 暗色主题
   视觉语言参考 FastGPT 官网（fastgpt.cn）：鲜明品牌蓝 + 浅蓝光效
   ============================================================ */

/* ---------- 1. 设计令牌 ---------- */
:root {
  --primary: #3370ff;
  --primary-600: #1f56d8;
  --primary-700: #1a45ad;
  --primary-50: #eef4ff;
  --primary-100: #dbe8ff;
  --primary-light: #8eaeff;
  --accent: #f59e0b;
  --accent-600: #d97706;
  --success: #10b981;
  --danger: #ef4444;
  --info: #0ea5e9;

  --bg: #f7f8fa;
  --surface: #ffffff;
  --surface-2: #f1f5f9;
  --surface-3: #e8edf5;
  --text: #0f172a;
  --text-2: #475569;
  --text-3: #94a3b8;
  --border: #e6eaf2;
  --border-2: #dbe2ee;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .05), 0 1px 6px rgba(15, 23, 42, .06);
  --shadow-md: 0 6px 16px -4px rgba(15, 23, 42, .10), 0 2px 6px rgba(15, 23, 42, .05);
  --shadow-lg: 0 20px 45px -12px rgba(15, 23, 42, .18);
  --shadow-primary: 0 10px 24px -8px rgba(51, 112, 255, .45);

  --nav-h: 68px;
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", -apple-system, "Segoe UI", sans-serif;
}

html[data-theme="dark"] {
  --bg: #060b18;
  --surface: #0e1628;
  --surface-2: #152036;
  --surface-3: #1c2a47;
  --text: #e8edf7;
  --text-2: #a8b3c9;
  --text-3: #6b7a96;
  --border: #1e2c4a;
  --border-2: #28395f;
  --primary-50: #14234d;
  --primary-100: #1c3168;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .35);
  --shadow-md: 0 8px 20px -6px rgba(0, 0, 0, .5);
  --shadow-lg: 0 24px 50px -12px rgba(0, 0, 0, .6);
}

/* ---------- 2. 基础 ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 15.5px;
  -webkit-font-smoothing: antialiased;
  transition: background .3s ease, color .3s ease;
}
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
::selection { background: rgba(51, 112, 255, .22); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-light); }
::-webkit-scrollbar-track { background: transparent; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 76px 0; }
.section-sm { padding: 48px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 38px; }
.section-kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--primary); margin-bottom: 10px; }
.section-kicker::before { content: ""; width: 22px; height: 3px; border-radius: 2px; background: linear-gradient(90deg, var(--primary), var(--primary-light)); }
.section-title { font-size: clamp(24px, 3vw, 34px); font-weight: 800; letter-spacing: -.02em; line-height: 1.25; }
.section-sub { color: var(--text-2); margin-top: 8px; max-width: 560px; }
.section-more { display: inline-flex; align-items: center; gap: 6px; color: var(--primary); font-weight: 600; white-space: nowrap; padding: 8px 4px; border-radius: 8px; transition: gap .2s ease; }
.section-more:hover { gap: 10px; }
.section-more svg { width: 16px; height: 16px; }
.grad-text { background: linear-gradient(92deg, var(--primary), var(--primary-light)); -webkit-background-clip: text; background-clip: text; color: transparent; }

.icon { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.icon-fill { fill: currentColor; stroke: none; }

/* ---------- 3. 按钮 / 徽章 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 22px; border-radius: 12px; font-weight: 600; font-size: 15px;
  border: 1.5px solid transparent; transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
  user-select: none; white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 6px 16px -6px rgba(51, 112, 255, .5); }
.btn-primary:hover { background: var(--primary-600); transform: translateY(-1px); box-shadow: 0 12px 24px -8px rgba(51, 112, 255, .55); }
.btn-outline { border-color: var(--border-2); color: var(--text); background: var(--surface); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-50); }
.btn-ghost { color: var(--text-2); }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); }
.btn-accent { background: linear-gradient(120deg, var(--accent), #f97316); color: #fff; box-shadow: 0 10px 24px -8px rgba(245, 158, 11, .5); }
.btn-accent:hover { transform: translateY(-1px); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-lg { padding: 14px 30px; font-size: 16px; border-radius: 14px; }
.btn-sm { padding: 7px 14px; font-size: 13.5px; border-radius: 9px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none !important; box-shadow: none; }

.badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; font-size: 12px; font-weight: 600; border-radius: 999px; background: var(--primary-50); color: var(--primary); }
.badge-amber { background: rgba(245, 158, 11, .14); color: var(--accent-600); }
.badge-green { background: rgba(16, 185, 129, .13); color: var(--success); }
.badge-red { background: rgba(239, 68, 68, .12); color: var(--danger); }
.badge-blue { background: rgba(14, 165, 233, .12); color: var(--info); }
.chip { padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--surface-2); color: var(--text-2); border: 1px solid var(--border); }

/* ---------- 4. 导航栏 ---------- */
.nav {
  position: sticky; top: 0; z-index: 100; height: var(--nav-h);
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: linear-gradient(90deg, transparent 8%, rgba(51, 112, 255, .4) 50%, transparent 92%); opacity: .55; pointer-events: none; }
.nav-inner { height: var(--nav-h); display: flex; align-items: center; gap: 28px; }
.nav-logo { display: flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 800; letter-spacing: -.01em; }
.nav-logo-mark { width: 36px; height: 36px; border-radius: 0; display: grid; place-items: center; color: var(--primary); background: transparent; box-shadow: none; overflow: hidden; }
.nav-logo-mark svg { width: 20px; height: 20px; }
.brand-logo-img { width: 36px; height: 36px; display: block; object-fit: contain; }
.nav-logo small { display: block; font-size: 10.5px; font-weight: 600; color: var(--text-3); letter-spacing: .14em; }
.nav-links { display: flex; align-items: center; gap: 4px; margin-right: auto; }
.nav-link { position: relative; padding: 9px 14px; border-radius: 10px; font-weight: 600; font-size: 15px; color: var(--text-2); transition: color .15s, background .15s; }
.nav-link:hover { color: var(--text); background: var(--surface-2); }
.nav-link.active { color: var(--primary); }
.nav-link.active::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 3px; border-radius: 2px; background: linear-gradient(90deg, var(--primary), var(--primary-light)); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-icon-btn { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; color: var(--text-2); border: 1px solid var(--border); background: var(--surface); transition: all .15s; }
.nav-icon-btn:hover { color: var(--primary); border-color: var(--primary); }
.nav-icon-btn .icon { width: 19px; height: 19px; }
.nav-toggle { display: none; }

/* 用户下拉 */
.user-menu { position: relative; }
.user-trigger { display: flex; align-items: center; gap: 9px; padding: 5px 10px 5px 6px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); transition: all .15s; }
.user-trigger:hover { border-color: var(--primary); }
.user-trigger .icon { width: 14px; height: 14px; color: var(--text-3); }
.user-name { font-weight: 700; font-size: 14px; max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dropdown { position: absolute; right: 0; top: calc(100% + 10px); min-width: 190px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 8px; opacity: 0; visibility: hidden; transform: translateY(-6px); transition: all .18s ease; z-index: 120; }
.user-menu.open .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a, .dropdown button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border-radius: 9px; font-size: 14.5px; font-weight: 500; color: var(--text-2); transition: all .12s; text-align: left; }
.dropdown a:hover, .dropdown button:hover { background: var(--surface-2); color: var(--text); }
.dropdown .icon { width: 16px; height: 16px; }
.dropdown hr { border: none; border-top: 1px solid var(--border); margin: 6px 4px; }

/* ---------- 5. 头像 ---------- */
.avatar { border-radius: 50%; display: inline-grid; place-items: center; color: #fff; font-weight: 700; flex: none; width: 38px; height: 38px; font-size: 15px; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .25); }
.avatar-sm { width: 26px; height: 26px; font-size: 11px; }
.avatar-lg { width: 84px; height: 84px; font-size: 32px; border-radius: 26px; }

/* ---------- 6. Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 88px 0 74px; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-bg::before { content: ""; position: absolute; width: 640px; height: 640px; right: -180px; top: -220px; border-radius: 50%; background: radial-gradient(circle, rgba(51, 112, 255, .20), transparent 65%); }
.hero-bg::after { content: ""; position: absolute; width: 520px; height: 520px; left: -200px; bottom: -260px; border-radius: 50%; background: radial-gradient(circle, rgba(245, 158, 11, .14), transparent 65%); }
.hero-grid-bg { position: absolute; inset: 0; background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px); background-size: 44px 44px; mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, #000 30%, transparent 75%); opacity: .5; }
.hero-inner { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); font-size: 13px; font-weight: 600; color: var(--text-2); margin-bottom: 22px; }
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, .5); } 50% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); } }
@keyframes glowPulse { 0%, 100% { opacity: .75; transform: scale(1); } 50% { opacity: 1; transform: scale(1.08); } }
@keyframes drift { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(26px, -20px); } }
.hero-title { font-size: clamp(34px, 4.6vw, 54px); font-weight: 800; line-height: 1.18; letter-spacing: -.03em; }
.hero-sub { margin: 20px 0 30px; font-size: 17px; color: var(--text-2); max-width: 520px; }
.hero-search { display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--border-2); border-radius: 16px; padding: 7px 7px 7px 18px; box-shadow: var(--shadow-md); max-width: 520px; transition: border-color .2s, box-shadow .2s; }
.hero-search:focus-within { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(51, 112, 255, .12); }
.hero-search .icon { color: var(--text-3); width: 20px; height: 20px; }
.hero-search input { flex: 1; border: none; outline: none; background: none; font-size: 15.5px; min-width: 0; }
.hero-hot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; font-size: 13px; color: var(--text-3); }
.hero-hot a { padding: 4px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); color: var(--text-2); transition: all .15s; }
.hero-hot a:hover { color: var(--primary); border-color: var(--primary); }
.hero-stats { display: flex; gap: 36px; margin-top: 40px; }
.hero-stat .num { font-size: 30px; font-weight: 800; letter-spacing: -.02em; }
.hero-stat .num em { font-style: normal; color: var(--primary); }
.hero-stat .label { font-size: 13px; color: var(--text-3); margin-top: 2px; }

/* Hero 视觉卡片 */
.hero-visual { position: relative; display: grid; gap: 16px; }
.hero-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 20px; }
.hero-card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.hero-card-head .t { font-weight: 700; }
.hero-card-head .s { font-size: 12.5px; color: var(--text-3); }
.hero-live { margin-left: auto; }
.hero-progress-row { display: flex; align-items: center; gap: 12px; margin-top: 12px; font-size: 13px; color: var(--text-2); }
.hero-progress-row .bar { flex: 1; height: 8px; border-radius: 6px; background: var(--surface-2); overflow: hidden; }
.hero-progress-row .bar i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--primary), var(--primary-light)); animation: grow 1.6s ease both; }
@keyframes grow { from { width: 0; } }
.hero-card-2 { width: 78%; justify-self: end; margin-top: -34px; }
.hero-float { position: absolute; left: -30px; bottom: 30px; display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg); border-radius: 14px; padding: 12px 16px; font-size: 13.5px; font-weight: 600; animation: float 5s ease-in-out infinite; }
.hero-float .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--accent), #f97316); }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---------- 7. 分类卡片 ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.cat-card { position: relative; display: flex; flex-direction: column; gap: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; overflow: hidden; transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.cat-card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, var(--c1, #3370ff), var(--c2, var(--primary-light))); opacity: 0; transition: opacity .25s ease; }
.cat-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: transparent; }
.cat-card:hover::before { opacity: 1; }
.cat-card > * { position: relative; }
.cat-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--c1, #3370ff), var(--c2, var(--primary-light))); transition: all .25s ease; }
.cat-icon svg { width: 23px; height: 23px; }
.cat-card:hover .cat-icon { background: rgba(255, 255, 255, .18); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .4); }
.cat-name { font-size: 16.5px; font-weight: 700; transition: color .2s; }
.cat-count { font-size: 13px; color: var(--text-3); transition: color .2s; }
.cat-card:hover .cat-name, .cat-card:hover .cat-count { color: #fff; }
.cat-arrow { position: absolute; right: 20px; bottom: 20px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--text-2); opacity: 0; transform: translateX(-6px); transition: all .22s ease; }
.cat-card:hover .cat-arrow { opacity: 1; transform: translateX(0); background: rgba(255, 255, 255, .2); color: #fff; }
.cat-arrow svg { width: 15px; height: 15px; }

/* ---------- 8. 课程卡片 ---------- */
.course-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.course-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.course-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.course-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.course-cover { position: relative; aspect-ratio: 16 / 8.6; display: flex; align-items: flex-end; padding: 14px; overflow: hidden; }
.cover-pattern { position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .22) 1.5px, transparent 1.5px); background-size: 18px 18px; opacity: .5; }
.cover-glow { position: absolute; width: 200px; height: 200px; right: -60px; top: -70px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .3), transparent 70%); }
.cover-icon { position: absolute; right: 14px; top: 14px; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: #fff; background: rgba(255, 255, 255, .16); backdrop-filter: blur(4px); }
.cover-icon svg { width: 20px; height: 20px; }
.course-badge { position: relative; padding: 4px 11px; border-radius: 999px; font-size: 12px; font-weight: 600; color: #fff; background: rgba(15, 23, 42, .32); backdrop-filter: blur(6px); }
.course-body { display: flex; flex-direction: column; gap: 10px; padding: 16px 18px 18px; flex: 1; }
.course-title { font-size: 16px; font-weight: 700; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.9em; transition: color .15s; }
.course-card:hover .course-title { color: var(--primary); }
.course-teacher { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); }
.course-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 12px; font-size: 12.5px; color: var(--text-3); }
.course-meta .meta-item { display: inline-flex; align-items: center; gap: 5px; }
.course-meta .icon { width: 14px; height: 14px; }
.rating { display: inline-flex; align-items: center; gap: 4px; color: var(--accent); font-weight: 700; }
.rating .icon { width: 14px; height: 14px; }
.course-footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 12px; border-top: 1px dashed var(--border); }
.price { font-size: 19px; font-weight: 800; color: #f43f5e; letter-spacing: -.01em; }
.price small { font-size: 12.5px; font-weight: 600; }
.price s { font-size: 12.5px; color: var(--text-3); font-weight: 500; margin-left: 6px; }
.price-free { font-size: 16px; font-weight: 800; color: var(--success); }

/* ---------- 9. 特色 / 讲师 / 评价 ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feature-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 24px; transition: transform .2s, box-shadow .2s; }
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.feature-icon { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; margin-bottom: 18px; color: var(--primary); background: var(--primary-50); }
.feature-icon svg { width: 25px; height: 25px; }
.feature-title { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.feature-desc { font-size: 14px; color: var(--text-2); }

.ins-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.ins-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 22px; text-align: center; transition: transform .2s, box-shadow .2s; cursor: pointer; }
.ins-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.ins-card .avatar-lg { margin: 0 auto 16px; }
.ins-name { font-size: 17.5px; font-weight: 800; }
.ins-title { font-size: 13px; color: var(--primary); font-weight: 600; margin: 3px 0 12px; }
.ins-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-bottom: 14px; }
.ins-stats { display: flex; justify-content: center; gap: 18px; font-size: 12.5px; color: var(--text-3); padding-top: 14px; border-top: 1px dashed var(--border); }
.ins-stats b { color: var(--text); font-size: 14px; }

/* 学员评价轮播 */
.testi-wrap { position: relative; overflow: hidden; border-radius: var(--radius-lg); }
.testi-track { display: flex; transition: transform .5s cubic-bezier(.22, .8, .3, 1); }
.testi-card { flex: 0 0 100%; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 44px clamp(24px, 6vw, 64px); text-align: center; }
.testi-quote { width: 44px; height: 44px; margin: 0 auto 18px; border-radius: 13px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--primary), var(--primary-light)); }
.testi-quote svg { width: 21px; height: 21px; }
.testi-text { font-size: clamp(16px, 2vw, 19px); font-weight: 500; line-height: 1.75; max-width: 720px; margin: 0 auto 24px; }
.testi-person { display: flex; align-items: center; justify-content: center; gap: 12px; }
.testi-person .who { text-align: left; }
.testi-person .n { font-weight: 700; }
.testi-person .r { font-size: 12.5px; color: var(--text-3); }
.testi-stars { display: flex; justify-content: center; gap: 3px; margin-bottom: 16px; color: var(--accent); }
.testi-stars svg { width: 17px; height: 17px; }
.testi-dots { display: flex; justify-content: center; gap: 8px; margin-top: 22px; }
.testi-dot { width: 8px; height: 8px; border-radius: 999px; background: var(--border-2); transition: all .25s; }
.testi-dot.active { width: 26px; background: var(--primary); }

/* ---------- 10. CTA / 页脚 ---------- */
.cta-banner { position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: clamp(40px, 6vw, 68px); background: linear-gradient(120deg, #101f4d, #1f56d8 48%, var(--primary)); color: #fff; text-align: center; }
.cta-banner::before { content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%; right: -140px; top: -180px; background: radial-gradient(circle, rgba(255, 255, 255, .18), transparent 65%); }
.cta-banner::after { content: ""; position: absolute; width: 320px; height: 320px; border-radius: 50%; left: -120px; bottom: -160px; background: radial-gradient(circle, rgba(142, 174, 255, .4), transparent 65%); }
.cta-title { position: relative; font-size: clamp(24px, 3.4vw, 36px); font-weight: 800; letter-spacing: -.02em; }
.cta-sub { position: relative; margin: 14px auto 30px; max-width: 560px; color: rgba(255, 255, 255, .82); }
.cta-actions { position: relative; display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.cta-banner .btn-outline { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .45); color: #fff; }
.cta-banner .btn-outline:hover { background: rgba(255, 255, 255, .2); color: #fff; }
.cta-banner .btn-accent { border: none; }

.footer { background: #020617; color: #97a3ba; margin-top: 80px; }
html[data-theme="dark"] .footer { background: #020617; border-top: 1px solid var(--border); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 36px; padding: 60px 0 40px; }
.footer-brand .nav-logo { color: #fff; margin-bottom: 16px; }
.footer-brand p { font-size: 13.5px; line-height: 1.8; max-width: 300px; }
.footer h4 { color: #fff; font-size: 15px; font-weight: 700; margin-bottom: 16px; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { font-size: 13.5px; transition: color .15s; }
.footer-links a:hover { color: #fff; }
.footer-contact li { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 13.5px; }
.footer-contact .icon { width: 15px; height: 15px; color: var(--primary); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); padding: 20px 0; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 12.5px; color: #64748b; }

/* 合作伙伴跑马灯 */
.partner-marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.partner-track { display: flex; gap: 56px; width: max-content; animation: marquee 30s linear infinite; }
.partner-marquee:hover .partner-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.partner-logo { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 800; color: var(--text-3); white-space: nowrap; transition: color .2s; }
.partner-logo:hover { color: var(--primary); }
.partner-logo .pl-mark { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-size: 13px; color: #fff; background: linear-gradient(135deg, var(--c1), var(--c2)); }

/* ---------- 11. 工具栏 / 筛选 / 分页 ---------- */
.page-hero { background: linear-gradient(160deg, var(--primary-50), var(--bg) 70%); border-bottom: 1px solid var(--border); padding: 46px 0 40px; }
html[data-theme="dark"] .page-hero { background: linear-gradient(160deg, #152a42, var(--bg) 75%); }
.page-hero h1 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; letter-spacing: -.02em; }
.page-hero p { color: var(--text-2); margin-top: 10px; max-width: 620px; }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-3); margin-bottom: 14px; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep { opacity: .6; }

.toolbar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 26px; box-shadow: var(--shadow-sm); }
.search-box { display: flex; align-items: center; gap: 9px; flex: 1; min-width: 220px; background: var(--surface-2); border: 1.5px solid var(--border); border-radius: 11px; padding: 9px 14px; transition: all .15s; }
.search-box:focus-within { border-color: var(--primary); background: var(--surface); }
.search-box .icon { width: 17px; height: 17px; color: var(--text-3); }
.search-box input { flex: 1; border: none; outline: none; background: none; font-size: 14.5px; min-width: 0; }
.select { position: relative; }
.select select { appearance: none; background: var(--surface-2); border: 1.5px solid var(--border); border-radius: 11px; padding: 9px 38px 9px 14px; font-size: 14px; font-weight: 600; color: var(--text-2); outline: none; cursor: pointer; transition: all .15s; }
.select select:focus, .select select:hover { border-color: var(--primary); }
.select::after { content: ""; position: absolute; right: 14px; top: 50%; width: 8px; height: 8px; border-right: 2px solid var(--text-3); border-bottom: 2px solid var(--text-3); transform: translateY(-70%) rotate(45deg); pointer-events: none; }

.filter-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.pill { padding: 8px 18px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--text-2); background: var(--surface); border: 1.5px solid var(--border); transition: all .16s; }
.pill:hover { border-color: var(--primary); color: var(--primary); }
.pill.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.result-info { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 20px; color: var(--text-2); font-size: 14px; }
.result-info b { color: var(--primary); }
.active-filters { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.filter-tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px 4px 12px; border-radius: 999px; background: var(--primary-50); color: var(--primary); font-size: 12.5px; font-weight: 600; }
.filter-tag button { display: grid; place-items: center; width: 17px; height: 17px; border-radius: 50%; background: rgba(51, 112, 255, .15); color: var(--primary); font-size: 11px; line-height: 1; }
.filter-tag button:hover { background: var(--primary); color: #fff; }

.pagination { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 40px; }
.page-btn { min-width: 40px; height: 40px; padding: 0 12px; border-radius: 11px; display: grid; place-items: center; font-weight: 600; font-size: 14px; color: var(--text-2); background: var(--surface); border: 1.5px solid var(--border); transition: all .15s; }
.page-btn:hover:not([disabled]) { border-color: var(--primary); color: var(--primary); }
.page-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.page-btn[disabled] { opacity: .4; cursor: not-allowed; }

.empty { text-align: center; padding: 70px 20px; color: var(--text-3); }
.empty-icon { width: 74px; height: 74px; margin: 0 auto 18px; border-radius: 22px; display: grid; place-items: center; background: var(--surface-2); color: var(--text-3); }
.empty-icon svg { width: 34px; height: 34px; }
.empty h3 { color: var(--text-2); font-size: 17px; margin-bottom: 6px; }
.empty p { font-size: 14px; margin-bottom: 20px; }

/* ---------- 12. 课程详情页 ---------- */
.detail-layout { display: grid; grid-template-columns: 1fr 360px; gap: 32px; align-items: start; }
.detail-cover { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16 / 7; display: flex; align-items: flex-end; padding: 28px; margin-bottom: 28px; }
.detail-cover .cover-title { position: relative; color: #fff; }
.detail-cover .cover-title .badges { display: flex; gap: 8px; margin-bottom: 14px; }
.detail-cover .cover-title .badges .badge { background: rgba(255, 255, 255, .18); color: #fff; backdrop-filter: blur(6px); }
.detail-cover h1 { position: relative; font-size: clamp(22px, 3vw, 32px); font-weight: 800; color: #fff; letter-spacing: -.01em; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 18px; color: var(--text-2); font-size: 14px; }
.detail-meta .meta-item { display: inline-flex; align-items: center; gap: 7px; }
.detail-meta .icon { width: 16px; height: 16px; color: var(--primary); }
.detail-meta .rating { font-size: 15px; }

.enroll-card { position: sticky; top: calc(var(--nav-h) + 20px); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow-md); }
.enroll-price { display: flex; align-items: baseline; gap: 10px; margin-bottom: 6px; }
.enroll-price .now { font-size: 34px; font-weight: 800; color: #f43f5e; letter-spacing: -.02em; }
.enroll-price .now small { font-size: 15px; }
.enroll-price .was { color: var(--text-3); font-size: 14px; }
.enroll-price .off { margin-left: auto; }
.enroll-note { font-size: 12.5px; color: var(--text-3); margin-bottom: 20px; }
.enroll-card .btn { margin-bottom: 10px; }
.enroll-includes { margin-top: 20px; padding-top: 18px; border-top: 1px dashed var(--border); }
.enroll-includes h4 { font-size: 14px; font-weight: 700; margin-bottom: 12px; }
.enroll-includes li { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--text-2); margin-bottom: 9px; }
.enroll-includes .icon { width: 15px; height: 15px; color: var(--success); }

.tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--border); margin-bottom: 26px; overflow-x: auto; }
.tab { position: relative; padding: 12px 18px; font-size: 15px; font-weight: 600; color: var(--text-2); white-space: nowrap; transition: color .15s; }
.tab:hover { color: var(--text); }
.tab.active { color: var(--primary); }
.tab.active::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -2px; height: 3px; border-radius: 3px 3px 0 0; background: var(--primary); }
.tab-panel { display: none; animation: fadeUp .3s ease; }
.tab-panel.active { display: block; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.prose { color: var(--text-2); line-height: 1.85; font-size: 15px; }
.prose p { margin-bottom: 14px; }
.prose h3 { color: var(--text); font-size: 18px; margin: 26px 0 12px; }
.outcome-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.outcome-item { display: flex; gap: 10px; align-items: flex-start; background: var(--surface-2); border-radius: 12px; padding: 13px 15px; font-size: 14px; }
.outcome-item .icon { width: 17px; height: 17px; color: var(--success); margin-top: 3px; }

.accordion { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.acc-item + .acc-item { border-top: 1px solid var(--border); }
.acc-head { display: flex; align-items: center; gap: 14px; width: 100%; padding: 18px 20px; text-align: left; transition: background .15s; }
.acc-head:hover { background: var(--surface-2); }
.acc-index { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-size: 13px; font-weight: 800; color: var(--primary); background: var(--primary-50); flex: none; }
.acc-title { flex: 1; font-weight: 700; font-size: 15px; }
.acc-count { font-size: 12.5px; color: var(--text-3); }
.acc-head .chev { transition: transform .25s; color: var(--text-3); }
.acc-item.open .acc-head .chev { transform: rotate(180deg); }
.acc-body { display: none; border-top: 1px dashed var(--border); background: var(--surface-2); }
.acc-item.open .acc-body { display: block; }
.lesson-row { display: flex; align-items: center; gap: 12px; padding: 13px 22px; font-size: 14px; color: var(--text-2); }
.lesson-row + .lesson-row { border-top: 1px dashed var(--border); }
.lesson-row .icon { width: 16px; height: 16px; color: var(--primary); }
.lesson-row .lt { flex: 1; }
.lesson-row .dur { font-size: 12.5px; color: var(--text-3); }
.lesson-row .try { font-size: 12px; font-weight: 700; color: var(--success); cursor: pointer; padding: 3px 10px; border-radius: 999px; background: rgba(16, 185, 129, .12); transition: all .15s; }
.lesson-row .try:hover { background: var(--success); color: #fff; }
.lesson-row .lock { color: var(--text-3); }

.review-item { display: flex; gap: 14px; padding: 20px 0; border-bottom: 1px dashed var(--border); }
.review-item:last-child { border-bottom: none; }
.review-body { flex: 1; }
.review-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.review-head .rn { font-weight: 700; font-size: 14.5px; }
.review-head .rd { font-size: 12.5px; color: var(--text-3); }
.review-stars { display: inline-flex; gap: 2px; color: var(--accent); }
.review-stars svg { width: 13px; height: 13px; }
.review-text { font-size: 14.5px; color: var(--text-2); line-height: 1.75; }
.review-form { background: var(--surface-2); border-radius: var(--radius); padding: 22px; margin-bottom: 26px; }
.star-input { display: inline-flex; gap: 4px; }
.star-input button { color: var(--border-2); transition: transform .12s, color .12s; padding: 2px; }
.star-input button:hover { transform: scale(1.2); }
.star-input button.on { color: var(--accent); }
.star-input svg { width: 26px; height: 26px; }

/* ---------- 13. 表单 ---------- */
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.form-label .req { color: var(--danger); margin-left: 3px; }
.form-input, .form-textarea, .form-select { width: 100%; padding: 12px 15px; border-radius: 12px; border: 1.5px solid var(--border-2); background: var(--surface); outline: none; font-size: 15px; transition: border-color .15s, box-shadow .15s; }
.form-input:focus, .form-textarea:focus, .form-select:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(51, 112, 255, .12); }
.form-input.invalid, .form-textarea.invalid { border-color: var(--danger); }
.form-textarea { resize: vertical; min-height: 110px; }
.form-error { display: none; font-size: 12.5px; color: var(--danger); margin-top: 6px; }
.form-group.error .form-error { display: block; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-hint { font-size: 13px; color: var(--text-3); }
.form-hint a { color: var(--primary); font-weight: 600; }
.password-wrap { position: relative; }
.password-wrap .form-input { padding-right: 46px; }
.password-toggle { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; color: var(--text-3); }
.password-toggle:hover { color: var(--primary); background: var(--surface-2); }
.password-toggle .icon { width: 18px; height: 18px; }

/* ---------- 14. 弹窗 / 通知 ---------- */
.modal-backdrop { position: fixed; inset: 0; z-index: 200; background: rgba(10, 15, 30, .55); backdrop-filter: blur(4px); display: grid; place-items: center; padding: 20px; opacity: 0; visibility: hidden; transition: opacity .22s ease, visibility .22s; }
.modal-backdrop.show { opacity: 1; visibility: visible; }
.modal { width: 100%; max-width: 560px; max-height: 86vh; overflow-y: auto; background: var(--surface); border-radius: var(--radius-lg); border: 1px solid var(--border); box-shadow: var(--shadow-lg); padding: 28px; transform: translateY(16px) scale(.97); transition: transform .25s cubic-bezier(.2, .8, .3, 1.1); }
.modal-backdrop.show .modal { transform: none; }
.modal-lg { max-width: 680px; }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.modal-title { font-size: 19px; font-weight: 800; letter-spacing: -.01em; }
.modal-close { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: var(--text-3); background: var(--surface-2); transition: all .15s; flex: none; }
.modal-close:hover { color: var(--danger); background: rgba(239, 68, 68, .1); }
.modal-close .icon { width: 17px; height: 17px; }

.toast-container { position: fixed; top: 84px; right: 22px; z-index: 300; display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 11px; min-width: 260px; max-width: 360px; padding: 13px 16px; border-radius: 13px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg); font-size: 14px; font-weight: 500; pointer-events: auto; animation: toastIn .3s cubic-bezier(.2, .8, .3, 1.15); }
.toast.hide { animation: toastOut .25s ease forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateX(30px); } }
@keyframes toastOut { to { opacity: 0; transform: translateX(30px); } }
.toast .t-icon { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; flex: none; color: #fff; }
.toast .t-icon svg { width: 15px; height: 15px; }
.toast.success .t-icon { background: var(--success); }
.toast.error .t-icon { background: var(--danger); }
.toast.info .t-icon { background: var(--primary); }

/* ---------- 15. 登录页 ---------- */
.auth-wrap { min-height: calc(100vh - var(--nav-h)); display: grid; grid-template-columns: 1fr 1fr; }
.auth-side { position: relative; overflow: hidden; background: linear-gradient(160deg, #0a1a4f 0%, #1f56d8 55%, var(--primary) 100%); color: #fff; padding: clamp(36px, 5vw, 70px); display: flex; flex-direction: column; justify-content: space-between; }
.auth-side::before { content: ""; position: absolute; width: 540px; height: 540px; border-radius: 50%; right: -180px; bottom: -220px; background: radial-gradient(circle, rgba(142, 174, 255, .38), transparent 65%); pointer-events: none; animation: glowPulse 7s ease-in-out infinite; }
.auth-side::after { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px); background-size: 44px 44px; mask-image: radial-gradient(ellipse 90% 85% at 75% 100%, #000 15%, transparent 78%); }
.auth-side > * { position: relative; z-index: 1; }
.auth-side h2 { position: relative; font-size: clamp(24px, 3vw, 34px); font-weight: 800; line-height: 1.35; margin-top: 40px; }
.auth-side p { position: relative; margin-top: 16px; color: rgba(255, 255, 255, .8); max-width: 420px; }
.auth-points { position: relative; display: grid; gap: 16px; margin-top: 36px; }
.auth-point { display: flex; gap: 13px; align-items: flex-start; animation: fadeUp .55s cubic-bezier(.2, .8, .3, 1) both; }
.auth-point:nth-child(2) { animation-delay: .1s; }
.auth-point:nth-child(3) { animation-delay: .2s; }
.auth-point .ic { width: 38px; height: 38px; border-radius: 11px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .18); display: grid; place-items: center; flex: none; backdrop-filter: blur(4px); transition: background .2s, transform .2s; }
.auth-point:hover .ic { background: rgba(255, 255, 255, .24); transform: translateY(-2px); }
.auth-point .ic svg { width: 18px; height: 18px; }
.auth-point b { display: block; font-size: 15px; }
.auth-point span { font-size: 13px; color: rgba(255, 255, 255, .72); }
.auth-main { display: flex; align-items: center; justify-content: center; padding: clamp(30px, 5vw, 60px); }
.auth-box { width: 100%; max-width: 420px; animation: fadeUp .45s ease both; }
.auth-box h1 { font-size: 27px; font-weight: 800; letter-spacing: -.02em; }
.auth-box .sub { color: var(--text-2); margin: 8px 0 28px; font-size: 14.5px; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; background: var(--surface-2); border-radius: 13px; padding: 5px; margin-bottom: 26px; }
.auth-tab { padding: 10px; border-radius: 9px; font-weight: 700; font-size: 14.5px; color: var(--text-2); text-align: center; transition: all .18s; }
.auth-tab.active { background: var(--surface); color: var(--primary); box-shadow: var(--shadow-sm); }
.auth-form { display: none; }
.auth-form.active { display: block; animation: fadeUp .3s ease; }

/* ---------- 16. 个人中心 ---------- */
.dash-head { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.dash-head .hello h1 { font-size: clamp(22px, 3vw, 30px); font-weight: 800; letter-spacing: -.02em; }
.dash-head .hello p { color: var(--text-2); margin-top: 4px; font-size: 14px; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 28px 0; }
.stat-card { display: flex; align-items: center; gap: 15px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.stat-card .si { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; color: #fff; flex: none; }
.stat-card .si svg { width: 22px; height: 22px; }
.stat-card .sv { font-size: 24px; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
.stat-card .sl { font-size: 12.5px; color: var(--text-3); }
.dash-grid { display: grid; grid-template-columns: 340px 1fr; gap: 24px; align-items: start; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.panel-title { display: flex; align-items: center; justify-content: space-between; font-size: 16.5px; font-weight: 800; margin-bottom: 18px; }
.panel-title .link { font-size: 13px; color: var(--primary); font-weight: 600; }

.donut-wrap { display: flex; align-items: center; gap: 22px; }
.donut { position: relative; width: 130px; height: 130px; border-radius: 50%; flex: none; display: grid; place-items: center; }
.donut::before { content: ""; position: absolute; inset: 13px; border-radius: 50%; background: var(--surface); }
.donut-val { position: relative; text-align: center; }
.donut-val b { font-size: 25px; font-weight: 800; letter-spacing: -.02em; }
.donut-val span { display: block; font-size: 11.5px; color: var(--text-3); }
.donut-legend { display: grid; gap: 10px; font-size: 13px; color: var(--text-2); }
.donut-legend .lg { display: flex; align-items: center; gap: 9px; }
.donut-legend .sw { width: 11px; height: 11px; border-radius: 4px; }

.bar-chart { display: flex; align-items: flex-end; gap: 12px; height: 150px; padding-top: 10px; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; height: 100%; justify-content: flex-end; }
.bar { width: 100%; max-width: 38px; border-radius: 8px 8px 4px 4px; background: linear-gradient(180deg, var(--primary-light), var(--primary)); min-height: 5px; transition: height .8s cubic-bezier(.2, .8, .3, 1); position: relative; }
.bar:hover { filter: brightness(1.15); }
.bar .tip { position: absolute; left: 50%; top: -28px; transform: translateX(-50%); background: var(--text); color: var(--bg); font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 7px; opacity: 0; white-space: nowrap; transition: opacity .15s; pointer-events: none; }
.bar:hover .tip { opacity: 1; }
.bar-day { font-size: 12px; color: var(--text-3); }

.my-course { display: flex; gap: 16px; padding: 16px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); transition: box-shadow .18s, transform .18s; }
.my-course:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.my-course + .my-course { margin-top: 14px; }
.mc-cover { width: 128px; aspect-ratio: 16/10; border-radius: 11px; flex: none; position: relative; overflow: hidden; }
.mc-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 7px; }
.mc-title { font-weight: 700; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mc-title:hover { color: var(--primary); }
.mc-meta { font-size: 12.5px; color: var(--text-3); }
.mc-progress { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.mc-progress .bar { flex: 1; height: 8px; background: var(--surface-2); border-radius: 6px; overflow: hidden; }
.mc-progress .bar i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--primary), var(--primary-light)); transition: width .6s ease; }
.mc-progress .pct { font-size: 13px; font-weight: 800; color: var(--primary); min-width: 42px; text-align: right; }
.mc-actions { display: flex; flex-direction: column; justify-content: center; gap: 8px; }

.cert-card { position: relative; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; background: linear-gradient(135deg, var(--primary-50), var(--surface) 60%); }
.cert-card + .cert-card { margin-top: 14px; }
.cert-card .stamp { position: absolute; right: 18px; top: 18px; width: 54px; height: 54px; border-radius: 50%; border: 2.5px dashed var(--accent); color: var(--accent); display: grid; place-items: center; font-size: 10px; font-weight: 800; transform: rotate(-14deg); opacity: .85; }
.cert-card .cn { font-weight: 800; font-size: 15.5px; margin-bottom: 6px; padding-right: 70px; }
.cert-card .ci { font-size: 13px; color: var(--text-2); }
.cert-card .cd { font-size: 12.5px; color: var(--text-3); margin-top: 8px; }

/* ---------- 17. 企业定制 / 资讯 ---------- */
.sol-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.sol-card { position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: 30px; color: #fff; min-height: 210px; display: flex; flex-direction: column; }
.sol-card::after { content: ""; position: absolute; width: 240px; height: 240px; border-radius: 50%; right: -80px; top: -90px; background: radial-gradient(circle, rgba(255, 255, 255, .22), transparent 70%); }
.sol-card h3 { position: relative; font-size: 20px; font-weight: 800; margin-bottom: 10px; }
.sol-card p { position: relative; color: rgba(255, 255, 255, .85); font-size: 14px; flex: 1; }
.sol-card .tags { position: relative; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.sol-card .tags span { font-size: 12.5px; font-weight: 600; padding: 4px 12px; border-radius: 999px; background: rgba(255, 255, 255, .16); }

.step-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
.step-card { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 22px; }
.step-num { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; font-size: 17px; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--primary), var(--primary-light)); margin-bottom: 16px; }
.step-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 7px; }
.step-card p { font-size: 13.5px; color: var(--text-2); }

.news-feature { display: grid; grid-template-columns: 1.1fr 1fr; gap: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 30px; cursor: pointer; transition: box-shadow .2s; }
.news-feature:hover { box-shadow: var(--shadow-lg); }
.news-feature .nf-cover { position: relative; min-height: 280px; }
.news-feature .nf-body { padding: 34px; display: flex; flex-direction: column; gap: 14px; justify-content: center; }
.news-feature h2 { font-size: clamp(19px, 2.4vw, 25px); font-weight: 800; line-height: 1.4; letter-spacing: -.01em; }
.news-feature p { color: var(--text-2); font-size: 14.5px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.news-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; cursor: pointer; transition: transform .2s, box-shadow .2s; }
.news-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.news-cover { position: relative; aspect-ratio: 16/8; display: flex; align-items: flex-end; padding: 14px; }
.news-body { padding: 18px 20px 20px; }
.news-body h3 { font-size: 16px; font-weight: 700; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 10px; }
.news-card:hover .news-body h3 { color: var(--primary); }
.news-body p { font-size: 13.5px; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 14px; }
.news-meta { display: flex; align-items: center; gap: 14px; font-size: 12.5px; color: var(--text-3); }
.news-meta .meta-item { display: inline-flex; align-items: center; gap: 5px; }
.news-meta .icon { width: 13px; height: 13px; }
.article-body h2 { font-size: 22px; font-weight: 800; line-height: 1.5; margin-bottom: 6px; }
.article-body .article-meta { display: flex; gap: 16px; color: var(--text-3); font-size: 13px; margin: 12px 0 22px; }
.article-body p { color: var(--text-2); line-height: 1.95; margin-bottom: 16px; font-size: 15px; }

/* ---------- 18. 讲师弹窗 ---------- */
.ins-modal-head { display: flex; gap: 18px; align-items: center; margin-bottom: 20px; }
.ins-modal-head .nm { font-size: 21px; font-weight: 800; }
.ins-modal-head .tt { color: var(--primary); font-size: 13.5px; font-weight: 600; margin-top: 2px; }
.ins-modal-stats { display: flex; gap: 24px; padding: 16px 0; border-top: 1px dashed var(--border); border-bottom: 1px dashed var(--border); margin-bottom: 18px; }
.ins-modal-stats .st b { font-size: 19px; font-weight: 800; }
.ins-modal-stats .st span { display: block; font-size: 12px; color: var(--text-3); }
.ins-course-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 14px; border-radius: 11px; transition: background .15s; }
.ins-course-list li:hover { background: var(--surface-2); }
.ins-course-list a { font-weight: 600; font-size: 14.5px; }
.ins-course-list a:hover { color: var(--primary); }
.ins-course-list .rating { font-size: 13px; }

/* ---------- 19. 滚动动效 / 回到顶部 ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .8, .3, 1); }
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .08s; }
.reveal-d2 { transition-delay: .16s; }
.reveal-d3 { transition-delay: .24s; }

.back-top { position: fixed; right: 24px; bottom: 24px; z-index: 90; width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--border); color: var(--text-2); box-shadow: var(--shadow-md); opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .25s; }
.back-top.show { opacity: 1; visibility: visible; transform: none; }
.back-top:hover { color: var(--primary); border-color: var(--primary); }
.back-top .icon { width: 19px; height: 19px; }

/* ---------- 20. 响应式 ---------- */
@media (max-width: 1080px) {
  .course-grid, .cat-grid, .feature-grid, .ins-grid { grid-template-columns: repeat(3, 1fr); }
  .course-grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .detail-layout { grid-template-columns: 1fr; }
  .enroll-card { position: static; }
  .dash-grid { grid-template-columns: 1fr; }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .step-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .section { padding: 54px 0; }
  .nav-links { position: fixed; top: var(--nav-h); left: 0; right: 0; z-index: 99; flex-direction: column; align-items: stretch; gap: 4px; background: var(--surface); border-bottom: 1px solid var(--border); box-shadow: var(--shadow-lg); padding: 14px 20px 20px; display: none; }
  .nav-links.open { display: flex; }
  .nav-link { padding: 13px 14px; font-size: 16px; }
  .nav-link.active::after { display: none; }
  .nav-toggle { display: grid; }
  .hero { padding: 56px 0 50px; }
  .hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .hero-visual { max-width: 480px; }
  .hero-stats { gap: 22px; flex-wrap: wrap; }
  .course-grid, .cat-grid, .feature-grid, .ins-grid, .news-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .news-feature { grid-template-columns: 1fr; }
  .news-feature .nf-cover { min-height: 200px; }
  .sol-grid { grid-template-columns: 1fr; }
  .outcome-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  body { font-size: 15px; }
  .container { padding: 0 16px; }
  .course-grid, .cat-grid, .feature-grid, .ins-grid, .news-grid, .course-grid.cols-3, .step-grid, .form-row { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .hero-search { flex-wrap: wrap; padding: 10px; }
  .hero-search input { width: 100%; flex: none; padding: 6px 8px; }
  .hero-search .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  .my-course { flex-direction: column; }
  .mc-cover { width: 100%; }
  .mc-actions { flex-direction: row; }
  .donut-wrap { flex-direction: column; }
  .testi-card { padding: 30px 22px; }
  .stat-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .detail-cover { aspect-ratio: 16/10; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   21. 录播课程中心：课程卡状态 / 播放页 / 播放器 / 目录 / 笔记
   ============================================================ */

/* 课程卡：已报名角标与进度条 */
.enrolled-badge { position: absolute; left: 12px; top: 12px; display: inline-flex; align-items: center; gap: 5px; padding: 4px 11px; border-radius: 999px; font-size: 12px; font-weight: 700; color: #fff; background: rgba(16, 185, 129, .92); backdrop-filter: blur(4px); box-shadow: 0 4px 12px rgba(0, 0, 0, .18); }
.enrolled-badge .icon { width: 13px; height: 13px; }
.cover-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: rgba(255, 255, 255, .28); }
.cover-progress i { display: block; height: 100%; background: linear-gradient(90deg, #34d399, #10b981); border-radius: 0 3px 3px 0; }

/* 详情页讲师信息条 */
.teacher-strip { display: flex; align-items: center; gap: 14px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; margin-top: 22px; }
.teacher-strip .tn { font-weight: 800; font-size: 15px; }
.teacher-strip .tt { font-size: 12.5px; color: var(--text-3); margin-top: 1px; }
.teacher-strip .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-left: auto; }

/* 首页学习步骤（3 列） */
.step-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.step-card .step-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-size: 13.5px; font-weight: 700; color: var(--primary); }
.step-card .step-link svg { width: 14px; height: 14px; }

/* 继续学习卡（Hero 登录态） */
.continue-card .cc-course { font-size: 17px; font-weight: 800; margin-bottom: 4px; }
.continue-card .cc-lesson { font-size: 13px; color: var(--text-2); display: flex; align-items: center; gap: 7px; }
.continue-card .cc-lesson .icon { width: 14px; height: 14px; color: var(--primary); }
.continue-card .cc-bar { height: 9px; border-radius: 6px; background: var(--surface-2); overflow: hidden; margin: 14px 0 6px; }
.continue-card .cc-bar i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--primary), var(--primary-light)); }
.continue-card .cc-pct { font-size: 12.5px; color: var(--text-3); margin-bottom: 16px; }
.continue-card .cc-pct b { color: var(--primary); }

/* ---------- 播放页布局 ---------- */
.watch-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; flex-wrap: wrap; position: relative; z-index: 3; }
.watch-head-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.watch-toggle { min-width: 118px; }
.watch-toggle .icon { width: 15px; height: 15px; }
.watch-wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 24px; padding: 26px 0 60px; align-items: start; transition: grid-template-columns .25s ease; }
.watch-wrap.is-collapsed { grid-template-columns: minmax(0, 1fr) 56px; }
.watch-main { min-width: 0; }
.watch-drawer-mask { display: none; }
.watch-back { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 600; color: var(--text-2); padding: 7px 13px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); transition: all .15s; }
.watch-back:hover { color: var(--primary); border-color: var(--primary); }
.watch-back .icon { width: 15px; height: 15px; transform: rotate(180deg); }
.watch-titles { min-width: 0; flex: 1; }
.watch-titles .wc { font-size: 12.5px; color: var(--text-3); }
.watch-titles .wl { font-size: 16.5px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- 播放器 ---------- */
.player { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); user-select: none; }
.player video { position: absolute; inset: 0; width: 100%; height: 100%; }
.player-poster { position: absolute; inset: 0; display: grid; place-items: center; transition: opacity .3s; }
.player-poster .cover-pattern { opacity: .35; }
.player-poster.hide { opacity: 0; pointer-events: none; }
.player-poster .pp-info { position: relative; text-align: center; color: #fff; padding: 0 30px; }
.player-poster .pp-course { font-size: 13px; opacity: .75; margin-bottom: 8px; }
.player-poster .pp-lesson { font-size: clamp(16px, 2.2vw, 22px); font-weight: 800; }

.player-center { position: absolute; inset: 0; display: grid; place-items: center; cursor: pointer; transition: opacity .25s; }
.player-center.hide { opacity: 0; pointer-events: none; }
.player-center .pc-btn { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: rgba(255, 255, 255, .16); border: 1.5px solid rgba(255, 255, 255, .55); backdrop-filter: blur(6px); transition: transform .2s, background .2s; }
.player-center:hover .pc-btn { transform: scale(1.08); background: rgba(51, 112, 255, .75); }
.player-center .pc-btn svg { width: 30px; height: 30px; margin-left: 3px; }

.player-loading { position: absolute; inset: 0; display: none; place-items: center; pointer-events: none; }
.player-loading.show { display: grid; }
.player-loading .spinner { width: 46px; height: 46px; border-radius: 50%; border: 3.5px solid rgba(255, 255, 255, .2); border-top-color: #fff; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.player-flash { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.player-flash span { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: rgba(15, 23, 42, .55); opacity: 0; transform: scale(.7); }
.player-flash span svg { width: 26px; height: 26px; }
.player-flash.go span { animation: flash .5s ease; }
@keyframes flash { 20% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1.15); } }

.sim-badge { position: absolute; top: 12px; left: 12px; z-index: 6; display: none; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; font-size: 11.5px; font-weight: 700; color: #fff; background: rgba(245, 158, 11, .92); }
.sim-badge.show { display: inline-flex; }

/* 控制栏 */
.player-controls { position: absolute; left: 0; right: 0; bottom: 0; z-index: 5; padding: 26px 16px 12px; background: linear-gradient(transparent, rgba(5, 8, 18, .82)); opacity: 0; transition: opacity .25s; }
.player:hover .player-controls, .player.paused .player-controls, .player.show-ctrls .player-controls { opacity: 1; }
.pbar { position: relative; height: 14px; display: flex; align-items: center; cursor: pointer; }
.pbar::before { content: ""; position: absolute; left: 0; right: 0; height: 4.5px; border-radius: 4px; background: rgba(255, 255, 255, .24); transition: height .12s; }
.pbar:hover::before { height: 6.5px; }
.pbar-buffered { position: absolute; left: 0; height: 4.5px; border-radius: 4px; background: rgba(255, 255, 255, .38); width: 0; }
.pbar-played { position: absolute; left: 0; height: 4.5px; border-radius: 4px; background: linear-gradient(90deg, var(--primary), var(--primary-light)); width: 0; }
.pbar:hover .pbar-buffered, .pbar:hover .pbar-played { height: 6.5px; }
.pbar-handle { position: absolute; right: -7px; top: 50%; width: 14px; height: 14px; border-radius: 50%; background: #fff; transform: translateY(-50%) scale(0); transition: transform .12s; box-shadow: 0 1px 6px rgba(0, 0, 0, .4); }
.pbar:hover .pbar-handle { transform: translateY(-50%) scale(1); }
.pbar-tip { position: absolute; bottom: 20px; transform: translateX(-50%); background: rgba(15, 23, 42, .9); color: #fff; font-size: 11.5px; font-weight: 600; padding: 3px 9px; border-radius: 7px; opacity: 0; pointer-events: none; white-space: nowrap; }
.pbar:hover .pbar-tip { opacity: 1; }
.ctrl-row { display: flex; align-items: center; gap: 4px; margin-top: 6px; }
.pbtn { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: #fff; transition: background .15s; position: relative; }
.pbtn:hover { background: rgba(255, 255, 255, .16); }
.pbtn .icon { width: 19px; height: 19px; }
.pbtn.wide { width: auto; padding: 0 12px; font-size: 13px; font-weight: 700; gap: 5px; }
.ptime { color: rgba(255, 255, 255, .9); font-size: 12.5px; font-variant-numeric: tabular-nums; margin: 0 10px; white-space: nowrap; }
.ctrl-spacer { flex: 1; }
.vol-wrap { display: flex; align-items: center; gap: 2px; }
.vol-slider { width: 0; overflow: hidden; transition: width .2s; display: flex; align-items: center; }
.vol-wrap:hover .vol-slider, .vol-slider:focus-within { width: 74px; }
.vol-slider input { width: 66px; accent-color: var(--primary); cursor: pointer; }

/* 倍速菜单 */
.speed-menu { position: absolute; bottom: 52px; right: 76px; z-index: 8; background: rgba(13, 20, 38, .96); border: 1px solid rgba(255, 255, 255, .12); border-radius: 12px; padding: 6px; display: none; min-width: 108px; }
.speed-menu.show { display: block; }
.speed-menu button { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 8px 12px; border-radius: 8px; color: rgba(255, 255, 255, .8); font-size: 13px; font-weight: 600; transition: all .12s; }
.speed-menu button:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.speed-menu button.on { color: var(--primary-light); }
.speed-menu button.on::after { content: "✓"; }

/* 结束 / 错误遮罩 */
.player-overlay { position: absolute; inset: 0; z-index: 7; display: none; place-items: center; background: rgba(8, 12, 26, .82); backdrop-filter: blur(6px); color: #fff; text-align: center; padding: 24px; }
.player-overlay.show { display: grid; }
.player-overlay h3 { font-size: 18px; font-weight: 800; margin-bottom: 8px; }
.player-overlay p { font-size: 13.5px; color: rgba(255, 255, 255, .7); margin-bottom: 20px; }
.player-overlay .ov-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.player-overlay .count { font-size: 40px; font-weight: 800; color: var(--primary-light); margin-bottom: 6px; font-variant-numeric: tabular-nums; }
.btn-light { background: #fff; color: #111827; }
.btn-light:hover { background: #e5e7eb; }
.btn-glass { background: rgba(255, 255, 255, .14); color: #fff; border: 1px solid rgba(255, 255, 255, .3); }
.btn-glass:hover { background: rgba(255, 255, 255, .24); }

/* 课时信息条 + 上下课 */
.lesson-bar { display: flex; align-items: center; gap: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 15px 18px; margin-top: 16px; flex-wrap: wrap; }
.lesson-bar .lb-info { flex: 1; min-width: 200px; }
.lesson-bar .lb-ch { font-size: 12px; color: var(--text-3); }
.lesson-bar .lb-title { font-weight: 800; font-size: 15px; }
.lesson-bar .lb-actions { display: flex; gap: 10px; }

/* 笔记面板 */
.notes-panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; margin-top: 16px; }
.notes-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.notes-head .nt { font-size: 15.5px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.notes-head .nt .icon { width: 17px; height: 17px; color: var(--primary); }
.note-add { display: flex; gap: 10px; margin-bottom: 6px; }
.note-add .time-chip { flex: none; align-self: flex-start; margin-top: 8px; }
.note-add textarea { flex: 1; }
.note-item { display: flex; gap: 12px; padding: 12px 4px; border-top: 1px dashed var(--border); align-items: flex-start; }
.note-item .time-chip { flex: none; margin-top: 2px; }
.time-chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 8px; background: var(--primary-50); color: var(--primary); font-size: 12px; font-weight: 800; font-variant-numeric: tabular-nums; cursor: pointer; border: none; transition: all .15s; }
.time-chip:hover { background: var(--primary); color: #fff; }
.note-item .nt-text { flex: 1; font-size: 14px; color: var(--text-2); line-height: 1.7; word-break: break-word; }
.note-item .nt-del { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; color: var(--text-3); flex: none; }
.note-item .nt-del:hover { color: var(--danger); background: rgba(239, 68, 68, .1); }
.note-item .nt-del .icon { width: 14px; height: 14px; }
.notes-empty { padding: 18px 4px 6px; font-size: 13.5px; color: var(--text-3); }

/* 右侧课程目录 */
.watch-side { position: sticky; top: calc(var(--nav-h) + 16px); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; max-height: calc(100vh - var(--nav-h) - 40px); transition: transform .25s ease, opacity .25s ease, width .25s ease; }
.watch-wrap.is-collapsed .watch-side { width: 56px; opacity: .95; }
.watch-wrap.is-collapsed .watch-side .playlist-head,
.watch-wrap.is-collapsed .watch-side .playlist { opacity: 0; pointer-events: none; }
.playlist-head { padding: 18px 20px 14px; border-bottom: 1px solid var(--border); }
.playlist-head .pt { font-size: 15.5px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.playlist-head .pt .icon { width: 17px; height: 17px; color: var(--primary); }
.playlist-head .pp { display: flex; align-items: center; gap: 10px; margin-top: 12px; font-size: 12px; color: var(--text-3); }
.playlist-head .pp .bar { flex: 1; height: 7px; border-radius: 5px; background: var(--surface-2); overflow: hidden; }
.playlist-head .pp .bar i { display: block; height: 100%; border-radius: 5px; background: linear-gradient(90deg, #34d399, #10b981); transition: width .5s; }
.playlist-head .pp b { color: var(--success); }
.playlist { overflow-y: auto; padding: 8px; }
.pl-chapter { font-size: 12px; font-weight: 700; color: var(--text-3); padding: 12px 12px 6px; letter-spacing: .04em; }
.pl-lesson { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border-radius: 10px; text-align: left; transition: background .13s; color: var(--text-2); }
.pl-lesson:hover { background: var(--surface-2); }
.pl-lesson .st { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; flex: none; font-size: 10.5px; font-weight: 800; background: var(--surface-2); color: var(--text-3); }
.pl-lesson .st .icon { width: 12px; height: 12px; }
.pl-lesson .lt { flex: 1; font-size: 13.5px; font-weight: 500; line-height: 1.4; min-width: 0; }
.pl-lesson .dur { font-size: 11.5px; color: var(--text-3); flex: none; font-variant-numeric: tabular-nums; }
.pl-lesson.done .st { background: rgba(16, 185, 129, .14); color: var(--success); }
.pl-lesson.current { background: var(--primary-50); box-shadow: inset 2.5px 0 0 var(--primary); }
.pl-lesson.current .st { background: var(--primary); color: #fff; }
.pl-lesson.current .lt { color: var(--primary); font-weight: 700; }
.pl-lesson.locked { opacity: .55; cursor: not-allowed; }
.pl-lesson .free-tag { flex: none; font-size: 10.5px; font-weight: 700; color: var(--success); background: rgba(16, 185, 129, .12); padding: 2px 8px; border-radius: 999px; }

/* 播放页响应式 */
@media (max-width: 1080px) {
  .watch-head-actions { width: 100%; margin-left: 0; }
  .watch-toggle { width: 100%; justify-content: center; }
  .watch-wrap { grid-template-columns: 1fr; }
  .watch-wrap.is-collapsed { grid-template-columns: 1fr; }
  .watch-side {
    position: fixed;
    right: 16px;
    top: calc(var(--nav-h) + 12px);
    bottom: 16px;
    width: min(420px, calc(100vw - 32px));
    max-height: none;
    z-index: 120;
    box-shadow: var(--shadow-lg);
    transform: translateX(0);
  }
  .watch-wrap.is-collapsed .watch-side {
    transform: translateX(calc(100% + 24px));
    opacity: 0;
    pointer-events: none;
    width: min(420px, calc(100vw - 32px));
  }
  .watch-drawer-mask.show {
    display: block;
    position: fixed;
    inset: var(--nav-h) 0 0 0;
    z-index: 110;
    background: rgba(15, 23, 42, .26);
    backdrop-filter: blur(2px);
  }
  .step-grid.cols-3 { grid-template-columns: 1fr; }
  .teacher-strip { flex-wrap: wrap; }
  .teacher-strip .tags { margin-left: 0; }
}
@media (max-width: 560px) {
  .watch-wrap { padding-top: 16px; }
  .watch-side { right: 12px; top: calc(var(--nav-h) + 8px); bottom: 12px; width: calc(100vw - 24px); }
  .watch-wrap.is-collapsed .watch-side { transform: translateX(calc(100% + 16px)); width: calc(100vw - 24px); }
  .ptime { margin: 0 4px; font-size: 11.5px; }
  .vol-slider { display: none; }
  .lesson-bar .lb-actions { width: 100%; }
  .lesson-bar .lb-actions .btn { flex: 1; }
  .note-add { flex-direction: column; }
}

/* ============================================================
   22. B2B 交付平台：后台布局 / 表格 / KPI / 水印 / 证书 / 入口页
   ============================================================ */
.badge-gray { background: var(--surface-2); color: var(--text-2); }
.badge-primary { background: var(--primary-50); color: var(--primary); }
.btn-spinner { width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; animation: spin .7s linear infinite; }
.page-loading { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 80px 0; color: var(--text-3); font-size: 14px; }
.spinner-lg { width: 26px; height: 26px; border-radius: 50%; border: 3px solid var(--border-2); border-top-color: var(--primary); animation: spin .8s linear infinite; }
.modal-sm { max-width: 420px; }

/* ---------- 后台布局 ---------- */
.app-layout { display: grid; grid-template-columns: 232px 1fr; min-height: 100vh; }
.sidebar { background: var(--surface); border-right: 1px solid var(--border); display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; }
.side-brand { display: flex; align-items: center; gap: 10px; padding: 18px 18px 16px; border-bottom: 1px solid var(--border); }
.side-brand-t { font-weight: 800; font-size: 15px; line-height: 1.3; }
.side-brand-t small { display: block; font-size: 11px; font-weight: 600; color: var(--text-3); letter-spacing: .06em; }
.side-nav { flex: 1; overflow-y: auto; padding: 12px 10px; display: flex; flex-direction: column; gap: 2px; }
.side-link { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 10px; font-size: 14px; font-weight: 600; color: var(--text-2); transition: all .13s; }
.side-link .icon { width: 17px; height: 17px; color: var(--text-3); }
.side-link:hover { background: var(--surface-2); color: var(--text); }
.side-link.active { background: linear-gradient(90deg, var(--primary-50), transparent 140%); color: var(--primary); box-shadow: inset 2.5px 0 0 var(--primary); }
.side-link.active .icon { color: var(--primary); }
.side-foot { border-top: 1px solid var(--border); padding: 12px; }
.side-user { display: flex; align-items: center; gap: 10px; padding: 4px 6px 10px; }
.side-user-info { min-width: 0; }
.side-user-info b { display: block; font-size: 13px; }
.side-user-info i { display: block; font-style: normal; font-size: 11.5px; color: var(--text-3); }
.side-logout { display: flex; align-items: center; gap: 9px; width: 100%; padding: 9px 12px; border-radius: 9px; font-size: 13.5px; font-weight: 600; color: var(--text-2); }
.side-logout:hover { background: rgba(239,68,68,.08); color: var(--danger); }
.side-logout .icon { width: 16px; height: 16px; }

.app-main { padding: 26px 30px 60px; min-width: 0; background: var(--bg); }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head h1 { font-size: 21px; font-weight: 800; letter-spacing: -.01em; }
.page-head p { color: var(--text-2); font-size: 13.5px; margin-top: 5px; }
.page-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- KPI 指标卡 ---------- */
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 14px; margin-bottom: 26px; }
.kpi-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; transition: border-color .2s, box-shadow .2s, transform .2s; }
.kpi-card:hover { border-color: var(--primary-100); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.kpi-card .kv { font-size: 26px; font-weight: 800; letter-spacing: -.02em; line-height: 1.25; }
.kpi-card .kl { font-size: 12.5px; color: var(--text-3); margin-top: 3px; }
.kpi-card.warn .kv { color: var(--accent-600); }
.kpi-card.danger .kv { color: var(--danger); }

/* ---------- 面板 / 表格 ---------- */
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.panel + .panel { margin-top: 18px; }
.panel-title { display: flex; align-items: center; justify-content: space-between; font-size: 15.5px; font-weight: 800; margin-bottom: 14px; }
.panel-title .sub { font-size: 12.5px; color: var(--text-3); font-weight: 500; }

.table-wrap { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 640px; }
.table th { text-align: left; padding: 11px 14px; font-size: 12px; font-weight: 700; color: var(--text-3); background: var(--surface-2); border-bottom: 1px solid var(--border); white-space: nowrap; }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tbody tr { transition: background .15s; }
.table tbody tr:last-child td { border-bottom: none; }
.table tbody tr:hover { background: var(--primary-50); }
.table .t-strong { font-weight: 700; }
.table .t-sub { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.table .num { font-variant-numeric: tabular-nums; }
.row-actions { display: flex; gap: 4px; flex-wrap: wrap; }
.act-btn { padding: 5px 10px; border-radius: 8px; font-size: 12.5px; font-weight: 600; color: var(--primary); white-space: nowrap; }
.act-btn:hover { background: var(--primary-50); }
.act-btn.danger { color: var(--danger); }
.act-btn.danger:hover { background: rgba(239,68,68,.08); }
.act-btn.plain { color: var(--text-2); }
.act-btn.plain:hover { background: var(--surface-3); }
.act-btn[disabled] { color: var(--text-3); cursor: not-allowed; background: none; }

/* ---------- 描述列表 ---------- */
.desc-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.desc-item { display: flex; flex-direction: column; gap: 4px; padding: 14px 18px; border-bottom: 1px solid var(--border); background: var(--surface); }
.desc-item:nth-child(odd) { border-right: 1px solid var(--border); }
.desc-item:nth-last-child(-n+2) { border-bottom: none; }
.desc-item .dl { font-size: 12px; color: var(--text-3); }
.desc-item .dv { font-size: 14.5px; font-weight: 600; }
.desc-item.full { grid-column: 1 / -1; border-right: none; }

/* ---------- 提示横幅 / 状态页 ---------- */
.banner { display: flex; gap: 12px; align-items: flex-start; border-radius: var(--radius); padding: 14px 18px; font-size: 14px; margin-bottom: 18px; border: 1px solid; }
.banner .icon { width: 18px; height: 18px; flex: none; margin-top: 2px; }
.banner.warn { background: rgba(245,158,11,.08); border-color: rgba(245,158,11,.35); color: #92600a; }
html[data-theme="dark"] .banner.warn { color: #f5c664; }
.banner.danger { background: rgba(239,68,68,.07); border-color: rgba(239,68,68,.3); color: #b12323; }
html[data-theme="dark"] .banner.danger { color: #f28b8b; }
.banner.info { background: var(--primary-50); border-color: rgba(51,112,255,.3); color: var(--primary-700); }
html[data-theme="dark"] .banner.info { color: var(--primary-light); }
.status-page { max-width: 640px; margin: 60px auto; text-align: center; }
.status-page .panel { padding: 40px 34px; }

/* ---------- 交付信息卡片 ---------- */
.delivery { background: var(--surface-2); border: 1px dashed var(--border-2); border-radius: var(--radius); padding: 18px; margin-bottom: 18px; }
.delivery-row { display: flex; justify-content: space-between; gap: 14px; padding: 8px 0; font-size: 14px; border-bottom: 1px dashed var(--border); }
.delivery-row:last-child { border-bottom: none; }
.delivery-row .dk { color: var(--text-3); flex: none; }
.delivery-row .dv { font-weight: 700; text-align: right; word-break: break-all; font-variant-numeric: tabular-nums; }
.delivery-note { display: flex; gap: 9px; align-items: flex-start; font-size: 12.5px; color: var(--accent-600); background: rgba(245,158,11,.09); border-radius: 10px; padding: 10px 13px; margin-bottom: 16px; }
.delivery-note .icon { width: 15px; height: 15px; flex: none; margin-top: 2px; }

/* ---------- 文件上传 ---------- */
.file-box { border: 1.5px dashed var(--border-2); border-radius: var(--radius); padding: 22px; text-align: center; color: var(--text-2); cursor: pointer; transition: all .15s; background: var(--surface); }
.file-box:hover { border-color: var(--primary); color: var(--primary); }
.file-box .icon { width: 26px; height: 26px; margin: 0 auto 8px; color: var(--text-3); }
.file-box.has-file { border-style: solid; border-color: var(--success); color: var(--text); text-align: left; }
.file-name { font-weight: 700; font-size: 13.5px; word-break: break-all; }
.file-meta { font-size: 12px; color: var(--text-3); margin-top: 3px; }

/* ---------- 后台批量上传队列 ---------- */
.batch-panel { max-width: 980px; }
.batch-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.batch-help { color: var(--text-3); font-size: 13.5px; line-height: 1.7; }
.batch-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.batch-summary { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-height: 40px; padding: 10px 12px; margin-bottom: 14px; border-radius: 10px; background: var(--surface-2); color: var(--text-2); font-size: 13px; }
.batch-summary span { display: inline-flex; align-items: center; white-space: nowrap; }
.batch-summary .danger, .batch-row-meta .danger { color: var(--danger); }
.batch-list { display: grid; gap: 10px; }
.batch-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(150px, 240px) auto; align-items: center; gap: 14px; min-height: 74px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 11px; background: var(--surface); }
.batch-row.uploading { border-color: var(--primary-100); background: linear-gradient(0deg, rgba(37, 99, 235, .035), rgba(37, 99, 235, .035)), var(--surface); }
.batch-row.success { border-color: rgba(16, 185, 129, .28); }
.batch-row.failed, .batch-row.canceled { border-color: rgba(239, 68, 68, .24); }
.batch-row-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14.5px; font-weight: 800; }
.batch-row-meta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 5px; color: var(--text-3); font-size: 12.5px; line-height: 1.5; }
.batch-progress { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.batch-progress i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--primary), var(--success)); transition: width .2s ease; }
.batch-row-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; min-width: 78px; }

/* ---------- 课程排序列表 ---------- */
.sort-list { display: grid; gap: 8px; }
.sort-item { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--border); border-radius: 11px; padding: 10px 12px; }
.sort-item .idx { width: 26px; height: 26px; border-radius: 8px; background: var(--primary-50); color: var(--primary); font-size: 12px; font-weight: 800; display: grid; place-items: center; flex: none; }
.sort-item .st { flex: 1; font-size: 13.5px; font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sort-item .ops { display: flex; gap: 2px; }
.sort-item .ops button { width: 28px; height: 28px; border-radius: 7px; display: grid; place-items: center; color: var(--text-3); }
.sort-item .ops button:hover:not([disabled]) { background: var(--surface-2); color: var(--primary); }
.sort-item .ops button[disabled] { opacity: .3; cursor: not-allowed; }
.sort-item .ops .icon { width: 14px; height: 14px; }
.pick-list { display: grid; gap: 8px; max-height: 260px; overflow-y: auto; padding: 2px; }
.pick-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 11px; cursor: pointer; transition: all .13s; font-size: 13.5px; }
.pick-item:hover { border-color: var(--primary); }
.pick-item.on { border-color: var(--primary); background: var(--primary-50); }
.pick-item .ck { width: 18px; height: 18px; border-radius: 6px; border: 1.5px solid var(--border-2); display: grid; place-items: center; color: #fff; flex: none; }
.pick-item.on .ck { background: var(--primary); border-color: var(--primary); }
.pick-item .ck .icon { width: 12px; height: 12px; }

/* ---------- 观看页水印 ---------- */
.player .wm-layer { position: absolute; inset: 0; z-index: 4; pointer-events: none; overflow: hidden; }
.wm-tile { position: absolute; font-size: 12.5px; font-weight: 600; color: rgba(255,255,255,.38); text-shadow: 0 1px 2px rgba(0,0,0,.25); white-space: nowrap; transform: rotate(-18deg); letter-spacing: .04em; }
.wm-float { position: absolute; font-size: 12.5px; font-weight: 600; color: rgba(255,255,255,.5); white-space: nowrap; animation: wmMove 26s linear infinite; text-shadow: 0 1px 2px rgba(0,0,0,.3); }
@keyframes wmMove {
  0%   { left: 6%;  top: 12%; }
  25%  { left: 62%; top: 24%; }
  50%  { left: 55%; top: 68%; }
  75%  { left: 12%; top: 58%; }
  100% { left: 6%;  top: 12%; }
}

/* 观看页完成状态条 */
.watch-state { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-size: 13.5px; color: var(--text-2); }
.watch-error { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 13px 16px; border-radius: 12px; background: rgba(239,68,68,.07); border: 1px solid rgba(239,68,68,.3); color: #b12323; font-size: 13.5px; }
html[data-theme="dark"] .watch-error { color: #f28b8b; }

/* ---------- 证书页 ---------- */
.cert-stage { position: relative; overflow: hidden; min-height: calc(100vh - var(--nav-h)); display: grid; place-items: center; padding: 40px 20px; background: radial-gradient(620px 420px at 88% 4%, rgba(51, 112, 255, .08), transparent 65%), radial-gradient(560px 420px at 4% 96%, rgba(142, 174, 255, .12), transparent 65%); }
.cert-stage > * { position: relative; z-index: 1; }
.cert-paper { position: relative; width: 100%; max-width: 760px; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; box-shadow: var(--shadow-lg); padding: 54px 60px 46px; overflow: hidden; animation: fadeUp .5s ease backwards; }
.cert-paper::after { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px; background: linear-gradient(90deg, var(--primary), var(--primary-light)); }
.cert-paper::before { content: ""; position: absolute; inset: 12px; border: 2px solid var(--primary-100); border-radius: 4px; pointer-events: none; }
.cert-head { text-align: center; margin-bottom: 34px; }
.cert-head .ct { font-size: 30px; font-weight: 800; letter-spacing: .35em; text-indent: .35em; color: var(--primary-700); }
html[data-theme="dark"] .cert-head .ct { color: var(--primary-light); }
.cert-head .cs { font-size: 12px; letter-spacing: .18em; color: var(--text-3); margin-top: 8px; text-transform: uppercase; }
.cert-body { position: relative; text-align: center; }
.cert-line { font-size: 15px; color: var(--text-2); line-height: 2.1; }
.cert-name { font-size: 26px; font-weight: 800; color: var(--text); margin: 6px 0 2px; }
.cert-course { font-size: 18px; font-weight: 700; color: var(--primary); margin: 4px 0 10px; }
.cert-meta { display: flex; justify-content: center; gap: 40px; margin-top: 30px; }
.cert-meta .cm { text-align: center; }
.cert-meta .cm b { display: block; font-size: 14px; font-variant-numeric: tabular-nums; }
.cert-meta .cm span { font-size: 12px; color: var(--text-3); }
.cert-seal { position: absolute; right: 52px; bottom: 44px; width: 96px; height: 96px; border-radius: 50%; border: 3px double var(--danger); color: var(--danger); display: grid; place-items: center; font-size: 13px; font-weight: 800; text-align: center; transform: rotate(-12deg); opacity: .75; line-height: 1.5; }
.cert-foot { margin-top: 34px; padding-top: 16px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; font-size: 12px; color: var(--text-3); }
.cert-readonly { text-align: center; margin-top: 18px; font-size: 12.5px; color: var(--text-3); }

/* ---------- 合作客户入口页 ---------- */
.entry-main { min-height: calc(100vh - var(--nav-h)); display: flex; flex-direction: column; }
.entry-hero {
  position: relative;
  overflow: hidden;
  flex: 1;
  display: grid;
  place-items: center;
  padding: 72px 24px 48px;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(247, 248, 250, .28), rgba(247, 248, 250, .82)),
    url("../assets/home-hero-bg.webp") center center / cover no-repeat;
}
.entry-hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px); background-size: 44px 44px; mask-image: radial-gradient(ellipse 78% 68% at 50% 36%, #000 22%, transparent 78%); opacity: .55; }
.entry-hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(580px 400px at 84% 6%, rgba(51, 112, 255, .10), transparent 65%), radial-gradient(540px 400px at 8% 92%, rgba(142, 174, 255, .15), transparent 65%); animation: glowPulse 9s ease-in-out infinite; }
.entry-hero > div { position: relative; z-index: 1; }
.entry-hero .entry-mark, .entry-hero .hero-badge, .entry-hero .entry-title, .entry-hero .entry-sub, .entry-hero .entry-note, .entry-hero .btn-lg, .entry-hero .entry-points { animation: fadeUp .55s cubic-bezier(.2, .8, .3, 1) backwards; }
.entry-hero .hero-badge { animation-delay: .05s; }
.entry-hero .entry-title { animation-delay: .11s; }
.entry-hero .entry-sub { animation-delay: .17s; }
.entry-hero .entry-note { animation-delay: .23s; }
.entry-hero .btn-lg { animation-delay: .29s; }
.entry-hero .entry-points { animation-delay: .35s; }
.entry-mark { width: 88px; height: 88px; border-radius: 0; display: grid; place-items: center; color: var(--primary); background: transparent; box-shadow: none; margin: 0 auto 24px; overflow: hidden; }
.entry-mark .icon { width: 37px; height: 37px; }
.entry-mark .brand-logo-img { width: 88px; height: 88px; }
.entry-title { font-size: clamp(28px, 4vw, 40px); font-weight: 800; letter-spacing: -.02em; }
.entry-sub { color: var(--text-2); font-size: 16px; margin: 14px 0 8px; }
.entry-note { color: var(--text-3); font-size: 13px; margin-bottom: 30px; }
.entry-points { display: flex; justify-content: center; gap: 12px; margin-top: 36px; flex-wrap: wrap; }
.entry-point { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: var(--text-2); background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 9px 18px; box-shadow: var(--shadow-sm); transition: transform .2s, border-color .2s, color .2s, box-shadow .2s; }
.entry-point:hover { transform: translateY(-3px); border-color: var(--primary-light); color: var(--primary); box-shadow: var(--shadow-md); }
.entry-point .icon { width: 16px; height: 16px; color: var(--primary); }
.entry-contact { border-top: 1px solid var(--border); background: var(--surface); padding: 40px 24px; }
.entry-contact-grid { max-width: 980px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.entry-contact-item { display: flex; gap: 13px; align-items: flex-start; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; transition: transform .2s, box-shadow .2s, border-color .2s; animation: fadeUp .5s ease backwards; }
.entry-contact-item:nth-child(2) { animation-delay: .08s; }
.entry-contact-item:nth-child(3) { animation-delay: .16s; }
.entry-contact-item:nth-child(4) { animation-delay: .24s; }
.entry-contact-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--primary-100); }
.entry-contact-item .icon { width: 36px; height: 36px; padding: 9px; border-radius: 11px; background: var(--primary-50); color: var(--primary); flex: none; }
.entry-contact-item b { display: block; font-size: 13.5px; margin-bottom: 2px; }
.entry-contact-item span { display: block; font-size: 12.5px; color: var(--text-2); line-height: 1.55; }
.entry-contact-official { padding: 44px 24px 32px; background: #fff; border-top: 1px solid #eef2f7; }
.entry-footer-wrap { max-width: 1280px; margin: 0 auto; }
.entry-footer-main { display: flex; align-items: flex-start; justify-content: space-between; gap: 48px; }
.entry-footer-brand { flex: 1 1 0; min-width: 280px; display: flex; flex-direction: column; gap: 14px; padding-top: 4px; }
.entry-footer-brand-line { display: flex; align-items: center; gap: 8px; }
.entry-footer-mark { width: 18px; height: 18px; flex: none; display: grid; place-items: center; overflow: hidden; }
.entry-footer-mark .brand-logo-img { width: 18px; height: 18px; object-fit: contain; }
.entry-footer-brand-name { font-size: 18px; font-weight: 600; line-height: 1.2; color: #020617; }
.entry-footer-brand-sub { font-size: 18px; line-height: 28px; color: #374151; }
.entry-footer-aside { flex: 0 1 auto; display: flex; flex-direction: column; gap: 30px; min-width: 540px; }
.entry-footer-columns { display: grid; grid-template-columns: 150px 150px minmax(220px, 1fr); gap: 24px 28px; align-items: start; }
.entry-footer-col { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.entry-footer-col-title { font-size: 16px; line-height: 22px; color: #020617; font-weight: 400; }
.entry-footer-col-links { display: flex; flex-direction: column; gap: 10px; }
.entry-footer-col-links a, .entry-footer-col-links span { font-size: 16px; line-height: 22px; color: #475569; }
.entry-footer-col-links a:hover { color: #020617; }
.entry-footer-qrs { display: grid; grid-template-columns: 150px 150px 150px; gap: 16px 28px; align-items: start; }
.entry-footer-qr { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.entry-footer-qr-title { font-size: 16px; line-height: 22px; color: #020617; font-weight: 400; }
.entry-footer-qr img { width: 80px; height: 80px; object-fit: contain; border-radius: 6px; border: 1px solid #e5e7eb; background: #fff; }
.entry-page-foot { border-top: 1px solid #eef2f7; padding: 16px 24px 22px; text-align: center; font-size: 12.5px; color: #94a3b8; background: #fff; }

/* ---------- 学员端课程包卡片 ---------- */
.pkg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; }
.pkg-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 12px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.pkg-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--primary-100); }
.pkg-card .pk-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.pkg-card .pk-name { font-size: 16px; font-weight: 800; }
.pkg-card .pk-desc { font-size: 13.5px; color: var(--text-2); line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pkg-card .pk-progress { display: flex; align-items: center; gap: 12px; font-size: 12.5px; color: var(--text-3); }
.pkg-card .pk-progress .bar { flex: 1; height: 8px; border-radius: 6px; background: var(--surface-2); overflow: hidden; }
.pkg-card .pk-progress .bar i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--primary), var(--primary-light)); }
.pkg-card .pk-actions { display: flex; gap: 10px; margin-top: auto; padding-top: 14px; border-top: 1px dashed var(--border); }

/* ---------- 后台响应式 ---------- */
@media (max-width: 900px) {
  .app-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; flex-direction: column; }
  .side-nav { flex-direction: row; overflow-x: auto; padding: 10px; }
  .side-link { white-space: nowrap; }
  .app-main { padding: 20px 16px 50px; }
  .desc-list { grid-template-columns: 1fr; }
  .desc-item:nth-child(odd) { border-right: none; }
  .desc-item { border-bottom: 1px solid var(--border) !important; }
  .entry-contact-grid { grid-template-columns: repeat(2, 1fr); }
  .entry-footer-main { flex-direction: column; gap: 32px; }
  .entry-footer-aside { min-width: 0; width: 100%; }
  .entry-footer-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .entry-footer-qrs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cert-paper { padding: 36px 26px; }
  .cert-seal { right: 24px; bottom: 30px; width: 76px; height: 76px; font-size: 11px; }
}
@media (max-width: 760px) {
  .batch-head, .batch-actions { flex-direction: column; align-items: stretch; }
  .batch-row { grid-template-columns: 1fr; align-items: stretch; }
  .batch-row-actions { justify-content: flex-start; }
}
@media (max-width: 560px) {
  .entry-contact-grid { grid-template-columns: 1fr; }
  .entry-contact-official { padding: 36px 16px 24px; }
  .entry-footer-columns { grid-template-columns: 1fr; }
  .entry-footer-qrs { grid-template-columns: 1fr; }
  .entry-footer-qr img { width: 88px; height: 88px; }
  .cert-meta { gap: 18px; flex-wrap: wrap; }
}

/* ---------- 登录页演示账号框（仅原型） ---------- */
.demo-box { margin-top: 26px; border: 1px dashed var(--border-2); border-radius: var(--radius); padding: 14px 16px; background: var(--surface-2); }
.demo-title { font-size: 12px; font-weight: 700; color: var(--text-3); margin-bottom: 8px; }
.demo-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 12.5px; color: var(--text-2); padding: 3px 0; }
.demo-row code { background: var(--surface); border: 1px solid var(--border); border-radius: 6px; padding: 2px 8px; font-size: 12px; color: var(--primary); }
