html {
  scroll-behavior: smooth;
}

:root {
  --bg0: #f6f8ff;
  --bg1: #ffffff;
  --panel: rgba(255, 255, 255, 0.75);
  --panel-strong: rgba(255, 255, 255, 0.92);
  --border: rgba(16, 24, 40, 0.12);
  --text: rgba(16, 24, 40, 0.92);
  --muted: rgba(16, 24, 40, 0.68);
  --accent0: #4f46e5;
  --accent1: #06b6d4;
  --accent2: #10b981;
  --shadow: 0 12px 34px rgba(16, 24, 40, 0.14);
  --shadow-soft: 0 10px 24px rgba(16, 24, 40, 0.10);
  --radius: 14px;
}

body {
  font-family: 'Noto Sans', sans-serif;
  color: var(--text);
  background: radial-gradient(1200px 720px at 18% -10%, rgba(79, 70, 229, 0.14), rgba(246, 248, 255, 0) 66%),
              radial-gradient(980px 620px at 90% 0%, rgba(6, 182, 212, 0.12), rgba(246, 248, 255, 0) 62%),
              radial-gradient(780px 520px at 55% 22%, rgba(16, 185, 129, 0.08), rgba(246, 248, 255, 0) 65%),
              linear-gradient(180deg, var(--bg1), var(--bg0));
  min-height: 100vh;
}

body.lang-en .lang-zh {
  display: none !important;
}

body.lang-zh .lang-en {
  display: none !important;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(16, 24, 40, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(16, 24, 40, 0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity: 0.10;
  transform: translateZ(0);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(520px 240px at 20% 10%, rgba(16, 185, 129, 0.10), transparent 62%),
              radial-gradient(700px 300px at 82% 0%, rgba(79, 70, 229, 0.10), transparent 64%);
  opacity: 0.85;
  transform: translateZ(0);
}

.hero {
  background: transparent;
}

.section {
  position: relative;
}

.section::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(6, 182, 212, 0.35), rgba(79, 70, 229, 0.25), transparent);
  opacity: 0.6;
}

.section .container {
  position: relative;
  z-index: 1;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(16, 24, 40, 0.12);
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(10px);
}

.navbar .navbar-item {
  color: var(--muted);
  font-weight: 600;
}

.navbar .navbar-item:hover {
  color: var(--text);
  background: rgba(16, 24, 40, 0.04);
}

.navbar .navbar-item:focus {
  color: var(--text);
  background: rgba(16, 24, 40, 0.04);
}

.navbar .navbar-burger span {
  background: rgba(16, 24, 40, 0.72);
}

.navbar-menu.is-active {
  background: rgba(255, 255, 255, 0.9);
}

.lang-toggle .button.lang-btn {
  border: 1px solid rgba(16, 24, 40, 0.12);
  background: rgba(255, 255, 255, 0.75);
  color: rgba(16, 24, 40, 0.78);
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(16, 24, 40, 0.08);
}

.lang-toggle .button.lang-btn.is-active {
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.12), rgba(6, 182, 212, 0.10)), rgba(255, 255, 255, 0.85);
  border-color: rgba(79, 70, 229, 0.22);
  color: rgba(16, 24, 40, 0.92);
}

.lang-toggle .button.lang-btn:focus-visible {
  outline: 3px solid rgba(6, 182, 212, 0.3);
  outline-offset: 2px;
}

.tech-hero {
  position: relative;
  overflow: hidden;
}

.tech-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(1200px 540px at 50% 0%, rgba(79, 70, 229, 0.18), transparent 62%),
              radial-gradient(980px 520px at 65% 10%, rgba(6, 182, 212, 0.14), transparent 62%),
              linear-gradient(180deg, rgba(246, 248, 255, 0.55), rgba(246, 248, 255, 0));
  opacity: 1;
}

.tech-hero .hero-body {
  position: relative;
  z-index: 1;
}

.publication-title {
  background: linear-gradient(90deg, rgba(16, 24, 40, 0.92), rgba(79, 70, 229, 0.92), rgba(6, 182, 212, 0.92));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.02em;
}

.tech-hero .subtitle {
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
}

.subtitle {
  color: var(--muted) !important;
}

.content {
  color: var(--muted);
}

.content p,
.content li {
  line-height: 1.6;
}

.content strong {
  color: var(--text);
}

.content a {
  color: rgba(6, 182, 212, 0.95);
}

.content a:hover {
  color: rgba(16, 185, 129, 0.95);
}

.publication-links .button.is-dark {
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.92), rgba(6, 182, 212, 0.86));
  border: 1px solid rgba(16, 24, 40, 0.14);
  box-shadow: 0 12px 28px rgba(16, 24, 40, 0.14), 0 0 0 1px rgba(6, 182, 212, 0.10) inset;
  transition: transform 140ms ease, box-shadow 140ms ease, filter 140ms ease;
}

.publication-links .button.is-dark:hover {
  transform: translateY(-1px);
  filter: saturate(1.06);
  box-shadow: 0 16px 38px rgba(16, 24, 40, 0.18), 0 0 0 1px rgba(16, 185, 129, 0.14) inset;
}

.publication-links .button.is-dark:active {
  transform: translateY(0);
}

.title.is-3,
.title.is-4 {
  color: var(--text);
}

.title.is-4 {
  position: relative;
}

.title.is-4::after {
  content: "";
  display: block;
  width: 64px;
  height: 2px;
  margin-top: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent1), var(--accent0));
  opacity: 0.75;
}

.teaser video {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(16, 24, 40, 0.12);
}

.content figure.image img {
  border-radius: var(--radius);
  border: 1px solid rgba(16, 24, 40, 0.12);
  box-shadow: var(--shadow);
}

.demo-videos {
  margin-top: 1rem;
  margin-bottom: 1.25rem;
}

.demo-video-player {
  margin-bottom: 0.75rem;
}

.demo-video-carousel {
  position: relative;
}

.demo-carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(16, 24, 40, 0.12);
  background: rgba(255, 255, 255, 0.86);
  color: rgba(16, 24, 40, 0.82);
  box-shadow: 0 10px 22px rgba(16, 24, 40, 0.10);
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 2;
  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
}

.demo-carousel-nav:hover {
  transform: translateY(-50%) scale(1.03);
  border-color: rgba(6, 182, 212, 0.35);
  box-shadow: 0 14px 30px rgba(16, 24, 40, 0.14);
}

.demo-carousel-prev {
  left: -10px;
}

.demo-carousel-next {
  right: -10px;
}

.demo-carousel-nav span {
  font-size: 22px;
  line-height: 1;
  margin-top: -2px;
}

.demo-video-strip {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.75rem;
  justify-content: center;
  overflow-x: auto;
  padding: 0.25rem 2.25rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.demo-video-thumb {
  scroll-snap-align: start;
  min-width: 220px;
  max-width: 220px;
  border-radius: var(--radius);
  border: 1px solid rgba(16, 24, 40, 0.12);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 10px 22px rgba(16, 24, 40, 0.08);
  overflow: hidden;
  padding: 0;
  text-align: left;
  cursor: pointer;
  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
}

.demo-video-thumb:hover {
  transform: translateY(-1px);
  border-color: rgba(6, 182, 212, 0.32);
  box-shadow: 0 14px 30px rgba(16, 24, 40, 0.12);
}

.demo-video-thumb.is-active {
  border-color: rgba(79, 70, 229, 0.35);
  box-shadow: 0 16px 34px rgba(16, 24, 40, 0.14);
}

.demo-video-thumb video {
  width: 100%;
  height: 124px;
  display: block;
  object-fit: cover;
  background: rgba(16, 24, 40, 0.03);
}

.demo-video-caption {
  padding: 0.6rem 0.75rem 0.7rem;
  font-weight: 800;
  font-size: 0.9rem;
  color: rgba(16, 24, 40, 0.86);
}

.demo-video-thumb.is-active .demo-video-caption {
  color: rgba(16, 24, 40, 0.95);
}

.demo-video-thumb:focus-visible {
  outline: 3px solid rgba(6, 182, 212, 0.3);
  outline-offset: 2px;
}

.demo-video-card {
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.78));
  border: 1px solid rgba(16, 24, 40, 0.12);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.demo-video-card video {
  width: 100%;
  height: auto;
  display: block;
  background: rgba(16, 24, 40, 0.03);
}

.value-demo {
  max-width: 900px;
  margin: 0 auto;
}

.value-demo-overlay {
  position: relative;
}

.value-demo-overlay video {
  position: relative;
  z-index: 1;
  width: 100%;
  display: block;
  border-radius: var(--radius);
  border: 1px solid rgba(16, 24, 40, 0.12);
  box-shadow: var(--shadow);
  background: rgba(16, 24, 40, 0.03);
}

#value-demo-canvas {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
  cursor: grab;
  pointer-events: none;
  z-index: 2;
}

.value-demo-overlay.is-dragging #value-demo-canvas {
  cursor: grabbing;
}

.value-demo-hint {
  position: absolute;
  left: 0.8rem;
  top: 0.7rem;
  z-index: 3;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.86);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
  background: rgba(16, 24, 40, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 0.25rem 0.55rem;
  backdrop-filter: blur(6px);
}

.value-demo-status {
  margin-top: 0.55rem;
  font-size: 0.92rem;
  color: rgba(16, 24, 40, 0.62);
}

.content code {
  background: rgba(16, 24, 40, 0.04);
  color: rgba(16, 185, 129, 0.9);
  border: 1px solid rgba(16, 24, 40, 0.12);
  border-radius: 8px;
}

.footer {
  background: transparent;
}

.footer .content,
.footer a {
  color: var(--muted) !important;
}

.footer a:hover {
  color: var(--text) !important;
}

.footer .icon-link {
  color: var(--text);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .publication-links .button.is-dark,
  .key-cards .box {
    transition: none;
  }
}

.content figure.image {
  margin-top: 1rem;
}

.footer .icon-link {
  font-size: 25px;
}

.link-block a {
    margin-top: 5px;
    margin-bottom: 5px;
}

.dnerf {
  font-variant: small-caps;
}


.teaser .hero-body {
  padding-top: 0;
  padding-bottom: 3rem;
}

.teaser {
  font-family: 'Google Sans', sans-serif;
}


.publication-title {
}

.publication-banner {
  max-height: parent;

}

.publication-banner video {
  position: relative;
  left: auto;
  top: auto;
  transform: none;
  object-fit: fit;
}

.publication-header .hero-body {
}

.publication-title {
    font-family: 'Google Sans', sans-serif;
}

.publication-authors {
    font-family: 'Google Sans', sans-serif;
}

.publication-venue {
    color: var(--muted);
    width: fit-content;
    font-weight: bold;
}

.publication-awards {
    color: #ff3860;
    width: fit-content;
    font-weight: bolder;
}

.publication-authors {
}

.publication-authors a {
   color: hsl(204, 86%, 53%) !important;
}

.publication-authors a:hover {
    text-decoration: underline;
}

.author-block {
  display: inline-block;
}

.publication-banner img {
}

.publication-authors {
  /*color: #4286f4;*/
}

.publication-video {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;

    overflow: hidden;
    border-radius: 10px !important;
}

.publication-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.publication-body img {
}

.results-carousel {
  overflow: hidden;
}

.results-carousel .item {
  margin: 5px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  padding: 0;
  font-size: 0;
}

.results-carousel video {
  margin: 0;
}


.interpolation-panel {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.interpolation-panel .interpolation-image {
  width: 100%;
  border-radius: 5px;
}

.interpolation-video-column {
}

.interpolation-panel .slider {
  margin: 0 !important;
}

.interpolation-panel .slider {
  margin: 0 !important;
}

#interpolation-image-wrapper {
  width: 100%;
}
#interpolation-image-wrapper img {
  border-radius: 5px;
}
