/* UMI-π — Scheme 2: Immersive Video-First · Light Theme */

:root {
  --bg-deep: #ffffff;
  --bg: #f6f7f9;
  --bg-elevated: #eef0f4;
  --bg-card: #ffffff;
  --text: #12151c;
  --text-muted: #4a5568;
  --text-dim: #6b7280;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-soft: rgba(37, 99, 235, 0.1);
  --accent-glow: rgba(37, 99, 235, 0.25);
  --warm: #c2410c;
  --warm-soft: rgba(194, 65, 12, 0.08);
  --border: rgba(15, 23, 42, 0.1);
  --border-strong: rgba(15, 23, 42, 0.14);
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 8px 30px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 16px 48px rgba(15, 23, 42, 0.1);
  --hero-overlay: rgba(255, 255, 255, 0.92);
  --radius: 12px;
  --radius-lg: 20px;
  --font: "Inter", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --header-h: 64px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg-deep);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s var(--ease), opacity 0.2s var(--ease);
}

a:hover {
  color: var(--accent-hover);
  opacity: 1;
}

img,
video {
  max-width: 100%;
  display: block;
}

/* ── Header ── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  transition: background 0.35s var(--ease), backdrop-filter 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--text);
  letter-spacing: -0.02em;
}

.logo span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 1.75rem;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.98rem;
  font-weight: 600;
  position: relative;
  padding: 0.2rem 0.05rem;
  transition: color 0.22s var(--ease), transform 0.22s var(--ease), text-shadow 0.22s var(--ease);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.28rem;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.24s var(--ease), opacity 0.24s var(--ease);
  opacity: 0;
}

.nav-links a:hover {
  color: #0f172a;
  opacity: 1;
  transform: translateY(-1px);
}

.nav-links a:hover::after {
  transform: scaleX(1);
  opacity: 1;
}

.site-header:not(.is-scrolled) {
  background: rgba(2, 6, 23, 0.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 24px rgba(2, 6, 23, 0.2);
}

.site-header:not(.is-scrolled) .logo,
.site-header:not(.is-scrolled) .nav-links a {
  color: rgba(248, 250, 252, 0.98);
  text-shadow: none;
}

.site-header:not(.is-scrolled) .logo span {
  color: #93c5fd;
}

.site-header:not(.is-scrolled) .nav-links a:hover {
  color: #ffffff;
  text-shadow: 0 0 14px rgba(255, 255, 255, 0.34);
}

.site-header:not(.is-scrolled) .nav-links a:hover::after {
  background: #93c5fd;
}

.site-header:not(.is-scrolled) .nav-toggle span {
  background: #f8fafc;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: transform 0.25s var(--ease);
}

.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
  box-shadow: 0 2px 8px var(--accent-glow);
}

.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  filter: none;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.85);
  color: var(--text);
  border-color: var(--border-strong);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-sm);
}

.btn-ghost:hover {
  background: #ffffff;
  border-color: rgba(37, 99, 235, 0.35);
}

.btn-copy {
  margin-top: 1rem;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border-strong);
}

.btn-copy:hover {
  background: var(--bg-elevated);
}

/* ── Teaser (PRTS-style: video + concise brand on top) ── */
.hero {
  position: relative;
  min-height: 105vh;
  min-height: 105dvh;
  background: var(--bg-deep);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.34);
  pointer-events: none;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 0%;
}

.hero-vignette {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(2, 6, 23, 0.36) 0%,
    rgba(2, 6, 23, 0.28) 45%,
    rgba(2, 6, 23, 0.62) 100%
  );
  pointer-events: none;
}

.hero-fisheye-mask {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 85% 75% at 50% 45%,
    transparent 35%,
    rgba(255, 255, 255, 0.2) 70%,
    rgba(255, 255, 255, 0.45) 100%
  );
  pointer-events: none;
}

.hero-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: linear-gradient(160deg, #f0f4fa 0%, #e8edf5 45%, #f6f7f9 100%);
  border: none;
}

.hero-placeholder .ph-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 2px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--accent);
  background: var(--accent-soft);
  box-shadow: var(--shadow-sm);
}

.teaser-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: calc(var(--header-h) + 1rem) 1.5rem 1.5rem;
  text-align: center;
  pointer-events: none;
}

.teaser-overlay a {
  pointer-events: auto;
}

.teaser-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(1.25rem, 3vw, 1.85rem);
  width: 100%;
  max-width: 52rem;
}

.teaser-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 40rem;
}

.teaser-brand {
  font-size: clamp(2.75rem, 10vw, 5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  margin: 0 0 1rem;
  color: var(--text);
}

.teaser-brand span {
  color: var(--accent);
}

.teaser-tagline {
  font-size: clamp(1.05rem, 2.8vw, 1.35rem);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0 0 0.65rem;
}

.teaser-desc {
  font-size: clamp(0.78rem, 1.45vw, 0.9rem);
  line-height: 1.55;
  color: var(--text-muted);
  margin: 0;
  max-width: 36rem;
}

.teaser-cta-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
}

/* Teaser CTA：独立毛玻璃胶囊按钮（参考 PRTS） */
.teaser-actions {
  display: grid;
  grid-template-columns: repeat(4, 9.25rem);
  justify-content: center;
  gap: 0.75rem 0.85rem;
}

.teaser-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  box-sizing: border-box;
  padding: 0.72rem 1rem;
  border-radius: 999px;
  font-size: 0.98rem;
  font-weight: 500;
  line-height: 1;
  color: #f8fafc;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.38);
  box-shadow: 0 4px 24px rgba(2, 6, 23, 0.18);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition:
    background 0.22s var(--ease),
    border-color 0.22s var(--ease),
    transform 0.22s var(--ease);
}

.teaser-btn:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.62);
  transform: translateY(-1px);
  color: #ffffff;
}

.teaser-btn-icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  opacity: 0.95;
}

/* Teaser 合作机构：两个等宽独立卡片 */
.teaser-partners {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: center;
  gap: 0.5rem;
  pointer-events: auto;
}

.teaser-partner-card {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 15.5rem;
  height: 3.1rem;
  padding: 0.35rem 0.85rem;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(2, 6, 23, 0.12);
}

.teaser-partner-logo {
  display: block;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.teaser-partner-logo--teleai {
  height: 32px;
}

.teaser-partner-logo--lumos {
  height: 50px;
  max-height: none;
  transform: scale(1.08);
  transform-origin: center;
}

/* ── Paper intro（标题 · 作者，窄幅排版） ── */
.paper-intro {
  background: linear-gradient(180deg, var(--bg-deep) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
  padding: 2.25rem 0 2.75rem;
}

.paper-intro-inner {
  max-width: 50rem;
  margin: 0 auto;
  padding: 0 1.5rem;
  text-align: center;
}

.paper-intro-inner::before {
  content: "";
  display: block;
  width: 2.5rem;
  height: 3px;
  margin: 0 auto 1.35rem;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.55;
}

.paper-title {
  width: 53rem;
  max-width: none;
  margin: 0 0 1.25rem;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.025em;
  color: var(--text);
}

.paper-title .pi-accent {
  color: var(--accent);
}

.paper-authors {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin: 0 0 0.5rem;
}

.paper-authors a {
  color: var(--text);
}

.paper-authors a:hover {
  color: var(--accent);
}

.paper-authors sup {
  font-size: 1.0em;
  color: var(--text-dim);
}

.paper-affiliations {
  font-size: 0.84rem;
  color: var(--text-dim);
  line-height: 1.65;
  margin: 0;
}

.aff-note {
  display: inline-block;
  margin-top: 0.4rem;
  font-size: 0.72rem;
  color: var(--text-dim);
  opacity: 0.92;
}

/* ── Placeholders ── */
.placeholder-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.5rem;
  background: var(--bg);
  border: 1px dashed rgba(37, 99, 235, 0.35);
  color: var(--text-muted);
  min-height: 200px;
  padding: 1.5rem;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.8);
}

.placeholder-box p {
  font-size: 0.9rem;
  line-height: 1.5;
}

.ph-tag {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
}

.ph-small,
.ph-hint {
  font-size: 0.8rem;
  color: var(--text-dim);
}

.ph-mini {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-dim);
}

/* ── Sections ── */
.section {
  padding: 5rem 0;
  position: relative;
}

.section-abstract {
  background: var(--bg-deep);
}

.container-narrow {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-abstract {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-wide {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.section-title.center,
.section-subtitle.center {
  text-align: center;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto 3rem;
}

.subsection-title {
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.subsection-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

.prose p {
  margin-bottom: 1.25rem;
  color: var(--text-muted);
  font-size: 1.05rem;
}

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

.prose em {
  color: var(--accent);
  font-style: normal;
  font-weight: 500;
}

.prose .pi-accent {
  color: var(--accent);
}

.prose sub {
  font-size: 0.75em;
  line-height: 0;
}

/* ── Dual Gap ── */
.section-dual-gap {
  background: var(--bg);
  padding-top: 4rem;
  padding-bottom: 2rem;
}

.dual-gap-header {
  margin-bottom: 3rem;
}

.gap-point {
  border-top: 1px solid var(--border);
  padding: 3.5rem 0;
}

.gap-point--visual {
  border-top: 0;
  padding-top: 0;
  padding-bottom: 1.75rem;
}

.gap-point--physical {
  background: var(--bg-deep);
  padding-top: 1.25rem;
}

.gap-point-inner {
  max-width: 52rem;
  margin: 0 auto 2rem;
}

.gap-index {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.gap-point-title {
  font-size: clamp(1.25rem, 2.8vw, 1.65rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0 0 0.85rem;
}

.section-dual-gap .gap-point-inner--intro {
  margin-bottom: 2rem;
}

.section-dual-gap .gap-index {
  margin-bottom: 0.5rem;
}

.section-dual-gap .gap-point-title {
  margin-bottom: 0.85rem;
}

.section-dual-gap .gap-point-inner--intro .gap-lead:first-of-type {
  margin-top: 0;
}

.gap-lead {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text-muted);
  margin: 0 0 1.25rem;
}

.gap-bullets {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.7;
}

.gap-bullets li + li {
  margin-top: 0.5rem;
}

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

/* Main view vs. UMI fisheye (side-by-side) */
.view-compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto 2.5rem;
}

.view-compare-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.view-compare-label {
  margin: 0 0 0.65rem;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
  text-align: center;
}

.view-compare-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-elevated);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.view-compare-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.view-compare-placeholder {
  position: absolute;
  inset: 0;
  z-index: 0;
  min-height: 0;
  border: none;
  border-radius: 0;
}

.view-compare-media.has-video .view-compare-placeholder {
  display: none;
}

.view-compare-media.has-video .view-compare-video {
  z-index: 2;
}

.view-compare-points {
  margin: 0.85rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--text-muted);
  text-align: left;
}

.view-compare-points li {
  position: relative;
  padding-left: 1rem;
}

.view-compare-points li::before {
  content: "·";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.view-compare-card--main .view-compare-points li::before {
  color: var(--accent);
}

.view-compare-ood {
  margin: 0.65rem 0 0;
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.45;
  color: #b91c1c;
  text-align: left;
}

.gap-chart-row {
  display: grid;
  grid-template-columns: 1fr min(480px, 44%);
  gap: 2rem;
  align-items: center;
  max-width: 1100px;
  margin: 2rem auto 0;
  padding: 0 1.5rem;
}

.gap-chart-copy {
  min-width: 0;
}

.gap-chart-title {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text);
}

.gap-chart-desc {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--text-muted);
}

.gap-chart-figure {
  margin: 0;
  box-shadow: var(--shadow-md);
}

.gap-chart-figure img {
  display: block;
  width: 100%;
  height: auto;
}

.physical-video-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  max-width: 1100px;
  margin: 0 auto;
}

.physical-video-slot {
  aspect-ratio: 16 / 9;
  min-height: 220px;
  border-radius: 0;
}

.physical-vali-block {
  max-width: 1100px;
  margin: 2.25rem auto 0;
}

.physical-vali-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1.25rem 2rem;
  margin-bottom: 1.5rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
}

.physical-vali-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.physical-vali-legend-line {
  display: inline-block;
  width: 2.75rem;
  height: 0;
  border-top-width: 4px;
  border-top-style: solid;
  flex-shrink: 0;
}

.physical-vali-legend-line--failed {
  border-top-color: rgb(89, 149, 187);
  border-top-style: dashed;
}

.physical-vali-legend-line--success {
  border-top-color: rgb(162, 92, 32);
}

.physical-vali-stack {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  width: min(720px, 100%);
  max-width: 720px;
  margin: 0 auto;
}

.physical-vali-item {
  margin: 0;
}

.physical-vali-caption {
  margin: 0 0 0.65rem;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-align: center;
  color: var(--text);
}

.physical-vali-media {
  position: relative;
  overflow: hidden;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.physical-vali-video {
  display: block;
  width: 100%;
  height: auto;
}

.split-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 70vh;
  max-height: 85vh;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.split-pane {
  display: flex;
  flex-direction: column;
  min-height: 360px;
}

.split-media {
  flex: 1;
  min-height: 280px;
  border-radius: 0;
  border-left: none;
  border-right: none;
}

.split-pane--bad .split-media {
  border-color: rgba(194, 65, 12, 0.25);
  background: linear-gradient(160deg, #fff7ed 0%, var(--bg) 100%);
}

.split-pane--good .split-media {
  border-color: rgba(37, 99, 235, 0.25);
  background: linear-gradient(160deg, #eff6ff 0%, var(--bg) 100%);
}

.fisheye-preview {
  position: relative;
  overflow: hidden;
}

.fisheye-preview::after {
  content: "";
  position: absolute;
  inset: -5%;
  background: radial-gradient(circle at 50% 42%, transparent 22%, rgba(255, 255, 255, 0.55) 100%);
  pointer-events: none;
}

.split-caption {
  padding: 1.75rem 2rem 2.5rem;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
}

.split-caption h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.split-caption p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.physical-gap-block {
  margin-top: 0;
}

.compare-slider {
  position: relative;
  width: 100%;
  height: 70vh;
  max-height: 720px;
  min-height: 400px;
  overflow: hidden;
  user-select: none;
  cursor: ew-resize;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
}

.compare-inner {
  position: relative;
  width: 100%;
  height: 100%;
}

.compare-layer {
  position: absolute;
  inset: 0;
}

.compare-layer--before {
  z-index: 1;
  width: 50%;
  overflow: hidden;
  border-right: 1px solid rgba(255, 255, 255, 0.6);
}

.compare-layer--after {
  z-index: 0;
}

.compare-ph {
  width: 100%;
  height: 100%;
  min-height: 100%;
  border: none;
  border-radius: 0;
}

.compare-label {
  position: absolute;
  bottom: 1.25rem;
  padding: 0.35rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-md);
  z-index: 5;
  pointer-events: none;
  border: 1px solid var(--border);
}

.compare-label--left {
  left: 1.25rem;
  color: var(--warm);
}

.view-compare-status {
  margin: 0.65rem 0 0;
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.45;
}

.view-compare-status--match {
  color: var(--accent);
}

.view-compare-status--ood {
  color: var(--warm);
}

.compare-label--right {
  right: 1.25rem;
  color: var(--accent);
}

.compare-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: ew-resize;
  z-index: 10;
  margin: 0;
}

.compare-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  margin-left: -1.5px;
  background: var(--accent);
  box-shadow: 0 0 16px var(--accent-glow);
  z-index: 8;
  pointer-events: none;
}

.compare-handle span {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  border: 2px solid #ffffff;
}

/* Fisheye transition */
.fisheye-transition {
  height: 28vh;
  min-height: 180px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(to bottom, var(--bg), var(--bg-deep));
}

.fisheye-ring {
  position: absolute;
  inset: -20%;
  background: radial-gradient(
    circle at 50% 50%,
    transparent 18%,
    rgba(37, 99, 235, 0.06) 35%,
    rgba(255, 255, 255, 0.5) 55%,
    var(--bg-deep) 72%
  );
  transform: scale(1.2);
  animation: fisheye-pulse 6s ease-in-out infinite;
}

@keyframes fisheye-pulse {
  0%, 100% { transform: scale(1.15); opacity: 0.9; }
  50% { transform: scale(1.25); opacity: 1; }
}

/* ── Method ── */
.section-method {
  background: var(--bg-deep);
  padding: 0;
}

.method-hero-screen {
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6rem 0 4rem;
}

.fig-placeholder {
  margin: 2rem auto 0;
  max-width: 1100px;
  width: calc(100% - 3rem);
  min-height: 420px;
  border-radius: var(--radius-lg);
  border: 1px dashed var(--border-strong);
  background: var(--bg);
  box-shadow: var(--shadow-sm);
}

.fig-architecture {
  margin: 2rem auto 0;
  max-width: 1100px;
  width: calc(100% - 3rem);
  box-shadow: var(--shadow-md);
}

.fig-architecture img {
  display: block;
  width: 100%;
  height: auto;
}

.method-screen {
  min-height: 85vh;
  display: flex;
  align-items: center;
  padding: 5rem 0;
  border-top: 1px solid var(--border);
}

.method-screen--alt {
  background: var(--bg);
}

.method-screen-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.method-index {
  display: block;
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

.method-screen h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
  color: var(--text);
}

.method-lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.method-lead .katex,
.method-bullets .katex {
  font-size: 1em;
}

.method-bullets {
  list-style: none;
  margin-bottom: 2.5rem;
}

.method-bullets li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.method-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.method-visual {
  max-width: 900px;
  margin: 0 auto;
  box-shadow: var(--shadow-md);
}

.method-visual--wide {
  max-width: min(1200px, calc(100vw - 3rem));
  width: calc(100% - 3rem);
  margin: 2.5rem auto 0;
}

.method-visual img {
  display: block;
  width: 100%;
  height: auto;
}

/* ── Two-stage training & deployment (§3.4) ── */
.method-screen--training {
  flex-direction: column;
  align-items: stretch;
  min-height: auto;
  padding: 2rem 0 0;
}

.training-layout {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
  box-sizing: border-box;
}

.training-header {
  text-align: center;
  margin-bottom: 0.5rem;
}

.training-header .method-index {
  margin-bottom: 0.35rem;
}

.training-header h3 {
  margin-bottom: 0;
}

.training-phase {
  padding: 1.25rem 0 0;
}

.training-phase--pretrain {
  padding-top: 0;
}

.training-phase + .training-phase {
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
}

.training-phase-title {
  margin: 0 0 0.85rem;
  font-size: clamp(1.15rem, 2.4vw, 1.35rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--text);
}

.training-phase-lead {
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
}

.training-phase-body {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-muted);
}

.training-phase--finetune {
  padding-left: 1.15rem;
  border-left: 3px solid var(--accent);
}

.training-stages-grid {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  min-width: 0;
}

.training-lead {
  margin-bottom: 1rem;
}

.training-lead-extra {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-muted);
}

.training-stages-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
}

.training-stage {
  padding: 1.25rem 1.2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.training-stage-label {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.training-stage-title {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text);
}

.training-stage-desc {
  margin: 0 0 0.85rem;
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.training-stage-desc strong {
  color: var(--text);
  font-weight: 600;
}

.training-formula {
  margin: 0 0 0.85rem;
  padding: 0.65rem 0.75rem;
  font-size: 0.95rem;
  text-align: center;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  overflow-x: auto;
}

.training-formula .katex {
  font-size: 0.95em;
}

.training-points {
  margin: 0;
  padding: 0;
  list-style: none;
}

.training-points li {
  position: relative;
  padding-left: 1rem;
  margin-bottom: 0.45rem;
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.training-points li::before {
  content: "·";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.training-stage--finetune {
  background: var(--accent-soft);
  border-color: rgba(37, 99, 235, 0.22);
}

.training-deploy {
  width: 100%;
  border-top: 1px solid var(--border);
  padding: 2.75rem 0 0;
  background: var(--bg-deep);
}

.training-deploy-copy {
  max-width: 52rem;
  margin-bottom: 1.5rem;
}

.training-deploy-title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.15rem, 2.5vw, 1.45rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.training-deploy-desc {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--text-muted);
}

.training-deploy-figure {
  margin: 0;
  width: 100%;
  box-shadow: var(--shadow-md);
}

.training-deploy-figure img {
  display: block;
  width: 100%;
  height: auto;
}

/* ── Results ── */
.section-results {
  background: var(--bg);
  padding-bottom: 6rem;
}

.results-hub {
  max-width: 1180px;
}

.results-hub-title {
  margin: 0 0 2rem;
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  text-align: center;
  color: var(--text);
}

.results-panel-title {
  margin: 0 0 2.2rem;
  text-align: center;
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  line-height: 1.3;
  font-weight: 700;
  color: var(--text);
}

.results-primary-tabs,
.results-sub-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem 1rem;
}

.results-primary-tabs {
  margin-bottom: 1.35rem;
  padding-bottom: 0.95rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.12);
}

.results-tab {
  font-family: inherit;
  cursor: pointer;
  transition:
    color 0.2s var(--ease),
    background 0.2s var(--ease),
    border-color 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}

.results-tab--primary {
  padding: 0.46rem 0.2rem;
  border: 0;
  background: transparent;
  font-size: 1.04rem;
  font-weight: 600;
  color: var(--text-muted);
  border-radius: 0;
}

.results-tab--primary:hover {
  color: var(--text);
}

.results-tab--primary.is-active {
  padding: 0.52rem 1.15rem;
  font-weight: 600;
  color: var(--accent);
  background: #eaf0fb;
  border: 1px solid #c8d5ea;
  border-radius: 999px;
}

.results-tab--sub {
  padding: 0.4rem 0.95rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}

.results-tab--sub:hover {
  border-color: rgba(37, 99, 235, 0.35);
  color: var(--accent);
}

.results-tab--sub.is-active {
  font-weight: 600;
  color: var(--accent);
  border-color: rgba(37, 99, 235, 0.45);
  background: var(--accent-soft);
  box-shadow: none;
}

.results-primary-panel {
  animation: results-fade-in 0.28s var(--ease);
}

.results-anchor-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 0.75rem;
  margin-bottom: 1.65rem;
  padding-bottom: 0.15rem;
  border-bottom: 0;
}

.results-anchor-tab {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.95rem;
  border: 1px solid #dfe3ea;
  border-radius: 999px;
  background: #fff;
  color: #374151;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
  transition:
    color 0.2s var(--ease),
    border-color 0.2s var(--ease),
    background 0.2s var(--ease);
}

.results-anchor-tab:hover {
  color: var(--accent);
  border-color: #c9d4ea;
  background: #f5f8ff;
}

.results-experiment {
  margin-bottom: 2.4rem;
  scroll-margin-top: calc(var(--header-h) + 18px);
}

.results-experiment h3 {
  margin: 0 0 0.85rem;
  font-size: clamp(1.02rem, 2.2vw, 1.3rem);
  line-height: 1.32;
  font-weight: 700;
  color: var(--text);
}

.results-evidence-block {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.results-evidence-text {
  margin: 0;
  font-size: 1rem;
  line-height: 1.72;
  color: var(--text-muted);
}

.results-evidence-text + .results-table-figure {
  margin-top: 0.6rem;
}

.results-table-figure {
  max-width: 820px;   /* 你可以改成 780/820/900 试效果 */
  margin: 0 auto;
  padding: 0.75rem;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
}

.results-table-figure img {
  display: block;
  width: 100%;
  height: auto;
}

#model-real-robot-eval .results-table-figure {
  max-width: 350px;
  margin-bottom: 1.15rem;
}

@keyframes results-fade-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.results-slot-placeholder {
  min-height: 280px;
  margin-bottom: 0;
}

.results-simulation-benchmarks {
  max-width: 720px;
  margin: 2rem auto 0;
}

.results-realworld-fig {
  margin-top: 2.5rem;
}

.results-realworld-fig .fig-placeholder {
  max-width: none;
  width: 100%;
}

.results-teaser {
  max-width: 1100px;
  margin: 0 auto 3rem;
  width: calc(100% - 3rem);
  min-height: 360px;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.results-scroll-wrap {
  margin-bottom: 3rem;
}

.scroll-hint {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-bottom: 1rem;
}

.results-scroll {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0.5rem 1.5rem 1.5rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(37, 99, 235, 0.35) transparent;
  -webkit-overflow-scrolling: touch;
}

.results-scroll::-webkit-scrollbar {
  height: 6px;
}

.results-scroll::-webkit-scrollbar-thumb {
  background: rgba(37, 99, 235, 0.25);
  border-radius: 3px;
}

.result-card {
  flex: 0 0 min(320px, 78vw);
  scroll-snap-align: center;
}

.result-media-player {
  width: 100%;
  margin: 0;
  padding: 0;
  position: relative;
  display: block;
  cursor: default;
}

.result-media-shell {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  background: #0f172a;
}

.result-media {
  aspect-ratio: 16 / 9;
  width: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  min-height: 180px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  display: block;
}

.result-media-shell .result-media {
  margin-bottom: 0;
  border-radius: 0;
  border: 0;
  box-shadow: none;
}

/* Hover-only player chrome (reference-style control bar) */
.result-media-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.45rem 0.5rem 0.4rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.45) 70%, transparent 100%);
  opacity: 0;
  transition: opacity 0.2s var(--ease);
  pointer-events: none;
}

.result-media-player:hover .result-media-controls,
.result-media-player:focus-within .result-media-controls,
.result-media-player.is-seeking .result-media-controls {
  opacity: 1;
  pointer-events: auto;
}

.result-media-progress {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 3px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  accent-color: #fff;
}

.result-media-progress::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
}

.result-media-progress::-moz-range-thumb {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
}

.result-media-progress::-moz-range-track {
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
}

.result-media-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  min-height: 1.75rem;
}

.result-media-bar-left,
.result-media-bar-right {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
}

.result-media-bar-right {
  flex-shrink: 0;
}

.result-media-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #fff;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s var(--ease);
}

.result-media-icon-btn:hover {
  background: rgba(255, 255, 255, 0.14);
}

.result-media-icon-btn:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.65);
  outline-offset: 1px;
}

.result-media-time {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.95);
  white-space: nowrap;
  user-select: none;
}

@media (hover: none) {
  .result-media-controls {
    opacity: 1;
    pointer-events: auto;
  }
}

.result-name {
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  color: var(--text-muted);
}

.video-modal[hidden] {
  display: none;
}

.video-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.video-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.72);
}

.video-modal-dialog {
  position: relative;
  width: min(1080px, calc(100vw - 2rem));
  background: #000;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  z-index: 1;
}

.video-modal-title {
  margin: 0;
  padding: 0.8rem 3rem 0.8rem 1rem;
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.9);
  font-size: 0.95rem;
  font-weight: 600;
}

.video-modal-close {
  position: absolute;
  top: 0.45rem;
  right: 0.6rem;
  width: 2rem;
  height: 2rem;
  border: 0;
  background: transparent;
  color: #e2e8f0;
  font-size: 1.4rem;
  cursor: pointer;
}

#video-modal-player {
  width: 100%;
  display: block;
  max-height: min(76vh, 820px);
  background: #000;
}

.stat-banner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  max-width: 1000px;
  margin: 0 auto 3rem;
  background: var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.stat-item {
  background: var(--bg-card);
  padding: 2rem 1.25rem;
  text-align: center;
}

.stat-value {
  display: block;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 0.35rem;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-dim);
  line-height: 1.4;
}

.stat-item--highlight .stat-value {
  color: var(--accent);
}

.fig-chart {
  min-height: 320px;
  margin-bottom: 2rem;
}

.benchmarks-block {
  margin-top: 2rem;
}

.benchmarks-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font);
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
  box-shadow: var(--shadow-sm);
}

.benchmarks-toggle:hover {
  background: var(--bg);
  border-color: rgba(37, 99, 235, 0.3);
}

.benchmarks-toggle .chevron {
  transition: transform 0.25s var(--ease);
}

.benchmarks-toggle[aria-expanded="true"] .chevron {
  transform: rotate(180deg);
}

.benchmarks-panel {
  margin-top: 1rem;
  animation: fadeIn 0.35s var(--ease);
}

.benchmarks-panel[hidden] {
  display: none;
}

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

.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
}

.bench-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.bench-table th,
.bench-table td {
  padding: 0.85rem 1rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.bench-table th {
  background: var(--bg);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.8rem;
}

.bench-table td:first-child {
  text-align: left;
  font-weight: 500;
  color: var(--text);
}

.bench-table .best {
  color: var(--accent);
  font-weight: 700;
}

.table-note {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: var(--text-dim);
  text-align: center;
}

/* ── Open Source ── */
.section-opensource {
  background: var(--bg-deep);
  border-top: 1px solid var(--border);
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}

.resource-card {
  display: block;
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  color: inherit;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
  box-shadow: var(--shadow-sm);
}

.resource-card:hover {
  transform: translateY(-4px);
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: var(--shadow-lg);
  opacity: 1;
}

.resource-icon {
  font-size: 1.5rem;
  color: var(--accent);
  margin-bottom: 1rem;
  display: block;
}

.resource-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.resource-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.resource-badge {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--warm);
  background: var(--warm-soft);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  display: inline-block;
}

/* ── Citation ── */
.section-citation {
  padding-bottom: 4rem;
  background: var(--bg-deep);
}

.bibtex-box {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 2.5rem;
  box-shadow: var(--shadow-sm);
}

.bibtex-box pre,
.bibtex-box pre code {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  overflow-x: hidden;
  font-family: var(--mono);
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.ack-title {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.ack-text {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ── Footer ── */
.site-footer {
  padding: 2rem 1.5rem 2.25rem;
  text-align: center;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.footer-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 1.25rem;
  padding: 0 0.5rem;
}

.footer-logo {
  height: 48px;
  width: auto;
  max-height: 48px;
  object-fit: contain;
  flex-shrink: 0;
}

.footer-logo--teleai {
  max-width: min(280px, 52vw);
}

.footer-logo--lumos {
  height: 85px;
  max-height: 85px;
  max-width: min(400px, 76vw);
}

.site-footer p {
  font-size: 0.8rem;
  color: var(--text-dim);
}

.footer-note {
  margin-top: 0.35rem;
}

.footer-note a {
  color: var(--text-muted);
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .footer-logos {
    gap: 0.75rem;
    flex-wrap: wrap;
  }

  .gap-chart-row {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .gap-chart-figure {
    max-width: 520px;
    margin: 0 auto;
  }

  .view-compare-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .physical-video-grid {
    grid-template-columns: 1fr;
  }

  .split-compare {
    grid-template-columns: 1fr;
    max-height: none;
  }

  .split-pane {
    min-height: auto;
  }

  .stat-banner {
    grid-template-columns: repeat(2, 1fr);
  }

  .resource-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 1.5rem;
    gap: 1.25rem;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
  }

  .nav-links.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-toggle {
    display: flex;
  }

  .compare-slider {
    height: 55vh;
    min-height: 320px;
  }

  .method-screen {
    min-height: auto;
    padding: 4rem 0;
  }

  .method-hero-screen {
    min-height: auto;
    padding: 5rem 0 3rem;
  }
}

/* Hide placeholder when video is loaded */
.hero.has-video .hero-placeholder {
  display: none;
}

/* Teaser with video: center text legibility */
.hero.has-video .hero-vignette {
  background: linear-gradient(
    to bottom,
    rgba(2, 6, 23, 0.32) 0%,
    rgba(2, 6, 23, 0.22) 40%,
    rgba(2, 6, 23, 0.68) 100%
  );
}

.hero.has-video .teaser-brand,
.hero.has-video .teaser-tagline,
.hero.has-video .teaser-desc {
  color: #f8fafc;
  text-shadow:
    0 2px 18px rgba(2, 6, 23, 0.72),
    0 1px 2px rgba(2, 6, 23, 0.8);
}

.hero.has-video .teaser-btn {
  color: #f8fafc;
}

@media (max-width: 720px) {
  .teaser-actions {
    grid-template-columns: repeat(2, 9.25rem);
  }
}

@media (max-width: 520px) {
  .teaser-actions {
    grid-template-columns: 1fr;
    width: 100%;
    max-width: 14rem;
  }

  .teaser-cta-block {
    gap: 0.7rem;
  }

  .teaser-partner-card {
    width: min(15.5rem, calc(50vw - 1.25rem));
  }

  .teaser-partner-logo--teleai {
    height: 28px;
  }

  .teaser-partner-logo--lumos {
    height: 48px;
    transform: scale(1.06);
  }
}

/* Project-page refinement: keep the original paper narrative single-column.
   Only the 20 deployment videos are allowed to use a grid layout. */
.container-abstract,
.container-wide,
.container-narrow {
  max-width: 1040px;
}

.section {
  padding: 4.75rem 0;
}

.section-title {
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
}

.paper-title {
  max-width: 1040px;
  width: auto;
}

.view-compare-grid,
.gap-chart-row,
.physical-video-grid,
.training-layout,
.training-deploy,
.resource-grid,
.stat-banner {
  display: flex;
  flex-direction: column;
  max-width: 1040px;
  margin-left: auto;
  margin-right: auto;
}

.view-compare-card,
.feature-panel,
.training-stage,
.resource-card,
.stat-item {
  width: 100%;
}

.view-compare-media,
.results-teaser,
.method-visual,
.fig-architecture,
.training-deploy-figure,
.gap-chart-figure {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #fff;
}

.gap-point--visual .view-compare-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.75rem;
  align-items: start;
  margin-bottom: 2.75rem;
}

.gap-point--visual .view-compare-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: auto;
  padding: 1rem 1rem 1.15rem;
  border-radius: var(--radius-lg);
  background: #eef1f5;
}

.gap-point--visual .view-compare-media {
  aspect-ratio: 16 / 9;
  min-height: 240px;
  border: 0;
  border-radius: var(--radius);
  background: #dde3ec;
  box-shadow: none;
}

.gap-point--visual .view-compare-placeholder {
  border: 0;
  background: transparent;
  box-shadow: none;
}

.gap-point--visual .view-compare-media:not(.has-video) {
  aspect-ratio: 16 / 9;
  min-height: 240px;
}

.gap-point--visual .view-compare-media:not(.has-video) .view-compare-placeholder {
  position: absolute;
  inset: 0;
  padding: 1.5rem;
}

.gap-point--visual .view-compare-label {
  margin: 0.9rem 0 0.45rem;
  text-align: center;
}

.gap-point--visual .view-compare-points {
  margin-top: 0;
  text-align: center;
}

.gap-point--visual .view-compare-points li {
  padding-left: 0;
}

.gap-point--visual .view-compare-points li::before {
  content: none;
}

.gap-point--visual .view-compare-status {
  text-align: center;
}

@media (max-width: 760px) {
  .gap-point--visual .view-compare-grid {
    grid-template-columns: 1fr;
  }
}

.gap-chart-copy {
  max-width: 920px;
  margin: 0 auto;
  text-align: left;
}

.gap-chart-title,
.gap-chart-desc {
  text-align: left;
}

.gap-chart-figure,
.method-visual,
.fig-architecture,
.training-deploy-figure {
  width: min(1040px, calc(100vw - 3rem));
  max-width: 1040px;
  margin-left: auto;
  margin-right: auto;
  box-shadow: var(--shadow-md);
}

.gap-chart-figure img,
.method-visual img,
.fig-architecture img,
.training-deploy-figure img {
  width: 100%;
  height: auto;
  image-rendering: auto;
}

.method-screen {
  display: block;
  min-height: auto;
  padding: 4.5rem 0;
}

.method-screen--training {
  padding-top: 2rem;
  padding-bottom: 0;
}

.method-screen-inner,
.training-header,
.training-deploy-copy {
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.method-bullets {
  margin-bottom: 2rem;
}

.training-stages-col {
  width: min(920px, calc(100vw - 3rem));
  margin-left: auto;
  margin-right: auto;
}

.training-deploy-block {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.stat-banner {
  gap: 0;
}

.stat-item {
  border-bottom: 1px solid var(--border);
}

.stat-item:last-child {
  border-bottom: 0;
}

.section-results .stat-banner {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  width: min(var(--paper-content-width), calc(100vw - 3rem));
  max-width: var(--paper-content-width);
  margin: 4rem auto 3rem;
  padding: 1.8rem 0;
  background: rgba(255, 255, 255, 0.58);
  border-top: 1px solid rgba(15, 23, 42, 0.1);
  border-bottom: 1px solid rgba(15, 23, 42, 0.1);
}

.section-results .stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 8.5rem;
  padding: 0 1.5rem;
  border-right: 1px solid rgba(15, 23, 42, 0.12);
  border-bottom: 0;
  background: transparent;
}

.section-results .stat-item:last-child {
  border-right: 0;
}

.section-results .stat-value {
  font-size: clamp(2.35rem, 4.4vw, 4rem);
  line-height: 1;
  letter-spacing: 0;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.section-results .stat-item--highlight .stat-value {
  color: var(--accent);
}

.section-results .stat-label {
  max-width: 12rem;
  font-size: 0.98rem;
  line-height: 1.45;
  color: var(--text-muted);
  text-align: center;
}

.section-citation .bibtex-box {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 8px;
  padding: 1.5rem;
}

.section-citation .bibtex-box pre,
.section-citation .bibtex-box pre code {
  color: #334155;
}

.section-citation .btn-copy {
  display: flex;
  width: fit-content;
  margin: 1.25rem auto 0;
}

.section-abstract .section-label {
  color: var(--text);
  font-size: var(--paper-section-title-size);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: 0;
  text-transform: none;
  margin-bottom: 1.25rem;
}

.method-hero-screen {
  min-height: auto;
  justify-content: flex-start;
  padding: 2.75rem 0 0rem;
}

.method-hero-screen + .method-screen {
  padding-top: 2rem;
}

.method-screen + .method-screen {
  padding-top: 2rem;
}

.section-method #method-vqa {
  padding-bottom: 2rem;
}

.section-method .section-title {
  margin-top: 0;
}

.physical-video-grid {
  margin-top: 2rem;
}


#physical-gap {
  padding-top: 1.25rem;
  padding-bottom: 3.5rem;
}

#physical-gap .physical-vali-block {
  margin-top: 2rem;
}

.section-dual-gap {
  padding-bottom: 0;
}

#physical-gap .gap-point-inner--intro {
  padding-top: 0;
}

#physical-gap .gap-lead {
  margin-bottom: 1.4rem;
}

#physical-gap .gap-lead:last-child {
  margin-bottom: 0;
}

.section-method .fig-architecture {
  margin-top: 2.25rem;
}

.method-hero-body {
  margin-top: 1.5rem;
}

.method-screen-inner,
.method-screen h3 {
  text-align: left;
}

.method-lead--follow {
  margin-top: 1.25rem;
}

/* Paper heading block: wider, clearer, and readable as the formal paper title. */
.paper-intro {
  padding: 3.25rem 0 3.5rem;
}

.paper-intro-inner {
  width: min(1320px, calc(100vw - 3rem));
  max-width: 1320px;
}

.paper-title {
  width: 100%;
  max-width: 1320px;
  left: auto;
  transform: none;
  margin: 0 auto 1.6rem;
  font-size: clamp(2.85rem, 2.75vw, 3.05rem);
  line-height: 1.13;
  letter-spacing: 0;
}

.paper-title span {
  display: block;
  white-space: nowrap;
}

.paper-authors {
  max-width: 1120px;
  margin: 0 auto 0.8rem;
  font-size: 1.12rem;
  line-height: 1.78;
}

.author-line {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 0.45rem 0.6rem;
  white-space: nowrap;
}

.author-line + .author-line {
  margin-top: 0.15rem;
}

.author {
  display: inline-block;
  white-space: nowrap;
}

.paper-affiliations {
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1rem;
  line-height: 1.72;
}

.aff-note {
  font-size: 0.9rem;
}

@media (max-width: 900px) {
  .paper-title {
    font-size: clamp(2.25rem, 7vw, 3rem);
  }

  .paper-title span {
    white-space: normal;
  }

  .author-line {
    flex-wrap: wrap;
    white-space: normal;
  }
}

@media (max-width: 560px) {
  .paper-intro-inner {
    width: calc(100vw - 2rem);
  }

  .paper-title {
    font-size: clamp(1.9rem, 9vw, 2.35rem);
    line-height: 1.16;
  }

  .paper-authors {
    font-size: 1rem;
  }

  .paper-affiliations {
    font-size: 0.92rem;
  }
}

/* Keep method subsections aligned like the original paper narrative. */
.section-method .method-screen-inner,
.section-method .method-screen h3 {
  text-align: left;
}

.resource-grid {
  gap: 1rem;
}

.results-scroll-wrap {
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
}

.results-scroll {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  overflow: visible;
  scroll-snap-type: none;
  padding: 0;
  justify-content: start;
}

.result-card {
  min-width: 0;
  flex: none;
  background: transparent;
  border: 0;
  border-radius: 0;
  overflow: visible;
  box-shadow: none;
}

.result-media {
  margin-bottom: 0;
  border: 0;
  border-radius: 0;
  min-height: 0;
}

.result-media-shell {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.14);
}

.result-name {
  min-height: 2.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.72rem 0.35rem 0.25rem;
  text-align: center;
  color: #111827;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.35;
}

.video-modal {
  z-index: 2000;
}

.video-modal-close {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 6px;
}

@media (max-width: 900px) {
  .results-scroll {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-results .stat-banner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-results .stat-item:nth-child(2n) {
    border-right: 0;
  }

  .section-results .stat-item:nth-child(-n + 2) {
    border-bottom: 1px solid rgba(15, 23, 42, 0.12);
  }
}

@media (max-width: 560px) {
  .hero-placeholder {
    gap: 0;
  }

  .hero-placeholder .ph-icon {
    transform: translateY(-7rem);
    opacity: 0.72;
  }

  .hero-placeholder .ph-title,
  .hero-placeholder .ph-hint {
    display: none;
  }

  .results-scroll {
    grid-template-columns: 1fr;
  }

  .section-results .stat-banner {
    width: calc(100vw - 2rem);
    padding: 1.2rem 0;
  }

  .section-results .stat-item {
    min-height: 7rem;
    padding: 0 0.75rem;
  }

  .section-results .stat-value {
    font-size: 2.4rem;
  }

  .gap-chart-figure,
  .method-visual,
  .fig-architecture,
  .training-deploy-figure,
  .results-scroll-wrap {
    width: calc(100vw - 2rem);
  }
}

/* Academic section bands: six navigation sections, restrained and borderless. */
.section-abstract {
  background: #ffffff;
}

.section-dual-gap {
  background: #f6f8fb;
}

.section-method {
  background: #ffffff;
}

.section-results {
  background: #f7f9fc;
}

.section-opensource {
  background: #ffffff;
}

.section-citation {
  background: #f6f8fb;
}

.section-title,
.section-label,
.subsection-title,
.gap-point-title,
.method-screen h3,
.training-deploy-title,
.ack-title {
  text-align: center;
}

.section-subtitle,
.dual-gap-header,
.gap-point-inner,
.method-screen-inner,
.training-header,
.training-deploy-copy {
  text-align: center;
}

.fisheye-transition {
  display: none;
}

.gap-point,
.method-screen,
.training-deploy,
.section-opensource,
.site-footer {
  border-top: 0;
}

.gap-point--physical,
.method-screen--alt,
.training-deploy {
  background: transparent;
}

.placeholder-box,
.view-compare-media,
.gap-chart-figure,
.physical-video-slot,
.fig-placeholder,
.fig-architecture,
.method-visual,
.training-stage,
.training-formula,
.training-deploy-figure,
.results-teaser,
.result-card,
.result-media,
.stat-banner,
.stat-item,
.benchmarks-toggle,
.table-wrap,
.resource-card,
.bibtex-box {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.placeholder-box,
.view-compare-media,
.physical-video-slot,
.fig-placeholder,
.results-teaser,
.stat-banner,
.stat-item,
.benchmarks-toggle,
.table-wrap,
.bibtex-box {
  background: transparent;
}

.resource-card,
.training-stage {
  background: transparent;
  padding-left: 0;
  padding-right: 0;
}

.resource-card:hover {
  transform: none;
  box-shadow: none;
}

.resource-grid,
.training-stages-col {
  gap: 1.5rem;
}

.result-card {
  background: transparent;
}

.result-name {
  justify-content: center;
  text-align: center;
}

.benchmarks-toggle {
  border-top: 1px solid rgba(15, 23, 42, 0.14);
  border-bottom: 1px solid rgba(15, 23, 42, 0.14);
}

.bench-table th {
  background: rgba(255, 255, 255, 0.45);
}

.results-teaser,
.fig-placeholder,
.physical-video-slot {
  min-height: auto;
  aspect-ratio: auto;
  padding: 1.5rem;
}

.view-compare-media:not(.has-video) {
  aspect-ratio: auto;
  min-height: auto;
}

.view-compare-media:not(.has-video) .view-compare-placeholder {
  position: static;
  padding: 1.5rem 0;
}

.placeholder-box {
  min-height: auto;
}

/* Unified academic reading width across all six sections. */
:root {
  --paper-content-width: 1040px;
}

.container-abstract,
.container-wide,
.container-narrow,
.dual-gap-header,
.gap-point-inner,
.gap-chart-copy,
.method-screen-inner,
.training-layout,
.training-header,
.training-stages-col,
.training-stages-grid,
.training-deploy-copy,
.benchmarks-block,
.resource-grid,
.bibtex-box {
  width: min(var(--paper-content-width), calc(100vw - 3rem));
  max-width: var(--paper-content-width);
  margin-left: auto;
  margin-right: auto;
}

.container-abstract,
.container-wide,
.container-narrow {
  box-sizing: border-box;
  padding-left: 0;
  padding-right: 0;
}

.section-subtitle {
  max-width: var(--paper-content-width);
}

.prose,
.gap-lead,
.gap-bullets,
.gap-chart-desc,
.method-lead,
.method-bullets,
.training-lead,
.training-lead-extra,
.training-phase-lead,
.training-phase-body,
.training-stage-desc,
.training-points,
.training-deploy-desc,
.resource-card p,
.ack-text,
.bibtex-box pre,
.table-note {
  text-align: left;
}

.prose p,
.gap-lead,
.gap-chart-desc,
.method-lead,
.training-lead,
.training-lead-extra,
.training-deploy-desc,
.ack-text {
  width: 100%;
  max-width: none;
}

.gap-point-inner,
.method-screen-inner,
.training-header,
.training-deploy-copy {
  padding-left: 0;
  padding-right: 0;
}

.method-bullets,
.gap-bullets,
.training-points {
  width: 100%;
}

@media (max-width: 560px) {
  .container-abstract,
  .container-wide,
  .container-narrow,
  .dual-gap-header,
  .gap-point-inner,
  .gap-chart-copy,
  .method-screen-inner,
  .training-layout,
  .training-header,
  .training-stages-col,
  .training-stages-grid,
  .training-deploy-copy,
  .benchmarks-block,
  .resource-grid,
  .bibtex-box {
    width: calc(100vw - 2rem);
  }
}

/* Academic typography normalization. */
:root {
  --paper-section-title-size: clamp(2rem, 3.2vw, 2.8rem);
  --paper-subtitle-size: clamp(1.45rem, 2.2vw, 1.85rem);
  --paper-body-size: 1.05rem;
  --paper-small-size: 0.95rem;
}

.gap-index,
.method-index {
  display: none;
}

.section-title {
  font-size: var(--paper-section-title-size);
  line-height: 1.18;
  margin-bottom: 1.25rem;
}

.gap-point-title,
.method-screen h3,
.training-deploy-title,
.resource-card h3,
.ack-title {
  font-size: var(--paper-subtitle-size);
  line-height: 1.25;
}

.section-subtitle,
.prose p,
.gap-lead,
.gap-chart-desc,
.method-lead,
.method-bullets li,
.training-lead,
.training-lead-extra,
.training-phase-lead,
.training-phase-body,
.training-stage-desc,
.training-points li,
.training-deploy-desc,
.resource-card p,
.ack-text,
.table-note {
  font-size: var(--paper-body-size);
  line-height: 1.72;
}

.view-compare-points,
.view-compare-points li,
.view-compare-status,
.view-compare-ood,
.result-name,
.scroll-hint,
.ph-small,
.resource-badge,
.bench-table,
.bibtex-box pre,
.bibtex-box pre code {
  font-size: var(--paper-small-size);
}

.training-stage-label {
  font-size: 0.82rem;
}

@media (max-width: 560px) {
  :root {
    --paper-section-title-size: clamp(1.8rem, 8vw, 2.25rem);
    --paper-subtitle-size: 1.35rem;
    --paper-body-size: 1rem;
    --paper-small-size: 0.9rem;
  }
}

/* Method subsection headings: same hierarchy, centered titles, left-aligned body. */
.section-method #method-vqa h3,
.section-method #method-physics h3,
.section-method #method-training .training-header h3 {
  font-size: var(--paper-subtitle-size);
  line-height: 1.25;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 0;
}

.section-method #method-vqa .method-lead,
.section-method #method-vqa .method-bullets,
.section-method #method-physics .method-lead,
.section-method #method-physics .method-bullets,
.section-method #method-training .training-lead,
.section-method #method-training .training-lead-extra,
.section-method #method-training .training-phase-lead,
.section-method #method-training .training-phase-body,
.section-method #method-training .training-phase-title {
  text-align: left;
}

/* Motivation charts: side-by-side figure cards on desktop. */
.section-dual-gap .gap-chart-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  width: min(var(--paper-content-width), calc(100vw - 3rem));
  max-width: var(--paper-content-width);
  margin: 3rem auto 0;
}

.section-dual-gap .gap-chart-copy {
  max-width: none;
  margin: 0;
}

.section-dual-gap .gap-chart-title {
  font-size: var(--paper-subtitle-size);
  line-height: 1.25;
  margin: 0;
}

.section-dual-gap .gap-chart-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.75rem;
  align-items: stretch;
}

.section-dual-gap .gap-chart-figure {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 1.15rem 1.15rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: space-between;
  border-radius: var(--radius-lg);
  background: #eef1f5;
  box-shadow: none;
}

.section-dual-gap .gap-chart-figure img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius);
}

.section-dual-gap .gap-chart-desc {
  font-size: var(--paper-body-size);
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 1000px) {
  .section-dual-gap .gap-chart-grid {
    grid-template-columns: 1fr;
  }
}

/* Model Training: paper-style stage hierarchy */
.section-method #method-training .training-stage {
  padding: 0 0 0 1.15rem;
  border-left: 2px solid rgba(15, 23, 42, 0.14);
}

.section-method #method-training .training-phase--finetune {
  background: var(--accent-soft);
  padding: 1.5rem 1.25rem 1.25rem 1.35rem;
  border-top: 0;
  border-left: 3px solid var(--accent);
  margin-top: 2.5rem;
}

.section-method #method-training .training-stage-desc + .training-points {
  margin-top: 0.1rem;
}

.section-method #method-training .training-points li:last-child {
  margin-bottom: 0;
}

.section-method #method-training .training-stage-desc .katex {
  font-size: 0.92em;
}

/* Open Source cards: 4-column layout */
.section-opensource .resource-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 1.6rem;
}

.section-opensource .resource-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 11.5rem;
  padding: 1.4rem 1.25rem;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  transition:
    transform 0.22s var(--ease),
    box-shadow 0.22s var(--ease),
    border-color 0.22s var(--ease);
}

.section-opensource .resource-card:hover {
  transform: translateY(-3px);
  border-color: rgba(37, 99, 235, 0.34);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.1);
}

.section-opensource .resource-icon {
  margin-bottom: 0.85rem;
  font-size: 1.25rem;
}

.section-opensource .resource-card h3 {
  margin: 0 0 0.55rem;
  font-size: 1.02rem;
  line-height: 1.35;
}

.section-opensource .resource-card p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.62;
  color: var(--text-muted);
}

@media (max-width: 1100px) {
  .section-opensource .resource-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .section-opensource .resource-grid {
    grid-template-columns: 1fr;
  }
}
