:root {
  --bg: #f6f9fc;
  --card: #ffffff;
  --text: #172033;
  --muted: #64748b;
  --line: #e2e8f0;
  --blue: #2f88d6;
  --teal: #32c49b;
  --rose: #ef5b78;
  --gold: #f4b84a;
  --paper: #2563eb;
  --arxiv: #b31b1b;
  --modelscope: #7c3aed;
  --github: #24292f;
  --video: #ff0033;
  --dark: #111827;
  --shadow: 0 24px 70px rgba(15, 23, 42, 0.10);
  --soft-shadow: 0 14px 40px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  background:
    radial-gradient(circle at 12% 8%, rgba(47, 136, 214, 0.18), transparent 28rem),
    radial-gradient(circle at 86% 12%, rgba(239, 91, 120, 0.14), transparent 24rem),
    radial-gradient(circle at 72% 78%, rgba(50, 196, 155, 0.12), transparent 28rem),
    var(--bg);
}

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

a {
  color: inherit;
  text-decoration: none;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 660px;
  padding: 100px 24px 24px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(246, 249, 252, 0.92)),
    linear-gradient(90deg, rgba(47, 136, 214, 0.14), rgba(239, 91, 120, 0.13), rgba(50, 196, 155, 0.13));
}

.hero::before,
.hero::after {
  position: absolute;
  content: "";
  border-radius: 999px;
  pointer-events: none;
}

.hero::before {
  width: 560px;
  height: 560px;
  top: 130px;
  left: 50%;
  transform: translateX(-50%);
  border: 34px solid transparent;
  border-top-color: rgba(47, 136, 214, 0.30);
  border-right-color: rgba(239, 91, 120, 0.28);
  border-bottom-color: rgba(244, 184, 74, 0.30);
  border-left-color: rgba(50, 196, 155, 0.30);
  opacity: 0.58;
}

.hero::after {
  width: 720px;
  height: 260px;
  top: 172px;
  left: 50%;
  transform: translateX(-50%) rotate(-7deg);
  background: linear-gradient(90deg, rgba(47, 136, 214, 0.08), rgba(255, 255, 255, 0), rgba(239, 91, 120, 0.08));
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  height: 76px;
  padding: 0 clamp(24px, 5vw, 108px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
  backdrop-filter: blur(18px);
}

.nav-brand {
  flex: 0 0 auto;
  color: #6d5be7;
  font-size: 1.45rem;
  font-weight: 850;
  letter-spacing: -0.04em;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(18px, 3vw, 44px);
  min-width: 0;
}

.nav-links a {
  color: #4b4863;
  font-size: 1.02rem;
  font-weight: 720;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-brand:hover {
  color: #6d5be7;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 96px auto 56px;
  text-align: center;
}

h1,
h2 {
  margin: 0;
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.site-title {
  max-width: 1040px;
  margin: 0 auto;
}

.brand {
  display: block;
  width: fit-content;
  margin: 0 auto 16px;
  font-size: clamp(4.3rem, 11vw, 8.8rem);
  font-weight: 900;
  line-height: 0.92;
  background: linear-gradient(90deg, var(--blue), var(--rose), var(--teal));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.title-subline {
  display: block;
  max-width: 940px;
  margin: 0 auto;
  color: #111827;
  font-size: clamp(1.45rem, 3.4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.14;
}

.subtitle {
  max-width: 780px;
  margin: 24px auto 18px;
  color: #334155;
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  font-weight: 520;
}

.authors {
  max-width: 920px;
  margin: 24px auto 0;
  color: #172033;
  font-size: 1.03rem;
  font-weight: 650;
}

.authors a {
  color: #5b4bd8;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
}

.authors a:hover {
  color: #2f88d6;
}

.affiliations {
  max-width: 980px;
  margin: 10px auto 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.resource-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 34px auto 0;
}

.resource-button {
  --button-color: var(--dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 18px;
  color: #fff;
  font-weight: 760;
  border-radius: 999px;
  background: var(--button-color);
  box-shadow: 0 12px 30px color-mix(in srgb, var(--button-color) 30%, transparent);
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.resource-button.paper {
  --button-color: var(--paper);
}

.resource-button.arxiv {
  --button-color: var(--arxiv);
}

.resource-button.modelscope {
  --button-color: var(--modelscope);
}

.resource-button.github {
  --button-color: var(--github);
}

.resource-button.video {
  --button-color: var(--video);
}

.resource-button:hover {
  transform: translateY(-2px);
  filter: brightness(0.95);
  box-shadow: 0 16px 36px color-mix(in srgb, var(--button-color) 38%, transparent);
}

.resource-button.disabled {
  cursor: not-allowed;
  opacity: 0.86;
}

.resource-button.disabled:hover {
  transform: none;
  filter: none;
}

.button-icon {
  display: inline-grid;
  place-items: center;
  width: 23px;
  height: 23px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.16);
}

.button-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.resource-button small {
  margin-left: -2px;
  padding: 1px 6px 2px;
  color: var(--button-color);
  font-size: 0.68rem;
  line-height: 1.1;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
}

main {
  max-width: 1120px;
  margin: -72px auto 0;
  padding: 0 24px 72px;
  position: relative;
  z-index: 3;
}

.section {
  scroll-margin-top: 24px;
  margin: 72px 0;
}

.section:first-child {
  margin-top: 0;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 18px;
  margin-bottom: 28px;
  text-align: left;
}

.section-heading.compact {
  margin-bottom: 24px;
}

.section-number {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  min-width: 46px;
  height: 44px;
  padding: 0 12px;
  color: #725ce6;
  font-size: 0.92rem;
  font-weight: 850;
  border-radius: 13px;
  background: #eee7ff;
}

.section-heading h2 {
  color: #17152e;
  font-size: clamp(1.85rem, 3vw, 2.8rem);
  font-weight: 880;
  letter-spacing: -0.045em;
}

.card,
.figure-card,
.video-card {
  border: 1px solid rgba(226, 232, 240, 0.88);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.text-card,
.description-card {
  padding: clamp(24px, 4vw, 42px);
}

.description-card {
  margin-top: 18px;
  box-shadow: var(--soft-shadow);
}

.text-card p,
.description-card p {
  margin: 0;
  color: #263244;
  font-size: 1.05rem;
}

.text-card p + p {
  margin-top: 18px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.stat-card {
  position: relative;
  overflow: hidden;
  min-height: 154px;
  padding: 24px 18px;
  border: 1px solid rgba(226, 232, 240, 0.92);
  border-radius: 28px;
  text-align: center;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--soft-shadow);
}

.stat-card::before {
  position: absolute;
  inset: 0 0 auto;
  content: "";
  height: 5px;
  background: linear-gradient(90deg, var(--blue), var(--rose), var(--teal), var(--gold));
}

.stat-card strong {
  display: block;
  margin: 14px 0 8px;
  color: #101827;
  font-size: clamp(1.75rem, 3vw, 2.45rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.stat-card span {
  display: block;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 720;
}

.figure-card {
  overflow: hidden;
  padding: 16px;
}

.figure-card img {
  width: 100%;
  border-radius: 20px;
  background: #fff;
}

.wide-figure img {
  border: 1px solid rgba(226, 232, 240, 0.75);
}

figcaption {
  margin: 14px 8px 4px;
  color: var(--muted);
  text-align: center;
  font-size: 0.96rem;
  font-weight: 620;
}

.video-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(135deg, rgba(17, 24, 39, 0.82), rgba(255, 0, 51, 0.68)),
    radial-gradient(circle at 25% 30%, rgba(255, 255, 255, 0.18), transparent 18rem);
}

.video-card iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.video-placeholder {
  display: grid;
  place-items: center;
  align-content: center;
  height: 100%;
  color: #fff;
  text-align: center;
}

.video-placeholder span {
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.34);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.16);
}

.video-placeholder svg {
  width: 50px;
  height: 50px;
  fill: currentColor;
}

.video-placeholder p {
  margin: 0;
  font-size: clamp(1.2rem, 2.5vw, 1.65rem);
  font-weight: 760;
}

.bibtex-card {
  padding: 0;
  overflow: hidden;
}

.bibtex-card pre {
  margin: 0;
  padding: clamp(22px, 4vw, 34px);
  overflow-x: auto;
  color: #e5e7eb;
  font-size: 1rem;
  line-height: 1.6;
  background: #111827;
}

.bibtex-card code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

.footer {
  padding: 34px 24px 46px;
  color: var(--muted);
  text-align: center;
  border-top: 1px solid rgba(226, 232, 240, 0.9);
  background: rgba(255, 255, 255, 0.58);
}

.footer p {
  max-width: 760px;
  margin: 0 auto;
  font-size: 0.92rem;
}

@media (max-width: 860px) {
  .topbar {
    height: auto;
    min-height: 76px;
    padding: 14px 20px;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
  }

  .nav-links {
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px 20px;
  }

  .nav-links a {
    font-size: 0.94rem;
  }

  .hero {
    min-height: 640px;
    padding-top: 142px;
  }

  .hero::before {
    width: 420px;
    height: 420px;
    border-width: 24px;
  }

  .hero-inner {
    margin-top: 78px;
  }

  main {
    margin-top: -46px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .hero,
  main {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero {
    padding-top: 162px;
  }

  .nav-brand {
    font-size: 1.28rem;
  }

  .nav-links {
    gap: 8px 14px;
  }

  .nav-links a {
    font-size: 0.84rem;
  }

  .hero::before {
    width: 300px;
    height: 300px;
    top: 170px;
    border-width: 18px;
  }

  .hero-inner {
    margin-top: 58px;
  }

  .brand {
    font-size: clamp(4rem, 18vw, 6rem);
  }

  .title-subline {
    font-size: clamp(1.25rem, 7vw, 1.85rem);
  }

  .resource-buttons {
    flex-direction: column;
    align-items: stretch;
    max-width: 310px;
  }

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

  .section {
    margin: 54px 0;
  }

  .section-heading {
    gap: 12px;
  }

  .section-number {
    min-width: 48px;
    height: 46px;
    font-size: 0.95rem;
    border-radius: 13px;
  }

  .section-heading h2 {
    font-size: clamp(2rem, 11vw, 3rem);
  }

  .card,
  .figure-card,
  .video-card,
  .stat-card {
    border-radius: 22px;
  }

  .figure-card {
    padding: 10px;
  }

  .figure-card img {
    border-radius: 15px;
  }
}
