/* ============================================================
   Angus Inst. — Teaching 中段交互教室
   范围：仅 Teaching 页顶部 Banner 下方至底部 Banner 上方。
   顶部/底部 Banner 与 Header/Footer 不受影响；晴雨用全站
   data-weather-* 换源机制；面板浅灰 #eff0f0，容器内开合。
   ============================================================ */

.tc-classroom {
  margin: 26px auto 0;
  max-width: 1160px;
}

/* ---------- 舞台：3:2 完整展示，不裁学生与柜体 ---------- */
.tc-stage {
  position: relative;
  aspect-ratio: 3 / 2;
  border-radius: var(--r-lg, 18px);
  overflow: hidden;
  box-shadow: var(--shadow-md, 0 10px 30px rgba(28, 39, 51, .12));
  background: #dfe5ea;
}
.tc-stage .tc-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain; /* 1536×1024 恰为 3:2，等价完整显示 */
  display: block;
}

/* 打开面板时容器内轻微变暗（只暗教室，不动 Header/Banner/Footer） */
.tc-stage .tc-shade {
  position: absolute; inset: 0;
  background: rgba(18, 26, 36, 0);
  transition: background .28s ease;
  pointer-events: none;
}
.tc-stage.tc-open .tc-shade { background: rgba(18, 26, 36, .42); }

/* ---------- 四个入口（小圆点 + 标签） ---------- */
.tc-spot {
  position: absolute;
  left: var(--sx); top: var(--sy);
  transform: translate(-50%, -50%);
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 12px 6px 9px;
  border: 1px solid rgba(255, 255, 255, .75);
  border-radius: 999px;
  background: rgba(255, 255, 255, .92);
  color: var(--blue-ink, #1c2733);
  font: 700 13px/1.2 var(--font-body, sans-serif);
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(28, 39, 51, .22);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  z-index: 3;
}
.tc-spot .tc-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--acc-teaching, #478d87);
  box-shadow: 0 0 0 3px rgba(71, 141, 135, .25);
  flex: none;
}
.tc-spot:hover, .tc-spot:focus-visible {
  transform: translate(-50%, -50%) scale(1.06);
  background: #fff;
  box-shadow: 0 4px 14px rgba(28, 39, 51, .3);
  outline: none;
}
.tc-spot:focus-visible { border-color: var(--acc-teaching, #478d87); }
.tc-spot[aria-expanded="true"] {
  background: var(--acc-teaching, #478d87);
  color: #fff;
  border-color: transparent;
}
.tc-spot[aria-expanded="true"] .tc-dot { background: #fff; box-shadow: none; }

@media (prefers-reduced-motion: reduce) {
  .tc-spot, .tc-shade { transition: none !important; }
}

/* ---------- 内容面板（教室容器内，浅灰 #eff0f0） ---------- */
.tc-panel {
  position: absolute;
  top: 3.5%; bottom: 4.5%; right: 2.2%;
  width: 47%;
  display: flex; flex-direction: column;
  background: #eff0f0;
  border-radius: 14px;
  box-shadow: 0 14px 38px rgba(12, 20, 30, .35);
  z-index: 4;
  overflow: hidden;
}
.tc-stage:not(.tc-open) .tc-panel { display: none; }

.tc-panel-head {
  display: flex; align-items: flex-start; gap: 8px;
  padding: 12px 12px 0 14px;
  border-bottom: 1px solid #dde0e2;
  background: #eff0f0;
  flex: none;
}
.tc-tabs { display: flex; flex-wrap: wrap; gap: 4px; flex: 1; }
.tc-tab {
  border: 0; background: transparent;
  font: 800 13px/1 var(--font-body, sans-serif);
  color: var(--ink-soft, #5d6e7f);
  padding: 9px 11px 11px;
  border-radius: 9px 9px 0 0;
  cursor: pointer;
  border-bottom: 2.5px solid transparent;
}
.tc-tab:hover { color: var(--blue-ink, #1c2733); background: rgba(255,255,255,.7); }
.tc-tab[aria-selected="true"] {
  color: var(--acc-teaching, #478d87);
  border-bottom-color: var(--acc-teaching, #478d87);
  background: #fff;
}
.tc-tab:focus-visible { outline: 2px solid var(--acc-teaching, #478d87); outline-offset: -2px; }

.tc-close {
  flex: none;
  width: 30px; height: 30px;
  border: 0; border-radius: 50%;
  background: rgba(28, 39, 51, .08);
  color: var(--blue-ink, #1c2733);
  font-size: 14px; line-height: 1;
  cursor: pointer;
  transition: background .15s ease;
}
.tc-close:hover, .tc-close:focus-visible { background: rgba(28, 39, 51, .16); outline: none; }

/* ---------- 面板正文（可滚动） ---------- */
.tc-panel-body { flex: 1; overflow-y: auto; padding: 16px 18px 22px; background: #fff; }
.tc-pane[hidden] { display: none; }

.tc-pane-title {
  font-size: 19px; font-weight: 800; color: var(--blue-ink, #1c2733);
  margin: 0 0 12px; display: flex; align-items: baseline; gap: 8px;
}
.tc-pane-title .tc-en {
  font-family: var(--font-hand, cursive);
  font-size: 16px; font-weight: 700; color: var(--acc-teaching, #478d87);
}
.tc-pane .tc-entry { font-size: 13.8px; color: var(--ink, #1c2733); line-height: 1.75; }
.tc-pane .tc-entry > *:first-child { margin-top: 0; }
.tc-pane .tc-entry h1, .tc-pane .tc-entry h2 { font-size: 16px; margin: 14px 0 8px; }
.tc-pane .tc-entry h3 { font-size: 14.5px; margin: 12px 0 6px; }
.tc-pane .tc-entry + .tc-entry { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line, #e6e1d6); }

/* 链接小条 */
.tc-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 4px; }
.tc-chip {
  display: inline-flex; align-items: center;
  padding: 7px 12px;
  background: var(--blue-soft, #e7f0f8);
  color: var(--blue-deep, #245685);
  border-radius: 999px;
  font: 700 12.5px/1.2 var(--font-body, sans-serif);
  text-decoration: none;
  transition: background .15s ease, transform .15s ease;
}
.tc-chip:hover, .tc-chip:focus-visible { background: var(--blue-chip, #d9e8f4); transform: translateY(-1px); outline: none; }
.tc-chip-solid { background: var(--acc-teaching, #478d87); color: #fff; }
.tc-chip-solid:hover, .tc-chip-solid:focus-visible { background: #3b7a74; }
.tc-more { margin: 14px 0 0; }

/* 教学理念（原四卡内容） */
.tc-ideas { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 0 14px; }
.tc-idea {
  background: #fff; border: 1px solid var(--line, #e6e1d6);
  border-radius: 10px; padding: 10px 12px;
  display: flex; flex-direction: column; gap: 3px;
}
.tc-idea-en { font-family: var(--font-hand, cursive); font-size: 15px; font-weight: 700; color: var(--acc-teaching, #478d87); }
.tc-idea-cn { font-size: 12px; color: var(--ink-soft, #5d6e7f); line-height: 1.5; }

/* 案例列表 */
.tc-cases { display: flex; flex-direction: column; gap: 10px; margin-bottom: 6px; }
.tc-case {
  background: #fff; border: 1px solid var(--line, #e6e1d6);
  border-radius: 10px; padding: 11px 13px;
}
.tc-case h4 { margin: 0 0 3px; font-size: 14px; line-height: 1.5; }
.tc-case h4 a { color: var(--blue-ink, #1c2733); text-decoration: none; }
.tc-case h4 a:hover { color: var(--acc-teaching, #478d87); }
.tc-case-meta { font-size: 11.5px; color: var(--ink-faint, #8b9aab); }
.tc-case-desc { margin: 5px 0 0; font-size: 12.5px; color: var(--ink-soft, #5d6e7f); line-height: 1.6; }
.tc-empty { color: var(--ink-faint, #8b9aab); font-size: 13px; }

/* ---------- 移动端：视窗对话框，关闭回到原滚动位置 ---------- */
@media (max-width: 900px) {
  .tc-spot { padding: 5px 9px 5px 7px; font-size: 11px; gap: 5px; }
  .tc-spot .tc-dot { width: 7px; height: 7px; box-shadow: 0 0 0 2px rgba(71, 141, 135, .25); }

  .tc-panel {
    position: fixed;
    inset: 3.5vh 3.5vw;
    width: auto;
    z-index: 999;
    box-shadow: 0 18px 50px rgba(12, 20, 30, .45);
  }
  body.tc-no-scroll { overflow: hidden; }
  .tc-panel-body { padding: 14px 14px 20px; }
  .tc-ideas { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .tc-spot { padding: 4px 7px 4px 6px; font-size: 10px; gap: 4px; }
  .tc-spot .tc-label { white-space: nowrap; }
}
