/* ==========================================================================
   教师发展页面 (Teacher Development) 专属样式
   ========================================================================== */

/* 让点击跳转变平滑 */
html {
  scroll-behavior: smooth;
}

/* 强行规范内容容器 */
.teacher-main-container {
  display: block !important;
  position: relative !important;
  width: 100%;
}

/* ── 右侧固定悬浮目录 ── */
.side-toc-right {
  position: fixed;
  top: 100px;
  right: 20px;
  z-index: 999;
  width: 180px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.toc-title {
  font-size: 12px;
  font-weight: 700;
  color: #888;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  padding-bottom: 6px;
}

.toc-item {
  font-size: 14px;
  color: #444;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.25s ease;
  line-height: 1.4;
}

.toc-item:hover {
  color: #1a56db;
  font-weight: 600;
  transform: translateX(4px);
}

/* ── 交错大型图文区块 (强拉上下距离) ── */
.teacher-program-section {
  margin-bottom: 160px !important;
  position: relative;
  display: block;
  width: 100%;
  clear: both;
}

/* 双列网格骨架 */
.program-grid {
  display: grid !important;
  grid-template-columns: 1.15fr 0.85fr !important;
  gap: 100px !important;
  align-items: center;
  max-width: 1000px !important;
  margin: 0 auto !important;
  position: relative;
}

.program-grid.reverse {
  grid-template-columns: 0.85fr 1.15fr !important;
}
.program-grid.reverse .program-text {
  grid-column: 2 !important;
}
.program-grid.reverse .program-image-slot {
  grid-column: 1 !important;
  grid-row: 1 !important;
}

/* 文字部分 */
.program-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  z-index: 2;
}

.program-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.program-title {
  font-size: 26px;
  font-weight: 700;
  color: #111;
  margin-bottom: 18px;
  line-height: 1.3;
}

.program-desc {
  font-size: 15px;
  color: #555;
  line-height: 1.75;
  margin-bottom: 24px;
  text-align: justify;
}

/* 关键字群 */
.program-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.program-keywords span {
  font-size: 13px;
  padding: 5px 14px;
  border-radius: 999px;
  font-weight: 500;
  transition: all 0.2s ease;
}

/* ── 🎨 教师页面专属知性色彩配方 ── */

/* 🟢 知性青 (用于专业培训) */
.program-keywords span.kw-teal {
  background: #f0fdf4;
  color: #059669;
  border: 1px solid rgba(5, 150, 105, 0.15);
}
.program-keywords span.kw-teal:hover {
  background: #059669;
  color: #fff;
}

/* 🔵 学术靛蓝 (用于大会) */
.program-keywords span.kw-indigo {
  background: #eff6ff;
  color: #2563eb;
  border: 1px solid rgba(37, 99, 235, 0.15);
}
.program-keywords span.kw-indigo:hover {
  background: #2563eb;
  color: #fff;
}

/* 🔴 国际玫瑰红 (用于海外考察) */
.program-keywords span.kw-rose {
  background: #fff1f2;
  color: #e11d48;
  border: 1px solid rgba(225, 29, 72, 0.15);
}
.program-keywords span.kw-rose:hover {
  background: #e11d48;
  color: #fff;
}

/* ── 专属精美按钮样式 ── */
.teacher-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #111;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(17, 17, 17, 0.1);
  transition: transform 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
}

.teacher-btn i {
  font-size: 12px;
  transition: transform 0.25s ease;
}

.teacher-btn:hover {
  background: #1a56db; 
  color: #fff;
  box-shadow: 0 10px 25px rgba(26, 86, 219, 0.25);
  transform: translateY(-2px);
}

.teacher-btn:hover i {
  transform: translate(2px, -2px); 
}

/* 📸 锁定图片卡片槽 */
.program-image-slot {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  transform: none !important;
  width: 100% !important;
  height: 300px !important;
  border-radius: 20px;
  overflow: hidden !important; 
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.06);
  z-index: 1;
}

.image-placeholder, 
.program-image-slot img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  background: #fcfcfd;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-size: 15px;
  font-weight: 500;
}
.image-placeholder i {
  font-size: 28px;
  opacity: 0.6;
}

/* ── 手机与平板端响应式 ── */
@media (max-width: 850px) {
  .program-grid, .program-grid.reverse {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
    max-width: 100% !important;
  }
  .program-grid.reverse .program-text,
  .program-grid.reverse .program-image-slot {
    grid-column: unset !important;
    grid-row: unset !important;
  }
  .program-image-slot {
    height: 240px !important;
  }
  .side-toc-right {
    display: none !important;
  }
  .teacher-program-section {
    margin-bottom: 80px !important;
  }
}