/* ============================================================
   苏E好学 - 16:9 课程介绍展示页样式
   品牌色：蓝 #4D6DB3 / 金 #ECC83F
   ============================================================ */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --blue: #4D6DB3;
  --blue-dark: #3B5A96;
  --gold: #ECC83F;
  --gold-dark: #D4B235;
  --bg: #F8FAFC;
  --card: #FFFFFF;
  --text: #1A202C;
  --text-secondary: #4A5568;
  --border: #E2E8F0;
}

body {
  font-family: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: var(--bg);
  min-height: 100vh;
}

#canvas-wrap {
  width: 100%;
  background: var(--bg);
  min-height: 100vh;
  position: relative;
}

#canvas {
  background: var(--bg);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ===== Header ===== */
header {
  height: 90px;
  background: var(--blue);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 60px;
  flex-shrink: 0;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header-logo img {
  height: 56px;
  width: auto;
}

.header-title {
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 2px;
}

.header-sub {
  font-size: 20px;
  color: rgba(255,255,255,0.85);
  font-weight: 500;
}

/* ===== Tab Nav ===== */
.tab-nav {
  height: 70px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 0 60px;
  border-bottom: 2px solid var(--border);
  flex-shrink: 0;
}

.tab-btn {
  height: 50px;
  padding: 0 40px;
  border: none;
  border-radius: 12px;
  font-size: 22px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.25s ease;
  background: var(--border);
  color: var(--text-secondary);
}

.tab-btn:hover {
  background: #CBD5E1;
  color: var(--text);
}

.tab-btn.active {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 4px 16px rgba(77,109,179,0.35);
}

/* ===== Content Area ===== */
.tab-content {
  display: none;
  flex: 1;
  overflow-y: auto;
  padding: 36px 60px 48px;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.35s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== Cards ===== */
.card {
  background: var(--card);
  border-radius: 16px;
  padding: 32px 40px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  margin-bottom: 24px;
}

.card-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 3px solid var(--gold);
  display: inline-block;
}

.card-subtitle {
  font-size: 26px;
  font-weight: 700;
  color: var(--text);
  margin: 24px 0 14px;
}

.card-text {
  font-size: 22px;
  color: var(--text-secondary);
  line-height: 1.75;
}

.card-text strong {
  color: var(--text);
  font-weight: 600;
}

/* ===== Hero Banner (inside tab) ===== */
.hero-banner {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  color: #fff;
  border-radius: 16px;
  padding: 36px 48px;
  margin-bottom: 24px;
  text-align: center;
}

.hero-banner .hero-title {
  font-size: 40px;
  font-weight: 900;
  margin-bottom: 10px;
}

.hero-banner .hero-sub {
  font-size: 24px;
  opacity: 0.9;
  margin-bottom: 16px;
}

.hero-banner .hero-desc {
  font-size: 20px;
  opacity: 0.85;
  line-height: 1.8;
  max-width: 1400px;
  margin: 0 auto;
}

/* ===== Lists ===== */
.info-list {
  list-style: none;
  padding: 0;
}

.info-list li {
  font-size: 21px;
  color: var(--text-secondary);
  line-height: 1.8;
  padding-left: 28px;
  position: relative;
  margin-bottom: 8px;
}

.info-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 11px;
  width: 10px;
  height: 10px;
  background: var(--gold);
  border-radius: 50%;
}

/* ===== Stats ===== */
.stats-row {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.stat-box {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  color: #fff;
  border-radius: 14px;
  padding: 24px 32px;
  min-width: 200px;
  text-align: center;
  flex: 1;
}

.stat-number {
  font-size: 44px;
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
}

.stat-label {
  font-size: 18px;
  color: rgba(255,255,255,0.9);
  margin-top: 8px;
}

/* ===== Tables ===== */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
  font-size: 20px;
}

.data-table th,
.data-table td {
  border: 1px solid var(--border);
  padding: 12px 16px;
  text-align: left;
}

.data-table td {
  color: var(--text-secondary);
}

.data-table th {
  background: var(--blue);
  color: #fff;
  font-weight: 600;
  font-size: 20px;
}

.data-table tr:nth-child(even) {
  background: #F1F5F9;
}

.data-table tr:hover {
  background: #E0E7FF;
}

/* ===== Teacher Cards ===== */
.teacher-grid {
  display: flex;
  gap: 32px;
  margin-top: 20px;
}

.teacher-card {
  flex: 1;
  background: var(--card);
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  text-align: center;
  border-top: 4px solid var(--gold);
}

.teacher-photo {
  width: 160px;
  height: 200px;
  border-radius: 50% / 45%;
  margin: 0 auto 16px;
  background-size: 2400px auto;
  background-repeat: no-repeat;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  border: 3px solid var(--gold);
}

.teacher-name {
  font-size: 26px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.teacher-title {
  font-size: 18px;
  color: var(--blue);
  font-weight: 600;
  margin-bottom: 14px;
}

.teacher-desc {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.7;
  text-align: left;
}

.teacher-desc li {
  margin-bottom: 6px;
  list-style: none;
  padding-left: 18px;
  position: relative;
}

.teacher-desc li::before {
  content: '\2022';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 700;
}

/* ===== Layout Grid ===== */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.three-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.four-col {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* ===== Tags ===== */
.tag {
  display: inline-block;
  background: var(--gold);
  color: var(--text);
  font-size: 16px;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 8px;
  margin-right: 8px;
  margin-bottom: 8px;
}

.tag-blue {
  background: var(--blue);
  color: #fff;
}

/* ===== QR Codes ===== */
.qr-grid {
  display: flex;
  gap: 40px;
  justify-content: center;
  margin-top: 20px;
}

.qr-item {
  text-align: center;
}

.qr-item img {
  width: 140px;
  height: 140px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.qr-label {
  font-size: 18px;
  color: var(--text-secondary);
  margin-top: 10px;
  font-weight: 500;
}


/* ===== Book Covers ===== */
.book-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-top: 16px;
}

.book-cover {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  transition: transform 0.25s ease;
}

.book-cover:hover {
  transform: scale(1.04);
}
/* ===== Scrollbar ===== */
.tab-content::-webkit-scrollbar {
  width: 8px;
}
.tab-content::-webkit-scrollbar-track {
  background: transparent;
}
.tab-content::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 4px;
}
.tab-content::-webkit-scrollbar-thumb:hover {
  background: #94A3B8;
}

/* ===== Text Utilities ===== */
.highlight {
  color: var(--gold);
  font-weight: 700;
}

.highlight-blue {
  color: var(--blue);
  font-weight: 700;
}
/* ===== Honors Table ===== */
.honors-table td {
  color: var(--text-secondary);
}

/* ===== Sub-tab buttons (inside Tab 4) ===== */
.sub-tab-btn {
  height: 42px;
  padding: 0 28px;
  border: none;
  border-radius: 10px;
  font-size: 18px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.25s ease;
  background: var(--border);
  color: var(--text-secondary);
}

.sub-tab-btn:hover {
  background: #CBD5E1;
  color: var(--text);
}

.sub-tab-btn.active {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 3px 12px rgba(77,109,179,0.3);
}

/* ===== Chart Grid ===== */
.chart-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 16px;
}

.chart-item img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

/* Sub-content toggle */
#tab4-sub-container .sub-content {
  display: none;
}

#tab4-sub-container .sub-content.active {
  display: block;
  animation: fadeIn 0.35s ease;
}


/* ===== Floating Contact Sidebar (Collapsible) ===== */
.contact-float {
  position: fixed;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
  display: flex;
  flex-direction: row;
  align-items: center;
}

.contact-label {
  writing-mode: vertical-lr;
  text-orientation: mixed;
  background: var(--blue);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 4px;
  padding: 24px 10px;
  border-radius: 0 10px 10px 0;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 2px 0 12px rgba(0,0,0,0.15);
  transition: background 0.25s ease;
  user-select: none;
}

.contact-label:hover {
  background: var(--blue-dark);
}

.contact-content {
  background: var(--card);
  border-radius: 0 12px 12px 0;
  box-shadow: 2px 4px 20px rgba(0,0,0,0.12);
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-left: 4px;
  width: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.35s ease;
}

.contact-content.open {
  width: 152px;
  padding: 16px;
  opacity: 1;
}

.qr-wrap {
  text-align: center;
  min-width: 120px;
}

.qr-wrap img {
  width: 120px;
  height: 120px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  display: block;
  margin: 0 auto;
}

.qr-name {
  display: block;
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 8px;
  font-weight: 500;
  white-space: nowrap;
}

/* ===== Sub-tab buttons (inside Tab 4) ===== */
.sub-tab-btn {
  height: 42px;
  padding: 0 28px;
  border: none;
  border-radius: 10px;
  font-size: 18px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.25s ease;
  background: var(--border);
  color: var(--text-secondary);
}

.sub-tab-btn:hover {
  background: #CBD5E1;
  color: var(--text);
}

.sub-tab-btn.active {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 3px 12px rgba(77,109,179,0.3);
}

/* ===== Chart Block ===== */
.chart-block {
  margin-bottom: 32px;
}

.chart-block:last-child {
  margin-bottom: 0;
}

.chart-title {
  font-size: 22px;
  font-weight: 600;
  color: var(--blue);
  margin-bottom: 12px;
  padding-left: 8px;
  border-left: 4px solid var(--gold);
}

/* Sub-content toggle */
#tab4-sub-container .sub-content {
  display: none;
}

#tab4-sub-container .sub-content.active {
  display: block;
  animation: fadeIn 0.35s ease;
}


/* ===== Teacher Image Grid ===== */
.teacher-img-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 16px;
}

.teacher-img-grid img {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  display: block;
  transition: transform 0.25s ease;
}

.teacher-img-grid img:hover {
  transform: scale(1.02);
}

/* ===== Campus Cards ===== */
.campus-grid {
  gap: 24px;
}

.campus-card {
  background: #fff;
  border-radius: 14px;
  padding: 28px 20px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  border-top: 4px solid var(--gold);
}

.campus-row {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.campus-name {
  font-size: 26px;
  font-weight: 700;
  color: var(--blue);
  margin: 10px 0;
  line-height: 1.4;
}

/* Sub-content toggle for Tab 2 */
#tab2-sub-container .sub-content {
  display: none;
}

#tab2-sub-container .sub-content.active {
  display: block;
  animation: fadeIn 0.35s ease;
}
/* ===== Interactive Calendars ===== */
.calendar-trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 8px;
}

.calendar-box {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  border: 1px solid var(--border);
  container-type: inline-size;
}

.cal-header {
  text-align: center;
  padding: 14px;
  font-size: clamp(14px, 6.5cqw, 24px);
  font-weight: 700;
  letter-spacing: 2px;
}

.cal-header-sub {
  font-size: clamp(9px, 3cqw, 13px);
  font-weight: 500;
  letter-spacing: 1px;
  margin-top: 3px;
}

.cal-sub {
  text-align: center;
  font-size: clamp(10px, 3.5cqw, 15px);
  color: var(--text-secondary);
  padding-bottom: 10px;
  margin-top: -6px;
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
  padding: 0 10px 10px;
}

.cal-th {
  text-align: center;
  padding: 8px 0;
  font-size: clamp(10px, 3.8cqw, 15px);
  font-weight: 600;
  color: var(--text-secondary);
  background: #F8FAFC;
  border-radius: 6px;
}

.cal-cell {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3px;
  font-size: clamp(8px, 3cqw, 13px);
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: 8px;
  position: relative;
}

.cal-cell:hover {
  transform: scale(1.12);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: 2;
}

.cal-cell .cal-day-num {
  font-size: clamp(10px, 4.3cqw, 18px);
  font-weight: 700;
  line-height: 1;
}

.cal-cell .cal-day-text {
  font-size: clamp(6px, 2.8cqw, 12px);
  margin-top: 2px;
  font-weight: 500;
  line-height: 1;
}

.cal-cell.has-class {
  font-weight: 600;
}

.cal-cell.rest-day {
  background: #F3F4F6 !important;
  color: #9CA3AF !important;
}

.cal-cell.empty,
.cal-cell.other-month {
  color: #CBD5E1;
  pointer-events: none;
}

.cal-cell.selected {
  outline: 2px solid var(--blue);
  outline-offset: -2px;
}

/* Tooltip */
.cal-cell[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 110%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--text);
  color: #fff;
  font-size: clamp(9px, 3cqw, 13px);
  padding: 5px 10px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 10;
}

.cal-cell[data-tooltip]:hover::after {
  opacity: 1;
}

@media (max-width: 1100px) {
  .calendar-trio {
    grid-template-columns: 1fr;
  }
}

/* ===== Mobile Adaptation (iPhone 15 Pro ~393px) ===== */
@media (max-width: 480px) {
  html, body {
    overflow-x: auto;
  }

  /* Fixed-width layout: keep desktop size, allow horizontal scroll */
  #canvas-wrap {
    min-width: 1080px;
    width: 1080px;
    overflow-x: auto;
  }
  #canvas {
    min-width: 1080px;
  }

  /* Contact sidebar stays at bottom-right for easy tap */
  .contact-float {
    left: auto;
    right: 12px;
    top: auto;
    bottom: 12px;
    transform: none;
    flex-direction: column-reverse;
  }
  .contact-label {
    writing-mode: horizontal-tb;
    text-orientation: mixed;
    padding: 10px 16px;
    border-radius: 24px;
    font-size: 14px;
    letter-spacing: 1px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  }
  .contact-content {
    border-radius: 12px;
    margin-left: 0;
    margin-bottom: 8px;
    flex-direction: row;
    width: 0;
  }
  .contact-content.open {
    width: auto;
    padding: 12px;
    opacity: 1;
  }
  .qr-wrap { min-width: 100px; }
  .qr-wrap img { width: 100px; height: 100px; }
  .qr-name { font-size: 12px; }
}
/* ============================================================
   多页升级新增样式（顶部导航 / 课程选择器 / 跳转 / 占位）
   ============================================================ */

/* 顶部导航：<a> 复用 .tab-btn，仅调整间距以容纳 5 项 */
.tab-nav { gap: 12px; }
.tab-btn { text-decoration: none; display: inline-flex; align-items: center; padding: 0 30px; }
.page-content { flex: 1; overflow-y: auto; padding: 36px 60px 64px; }
.page-content::-webkit-scrollbar { width: 8px; }
.page-content::-webkit-scrollbar-thumb { background: #CBD5E1; border-radius: 4px; }

/* 课程页：学科 / 年级 / 学期 选择器 */
.subject-bar { display: flex; gap: 16px; justify-content: center; margin-bottom: 24px; flex-wrap: wrap; }
.subject-btn { height: 52px; padding: 0 44px; border: none; border-radius: 14px; font-size: 22px; font-weight: 700; font-family: inherit; cursor: pointer; background: #fff; color: var(--text-secondary); box-shadow: 0 2px 10px rgba(0,0,0,.06); transition: all .25s ease; }
.subject-btn:hover:not(:disabled) { color: var(--blue); }
.subject-btn.active { background: var(--blue); color: #fff; box-shadow: 0 4px 16px rgba(77,109,179,.35); }
.subject-btn:disabled { opacity: .5; cursor: not-allowed; font-size: 18px; }

.subject-panel { display: none; }
.subject-panel.active { display: block; animation: fadeIn .35s ease; }

.grade-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; background: #fff; border-radius: 14px; padding: 18px 22px; box-shadow: 0 2px 12px rgba(0,0,0,.06); margin-bottom: 20px; }
.grade-group { font-size: 16px; font-weight: 700; color: var(--blue); background: #EFF6FF; padding: 4px 14px; border-radius: 8px; }
.grade-group:not(:first-child) { margin-left: 14px; }
.grade-btn { height: 40px; padding: 0 22px; border: 2px solid var(--border); border-radius: 10px; background: #fff; color: var(--text-secondary); font-size: 18px; font-weight: 600; font-family: inherit; cursor: pointer; transition: all .2s ease; }
.grade-btn:hover { border-color: var(--blue); color: var(--blue); }
.grade-btn.active { background: var(--gold); border-color: var(--gold); color: var(--text); }

.grade-panel { display: none; }
.grade-panel.active { display: block; animation: fadeIn .3s ease; }
.term-bar { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.term-content { display: none; }
.term-content.active { display: block; animation: fadeIn .3s ease; }

/* 通用 sub-content（真题页 原题/题型/覆盖度） */
.sub-content { display: none; }
.sub-content.active { display: block; animation: fadeIn .35s ease; }

/* 模块间跳转 */
.cross-links { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.cross-link { display: inline-block; background: var(--blue); color: #fff; text-decoration: none; font-size: 16px; font-weight: 600; padding: 8px 18px; border-radius: 10px; transition: background .2s; }
.cross-link:hover { background: var(--blue-dark); }

/* 师资页：按年级跳转 */
.jump-row { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 14px; flex-wrap: wrap; }
.jump-label { min-width: 56px; font-size: 18px; font-weight: 700; color: var(--blue); padding-top: 6px; }
.jump-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.jump-btn { display: inline-block; text-decoration: none; background: #EFF6FF; color: var(--blue); border: 1px solid #C7D6F0; font-size: 16px; font-weight: 600; padding: 7px 16px; border-radius: 9px; transition: all .2s; }
.jump-btn:hover { background: var(--blue); color: #fff; }

/* 占位 / 待补 */
.todo-note { font-size: 17px; color: var(--text-secondary); background: #FFFBEB; border-left: 4px solid var(--gold); padding: 12px 16px; border-radius: 0 8px 8px 0; line-height: 1.7; }
.todo-note strong { color: var(--text); }
.todo-card { border: 2px dashed var(--border); box-shadow: none; }

/* ===== 课程页：全程总览 / 分季度详情 切换 ===== */
.course-mode-bar { display: flex; gap: 14px; justify-content: center; margin-bottom: 24px; flex-wrap: wrap; }
.mode-btn { height: 48px; padding: 0 34px; border: 2px solid var(--blue); border-radius: 26px; background: #fff; color: var(--blue); font-size: 19px; font-weight: 700; font-family: inherit; cursor: pointer; transition: all .2s ease; }
.mode-btn:hover { background: #EFF6FF; }
.mode-btn.active { background: var(--blue); color: #fff; box-shadow: 0 4px 16px rgba(77,109,179,.3); }
.course-mode { display: none; }
.course-mode.active { display: block; animation: fadeIn .35s ease; }

.ov-bar { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-bottom: 20px; }
.ov-card { display: none; }
.ov-card.active { display: block; animation: fadeIn .3s ease; }

/* 全程总览表：列多，紧凑 + 横向滚动 */
.overview-table { font-size: 14px; margin-top: 0; }
.overview-table th { font-size: 14px; padding: 8px 10px; white-space: nowrap; position: sticky; top: 0; }
.overview-table td { padding: 7px 10px; min-width: 96px; line-height: 1.4; }
.overview-table th:first-child, .overview-table td:first-child { position: sticky; left: 0; background: var(--blue); color: #fff; z-index: 1; min-width: 48px; text-align: center; }
.overview-table tr:nth-child(even) td:first-child { background: var(--blue-dark); }

/* ===== 师资：小图网格 + 点击弹层 ===== */
.teacher-grid-sm { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px; margin-top: 16px; }
.teacher-grid-sm img { width: 100%; border-radius: 14px; box-shadow: 0 3px 14px rgba(0,0,0,.1); cursor: pointer; transition: transform .2s ease, box-shadow .2s ease; display: block; }
.teacher-grid-sm img:hover { transform: translateY(-4px) scale(1.02); box-shadow: 0 8px 22px rgba(0,0,0,.18); }

.t-modal { position: fixed; inset: 0; background: rgba(0,0,0,.62); display: none; align-items: center; justify-content: center; z-index: 200; padding: 24px; }
.t-modal.open { display: flex; animation: fadeIn .2s ease; }
.t-modal-box { background: #fff; border-radius: 18px; max-width: 740px; width: 100%; max-height: 88vh; overflow: auto; display: flex; position: relative; }
.t-modal-img { width: 44%; object-fit: cover; border-radius: 18px 0 0 18px; flex-shrink: 0; }
.t-modal-info { padding: 30px 28px; flex: 1; }
.t-modal-name { font-size: 28px; font-weight: 700; color: var(--blue); margin-bottom: 18px; }
.t-modal-label { font-size: 16px; color: var(--text-secondary); margin-bottom: 14px; }
.t-modal-classes { display: flex; flex-wrap: wrap; gap: 10px; }
.tm-class { display: inline-block; text-decoration: none; background: #EFF6FF; color: var(--blue); border: 1px solid #C7D6F0; font-size: 16px; font-weight: 600; padding: 8px 16px; border-radius: 10px; transition: all .2s; }
.tm-class:hover { background: var(--blue); color: #fff; }
.tm-none { color: var(--text-secondary); font-size: 16px; }
.t-modal-x { position: absolute; top: 10px; right: 16px; font-size: 30px; line-height: 1; color: var(--text-secondary); cursor: pointer; z-index: 1; }
.t-modal-x:hover { color: var(--blue); }
@media (max-width: 640px) { .t-modal-box { flex-direction: column; } .t-modal-img { width: 100%; border-radius: 18px 18px 0 0; max-height: 50vh; } }

/* ===== 自研教辅：分类 ===== */
.material-cats { display: flex; flex-direction: column; gap: 24px; }
.mat-cat-title { font-size: 22px; font-weight: 700; color: var(--text); margin-bottom: 12px; padding-left: 12px; border-left: 5px solid var(--gold); }
.book-grid-sm { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; }
.book-grid-sm .book-cover { width: 150px; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 10px; box-shadow: 0 4px 14px rgba(0,0,0,.12); }

/* ===== 排课表 ===== */
.sched-table { font-size: 13px; margin-top: 0; }
.sched-table th, .sched-table td { padding: 6px 8px; text-align: center; vertical-align: middle; min-width: 88px; }
.sched-table th { white-space: nowrap; }
.sched-table .sch-kd { font-weight: 700; color: var(--blue); }
.sched-table .sch-cls { font-weight: 700; color: var(--text); }
.sched-table .sch-tea { color: var(--blue); font-size: 12px; }
.sched-table .sch-t { color: var(--text-secondary); font-size: 11px; }
.sched-table th:first-child, .sched-table td:first-child { position: sticky; left: 0; background: var(--blue); color: #fff; z-index: 1; }
.sched-table tr:nth-child(even) td:first-child { background: var(--blue-dark); }

/* 师资图：一行最多5张，窄屏递减 */
.teacher-grid-sm { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 1100px) { .teacher-grid-sm { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 760px)  { .teacher-grid-sm { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 500px)  { .teacher-grid-sm { grid-template-columns: repeat(2, 1fr); } }

/* ===== 右侧竖排导览小目录 ===== */
.toc-nav { position: fixed; right: 0; top: 50%; transform: translateY(-50%); z-index: 90; display: flex; flex-direction: column; gap: 14px; padding: 16px 12px; }
.toc-dot { display: flex; align-items: center; justify-content: flex-end; gap: 9px; text-decoration: none; cursor: pointer; }
.toc-dot::after { content: ''; width: 11px; height: 11px; border-radius: 50%; background: #CBD5E1; border: 2px solid #fff; box-shadow: 0 1px 5px rgba(0,0,0,.18); transition: all .2s ease; flex-shrink: 0; }
.toc-dot:hover::after, .toc-dot.active::after { background: var(--blue); transform: scale(1.3); }
.toc-label { font-size: 13px; font-weight: 600; color: var(--blue); background: #fff; padding: 5px 11px; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,.14); white-space: nowrap; opacity: 0; transform: translateX(10px); pointer-events: none; transition: all .2s ease; }
.toc-dot:hover .toc-label, .toc-dot.active .toc-label { opacity: 1; transform: translateX(0); }
@media (max-width: 480px) { .toc-nav { display: none; } }

/* 师资：教学服务部不可点 */
.teacher-grid-sm.no-click img { cursor: default; }
.teacher-grid-sm.no-click img:hover { transform: none; box-shadow: 0 3px 14px rgba(0,0,0,.1); }

/* 课程：开课信息卡 */
.info-card { border-left: 5px solid var(--blue); }
.info-table { font-size: 16px; margin-top: 8px; }
.info-table th { font-size: 16px; background: var(--blue-dark); }
.info-table td { padding: 9px 14px; }

/* ============================================================
   本轮：字体统一 + 表格等距（放最后，覆盖前面）
   ============================================================ */
/* 普通数据表统一 17px；宽表(全程总览/排课表)统一 14px */
.data-table th, .data-table td { font-size: 17px; }
.overview-table th, .overview-table td { font-size: 14px; }
.sched-table th, .sched-table td { font-size: 14px; }
.info-table th, .info-table td { font-size: 17px; }

/* 开课信息表：四列等距，老师列不折，校区·教室收窄 */
.info-table { width: 100%; table-layout: fixed; }
.info-table th, .info-table td { width: 25%; padding: 9px 12px; word-break: break-word; }
.info-table th:nth-child(2), .info-table td:nth-child(2),
.info-table th:nth-child(4), .info-table td:nth-child(4) { white-space: nowrap; }

/* 排课表：课档/时间窄，教室列等距，班级/老师不折 */
.sched-table { width: 100%; table-layout: fixed; }
.sched-table th, .sched-table td { padding: 6px 6px; word-break: break-word; }
.sched-table th:first-child { width: 46px; }
.sched-table th:nth-child(2) { width: 80px; }
.sched-table .sch-cls, .sched-table .sch-tea { white-space: nowrap; }
.sched-table .sch-tea { font-size: 13px; }
.sched-table .sch-t { font-size: 12px; }

/* ============================================================
   本轮：正文字号真正统一 18px（标题/Hero/数字保持层级）
   ============================================================ */
.data-table th, .data-table td { font-size: 18px; }
.info-table th, .info-table td { font-size: 18px; }
.info-list li { font-size: 18px; }
.card-text { font-size: 18px; }
.tm-class { font-size: 18px; }
/* 宽表(列多)保持 14px */
.overview-table th, .overview-table td { font-size: 14px; }
.sched-table th, .sched-table td { font-size: 14px; }

/* 顶栏横版 logo */
.header-logo-h { height: 60px; width: auto; display: block; }
