/* =====================================================
   岙弗咨询 · 知识橱窗  ·  样式表（V1.0 · 绿色商务风）
   主色：墨绿 #1B5E20 ；辅色：#2E7D32 / #43A047
   ===================================================== */

/* 确保 HTML 的 hidden 属性始终生效（覆盖组件 display 规则） */
[hidden] { display: none !important; }

:root {
  --brand-900: #0F3D14;
  --brand-700: #1B5E20;
  --brand-600: #2E7D32;
  --brand-500: #43A047;
  --brand-100: #C8E6C9;
  --brand-50:  #F1F8E9;

  --bg:        #FFFFFF;
  --bg-alt:    #F8FAF8;

  --ink:       #1A1F1A;
  --ink-2:     #4A5A4A;
  --ink-3:     #6B7B6B;
  --line:      #DCE3DC;

  --shadow-sm: 0 2px 6px rgba(27, 94, 32, 0.06);
  --shadow-md: 0 6px 20px rgba(27, 94, 32, 0.10);

  --radius:    12px;
  --radius-sm: 8px;
  --maxw:      1180px;
}

/* ---------- 重置与字体 */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
               "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
}
img { max-width: 100%; display: block; }
a { color: var(--brand-700); text-decoration: none; }
a:hover { color: var(--brand-500); }

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

/* ===========================================
   顶部导航
   =========================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header-compact { background: #fff; }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand-logo {
  width: 48px; height: 48px;
  border-radius: 6px;
  object-fit: cover;
  background: #fff;
}
.brand-name { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name strong {
  font-size: 18px; color: var(--ink);
  letter-spacing: 1px; font-weight: 800;
}
.brand-name em {
  font-size: 12px; color: var(--ink-3);
  font-style: normal; letter-spacing: .5px;
}
.nav-links { display: flex; gap: 28px; }
.nav-link {
  color: var(--ink-2); font-weight: 500; font-size: 15px;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.nav-link:hover,
.nav-link.active {
  color: var(--brand-700);
  border-color: var(--brand-700);
}
.nav-toggle {
  display: none;
  background: none; border: 0; padding: 8px;
  cursor: pointer;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--ink); margin: 4px 0;
  border-radius: 2px;
}

@media (max-width: 720px) {
  .nav-inner { height: 60px; }
  .brand-name em { display: none; }
  .nav-links {
    display: none;
    position: absolute; top: 60px; left: 0; right: 0;
    background: #fff;
    flex-direction: column; gap: 0;
    border-bottom: 1px solid var(--line);
    padding: 8px 24px;
  }
  .nav-links.open { display: flex; }
  .nav-link { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav-toggle { display: block; }
}

/* ===========================================
   Hero 商务区
   =========================================== */
.hero {
  position: relative;
  background:
    linear-gradient(135deg, var(--brand-700) 0%, var(--brand-900) 60%, #0A2D0E 100%);
  color: #fff;
  overflow: hidden;
  padding: 80px 0 96px;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 600px 300px at 80% 20%, rgba(255, 255, 255, 0.08), transparent),
    radial-gradient(ellipse 400px 200px at 10% 80%, rgba(168, 217, 168, 0.10), transparent);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero-eyebrow {
  display: inline-block;
  font-size: 13px; letter-spacing: 4px;
  color: var(--brand-100);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 6px 14px; border-radius: 999px;
  margin: 0 0 18px;
}
.hero-title {
  font-size: 56px; line-height: 1.15; letter-spacing: 2px;
  margin: 0 0 18px; font-weight: 800;
}
.hero-sub {
  font-size: 17px; line-height: 1.75;
  color: rgba(255, 255, 255, 0.86);
  max-width: 560px; margin: 0 0 28px;
}
.hero-sub strong { color: #fff; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 36px; }
.hero-stats { list-style: none; padding: 0; margin: 0; display: flex; gap: 40px; flex-wrap: wrap; }
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats strong { font-size: 28px; font-weight: 800; color: #fff; }
.hero-stats span { font-size: 13px; color: rgba(255, 255, 255, 0.72); letter-spacing: 1px; }

.hero-visual { display: flex; justify-content: center; }
.hero-card {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 20px;
  padding: 32px 28px;
  width: 100%; max-width: 320px;
  text-align: center;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25);
}
.hero-card-logo {
  width: 120px; height: 120px;
  border-radius: 16px;
  margin: 0 auto 18px;
  object-fit: cover; background: #fff;
}
.hero-card-tag {
  display: inline-block;
  background: rgba(255, 255, 255, 0.12);
  padding: 4px 12px; border-radius: 999px;
  font-size: 12px; letter-spacing: 2px;
  color: var(--brand-100);
}
.hero-card-line {
  height: 1px;
  background: rgba(255, 255, 255, 0.18);
  margin: 18px 0;
}
.hero-card-quote {
  margin: 0;
  font-size: 14px; line-height: 1.7;
  color: rgba(255, 255, 255, 0.86);
  font-style: italic;
}

@media (max-width: 900px) {
  .hero { padding: 56px 0 64px; }
  .hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .hero-title { font-size: 40px; }
  .hero-stats { gap: 24px; }
}

/* ===========================================
   按钮
   =========================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 44px; padding: 0 22px;
  border-radius: var(--radius-sm);
  font-weight: 600; font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.18s ease;
  text-decoration: none; line-height: 1;
}
.btn-primary { background: #fff; color: var(--brand-700); border-color: #fff; }
.btn-primary:hover {
  background: var(--brand-50); color: var(--brand-900);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-ghost {
  background: transparent; color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1); color: #fff;
}
.btn-lg { height: 52px; padding: 0 28px; font-size: 16px; }

/* ===========================================
   Section 通用
   =========================================== */
.section { padding: 88px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; margin-bottom: 48px; }
.section-eyebrow {
  display: inline-block;
  color: var(--brand-600);
  font-size: 13px; letter-spacing: 4px;
  margin: 0 0 10px; font-weight: 600;
}
.section-title {
  font-size: 36px; line-height: 1.25;
  margin: 0 0 12px; color: var(--ink);
  font-weight: 800; letter-spacing: 1px;
}
.section-sub { color: var(--ink-2); margin: 0; font-size: 16px; }
.section-sub strong { color: var(--brand-700); }

/* —— 关于岙弗：公司简介 + 子品牌 —— */
.about-prose { max-width: 880px; margin: 0 auto 28px; }
.about-prose p { color: var(--ink-2); line-height: 1.9; font-size: 16px; margin: 0 0 16px; }
.about-lead { font-size: 18px !important; color: var(--ink) !important; }
.about-lead strong { color: var(--brand-700); font-size: 22px; font-weight: 800; letter-spacing: 2px; }

.brand-card {
  max-width: 880px; margin: 0 auto 40px;
  background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--brand-500);
  border-radius: 14px; padding: 28px 32px;
  box-shadow: 0 6px 22px rgba(27, 94, 32, .06);
}
.brand-card-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 12px; }
.brand-mark {
  font-size: 22px; font-weight: 800; color: var(--brand-700);
  letter-spacing: 2px;
}
.brand-tag {
  font-size: 13px; color: var(--ink-3);
  background: var(--bg-alt); border: 1px solid var(--line);
  border-radius: 999px; padding: 3px 12px;
}
.brand-desc { color: var(--ink-2); line-height: 1.9; font-size: 16px; margin: 0 0 14px; }
.brand-desc b { color: var(--brand-700); font-weight: 700; }
.brand-slogan {
  margin: 0; font-size: 17px; font-weight: 700; color: var(--brand-600);
  letter-spacing: 1px;
}

@media (max-width: 720px) {
  .section { padding: 60px 0; }
  .section-title { font-size: 28px; }
  .brand-card { padding: 22px 20px; }
}

/* ===========================================
   课程网格
   =========================================== */
.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.course-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: all 0.2s ease;
  cursor: pointer;
  text-decoration: none; color: inherit;
}
.course-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand-500);
}
.course-cover {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--brand-700), var(--brand-600));
  position: relative;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
}
.course-cover-img { width: 100%; height: 100%; object-fit: cover; }
.course-cover-mark {
  font-size: 28px; font-weight: 800;
  letter-spacing: 4px; opacity: 0.85;
}
.course-tag {
  position: absolute; top: 12px; left: 12px;
  background: rgba(0, 0, 0, 0.45);
  color: #fff; font-size: 12px;
  padding: 4px 10px; border-radius: 999px;
  backdrop-filter: blur(4px);
}
.course-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.course-title {
  font-size: 18px; margin: 0 0 8px;
  color: var(--ink); font-weight: 700;
  line-height: 1.4;
}
.course-desc {
  color: var(--ink-2); font-size: 14px;
  line-height: 1.65; margin: 0 0 16px; flex: 1;
}
.course-meta {
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px dashed var(--line);
  padding-top: 14px;
  color: var(--ink-3); font-size: 13px;
}
.badge {
  display: inline-block; padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px; font-weight: 600;
}
.badge-free { background: var(--brand-100); color: var(--brand-900); }
.badge-paid { background: #FFE0B2; color: #8C4A00; }
.badge-partial { background: #F3E5F5; color: #6A1B9A; }   /* 三态付费：部分付费紫底（2026-09-07 新增） */
.tag-partial { display: inline-block; padding: 2px 8px; margin-left: 6px; font-size: 11px; border-radius: 10px; background: #F3E5F5; color: #6A1B9A; font-weight: 600; }   /* 后台课程行：部分付费标签 */
.empty-hint { text-align: center; color: var(--ink-3); padding: 40px 0; }

/* ===========================================
   关于 / 业务亮点
   =========================================== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.feature {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: all 0.2s ease;
}
.feature:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.feature-icon {
  width: 44px; height: 44px;
  background: var(--brand-50);
  color: var(--brand-700);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 800;
  margin-bottom: 18px;
}
.feature h3 {
  margin: 0 0 10px; font-size: 18px;
  color: var(--ink); font-weight: 700;
}
.feature p {
  color: var(--ink-2); font-size: 14px;
  line-height: 1.7; margin: 0;
}
@media (max-width: 900px) {
  .feature-grid { grid-template-columns: 1fr; }
}

/* ===========================================
   联系
   =========================================== */
.contact-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
.contact-inner .btn { white-space: nowrap; }

/* ===========================================
   底部
   =========================================== */
.site-footer {
  background: var(--brand-900);
  color: rgba(255, 255, 255, 0.86);
  padding: 48px 0 32px;
}
.site-footer-compact { padding: 32px 0; }
.footer-inner {
  display: flex; justify-content: space-between; align-items: center;
  gap: 24px; flex-wrap: wrap;
}
.footer-brand { display: flex; align-items: center; gap: 16px; }
.footer-logo {
  width: 52px; height: 52px;
  border-radius: 8px; background: #fff;
}
.footer-brand p { margin: 0; font-size: 14px; line-height: 1.6; }
.footer-meta { text-align: right; }
.footer-meta p { margin: 0 0 4px; font-size: 13px; color: rgba(255, 255, 255, 0.7); }
.footer-icp a { color: var(--brand-100); text-decoration: underline; }
.footer-mini { margin-top: 6px; font-size: 13px; }
.footer-mini a { color: var(--brand-100); opacity: .85; }
.footer-mini a:hover { opacity: 1; text-decoration: underline; }
.ver { opacity: .55; font-size: 12px; margin-left: 8px; letter-spacing: .5px; }

/* ===========================================
   播放页
   =========================================== */
.page-play { background: var(--bg-alt); }
.play-main { padding: 32px 24px 80px; }
.play-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 28px;
  align-items: start;
}
.player-frame {
  position: relative;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--brand-700), var(--brand-900));
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.player-placeholder {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  color: rgba(255, 255, 255, 0.85);
}
.player-logo {
  width: 80px; height: 80px;
  border-radius: 12px;
  background: #fff;
  margin-bottom: 12px;
}
.player-placeholder-text {
  margin: 0; font-size: 14px; letter-spacing: 2px;
}

.play-meta {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 28px; margin-top: 20px;
}
.play-eyebrow {
  color: var(--brand-600); font-size: 13px;
  letter-spacing: 4px; margin: 0 0 8px; font-weight: 600;
}
.play-title {
  font-size: 26px; margin: 0 0 12px;
  color: var(--ink); line-height: 1.35;
  font-weight: 800;
}
.play-desc {
  color: var(--ink-2); margin: 0 0 18px;
  font-size: 15px; line-height: 1.75;
}
.play-stats {
  color: var(--ink-3); font-size: 14px;
  display: flex; align-items: center; gap: 10px;
  flex-wrap: wrap;
}
.dot { color: var(--line); }

.paywall-cta {
  margin-top: 20px;
  background: linear-gradient(135deg, var(--brand-50), #E8F5E9);
  border: 1px solid var(--brand-100);
  border-radius: var(--radius);
  padding: 18px 22px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
.paywall-cta strong {
  display: block; color: var(--brand-900);
  font-size: 16px; margin-bottom: 4px;
}
.paywall-cta p {
  margin: 0; color: var(--ink-2); font-size: 14px;
}

.play-sidebar {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  position: sticky; top: 88px;
}
.sidebar-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px; padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.sidebar-head h3 {
  margin: 0; font-size: 16px; color: var(--ink);
}
.sidebar-head span { color: var(--ink-3); font-size: 13px; }

.lesson-list { list-style: none; padding: 0; margin: 0; counter-reset: lesson; }
.lesson-item {
  counter-increment: lesson;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 8px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s ease;
  border-bottom: 1px solid var(--line);
}
.lesson-item:last-child { border-bottom: 0; }
.lesson-item:hover { background: var(--brand-50); }
.lesson-item.is-active { background: var(--brand-50); }
.lesson-item.is-active .lesson-name { color: var(--brand-700); font-weight: 600; }
.lesson-num {
  flex: 0 0 28px; height: 28px;
  border-radius: 50%;
  background: var(--bg-alt); color: var(--ink-2);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 600;
}
.lesson-item.is-active .lesson-num { background: var(--brand-700); color: #fff; }
.lesson-num::before { content: counter(lesson); }
.lesson-body { flex: 1; min-width: 0; }
.lesson-name {
  display: block; font-size: 14px;
  color: var(--ink); font-weight: 500;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.lesson-meta {
  display: block; font-size: 12px;
  color: var(--ink-3); margin-top: 2px;
}

/* 章节级付费视觉（与首页 .badge-paid 同色系 #FFE0B2/#8C4A00，跨页面统一） */
.lesson-item[data-paid="1"] { opacity: .96; }
.lesson-item[data-paid="1"]:hover { background: #FFF7E6; }
.lesson-item[data-paid="1"] .lesson-name { color: #8C4A00; font-weight: 600; }
.lesson-item[data-paid="1"] .lesson-num { background: #FFE0B2; color: #8C4A00; }
.lesson-item[data-paid="1"].is-active { background: #FFF1D1; }
.lesson-item[data-paid="1"].is-active .lesson-name { color: #8C4A00; }
.pay-lock { margin-left: 6px; font-size: 11px; vertical-align: 1px; }
.lesson-meta .pay-tag { color: #8C4A00; font-weight: 600; }
.lesson-meta .pay-tag.free { color: var(--brand-700); }

/* 章节观看统计（眼睛图标 + 数字，置于章节行右侧） */
.lesson-views {
  flex: 0 0 auto;
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--ink-3);
  font-size: 13px;
  line-height: 1;
  white-space: nowrap;
  user-select: none;
}
.lesson-views .eye-icon { display: block; opacity: .72; }
.lesson-views .views-num {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
  min-width: 1.4em;
  text-align: right;
}

@media (max-width: 960px) {
  .play-layout { grid-template-columns: 1fr; }
  .play-sidebar { position: static; }
}
/* ============================================================
   微信内浏览引导条（.wx-bar）
   - 仅微信 UA 下由 main.js 动态插入，非微信环境零 DOM、零干扰
   - 关闭后写 sessionStorage，本次会话不再出现
   - 高度通过 --wxbar-h 推低 sticky header，避免遮挡导航
   ============================================================ */
.wx-bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; align-items: center; gap: 10px;
  padding: 11px 14px;
  background: #14532d; color: #ecfdf5;
  font-size: 13px; line-height: 1.45;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .14);
}
/* [hidden] 优先级铁律：.wx-bar 是 display:flex，会压过 JS 设的 hidden */
.wx-bar[hidden] { display: none !important; }
.wx-bar-dot {
  flex: none; width: 7px; height: 7px; border-radius: 50%;
  background: #4ade80; box-shadow: 0 0 0 3px rgba(74, 222, 128, .22);
}
.wx-bar-text { flex: 1; min-width: 0; }
.wx-bar-text b { color: #fde68a; font-weight: 600; }
.wx-bar-close {
  flex: none; width: 24px; height: 24px; padding: 0;
  border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .18); color: #ecfdf5;
  font-size: 16px; line-height: 1; cursor: pointer;
}
.site-header { top: var(--wxbar-h, 0px); }

/* ============================================================
   「我要咨询」按钮 + 弹窗（仅 play.html 使用）
   - 按钮放 .play-sidebar 顶部，任何章节切换都存在，符合
     "每个视频播放页都有"的诉求
   - 弹窗用 [hidden] + CSS 顶部 [hidden]{!important} 隐藏，
     避免被 modal display:flex 压住
   ============================================================ */
.consult-btn {
  display: flex; align-items: center; justify-content: center;
  gap: 8px;
  width: 100%;
  margin-bottom: 16px;
  padding: 12px 16px;
  background: linear-gradient(135deg, var(--brand-700), var(--brand-600));
  color: #fff;
  border: 0;
  border-radius: var(--radius);
  font-size: 15px; font-weight: 700; letter-spacing: 2px;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(27, 94, 32, 0.22);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.consult-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(27, 94, 32, 0.30);
}
.consult-btn:active { transform: translateY(0); }
.consult-btn-icon { font-size: 17px; }

/* 弹窗遮罩 + 卡片 */
.consult-modal {
  position: fixed; inset: 0; z-index: 300;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.consult-modal[hidden] { display: none !important; }
.consult-modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(15, 61, 20, 0.55);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.consult-modal-card {
  position: relative;
  width: 100%; max-width: 560px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.30);
  padding: 32px 32px 28px;
  animation: consult-pop 0.18s ease-out;
}
@keyframes consult-pop {
  from { transform: scale(0.96); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}
.consult-modal-close {
  position: absolute; top: 12px; right: 12px;
  width: 32px; height: 32px;
  background: rgba(0, 0, 0, 0.04); color: var(--ink-2);
  border: 0; border-radius: 50%;
  font-size: 20px; line-height: 1; cursor: pointer;
  transition: background 0.15s ease;
}
.consult-modal-close:hover { background: rgba(0, 0, 0, 0.10); color: var(--ink); }

.consult-modal-title {
  margin: 0 0 6px;
  font-size: 22px; font-weight: 800; color: var(--brand-900);
  letter-spacing: 1px;
}
.consult-modal-sub {
  margin: 0 0 22px;
  color: var(--ink-3); font-size: 13px;
}

.consult-modal-body {
  display: grid;
  grid-template-columns: 1fr 180px;
  gap: 28px;
  align-items: center;
}

/* 左侧：信息列 */
.consult-info {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 16px;
}
.consult-info li {
  display: flex; flex-direction: column; gap: 4px;
}
.consult-info-label {
  font-size: 12px; color: var(--ink-3);
  letter-spacing: 2px; font-weight: 600;
}
.consult-info-value {
  font-size: 17px; color: var(--ink); font-weight: 600;
  letter-spacing: 0.5px;
}
.consult-info-link {
  color: var(--brand-700);
  text-decoration: none;
}
.consult-info-link:hover { text-decoration: underline; }
.consult-info-id {
  display: flex; align-items: center; gap: 10px;
  flex-wrap: wrap;
}
.consult-info-id #consult-wx-id {
  font-family: "SF Mono", "Consolas", "Menlo", monospace;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  padding: 4px 10px; border-radius: 6px;
  font-size: 15px; color: var(--ink); letter-spacing: 0.5px;
}
.consult-copy {
  background: var(--brand-50); color: var(--brand-700);
  border: 1px solid var(--brand-100);
  border-radius: 6px;
  padding: 5px 12px;
  font-size: 13px; font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}
.consult-copy:hover { background: var(--brand-100); }
.consult-copy.is-done { background: var(--brand-700); color: #fff; border-color: var(--brand-700); }
.consult-copy:disabled { opacity: .55; cursor: not-allowed; }

/* 右侧：二维码 */
.consult-qr {
  margin: 0; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.consult-qr img {
  width: 180px; height: 180px;
  border-radius: 10px;
  border: 1px solid var(--line);
  padding: 6px; background: #fff;
  box-shadow: 0 4px 14px rgba(27, 94, 32, 0.08);
}
.consult-qr figcaption {
  font-size: 12px; color: var(--ink-3); letter-spacing: 1px;
}

/* 手机端：信息+二维码纵向 */
@media (max-width: 520px) {
  .consult-modal-card { padding: 24px 22px; }
  .consult-modal-body { grid-template-columns: 1fr; gap: 20px; }
  .consult-qr img { width: 150px; height: 150px; }
}

/* 弹窗打开时锁滚动：position:fixed + 还原 top 是 Safari 友好的写法
   （仅 overflow:hidden 会丢滚动位置） */
body.consult-open { position: fixed; left: 0; right: 0; overflow: hidden; }

/* 视频防下载 UX（C1 方案：2026-09-07 起，纯前端限制；A+B 留待迁自有域名后开）
   - iOS Safari：-webkit-touch-callout: none 屏蔽长按系统菜单
   - 通用：user-select: none 屏蔽文本选择
   - 桌面：-webkit-user-drag: none 防拖拽视频到地址栏
   配合 player.js 动态注入的 controlslist="nodownload noremoteplayback" + oncontextmenu="return false" 一起生效 */
.player-frame, .player-frame * { -webkit-touch-callout: none; -webkit-user-select: none; -moz-user-select: none; user-select: none; }
.player-frame video { -webkit-user-drag: none; pointer-events: auto; }

/* ====================================================
   课程类目 Tab 切换（2026-09-07 新增）
   - 横条 pill 形状；active 用品牌色
   - .count 数字小一号、灰色
   - 类目标签（卡片元信息）
   ==================================================== */
.course-tabs {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin: 8px 0 26px;
  padding: 0;
}
.course-tab {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 20px;
  border-radius: 999px;
  border: 0.5px solid var(--border, #d1d5db);
  background: transparent;
  color: var(--ink-2, #4b5563);
  font: 500 15px/1.2 inherit;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.course-tab:hover { background: rgba(0,0,0,.04); color: var(--ink-1, #1f2937); }
.course-tab.is-active {
  background: var(--brand-700, #1B5E20);
  border-color: var(--brand-700, #1B5E20);
  color: #fff;
}
.course-tab .count {
  font-size: 13px;
  font-weight: 400;
  opacity: .75;
}
.course-tab.is-active .count { opacity: .9; }
.course-cat-label {
  color: var(--ink-2, #4b5563);
  font-weight: 500;
}

/* toast 级别：warn 黄色高亮、err 红色高亮（admin.js 调用） */
#toast.toast-warn { background: #FFF3CD; color: #633806; border: 1px solid #FAC775; }
#toast.toast-err  { background: #FCEBEB; color: #791F1F; border: 1px solid #F09595; }
