
/* ============================================================
   优师堂 · 师资力量频道 主样式
   头部/底部：与案例频道一致（品牌红 #077A70）
   正文：青蓝 #077A70 主色
   ============================================================ */

:root {
  --brand: #077A70;
  --brand-dark: #065E56;
  --gold: #FF6B35;
  --text: #1A1A1A;
  --text-secondary: #666666;
  --text-muted: #6B7280;  /* r114：白底 4.83 ✔（原 #999 仅 2.85） */
  --border: #E5E5E5;
  --footer-bg: #1A1A1A;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  color: #3F4161;
  background: #fff;
  line-height: 1.7;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; transition: all .25s; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ========== Layout ========== */
.container { max-width: 1280px; margin: 0 auto; padding: 0 50px; }
.section { padding: 64px 0; background: #fff; }
.section-header { text-align: center; margin-bottom: 40px; }
.section-title { font-size: 28px; font-weight: 700; color: #1A2B3C; margin-bottom: 12px; }
.section-subtitle { font-size: 15px; color: #6B7280; }

/* ========== Buttons ========== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: 6px; font-size: 15px; font-weight: 600;
  transition: all .25s; white-space: nowrap; cursor: pointer; border: none;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn--white { background: #fff; color: #077A70; box-shadow: 0 4px 16px rgba(0,0,0,.1); }
.btn--white:hover { background: #F7F9FC; color: #077A70; }
.btn--outline { border: 2px solid rgba(255,255,255,.5); color: #fff; background: transparent; }
.btn--outline:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.btn--lg { padding: 14px 32px; font-size: 16px; }

/* ========== Header (与案例频道一致) ========== */
.header { height: 80px; border-bottom: 1px solid var(--border); background: #fff; }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.logo img { height: 48px; display: block; }
.nav { display: flex; gap: 0; align-items: center; }
.nav-item { position: relative; height: 100%; display: flex; align-items: center; }
.nav-item > a {
  display: flex; align-items: center; gap: 4px;
  font-size: 15px; color: var(--text); padding: 28px 16px;
  transition: color .2s; white-space: nowrap;
}
.nav-item > a:hover { color: var(--brand); }
.nav a.active { color: var(--brand); font-weight: 600; }
.nav-item.has-dropdown > a::after {
  content: ""; display: inline-block; width: 8px; height: 8px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px); opacity: .6; transition: transform .2s;
}
.nav-item.has-dropdown:hover > a::after { transform: rotate(-135deg) translateY(2px); opacity: 1; }
.dropdown {
  position: absolute; top: 100%; left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: #fff; border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0,0,0,.12); border: 1px solid var(--border);
  padding: 20px 24px; min-width: 360px; display: flex; gap: 24px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .2s, transform .2s, visibility .2s; z-index: 100;
}
.dropdown::before {
  content: ""; position: absolute; top: -6px; left: 50%;
  transform: translateX(-50%) rotate(45deg); width: 12px; height: 12px;
  background: #fff; border-left: 1px solid var(--border); border-top: 1px solid var(--border);
}
.nav-item:hover > .dropdown { opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.dropdown-col { flex: 1; min-width: 140px; }
.dropdown-col h4 {
  font-size: 13px; font-weight: 700; color: var(--brand); margin: 0 0 12px;
  padding-bottom: 8px; border-bottom: 1px solid var(--border);
  text-transform: uppercase; letter-spacing: .5px;
}
.dropdown-col a { display: block; font-size: 14px; color: var(--text); padding: 8px 0; transition: color .15s, padding-left .15s; white-space: nowrap; }
.dropdown-col a:hover { color: var(--brand); padding-left: 6px; }
.dropdown-sm { min-width: 200px; padding: 16px 20px; }

/* ========== Hero ========== */
.hero { position: relative; padding: 60px 0 52px; background: linear-gradient(135deg, #063F3B 0%, #052F2B 100%); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-gradient { position: absolute; inset: 0; background: radial-gradient(ellipse at 30% 50%, rgba(44,198,208,.15) 0%, transparent 60%), radial-gradient(ellipse at 70% 80%, rgba(44,198,208,.1) 0%, transparent 40%); }
.hero-pattern { position: absolute; inset: 0; background-image: radial-gradient(circle at 2px 2px, rgba(255,255,255,.08) 1px, transparent 0); background-size: 32px 32px; }
.hero-content { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 32px; text-align: left; }

/* 左侧文案 */
.hero-left { flex: 1; max-width: 580px; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 18px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.2); border-radius: 999px; font-size: 14px; color: #EAF9FB; margin-bottom: 20px; }
.hero-badge-dot { width: 7px; height: 7px; border-radius: 50%; background: #077A70; box-shadow: 0 0 8px #077A70; }
.hero-title { font-size: 46px; font-weight: 900; color: #fff; margin-bottom: 16px; letter-spacing: -0.5px; line-height: 1.22; }
.hero-title-accent { color: #077A70; }
.hero-subtitle { font-size: 15px; color: rgba(234,249,251,.88); max-width: 540px; margin: 0 0 24px; line-height: 1.7; }
.hero-stats { display: flex; align-items: center; gap: 16px; margin-bottom: 32px; flex-wrap: wrap; }
.hero-stat { font-size: 13px; font-weight: 600; color: #fff; }
.hero-stat-divider { width: 1px; height: 12px; background: rgba(255,255,255,.35); flex: none; }
.btn--booking {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; background: #077A70; color: #fff;
  font-size: 15px; font-weight: 700; border-radius: 999px;
  box-shadow: 0 6px 18px rgba(44,198,208,.35); transition: all .25s;
}
.btn--booking:hover { background: #077A70; color: #fff; transform: translateY(-2px); box-shadow: 0 8px 22px rgba(44,198,208,.45); }

/* 右侧轮辐图 */
.hero-right { flex: none; width: 560px; height: 460px; position: relative; }
.spoke-ring {
  position: absolute; left: 50%; top: 50%;
  width: 460px; height: 460px; border-radius: 50%;
  transform: translate(-50%, -50%);
  border: 1.5px dashed rgba(126,247,255,.3);
}
.spoke-hub {
  position: absolute; left: 50%; top: 50%;
  width: 120px; height: 120px; border-radius: 50%;
  transform: translate(-50%, -50%);
  background: #077A70; color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 900; line-height: 1.2;
  box-shadow: 0 6px 20px rgba(15,32,39,.45); z-index: 2;
}
.spoke-hub__sub { font-size: 11px; font-weight: 400; letter-spacing: 1px; margin-top: 3px; opacity: .85; }
.spoke-line {
  position: absolute; left: 50%; top: 50%;
  width: 100px; height: 2px; background: rgba(126,247,255,.5);
  transform-origin: 0 50%;
}
.satellite {
  position: absolute; width: 120px;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  margin-left: -60px; margin-top: -36px;
}
.satellite__dot {
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(30,58,95,.92); border: 2px solid rgba(126,247,255,.8);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: #EAF9FB;
  box-shadow: 0 3px 10px rgba(15,32,39,.35);
}
.satellite__label { font-size: 13px; font-weight: 600; color: #fff; text-align: center; white-space: nowrap; }

/* ========== 分类Tab ========== */
.filter-tabs { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-bottom: 36px; }
.filter-tab { padding: 12px 24px; border-radius: 50px; font-size: 14px; font-weight: 600; color: #6B7280; background: #fff; border: 2px solid #E5E7EB; transition: all .25s; }
.filter-tab:hover { border-color: #077A70; color: #077A70; background: rgba(44,198,208,.04); }
.filter-tab.active { background: linear-gradient(135deg, #077A70 0%, #077A70 100%); border-color: transparent; color: #fff; box-shadow: 0 4px 16px rgba(44,198,208,.35); }

/* ========== 讲师网格 (2行×4列=8位/页) ========== */
.teacher-grid-2x3 { display: none; }
.teacher-grid-2x3.active { display: block; }
.teacher-page-content { display: none; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.teacher-page-content.active { display: grid; }

/* 讲师卡片 (上下结构: 图在上, 文字在下) */
.teacher-card-rect { display: flex; flex-direction: column; background: #fff; border-radius: 12px; overflow: hidden; border: 1px solid #E5E7EB; transition: all .3s; box-shadow: 0 2px 8px rgba(0,0,0,.04); }
.teacher-card-rect:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(44,198,208,.15); border-color: rgba(44,198,208,.3); }
.teacher-card-rect__img { width: 100%; height: 350px; flex-shrink: 0; background: #E8F4F8; overflow: hidden; }
.teacher-card-rect__img img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.teacher-card-rect__img.placeholder { display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #E8F4F8 0%, #D5F0EB 100%); color: #077A70; font-size: 48px; font-weight: 700; }
.teacher-card-rect__info { padding: 16px; text-align: center; }
.teacher-card-rect__name { font-size: 17px; font-weight: 700; color: #1A2B3C; margin-bottom: 4px; }
.teacher-card-rect__title { font-size: 14px; color: #077A70; font-weight: 500; margin-bottom: 10px; }
.teacher-card-rect__tags { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.teacher-card-rect__tags span { padding: 4px 10px; background: rgba(44,198,208,.1); color: #077A70; border-radius: 50px; font-size: 12px; font-weight: 500; }

/* ========== CTA 区域 ========== */
.cta-section { background: linear-gradient(135deg, #063F3B 0%, #052F2B 100%); padding: 64px 0; position: relative; overflow: hidden; }
.cta-section::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 0%, rgba(44,198,208,.2) 0%, transparent 60%); }
.cta-content { position: relative; z-index: 1; text-align: center; }
.cta-title { font-size: 30px; font-weight: 700; color: #fff; margin-bottom: 12px; }
.cta-desc { font-size: 16px; color: rgba(255,255,255,.8); margin-bottom: 40px; }
.cta-features { display: flex; justify-content: center; gap: 48px; margin-bottom: 36px; flex-wrap: wrap; }
.cta-feature { display: flex; align-items: center; gap: 16px; text-align: left; }
.cta-feature-icon { width: 48px; height: 48px; border-radius: 12px; background: rgba(44,198,208,.15); color: #077A70; display: flex; align-items: center; justify-content: center; }
.cta-feature-icon svg { width: 24px; height: 24px; }
.cta-feature-text h4 { font-size: 15px; font-weight: 600; color: #fff; margin-bottom: 4px; }
.cta-feature-text p { font-size: 13px; color: rgba(255,255,255,.7); }
.cta-actions { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }

/* ========== Footer (与案例频道一致) ========== */
.footer { background: var(--footer-bg); color: #fff; padding: 60px 0 30px; }
.footer-main { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer-brand { flex: 2 1 220px; min-width: 180px; }
.footer-brand p { margin: 8px 0 0; color: var(--text-muted); font-size: 14px; }
.footer-col { flex: 1 1 130px; min-width: 130px; }
.footer-col h4 { font-size: 14px; margin: 0 0 14px; color: #fff; }
.footer-col a, .footer-col p { display: block; font-size: 13px; color: var(--text-muted); margin: 0 0 8px; line-height: 1.5; }
.footer-col a:hover { color: #fff; }
.footer-contact { display: flex; flex-wrap: wrap; gap: 48px; padding: 24px 0; border-bottom: 1px solid rgba(255,255,255,.08); font-size: 14px; color: var(--text-muted); }
.footer-contact strong { color: #fff; font-size: 18px; font-weight: 700; margin-left: 4px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding-top: 24px; font-size: 13px; color: var(--text-muted); }
.footer-bottom a { color: var(--text-muted); margin-left: 16px; }
.footer-bottom a:hover { color: #fff; }

/* ========== 微信浮动按钮 ========== */
/* ========== 微信浮动咨询浮标（重设计 r115） ==========
   改前：56px 圆 + 28px 二维码缩略图 —— 体量小、无文案、与页面同色系 ⇒ 存在感弱
   改后：图标 + 「微信咨询」文案的胶囊常驻；绿色光圈缓慢呼吸，抓视线；
        hover 从上方升起二维码卡（含直线电话），扫码/拨号一步可达
   原 <img>（二维码位图）仍留在 5014 个页面的 HTML 中，此处 display:none 隐藏；
   图标改由 ::before 引用 images/wechat-icon.svg —— CSS 相对路径按本文件位置
   解析，故页面不论在几级子目录，都指向同一张图
   ============================================================ */
.float-wechat {
  position: fixed; right: 22px; top: 50%; z-index: 99;
  display: inline-flex; align-items: center; gap: 9px;
  height: 54px; padding: 0 20px 0 17px; border-radius: 27px;
  background: linear-gradient(135deg, #07C160 0%, #059A4A 100%);
  color: #fff; font-size: 15px; font-weight: 600; letter-spacing: .3px; line-height: 1;
  white-space: nowrap; cursor: pointer;
  box-shadow: 0 8px 22px rgba(7,193,96,.42), 0 2px 6px rgba(0,0,0,.14);
  transform: translateY(-50%);
  transition: transform .22s ease;
  animation: fw-halo 2.8s ease-out infinite;
}
.float-wechat > img { display: none; }
.float-wechat::before {
  content: ""; flex: 0 0 auto; width: 23px; height: 23px;
  background: url("../images/wechat-icon.svg") center / contain no-repeat;
}
.float-wechat::after { content: "微信咨询"; }
@keyframes fw-halo {
  0%   { box-shadow: 0 8px 22px rgba(7,193,96,.42), 0 2px 6px rgba(0,0,0,.14), 0 0 0 0 rgba(7,193,96,.50); }
  70%  { box-shadow: 0 8px 22px rgba(7,193,96,.42), 0 2px 6px rgba(0,0,0,.14), 0 0 0 15px rgba(7,193,96,0); }
  100% { box-shadow: 0 8px 22px rgba(7,193,96,.42), 0 2px 6px rgba(0,0,0,.14), 0 0 0 0 rgba(7,193,96,0); }
}
.float-wechat:hover { transform: translateY(calc(-50% - 3px)); animation-duration: 1.3s; }
.float-wechat-qrcode {
  position: absolute; right: calc(100% + 14px); top: 50%; transform: translateY(-50%);
  width: 168px; padding: 12px 12px 14px;
  background: #fff; border-radius: 14px;
  box-shadow: 0 14px 38px rgba(0,0,0,.18), 0 2px 8px rgba(0,0,0,.08);
  display: none; text-align: center;
}
.float-wechat-qrcode::before {
  content: ""; position: absolute; right: -6px; top: 50%;
  width: 14px; height: 14px; background: #fff;
  transform: translateY(-50%) rotate(45deg); border-radius: 2px;
  box-shadow: 3px -3px 6px rgba(0,0,0,.05);
}
.float-wechat-qrcode::after {
  content: ""; position: absolute; right: -20px; top: 0; bottom: 0; width: 20px;
}
.float-wechat:hover .float-wechat-qrcode { display: block; animation: fw-pop .24s ease-out; }
/* 触屏兜底：移动端没有真 hover，按下即展开 */
.float-wechat:active .float-wechat-qrcode { display: block; }
@keyframes fw-pop {
  from { opacity: 0; transform: translateY(-50%) translateX(10px) scale(.97); }
  to   { opacity: 1; transform: translateY(-50%); }
}
.float-wechat-qrcode img { display: block; width: 100%; height: auto; border-radius: 10px; }
.float-wechat-qrcode p { text-align: center; font-size: 12px; color: #3F4161; margin-top: 9px; font-weight: 600; }
.float-wechat-qrcode p::after { content: "135-9036-1178"; display: block; margin-top: 3px; font-size: 13px; font-weight: 700; color: #0B988C; letter-spacing: .5px; }
@media (max-width: 640px) {
  .float-wechat { height: 48px; padding: 0 17px 0 14px; gap: 7px; font-size: 14px; right: 14px; border-radius: 24px; }
  .float-wechat::before { width: 20px; height: 20px; }
  .float-wechat-qrcode { width: 152px; }
}
@media (prefers-reduced-motion: reduce) {
  .float-wechat { animation: none; }
}

/* ============================================================
   讲师详情页样式
   ============================================================ */

/* ---------- 讲师 Hero ---------- */
.detail-hero {
  position: relative;
  padding: 64px 0 56px;
  background: linear-gradient(135deg, #063F3B 0%, #052F2B 100%);
  overflow: hidden;
}
.detail-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 20% 30%, rgba(44,198,208,.15) 0%, transparent 55%),
              radial-gradient(ellipse at 80% 70%, rgba(44,198,208,.08) 0%, transparent 45%);
}
.detail-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 2px 2px, rgba(255,255,255,.06) 1px, transparent 0);
  background-size: 32px 32px;
}
.detail-hero .container { position: relative; z-index: 1; }
.detail-hero__content {
  display: flex;
  align-items: center;
  gap: 48px;
}
.detail-hero__image {
  flex: 0 0 340px;
  height: 440px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,.35);
  border: 3px solid rgba(255,255,255,.15);
  background: #E8F4F8;
}
.detail-hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.detail-hero__image.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #E8F4F8 0%, #D5F0EB 100%);
  color: #077A70;
  font-size: 96px;
  font-weight: 700;
}
.detail-hero__info { flex: 1; min-width: 0; }
.detail-hero__name {
  font-size: 40px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
  letter-spacing: -0.5px;
}
.detail-hero__title {
  font-size: 18px;
  color: #077A70;
  font-weight: 500;
  margin-bottom: 20px;
}
.detail-hero__tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.detail-hero__tag {
  padding: 8px 18px;
  background: rgba(44,198,208,.15);
  border: 1px solid rgba(44,198,208,.3);
  border-radius: 999px;
  font-size: 14px;
  color: #fff;
  font-weight: 500;
}
.detail-hero__desc {
  font-size: 15px;
  color: rgba(255,255,255,.85);
  line-height: 1.8;
  margin-bottom: 28px;
  max-width: 720px;
}
.detail-hero__stats {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.detail-hero__stat {
  padding: 16px 24px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  min-width: 120px;
  text-align: center;
}
.detail-hero__stat-num {
  font-size: 26px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}
.detail-hero__stat-label {
  font-size: 13px;
  color: rgba(255,255,255,.65);
}

/* ---------- 详情页主体两栏布局 ---------- */
.detail-main {
  display: flex;
  gap: 32px;
  padding: 48px 0 64px;
  background: #F8FAFC;
}
.detail-main .container {
  display: flex;
  gap: 32px;
  align-items: flex-start;
}

/* ---------- 粘性目录 ---------- */
.toc {
  position: sticky;
  top: 96px;
  flex: 0 0 220px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #E5E7EB;
  padding: 20px 16px;
  box-shadow: 0 4px 16px rgba(0,0,0,.04);
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}
.toc__title {
  font-size: 13px;
  font-weight: 700;
  color: #1A2B3C;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #E5E7EB;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.toc__list { display: flex; flex-direction: column; gap: 6px; }
.toc__item {
  display: block;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14px;
  color: #6B7280;
  transition: all .2s;
  border-left: 3px solid transparent;
}
.toc__item:hover {
  background: #F8FAFC;
  color: #077A70;
}
.toc__item.active {
  background: rgba(44,198,208,.08);
  color: #077A70;
  border-left-color: #077A70;
  font-weight: 600;
}

/* ---------- 详情内容区 ---------- */
.detail-content { flex: 1; min-width: 0; }
.detail-section {
  background: #fff;
  border-radius: 16px;
  border: 1px solid #E5E7EB;
  padding: 28px 32px;
  margin-bottom: 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,.03);
}
.detail-section__title {
  font-size: 20px;
  font-weight: 700;
  color: #1A2B3C;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 2px solid #E5E7EB;
  display: flex;
  align-items: center;
  gap: 10px;
}
.detail-section__title::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 22px;
  background: linear-gradient(180deg, #077A70 0%, #077A70 100%);
  border-radius: 3px;
}

/* ---------- 个人简介 ---------- */
.detail-intro p {
  font-size: 15px;
  line-height: 1.9;
  color: #3F4161;
  margin-bottom: 14px;
}
.detail-intro p:last-child { margin-bottom: 0; }
.detail-intro strong { color: #077A70; font-weight: 600; }

/* ---------- 擅长领域 ---------- */
.skill-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.skill-tag {
  padding: 8px 16px;
  background: rgba(44,198,208,.08);
  color: #077A70;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid rgba(44,198,208,.15);
}

/* ---------- 曾任职位 ---------- */
.experience-timeline {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}
.experience-timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: #E5E7EB;
}
.experience-item {
  position: relative;
  padding-left: 38px;
}
.experience-item::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid #077A70;
}
.experience-item__company {
  font-size: 16px;
  font-weight: 700;
  color: #1A2B3C;
  margin-bottom: 4px;
}
.experience-item__position {
  font-size: 14px;
  color: #077A70;
  font-weight: 500;
  margin-bottom: 6px;
}
.experience-item__desc {
  font-size: 14px;
  color: #6B7280;
  line-height: 1.7;
}

/* ---------- 实战经验 ---------- */
.experience-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.experience-card {
  padding: 20px;
  background: #F8FAFC;
  border-radius: 12px;
  border: 1px solid #E5E7EB;
}
.experience-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.experience-card__company {
  font-size: 15px;
  font-weight: 700;
  color: #1A2B3C;
}
.experience-card__period {
  font-size: 13px;
  color: #6B7280;
}
.experience-card__desc {
  font-size: 14px;
  color: #3F4161;
  line-height: 1.7;
}

/* ---------- 主讲课程 ---------- */
.course-series { margin-bottom: 24px; }
.course-series:last-child { margin-bottom: 0; }
.course-series__title {
  font-size: 15px;
  font-weight: 700;
  color: #077A70;
  margin-bottom: 12px;
  padding-left: 12px;
  border-left: 3px solid #077A70;
}
.course-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.course-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: #F8FAFC;
  border-radius: 10px;
  border: 1px solid #E5E7EB;
  font-size: 14px;
  color: #3F4161;
}
.course-item__num {
  flex: 0 0 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #077A70 0%, #077A70 100%);
  color: #fff;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
}
.course-item__hours {
  margin-left: auto;
  font-size: 13px;
  color: #6B7280;
  white-space: nowrap;
}
/* 可点击课程项（链接到课程详情页） */
.course-item--link {
  cursor: pointer;
  transition: all .2s;
}
.course-item--link:hover {
  background: #fff;
  border-color: #077A70;
  box-shadow: 0 2px 10px rgba(44,198,208,.12);
}
.course-item--link:hover .course-item__arrow {
  transform: translateX(3px);
}
.course-item__arrow {
  margin-left: auto;
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 600;
  color: #077A70;
  white-space: nowrap;
  transition: transform .2s;
}

/* ---------- 服务客户 ---------- */
.client-industry { margin-bottom: 20px; }
.client-industry:last-child { margin-bottom: 0; }
.client-industry__title {
  font-size: 15px;
  font-weight: 700;
  color: #1A2B3C;
  margin-bottom: 10px;
}
.client-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.client-tag {
  padding: 6px 12px;
  background: #F8FAFC;
  border: 1px solid #E5E7EB;
  border-radius: 6px;
  font-size: 13px;
  color: #3F4161;
}

/* ---------- 典型案例 ---------- */
.case-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  table-layout: fixed;
}
.case-table th:nth-child(1) { width: 22%; }
.case-table th:nth-child(2) { width: 30%; }
.case-table th:nth-child(3) { width: 14%; }
.case-table th:nth-child(4) { width: 34%; }
.case-table th,
.case-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid #E5E7EB;
  vertical-align: top;
  word-break: break-word;
}
.case-table th {
  background: #F8FAFC;
  font-weight: 700;
  color: #1A2B3C;
}
.case-table td { color: #3F4161; }
.case-table tr:hover td { background: #FAFBFC; }

/* ---------- 客户评价 ---------- */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.testimonial-card {
  padding: 22px;
  background: #F8FAFC;
  border-radius: 12px;
  border: 1px solid #E5E7EB;
}
.testimonial-card__quote {
  font-size: 14px;
  color: #3F4161;
  line-height: 1.8;
  margin-bottom: 16px;
  position: relative;
  padding-left: 20px;
}
.testimonial-card__quote::before {
  content: '"';
  position: absolute;
  left: 0;
  top: -8px;
  font-size: 32px;
  color: #077A70;
  font-family: Georgia, serif;
  line-height: 1;
}
.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.testimonial-card__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #077A70 0%, #077A70 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 600;
}
.testimonial-card__name {
  font-size: 14px;
  font-weight: 700;
  color: #1A2B3C;
}
.testimonial-card__title {
  font-size: 12px;
  color: #6B7280;
}
.testimonial-card__stars {
  color: #FF8F5C;
  font-size: 14px;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

/* ---------- CTA ---------- */
.detail-cta {
  background: linear-gradient(135deg, #063F3B 0%, #052F2B 100%);
  padding: 64px 0;
  position: relative;
  overflow: hidden;
}
.detail-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(44,198,208,.2) 0%, transparent 60%);
}
.detail-cta .container {
  position: relative;
  z-index: 1;
  text-align: center;
}
.detail-cta__title {
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}
.detail-cta__desc {
  font-size: 16px;
  color: rgba(255,255,255,.8);
  margin-bottom: 28px;
}
.detail-cta__actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ---------- 相关讲师 ---------- */
.related-teachers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.related-teacher {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #E5E7EB;
  transition: all .25s;
}
.related-teacher:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(44,198,208,.12);
  border-color: rgba(44,198,208,.3);
}
.related-teacher__avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 14px;
  background: #E8F4F8;
}
.related-teacher__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.related-teacher__avatar.is-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #077A70;
  font-size: 36px;
  font-weight: 700;
}
.related-teacher__name {
  font-size: 16px;
  font-weight: 700;
  color: #1A2B3C;
  margin-bottom: 6px;
}
.related-teacher__title {
  font-size: 13px;
  color: #6B7280;
}

/* ---------- 预约讲师弹窗 ---------- */
.booking-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(15, 32, 39, .72);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s, visibility .25s;
}
.booking-modal.active {
  opacity: 1;
  visibility: visible;
}
.booking-modal__box {
  position: relative;
  width: 100%;
  max-width: 440px;
  background: #fff;
  border-radius: 16px;
  padding: 36px 32px 32px;
  text-align: center;
  box-shadow: 0 24px 80px rgba(0,0,0,.28);
  transform: translateY(16px);
  transition: transform .25s;
}
.booking-modal.active .booking-modal__box {
  transform: translateY(0);
}
.booking-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9CA3AF;
  font-size: 22px;
  line-height: 1;
  transition: all .2s;
}
.booking-modal__close:hover {
  background: #F3F4F6;
  color: #1A2B3C;
}
.booking-modal__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(44,198,208,.12) 0%, rgba(30,142,150,.12) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.booking-modal__icon svg {
  width: 30px;
  height: 30px;
  color: #077A70;
}
.booking-modal__title {
  font-size: 20px;
  font-weight: 700;
  color: #1A2B3C;
  margin-bottom: 20px;
}
.booking-modal__body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 22px;
}
.booking-modal__line {
  font-size: 15px;
  color: #3F4161;
  line-height: 1.6;
}
.booking-modal__line strong {
  color: #077A70;
  font-weight: 700;
}
.booking-modal__qrcode {
  width: 160px;
  height: 160px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #E5E7EB;
  box-shadow: 0 4px 16px rgba(0,0,0,.06);
}
.booking-modal__qrcode img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.booking-modal__hint {
  margin-top: 10px;
  font-size: 13px;
  color: #6B7280;
}

/* ---------- 简介区子标题 ---------- */
.intro-subtitle {
  font-size: 16px;
  font-weight: 700;
  color: #1A2B3C;
  margin: 26px 0 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.intro-subtitle::before {
  content: '';
  width: 4px;
  height: 16px;
  background: linear-gradient(180deg, #077A70 0%, #077A70 100%);
  border-radius: 2px;
}

/* ---------- 核心优势卡片 ---------- */
.advantage-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.advantage-card {
  background: linear-gradient(135deg, #F0FBFB 0%, #FFFFFF 100%);
  border: 1px solid rgba(44,198,208,.22);
  border-radius: 12px;
  padding: 20px;
}
.advantage-card__title {
  font-size: 15px;
  font-weight: 700;
  color: #077A70;
  margin-bottom: 8px;
}
.advantage-card__desc {
  font-size: 13px;
  color: #3F4161;
  line-height: 1.7;
}

/* ---------- 资质认证徽章 ---------- */
.credential-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.credential-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: #FFF7E8;
  color: #C2450F;
  border: 1px solid #FFF1E8;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
}
.credential-badge::before {
  content: '◆';
  font-size: 10px;
  color: #FF8F5C;
}

/* ---------- 差异化卖点高亮块 ---------- */
.highlight-block {
  margin-top: 20px;
  padding: 18px 20px;
  background: linear-gradient(135deg, #F0FBFB 0%, #FFFFFF 100%);
  border: 1px solid rgba(44,198,208,.25);
  border-left: 4px solid #077A70;
  border-radius: 10px;
}
.highlight-block__title {
  font-size: 15px;
  font-weight: 700;
  color: #1A2B3C;
  margin-bottom: 10px;
}
.highlight-block ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.highlight-block li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  color: #3F4161;
  line-height: 1.7;
}
.highlight-block li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #077A70;
}

/* ---------- 文字高亮 ---------- */
.hl { color: #077A70; font-weight: 700; }
.hl-gold { color: #FF8F5C; font-weight: 700; }

/* ---------- 授课风格 ---------- */
.teaching-style {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.teaching-style__item {
  background: #F8FAFC;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  padding: 20px;
}
.teaching-style__name {
  font-size: 15px;
  font-weight: 700;
  color: #077A70;
  margin-bottom: 8px;
}
.teaching-style__desc {
  font-size: 13px;
  color: #3F4161;
  line-height: 1.7;
}

/* ---------- 授课照片墙（图文卡片） ---------- */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.photo-card {
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  overflow: hidden;
  transition: all .25s;
}
.photo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(44,198,208,.12);
  border-color: rgba(44,198,208,.3);
}
.photo-card__img {
  width: 100%;
  height: 180px;
  overflow: hidden;
  background: #F1F5F9;
}
.photo-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.photo-card__caption {
  padding: 12px 14px;
  text-align: center;
}
.photo-card__company {
  font-size: 14px;
  font-weight: 700;
  color: #1A2B3C;
  line-height: 1.4;
}
.photo-card__course {
  font-size: 12px;
  color: #6B7280;
  margin-top: 4px;
  line-height: 1.5;
}

/* ---------- 资质证书墙 ---------- */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.cert-grid img {
  width: 100%;
  height: 200px;
  object-fit: contain;
  background: #F8FAFC;
  border-radius: 10px;
  border: 1px solid #E5E7EB;
  padding: 10px;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .detail-hero__content { flex-direction: column; text-align: center; }
  .detail-hero__image { flex: 0 0 auto; width: 280px; height: 360px; margin: 0 auto; }
  .detail-hero__tags { justify-content: center; }
  .detail-hero__stats { justify-content: center; }
  .detail-main .container { flex-direction: column; }
  .toc {
    position: relative;
    top: 0;
    flex: 0 0 auto;
    width: 100%;
    max-height: none;
  }
  .toc__list { flex-direction: row; flex-wrap: wrap; }
  .experience-cards,
  .testimonial-grid,
  .related-teachers,
  .teaching-style,
  .photo-grid,
  .cert-grid,
  .advantage-grid { grid-template-columns: 1fr 1fr; }
  .hero-content { flex-direction: column; text-align: center; gap: 20px; }
  .hero-left { max-width: 100%; }
  .hero-subtitle { margin: 0 auto 24px; }
  .hero-stats { justify-content: center; }
  .hero-right { width: 440px; height: 400px; margin: 0 auto; }
  .spoke-hub { width: 104px; height: 104px; font-size: 18px; }
  .spoke-hub__sub { font-size: 10px; }
  .satellite__dot { width: 40px; height: 40px; font-size: 11px; }
  .satellite__label { font-size: 12px; }
  .satellite { width: 100px; margin-left: -50px; }
}

@media (max-width: 640px) {
  .teaching-style,
  .photo-grid,
  .cert-grid,
  .advantage-grid { grid-template-columns: 1fr; }
  .hero { padding: 48px 0 40px; }
  .hero-title { font-size: 34px; }
  .hero-subtitle { font-size: 14px; }
  .hero-stats { gap: 10px; }
  .hero-right { width: 320px; height: 300px; }
  .spoke-hub { width: 96px; height: 96px; font-size: 17px; }
  .spoke-hub__sub { font-size: 10px; }
  .satellite__dot { width: 38px; height: 38px; font-size: 11px; }
  .satellite__label { font-size: 12px; }
  .satellite { width: 92px; margin-left: -46px; }
}

@media (max-width: 768px) {
  .teacher-page-content { grid-template-columns: repeat(2, 1fr); }
  .teacher-card-rect__img { height: 150px; }
  .footer-main { flex-direction: column; }
  .cta-features { flex-direction: column; align-items: center; }
  .detail-hero__name { font-size: 30px; }
  .detail-section { padding: 22px; }
}

/* ========== 课程类目页（kecheng/）· 课程卡片网格 ========== */
.kgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.kcard {
  display: block; background: #fff; border: 1px solid var(--border); border-radius: 10px;
  padding: 16px 18px; transition: all .25s; box-shadow: 0 2px 6px rgba(0,0,0,.03);
}
.kcard:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(11,152,140,.12); border-color: rgba(11,152,140,.35); }
.kcard__name { font-size: 15px; font-weight: 600; color: #1A2B3C; line-height: 1.45; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.kcard__meta { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-secondary); }
.kcard__teacher { color: var(--brand-strong); font-weight: 500; }
.kcard__dot { color: #D5D5D5; }
.kcard__tag { color: var(--text-secondary); }
.sidebar__group { padding: 12px 16px 6px; font-size: 12px; font-weight: 700; color: var(--brand-strong); letter-spacing: .5px; background: rgba(11,152,140,.04); border-bottom: 1px solid #F2F2F2; }

/* 侧栏在课程类目页需容纳「8 分类 + 34 位讲师」两组，210px 下太窄（分类名「课程开发」等会换行），
   故本区布局把侧栏放宽到 240px；被 3 个分组各自的 min-width:300px 反压时也不会溢出。
   注：.layout/.sidebar 的窄屏表现由下方 @media 1024px 块统一接管，此处只改桌面端宽度。 */
.layout--kc { gap: 28px; }
.layout--kc > .sidebar { flex: 0 0 240px; }

@media (max-width: 991px) { .kgrid { grid-template-columns: 1fr; } }

/* ---------- 窄屏：导航改为可横滑（2026-09-18 修 · 既有缺陷） ----------
   问题：.nav 是 display:flex 且 .nav-item > a 为 white-space:nowrap、padding:28px 16px，
        在 ≤991px 下 6 个一级项 + 下拉箭头总宽约 666px，而 .header-inner 只有视口宽。
        实测 390px：.nav 占 666px、右侧 .btn 被推到 L=702~810，
        document.scrollWidth = 794（溢出 404px）—— 整站出现横向滚动条。
   影响面：header 是频道公共骨架，58 个页面（首页 + 51 讲师页 + 6 子目录首页）全部受益；
        shiziku 频道早前已修过同类问题，此处为 shizililiang 频道的对应修复。
   修法：≤991px 把导航压成「可横向滑动的一行」（与 .sidebar__list 的窄屏表现同思路），
        字号与内边距同步收缩；只在媒体查询内覆盖，桌面端(>991px)零影响。 */
@media (max-width: 991px) {
  .header { height: 68px; }
  .logo img { height: 38px; }
  .nav {
    flex: 1 1 auto; min-width: 0; gap: 0;
    overflow-x: auto; overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* 右侧留出与 .btn 的间距，且滑动到末尾时不贴边 */
    padding-left: 16px;
  }
  .nav::-webkit-scrollbar { display: none; }
  .nav-item { flex: none; }
  .nav-item > a { font-size: 13.5px; padding: 22px 9px; }
  .nav-item.has-dropdown > a::after { width: 6px; height: 6px; }
  .header-inner { gap: 10px; }
  .header .btn { flex: none; font-size: 13px; padding: 9px 14px; }
}
@media (max-width: 480px) {
  .nav-item > a { font-size: 12.5px; padding: 20px 7px; }
  .header .btn { font-size: 12.5px; padding: 8px 11px; }
}

/* ========== 面包屑 ========== */
.crumb { padding: 18px 0 0; background: #fff; }
.crumb-inner { font-size: 13px; color: var(--text-muted); }
.crumb-inner a { color: var(--text-secondary); }
.crumb-inner a:hover { color: var(--brand-strong); }
.crumb-inner span { margin: 0 8px; color: #D0D0D0; }
.crumb-inner b { color: var(--brand-strong); font-weight: 500; }

/* ========== 左右结构布局（侧边导航 + 内容） ========== */
.layout { display: flex; gap: 32px; align-items: flex-start; }
.sidebar { flex: 0 0 210px; position: sticky; top: 20px; }
.sidebar__title { font-size: 15px; font-weight: 700; color: #1A2B3C; margin-bottom: 12px; padding-left: 4px; }
.sidebar__list { background: #fff; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; max-height: 70vh; overflow-y: auto; }
.sidebar__item { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 16px; font-size: 14px; color: var(--text); border-bottom: 1px solid #F2F2F2; transition: all .2s; }
.sidebar__item:last-child { border-bottom: none; }
.sidebar__item:hover { background: rgba(11,152,140,.05); color: #077A70; }
.sidebar__item.active { background: var(--brand-strong); color: #fff; font-weight: 600; }
.sidebar__item.active .sidebar__count { color: rgba(255,255,255,.75); }
.sidebar__item--home { font-weight: 600; color: #1A2B3C; }
.sidebar__count { font-size: 12px; color: var(--text-muted); flex: none; }
.layout-main { flex: 1; min-width: 0; }
.page-head { margin-bottom: 28px; text-align: center; }
.page-title { font-size: 30px; font-weight: 700; color: #1A2B3C; margin-bottom: 8px; }
.page-subtitle { font-size: 15px; color: #6B7280; line-height: 1.7; max-width: 760px; margin: 0 auto; }
.page-title .page-title-accent { color: #0B988C; }

/* ========== 响应式 ========== */
@media (max-width: 1024px) {
  .field-grid { grid-template-columns: repeat(4, 1fr); }
  .daka-grid { grid-template-columns: repeat(3, 1fr); }
  .lingyu-list { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .field-grid { grid-template-columns: repeat(2, 1fr); }
  .daka-grid { grid-template-columns: repeat(2, 1fr); }
  .detail-hero__content { flex-direction: column; text-align: center; }
  .detail-hero__image { flex: none; width: 200px; height: 240px; }
  .hero-title { font-size: 34px; }
  .topic-list { grid-template-columns: 1fr; }
  .booking-modal__box { padding: 36px 24px 32px; }
  .booking-modal__line { white-space: normal; }
  .booking-modal__qrcode { width: 170px; }
}
@media (max-width: 480px) {
  .booking-modal__title { font-size: 20px; }
  .booking-modal__body { font-size: 14px; }
  .booking-modal__qrcode { width: 150px; }
}

/* ---------- 响应式：讲师 Hero（2026-09-13 补，此前 hero 姓名 40px 无断点） ---------- */
@media (max-width: 768px) {
  .detail-hero__name { font-size: 28px; }
  .detail-hero__image .avatar-text { font-size: 72px; letter-spacing: 2px; }
}

@media (max-width: 480px) {
  .detail-hero__name { font-size: 24px; }
}

/* ---------- Word 加粗 → 关键词强调（2026-09-13） ----------
   版式优先原则：正文层级已由卡片/徽标/留白建立，故强调只用「色 + 字重」，
   不加底色、不加下划线。Word 的 C00000 品牌红不照搬（与频道青绿冲突），
   统一用频道强调深色 --brand-strong。 */
.em-key {
  color: var(--brand-strong);
  font-weight: 600;
}

/* ============================================================
   列表分页（2026-09-15 新增）
   约定：列表容器 [data-page-list]（直接子元素 = 分页单元）、分页条 .pager[data-page-pager]。
        JS 未执行时列表全量可见、.pager 带 hidden ⇒ 降级为长列表，内容一条不少。
   全部为新类名，未改动任何既有选择器。
   ============================================================ */
[data-page-list] > .is-page-hidden { display: none !important; }
.pick-list > .pick-group.is-last-visible { margin-bottom: 0; }
[data-page-list].is-swapping { animation: page-fade .3s ease; }
@keyframes page-fade { from { opacity: .3; } to { opacity: 1; } }

.pager { margin: 36px 0 0; text-align: center; }
.pager[hidden] { display: none; }
.pager__info { font-size: 13px; color: var(--text-muted); margin-bottom: 14px; }
.pager__info b { color: var(--brand-strong); font-weight: 700; }
.pager__list { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; }

.pager__btn,
.pager__num {
  min-width: 38px; height: 38px; padding: 0 12px; border-radius: 8px;
  border: 1px solid var(--border); background: #fff; color: var(--text-secondary);
  font-size: 14px; font-weight: 600; line-height: 36px; text-align: center;
  transition: background .2s, border-color .2s, color .2s;
}
.pager__btn:hover:not(:disabled),
.pager__num:hover:not(.is-active) {
  background: var(--brand-50); border-color: var(--brand); color: var(--brand-strong);
}
.pager__num.is-active {
  background: var(--brand-strong); border-color: var(--brand-strong);
  color: #fff; cursor: default;
}
.pager__btn:disabled { opacity: .45; cursor: not-allowed; }
.pager__ellipsis { min-width: 24px; color: var(--text-muted); text-align: center; user-select: none; }

@media (max-width: 768px) {
  .pager { margin-top: 28px; }
  .pager__list { gap: 6px; }
  .pager__btn, .pager__num { min-width: 34px; height: 34px; line-height: 32px; font-size: 13px; padding: 0 9px; }
  .pager__btn--prev, .pager__btn--next { padding: 0 12px; }
}

/* ---------- 窄屏：领域侧栏改为顶部横向标签行（2026-09-15 修） ----------
   问题：.sidebar 固定 flex:0 0 210px 且从无断点 —— 390px 宽时正文区只剩约 120px，
        讲师卡被压成竖条、姓名逐字换行（首页/领域页在移动端不可用；新加的分页条同样被压坏）。
   范围：.layout/.sidebar 仅被 index.html + lingyu/*.html 这 36 个页面使用（讲师页/课程页不涉及），
        故本次修复的影响面与分页改动完全一致。
   断点取 1024px：与 .daka-grid 降到 3 列同步 —— 一旦侧栏开始挤压栅格，就改到顶部。
   写法：只**新增**一个媒体查询块（不改任何既有规则），桌面端零影响。 */
@media (max-width: 1024px) {
  .layout { flex-direction: column; gap: 18px; align-items: stretch; }
  .sidebar { flex: none; width: 100%; position: static; }
  .sidebar__title { margin-bottom: 8px; }
  .sidebar__list {
    display: flex; flex-wrap: nowrap; gap: 8px;
    max-height: none; overflow-x: auto; overflow-y: hidden;
    background: transparent; border: none; border-radius: 0;
    padding-bottom: 6px; -webkit-overflow-scrolling: touch;
  }
  .sidebar__item {
    flex: none; padding: 7px 14px; border: 1px solid var(--border);
    border-radius: 999px; background: #fff; font-size: 13px; gap: 6px;
  }
  .sidebar__list .sidebar__item:last-child { border-bottom: 1px solid var(--border); }
  .sidebar__item.active { border-color: var(--brand-strong); }
}

/* ---------- 窄屏：导航下拉不再撑破视口（2026-09-18 修 · 既有缺陷） ----------
   问题：.dropdown 为 position:absolute + left:50% + translateX(-50%)，
        且 min-width:360px（两列）/ 200px（.dropdown-sm）。在 ≤768px 视口下，
        「师资库」「课程产品」等靠右的 nav-item 其下拉框右边缘会超出视口
        （实测 768 → right=812、390 → right=812），把 document.scrollWidth 撑到 812，
        导致整站出现横向滚动条 —— 与下拉是否展开无关（opacity:0 仍占几何位置）。
   修法：只**新增**媒体查询，把下拉改为相对 nav-item 右对齐并限宽，
        不再依赖 left:50% 居中；桌面端（>1024px）零影响。 */
@media (max-width: 1024px) {
  .dropdown {
    left: auto; right: 0;
    transform: translateY(8px);
    min-width: 0; max-width: min(360px, calc(100vw - 32px));
  }
  .dropdown::before { left: auto; right: 28px; transform: rotate(45deg); }
  .nav-item:hover > .dropdown { transform: translateY(0); }
  .dropdown-sm { max-width: min(260px, calc(100vw - 32px)); }
  .dropdown-col { min-width: 0; }
  /* 横向标签行内的下拉不参与撑宽（.sidebar__list 在窄屏为滚动容器） */
  .sidebar__list { max-width: 100%; }
}

/* ---------- 侧边栏「课程分类」区块（2026-09-18 新增） ----------
   结构：与「领域分类」并列的第二个区块（.sidebar__title--alt + .sidebar__list--kc）。
   桌面端：与领域区块同宽（210px），上间距 24px 区分两块；因 17 项较长，限高滚动。
   窄屏：复用 .sidebar__list 的横向标签行表现（见上方 @media 1024px 块）。
   仅新增类名，不改任何既有选择器。 */
.sidebar__title--alt { margin-top: 24px; }
.sidebar__list--kc { max-height: 46vh; }
.sidebar__list--kc .sidebar__group { position: sticky; top: 0; z-index: 1; }

@media (max-width: 1024px) {
  .sidebar__title--alt { margin-top: 18px; }
  .sidebar__list--kc { max-height: none; }
  .sidebar__list--kc .sidebar__group {
    position: static; flex: none; display: flex; align-items: center;
    padding: 7px 12px; border: 1px dashed var(--border); border-radius: 999px;
    background: #fff; font-size: 12px; letter-spacing: 0;
  }
}

/* ---------- 首页「按课程分类找课」区块 + 类目总览页卡片（2026-09-18 新增） ----------
   两处共用一组类名：
     首页 .ksec-wrap（正文区块，带标题行 + 两个 .ksec）  ｜  总览页 .ksec（区块）+ .kcat-grid
   .kcat--sm / .ksec--sm 为首页内嵌的小尺寸变体（首页空间有限）。
   全部为新增类名，不改任何既有选择器。 */
.ksec-wrap {
  background: linear-gradient(180deg, #F7FBFB 0%, #FFFFFF 100%);
  border: 1px solid var(--border); border-radius: 16px;
  padding: 26px 28px 28px; margin-bottom: 34px;
}
.ksec-wrap__head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 20px; flex-wrap: wrap; margin-bottom: 20px;
  padding-bottom: 16px; border-bottom: 1px solid var(--border);
}
.ksec-wrap__title { font-size: 22px; font-weight: 800; color: #1A2B3C; margin: 0 0 6px; }
.ksec-wrap__sub { font-size: 13.5px; color: #6B7280; line-height: 1.6; margin: 0; max-width: 720px; }
.ksec-wrap__more {
  flex: none; font-size: 14px; font-weight: 700; color: var(--brand-strong);
  white-space: nowrap; transition: opacity .2s;
}
.ksec-wrap__more:hover { opacity: .75; }
.kcat-accent { color: var(--brand); }

.ksec { margin-bottom: 26px; }
.ksec:last-child { margin-bottom: 0; }
.ksec__title {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-size: 19px; font-weight: 800; color: #1A2B3C; margin: 0 0 8px;
}
.ksec__badge {
  font-size: 12px; font-weight: 600; color: var(--brand-strong);
  background: rgba(11,152,140,.08); border-radius: 999px; padding: 3px 10px;
}
.ksec__desc { font-size: 13.5px; color: #6B7280; line-height: 1.7; margin: 0 0 16px; }

.kcat-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.kcat {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; padding: 18px 10px; background: #fff;
  border: 1px solid var(--border); border-radius: 12px;
  transition: all .25s; text-align: center;
}
.kcat:hover {
  transform: translateY(-3px); border-color: rgba(11,152,140,.45);
  box-shadow: 0 8px 20px rgba(11,152,140,.12);
}
.kcat__label { font-size: 14px; font-weight: 600; color: #1A2B3C; line-height: 1.35; }
.kcat__count { font-size: 12px; color: var(--text-muted); }
.kcat__count b { color: var(--brand-strong); font-size: 15px; font-weight: 800; }

/* 首页内嵌小变体 */
.ksec--sm { margin-bottom: 20px; }
.ksec__title--sm { font-size: 15px; margin-bottom: 10px; }
.ksec__title--sm .ksec__badge { font-size: 11px; padding: 2px 8px; }
.kcat-grid--sm { grid-template-columns: repeat(3, 1fr); gap: 8px; }
.kcat--sm { flex-direction: row; justify-content: space-between; padding: 10px 12px; border-radius: 9px; gap: 8px; }
.kcat--sm .kcat__label { font-size: 13px; }
.kcat--sm .kcat__count { font-size: 11px; flex: none; }
.kcat--sm .kcat__count b { font-size: 13px; }

@media (max-width: 1024px) {
  .kcat-grid { grid-template-columns: repeat(3, 1fr); }
  .kcat-grid--sm { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .ksec-wrap { padding: 20px 18px 22px; }
  .ksec-wrap__title { font-size: 19px; }
  .kcat-grid { grid-template-columns: repeat(2, 1fr); }
  .kcat-grid--sm { grid-template-columns: 1fr; }
}

/* r114：弹窗关闭 × 提亮（#9CA3AF 2.54 ✗） */
.booking-modal__close { color: #4B5563; }
