/* ============================================================
   智兰博教育官网 · 蓝白主题响应式样式
   桌面 ≥1024px 多栏；≤768px 汉堡菜单单栏
   ============================================================ */
:root {
  --primary: #1a5ce5;
  --primary-light: #4b83f0;
  --primary-dark: #0e44b8;
  --primary-50: #eef4ff;
  --accent: #ff7a1a;
  --bg: #f4f6fa;
  --card: #ffffff;
  --text: #1d2129;
  --text-2: #4e5969;
  --text-3: #86909c;
  --border: #e5e8ef;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow: 0 2px 12px rgba(15, 42, 90, 0.08);
  --shadow-hover: 0 8px 28px rgba(15, 42, 90, 0.14);
  --header-h: 64px;
  --maxw: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ---------------- 顶部导航 ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(15, 42, 90, 0.06);
}
.header-inner {
  max-width: var(--maxw); margin: 0 auto; height: var(--header-h);
  padding: 0 20px; display: flex; align-items: center; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 10px;
  background: linear-gradient(135deg, #0c2b6e 0%, #1240a8 60%, #1a5ce5 100%);
  color: #fff; font-size: 20px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 3px 10px rgba(12, 43, 110, 0.22);
}
.brand-mark.brand-mark-img { background: #fff; padding: 3px; box-sizing: border-box; border: 1px solid var(--border, #e5e8ef); }
.brand-mark img { width: 100%; height: 100%; object-fit: contain; border-radius: 7px; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-size: 17px; color: var(--primary-dark); font-weight: 700; }
.brand-text small { font-size: 10px; color: var(--text-3); letter-spacing: 1.5px; }

.site-nav { display: flex; gap: 2px; margin-left: auto; }
.site-nav a {
  position: relative;
  padding: 8px 14px; border-radius: 8px; font-size: 14px; color: var(--text-2);
  font-weight: 500; transition: color .2s, background .2s; white-space: nowrap;
}
.site-nav a:hover { color: var(--primary); background: var(--primary-50); }
.site-nav a.active { color: #fff; background: linear-gradient(135deg, var(--primary-dark), var(--primary)); font-weight: 600; box-shadow: 0 3px 10px rgba(26, 92, 229, 0.28); }

.header-user { flex-shrink: 0; display: flex; align-items: center; gap: 8px; margin-left: 8px; padding-left: 16px; border-left: 1px solid var(--border); }
.header-user-link { display: inline-flex; align-items: center; gap: 5px; font-size: 14px; font-weight: 500; color: var(--text-2); text-decoration: none; padding: 8px 14px; border-radius: 8px; transition: all .2s; }
.header-user-link:hover { color: var(--primary); background: var(--primary-50); text-decoration: none; }
.header-admin-link { color: var(--primary-dark) !important; background: var(--primary-50); font-weight: 600; }
.header-admin-link:hover { background: var(--primary) !important; color: #fff !important; }
.user-name { font-size: 14px; color: var(--text-2); display: inline-flex; align-items: center; gap: 6px; }
.role-badge { font-style: normal; font-size: 11px; padding: 2px 8px; border-radius: 999px; background: var(--primary-50); color: var(--primary); }
.btn-lg { padding: 12px 28px; font-size: 16px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 20px; border-radius: 999px; font-size: 14px; font-weight: 500;
  border: 1px solid transparent; transition: all .2s; white-space: nowrap;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); box-shadow: 0 4px 14px rgba(26, 92, 229, .35); }
.btn-outline { border-color: var(--primary); color: var(--primary); background: #fff; }
.btn-outline:hover { background: var(--primary-50); }
.btn-ghost { color: var(--text-2); background: transparent; }
.btn-ghost:hover { color: var(--primary); }
.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: not-allowed; }

/* 直连加速切换按钮：经云服务器中转访问时显示，一键切到直连线路 */
.direct-link {
  display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0;
  padding: 6px 14px; border-radius: 999px; font-size: 12.5px; font-weight: 600;
  color: #fff; border: none; cursor: pointer; white-space: nowrap;
  background: linear-gradient(135deg, #059669, #10b981);
  box-shadow: 0 2px 8px rgba(16, 185, 129, .3);
  transition: all .2s;
}
.direct-link::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%; background: #d1fae5;
  box-shadow: 0 0 6px rgba(255, 255, 255, .9);
  animation: directPulse 1.6s ease-in-out infinite;
}
.direct-link:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(16, 185, 129, .45); filter: brightness(1.05); }
.direct-link[hidden] { display: none !important; }
@keyframes directPulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@media (max-width: 860px) {
  .direct-link { padding: 5px 10px; font-size: 11.5px; }
}

.nav-toggle {
  display: none; margin-left: auto; width: 40px; height: 40px;
  background: none; border: none; flex-direction: column;
  align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: .25s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------------- 首页 Hero ---------------- */
/* ---------------- Banner Hero（首页第一屏，全宽大尺寸轮播） ---------------- */
.banner-hero {
  position: relative; color: #fff; overflow: hidden;
  margin-bottom: 0;
}
.banner-track { position: relative; width: 100%; }
.banner-slide {
  position: absolute; inset: 0; opacity: 0;
  transition: opacity .7s ease; pointer-events: none;
}
.banner-slide.on { position: relative; opacity: 1; pointer-events: auto; }
.banner-overlay {
  position: absolute; inset: 0; z-index: 5;
  cursor: pointer;
}
.banner-link {
  display: block; width: 100%; min-height: 480px;
  position: relative; overflow: hidden;
}
.banner-link::before {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: radial-gradient(ellipse at 70% 50%, rgba(255,255,255,.12) 0%, transparent 60%);
  pointer-events: none;
}
.banner-link::after {
  content: ''; position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(135deg, rgba(0,0,0,.25) 0%, transparent 50%, rgba(0,0,0,.15) 100%);
  pointer-events: none;
}
.banner-link img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.banner-cap {
  position: absolute; inset: 0; z-index: 10;
  background: linear-gradient(to right, rgba(0,0,0,.65) 0%, rgba(0,0,0,.40) 40%, rgba(0,0,0,.15) 80%, transparent 100%);
  color: #fff; pointer-events: none;
  display: flex; align-items: center;
}
.banner-cap-inner {
  pointer-events: auto;
  display: flex; flex-direction: column; gap: 22px;
  width: 100%; max-width: var(--maxw); margin: 0 auto;
  padding: 24px 20px;
}
.banner-cap-inner h1 {
  font-size: 42px; font-weight: 700; line-height: 1.25;
  margin: 0; letter-spacing: 1px;
  text-shadow: 0 2px 12px rgba(0,0,0,.3);
  animation: heroIn .9s cubic-bezier(.22,.61,.36,1) both;
}
.banner-sub {
  font-size: 18px; opacity: .92; line-height: 1.6;
  max-width: 560px; margin: 0;
  text-shadow: 0 1px 6px rgba(0,0,0,.25);
  animation: heroIn .9s cubic-bezier(.22,.61,.36,1) .12s both;
}
.banner-highlights {
  display: flex; flex-wrap: wrap; gap: 8px 14px;
  list-style: none; padding: 0; margin: 4px 0;
  animation: heroIn .9s cubic-bezier(.22,.61,.36,1) .24s both;
}
.banner-highlights li {
  font-size: 13.5px; padding: 5px 14px;
  background: rgba(255,255,255,.18); border-radius: 999px;
  border: 1px solid rgba(255,255,255,.28);
  backdrop-filter: blur(4px);
}
.banner-btn-primary, .banner-btn-outline {
  display: inline-flex; align-items: center; gap: 6px;
  align-self: flex-start; margin-top: 8px;
  padding: 12px 28px; font-size: 15px; font-weight: 600;
  border-radius: 999px; text-decoration: none;
  transition: all .25s cubic-bezier(.22,.61,.36,1);
}
.banner-btn-primary {
  background: #fff; color: var(--primary-dark);
  box-shadow: 0 4px 18px rgba(0,0,0,.25);
  animation: heroIn .9s cubic-bezier(.22,.61,.36,1) .36s both;
}
.banner-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,.32);
  background: var(--primary); color: #fff;
}
.banner-btn-outline {
  border: 1.5px solid rgba(255,255,255,.7); color: #fff;
  margin-left: 10px;
  background: transparent;
}
.banner-btn-outline:hover { background: rgba(255,255,255,.15); }

/* 轮播箭头 + 圆点 */
.banner-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,255,255,.85); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--primary-dark); font-size: 28px; font-weight: 300;
  z-index: 20; transition: all .25s;
  box-shadow: 0 2px 10px rgba(0,0,0,.15);
}
.banner-arrow:hover { background: #fff; transform: translateY(-50%) scale(1.06); }
.banner-arrow.prev { left: 36px; }
.banner-arrow.next { right: 36px; }
.banner-dots {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 10px; z-index: 20;
}
.banner-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,.5); cursor: pointer; transition: all .25s;
}
.banner-dot.on { width: 28px; border-radius: 5px; background: #fff; }

/* heroFlow 动画（纯色/渐变默认背景用） */
@keyframes heroFlow { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes heroIn { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

@media (max-width: 768px) {
  .banner-link { min-height: 380px; }
  .banner-cap-inner { padding: 16px 20px; gap: 16px; }
  .banner-cap-inner h1 { font-size: 26px; letter-spacing: .5px; }
  .banner-sub { font-size: 14px; }
  .banner-highlights li { font-size: 12px; padding: 3px 10px; }
  .banner-btn-primary, .banner-btn-outline { padding: 9px 22px; font-size: 13px; }
  .banner-btn-outline { margin-left: 8px; }
  .banner-arrow { width: 36px; height: 36px; font-size: 20px; }
  .banner-arrow.prev { left: 12px; }
  .banner-arrow.next { right: 12px; }
  .banner-dots { bottom: 14px; }
}

/* ---------------- 通用区块 ---------------- */
.section { padding: 56px 0; }
.section-alt { background: #fff; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 28px; gap: 16px; }
.section-head h2 { font-size: 26px; color: var(--text); position: relative; padding-left: 14px; }
.section-head h2::before {
  content: ''; position: absolute; left: 0; top: 4px; bottom: 4px;
  width: 4px; border-radius: 2px; background: var(--primary);
}
.section-head .more { color: var(--primary); font-size: 14px; flex-shrink: 0; }
.section-head .more:hover { text-decoration: underline; }

/* ---------------- 卡片网格 ---------------- */
.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--card); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); overflow: hidden;
  transition: transform .25s, box-shadow .25s; display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.card-cover { position: relative; aspect-ratio: 16 / 8; overflow: hidden; background: #e9edf5; }
.card-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.card:hover .card-cover img { transform: scale(1.05); }
/* 无封面兜底：渐变背景 + 课程名 */
.cover-fallback {
  display: flex; align-items: center; justify-content: center;
  padding: 14px; overflow: hidden; box-sizing: border-box;
}
.cover-name {
  color: #fff; font-weight: 700; text-align: center; line-height: 1.45;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .2); word-break: break-all;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden;
}
.card-cover .cover-name { font-size: 18px; }
.oc-home-grid .card-cover .cover-name { font-size: 15px; -webkit-line-clamp: 2; }
.oc-home-grid .card-body { padding: 12px 14px 14px; }
.oc-home-grid .card-title { font-size: 15px; }
.oc-home-grid .card-desc { font-size: 12px; }
.detail-cover .cover-name { font-size: 24px; -webkit-line-clamp: 4; }
.oc-course-cover.cover-fallback .cover-name { font-size: 19px; }
.mc-cover.cover-fallback .cover-name,
.oc-related-cover.cover-fallback .cover-name { font-size: 13px; -webkit-line-clamp: 2; font-weight: 600; }
.card-body { padding: 14px 16px 16px; flex: 1; display: flex; flex-direction: column; }
.card-title { font-size: 16px; font-weight: 600; margin-bottom: 6px; line-height: 1.4; }
.card-desc { font-size: 13px; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { margin-top: 12px; display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--text-3); flex-wrap: wrap; }
.card-meta .price { color: var(--accent); font-weight: 700; font-size: 15px; margin-left: auto; }
.tag {
  display: inline-block; padding: 2px 10px; border-radius: 999px;
  font-size: 12px; background: var(--primary-50); color: var(--primary);
}
.tag-orange { background: #fff3e8; color: #e56100; }
.tag-gray { background: #f2f3f5; color: var(--text-2); }
.card-actions { margin-top: 14px; display: flex; gap: 10px; }

/* 课程亮点标签 */
.course-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 4px; }
.course-tags .tag { font-size: 12px; }

/* ---------------- 公司简介区 ---------------- */
.about-preview { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.about-text h2 { font-size: 26px; margin-bottom: 18px; color: var(--primary-dark); }
.about-text p { color: var(--text-2); margin-bottom: 14px; font-size: 15px; }
.about-points { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 22px; }
.about-point {
  background: var(--primary-50); border-radius: var(--radius);
  padding: 16px; font-size: 14px; color: var(--primary-dark); font-weight: 500;
}
.about-visual { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.about-visual img { border-radius: var(--radius); aspect-ratio: 1; object-fit: cover; box-shadow: var(--shadow); width: 100%; }
.about-visual img:first-child { grid-row: span 2; aspect-ratio: auto; height: 100%; }

/* ---------------- 相册（环境/就业） ---------------- */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.gallery-item {
  border-radius: var(--radius-lg); overflow: hidden; position: relative;
  aspect-ratio: 4 / 3; box-shadow: var(--shadow); cursor: pointer;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-caption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 16px 14px;
  background: linear-gradient(transparent, rgba(8, 30, 70, .82));
  color: #fff;
}
.gallery-caption strong { display: block; font-size: 15px; margin-bottom: 2px; }
.gallery-caption span { font-size: 12.5px; opacity: .85; display: block;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------------- 首页照片墙（环境/设备平铺） ---------------- */
.section-sub { margin: -8px 0 22px; font-size: 14px; color: var(--text-3); }
.wall { display: grid; gap: 16px; grid-auto-flow: dense; }
.wall-4 { grid-template-columns: repeat(4, 1fr); }
.wall-3 { grid-template-columns: repeat(3, 1fr); }
.wall-item {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  aspect-ratio: 1 / 1; box-shadow: var(--shadow); cursor: pointer;
  background: #0d1d3d;
}
.wall-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.wall-item:hover img { transform: scale(1.07); }
/* 首图/重点图占 2x2，制造疏密节奏（移动端降级为通栏横图，见媒体查询） */
.wall-big { grid-column: span 2; grid-row: span 2; }
.wall-cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 36px 16px 13px;
  background: linear-gradient(transparent, rgba(7, 24, 58, .85));
  color: #fff; pointer-events: none;
  opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .3s;
}
.wall-item:hover .wall-cap,
.wall-item:focus-visible .wall-cap,
.wall-big .wall-cap { opacity: 1; transform: none; }
.wall-cap strong {
  display: block; font-size: 13.5px; font-weight: 600; letter-spacing: .2px;
  text-shadow: 0 1px 6px rgba(0, 0, 0, .35);
}
.wall-big .wall-cap { padding: 48px 22px 18px; }
.wall-big .wall-cap strong { font-size: 17px; }
/* 悬停放大镜角标（纯 CSS 绘制） */
.wall-zoom {
  position: absolute; top: 12px; right: 12px; width: 32px; height: 32px;
  border-radius: 50%; background: rgba(255, 255, 255, .92);
  box-shadow: 0 2px 10px rgba(7, 24, 58, .25);
  opacity: 0; transform: scale(.8); transition: opacity .3s, transform .3s;
}
.wall-item:hover .wall-zoom { opacity: 1; transform: scale(1); }
.wall-zoom::before {
  content: ''; position: absolute; left: 8px; top: 8px;
  width: 11px; height: 11px; border: 2px solid var(--primary); border-radius: 50%;
}
.wall-zoom::after {
  content: ''; position: absolute; right: 7px; bottom: 8px;
  width: 8px; height: 2px; border-radius: 2px; background: var(--primary);
  transform: rotate(45deg);
}

/* ---------------- 培训场景（主图轮播 + 缩略图条） ---------------- */
.train-show {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 30px;
  align-items: stretch; margin-bottom: 18px;
}
.train-main {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow); background: #0d1d3d; min-height: 400px;
}
.train-main img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; transition: opacity .25s ease;
}
.train-cap {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  padding: 46px 20px 16px; background: linear-gradient(transparent, rgba(7, 24, 58, .85));
  color: #fff; display: flex; justify-content: space-between; align-items: flex-end; gap: 12px;
}
.train-cap strong { font-size: 18px; letter-spacing: .3px; text-shadow: 0 1px 6px rgba(0, 0, 0, .35); }
.train-cap span {
  font-size: 12.5px; opacity: .9; flex-shrink: 0;
  background: rgba(255, 255, 255, .18); padding: 2px 12px; border-radius: 999px;
}
.train-side { display: flex; flex-direction: column; justify-content: center; gap: 16px; padding: 12px 4px; }
.train-side h3 { font-size: 25px; color: var(--primary-dark); line-height: 1.4; }
.train-side p { font-size: 15px; line-height: 2.15; color: var(--text-2); }
.train-side .btn { align-self: flex-start; margin-top: 6px; padding: 12px 40px; font-size: 15px; }
.train-thumbs { display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px; }
.train-thumb {
  position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 4 / 3;
  cursor: pointer; opacity: .7; filter: saturate(.85);
  transition: opacity .25s, filter .25s, transform .25s; box-shadow: var(--shadow);
}
.train-thumb img { width: 100%; height: 100%; object-fit: cover; }
.train-thumb:hover { opacity: 1; filter: none; transform: translateY(-2px); }
.train-thumb.on { opacity: 1; filter: none; }
.train-thumb.on::after {
  content: ''; position: absolute; inset: 0; border-radius: 12px;
  box-shadow: inset 0 0 0 3px var(--primary);
}

/* ---------------- 适合人群（背景带 + 四卡片） ---------------- */
.audience-band {
  position: relative; padding: 52px 0 60px;
  background-size: cover; background-position: center;
}
.audience-band::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(244, 246, 250, .95), rgba(244, 246, 250, .88));
}
.audience-band > .container { position: relative; }
.aud-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 30px; }
.aud-card {
  background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-hover);
  padding: 32px 22px 28px; text-align: center;
  transition: transform .25s ease, box-shadow .25s ease;
}
.aud-card:hover { transform: translateY(-6px); box-shadow: 0 14px 36px rgba(15, 42, 90, .18); }
.aud-icon { width: 54px; height: 54px; margin: 0 auto 14px; color: var(--accent); }
.aud-icon svg { width: 100%; height: 100%; }
.aud-card h3 { font-size: 20px; color: var(--primary-dark); letter-spacing: 1px; }
.aud-desc {
  font-size: 14.5px; color: var(--text-2); line-height: 1.95;
  padding: 18px 4px 22px; margin: 16px 0 0;
  border-top: 2px dotted var(--border);
}
.aud-btn {
  display: inline-block; padding: 9px 26px; border-radius: 999px;
  background: var(--accent); color: #fff; font-size: 14px; letter-spacing: 1px;
  transition: background .2s, transform .2s;
}
.aud-btn:hover { background: #e86a0d; transform: translateY(-1px); }

/* ---------------- 就业展示轮播 ---------------- */
.job-slide {
  position: relative; margin-top: 24px;
  display: flex; align-items: center; justify-content: center;
}
.job-viewport {
  width: 100%; overflow: hidden; border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.job-track {
  display: flex; transition: transform .6s cubic-bezier(.25, .46, .45, .94);
}
.job-page {
  flex: 0 0 100%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.job-cell {
  position: relative; aspect-ratio: 3 / 4; border-radius: 12px; overflow: hidden;
  background: #0d1d3d; box-shadow: var(--shadow);
}
.job-cell.empty { background: transparent; box-shadow: none; }
.job-cell img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.job-cell:not(.empty):hover img { transform: scale(1.05); }
.job-cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 40px 20px 14px;
  background: linear-gradient(transparent, rgba(7, 24, 58, .82));
  color: #fff; pointer-events: none;
}
.job-cap strong { font-size: 16px; letter-spacing: .3px; text-shadow: 0 1px 6px rgba(0, 0, 0, .35); }
/* 左右箭头 */
.job-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 42px; height: 42px; border: none; border-radius: 50%;
  background: rgba(255, 255, 255, .9); box-shadow: 0 2px 12px rgba(7, 24, 58, .2);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background .2s, box-shadow .2s;
}
.job-arrow:hover { background: #fff; box-shadow: 0 4px 18px rgba(7, 24, 58, .28); }
.job-arrow.prev { left: 12px; }
.job-arrow.next { right: 12px; }
.job-arrow::before {
  content: ''; width: 10px; height: 10px;
  border-top: 2.5px solid var(--primary); border-right: 2.5px solid var(--primary);
}
.job-arrow.prev::before { transform: rotate(-135deg); margin-left: 4px; }
.job-arrow.next::before { transform: rotate(45deg); margin-right: 4px; }
/* 分页圆点 */
.job-dots {
  position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 8px; z-index: 2;
}
.job-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255, 255, 255, .5); cursor: pointer; transition: all .25s;
}
.job-dot.on { background: #fff; width: 22px; border-radius: 4px; }

/* 就业/培训卡片悬停时显示图片介绍 */
.job-cap span, .train-cap .train-desc {
  display: block; font-size: 13px; opacity: .92; margin-top: 3px; line-height: 1.5;
  max-height: 0; overflow: hidden; transition: max-height .35s ease, opacity .25s;
}
.job-cell:not(.empty):hover .job-cap span,
.train-main:hover .train-cap .train-desc { max-height: 80px; }
.wall-cap span {
  display: block; font-size: 12.5px; opacity: .85; margin-top: 2px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ---------------- 相册管理页 ---------------- */
.mg-album { margin-bottom: 28px; }
.mg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.mg-card { background: #fff; border-radius: 12px; box-shadow: var(--shadow); overflow: hidden; }
.mg-thumb { aspect-ratio: 4/3; background: #f0f3f8; overflow: hidden; }
.mg-thumb img { width: 100%; height: 100%; object-fit: cover; }
.mg-input {
  width: 100%; border: none; border-top: 1px solid var(--border);
  padding: 10px 12px; font-size: 13.5px; font-family: inherit; resize: vertical;
  min-height: 60px; outline: none; color: var(--text-1); background: #fafbfc;
}
.mg-input:focus { background: #fff; box-shadow: inset 0 0 0 2px var(--primary); }

/* ---------------- 论坛发帖 / 回复 图片上传 ---------------- */
.post-img-picker, .reply-img-bar {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-start;
}
.post-img-box {
  position: relative; width: 88px; height: 88px; border-radius: 10px;
  background: #f0f3f8; border: 1px dashed var(--border);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; cursor: pointer;
}
.post-img-box img { width: 100%; height: 100%; object-fit: cover; }
.post-img-add { flex-direction: column; color: var(--text-3); transition: border-color .2s, color .2s; }
.post-img-add:hover { border-color: var(--primary); color: var(--primary); }
.post-img-add span { font-size: 26px; line-height: 1; }
.post-img-add em { font-style: normal; font-size: 12px; margin-top: 4px; }
.post-img-box.loading img { opacity: .2; }
.post-img-loading {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 12px; color: var(--primary); background: rgba(255, 255, 255, .7);
}
.post-img-del {
  position: absolute; top: 2px; right: 2px; width: 20px; height: 20px;
  border: none; border-radius: 50%; background: rgba(0, 0, 0, .55); color: #fff;
  font-size: 14px; line-height: 1; cursor: pointer; display: flex;
  align-items: center; justify-content: center; padding: 0;
}
.post-img-del:hover { background: var(--danger, #e03131); }
.post-img-hint { font-size: 12.5px; color: var(--text-3); margin-top: 8px; }
.reply-img-bar { margin: -6px 0 12px; }
.reply-img-add { width: 72px; height: 72px; }
.reply-img-add span { font-size: 22px; }
@media (max-width: 900px) {
  .mg-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
}
@media (max-width: 400px) {
  .mg-grid { grid-template-columns: 1fr; }
}

/* 师资力量 */
.teacher-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.teacher-card {
  background: var(--card, #fff); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow);
}
.teacher-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.teacher-avatar {
  width: 64px; height: 64px; border-radius: 50%; object-fit: cover;
  border: 2px solid var(--primary-light, #4b83f0); flex-shrink: 0; background: #eef3ff;
}
.teacher-id strong { display: block; font-size: 18px; color: var(--primary-dark); }
.teacher-id span { font-size: 13px; color: var(--text-3); margin-top: 2px; display: block; }
.teacher-exp { font-size: 14px; line-height: 1.85; color: var(--text-2); margin-bottom: 10px; }
.teacher-projects { list-style: none; padding: 0; margin: 0 0 10px; }
.teacher-projects li {
  font-size: 13px; color: var(--text-2); padding-left: 18px; position: relative;
  line-height: 1.9;
}
.teacher-projects li::before {
  content: ''; position: absolute; left: 2px; top: 11px; width: 6px; height: 6px;
  border-radius: 50%; background: var(--primary);
}
.teacher-resp {
  font-size: 13px; color: var(--primary); background: var(--primary-bg, #eef3ff);
  padding: 8px 12px; border-radius: 8px; margin: 0;
}
.gallery-tabs { display: flex; gap: 10px; margin-bottom: 24px; flex-wrap: wrap; }
.gallery-tab {
  padding: 8px 22px; border-radius: 999px; border: 1px solid var(--border);
  background: #fff; color: var(--text-2); font-size: 14px; transition: .2s;
}
.gallery-tab.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ---------------- 新闻 · 首页卡片网格 ---------------- */
.news-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
@media (max-width: 1024px) { .news-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px) { .news-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; } }
@media (max-width: 480px) { .news-grid { grid-template-columns: 1fr; } }

.news-card {
  background: #fff; border-radius: 14px; overflow: hidden;
  box-shadow: 0 2px 12px rgba(15, 42, 90, .06);
  display: flex; flex-direction: column;
  text-decoration: none; color: inherit;
  transition: transform .35s cubic-bezier(.22, .61, .36, 1), box-shadow .35s;
  will-change: transform;
}
.news-card:hover { transform: translateY(-6px); box-shadow: 0 16px 36px rgba(15, 42, 90, .18); }
.news-cover {
  aspect-ratio: 16 / 10; overflow: hidden; position: relative;
}
.news-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.22, .61, .36, 1); }
.news-card:hover .news-cover img { transform: scale(1.07); }
.news-cover.cover-fallback {
  display: flex; align-items: center; justify-content: center;
}
.news-cover.cover-fallback .cover-name { color: rgba(255,255,255,.92); font-size: 18px; font-weight: 600; padding: 12px; text-align: center; }

.news-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.news-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; gap: 8px; }
.news-badge {
  display: inline-block; padding: 2px 10px; font-size: 12px; font-weight: 500;
  background: #fff3e8; color: #d46a1a; border-radius: 999px;
}
.news-date { font-size: 12.5px; color: var(--text-3); }
.news-title {
  font-size: 15.5px; font-weight: 600; line-height: 1.45; margin-bottom: 8px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  color: var(--text-1); transition: color .25s;
}
.news-card:hover .news-title { color: var(--primary); }
.news-summary {
  font-size: 13px; color: var(--text-3); line-height: 1.6; margin-bottom: 14px; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.news-enter {
  font-size: 13px; font-weight: 500; color: var(--primary);
  display: inline-flex; align-items: center; gap: 4px;
  transition: gap .25s; align-self: flex-start;
}
.news-enter svg { width: 14px; height: 14px; transition: transform .25s; }
.news-card:hover .news-enter { gap: 8px; }
.news-card:hover .news-enter svg { transform: translateX(3px); }

/* ---------------- 新闻 · 列表页行（保持紧凑样式） ---------------- */
.news-list { display: flex; flex-direction: column; gap: 16px; }
.news-row {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 18px 22px; display: flex; gap: 18px; align-items: center;
  transition: transform .2s, box-shadow .2s;
}
.news-row:hover { transform: translateX(4px); box-shadow: var(--shadow-hover); }
.news-row .news-type { flex-shrink: 0; }
.news-row .news-main { flex: 1; min-width: 0; }
.news-row h3 { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.news-row p { font-size: 13.5px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.news-row .news-date { flex-shrink: 0; font-size: 13px; color: var(--text-3); text-align: right; }

/* ---------------- 线上课程 ---------------- */
.online-banner {
  background: linear-gradient(120deg, #eef4ff, #fff);
  border: 1px solid #dce7ff; border-radius: var(--radius-lg);
  padding: 30px 34px; margin-bottom: 32px; display: flex;
  align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.online-banner h2 { color: var(--primary-dark); font-size: 22px; margin-bottom: 8px; }
.online-banner p { color: var(--text-2); font-size: 14.5px; }
.lesson-count { font-size: 13px; color: var(--text-3); }

/* ---------------- 线上课程页 · Tab（所有课程/系列/专栏/图文/我的课程） ---------------- */
.ol-tabs {
  display: flex; gap: 10px; margin-bottom: 26px;
  border-bottom: 2px solid var(--border);
  overflow-x: auto; scrollbar-width: none;
}
.ol-tabs::-webkit-scrollbar { display: none; }
.ol-tab {
  padding: 12px 26px; font-size: 16px; font-weight: 600; color: var(--text-2);
  cursor: pointer; text-decoration: none; border-bottom: 3px solid transparent;
  margin-bottom: -2px; transition: all .2s; background: none; border-left: none; border-right: none; border-top: none;
  font-family: inherit; flex-shrink: 0; white-space: nowrap;
}
.ol-tab:hover { color: var(--primary); }
.ol-tab-on { color: var(--primary); border-bottom-color: var(--primary); }
.ol-tab-login { color: var(--text-3); font-weight: 500; }
.ol-pane[hidden] { display: none; }
/* 分类分区（系列 / 专栏 / 图文）：按 Tab 过滤显示 */
.ol-sec-block[hidden] { display: none; }
.ol-sec-block + .ol-sec-block { margin-top: 36px; }
@media (max-width: 768px) {
  .ol-tabs { gap: 2px; }
  .ol-tab { padding: 10px 14px; font-size: 15px; }
}

/* ---------------- 系列课 ---------------- */
.ol-grid { grid-template-columns: repeat(4, 1fr); }
.ol-grid .card-cover { aspect-ratio: 16 / 10; }
.ol-grid .card-body { padding: 12px 14px 14px; }
.ol-grid .card-title { font-size: 15px; margin-bottom: 4px; }
.ol-grid .card-desc { font-size: 13px; -webkit-line-clamp: 1; }
.ol-grid .card-meta { margin-top: 8px; font-size: 12px; gap: 8px; }
.ol-grid .cover-name { font-size: 16px; }
@media (max-width: 1024px) {
  .ol-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .ol-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .ol-grid .card-body { padding: 10px 12px 12px; }
  .ol-grid .card-title { font-size: 14px; }
}

.ol-sec-head {
  font-size: 19px; font-weight: 700; color: var(--text-1);
  margin: 0 0 16px; display: flex; align-items: baseline; gap: 10px;
}
.ol-sec-sub { font-size: 13px; font-weight: 400; color: var(--text-3); }
.ol-series-card { transition: transform .2s, box-shadow .2s; }
.ol-series-card:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(26, 92, 229, .16); }
.ol-series-names {
  margin-top: 10px; font-size: 12.5px; color: var(--text-2); line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.crumb-back {
  display: inline-block; margin-bottom: 16px; font-size: 14px;
  color: var(--text-2); text-decoration: none;
}
.crumb-back:hover { color: var(--primary); }
.series-hero {
  display: flex; gap: 26px; align-items: center;
  background: linear-gradient(120deg, #eef4ff, #f8faff);
  border: 1px solid #dbe7ff; border-radius: var(--radius-lg);
  padding: 26px 30px; margin-bottom: 30px;
}
.series-hero-cover {
  width: 300px; height: 176px; border-radius: 12px; overflow: hidden;
  flex-shrink: 0; background: #dde6f5;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 600; color: #6b7fa8;
}
.series-hero-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.series-hero-info { flex: 1; min-width: 0; }
.series-hero-info h1 { font-size: 26px; margin: 10px 0 8px; }
.series-hero-info p { color: var(--text-2); font-size: 14.5px; line-height: 1.7; margin-bottom: 10px; }
.series-hero-meta { font-size: 13px; color: var(--text-3); line-height: 1.7; }
@media (max-width: 700px) {
  .series-hero { flex-direction: column; align-items: flex-start; }
  .series-hero-cover { width: 100%; height: 170px; }
}

/* ---------------- 我的课程 ---------------- */
.my-loading { padding: 40px 0; text-align: center; color: var(--text-3); font-size: 14px; }
.my-continue {
  display: flex; align-items: center; gap: 22px;
  background: linear-gradient(120deg, #1a5ce5, #3b7bf0);
  border-radius: var(--radius-lg); padding: 22px 26px; margin-bottom: 26px;
  color: #fff; text-decoration: none;
  box-shadow: 0 8px 24px rgba(26, 92, 229, .28);
  transition: transform .25s, box-shadow .25s;
}
.my-continue:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(26, 92, 229, .38); }
.mc-cover {
  width: 132px; height: 80px; border-radius: 10px; object-fit: cover;
  flex-shrink: 0; background: rgba(255,255,255,.2);
}
.mc-info { flex: 1; min-width: 0; }
.mc-label {
  display: inline-block; font-size: 12px; font-weight: 600;
  background: rgba(255,255,255,.22); border-radius: 999px; padding: 3px 12px; margin-bottom: 8px;
}
.mc-title { font-size: 19px; font-weight: 700; margin-bottom: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mc-lesson { font-size: 13.5px; opacity: .9; margin-bottom: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mc-progress { display: flex; align-items: center; gap: 10px; }
.mc-track { flex: 1; max-width: 360px; height: 7px; background: rgba(255,255,255,.28); border-radius: 999px; overflow: hidden; }
.mc-fill { height: 100%; background: #fff; border-radius: 999px; transition: width .4s; }
.mc-pct { font-size: 13px; font-weight: 600; flex-shrink: 0; }
.mc-btn { background: #fff; color: var(--primary-dark); font-weight: 600; flex-shrink: 0; }
.mc-btn:hover { background: #f0f5ff; box-shadow: none; }
.my-grid { margin-top: 4px; }
.my-card-progress { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.my-card-progress .mc-track { background: #e9edf5; max-width: none; height: 6px; }
.my-card-progress .mc-fill { background: linear-gradient(90deg, var(--primary), var(--primary-light)); }
.my-card-pct { font-size: 12.5px; color: var(--primary); font-weight: 600; flex-shrink: 0; }
.my-card-btn {
  margin-top: 14px; padding: 9px 0; text-align: center;
  background: var(--primary-50); color: var(--primary);
  border-radius: 999px; font-size: 14px; font-weight: 600;
  transition: background .2s;
}
.my-card:hover .my-card-btn { background: var(--primary); color: #fff; }
@media (max-width: 640px) {
  .my-continue { flex-wrap: wrap; gap: 14px; padding: 18px; }
  .mc-cover { width: 100%; height: 150px; }
  .mc-btn { width: 100%; }
}

.chapter {
  background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow);
  margin-bottom: 18px; overflow: hidden;
}
.chapter-head {
  padding: 16px 22px; background: var(--primary-50);
  font-weight: 600; color: var(--primary-dark); font-size: 16px;
  display: flex; align-items: center; gap: 10px;
}
.lesson-list { display: flex; flex-direction: column; }
.lesson-item {
  padding: 15px 22px; display: flex; align-items: center; gap: 14px;
  border-top: 1px solid var(--border); transition: background .15s; cursor: pointer;
}
.lesson-item:hover { background: #f8faff; }
.lesson-no {
  width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
  background: var(--primary-50); color: var(--primary);
  display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600;
}
.lesson-title { flex: 1; font-size: 15px; }
.lesson-duration { font-size: 13px; color: var(--text-3); flex-shrink: 0; }
.lesson-locked { font-size: 12px; color: var(--text-3); flex-shrink: 0; }
.lesson-item.playing { background: var(--primary-50); }

/* 视频播放页 */
.player-wrap {
  background: #0f1626; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-hover); margin-bottom: 24px;
}
.player-wrap video { width: 100%; aspect-ratio: 16 / 9; display: block; background: #000; }
.player-note { padding: 40px; text-align: center; color: #c4ccdb; aspect-ratio: 16/9;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; }

/* ---------------- 专属视频播放器 ---------------- */
.zlb-player { position: relative; background: #000; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-hover); margin-bottom: 24px; }
.zlb-player video { width: 100%; aspect-ratio: 16/9; display: block; background: #000; }
.zlb-player .zlb-overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 5; }
.zlb-player .zlb-big-play { width: 72px; height: 72px; border-radius: 50%; background: rgba(0,0,0,.55); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 32px; transition: .2s; }
.zlb-player .zlb-big-play:hover { background: rgba(0,0,0,.75); transform: scale(1.08); }
.zlb-player .zlb-controls {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 10;
  background: linear-gradient(to top, rgba(0,0,0,.85), transparent);
  padding: 40px 14px 10px; display: flex; align-items: center; gap: 10px;
  opacity: 0; transition: opacity .25s;
}
.zlb-player:hover .zlb-controls, .zlb-player.paused .zlb-controls { opacity: 1; }
.zlb-player .zlb-btn {
  background: none; border: none; color: #fff; cursor: pointer;
  font-size: 18px; padding: 4px 6px; border-radius: 4px; line-height: 1;
}
.zlb-player .zlb-btn:hover { background: rgba(255,255,255,.15); }
.zlb-player .zlb-progress-wrap {
  flex: 1; height: 22px; display: flex; align-items: center; cursor: pointer; position: relative;
}
.zlb-player .zlb-progress-track {
  width: 100%; height: 5px; background: rgba(255,255,255,.25); border-radius: 3px; position: relative; overflow: hidden;
}
.zlb-player .zlb-progress-buffered { position: absolute; left: 0; top: 0; bottom: 0; background: rgba(255,255,255,.35); border-radius: 3px; }
.zlb-player .zlb-progress-filled { position: absolute; left: 0; top: 0; bottom: 0; background: var(--primary, #1a5ce5); border-radius: 3px; }
.zlb-player .zlb-progress-thumb {
  position: absolute; top: 50%; transform: translate(-50%, -50%);
  width: 13px; height: 13px; border-radius: 50%; background: #fff;
  box-shadow: 0 0 4px rgba(0,0,0,.5); opacity: 0; transition: opacity .15s;
}
.zlb-player .zlb-progress-wrap:hover .zlb-progress-thumb { opacity: 1; }
.zlb-player .zlb-progress-wrap.trial-locked .zlb-progress-filled { background: #e65100; }
.zlb-player .zlb-trial-mark {
  position: absolute; top: -3px; bottom: -3px; width: 2px;
  background: #fff; z-index: 5; opacity: .9;
  box-shadow: 0 0 3px rgba(0,0,0,.5);
}
.zlb-player .zlb-trial-mark::after {
  content: '试看'; position: absolute; top: -16px; left: 50%;
  transform: translateX(-50%); font-size: 10px; color: #fff;
  background: #e65100; padding: 1px 5px; border-radius: 3px; white-space: nowrap;
}
.zlb-player .zlb-time { color: #fff; font-size: 12px; font-family: monospace; white-space: nowrap; min-width: 92px; text-align: center; }
.zlb-player .zlb-trial-badge { color: #ffb74d; font-size: 11px; font-weight: 600; }
.zlb-player .zlb-volume-wrap { display: flex; align-items: center; gap: 4px; }
.zlb-player .zlb-volume-slider {
  width: 0; overflow: hidden; transition: width .2s;
}
.zlb-player .zlb-volume-wrap:hover .zlb-volume-slider { width: 70px; }
.zlb-player .zlb-volume-slider input {
  width: 70px; height: 4px; -webkit-appearance: none; background: rgba(255,255,255,.3);
  border-radius: 2px; outline: none;
}
.zlb-player .zlb-volume-slider input::-webkit-slider-thumb {
  -webkit-appearance: none; width: 11px; height: 11px; border-radius: 50%; background: #fff; cursor: pointer;
}
.zlb-player .zlb-loading {
  position: absolute; inset: 0; display: none; align-items: center; justify-content: center;
  z-index: 3; pointer-events: none;
}
.zlb-player.loading .zlb-loading { display: flex; }
.zlb-player .zlb-spinner {
  width: 48px; height: 48px; border: 4px solid rgba(255,255,255,.3);
  border-top-color: #fff; border-radius: 50%; animation: zlb-spin .8s linear infinite;
}
@keyframes zlb-spin { to { transform: rotate(360deg); } }

/* ---------------- 论坛 ---------------- */
.forum-layout { display: grid; grid-template-columns: 1fr 280px; gap: 24px; align-items: start; }
.forum-main { min-width: 0; }
.forum-side { position: sticky; top: calc(var(--header-h) + 20px); }

/* 论坛列表：左侧标签导航 + 右侧帖子列表 */
.forum-layout-with-nav { display: grid; grid-template-columns: 220px 1fr; gap: 24px; align-items: start; }
.forum-tag-nav { position: sticky; top: calc(var(--header-h) + 20px); }
.forum-tag-list { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.forum-tag-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 12px; border-radius: 8px; font-size: 14px;
  color: var(--text-2); text-decoration: none; transition: background .15s, color .15s;
}
.forum-tag-item:hover { background: var(--bg-2); color: var(--primary); }
.forum-tag-item.active { background: var(--primary); color: #fff; font-weight: 600; }
.forum-tag-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.forum-tag-count {
  flex-shrink: 0; margin-left: 8px; font-size: 12px; padding: 1px 8px; border-radius: 10px;
  background: rgba(0, 0, 0, .06);
}
.forum-tag-item.active .forum-tag-count { background: rgba(255, 255, 255, .25); }
.forum-tag-empty { font-size: 12.5px; color: var(--text-3); padding: 8px 4px; line-height: 1.6; }
.forum-current-tag {
  margin-bottom: 12px; font-size: 13.5px; color: var(--text-2);
  background: #fff; border: 1px solid var(--border); border-radius: 8px;
  padding: 8px 14px; display: inline-flex; align-items: center;
}
.forum-current-tag strong { color: var(--primary); margin: 0 4px; }
/* 帖子标签 chips */
.post-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.post-tag-chip {
  display: inline-block; font-size: 12px; color: var(--primary);
  background: var(--primary-soft, #eef2ff); padding: 2px 9px; border-radius: 10px;
}
@media (max-width: 900px) {
  .forum-layout-with-nav { grid-template-columns: 1fr; }
  .forum-tag-nav { position: static; }
  .forum-tag-list { flex-direction: row; flex-wrap: wrap; }
  .forum-tag-item { flex: 0 0 auto; }
}
.side-card { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 20px; margin-bottom: 18px; }
.side-card h4 { font-size: 15px; margin-bottom: 14px; color: var(--primary-dark); }
.forum-search { display: flex; gap: 8px; margin-bottom: 20px; }
.forum-search input { flex: 1; }
.post-row {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 16px 20px; margin-bottom: 14px; transition: .2s; cursor: pointer;
  display: flex; gap: 16px; align-items: flex-start;
}
.post-row:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.post-row-body { flex: 1; min-width: 0; }
.post-row h3 { font-size: 16px; font-weight: 600; margin-bottom: 6px; display: flex; align-items: center; gap: 8px; }
.post-excerpt { font-size: 14px; color: var(--text-2); margin-bottom: 8px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.post-thumb { width: 100px; height: 100px; object-fit: cover; border-radius: 8px; flex-shrink: 0; background: var(--bg-2); }
.pin-badge { background: var(--accent); color: #fff; font-size: 11px; padding: 1px 8px; border-radius: 4px; flex-shrink: 0; }
.post-info { font-size: 13px; color: var(--text-3); display: flex; gap: 16px; flex-wrap: wrap; }
.post-info .replies { color: var(--primary); font-weight: 500; }

.reply-item { padding: 16px 0; border-top: 1px solid var(--border); }
.reply-head { font-size: 13px; color: var(--text-3); margin-bottom: 6px; display: flex; align-items: center; gap: 8px; }
.reply-head strong { color: var(--primary-dark); font-size: 14px; }
.reply-content { font-size: 15px; color: var(--text); white-space: pre-wrap; word-break: break-word; }
.reply-img { margin-top: 8px; max-width: 260px; border-radius: 8px; cursor: zoom-in; }
.post-content { font-size: 15.5px; line-height: 1.9; white-space: pre-wrap; word-break: break-word; color: var(--text); margin: 18px 0; }
.post-images { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.post-img { max-width: 220px; max-height: 220px; object-fit: cover; border-radius: 8px; cursor: zoom-in; }

/* ---------------- 下载中心 ---------------- */
.dl-list { display: flex; flex-direction: column; gap: 12px; }
.dl-row {
  display: flex; align-items: center; gap: 16px;
  background: var(--card); border-radius: var(--radius-lg);
  padding: 16px 20px; box-shadow: var(--shadow);
  transition: box-shadow .2s;
}
.dl-row:hover { box-shadow: var(--shadow-hover); }
.dl-row-main { flex: 1; min-width: 0; }
.dl-row-title { font-size: 16px; font-weight: 600; color: var(--text-1); margin-bottom: 4px; }
.dl-row-desc { font-size: 13.5px; color: var(--text-2); line-height: 1.5; margin-bottom: 6px; }
.dl-row-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.dl-row-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 12.5px; color: var(--text-3); }
.dl-cat { color: var(--primary); font-weight: 500; }
.dl-size { color: var(--text-3); }
.dl-row-action { flex-shrink: 0; }

/* ---------------- 下载中心：左标签 + 右列表布局 ---------------- */
.dl-search-bar { display: flex; gap: 10px; margin-bottom: 20px; }
.dl-search-input {
  flex: 1; padding: 11px 16px; border: 1.5px solid var(--border); border-radius: 10px;
  font-size: 14.5px; outline: none; transition: border-color .2s; background: #fff;
}
.dl-search-input:focus { border-color: var(--primary); }
.dl-search-btn { padding: 11px 28px; font-size: 14.5px; border-radius: 10px; }
.dl-layout { display: grid; grid-template-columns: 220px 1fr; gap: 24px; align-items: start; }
.dl-sidebar {
  background: var(--card); border-radius: var(--radius-lg); padding: 14px;
  box-shadow: var(--shadow); position: sticky; top: 80px;
}
.dl-side-title { font-size: 14px; font-weight: 600; color: var(--text-2); padding: 4px 10px 10px; border-bottom: 1px solid var(--border); margin-bottom: 8px; }
.dl-side-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 12px; border-radius: 8px; cursor: pointer; font-size: 14px;
  color: var(--text-2); transition: all .15s;
}
.dl-side-item:hover { background: var(--primary-50); color: var(--primary); }
.dl-side-item.active { background: var(--primary); color: #fff; font-weight: 600; }
.dl-side-count { font-size: 12px; opacity: .7; }
.dl-result-info { font-size: 13.5px; color: var(--text-3); margin-bottom: 14px; }
.dl-result-info b { color: var(--primary); }
.dl-clear { color: var(--primary); text-decoration: none; margin-left: 6px; }
.dl-clear:hover { text-decoration: underline; }
@media (max-width: 860px) {
  .dl-layout { grid-template-columns: 1fr; }
  .dl-sidebar { position: static; }
  .dl-side-title { display: none; }
  .dl-sidebar { display: flex; flex-wrap: wrap; gap: 8px; }
  .dl-side-item { padding: 6px 14px; border: 1.5px solid var(--border); background: #fff; }
  .dl-side-item.active { border-color: var(--primary); }
  .dl-side-count { display: none; }
  .dl-row { flex-wrap: wrap; }
  .dl-row-action { width: 100%; }
  .dl-row-action .btn { width: 100%; }
}

/* ---------------- 表单 ---------------- */
.form-card {
  background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow);
  padding: 32px; max-width: 560px; margin: 40px auto;
}
.form-card.wide { max-width: 760px; }
.form-card h2 { font-size: 22px; margin-bottom: 6px; color: var(--primary-dark); text-align: center; }
.form-sub { text-align: center; color: var(--text-3); font-size: 14px; margin-bottom: 26px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 7px; color: var(--text-2); }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 11px 14px; border: 1px solid var(--border);
  border-radius: 10px; font-size: 15px; font-family: inherit; background: #fbfcfe;
  transition: border .2s, box-shadow .2s;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(26, 92, 229, .12); background: #fff;
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-switch { text-align: center; font-size: 14px; color: var(--text-3); margin-top: 18px; }
.form-switch a { color: var(--primary); font-weight: 500; }

/* 登录页：其他登录方式分割线 + 微信按钮 */
.login-divider {
  display: flex; align-items: center; margin: 22px 0 16px;
  color: var(--text-3); font-size: 13px;
}
.login-divider::before, .login-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}
.login-divider span { padding: 0 14px; }
.btn-wechat {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  color: #07c160; border-color: #07c160; background: #fff;
}
.btn-wechat:hover { background: #07c160; color: #fff; }
.btn-wechat .wx-icon { display: block; }
.form-error { color: #f53f3f; font-size: 13.5px; margin-bottom: 12px; min-height: 20px; }

/* 登录页：登录方式 Tab 切换 */
.login-tabs {
  display: flex; gap: 6px; margin-bottom: 22px;
  background: #f2f5fa; border-radius: 10px; padding: 4px;
}
.login-tab {
  flex: 1; padding: 9px 0; border: none; background: transparent;
  border-radius: 8px; font-size: 14.5px; font-family: inherit; color: var(--text-2);
  cursor: pointer; transition: background .2s, color .2s, box-shadow .2s;
}
.login-tab:hover { color: var(--primary); }
.login-tab.active {
  background: #fff; color: var(--primary); font-weight: 600;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .08);
}
/* 登录页：登录/注册模式切换行 + 绑定成功徽标 */
.auth-switch-line { text-align: center; font-size: 13.5px; color: var(--text-3); margin-top: 16px; }
.auth-switch-line a { color: var(--primary); font-weight: 500; }
.bind-ok-badge {
  width: 44px; height: 44px; line-height: 44px; margin: 8px auto 0; border-radius: 50%;
  background: #e8f7ee; color: #07c160; font-size: 22px; font-weight: 700; text-align: center;
}

/* ---------------- 详情页 ---------------- */
.detail-head { margin-bottom: 22px; }
.detail-head h1 { font-size: 26px; line-height: 1.4; margin-bottom: 12px; }
.detail-meta { display: flex; gap: 16px; color: var(--text-3); font-size: 14px; flex-wrap: wrap; align-items: center; }
.btn-link-del { margin-left: auto; background: none; border: 1px solid #e51a5c; color: #e51a5c; font-size: 13px; padding: 2px 12px; border-radius: 6px; cursor: pointer; }
.btn-link-del:hover { background: #e51a5c; color: #fff; }
.detail-cover { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); margin-bottom: 24px; background: #e9edf5; aspect-ratio: 16 / 9; max-height: 420px; }
.detail-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* 课程详情：上部标题全宽 + 中部左图右简介 + 下部课程大纲 */
.course-header {
  background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow);
  padding: 24px 28px; margin-bottom: 24px;
}
.course-hero { display: grid; grid-template-columns: 360px 1fr; gap: 28px; align-items: start; margin-bottom: 28px; }
.course-cover-left { display: block; }
.course-cover-left .detail-cover { margin-bottom: 0; width: 100%; aspect-ratio: 16 / 9; max-height: none; }
.course-info-right {
  background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow);
  padding: 24px 26px; display: flex; flex-direction: column;
}
.hero-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 14px; }
.hero-top h1 { font-size: 22px; line-height: 1.4; margin: 0; color: var(--text-1); font-weight: 700; flex: 1; }
.hero-price { font-size: 26px; font-weight: 700; color: var(--accent); white-space: nowrap; line-height: 1.2; }
.hero-meta-line { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 16px; }
.hero-meta-item { font-size: 13px; color: var(--text-2); }
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.hero-tag {
  display: inline-flex; align-items: center;
  background: #f0f5ff; color: var(--primary-dark); border: 1px solid #d6e4ff;
  border-radius: 6px; padding: 5px 12px; font-size: 13px;
}
.hero-section { margin-bottom: 14px; }
.hero-section-title { font-size: 14px; font-weight: 600; color: var(--text-1); margin-bottom: 8px; }
.hero-section p { margin: 0; color: var(--text-2); font-size: 14px; line-height: 1.8; }
.hero-outline { background: #fafbfc; border-radius: 8px; padding: 14px 16px; margin-bottom: 14px; }
.hero-outline-title { font-size: 14px; font-weight: 600; color: var(--primary-dark); margin-bottom: 10px; }
.hero-outline-item { display: flex; align-items: center; gap: 10px; padding: 5px 0; font-size: 14px; color: var(--text-2); }
.hero-outline-no {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 50%; background: var(--primary); color: #fff;
  font-size: 12px; font-weight: 700; flex-shrink: 0;
}
.hero-outline-more { margin-top: 8px; font-size: 12px; color: var(--primary); }
.hero-cta { margin-top: auto; padding-top: 16px; }
.hero-cta .btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 140px; padding: 10px 26px; font-size: 15px; font-weight: 600;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  border: none; border-radius: 8px; color: #fff; cursor: pointer;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
  transition: all 0.25s ease; text-decoration: none;
}
.hero-cta .btn:hover {
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.45);
  transform: translateY(-1px);
}
.hero-cta .btn:active { transform: translateY(0); }
@media (max-width: 860px) {
  .course-hero { grid-template-columns: 1fr; gap: 18px; }
  .course-info-right { padding: 20px; }
}
.detail-card { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 30px 34px; }
.detail-section { margin-top: 26px; }
.detail-section h3 { font-size: 17px; color: var(--primary-dark); margin-bottom: 12px; padding-left: 12px; border-left: 4px solid var(--primary); }
.detail-section ul { list-style: none; }
.detail-section li { padding: 6px 0 6px 22px; position: relative; color: var(--text-2); font-size: 15px; }
.detail-section li::before { content: '•'; position: absolute; left: 4px; color: var(--primary); font-weight: 700; }
.back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--primary); font-size: 14px; margin-bottom: 18px; }
.back-link:hover { text-decoration: underline; }

/* ---------------- 页脚 ---------------- */
.site-footer { background: #0d1b33; color: #c4ccdb; margin-top: 60px; }
.footer-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 44px 20px 30px;
  display: grid; grid-template-columns: 1.4fr 1fr 1.2fr auto; gap: 36px;
}
.footer-brand { font-size: 20px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.footer-slogan { font-size: 14px; opacity: .75; }
.footer-col h4 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.footer-col a, .footer-col p { display: block; font-size: 14px; padding: 4px 0; opacity: .8; }
.footer-col a:hover { opacity: 1; color: #fff; }
.footer-link { color: var(--primary-light) !important; }
/* 绑定手机号弹窗（微信扫码登录后弹出的绑号 modal） */
.qr-modal {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, .5);
}
.qr-box {
  position: relative; background: #fff; border-radius: 16px;
  padding: 28px 24px; width: 92%; max-width: 380px;
  box-shadow: 0 20px 60px rgba(0,0,0,.3);
}
.qr-box .form-control {
  width: 100%; padding: 10px 14px; border: 1px solid #ddd; border-radius: 8px;
  font-size: 15px; outline: none; box-sizing: border-box;
}
.qr-box .form-control:focus { border-color: var(--primary); }
/* 页脚小程序码 */
.footer-qr-box { display: block !important; padding: 0 !important; opacity: 1 !important; width: 118px; }
.footer-qr-box img {
  width: 118px; height: 118px; border-radius: 8px; background: #fff;
  padding: 5px; display: block;
}
.footer-qr-tip { display: block; font-size: 12px; opacity: .7; margin-top: 8px; line-height: 1.5; }
.footer-bar {
  border-top: 1px solid rgba(255, 255, 255, .1); text-align: center;
  padding: 16px; font-size: 13px; opacity: .7;
}
.footer-bar a { color: var(--primary-light); }

/* ---------------- 弹窗/提示/空状态 ---------------- */
.modal-mask {
  position: fixed; inset: 0; background: rgba(13, 27, 51, .55);
  z-index: 200; display: flex; align-items: center; justify-content: center; padding: 20px;
}
.modal-box {
  background: #fff; border-radius: var(--radius-lg); max-width: 520px; width: 100%;
  max-height: 86vh; overflow-y: auto; padding: 28px; position: relative;
}
.modal-close {
  position: absolute; right: 14px; top: 12px; width: 32px; height: 32px;
  border: none; background: none; font-size: 22px; color: var(--text-3);
}
.modal-close:hover { color: var(--text); }
.toast {
  position: fixed; left: 50%; top: 80px; transform: translateX(-50%);
  background: rgba(13, 27, 51, .92); color: #fff; padding: 11px 24px;
  border-radius: 999px; font-size: 14px; z-index: 300; box-shadow: 0 8px 30px rgba(0,0,0,.25);
}
.toast.error { background: #cf3a3a; }
.toast.success { background: #1a8a4c; }
.empty-box {
  text-align: center; padding: 70px 20px; color: var(--text-3);
  background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow);
}
.empty-box .empty-icon { font-size: 44px; margin-bottom: 12px; opacity: .5; }
.loading-box { text-align: center; padding: 80px 20px; color: var(--text-3); font-size: 15px; }
.page-head { margin-bottom: 26px; }
.page-head h1 { font-size: 28px; color: var(--text); }
.page-head p { color: var(--text-3); margin-top: 6px; font-size: 15px; }
.breadcrumb { font-size: 13px; color: var(--text-3); margin-bottom: 10px; }
.breadcrumb a { color: var(--primary); }

/* 线上课程区面包屑：线上课程 / 我的课程 / 课程名 */
.zlb-crumb-wrap { max-width: 1200px; margin: 18px auto 16px; padding: 0 24px; }
.container .zlb-crumb-wrap { max-width: none; margin: 0 0 14px; padding: 0; }
.zlb-crumb { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14px; color: var(--text-3); }
.zlb-crumb a { color: var(--primary); }
.zlb-crumb a:hover { text-decoration: underline; }
.zlb-crumb-sep { color: var(--text-3); opacity: .55; }
.zlb-crumb-cur { color: var(--text); }
.ol-crumb { margin-bottom: 14px; }
.pagination { display: flex; justify-content: center; gap: 10px; margin-top: 28px; align-items: center; }
.pagination .pg-info { font-size: 14px; color: var(--text-3); }

/* 图片灯箱 */
.lightbox {
  position: fixed; inset: 0; background: rgba(0, 0, 0, .88); z-index: 250;
  display: flex; align-items: center; justify-content: center; padding: 30px; cursor: zoom-out;
}
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 8px; }

/* 文件预览弹窗 */
.preview-mask {
  position: fixed; inset: 0; background: rgba(0, 0, 0, .6); z-index: 260;
  display: flex; align-items: center; justify-content: center; padding: 28px;
}
.preview-dialog {
  width: min(1100px, 100%); max-height: 100%;
  background: #fff; border-radius: 14px; overflow: hidden;
  display: flex; flex-direction: column; box-shadow: 0 20px 60px rgba(0,0,0,.3);
}
.preview-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 22px; border-bottom: 1px solid var(--border); background: #fafbff;
}
.preview-title { font-size: 15.5px; font-weight: 600; color: var(--text-1); max-width: 80%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.preview-close {
  width: 32px; height: 32px; border: none; border-radius: 50%;
  background: transparent; font-size: 22px; line-height: 1;
  color: var(--text-2); cursor: pointer; transition: background .15s;
}
.preview-close:hover { background: #eee; color: var(--text-1); }
.preview-body { flex: 1; min-height: 0; position: relative; background: #f5f6f8; }
.preview-loading {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: var(--text-3); font-size: 14px;
}
.preview-img {
  display: block; max-width: 100%; max-height: calc(100vh - 130px); margin: 0 auto;
}
.preview-iframe {
  width: 100%; height: calc(100vh - 130px); border: none; background: #fff;
}
.preview-text {
  margin: 0; padding: 24px; overflow: auto; height: calc(100vh - 130px);
  font-size: 13.5px; line-height: 1.7; font-family: 'Consolas', 'Monaco', 'Menlo', sans-serif;
  white-space: pre-wrap; word-wrap: break-word; color: var(--text-1); background: #fff;
}
.preview-text h2 { font-size: 18px; margin: 18px 0 10px; border-bottom: 2px solid var(--primary); padding-bottom: 6px; }
.preview-text h3 { font-size: 16px; margin: 14px 0 8px; color: var(--primary); }
.preview-text h4 { font-size: 14.5px; margin: 10px 0 6px; color: var(--text-1); }
.preview-text hr { border: none; border-top: 1px dashed var(--border); margin: 14px 0; }
.preview-unsupported, .preview-office-fallback {
  padding: 40px; text-align: center; color: var(--text-3); font-size: 14.5px;
}
.preview-unsupported a, .preview-office-fallback a { color: var(--primary); text-decoration: underline; }

/* 预览按钮与下载按钮并排 */
.dl-row-action { display: flex; gap: 8px; align-items: center; flex-shrink: 0; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .about-preview { grid-template-columns: 1fr; gap: 28px; }
  .forum-layout { grid-template-columns: 1fr; }
  .forum-side { position: static; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  :root { --header-h: 56px; }
  .nav-toggle { display: flex; }
  .site-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    background: #fff; flex-direction: column; gap: 0; padding: 8px 16px 16px;
    border-bottom: 1px solid var(--border); box-shadow: var(--shadow-hover);
    display: none; margin-left: 0;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 13px 10px; border-radius: 0; border-bottom: 1px solid var(--border); font-size: 15px; }
  .header-user { margin-left: 0; }
  .brand-text small { display: none; }
  .hero { padding: 48px 0 60px; }
  .hero h1 { font-size: 27px; }
  .hero .hero-sub { font-size: 15px; }
  .hero-stats { gap: 26px; }
  .hero-stat strong { font-size: 26px; }
  .section { padding: 38px 0; }
  .section-head h2 { font-size: 21px; }
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .teacher-grid { grid-template-columns: 1fr; gap: 14px; }
  .news-row { flex-wrap: wrap; gap: 8px; }
  .news-row .news-date { width: 100%; text-align: left; }
  .detail-card { padding: 20px 18px; }
  .detail-head h1 { font-size: 21px; }
  .form-card { padding: 24px 18px; margin: 20px auto; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; padding: 32px 20px 24px; }
  .about-points { grid-template-columns: 1fr; }
  .about-visual { grid-template-columns: 1fr 1fr; }
  .online-banner { padding: 22px 20px; }
  .lesson-item { padding: 13px 16px; }
}
@media (max-width: 400px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1; }
}

/* ---------------- 扫码登录弹窗 ---------------- */
.modal-mask {
  position: fixed; inset: 0; background: rgba(0,0,0,.55);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999; padding: 20px;
}
.modal-mask[hidden] { display: none; }
.modal-card {
  background: #fff; border-radius: 16px; padding: 32px 28px 28px;
  max-width: 380px; width: 100%; position: relative; text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,.2);
}
.modal-close {
  position: absolute; top: 12px; right: 14px; width: 32px; height: 32px;
  border: none; background: none; font-size: 24px; color: #999; cursor: pointer; line-height: 1;
}
.modal-close:hover { color: #333; }
.qr-title { font-size: 20px; font-weight: 700; color: var(--text); margin: 0 0 20px; }
.qr-img-box {
  width: 240px; height: 240px; margin: 0 auto; position: relative;
  border: 1px solid #eee; border-radius: 12px; overflow: hidden;
  display: flex; align-items: center; justify-content: center; background: #fafafa;
}
.qr-img-box canvas { display: block; }
.qr-fallback { font-size: 12px; color: #666; word-break: break-all; padding: 16px; }
.qr-mask {
  position: absolute; inset: 0; background: rgba(255,255,255,.95);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
}
.qr-mask[hidden] { display: none; }
.qr-mask-text { font-size: 15px; color: var(--text-2); }
.qr-tip { font-size: 14px; color: var(--text-2); margin: 18px 0 0; }
.qr-tip-sub { font-size: 12px; color: var(--text-3); margin-top: 6px; }
.qr-switch { margin-top: 14px; font-size: 13px; }
.qr-switch a { color: var(--primary); text-decoration: none; }
.qr-switch a:hover { text-decoration: underline; }

/* ---------------- 登录引导遮罩 ---------------- */
.login-gate {
  max-width: 460px; margin: 40px auto; text-align: center;
  background: #fff; border-radius: 16px; padding: 48px 32px;
  box-shadow: 0 8px 30px rgba(0,0,0,.08);
}
.gate-icon { font-size: 52px; margin-bottom: 16px; }
.login-gate h2 { font-size: 22px; color: var(--text); margin: 0 0 10px; }
.login-gate p { color: var(--text-2); font-size: 15px; line-height: 1.7; margin: 0 0 24px; }
.gate-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- 聊天自动回复悬浮窗 ---------- */
.chat-fab {
  position: fixed; right: 24px; bottom: 24px; z-index: 999;
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff; font-size: 26px; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4); cursor: pointer;
  transition: transform 0.2s;
}
.chat-fab:hover { transform: scale(1.08); }
.chat-panel {
  position: fixed; right: 24px; bottom: 92px; z-index: 999;
  width: 340px; max-width: calc(100vw - 32px); height: 460px; max-height: calc(100vh - 120px);
  background: #fff; border-radius: 14px; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
  display: flex; flex-direction: column; overflow: hidden;
  opacity: 0; transform: translateY(16px) scale(0.96); pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
}
.chat-panel.open { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.chat-panel-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff; font-weight: 600; font-size: 15px;
}
.chat-close { background: transparent; border: none; color: #fff; font-size: 22px; cursor: pointer; line-height: 1; padding: 0 4px; }
.chat-msgs { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: #f5f7fb; }
.chat-msg { display: flex; max-width: 80%; }
.chat-bot { align-self: flex-start; }
.chat-user { align-self: flex-end; }
.chat-bubble {
  padding: 10px 14px; border-radius: 12px; font-size: 14px; line-height: 1.6; word-break: break-word;
}
.chat-bot .chat-bubble { background: #fff; color: #333; border-bottom-left-radius: 4px; box-shadow: 0 1px 3px rgba(0,0,0,0.08); }
.chat-user .chat-bubble { background: #2563eb; color: #fff; border-bottom-right-radius: 4px; }
.chat-loading .chat-bubble { color: #999; font-style: italic; }
.chat-input-bar { display: flex; gap: 8px; padding: 12px; border-top: 1px solid #eee; background: #fff; }
.chat-input {
  flex: 1; height: 38px; padding: 0 12px; border: 1px solid #ddd; border-radius: 20px;
  font-size: 14px; outline: none;
}
.chat-input:focus { border-color: #2563eb; }
.chat-send {
  padding: 0 18px; height: 38px; border: none; border-radius: 20px;
  background: #2563eb; color: #fff; font-size: 14px; cursor: pointer; white-space: nowrap;
}
.chat-send:hover { background: #1d4ed8; }
.chat-quick-bar { display: flex; justify-content: center; gap: 8px; padding: 4px 12px 0; }
.chat-transfer-btn {
  background: #07c160; color: #fff; border: none; border-radius: 18px;
  padding: 6px 18px; font-size: 13px; cursor: pointer; white-space: nowrap;
  transition: background .2s;
}
.chat-transfer-btn:hover { background: #06ad56; }
.chat-wechat-btn {
  background: #07c160; color: #fff; border: none; border-radius: 18px;
  padding: 6px 18px; font-size: 13px; cursor: pointer; white-space: nowrap;
  transition: background .2s;
}
.chat-wechat-btn:hover { background: #06ad56; }
@media (max-width: 480px) {
  .chat-panel { right: 12px; left: 12px; width: auto; bottom: 84px; }
  .chat-fab { right: 16px; bottom: 16px; }
}

/* ============================================================
   线上课程详情 · 小鹅通样式（oc-* 前缀）
   通栏深色视频区 + 标题栏 + 详情/目录双 Tab + 侧栏
   ============================================================ */
/* 通栏深色视频区 */
.oc-band { background: #000; }
.oc-player { background: #000; max-width: 1200px; margin: 0 auto; }
.oc-player .zlb-player { margin-bottom: 0; border-radius: 0; box-shadow: none; }
.oc-player .player-note { margin-bottom: 0; border-radius: 0; }
/* 深色标题栏 */
.oc-darkbar { background: #1f2129; }
.oc-darkbar-inner {
  max-width: 1200px; margin: 0 auto; padding: 16px 24px;
  display: flex; align-items: center; gap: 16px;
}
.oc-dark-title {
  flex: 1; min-width: 0; color: #fff; font-size: 18px; font-weight: 600;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.oc-dark-ops { display: flex; gap: 12px; flex-shrink: 0; }
.oc-ghost {
  display: inline-block; padding: 8px 18px; border: 1px solid rgba(255,255,255,.45);
  border-radius: 6px; color: #fff; font-size: 13.5px; text-decoration: none;
  background: transparent; cursor: pointer; white-space: nowrap; line-height: 1.4;
}
.oc-ghost:hover { background: rgba(255,255,255,.14); }
/* 播放线路切换下拉 */
.oc-line-box { position: relative; }
.oc-line-menu {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 50;
  background: #fff; border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.25);
  padding: 6px; width: 248px;
}
.oc-line-opt {
  display: block; width: 100%; text-align: left; padding: 9px 12px; border: none;
  background: transparent; border-radius: 8px; cursor: pointer; color: #333; line-height: 1.4;
}
.oc-line-opt:hover { background: #f3f5f8; }
.oc-line-opt b { display: block; font-size: 13.5px; }
.oc-line-opt span { display: block; font-size: 12px; color: #98a1ad; margin-top: 2px; }
.oc-line-opt.on { background: #eef2fe; }
.oc-line-opt.on b { color: #4a6ee0; }
.oc-line-opt.dis { opacity: .5; cursor: not-allowed; }
/* 主体布局：左内容 + 右侧栏 */
.oc-layout {
  max-width: 1200px; margin: 24px auto 40px; padding: 0 24px;
  display: flex; gap: 24px; align-items: flex-start;
}
.oc-main { flex: 1; min-width: 0; }
.oc-side { width: 300px; flex-shrink: 0; display: flex; flex-direction: column; gap: 16px; }
.oc-card { background: #fff; border-radius: 12px; box-shadow: var(--shadow); overflow: hidden; }
/* 总览页头卡 */
.oc-overview-head {
  display: flex; align-items: flex-start; gap: 22px; padding: 28px 32px;
}
.oc-overview-head .oc-course-cover { width: 200px; height: 128px; }
.oc-overview-head .oc-course-title { font-size: 22px; }
.oc-overview-head .oc-course-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
/* 卡片标题（课程简介 / 课程目录） */
.oc-card-head {
  padding: 18px 24px 0; font-size: 16px; font-weight: 600; color: var(--text);
}
/* Tab 栏 */
.oc-tabs { display: flex; border-bottom: 1px solid #eef0f4; padding: 0 24px; }
.oc-tab {
  padding: 16px 20px; font-size: 16px; color: var(--text-3);
  cursor: pointer; position: relative; font-weight: 500;
}
.oc-tab:hover { color: var(--primary); }
.oc-tab.oc-tab-on { color: var(--primary); font-weight: 600; }
.oc-tab.oc-tab-on::after {
  content: ''; position: absolute; left: 20px; right: 20px; bottom: -1px;
  height: 3px; border-radius: 2px; background: var(--primary);
}
/* Tab 内容体 */
#ocTabBody, .oc-tab-body { padding: 24px; }
/* 详情 Tab */
.oc-detail { padding: 24px; }
.oc-course-head { display: flex; gap: 18px; align-items: center; }
.oc-course-cover {
  width: 168px; height: 108px; object-fit: cover; border-radius: 10px;
  flex-shrink: 0; background: #f2f4f8;
}
.oc-course-title { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.oc-course-teacher { color: var(--text-3); font-size: 14px; }
.oc-progress-row { display: flex; align-items: center; gap: 12px; margin: 22px 0 14px; }
.oc-progress-label { font-size: 14px; color: var(--text-2); flex-shrink: 0; }
.oc-progress-track { flex: 1; height: 8px; background: #eef0f4; border-radius: 4px; overflow: hidden; }
.oc-progress-fill { height: 100%; background: var(--primary); border-radius: 4px; transition: width .3s; }
.oc-progress-pct { font-size: 14px; color: var(--text-2); width: 46px; text-align: right; flex-shrink: 0; }
.oc-continue-row { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.oc-continue-btn {
  background: var(--primary); color: #fff; border: none; padding: 11px 30px;
  border-radius: 8px; font-size: 15px; cursor: pointer; font-weight: 500;
}
.oc-continue-btn:hover { background: var(--primary-dark); }
.oc-last { color: var(--text-3); font-size: 13.5px; }
.oc-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.oc-tag {
  font-size: 12.5px; padding: 5px 12px; border-radius: 6px;
  background: #f2f4f8; color: var(--text-2);
}
.oc-tag-trial { background: #fff3e0; color: #e65100; }
.oc-tag-lock { background: #e8f0fe; color: #1a5ce5; }
.oc-tag-warn { background: #fff1f0; color: #e5484d; }
.oc-block { margin-top: 24px; }
.oc-block-label { font-size: 15px; font-weight: 600; margin-bottom: 10px; }
.oc-intro { font-size: 14.5px; line-height: 1.9; color: var(--text-2); white-space: pre-wrap; }
.oc-file-bar {
  display: flex; align-items: center; gap: 8px; margin-top: 12px;
  padding: 14px 16px; background: var(--primary-50); border-radius: 8px;
  color: var(--primary); font-size: 14px; text-decoration: none; font-weight: 500;
}
.oc-file-bar:hover { background: #e3edff; }
/* 无权限资料条：可见但不可下载 */
.oc-file-bar.oc-file-locked {
  background: #f7f8fa; border: 1px dashed #c9cdd4; color: var(--text-3);
  cursor: pointer;
}
.oc-file-bar.oc-file-locked:hover { background: #f0f1f3; }
/* 播放器与 Tab 之间：当前播放课时简介 + 相关资料（独立卡片，与下方布局同宽） */
.oc-lesson-section {
  max-width: 1200px; margin: 20px auto 0; padding: 0 24px;
}
.oc-lesson-card {
  background: #fff; border-radius: 12px; box-shadow: var(--shadow);
  padding: 20px 22px;
}
.oc-lesson-card .oc-block { margin: 0; }
/* 目录 Tab */
.oc-catalog { padding: 0; }
.oc-toolbar { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.oc-catalog-title { font-size: 17px; font-weight: 700; flex-shrink: 0; }
.oc-search { flex: 1; position: relative; min-width: 0; }
.oc-search-input {
  width: 100%; padding: 10px 42px 10px 14px; border: 1px solid var(--border);
  border-radius: 8px; font-size: 14px; background: #f7f8fa; outline: none;
}
.oc-search-input:focus { border-color: var(--primary); background: #fff; }
.oc-search-icon { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); pointer-events: none; }
.oc-chapter { margin-bottom: 12px; }
.oc-ch-head {
  display: flex; align-items: center; gap: 8px; padding: 14px 18px;
  background: #f5f6f8; border-radius: 10px; cursor: pointer; user-select: none;
}
.oc-ch-head:hover { background: #eef1f5; }
.oc-ch-name { font-size: 15px; font-weight: 600; }
.oc-ch-count { color: var(--text-3); font-weight: 400; font-size: 13px; }
.oc-ch-arrow { margin-left: auto; color: var(--text-3); font-size: 15px; }
.oc-ch-body { padding: 4px 0; }
.oc-ls-row { padding: 14px 18px; border-radius: 10px; cursor: pointer; }
.oc-ls-row:hover { background: #f8faff; }
.oc-ls-row.oc-ls-on { background: var(--primary-50); }
.oc-ls-line { display: flex; align-items: center; gap: 10px; }
.oc-ls-no { width: 34px; color: var(--text-3); font-size: 14px; flex-shrink: 0; }
.oc-ls-name { flex: 1; min-width: 0; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.oc-ls-row.oc-ls-on .oc-ls-name { color: var(--primary); font-weight: 600; }
.oc-ls-badge {
  background: var(--primary); color: #fff; font-size: 12px;
  padding: 3px 10px; border-radius: 4px; flex-shrink: 0; font-weight: 500;
}
.oc-ls-meta {
  margin: 6px 0 0 44px; font-size: 13px; color: var(--text-3);
  display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
}
.oc-meta-pct { color: var(--primary); }
.oc-meta-done { color: #16a34a; }
.oc-meta-wait { color: var(--text-3); }
.oc-meta-article { color: #16a34a; font-weight: 600; }
/* 图文课程阅读区（替代视频播放器） */
.article-reader { background: #fff; max-width: 900px; margin: 0 auto; }
.article-reader-inner { padding: 32px 40px; }
.article-reader-title { font-size: 22px; font-weight: 700; color: var(--text); margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--border, #e5e8ef); }
.article-reader-body { font-size: 15.5px; line-height: 1.9; color: var(--text); }
.article-reader-body p { margin-bottom: 14px; }

/* ============================================================
   图文课程阅读页：左侧章节导航 + 右侧文档正文（PDF 式阅读）
   ============================================================ */
.doc-wrap { padding-top: 14px; padding-bottom: 18px; }
/* 桌面端：整体占满一屏，正文区内部滚动 → 顶栏与左侧章节固定不动 */
.doc-shell { display: flex; flex-direction: column; height: calc(100vh - var(--header-h) - 118px); min-height: 520px; }
.doc-topbar {
  flex-shrink: 0; display: flex; align-items: center; gap: 14px;
  background: #fff; border-radius: 12px; box-shadow: var(--shadow);
  padding: 9px 14px; margin-bottom: 12px;
}
.doc-topbar-title { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 10px; overflow: hidden; }
.doc-topbar-course { flex-shrink: 0; font-size: 13px; color: var(--text-3); }
.doc-topbar-cur { font-size: 15px; font-weight: 700; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.doc-top-select { display: none; }
.doc-top-ops { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
/* 顶栏翻页按钮：紧凑圆形图标 */
.doc-top-ops .doc-pager-btn {
  height: 32px; width: 32px; padding: 0; border-radius: 50%;
  font-size: 16px; display: inline-flex; align-items: center; justify-content: center;
  line-height: 1;
}
.doc-top-ops .doc-pager-pos { font-size: 12px; color: var(--text-3); min-width: 44px; text-align: center; }
.doc-layout { flex: 1; min-height: 0; display: flex; gap: 20px; align-items: stretch; }
.doc-side {
  width: 260px; flex-shrink: 0; display: flex; flex-direction: column;
  background: #fff; border-radius: 14px; box-shadow: var(--shadow); overflow: hidden;
}
.doc-side-head { padding: 16px 18px; border-bottom: 1px solid #eef0f4; background: linear-gradient(135deg, #f5f8ff, #fff); }
.doc-course-name { font-size: 15px; font-weight: 700; color: var(--text); line-height: 1.5; }
.doc-side-meta { font-size: 12px; color: var(--text-3); margin-top: 5px; }
.doc-toc { flex: 1; min-height: 0; overflow-y: auto; padding: 8px; }
.doc-toc::-webkit-scrollbar { width: 4px; }
.doc-toc::-webkit-scrollbar-thumb { background: #dfe3ea; border-radius: 4px; }
.doc-toc-item {
  display: flex; gap: 10px; align-items: flex-start; padding: 10px; border-radius: 8px;
  color: var(--text-2); text-decoration: none; font-size: 14px; line-height: 1.5;
  transition: background .18s, color .18s;
}
.doc-toc-item:hover { background: #f4f6fb; color: var(--primary); }
.doc-toc-item.on { background: #eef3ff; color: var(--primary); font-weight: 600; }
.doc-toc-no {
  flex-shrink: 0; width: 26px; height: 22px; border-radius: 6px; background: #f2f5fa;
  color: #86909c; font-size: 12px; display: inline-flex; align-items: center; justify-content: center;
}
.doc-toc-item.on .doc-toc-no { background: var(--primary); color: #fff; }
.doc-toc-text { flex: 1; min-width: 0; word-break: break-word; }
.doc-main { flex: 1; min-width: 0; overflow-y: auto; }
.doc-main::-webkit-scrollbar { width: 8px; }
.doc-main::-webkit-scrollbar-thumb { background: #d7dbe3; border-radius: 4px; }
.doc-paper { background: #fff; border-radius: 14px; box-shadow: var(--shadow); padding: 36px 52px 30px; min-height: 100%; }
.doc-paper-head { margin-bottom: 22px; padding-bottom: 16px; border-bottom: 1px solid #eef0f4; }
.doc-paper-no { display: inline-block; font-size: 12px; color: var(--primary); background: #eef3ff; padding: 2px 10px; border-radius: 10px; }
.doc-paper-title { font-size: 24px; font-weight: 700; margin-top: 10px; line-height: 1.45; color: var(--text); }
.doc-content { font-size: 15.5px; line-height: 1.95; color: var(--text); }
.doc-content p { margin-bottom: 14px; }
.doc-empty { color: var(--text-3); }
.doc-pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 36px; padding-top: 18px; border-top: 1px dashed #e5e8ef; }
.doc-pager-btn {
  height: 38px; padding: 0 18px; border-radius: 19px; border: 1.5px solid #e5e6eb;
  background: #fff; color: var(--text-2); font-size: 14px; cursor: pointer; transition: all .18s;
}
.doc-pager-btn:hover:not(:disabled) { border-color: var(--primary); color: var(--primary); }
.doc-pager-btn:disabled { opacity: .45; cursor: not-allowed; }
.doc-pager-pos { font-size: 13px; color: var(--text-3); }
@media (max-width: 900px) {
  .doc-wrap { padding-top: 8px; padding-bottom: 24px; }
  .doc-shell { display: block; height: auto; min-height: 0; }
  /* 移动端顶栏改两行：第一行章节选择，第二行上一节 / 下一节 */
  .doc-topbar {
    position: sticky; top: var(--header-h); z-index: 45;
    flex-wrap: wrap; gap: 8px; padding: 8px 10px; margin-bottom: 10px;
    border-radius: 10px;
  }
  /* 第一行：隐藏长标题，只留章节下拉，独占整行 */
  .doc-topbar-title { display: none; }
  .doc-top-select {
    display: block; flex: 1 0 100%; width: 100%; min-width: 0; height: 38px;
    border: 1.5px solid #e5e6eb; border-radius: 8px; background-color: #fff;
    color: var(--text-2); font-size: 13px;
    padding: 0 28px 0 10px; appearance: none; -webkit-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'><path fill='%2386909c' d='M6 8.5L1.5 4h9z'/></svg>");
    background-repeat: no-repeat; background-position: right 8px center; cursor: pointer;
    box-sizing: border-box;
  }
  /* 第二行：翻页按钮铺满整行 */
  .doc-top-ops {
    flex: 1 0 100%; gap: 8px; justify-content: space-between;
  }
  .doc-top-ops .doc-pager-pos { display: inline-block; flex-shrink: 0; min-width: 40px; font-size: 12px; text-align: center; }
  .doc-top-ops .doc-pager-btn {
    flex: 1; width: auto; height: 36px; border-radius: 18px; font-size: 13px;
  }
  /* 圆形图标按钮在移动端补上文字 */
  .doc-top-ops .doc-pager-btn[data-dir="prev"]::after { content: " 上一节"; }
  .doc-top-ops .doc-pager-btn[data-dir="next"]::before { content: "下一节 "; }
  .doc-side { display: none; }
  .doc-layout { display: block; }
  .doc-main { display: block; overflow: visible; scroll-margin-top: calc(var(--header-h) + 66px); }
  .doc-paper { padding: 20px 16px; border-radius: 12px; min-height: 0; margin: 0 4px; }
  .doc-paper-title { font-size: 19px; }
  .doc-content { font-size: 15px; line-height: 1.85; }
  /* 移动端隐藏正文底部翻页，顶栏已有 */
  .doc-pager { display: none; }
}
.oc-search-empty { text-align: center; color: var(--text-3); padding: 44px 0; font-size: 14px; }
/* 侧栏 */
.oc-side-card { background: #fff; border-radius: 12px; box-shadow: var(--shadow); padding: 24px; }
.oc-brand-card { text-align: center; }
.oc-brand-logo {
  width: 64px; height: 64px; border-radius: 50%; background: var(--primary);
  color: #fff; font-size: 28px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 12px;
}
.oc-brand-logo.oc-brand-logo-img { background: #fff; padding: 4px; box-sizing: border-box; border: 1px solid var(--border, #e5e8ef); overflow: hidden; }
.oc-brand-logo img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.oc-brand-name { font-size: 17px; font-weight: 700; margin-bottom: 16px; }
.oc-home-btn {
  display: block; padding: 10px; border-radius: 8px; background: #f2f4f8;
  color: var(--text-2); text-decoration: none; font-size: 14px;
}
.oc-home-btn:hover { background: var(--primary-50); color: var(--primary); }
.oc-side-title { font-size: 15px; margin-bottom: 6px; color: var(--primary-dark); }
.oc-related {
  display: flex; gap: 12px; align-items: center; padding: 10px 0;
  text-decoration: none; border-bottom: 1px solid #f2f4f8;
}
.oc-related:last-child { border-bottom: none; }
.oc-related-cover {
  width: 72px; height: 48px; object-fit: cover; border-radius: 6px;
  flex-shrink: 0; background: #f2f4f8;
}
.oc-related-name { font-size: 14px; color: var(--text); line-height: 1.4; }
.oc-related:hover .oc-related-name { color: var(--primary); }
/* 手机观看弹窗 */
.oc-qr-img { width: 220px; height: 220px; display: block; border-radius: 8px; }
/* 响应式：窄屏单栏堆叠 */
@media (max-width: 900px) {
  .oc-layout { flex-direction: column; padding: 0 14px; margin: 16px auto 30px; gap: 16px; }
  .oc-lesson-section { margin: 14px auto 0; padding: 0 14px; }
  .oc-lesson-card { padding: 16px 14px; }
  .oc-side { width: 100%; }
  .oc-darkbar-inner { padding: 13px 16px; gap: 10px; }
  .oc-dark-title { font-size: 16px; }
  .oc-ghost { padding: 7px 12px; font-size: 13px; }
  .oc-tabs { padding: 0 16px; }
  .oc-detail { padding: 18px 16px; }
  #ocTabBody, .oc-tab-body { padding: 18px 16px; }
  .oc-course-cover { width: 120px; height: 78px; }
  .oc-course-title { font-size: 18px; }
  .oc-toolbar { flex-direction: column; align-items: stretch; gap: 10px; }
  /* 照片墙：平板/手机降为两列，大图降为通栏横图 */
  .wall-4, .wall-3 { grid-template-columns: 1fr 1fr; gap: 12px; }
  .wall-big { grid-column: span 2; grid-row: span 1; aspect-ratio: 2 / 1; }
  .wall-big .wall-cap { padding: 36px 16px 13px; }
  .wall-big .wall-cap strong { font-size: 14px; }
  .wall-zoom { display: none; }
  /* 培训场景：单列，缩略图横向滑动 */
  .train-show { grid-template-columns: 1fr; gap: 16px; margin-bottom: 14px; }
  /* 适合人群：两列 */
  .aud-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .aud-card { padding: 24px 16px 22px; }
  .aud-card h3 { font-size: 18px; }
  /* 就业轮播：移动端两列 */
  .job-page { grid-template-columns: 1fr 1fr; gap: 10px; }
  .job-cell { aspect-ratio: 3 / 4; }
  .job-arrow { width: 34px; height: 34px; }
  .job-cap { padding: 28px 14px 10px; }
  .job-cap strong { font-size: 14px; }
  .train-main { min-height: 240px; }
  .train-side { padding: 0; }
  .train-side h3 { font-size: 20px; }
  .train-side p { font-size: 14px; line-height: 1.95; }
  .train-side .btn { padding: 10px 30px; }
  .train-thumbs {
    display: flex; overflow-x: auto; gap: 10px;
    padding-bottom: 8px; scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }
  .train-thumb { flex: 0 0 132px; scroll-snap-align: start; }
}
@media (max-width: 400px) {
  .wall-4, .wall-3 { gap: 10px; }
  .wall-cap { padding: 28px 12px 10px; }
  .wall-cap strong, .wall-big .wall-cap strong { font-size: 13px; }
  .aud-grid { grid-template-columns: 1fr; }
}

/* ---- 新闻富文本正文（后台 wangEditor 生成） ---- */
.rich-body { display: flow-root; }
.rich-body img { max-width: 100%; height: auto; border-radius: 8px; margin: 8px 0; }
/* 图文课程正文：环绕排版 / 并排多图（后台可视化设置的内联样式为兜底） */
.rich-body .zlb-img-row { display: flex; gap: 8px; align-items: flex-start; margin: 10px 0; clear: both; }
.rich-body .zlb-img-row .zlb-img-cell { flex: 1 1 0; min-width: 0; }
.rich-body .zlb-img-row img { width: 100%; height: auto; margin: 0; }
.rich-body a { color: var(--primary); text-decoration: underline; word-break: break-all; }
.rich-body h2, .rich-body h3, .rich-body h4 { margin: 20px 0 10px; line-height: 1.4; }
.rich-body ul, .rich-body ol { padding-left: 24px; margin: 10px 0; }
.rich-body li { margin: 4px 0; }
.rich-body blockquote { margin: 12px 0; padding: 8px 16px; border-left: 4px solid var(--primary); background: #f7f9fc; border-radius: 0 8px 8px 0; color: var(--text-2); }
.rich-body pre { background: #f6f8fa; border: 1px solid #e5e8ef; border-radius: 8px; padding: 14px 16px; overflow-x: auto; margin: 12px 0; }
.rich-body code { font-family: Consolas, Menlo, Monaco, monospace; background: #f2f5fa; border-radius: 4px; padding: 2px 6px; font-size: 90%; }

/* ============================================================
   在线题库 / 模拟考试
   ============================================================ */
.ex-mode-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 34px; }
.ex-mode-card {
  display: flex; align-items: center; gap: 18px; padding: 26px 28px; border-radius: var(--radius-lg);
  cursor: pointer; transition: transform .25s, box-shadow .25s; color: #fff; position: relative; overflow: hidden;
}
.ex-mode-card::after {
  content: ''; position: absolute; right: -40px; top: -40px; width: 140px; height: 140px;
  background: rgba(255,255,255,.12); border-radius: 50%;
}
.ex-mode-practice { background: linear-gradient(135deg, #1a5ce5, #4d8bff); box-shadow: 0 10px 28px rgba(26,92,229,.28); }
.ex-mode-mock { background: linear-gradient(135deg, #0e9f6e, #34c98f); box-shadow: 0 10px 28px rgba(14,159,110,.26); }
.ex-mode-card:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(0,0,0,.18); }
.ex-mode-ico { font-size: 40px; line-height: 1; z-index: 1; }
.ex-mode-info { flex: 1; z-index: 1; }
.ex-mode-info h3 { font-size: 19px; margin-bottom: 6px; }
.ex-mode-info p { font-size: 13.5px; opacity: .92; line-height: 1.6; }
.ex-mode-btn {
  z-index: 1; background: rgba(255,255,255,.2); border: 1px solid rgba(255,255,255,.5);
  padding: 8px 18px; border-radius: 999px; font-size: 13.5px; white-space: nowrap;
}
.ex-mode-card:hover .ex-mode-btn { background: #fff; color: var(--primary); }

.ex-cat-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 16px; }
.ex-cat-head h2 { font-size: 19px; }
.ex-cat-head span { font-size: 13px; color: var(--text-3); }
.ex-cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.ex-cat-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 20px; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s, border-color .2s;
}
.ex-cat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); border-color: #bcd2ff; }
.ex-cat-name { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.ex-cat-count { font-size: 13px; color: var(--text-3); margin-bottom: 14px; }
/* 分类卡片：上次练习进度角标 */
.ex-cat-prog {
  float: right; font-size: 11px; font-weight: 500; color: #1a5ce5; background: rgba(26, 92, 229, .1);
  padding: 2px 8px; border-radius: 10px; line-height: 1.4;
}
/* 顺序练习：恢复上次位置提示条 */
.ex-resume-tip {
  display: flex; align-items: center; gap: 10px; padding: 10px 16px; margin-bottom: 14px;
  background: rgba(26, 92, 229, .07); border: 1px solid rgba(26, 92, 229, .18);
  border-radius: 10px; font-size: 13px; color: var(--text-2);
}
.ex-resume-tip a { color: #1a5ce5; font-weight: 500; margin-left: auto; flex-shrink: 0; }
.ex-resume-tip a:hover { text-decoration: underline; }
.ex-cat-ops { display: flex; gap: 8px; }
.ex-mini-btn {
  flex: 1; padding: 7px 0; border-radius: 8px; font-size: 13px; cursor: pointer; border: 1px solid; transition: all .15s;
}
.ex-mini-btn.ex-practice { background: #eef4ff; border-color: #cfe0ff; color: var(--primary); }
.ex-mini-btn.ex-practice:hover { background: var(--primary); color: #fff; }
.ex-mini-btn.ex-mock { background: #e9faf2; border-color: #bdeedd; color: #0e9f6e; }
.ex-mini-btn.ex-mock:hover { background: #0e9f6e; color: #fff; }

/* 答题区通用 */
.ex-run-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; flex-wrap: wrap; gap: 8px; }
.ex-run-title { font-size: 17px; font-weight: 700; }
.ex-run-stat { font-size: 13.5px; color: var(--text-2); }
.ex-run-stat b { color: var(--primary); font-size: 15px; }
.ex-progress { height: 6px; background: #eceff5; border-radius: 999px; overflow: hidden; margin-bottom: 20px; }
.ex-progress-bar { height: 100%; background: linear-gradient(90deg, #1a5ce5, #4d8bff); border-radius: 999px; transition: width .3s; }
.ex-question-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 26px 28px; box-shadow: var(--shadow);
}
.ex-q-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.ex-type-tag { font-size: 12px; padding: 3px 10px; border-radius: 6px; color: #fff; font-weight: 500; }
.ex-type-single { background: var(--primary); }
.ex-type-multiple { background: #7a5af8; }
.ex-type-judge { background: #0e9f6e; }
.ex-type-blank { background: #e67e22; }
.ex-type-essay { background: #2c3e50; }
.ex-q-no { font-size: 12.5px; color: var(--text-3); }
.ex-q-content { font-size: 17px; line-height: 1.75; font-weight: 600; margin-bottom: 20px; color: var(--text); }
.ex-tip { font-size: 13px; color: var(--text-3); background: #f6f8fc; border-radius: 8px; padding: 8px 14px; margin-bottom: 16px; }

.ex-options { display: flex; flex-direction: column; gap: 12px; }
.ex-option {
  display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border: 1.5px solid var(--border);
  border-radius: 10px; cursor: pointer; transition: all .15s; background: #fff; user-select: none;
}
.ex-option:hover { border-color: #9fbdf7; background: #f7faff; }
.ex-option-key {
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid #c9d1de;
  display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; color: var(--text-2);
}
.ex-option-text { font-size: 15px; line-height: 1.6; padding-top: 2px; }
.ex-option.is-picked { border-color: var(--primary); background: #eef4ff; }
.ex-option.is-picked .ex-option-key { background: var(--primary); border-color: var(--primary); color: #fff; }
.ex-option.is-locked { cursor: default; }
.ex-option.is-right { border-color: #0e9f6e; background: #ecfbf4; }
.ex-option.is-right .ex-option-key { background: #0e9f6e; border-color: #0e9f6e; color: #fff; }
.ex-option.is-wrong { border-color: #f53f3f; background: #fff1f1; }
.ex-option.is-wrong .ex-option-key { background: #f53f3f; border-color: #f53f3f; color: #fff; }

.ex-result-banner { margin-top: 18px; padding: 12px 16px; border-radius: 10px; font-size: 14.5px; font-weight: 600; }
.ex-result-banner.ok { background: #ecfbf4; color: #0a7d56; border: 1px solid #bdeedd; }
.ex-result-banner.no { background: #fff1f1; color: #cf2e2e; border: 1px solid #fcc; }
.ex-analysis-box {
  margin-top: 14px; background: #fafbfd; border: 1px solid var(--border); border-left: 3px solid var(--primary);
  border-radius: 0 8px 8px 0; padding: 12px 16px; font-size: 14px; line-height: 1.8; color: var(--text-2);
}
.ex-ref-label { font-size: 12.5px; font-weight: 700; color: var(--primary); margin-bottom: 4px; }
.ex-ref-box { background: #f6f8fc; border-radius: 10px; padding: 14px 18px; }
.ex-ref-text { font-size: 15px; line-height: 1.8; color: var(--text); }
.ex-run-foot { text-align: center; margin-top: 22px; }

/* 模拟考试导航 */
.ex-mock-nav { display: flex; align-items: center; gap: 16px; margin-top: 22px; flex-wrap: wrap; }
.ex-dots { flex: 1; display: flex; flex-wrap: wrap; gap: 7px; min-width: 200px; }
.ex-dot {
  width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--border); background: #fff;
  font-size: 12.5px; color: var(--text-2); cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all .12s;
}
.ex-dot:hover { border-color: var(--primary); color: var(--primary); }
.ex-dot.done { background: #eef4ff; border-color: #9fbdf7; color: var(--primary); font-weight: 600; }
.ex-dot.current { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 700; }
.ex-submit-link { background: none; border: none; color: var(--text-3); font-size: 13px; cursor: pointer; text-decoration: underline; }
.ex-submit-link:hover { color: #f53f3f; }

/* 成绩页 */
.ex-score-card {
  background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow); border: 1px solid var(--border);
  padding: 40px 30px; text-align: center; border-top: 5px solid var(--primary);
}
.ex-score-card.pass { border-top-color: #0e9f6e; }
.ex-score-card.fail { border-top-color: #f53f3f; }
.ex-score-label { font-size: 16px; color: var(--text-2); margin-bottom: 10px; }
.ex-score-num { font-size: 64px; font-weight: 800; line-height: 1; color: var(--primary); }
.ex-score-card.pass .ex-score-num { color: #0e9f6e; }
.ex-score-card.fail .ex-score-num { color: #f53f3f; }
.ex-score-num span { font-size: 22px; font-weight: 600; margin-left: 4px; }
.ex-score-sub { font-size: 14px; color: var(--text-2); margin-top: 14px; }
.ex-score-tip { margin-top: 10px; font-size: 12.5px; color: var(--text-3); }
.ex-score-ops { display: flex; justify-content: center; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
.ex-review-item {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 20px 22px; margin-bottom: 14px; box-shadow: var(--shadow);
}
.ex-review-flag { margin-left: auto; font-size: 12.5px; font-weight: 700; padding: 3px 10px; border-radius: 6px; }
.ex-review-flag.ok { background: #ecfbf4; color: #0a7d56; }
.ex-review-flag.no { background: #fff1f1; color: #cf2e2e; }
.ex-review-ans { margin-top: 12px; font-size: 13.5px; color: var(--text-2); }

@media (max-width: 760px) {
  .ex-mode-row { grid-template-columns: 1fr; gap: 14px; }
  .ex-mode-card { padding: 20px; }
  .ex-mode-ico { font-size: 32px; }
  .ex-mode-info h3 { font-size: 17px; }
  .ex-mode-btn { display: none; }
  .ex-question-card { padding: 20px 16px; }
  .ex-q-content { font-size: 15.5px; }
  .ex-option { padding: 12px; }
  .ex-option-text { font-size: 14px; }
  .ex-score-num { font-size: 52px; }
  .ex-mock-nav { gap: 10px; }
  .ex-dots { order: 3; width: 100%; }
}
.rich-body pre code { background: none; padding: 0; font-size: 13.5px; line-height: 1.7; white-space: pre; color: #1d2129; }
/* 图文课程代码块（ST 语法高亮） */
.rich-body pre.zlb-code {
  position: relative; background: #1e2430; border: none; border-radius: 10px;
  padding: 30px 18px 14px; margin: 16px 0; color: #e6e9ef;
  font-family: Consolas, Menlo, Monaco, "Courier New", monospace;
  font-size: 13.5px; line-height: 1.75; white-space: pre; overflow-x: auto; tab-size: 4;
}
.rich-body pre.zlb-code code {
  background: none; padding: 0; color: inherit; font-family: inherit; font-size: inherit;
  white-space: pre; line-height: inherit;
}
.rich-body pre.zlb-code::before {
  content: attr(data-lang); position: absolute; top: 0; left: 0;
  padding: 4px 12px; font-size: 11px; letter-spacing: .6px; text-transform: uppercase;
  color: #98a2b3; background: rgba(255,255,255,.07); border-radius: 10px 0 8px 0;
}
.rich-body pre.zlb-code .st-k { color: #ff8ab3; font-weight: 600; }
.rich-body pre.zlb-code .st-c { color: #7d8799; font-style: italic; }
.rich-body pre.zlb-code .st-s { color: #9ae6b4; }
.rich-body pre.zlb-code .st-n { color: #ffd479; }
.rich-body pre.zlb-code .st-o { color: #8ecbff; }
.rich-body pre.zlb-code .st-f { color: #c4b5fd; }
.rich-body table { border-collapse: collapse; margin: 12px 0; width: 100%; }
.rich-body th, .rich-body td { border: 1px solid #e5e8ef; padding: 8px 12px; font-size: 14px; text-align: left; }
.rich-body th { background: #f7f9fc; }

/* ============================================================
   动效与质感升级：滚动入场 / Hero 流光漂浮 / 数字滚动 / 微交互
   ============================================================ */

/* 滚动入场：JS 加 .reveal，进入视口后加 .reveal-in（配合 --reveal-delay 逐个错峰） */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s cubic-bezier(.22, .61, .36, 1), transform .8s cubic-bezier(.22, .61, .36, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
.reveal.reveal-in { opacity: 1; transform: none; }

/* 顶栏：滚动后加投影 */
.site-header { transition: box-shadow .3s ease, background .3s ease; }
.site-header.scrolled { box-shadow: 0 6px 24px rgba(15, 42, 90, .10); }

/* 按钮：悬浮上浮 + 主按钮渐变流光 + 按压回弹 */
.btn { transition: transform .25s cubic-bezier(.22, .61, .36, 1), box-shadow .25s, background .25s, color .2s, border-color .2s; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.97); }
.btn-primary { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%); background-size: 160% 160%; }
.btn-primary:hover { background-position: 100% 50%; box-shadow: 0 8px 22px rgba(26, 92, 229, .38); }

/* 卡片：悬浮更深、图片缩放更顺滑、标题变色 */
.card, .gallery-item, .wall-item, .aud-card { will-change: transform; }
.card { transition: transform .35s cubic-bezier(.22, .61, .36, 1), box-shadow .35s; }
.card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(15, 42, 90, .16); }
.card-cover img { transition: transform .6s cubic-bezier(.22, .61, .36, 1); }
.card:hover .card-cover img { transform: scale(1.07); }
.card-title { transition: color .25s ease; }
.card:hover .card-title { color: var(--primary); }
.gallery-item, .wall-item { transition: transform .35s cubic-bezier(.22, .61, .36, 1), box-shadow .35s; }
.gallery-item:hover, .wall-item:hover { transform: translateY(-5px); box-shadow: 0 16px 36px rgba(7, 24, 58, .25); }
.gallery-item img, .wall-item img { transition: transform .65s cubic-bezier(.22, .61, .36, 1); }

/* 适合人群：图标悬浮弹跳 */
.aud-card:hover .aud-icon { animation: audPop .55s cubic-bezier(.22, .61, .36, 1); }
@keyframes audPop { 0% { transform: scale(1); } 45% { transform: scale(1.16) rotate(-4deg); } 100% { transform: scale(1); } }

/* 区块标题装饰条：渐变立体 */
.section-head h2::before { background: linear-gradient(180deg, var(--primary-light), var(--primary-dark)); }

/* 细节质感：滚动条 / 文字选区 */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #c5d0e2; border-radius: 999px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #a8b9d6; }
::selection { background: rgba(26, 92, 229, .16); }

/* 弱动效偏好：关闭全部动画，内容直接可见 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
