:root {
  color-scheme: light;
  --ink: #16202a;
  --muted: #5b6673;
  --subtle: #eef2f5;
  --line: #d8e0e7;
  --paper: #ffffff;
  --soft: #f7f9fb;
  --accent: #0f7492;
  --accent-strong: #123f5a;
  --accent-soft: #e7f4f5;
  --blue: #0f5da8;
  --teal: #1b8a83;
  --gold: #b7821b;
  --arxiv: #b31b1b;
  --video: #d14124;
  --github: #24292f;
  --huggingface: #ffb000;
  --warm: #946b1f;
  --shadow: 0 14px 36px rgba(22, 32, 42, 0.08);
  --shadow-strong: 0 18px 44px rgba(22, 32, 42, 0.12);
  --radius: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: linear-gradient(180deg, #f3f7fa 0%, #ffffff 420px, #f8fafb 100%);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
}

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

a:hover {
  text-decoration: underline;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-top: 5px solid var(--blue);
  border-bottom: 1px solid rgba(18, 63, 90, 0.14);
  background: #f7fbfc;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(247, 251, 252, 0.92), rgba(255, 255, 255, 0.98) 68%, rgba(255, 251, 242, 0.98)),
    url("framework.webp") center 36% / cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: 150px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), #ffffff);
}

.hero-inner {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: 40px 0 52px;
  text-align: center;
}

.venue {
  margin: 0 0 14px;
  color: var(--warm);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.logo-strip {
  display: grid;
  grid-template-columns: repeat(5, max-content);
  align-items: center;
  justify-content: center;
  gap: 32px;
  max-width: 1120px;
  margin: 0 auto 34px;
}

.logo-card {
  display: flex;
  min-width: 0;
  min-height: 96px;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
  color: var(--ink);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 160ms ease;
}

.logo-card:hover {
  text-decoration: none;
  opacity: 0.78;
}

.logo-card img {
  width: auto;
  max-width: 228px;
  height: 78px;
  object-fit: contain;
}

.zju-logo img,
.tsinghua-logo img {
  max-width: 87px;
  height: 87px;
}

.shlab-logo img {
  max-width: 222px;
  height: 87px;
}

.zgca-logo img {
  max-width: 225px;
  height: 87px;
}

.deeprobotics-logo img {
  max-width: 225px;
  height: 69px;
  filter: invert(1);
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 1040px;
  margin: 0 auto 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 5.8vw, 4.25rem);
  line-height: 1.04;
  font-weight: 700;
  letter-spacing: 0;
}

.mobile-title-break {
  display: none;
}

.hero-subtitle {
  max-width: 820px;
  margin: 0 auto 16px;
  color: #435365;
  font-size: clamp(1rem, 1.55vw, 1.22rem);
  line-height: 1.55;
}

.hero-highlights {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  max-width: 900px;
  margin: 0 auto 22px;
}

.hero-highlights span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  border: 1px solid rgba(18, 63, 90, 0.15);
  border-radius: var(--radius);
  padding: 6px 11px;
  background: rgba(255, 255, 255, 0.78);
  color: #38505f;
  font-size: 0.84rem;
  font-weight: 750;
  box-shadow: 0 8px 22px rgba(22, 32, 42, 0.05);
}

h2 {
  margin: 0 0 22px;
  font-size: clamp(1.45rem, 2.2vw, 2rem);
  line-height: 1.2;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
  line-height: 1.3;
  letter-spacing: 0;
}

.authors,
.affiliations,
.author-notes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 14px;
  max-width: 960px;
  margin: 0 auto;
  min-width: 0;
}

.authors {
  color: var(--accent-strong);
  font-size: 1.02rem;
  font-weight: 600;
  margin-top: 4px;
}

.affiliations {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.93rem;
}

.author-notes {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.88rem;
}

sup {
  font-size: 0.68em;
  line-height: 0;
}

.resource-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 30px;
}

.resource-button,
button {
  min-height: 42px;
  border: 1px solid var(--accent-strong);
  border-radius: var(--radius);
  padding: 9px 16px;
  background: var(--accent-strong);
  color: #ffffff;
  font: inherit;
  font-weight: 700;
  line-height: 1.25;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(18, 63, 90, 0.08);
}

.resource-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 118px;
}

.resource-button svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.resource-button svg path {
  vector-effect: non-scaling-stroke;
}

.resource-button:hover {
  background: var(--accent);
  text-decoration: none;
}

.resource-button.disabled {
  border-color: rgba(18, 63, 90, 0.14);
  background: rgba(255, 255, 255, 0.86);
  cursor: default;
}

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

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

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

.resource-dataset.disabled {
  color: #8b5f00;
  background: #fff9e8;
}

.resource-bibtex {
  border-color: #0f5da8;
  background: #0f5da8;
}

.resource-bibtex:hover {
  background: #0b487f;
}

.resource-button.disabled:hover {
  background: rgba(255, 255, 255, 0.86);
  cursor: default;
}

.section {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: 66px 0;
}

.section + .section {
  border-top: 0;
}

.narrow {
  width: min(860px, calc(100% - 36px));
}

.teaser-section {
  padding-top: 60px;
}

.section-copy {
  max-width: 100%;
  margin: -8px 0 24px;
  color: #435365;
  font-size: 1rem;
  line-height: 1.58;
}

.dataset-section {
  width: min(1120px, calc(100% - 36px));
  padding-top: 54px;
}

.dataset-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: end;
  margin-bottom: 14px;
}

.dataset-header h2 {
  margin-bottom: 12px;
}

.dataset-header p {
  max-width: 900px;
  margin: 0;
  color: #435365;
  font-size: 1rem;
  line-height: 1.58;
}

.dataset-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  border: 1px solid rgba(183, 130, 27, 0.32);
  border-radius: var(--radius);
  padding: 5px 10px;
  background: #fff9e8;
  color: #8b5f00;
  font-size: 0.76rem;
  font-weight: 800;
}

.section h2 {
  display: flex;
  align-items: center;
  gap: 12px;
}

.section h2::before {
  content: "";
  flex: 0 0 30px;
  width: 30px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), var(--teal), var(--gold));
}

.figure-wide,
.cover-figure,
.dataset-figure,
.results-grid figure {
  margin: 0;
}

.figure-wide,
.cover-figure,
.dataset-figure {
  border: 1px solid rgba(18, 63, 90, 0.12);
  border-radius: var(--radius);
  padding: 10px;
  background: #ffffff;
  box-shadow: var(--shadow-strong);
}

.figure-wide img,
.cover-figure img,
.dataset-figure img,
.results-grid img {
  width: 100%;
  border: 1px solid rgba(18, 63, 90, 0.1);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 12px 28px rgba(22, 32, 42, 0.08);
}

.cover-figure {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 251, 0.98)),
    #ffffff;
}

.cover-figure img {
  max-height: 760px;
  object-fit: contain;
}

.dataset-figure {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 251, 0.98)),
    #ffffff;
}

.dataset-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.dataset-grid article {
  border: 1px solid rgba(18, 63, 90, 0.12);
  border-radius: var(--radius);
  padding: 12px;
  background:
    linear-gradient(180deg, #ffffff, #f8fafb),
    #ffffff;
  box-shadow: 0 10px 24px rgba(22, 32, 42, 0.045);
}

.dataset-grid span {
  display: block;
  color: var(--accent-strong);
  font-size: 1rem;
  font-weight: 850;
  line-height: 1.2;
}

.dataset-grid p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.93rem;
  text-align: center;
}

.narrow p {
  margin: 0 0 16px;
  color: #2b3743;
  font-size: 1.02rem;
}

.abstract-section {
  width: min(1120px, calc(100% - 36px));
}

.abstract-section > p {
  max-width: 900px;
  margin-right: auto;
  margin-left: auto;
  text-align: justify;
  text-align-last: auto;
}

.abstract-figure {
  width: min(860px, 100%);
  margin: 0 auto 28px;
}

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

.motivation-section {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 34px;
  align-items: center;
  padding-top: 54px;
}

.motivation-heading {
  grid-column: 1 / -1;
}

.motivation-heading h2 {
  margin-bottom: 10px;
}

.motivation-subtitle {
  margin: 0;
  color: #435365;
  font-size: clamp(1.08rem, 1.7vw, 1.35rem);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0;
}

.motivation-figure {
  margin: 0;
  border: 1px solid rgba(18, 63, 90, 0.12);
  border-radius: var(--radius);
  padding: 10px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 251, 0.98)),
    #ffffff;
  box-shadow: var(--shadow-strong);
}

.motivation-figure img {
  width: 100%;
  border: 1px solid rgba(18, 63, 90, 0.1);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(22, 32, 42, 0.08);
}

.motivation-copy {
  min-width: 0;
}

.motivation-copy p:not(.eyebrow) {
  margin: 0 0 14px;
  color: #2b3743;
  font-size: 1.01rem;
  line-height: 1.58;
}

.motivation-points {
  display: grid;
  gap: 10px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.motivation-points li {
  position: relative;
  border-left: 3px solid rgba(15, 116, 146, 0.42);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 10px 12px 10px 14px;
  background: #f7fafb;
  color: #354453;
  font-size: 0.94rem;
  line-height: 1.45;
}

.method-grid,
.results-grid {
  display: grid;
  gap: 20px;
}

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

.method-card {
  min-height: 220px;
  border: 1px solid rgba(18, 63, 90, 0.12);
  border-top: 4px solid #61a8b5;
  border-radius: var(--radius);
  padding: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 250, 251, 0.96)),
    #ffffff;
  box-shadow: 0 12px 28px rgba(22, 32, 42, 0.055);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.method-card:hover {
  box-shadow: var(--shadow-strong);
  transform: translateY(-2px);
}

.method-card:nth-child(2) {
  border-top-color: #8a5aa8;
}

.method-card:nth-child(3) {
  border-top-color: #d49a25;
}

.method-card p {
  margin: 0;
  color: var(--muted);
}

.section-copy,
.dataset-header p,
.motivation-copy p:not(.eyebrow) {
  text-align: justify;
  text-align-last: auto;
  text-wrap: pretty;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.method-card p:not(.eyebrow) {
  text-align: left;
  text-wrap: pretty;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.keep-together {
  white-space: nowrap;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--warm);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.results-grid figure:first-child {
  grid-column: 1 / -1;
}

.results-grid figure {
  border: 1px solid rgba(18, 63, 90, 0.12);
  border-radius: var(--radius);
  padding: 12px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(22, 32, 42, 0.055);
}

.demo-section {
  width: min(1180px, calc(100% - 36px));
  padding-top: 54px;
}

.demo-frame {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  min-height: 360px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  padding: 0;
  overflow: hidden;
  background: #0d1720;
  color: #ffffff;
  text-align: center;
  box-shadow: var(--shadow-strong);
}

.demo-frame-video {
  border-color: rgba(18, 63, 90, 0.16);
  background: #081018;
}

.demo-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    rgba(7, 22, 31, 0.2);
  background-size: 46px 46px;
  pointer-events: none;
}

.demo-frame > * {
  position: relative;
  z-index: 1;
}

.demo-frame .eyebrow {
  color: #d9b862;
}

.demo-frame h3 {
  margin-bottom: 8px;
  font-size: clamp(1.8rem, 3.4vw, 2.75rem);
}

.demo-frame p:not(.eyebrow) {
  max-width: 660px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.88);
}

.demo-play {
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
}

.demo-play svg {
  width: 34px;
  height: 34px;
  margin-left: 4px;
  fill: currentColor;
}

.demo-video {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #000000;
}

.video-placeholder {
  margin-top: 28px;
  border: 1px dashed #9db1c0;
  border-radius: var(--radius);
  padding: 24px;
  background: var(--accent-soft);
  text-align: center;
}

.video-placeholder h3 {
  font-size: 1.35rem;
}

.video-placeholder p {
  max-width: 640px;
  margin: 0 auto;
  color: var(--muted);
}

.bibtex-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

button:hover {
  background: var(--accent);
}

#copy-status {
  color: var(--muted);
  font-size: 0.92rem;
}

pre {
  margin: 0;
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid rgba(18, 63, 90, 0.14);
  border-radius: var(--radius);
  padding: 18px;
  background: #ffffff;
  color: #26313c;
  font-size: 0.92rem;
  line-height: 1.55;
  box-shadow: 0 12px 28px rgba(22, 32, 42, 0.055);
}

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

.site-footer {
  border-top: 1px solid rgba(18, 63, 90, 0.12);
  padding: 30px 18px 38px;
  background: #ffffff;
  color: var(--muted);
  text-align: center;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 820px) {
  .hero-inner {
    padding-top: 42px;
  }

  .logo-strip {
    grid-template-columns: repeat(3, max-content);
    gap: 18px 22px;
  }

  .method-grid,
  .results-grid,
  .dataset-header,
  .motivation-section {
    grid-template-columns: 1fr;
  }

  .motivation-section {
    gap: 22px;
  }

  .dataset-status {
    justify-self: start;
  }

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

  .method-card {
    min-height: auto;
  }

  .results-grid figure:first-child {
    grid-column: auto;
  }
}

@media (max-width: 560px) {
  .hero-inner,
  .section,
  .narrow {
    width: calc(100vw - 48px);
    max-width: calc(100vw - 48px);
  }

  main,
  .hero,
  .site-footer {
    max-width: 100vw;
    overflow-x: clip;
  }

  .section > *,
  .abstract-section > p,
  .motivation-copy,
  figure,
  video {
    max-width: 100%;
    min-width: 0;
  }

  p,
  li,
  figcaption {
    overflow-wrap: break-word;
    word-break: normal;
  }

  h1 {
    max-width: 100%;
    font-size: 1.16rem;
    line-height: 1.2;
    word-break: break-word;
  }

  .hero-subtitle {
    font-size: 0.96rem;
  }

  .hero-highlights {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-highlights span {
    justify-content: center;
    width: 100%;
    text-align: center;
  }

  .mobile-title-break {
    display: block;
  }

  .authors {
    flex-direction: column;
    gap: 6px 9px;
    font-size: 0.92rem;
  }

  .affiliations {
    flex-direction: column;
    gap: 6px 9px;
    font-size: 0.84rem;
  }

  .author-notes {
    flex-direction: column;
    gap: 6px 9px;
    font-size: 0.82rem;
  }

  .resource-bar {
    width: 100%;
    max-width: 100%;
  }

  .resource-button {
    width: 100%;
  }

  .logo-strip {
    grid-template-columns: repeat(2, max-content);
    gap: 16px 22px;
  }

  .logo-card {
    min-height: 54px;
    padding: 0;
  }

  .logo-card img {
    max-width: 132px;
    height: 42px;
  }

  .zju-logo img,
  .tsinghua-logo img {
    max-width: 48px;
    height: 48px;
  }

  .authors span,
  .affiliations span,
  .author-notes span {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .demo-frame {
    min-height: 300px;
    padding: 24px 18px;
  }

  .bibtex-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

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