/* [可选替换] 主题色：与项目品牌一致时修改 */
:root {
  --accent: #60a5fa;
  --accent-dim: rgba(96, 165, 250, 0.15);
}

body {
  background-color: #0a0a0a;
  color: #ffffff;
  font-family: "DM Sans", "Inter", system-ui, sans-serif;
  padding: 0;
  margin: 0;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}

#intro {
  position: relative;
  height: 100vh;
  width: 100vw;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#intro::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.45);
  z-index: 1;
}

#intro video {
  position: absolute;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
  object-fit: cover;
  filter: blur(6px);
  -webkit-filter: blur(6px);
}

#intro .content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
  padding: 20px;
  max-width: 85%;
  margin: 0 auto;
}

#intro h1 {
  font-size: clamp(32px, 5vw, 72px);
  font-weight: 700;
  margin: 10px 0;
  letter-spacing: -0.03em;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.5);
}

#intro h2 {
  font-size: clamp(16px, 2vw, 24px);
  margin: 15px 0 40px 0;
  font-weight: 400;
  color: #d1d5db;
  line-height: 1.5;
  letter-spacing: 0.01em;
}

.authors {
  font-size: clamp(14px, 1.5vw, 18px);
  color: #e5e7eb;
  line-height: 1.6;
  margin: 20px 0 8px;
}

.affiliations {
  font-size: 14px;
  color: #9ca3af;
  margin-bottom: 8px;
}

.footnote {
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 28px;
}

.button-row {
  margin-top: 8px;
}

.button {
  background-color: #ffffff;
  color: #000;
  padding: 12px 24px;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  margin: 0 8px 12px 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.95rem;
}

.button:hover {
  background-color: #e5e7eb;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.12);
}

section {
  max-width: 1200px;
  margin: 72px auto;
  padding: 0 5%;
}

#teaser {
  margin-top: 56px;
  margin-bottom: 56px;
}

.teaser-video-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0f0f0f;
  border: 1px solid #1f1f1f;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

.teaser-video-wrap video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.title {
  font-size: clamp(22px, 3.5vw, 36px);
  font-weight: 600;
  margin-bottom: 32px;
  border-left: 4px solid var(--accent);
  padding-left: 20px;
  letter-spacing: -0.02em;
  color: #f3f4f6;
}

.section-desc {
  font-size: 15px;
  color: #6b7280;
  margin: -20px 0 24px 20px;
  line-height: 1.5;
}

.description-justify {
  font-size: 17px;
  line-height: 1.75;
  color: #9ca3af;
  text-align: justify;
}

.description-justify p {
  margin-bottom: 1em;
}

.description-justify p:last-child {
  margin-bottom: 0;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  background: #0f0f0f;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

.comparison-table th,
.comparison-table td {
  padding: 14px 16px;
  text-align: center;
  border-bottom: 1px solid #1f1f1f;
}

.comparison-table th {
  background: #141414;
  color: #e5e7eb;
  font-weight: 600;
  font-size: 13px;
}

.comparison-table td:first-child {
  text-align: left;
  font-weight: 500;
  color: #f3f4f6;
}

.comparison-table td {
  color: #9ca3af;
}

.comparison-table tbody tr {
  transition: background 0.2s;
}

.comparison-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.comparison-table tr.ours-row {
  background: var(--accent-dim);
}

.comparison-table tr.ours-row td:first-child {
  color: var(--accent);
}

.comparison-table .best {
  font-weight: 700;
  color: #60a5fa !important;
}

.comparison-table .second {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.comparison-table .sub-header {
  background: #181818;
  font-size: 12px;
  color: #6b7280;
  font-weight: 500;
}

.comparison-table .vbench-divider {
  border-right: 1px solid #2a2a2a;
}

.video-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.video-gallery .video-card {
  background: #0f0f0f;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #1f1f1f;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.video-gallery .video-card:hover {
  border-color: #2a2a2a;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  transform: translateY(-4px);
}

.video-gallery .video-card .video-wrap {
  position: relative;
  background: #141414;
}

.video-gallery .video-card video {
  width: 100%;
  height: auto;
  display: block;
}

.video-gallery .video-card .caption {
  padding: 14px 18px;
  font-size: 14px;
  color: #9ca3af;
  font-weight: 500;
}

.bibtex-section {
  background: linear-gradient(180deg, #0a0a0a 0%, #0f0f0f 100%);
  padding: 72px 10%;
  margin-top: 80px;
  border-top: 1px solid #1a1a1a;
}

.bibtex-code {
  background: #141414;
  color: #9ca3af;
  padding: 28px 32px;
  border-radius: 12px;
  text-align: left;
  font-family: "JetBrains Mono", "Fira Code", "Courier New", monospace;
  overflow-x: auto;
  white-space: pre;
  font-size: 13px;
  line-height: 1.6;
  border: 1px solid #1f1f1f;
}

.figure-wrap {
  background: #0f0f0f;
  border: 1px solid #1f1f1f;
  border-radius: 14px;
  padding: 24px;
  overflow: hidden;
  margin-bottom: 48px;
}

.figure-wrap:last-child {
  margin-bottom: 0;
}

.figure-wrap img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}

.pdf-viewer {
  width: 100%;
  height: min(88vh, 920px);
  border: none;
  border-radius: 8px;
  display: block;
  background: #141414;
}

.pdf-fallback {
  display: inline-block;
  margin-top: 14px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.pdf-fallback:hover {
  text-decoration: underline;
}

.method-image-wrap {
  background: #0f0f0f;
  border: 1px solid #1f1f1f;
  border-radius: 14px;
  padding: 24px;
  overflow: hidden;
}

.method-image-wrap img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}

.method-caption {
  margin-top: 16px;
  font-size: 15px;
  color: #9ca3af;
  line-height: 1.7;
}

.method-caption strong {
  color: #e5e7eb;
}

/* Motivation / Method — Infinite-World 式文字概述 */
.overview-block {
  background: #0f0f0f;
  border: 1px solid #1f1f1f;
  border-radius: 14px;
  padding: 36px 40px;
}

.overview-block img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  margin-bottom: 28px;
}

.overview-lead {
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 600;
  color: #f3f4f6;
  line-height: 1.55;
  margin: 0 0 1.35em 0;
}

.overview-item {
  font-size: clamp(17px, 1.85vw, 22px);
  color: #9ca3af;
  line-height: 1.75;
  margin: 0 0 1.25em 0;
  text-align: justify;
}

.overview-item:last-child {
  margin-bottom: 0;
}

.overview-item strong {
  color: #e5e7eb;
  font-weight: 600;
}

footer {
  text-align: center;
  padding: 40px 5% 60px;
  color: #6b7280;
  font-size: 14px;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .video-gallery {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  #intro .content {
    max-width: 95%;
  }

  .comparison-table {
    font-size: 12px;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 10px 8px;
  }
}
