:root {
  --bg: #f8fafb;
  --bg-soft: #fcfdfe;
  --bg-strong: #eef3f5;
  --surface: rgba(255, 255, 255, 0.94);
  --surface-strong: #ffffff;
  --text: #1f1c18;
  --muted: #5f646b;
  --line: rgba(60, 72, 86, 0.14);
  --shadow: 0 18px 40px rgba(40, 54, 70, 0.10);
  --hero-shadow: 0 20px 48px rgba(45, 79, 79, 0.16);
  --accent: #2d5c5b;
  --accent-strong: #1f4544;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Times New Roman", Times, serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(193, 217, 214, 0.24), transparent 30%),
    radial-gradient(circle at top right, rgba(214, 225, 235, 0.28), transparent 30%),
    linear-gradient(180deg, #fbfcfd 0%, #f6f9fb 46%, #fbfcfd 100%);
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

.container {
  width: min(1180px, calc(100vw - 40px));
  margin: 0 auto;
}

.container.narrow {
  width: min(920px, calc(100vw - 40px));
}

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(35, 84, 83, 0.18), rgba(255, 255, 255, 0) 45%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(232, 240, 245, 0.52));
  pointer-events: none;
}

.hero-container {
  position: relative;
  padding: 68px 0 52px;
  text-align: center;
}

.hero h1 {
  max-width: 1020px;
  margin: 0 auto 18px;
  font-size: clamp(1.65rem, 2.65vw, 2.6rem);
  line-height: 1.1;
  color: #162f31;
  text-wrap: balance;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.7);
}

.authors {
  display: grid;
  gap: 6px;
  max-width: 980px;
  margin: 0 auto 12px;
}

.authors-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 18px;
  line-height: 1.8;
}

.author-name,
.author-name a {
  color: var(--text);
  font-weight: 600;
}

.affiliations {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 20px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 0.98rem;
}

.author-note {
  margin: 8px auto 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  color: #fff;
  font-size: 0.96rem;
  font-weight: 700;
  box-shadow: var(--hero-shadow);
  transition: transform 0.2s ease, opacity 0.2s ease, background 0.2s ease;
}

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

.btn i {
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 0.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.92);
}

.btn-arxiv {
  background: #b03228;
}

.btn-arxiv i {
  color: #b03228;
}

.btn-paper {
  background: var(--accent-strong);
}

.btn-paper i {
  color: var(--accent-strong);
}

.btn-github {
  background: #24292f;
}

.btn-github i {
  color: #24292f;
}

.section {
  padding: 50px 0;
}

.section-tight {
  padding-top: 34px;
}

.section-muted {
  background: linear-gradient(180deg, rgba(251, 253, 255, 0.78), rgba(239, 245, 248, 0.82));
  border-top: 1px solid rgba(98, 90, 79, 0.08);
  border-bottom: 1px solid rgba(98, 90, 79, 0.08);
}

.section-accent {
  background:
    radial-gradient(circle at top right, rgba(56, 108, 107, 0.10), transparent 24%),
    linear-gradient(180deg, rgba(249, 252, 254, 0.92), rgba(238, 244, 247, 0.82));
  border-top: 1px solid rgba(45, 92, 91, 0.12);
  border-bottom: 1px solid rgba(45, 92, 91, 0.12);
}

.section h2 {
  margin: 0 0 14px;
  text-align: center;
  font-size: clamp(1.45rem, 2.2vw, 2rem);
  color: #1d3536;
}

.media-card,
.abstract-card {
  background: var(--surface);
  border: 1px solid rgba(71, 60, 44, 0.12);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.media-card {
  padding: 16px;
}

.media-card--hero {
  padding: 18px;
}

.media-card--pipeline {
  padding: 18px;
}

.media-card img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.media-card figcaption {
  margin: 12px 4px 2px;
  color: var(--muted);
  line-height: 1.65;
  font-size: 0.96rem;
  text-align: center;
}

.media-caption {
  margin: 14px auto 0;
  max-width: 1080px;
  color: var(--muted);
  line-height: 1.68;
  font-size: 0.96rem;
  text-align: center;
}

.media-caption--pipeline {
  margin-top: 12px;
}

.abstract-card {
  padding: 20px 22px;
}

.abstract-card p {
  margin: 0;
  line-height: 1.82;
  text-align: justify;
}

.abstract-card p + p {
  margin-top: 14px;
}

.comparison-galleries {
  display: grid;
  gap: 16px;
}

.comparison-block {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(71, 60, 44, 0.12);
  border-radius: 18px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.comparison-block summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 700;
  color: #1e3d3d;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(243, 247, 250, 0.92));
}

.comparison-block summary::-webkit-details-marker {
  display: none;
}

.comparison-panel {
  --spotlight-aspect: 16 / 10.44;
  padding: 18px;
}

.spotlight-viewer {
  --spotlight-aspect: 16 / 9;
  display: grid;
  gap: 14px;
}

.spotlight-stage {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 64px;
  align-items: stretch;
  gap: 12px;
}

.spotlight-frame {
  aspect-ratio: var(--spotlight-aspect, 16 / 9);
  border-radius: 20px;
  overflow: hidden;
  background: #0f1718;
  box-shadow: var(--shadow);
}

.spotlight-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #0f1718;
  cursor: pointer;
}

.spotlight-arrow {
  position: static;
  width: 64px;
  border: none;
  border-radius: 18px;
  background: linear-gradient(90deg, rgba(248, 252, 254, 0.96) 0%, rgba(248, 252, 254, 0.86) 100%);
  color: rgba(31, 69, 68, 0.92);
  font-size: 2.3rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color 0.18s ease, opacity 0.18s ease, transform 0.18s ease;
  text-shadow: 0 1px 16px rgba(255, 255, 255, 0.92);
}

.spotlight-arrow--next {
  background: linear-gradient(270deg, rgba(248, 252, 254, 0.96) 0%, rgba(248, 252, 254, 0.86) 100%);
}

.spotlight-arrow:hover {
  color: #16393a;
  transform: translateY(-1px);
}

.spotlight-selector {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
}

.spotlight-selector::-webkit-scrollbar {
  display: none;
}

.spotlight-chip {
  flex: 0 0 auto;
  border: 1px solid rgba(45, 92, 91, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: #335b5a;
  padding: 8px 14px;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.spotlight-chip:hover {
  transform: translateY(-1px);
  border-color: rgba(45, 92, 91, 0.26);
}

.spotlight-chip.is-active {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
  color: #ffffff;
}

.spotlight-viewer--demo {
  --spotlight-aspect: 2808 / 1192;
}

@media (max-width: 720px) {
  .comparison-panel {
    padding: 14px;
  }

  .spotlight-stage {
    grid-template-columns: 48px minmax(0, 1fr) 48px;
    gap: 8px;
  }

  .spotlight-arrow {
    width: 48px;
    font-size: 1.7rem;
  }
}

.code-block {
  position: relative;
}

.code-block pre {
  padding: 52px 20px 18px;
}

.copy-button {
  position: absolute;
  top: 14px;
  right: 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(247, 243, 235, 0.92);
  padding: 6px 12px;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
  backdrop-filter: blur(6px);
}

.copy-button:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.28);
  transform: translateY(-1px);
}

pre {
  margin: 0;
  padding: 18px 20px;
  border-radius: 18px;
  background: rgba(40, 34, 28, 0.95);
  color: #f7f3eb;
  overflow-x: auto;
  box-shadow: var(--shadow);
}

code {
  font-family: "SFMono-Regular", Menlo, Consolas, Monaco, monospace;
  font-size: 0.93rem;
  line-height: 1.7;
}

.footer {
  padding: 30px 0 44px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  text-align: center;
}

.footer p {
  margin: 0;
}

@media (max-width: 720px) {
  .hero-container {
    padding: 56px 0 44px;
  }

  .button-row {
    gap: 10px;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .comparison-block summary {
    flex-direction: column;
    align-items: flex-start;
  }
}
