/* ============================================================
   teachers.html · 名师档案（老师信息轮播 + 老师介绍 / 老师课程）2026-11-16
   ------------------------------------------------------------
   配色沿用专题站变量：--brand #C0531E / --brand-deep #9A3F12 /
   --brand-soft #F6ECE6 / --bg-deep #0F1826 / --line #E2E7EE。
   独立 .tp- 命名空间，后加载；不覆盖 css/teachers.css 与
   css/teachers-look.css 的原有规则，删掉本文件即整体回退。
   保留 .gd-teachers / .gd-t-card / .gd-t-next 等站点既有钩子。
   ============================================================ */

.tp-root {
  --tp-brand: #C0531E;
  --tp-deep: #9A3F12;
  --tp-soft: #F6ECE6;
  --tp-mid: #D98A5A;
  --tp-ink: #16202E;
  --tp-line: #E2E7EE;
  --tp-night: #0F1826;
  margin: 34px 0 0;
  font-family: "PingFang SC", -apple-system, BlinkMacSystemFont, "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

/* ---------- 1. 顶部条：11-16 第三轮按需求删除可见标题区 ---------- */

/* ---------- 2. 老师信息横幅（参考版式：圆形头像 + 姓名 + 履历 + 指标） ---------- */
.tp-carousel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
}
.tp-stage {
  display: block;              /* 一次只展示一位老师 */
  flex: 1;
  min-width: 0;
  position: relative;
}
.tp-root .gd-t-grid.gd-t-grid { grid-template-columns: none; gap: 0; }

.tp-root .gd-t-card {
  display: none;
  position: relative;
  overflow: hidden;
  min-height: 230px;
  padding: 30px 34px;
  border: 0;
  border-radius: 12px;
  text-align: left;
  color: #fff;
  background:
    radial-gradient(680px 240px at 82% 8%, rgba(192, 83, 30, .38), transparent 68%),
    linear-gradient(112deg, #0F1826 0%, #1B2A3E 52%, #34211B 100%);
  box-shadow: 0 10px 30px rgba(15, 24, 38, .18);
  transform: none;
  opacity: 1;
}
.tp-root .gd-t-card::before {       /* 深色网格纹理，与专题站 Hero 同族 */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}
.tp-root .gd-t-card::after {        /* 右下品牌橙红光晕 */
  content: "";
  position: absolute;
  right: -90px;
  bottom: -160px;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(192, 83, 30, .30), transparent 68%);
  pointer-events: none;
}
.tp-root .gd-t-card.is-mid,
.tp-root .gd-t-card.is-on { display: block; }
.tp-root .gd-t-card.is-hidden,
.tp-root .gd-t-card.is-side { display: none; }
/* 覆盖旧三卡轮播对 is-mid 的放大 / 红色标题（旧规则特异性更高） */
.tp-root .gd-t-card.is-mid:hover,
.tp-root .gd-t-card.is-side:hover { transform: none; box-shadow: 0 10px 30px rgba(15, 24, 38, .18); }
.tp-root .gd-t-card h4.tp-name { color: #fff; font-size: 27px; margin: 0; }
@media (max-width: 640px) {
  .tp-root .gd-t-card h4.tp-name { font-size: 21px; }
}

/* 箭头 */
.tp-root .gd-t-arrow {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border: 1px solid var(--tp-line);
  border-radius: 50%;
  background: #fff;
  color: var(--tp-deep);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  transition: .2s;
}
.tp-root .gd-t-arrow:hover { background: var(--tp-brand); border-color: var(--tp-brand); color: #fff; }
.tp-root .gd-t-arrow:focus-visible { outline: 2px solid var(--tp-brand); outline-offset: 2px; }
.tp-root .gd-t-arrow svg { width: 20px; height: 20px; }

/* 横幅内部 */
.tp-banner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 26px;
  align-items: center;
}
.tp-photo {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  display: block;
  background: #28303C;
  border: 3px solid rgba(255, 255, 255, .82);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .32), 0 0 0 6px rgba(192, 83, 30, .26);
}
.tp-name { font-size: 27px; font-weight: 700; line-height: 1.2; letter-spacing: -.01em; color: #fff; margin: 0; }
.tp-role { display: inline-block; margin: 7px 0 0; font-size: 12px; color: #F0B48E; }
.tp-field { margin: 9px 0 0; font-size: 12.5px; color: rgba(255, 255, 255, .88); }
.tp-field b { color: #F0B48E; font-weight: 700; }
.tp-cred { list-style: none; margin: 11px 0 0; padding: 0; }
.tp-cred li {
  position: relative;
  padding-left: 15px;
  margin: 3px 0;
  font-size: 12px;
  line-height: 1.65;
  color: rgba(255, 255, 255, .68);
}
.tp-cred li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--tp-mid);
}
.tp-metrics {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 34px;
  margin: 22px 0 0;
  padding: 16px 0 0;
  border-top: 1px solid rgba(255, 255, 255, .16);
}
.tp-metric { display: flex; align-items: baseline; gap: 9px; }
.tp-metric span { font-size: 11.5px; color: rgba(255, 255, 255, .62); }
.tp-metric b { font-size: 17px; font-weight: 700; color: #F0B48E; line-height: 1.35; }
.tp-try {
  margin-left: auto;
  align-self: center;
  flex: 0 0 auto;
  font-size: 12.5px;
  font-weight: 700;
  color: #fff;
  padding: 9px 18px;
  border-radius: 8px;
  background: var(--tp-brand);
  text-decoration: none;
  box-sizing: border-box;
}
.tp-try:hover { background: var(--tp-deep); }

/* 圆点 */
.tp-root .gd-t-dots { display: flex; justify-content: center; gap: 8px; margin: 16px 0 0; }
.tp-root .gd-t-dots button {
  width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%;
  background: #D8DEE6; cursor: pointer; transition: .2s;
}
.tp-root .gd-t-dots button.on { width: 24px; border-radius: 5px; background: var(--tp-brand); }
.tp-root .gd-t-dots button:focus-visible { outline: 2px solid var(--tp-brand); outline-offset: 2px; }

/* ---------- 3. 栏目分类：只保留「老师介绍 / 老师课程」 ---------- */
.tp-tabs {
  display: flex;
  gap: 34px;
  margin: 26px 0 0;
  padding: 0 2px;
  border-bottom: 1px solid var(--tp-line);
}
.tp-tabs button {
  position: relative;
  border: 0;
  background: none;
  padding: 0 2px 13px;
  font-size: 16px;
  font-weight: 700;
  color: #5A6472;
  cursor: pointer;
  font-family: inherit;
  transition: color .2s;
}
.tp-tabs button:hover { color: var(--tp-brand); }
.tp-tabs button.on { color: var(--tp-brand); }
.tp-tabs button.on::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 3px;
  border-radius: 2px 2px 0 0;
  background: var(--tp-brand);
}
.tp-tabs button:focus-visible { outline: 2px solid var(--tp-brand); outline-offset: 2px; }

/* ---------- 4. 左主栏 + 右窄栏 ---------- */
.tp-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 240px);
  gap: 22px;
  align-items: start;
  margin-top: 22px;
}
.tp-main { min-width: 0; }
.tp-panel { display: none; }
.tp-panel.on { display: block; }

/* 认证信息条（专题站品牌浅橙） */
.tp-cert {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 18px;
  border-radius: 8px;
  background: linear-gradient(90deg, #F6ECE6 0%, #FCF2EB 58%, #FFF9F5 100%);
  font-size: 12.5px;
  line-height: 1.7;
  color: #7A3A16;
  margin-bottom: 18px;
}
.tp-cert::before {
  content: "";
  flex: 0 0 auto;
  width: 3px; height: 17px;
  border-radius: 2px;
  background: var(--tp-brand);
}
.tp-cert b { color: var(--tp-deep); font-weight: 700; }

/* 教学风格卡：浅橙波纹底，不做虚假播放器 */
.tp-stylecard {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  padding: 34px 30px 30px;
  background: linear-gradient(118deg, #F7DCC9 0%, #FDF1E8 48%, #FFF9F4 100%);
  border: 1px solid #F0DCCC;
}
.tp-stylecard::before {
  content: "";
  position: absolute;
  left: -70px; top: -110px;
  width: 320px; height: 320px;
  border-radius: 46% 54% 60% 40%;
  background: rgba(216, 138, 90, .24);
}
.tp-stylecard::after {
  content: "";
  position: absolute;
  right: -60px; bottom: -140px;
  width: 300px; height: 300px;
  border-radius: 52% 48% 42% 58%;
  background: rgba(192, 83, 30, .13);
}
.tp-stylecard .tp-sc-in { position: relative; z-index: 2; }
.tp-stylecard .tp-sc-kicker { font-size: 11.5px; letter-spacing: .14em; color: var(--tp-deep); font-weight: 700; }
.tp-stylecard h4 { margin: 10px 0 8px; font-size: clamp(24px, 3vw, 34px); font-weight: 700; color: var(--tp-ink); letter-spacing: -.02em; }
.tp-stylecard .tp-sc-sub { font-size: 14px; letter-spacing: .22em; color: #6E625A; margin-bottom: 18px; }
.tp-stylecard .tp-sc-line { font-size: 13px; line-height: 1.85; color: #5A5048; max-width: 620px; }
.tp-stylecard .tp-sc-btn {
  display: inline-flex; align-items: center; justify-content: center;
  margin-top: 18px; padding: 10px 20px; border-radius: 8px;
  background: var(--tp-brand); color: #fff; font-size: 13px; font-weight: 700;
  text-decoration: none; box-sizing: border-box;
}
.tp-stylecard .tp-sc-btn:hover { background: var(--tp-deep); }

/* 段落区块 */
.tp-block { margin-top: 24px; }
.tp-block h4 {
  font-size: 17px; font-weight: 700; color: var(--tp-ink);
  padding-left: 12px; border-left: 3px solid var(--tp-brand); line-height: 1.3;
  margin-bottom: 12px;
}
.tp-block p { font-size: 13.5px; line-height: 1.95; color: #3C4654; }
.tp-block p + p { margin-top: 10px; }
.tp-tags { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 14px; }
.tp-tags span {
  font-size: 12px; color: var(--tp-deep);
  background: var(--tp-soft); border: 1px solid #EED7C8;
  border-radius: 6px; padding: 6px 13px;
}

/* ---------- 5. 老师课程（不显示价格 / 不虚构评分与人数） ---------- */
.tp-clist { display: grid; gap: 14px; }
.tp-course {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 18px;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--tp-line);
  border-radius: 10px;
  transition: box-shadow .2s, border-color .2s;
}
.tp-course:hover { border-color: var(--tp-mid); box-shadow: 0 6px 20px rgba(20, 30, 50, .08); }
.tp-cover { display: block; aspect-ratio: 16/9; align-self: center; border-radius: 7px; overflow: hidden; background: #F4F6F9; }
.tp-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tp-cinfo { min-width: 0; display: flex; flex-direction: column; }
.tp-cinfo h4 { font-size: 15.5px; font-weight: 700; color: var(--tp-ink); line-height: 1.45; }
.tp-cmeta { display: flex; align-items: center; gap: 10px; margin: 7px 0 0; font-size: 12px; color: #7B8595; }
.tp-ctag {
  font-size: 11px; color: var(--tp-deep); font-weight: 700;
  background: var(--tp-soft); border-radius: 4px; padding: 3px 8px;
}
.tp-cmeta b { color: var(--tp-brand); font-size: 14px; }
.tp-cinfo .tp-csub { font-size: 12.5px; color: #5A6472; margin: 8px 0 0; line-height: 1.6; }
.tp-cpoints { list-style: none; padding: 0; margin: 8px 0 0; }
.tp-cpoints li {
  position: relative; padding-left: 13px;
  font-size: 12px; color: #6A7482; line-height: 1.75;
}
.tp-cpoints li::before {
  content: ""; position: absolute; left: 0; top: 9px;
  width: 4px; height: 4px; border-radius: 50%; background: var(--tp-mid);
}
.tp-cfoot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: auto; padding-top: 10px; flex-wrap: wrap;
}
.tp-cfoot span { font-size: 11.5px; color: #98A1AE; }
.tp-cbtn {
  font-size: 12px; font-weight: 700; color: var(--tp-brand);
  border: 1px solid var(--tp-brand); border-radius: 7px;
  padding: 7px 15px; text-decoration: none; box-sizing: border-box;
}
.tp-cbtn:hover { background: var(--tp-brand); color: #fff; }
.tp-cnote { margin: 14px 0 0; font-size: 11.5px; color: #98A1AE; }

/* ---------- 6. 右栏 ---------- */
.tp-side { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; min-width: 0; }
.tp-sidecard {
  background: #fff;
  border: 1px solid var(--tp-line);
  border-radius: 10px;
  padding: 16px 16px 17px;
  min-width: 0;
}
.tp-sidecard h5 {
  font-size: 14px; font-weight: 700; color: var(--tp-ink);
  padding-bottom: 10px; margin-bottom: 12px;
  border-bottom: 1px solid var(--tp-line);
}
.tp-sidecard p { font-size: 12px; color: #6A7482; line-height: 1.8; }
.tp-sidebtn {
  display: block; text-align: center; margin-top: 12px;
  padding: 9px 10px; border-radius: 7px;
  background: var(--tp-brand); color: #fff;
  font-size: 12.5px; font-weight: 700;
  text-decoration: none; box-sizing: border-box;
}
.tp-sidebtn:hover { background: var(--tp-deep); }
.tp-slist { list-style: none; padding: 0; margin: 0; }
.tp-slist li {
  position: relative; padding: 6px 0 6px 14px;
  font-size: 12px; color: #505C6B; line-height: 1.6;
  border-bottom: 1px dashed #EDF0F4;
}
.tp-slist li:last-child { border-bottom: 0; }
.tp-slist li::before {
  content: ""; position: absolute; left: 0; top: 13px;
  width: 5px; height: 5px; border-radius: 50%; background: var(--tp-brand);
}
.tp-stags { display: flex; flex-wrap: wrap; gap: 7px; }
.tp-stags span {
  font-size: 11.5px; color: var(--tp-deep);
  background: var(--tp-soft); border-radius: 5px; padding: 5px 10px;
}
.tp-peers { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; min-width: 0; }
.tp-peer {
  display: flex; align-items: center; gap: 10px;
  border: 0; background: #FAFBFC; border-radius: 8px;
  padding: 8px; width: 100%; text-align: left; cursor: pointer;
  font-family: inherit; min-width: 0; box-sizing: border-box;
}
.tp-peer:hover { background: var(--tp-soft); }
.tp-peer img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; object-position: center top; flex: 0 0 auto; }
.tp-peer-txt { min-width: 0; flex: 1; }
.tp-peer-txt b { display: block; font-size: 12.5px; color: var(--tp-ink); }
.tp-peer-txt span {
  display: block; font-size: 11px; color: #8A94A2; margin-top: 2px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.tp-peer:focus-visible { outline: 2px solid var(--tp-brand); outline-offset: 2px; }

.tp-root .gd-t-note { margin: 18px 0 0; font-size: 11.5px; color: #98A1AE; text-align: right; }

/* ---------- 7. 响应式 ---------- */
@media (max-width: 1000px) {
  .tp-body { grid-template-columns: minmax(0, 1fr) minmax(0, 210px); gap: 16px; }
  .tp-course { grid-template-columns: 170px minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .tp-body { grid-template-columns: minmax(0, 1fr); }
  .tp-side { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .tp-root .gd-t-card { padding: 22px 18px; min-height: 0; }
  .tp-banner { grid-template-columns: 76px minmax(0, 1fr); gap: 16px; }
  .tp-photo { width: 72px; height: 72px; }
  .tp-name { font-size: 21px; }
  .tp-cred li { font-size: 11.5px; }
  .tp-metrics { gap: 12px 20px; margin-top: 16px; }
  .tp-metric { flex-direction: column; gap: 0; }
  .tp-metric b { font-size: 14px; }
  .tp-try { margin-left: 0; width: 100%; text-align: center; }
  .tp-tabs { gap: 24px; }
  .tp-tabs button { font-size: 14.5px; }
  .tp-stylecard { padding: 24px 20px; }
  .tp-stylecard .tp-sc-sub { letter-spacing: .1em; }
  .tp-course { grid-template-columns: 1fr; }
  .tp-cover img { height: 100%; }
  .tp-side { grid-template-columns: 1fr; }
}

/* ---------- 9. 左右通栏首屏（11-16 第五轮：卡片顶到视口边缘，对齐原 Hero 通栏感） ----------
   只作用于 #teacher-profile，不依赖 body 命名空间 class，
   保证 verify_teachers_look 的「移除 class 前后头尾 computed style 一致」仍成立。 */
#teacher-profile.tp-page { padding: 0 0 46px; }
#teacher-profile.tp-page > .wrap { max-width: none; width: 100%; margin: 0; padding: 0; }
#teacher-profile.tp-page .tp-root { margin: 0; }

/* 语义主标题：删除可见标题区后仍保留唯一 H1 供 SEO / 读屏，不占版面 */
.tp-srh1 {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap; border: 0;
}

/* 卡片 100% 宽、无圆角、无阴影：深色通栏直接顶到视口左右边缘 */
#teacher-profile .tp-carousel {
  display: block; position: relative;
  padding: 0; box-sizing: border-box;
}
/* 覆盖 css/teachers.css @media(max-width:900px) 下 .gd-t-grid 的 max-width:540px */
#teacher-profile .tp-stage { display: block; width: 100%; max-width: none; margin: 0; }
#teacher-profile .tp-root .gd-t-card {
  /* 与其它专题页同位置 Hero 对齐：桌面多数页 .hero = 473px（1440/1280 实测）
     加高后内容用 flex 垂直居中，避免顶部堆料、底部空一大块 */
  height: 473px;
  min-height: 473px;
  display: flex; flex-direction: column; justify-content: center;
  padding: 24px 0;          /* 左右留白交给下面的内层容器统一控制 */
  border-radius: 0;
  box-shadow: none;
}
/* ⚠️ 上面的 display:flex 特异性 (1,2,0) 会盖过旧 .is-hidden/.is-side 的 display:none (0,3,0)，
   必须在这里用更高特异性显式恢复，否则 19 张卡全部参与布局、页面高度暴涨 */
#teacher-profile .tp-root .gd-t-card.is-mid,
#teacher-profile .tp-root .gd-t-card.is-on { display: flex; }
#teacher-profile .tp-root .gd-t-card.is-hidden,
#teacher-profile .tp-root .gd-t-card.is-side { display: none; }
/* 老师信息收进与页面主体同宽（1180）且居中的容器：
   左边缘与下方「全部讲师 / 老师介绍」严格对齐，整块信息位于通栏 banner 的中间区域。
   卡片本身左右不再留白，避免 padding 与容器宽度互相挤压。 */
#teacher-profile .tp-banner,
#teacher-profile .tp-metrics {
  width: min(1180px, 100%);
  margin-left: auto; margin-right: auto;
  padding-left: 24px; padding-right: 24px;
  box-sizing: border-box;
}

/* 箭头叠在通栏卡片内的左右边缘（半透明玻璃感），内容用安全内边距避开 */
#teacher-profile .tp-root .gd-t-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 42px; height: 42px;
  left: clamp(20px, 3vw, 48px);
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .42);
  color: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .18);
}
#teacher-profile .tp-root .gd-t-arrow.gd-t-next { left: auto; right: clamp(20px, 3vw, 48px); }
#teacher-profile .tp-root .gd-t-arrow:hover {
  background: var(--tp-brand); border-color: var(--tp-brand); color: #fff;
  transform: translateY(-50%);
}
#teacher-profile .tp-root .gd-t-arrow svg { width: 20px; height: 20px; }

/* 全屏后横幅放大：更饱满的头像、姓名与履历层级 */
#teacher-profile .tp-banner { grid-template-columns: 150px minmax(0, 1fr); gap: 38px; }
#teacher-profile .tp-photo { width: 142px; height: 142px; }
#teacher-profile .tp-name { font-size: 34px; }
#teacher-profile .tp-role { font-size: 13px; }
#teacher-profile .tp-field { font-size: 13.5px; }
#teacher-profile .tp-cred li { font-size: 12.5px; line-height: 1.7; }
#teacher-profile .tp-metrics { margin-top: 26px; padding-top: 18px; gap: 40px; }
#teacher-profile .tp-metric b { font-size: 19px; }
#teacher-profile .tp-try { font-size: 13px; padding: 11px 22px; }

/* 下方联动内容仍按站点阅读宽度居中（不随通栏拉满） */
#teacher-profile .gd-t-dots,
#teacher-profile .tp-tabs,
#teacher-profile .tp-body,
#teacher-profile .gd-t-note {
  max-width: 1180px; margin-left: auto; margin-right: auto;
  padding-left: 24px; padding-right: 24px; box-sizing: border-box;
}
#teacher-profile .tp-body { padding-top: 0; }
#teacher-profile .tp-tabs { padding-top: 0; }

/* 附件原文「学员评价」区块 */
.tp-review {
  margin: 12px 0 0; padding: 14px 18px;
  border-left: 3px solid var(--tp-mid);
  background: #FAFBFD; border-radius: 0 8px 8px 0;
  font-size: 13px; line-height: 1.9; color: #5A6472;
}

/* 中等宽度：左右箭头仍叠在卡片内，给内层容器留出避让宽度（不遮头像） */
@media (max-width: 1300px) {
  #teacher-profile .tp-banner,
  #teacher-profile .tp-metrics { padding-left: 88px; padding-right: 88px; }
}
@media (max-width: 1000px) {
  #teacher-profile .tp-root .gd-t-card { height: auto; padding: 28px 0; min-height: 0; }
  #teacher-profile .tp-banner,
  #teacher-profile .tp-metrics { padding-left: 64px; padding-right: 64px; }
  #teacher-profile .tp-root .gd-t-arrow { width: 34px; height: 34px; left: 16px; }
  #teacher-profile .tp-root .gd-t-arrow.gd-t-next { right: 16px; }
  #teacher-profile .tp-banner { grid-template-columns: 118px minmax(0, 1fr); gap: 24px; }
  #teacher-profile .tp-photo { width: 112px; height: 112px; }
  #teacher-profile .tp-name { font-size: 28px; }
}
@media (max-width: 640px) {
  #teacher-profile.tp-page { padding: 0 0 32px; }
  /* 窄屏与其它专题页同位置 Hero 统一为 598px（about/conditions/subjects 基准）；
     高度富余部分用于放大头像 / 姓名、拉开指标间距，不再挤成一团 */
  #teacher-profile .tp-root .gd-t-card { height: 598px; min-height: 598px; padding: 30px 0; }
  #teacher-profile .tp-banner,
  #teacher-profile .tp-metrics { padding-left: 44px; padding-right: 44px; }
  #teacher-profile .tp-root .gd-t-arrow { width: 26px; height: 26px; left: 8px; }
  #teacher-profile .tp-root .gd-t-arrow.gd-t-next { left: auto; right: 8px; }
  #teacher-profile .tp-banner { grid-template-columns: 92px minmax(0, 1fr); gap: 14px; align-items: start; }
  #teacher-profile .tp-photo { width: 88px; height: 88px; }
  #teacher-profile .tp-name { font-size: 24px; }
  #teacher-profile .tp-cred li { font-size: 12px; line-height: 1.8; }
  #teacher-profile .tp-metrics { gap: 16px 20px; margin-top: 24px; padding-top: 20px; }
  #teacher-profile .tp-metric { flex-direction: column; gap: 0; }
  #teacher-profile .tp-metric b { font-size: 16px; }
  #teacher-profile .tp-try { margin-left: 0; width: 100%; text-align: center; padding: 12px 20px; }
  #teacher-profile .gd-t-dots,
  #teacher-profile .tp-tabs,
  #teacher-profile .tp-body,
  #teacher-profile .gd-t-note { padding-left: 16px; padding-right: 16px; }
}

/* 11-16 需求：轮播圆点视觉隐藏（DOM 19 个 button 保留，供回归脚本 / 无障碍钩子使用） */
#teacher-profile .gd-t-dots { display: none; }

/* ---------- 10. 全部讲师名录（19 位一排横滑 + 两端渐隐 / 剩余计数提示） ---------- */
.tp-roster-wrap {
  max-width: 1180px; margin: 20px auto 0;
  padding: 0 24px; box-sizing: border-box;
}
.tp-roster-head { position: relative; display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.tp-roster-head b { flex: 0 0 auto; font-size: 14px; font-weight: 700; color: var(--tp-ink); }
.tp-roster-head span { font-size: 11.5px; color: #98A1AE; }
/* 剩余计数按钮：贴在老师卡片这一排的最右侧，垂直居中，整块可点击 */
.tp-roster-more {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  /* 高于全站回顶部按钮 .fab 的 z-index:80，否则窄屏胶囊被它盖住点不到 */
  z-index: 100; pointer-events: auto; cursor: pointer; border: 0;
  font-family: inherit; font-style: normal; line-height: 1.2; white-space: nowrap;
  font-size: 10.5px; font-weight: 700; color: #fff;
  padding: 6px 11px; border-radius: 999px;
  background: var(--tp-brand); box-shadow: 0 4px 14px rgba(154, 63, 18, .38);
  transition: opacity .22s ease, background .2s, transform .18s;
}
.tp-roster-more:hover { background: var(--tp-deep); transform: translateY(-50%) scale(1.04); }
.tp-roster-more:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.tp-roster-more.done { background: #8D97A3; box-shadow: none; }
.tp-roster-stage.at-end .tp-roster-more { opacity: 0; pointer-events: none; }
.tp-roster-stage { position: relative; }
/* 两端渐隐：滚到端点时对应侧淡出（沿用站点 .at-start/.at-end 惯例） */
.tp-roster-stage::before, .tp-roster-stage::after {
  content: ""; position: absolute; top: 0; bottom: 0; z-index: 2;
  transition: opacity .22s ease;
}
.tp-roster-stage::before {
  left: 0; width: 46px; pointer-events: none;
  background: linear-gradient(90deg, #F5F5F5 0%, rgba(245,245,245,0) 100%);
}
/* 右侧：加宽渐变 + 阴影，突出「还有 N 位」按钮并拦截底层卡片点击防误触；
   滚到末尾时 opacity/ pointer-events 一起关掉，恢复最后一位老师可点 */
.tp-roster-stage::after {
  right: 0; width: 118px; pointer-events: auto;
  background: linear-gradient(270deg, #F5F5F5 0%, rgba(245,245,245,.97) 30%, rgba(245,245,245,0) 100%);
  box-shadow: -10px 0 18px -12px rgba(28, 38, 56, .30);
}
.tp-roster-stage.at-start::before { opacity: 0; }
.tp-roster-stage.at-end::after { opacity: 0; pointer-events: none; }
.tp-roster {
  display: flex; flex-wrap: nowrap; gap: 9px;
  overflow-x: auto; overflow-y: hidden;
  padding: 2px 0 12px;
  scrollbar-width: none; -ms-overflow-style: none;   /* Firefox / 旧 Edge：隐藏滚动轴 */
  cursor: grab;
  -webkit-overflow-scrolling: touch;
}
.tp-roster.dragging { cursor: grabbing; }
/* 11-16 需求：删除名录下方的滚动轴；拖动 / 触摸 / 滚轮横滑照常可用 */
.tp-roster::-webkit-scrollbar { display: none; }
.tp-roster-item {
  flex: 0 0 84px; min-width: 0;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 8px 4px 9px; border: 1px solid var(--tp-line); border-radius: 10px;
  background: #fff; cursor: pointer; transition: .18s;
}
.tp-roster-item:hover { border-color: #D98A5A; background: #FFF9F5; }
.tp-roster-item.on { border-color: var(--tp-brand); background: #FFF3EA; box-shadow: 0 3px 12px rgba(192, 83, 30, .12); }
.tp-roster-item:focus-visible { outline: 2px solid var(--tp-brand); outline-offset: 2px; }
.tp-roster-item img {
  width: 54px; height: 54px; border-radius: 50%; display: block;
  object-fit: cover; object-position: center top; background: #EEF1F5;
}
.tp-roster-item b {
  display: block; max-width: 78px; overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; font-size: 11.5px; font-weight: 700; color: var(--tp-ink);
}
.tp-roster-item.on b { color: var(--tp-deep); }
.tp-roster-item span {
  display: block; max-width: 78px; overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; font-size: 10px; color: #98A1AE;
}
@media (max-width: 640px) {
  .tp-roster-wrap { padding: 0 16px; }
  /* 窄屏标题与说明各占一行，避免「全部讲师」被 flex 挤成两行 */
  .tp-roster-head { display: block; }
  .tp-roster-head b { display: block; margin-bottom: 3px; }
  .tp-roster-head span { display: block; font-size: 10.5px; }
  .tp-roster-more { right: 2px; padding: 5px 8px; font-size: 10px; }
  .tp-roster-stage::before { width: 30px; }
  .tp-roster-stage::after { width: 78px; }
  .tp-roster-item { flex-basis: 76px; }
  .tp-roster-item img { width: 50px; height: 50px; }
}


/* ---------- 11. 老师区 → 课程板块 窄分隔 / 引导条 ---------- */
.tp-guidebar {
  /* 引导条在 .tp-root 之外，需自行声明品牌变量，否则按钮背景取不到值 */
  --tp-brand: #C0531E;
  --tp-deep: #9A3F12;
  background: linear-gradient(90deg, #F6ECE6 0%, #FCF2EB 55%, #FFF9F5 100%);
  border-top: 1px solid #EBDACF;
  border-bottom: 1px solid #EBDACF;
}
.tp-guidebar > .wrap {
  min-height: 58px;
  display: flex; align-items: center; gap: 14px;
  box-sizing: border-box;
}
.tp-guidebar-mark {
  flex: 0 0 auto; width: 3px; height: 22px;
  border-radius: 2px; background: var(--tp-brand);
}
.tp-guidebar-kicker {
  flex: 0 0 auto; font-size: 10.5px; font-weight: 700;
  letter-spacing: .14em; color: var(--tp-deep);
}
.tp-guidebar-text {
  min-width: 0; font-size: 13px; color: #5A5048;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.tp-guidebar-btn {
  margin-left: auto; flex: 0 0 auto;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: 7px;
  background: var(--tp-brand); color: #fff;
  font-size: 12.5px; font-weight: 700; text-decoration: none;
  box-sizing: border-box;
}
.tp-guidebar-btn:hover { background: var(--tp-deep); }
.tp-guidebar-btn:focus-visible { outline: 2px solid var(--tp-deep); outline-offset: 2px; }
.tp-guidebar-btn svg { width: 14px; height: 14px; }
@media (max-width: 640px) {
  .tp-guidebar > .wrap { min-height: 54px; gap: 9px; }
  .tp-guidebar-kicker { display: none; }
  .tp-guidebar-text { font-size: 11.5px; }
  .tp-guidebar-btn { padding: 7px 10px; font-size: 11.5px; }
}
@media (max-width: 390px) {
  .tp-guidebar-text { display: none; }
  .tp-guidebar-btn { margin-left: 0; }
}

/* ---------- 8. 主体板块色彩收敛到专题站（仅新增覆盖，不改旧文件） ---------- */
body.teachers-profile section.tl-sec .shead .eyebrow { color: var(--brand-deep, #9A3F12); }
body.teachers-profile .tl-certbar {
  background: linear-gradient(90deg, #F6ECE6 0%, #FCF2EB 60%, #FFF9F5 100%);
  color: #7A3A16;
}
body.teachers-profile .tl-certbar::before { background: #C0531E; }
body.teachers-profile .tl-certbar b { color: #9A3F12; }
body.teachers-profile .tl-snum b { color: #C0531E; }
body.teachers-profile .tl-side li::before { background: #C0531E; }
body.teachers-profile .tl-side .tl-sbtn { background: #C0531E; }
body.teachers-profile .tl-side .tl-sbtn:hover { background: #9A3F12; }
body.teachers-profile .tcard .av { background: linear-gradient(140deg, #D98A5A, #9A3F12); }
body.teachers-profile .tcard .role { color: #9A3F12; }
body.teachers-profile section.tl-sec .know .n,
body.teachers-profile section.tl-sec .k-ico,
body.teachers-profile section.tl-sec .k-ico svg,
body.teachers-profile section.tl-sec a.lk,
body.teachers-profile section.tl-sec .fact b,
body.teachers-profile section.tl-sec .qa .pm { color: #9A3F12; }
body.teachers-profile section.tl-sec .fact .bar { background: #C0531E; }
body.teachers-profile section.tl-sec .ctaband { background: linear-gradient(100deg, #9A3F12, #C0531E); }
