/* ─────────────────────────────────────────────
   EAI-COURSE · 现场展示区 + 全站交互
   沿用 styles.css 的「工业极简」令牌：
   纸面 --paper / 墨 --ink / 橙 --accent / 等宽 --mono
   规则：1px 硬边、直角、无阴影、无毛玻璃。
   ───────────────────────────────────────────── */

/* ══════════ 通用：滚动入场 ══════════ */
/* 只有 JS 就绪时才隐藏，脚本失效也不会白屏 */
.sc-js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity .55s cubic-bezier(.22, 1, .36, 1) var(--d, 0ms),
    transform .55s cubic-bezier(.22, 1, .36, 1) var(--d, 0ms);
}
.sc-js .reveal.is-in { opacity: 1; transform: none; }

/* ══════════ 顶栏：阅读进度 + 当前章节 ══════════ */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--accent);
  z-index: 60;
  pointer-events: none;
}
.topbar-nav a.is-current {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* ══════════ 实验室 logo ══════════ */
.topbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.brand-mark {
  width: 22px;
  height: 22px;
  display: block;
  flex: 0 0 auto;
}
.footer-lab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.footer-lab img { width: 26px; height: 26px; display: block; }

/* ══════════ 现场展示区 ══════════ */
.sc-lead {
  max-width: 62em;
  margin-bottom: 28px;
}

/* ── 授课教师：履历展开 + 研究方向 ── */
.bio-more {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height .32s ease, opacity .25s linear;
}
.bio-more.is-open { max-height: 640px; opacity: 1; }
.bio-more .person-bio { margin-top: 12px; }

.bio-toggle {
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .1em;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  padding: 5px 11px;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.bio-toggle:hover { border-color: var(--accent); color: var(--accent); }
.bio-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.research { margin-top: 22px; }
.research-label {
  display: block;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .14em;
  color: var(--ink-soft);
  margin-bottom: 10px;
}
.research-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border: 1px solid var(--line);
}
.research-grid div {
  padding: 12px 14px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
  line-height: 1.5;
}
.research-grid div:nth-child(2n) { border-right: none; }
.research-grid div:nth-last-child(-n+2) { border-bottom: none; }
.research-no {
  display: block;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .1em;
  color: var(--accent);
  margin-bottom: 3px;
}

/* ── 嘉宾：公司 logo 底板 ── */
.person-logo {
  border: 1px solid var(--line);
  background: var(--ink);
  aspect-ratio: 3 / 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  align-self: start;
}
.person-logo img {
  width: 100%;
  max-width: 180px;
  height: auto;
  display: block;
}

/* ── 嘉宾：合作要点 ── */
.collab { margin-top: 20px; }
.collab-label {
  display: block;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .14em;
  color: var(--ink-soft);
  margin-bottom: 10px;
}
.collab-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
}
.collab-grid > div {
  padding: 14px;
  border-right: 1px solid var(--line);
}
.collab-grid > div:last-child { border-right: none; }
.collab-no {
  display: block;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .1em;
  color: var(--accent);
  margin-bottom: 4px;
}
.collab-grid b { display: block; font-size: 13.5px; margin-bottom: 5px; }
.collab-grid p { font-size: 12.5px; line-height: 1.55; color: var(--ink-soft); }

.newslinks {
  margin-top: 12px;
  list-style: none;
  border-top: 1px solid var(--line-soft);
}
.newslinks li { border-bottom: 1px solid var(--line-soft); }
.newslinks a {
  display: block;
  padding: 8px 0 8px 18px;
  position: relative;
  font-size: 13px;
  color: var(--ink);
  text-decoration: none;
  transition: color .15s;
}
.newslinks a::before {
  content: "↗";
  position: absolute;
  left: 0;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
}
.newslinks a:hover { color: var(--accent); }

/* ── 舞台 ── */
.sc-frame {
  width: 100%;
  margin-inline: auto;
  transition: width .45s cubic-bezier(.22, 1, .36, 1);
}

.sc-stage {
  position: relative;
  height: min(58vh, 520px);
  min-height: 280px;
  border: 1px solid var(--line);
  background: #000;
  overflow: hidden;
  transition: height .45s cubic-bezier(.22, 1, .36, 1);
}

.sc-stage video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity .3s linear;
}
.sc-stage video.is-live { opacity: 1; }

/* 载入指示：等宽方块，不用转圈 */
.sc-stage-spin {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .18em;
  color: var(--paper);
  opacity: 0;
  transition: opacity .2s;
  pointer-events: none;
}
.sc-stage-spin::after {
  content: "LOADING";
  animation: sc-blink 1s steps(2) infinite;
}
.sc-stage.is-loading .sc-stage-spin { opacity: .7; }
@keyframes sc-blink { 50% { opacity: .25; } }

/* 控件：方形、贴边、等宽字 */
.sc-nav,
.sc-play {
  position: absolute;
  border: 1px solid rgba(244, 243, 239, .55);
  background: rgba(22, 21, 15, .55);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  transition: background .15s, border-color .15s, color .15s;
}
.sc-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 30px; height: 46px;
}
.sc-nav.prev { left: 10px; }
.sc-nav.next { right: 10px; }
.sc-play { right: 10px; bottom: 10px; width: 30px; height: 30px; }
.sc-nav:hover,
.sc-play:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.sc-nav:focus-visible,
.sc-play:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* 进度细线 */
.sc-progress {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: rgba(244, 243, 239, .2);
}
.sc-progress i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--accent);
}

/* ── 舞台说明条 ── */
.sc-caption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  border: 1px solid var(--line);
  border-top: none;
  padding: 11px 14px;
}
.sc-caption h3 { font-size: 16px; font-weight: 700; }
.sc-tag {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .1em;
  border: 1px solid var(--line-soft);
  color: var(--ink-soft);
  padding: 2px 7px;
}
.sc-caption .sc-spec {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--ink-soft);
  white-space: nowrap;
}

/* ── 任务矩阵 ── */
.sc-matrix-block { margin-top: 44px; }
.sc-matrix-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.sc-matrix-head h4 { font-size: 15px; font-weight: 700; }
.sc-matrix-head .en {
  font-size: 11px;
  color: var(--ink-soft);
}
.sc-matrix-head p {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .06em;
  color: var(--ink-soft);
}

.sc-matrix-scroll { overflow-x: auto; }
.sc-matrix-scroll::-webkit-scrollbar { height: 6px; }
.sc-matrix-scroll::-webkit-scrollbar-thumb { background: var(--line-soft); }

.sc-matrix {
  display: grid;
  grid-template-columns: 92px repeat(7, minmax(88px, 1fr));
  border: 1px solid var(--line);
  border-right: none;
  min-width: 720px;
}
.sc-matrix > * {
  border-right: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
/* 表头与行首用实线，和页面其他表格一致 */
.sc-mx-col, .sc-mx-corner { border-bottom-color: var(--line); }
.sc-mx-row { border-right-color: var(--line); }
.sc-matrix > *:nth-child(8n) { border-right: 1px solid var(--line); }
.sc-matrix > *:nth-last-child(-n+8) { border-bottom: none; }

.sc-mx-col, .sc-mx-row, .sc-mx-corner {
  display: flex;
  align-items: center;
  padding: 8px 10px;
}
.sc-mx-col { justify-content: center; text-align: center; }
.sc-mx-col b, .sc-mx-row b { font-size: 12.5px; font-weight: 700; display: block; }
.sc-mx-col em, .sc-mx-row em {
  font-style: normal;
  display: block;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .1em;
  color: var(--ink-soft);
}

.sc-cell {
  position: relative;
  aspect-ratio: 16 / 10;
  border: none;
  border-right: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  padding: 0;
  background: var(--paper);
  cursor: pointer;
  overflow: hidden;
}
.sc-cell img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(1) contrast(1.06);
  transition: filter .2s linear;
}
.sc-cell:hover img,
.sc-cell.is-active img { filter: none; }
.sc-cell:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }

/* 选中：橙色内框 + 左上角编号块 */
.sc-cell.is-active { box-shadow: inset 0 0 0 2px var(--accent); }
.sc-cell.is-active::after {
  content: "▸";
  position: absolute;
  left: 0; top: 0;
  background: var(--accent);
  color: #fff;
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1;
  padding: 3px 4px;
}

/* 空格：斜纹，与日历假期格同一套语言 */
.sc-cell.is-empty {
  cursor: default;
  background: repeating-linear-gradient(45deg,
      transparent 0 7px, rgba(22, 21, 15, .07) 7px 8px);
}
.sc-cell.is-empty::after {
  content: "待补充";
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .1em;
  color: var(--ink-soft);
  white-space: nowrap;
}

.sc-note {
  margin-top: 12px;
  font-size: 13.5px;
  color: var(--ink-soft);
  max-width: 62em;
}

/* ── 泛化对比 ── */
.sc-compare-block { margin-top: 52px; }
.sc-compare-intro { max-width: 46em; margin-bottom: 18px; }
.sc-compare-intro h4 { font-size: 20px; font-weight: 800; letter-spacing: .01em; }
.sc-compare-intro p { margin-top: 10px; }

.sc-compare {
  position: relative;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  background: #000;
  overflow: hidden;
  cursor: ew-resize;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
.sc-compare video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.sc-compare .sc-cmp-top {
  position: absolute;
  inset: 0;
  clip-path: inset(0 0 0 var(--x, 50%));
  will-change: clip-path;
}

.sc-cmp-divider {
  position: absolute;
  top: 0; bottom: 0;
  left: var(--x, 50%);
  width: 2px;
  margin-left: -1px;
  background: var(--accent);
  pointer-events: none;
}
.sc-cmp-grip {
  position: absolute;
  top: 50%; left: 50%;
  width: 34px; height: 22px;
  margin: -11px 0 0 -17px;
  background: var(--accent);
  color: #fff;
  display: grid; place-items: center;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: -.02em;
}

.sc-cmp-label {
  position: absolute;
  top: 10px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .08em;
  padding: 4px 9px;
  background: var(--paper);
  border: 1px solid var(--line);
  pointer-events: none;
}
.sc-cmp-label.l { left: 10px; }
.sc-cmp-label.r { right: 10px; border-color: var(--accent); color: var(--accent); }

.sc-compare-note {
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--ink-soft);
}

/* ── 往期现场照 ── */
.scene-block { margin-top: 52px; }
.scene-media {
  border: 1px solid var(--line);
  overflow: hidden;
  line-height: 0;
}
.scene-media img {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05);
  transition: filter .35s linear;
}
.scene-block:hover .scene-media img { filter: none; }

.scene-cap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 16px;
  border: 1px solid var(--line);
  border-top: none;
  padding: 11px 14px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--ink-soft);
}
.scene-cap b { color: var(--ink); font-weight: 700; letter-spacing: .04em; }
.scene-cap span:last-child { margin-left: auto; }

.scene-stats {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
}
.scene-stats div {
  padding: 16px 18px;
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 2px;
}
.scene-stats div:last-child { border-right: none; }
.scene-stats b {
  font-family: var(--mono);
  font-size: 24px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.scene-stats span {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--ink-soft);
}

/* ══════════ 首屏：可点开的四段流水线 ══════════ */
.hero-pipeline span {
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.hero-pipeline span:hover { border-color: var(--accent); color: var(--accent); }
.hero-pipeline span.is-open {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.hero-pipeline span:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.pipeline-detail {
  margin-top: 14px;
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 0 16px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  border-width: 0 1px;
  transition: max-height .3s ease, opacity .25s linear, padding .3s ease;
}
.pipeline-detail.is-open {
  max-height: 440px;
  opacity: 1;
  padding: 14px 16px;
  border-width: 1px;
}
.pipeline-detail .pd-no {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--accent);
}
.pipeline-detail h4 { font-size: 15px; font-weight: 700; margin: 4px 0 6px; }
.pipeline-detail p { font-size: 14px; max-width: 62em; }
.pipeline-detail .pd-en {
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .08em;
  color: var(--ink-soft);
}

/* ══════════ 成绩构成：悬停/点击展开 ══════════ */
.grading-bar > div {
  cursor: pointer;
  transition: flex-basis .3s ease;
}
.grading-detail {
  border: 1px solid var(--line);
  border-top: none;
  padding: 0 16px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height .3s ease, opacity .25s linear, padding .3s ease;
}
.grading-detail.is-open {
  max-height: 320px;
  opacity: 1;
  padding: 13px 16px;
}
.grading-detail b { font-size: 14px; }
.grading-detail p { font-size: 14px; margin-top: 4px; }

/* ══════════ 知识基础：点开看要求到什么程度 ══════════ */
.prereq-item {
  cursor: pointer;
  transition: background .15s;
}
.prereq-item:hover { background: rgba(22, 21, 15, .04); }
.prereq-item.is-open { background: rgba(255, 61, 0, .06); }
.prereq-item .prereq-more {
  font-size: 13px;
  color: var(--ink-soft);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height .28s ease, opacity .22s linear;
}
.prereq-item.is-open .prereq-more {
  max-height: 280px;
  opacity: 1;
}
.prereq-item .prereq-no::after {
  content: " +";
  color: var(--ink-soft);
}
.prereq-item.is-open .prereq-no::after { content: " −"; color: var(--accent); }

/* ══════════ 课程安排：筛选 + 日历联动 ══════════ */
.sched-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}
.sched-filter button {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .1em;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  padding: 5px 11px;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.sched-filter button:hover { border-color: var(--accent); color: var(--accent); }
.sched-filter button.is-on {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}
.sched-filter button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.cal-cell.class { cursor: pointer; transition: background .15s; }
.cal-cell.class:hover,
.cal-cell.class.is-linked { background: var(--accent); }
.cal-cell.class.is-linked::after { color: #fff; }
.cal-cell.is-dimmed { opacity: .28; }

.session-row { transition: background .15s, opacity .2s; cursor: pointer; }
.session-row.is-expanded { background: rgba(255, 61, 0, .06); }
.session-more {
  font-style: normal;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  margin-left: 8px;
}

/* 课次时间表 */
.session-agenda {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  border-bottom: 1px solid var(--line-soft);
  transition: max-height .3s ease, opacity .25s linear, padding .3s ease;
  padding: 0 4px 0 84px;
}
.session-agenda.is-open {
  max-height: 260px;
  opacity: 1;
  padding: 10px 4px 14px 84px;
}
.session-agenda.is-hidden { display: none; }
.ag-row {
  display: grid;
  grid-template-columns: 128px 72px 1fr;
  gap: 12px;
  align-items: baseline;
  padding: 5px 0;
}
.ag-t {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: .04em;
  color: var(--accent);
}
.ag-row b { font-weight: 700; font-size: 14px; }
.ag-row span:last-child { color: var(--ink-soft); font-size: 14px; }
.ag-place {
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--ink-soft);
}
.session-row.is-linked { background: rgba(255, 61, 0, .1); }
.session-row.is-hidden { display: none; }


/* ── 子页面：返回链接 ── */
/* 内容少时也把页脚顶到底部 */
body:has(.subpage) { display: flex; flex-direction: column; min-height: 100vh; }
body:has(.subpage) .subpage { flex: 1; }
.subpage { border-bottom: none; }
.backlink {
  display: inline-block;
  margin-bottom: 26px;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em;
  color: var(--ink-soft); text-decoration: none;
  border-bottom: 1px solid transparent;
}
.backlink:hover { color: var(--accent); border-bottom-color: var(--accent); }

/* 顶栏品牌在子页面是回首页的链接 */
a.topbar-brand { text-decoration: none; color: var(--ink); }
a.topbar-brand:hover i { color: var(--ink); }

/* ══════════ 07 课程资料 Repo ══════════ */
.repo-top { margin-bottom: 22px; }
.repo-lead { max-width: 62em; }
.repo-meta {
  margin-top: 14px; padding-top: 10px;
  border-top: 1px solid var(--line-soft);
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 20px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .06em;
  color: var(--ink-soft);
}
.repo-meta a { margin-left: auto; }
.repo-meta a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--accent); }
.repo-meta a:hover { color: var(--accent); }

/* ── 空状态 ── */
.repo-empty {
  display: grid; grid-template-columns: 64px 1fr; gap: 20px;
  border: 1px solid var(--line);
  background: repeating-linear-gradient(45deg,
      transparent 0 9px, rgba(22, 21, 15, .045) 9px 10px);
  padding: 26px 24px;
}
.repo-empty-no {
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em;
  color: var(--accent); border: 1px solid var(--accent);
  padding: 3px 7px; align-self: start; text-align: center;
}
.repo-empty b { font-size: 16px; }
.repo-empty p { margin-top: 8px; max-width: 52em; color: var(--ink-soft); }
.repo-kinds {
  margin-top: 16px; list-style: none;
  display: flex; flex-wrap: wrap; gap: 8px;
}
.repo-kinds li {
  border: 1px solid var(--line-soft); background: var(--paper);
  padding: 5px 10px; font-size: 13px;
}
.repo-kinds em {
  font-style: normal; display: block;
  font-family: var(--mono); font-size: 9px; letter-spacing: .1em; color: var(--ink-soft);
}

/* ── 有资料时：按单元分组的文件表 ── */
.repo-unit { border: 1px solid var(--line); margin-bottom: 18px; }
.repo-unit-head {
  display: flex; align-items: baseline; gap: 12px;
  border-bottom: 1px solid var(--line);
  padding: 9px 14px;
}
.repo-unit-head b { font-size: 14px; font-weight: 700; }
.repo-unit-head em {
  font-style: normal; font-family: var(--mono);
  font-size: 10px; letter-spacing: .1em; color: var(--ink-soft);
}
.repo-unit-head span {
  margin-left: auto; font-family: var(--mono);
  font-size: 10.5px; letter-spacing: .08em; color: var(--ink-soft);
}

.repo-row {
  display: grid;
  grid-template-columns: 52px 1fr auto 54px 72px 24px;
  gap: 16px; align-items: center;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line-soft);
  text-decoration: none; color: var(--ink);
  transition: background .15s;
}
.repo-row:last-child { border-bottom: none; }
.repo-row:hover { background: rgba(255, 61, 0, .06); }
.repo-row:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }

.repo-w {
  font-family: var(--mono); font-size: 12.5px; font-weight: 700; color: var(--accent);
}
.repo-title b { font-weight: 700; font-size: 14.5px; }
.repo-title em {
  font-style: normal; display: block; margin-top: 2px;
  font-size: 12px; color: var(--ink-soft);
}
.repo-type {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em;
  border: 1px solid var(--line); padding: 2px 8px; white-space: nowrap;
}
.repo-ext, .repo-size {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em;
  color: var(--ink-soft); text-align: right;
}
.repo-go { font-family: var(--mono); font-size: 13px; color: var(--accent); text-align: right; }

@media (max-width: 900px) {
  .repo-meta { margin-left: 0; white-space: normal; }
  .repo-row { grid-template-columns: 44px 1fr auto 20px; gap: 10px; }
  .repo-ext, .repo-size { display: none; }
}
@media (max-width: 560px) {
  .repo-empty { grid-template-columns: 1fr; gap: 14px; }
  .repo-empty-no { justify-self: start; }
}

/* ══════════ 响应式 ══════════ */
@media (max-width: 900px) {
  .collab-grid { grid-template-columns: 1fr; }
  .collab-grid > div { border-right: none; border-bottom: 1px solid var(--line); }
  .collab-grid > div:last-child { border-bottom: none; }
  .person-logo { max-width: 240px; aspect-ratio: 3 / 1.4; }
  .sc-stage { height: min(48vh, 380px); }
  .sc-matrix-head p { margin-left: 0; width: 100%; }
  .sc-caption .sc-spec { margin-left: 0; }
}

@media (max-width: 640px) {
  /* 加了「现场」后顶栏 6 项，窄屏改成横向可滚动 */
  .topbar-inner { gap: 14px; }
  .topbar-brand { white-space: nowrap; font-size: 10.5px; letter-spacing: .08em; }
  .topbar-nav {
    gap: 15px;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .topbar-nav::-webkit-scrollbar { display: none; }
  .topbar-nav a { flex: 0 0 auto; }
}

@media (max-width: 560px) {
  .session-agenda { padding-left: 52px; }
  .session-agenda.is-open { padding-left: 52px; }
  .ag-row { grid-template-columns: 1fr; gap: 2px; }
  .research-grid { grid-template-columns: 1fr; }
  .research-grid div { border-right: none; }
  .research-grid div:last-child { border-bottom: none; }
  .sc-matrix { grid-template-columns: 68px repeat(7, 80px); min-width: 0; }
  .scene-stats { grid-template-columns: 1fr; }
  .scene-stats div { border-right: none; border-bottom: 1px solid var(--line); }
  .scene-stats div:last-child { border-bottom: none; }
  .sc-compare { aspect-ratio: 4 / 3; }
}

/* ══════════ 减弱动效 ══════════ */
@media (prefers-reduced-motion: reduce) {
  .sc-js .reveal { opacity: 1; transform: none; transition: none; }
  .sc-frame, .sc-stage, .sc-stage video, .sc-cell img,
  .scene-media img, .pipeline-detail, .grading-detail,
  .prereq-item .prereq-more, .bio-more, .session-agenda { transition: none; }
  .sc-stage-spin::after { animation: none; }
}
