body {
  font-family: 'Noto Sans', sans-serif;
}

.gradient-blue-text {
  font-size: 3rem;
  font-weight: bold;
  background: linear-gradient(90deg, #385492, #babbbe);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.publication-title {
  font-size: 5rem;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem; 
}

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

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

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

.newrobot {
  color: #1b9e77
}

.newenv {
  color: #d95f02
}

.newobjective {
  color: #7570b3
}

.newgoal {
  color: #e6ab02
}

.vint {
  color: #1b9e77
}

.baseline {
  color: #d95f02
}

.oraltalk {
  color: #ff0000;
  font-weight: bold;
}

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

.teaser {
  font-family: 'Google Sans', sans-serif;
  margin-top: 0;
  margin-bottom: 0;
}


.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: #555;
  width: fit-content;
  font-weight: bold;
  margin: 0 auto;
  /* Center horizontally */
  text-align: center;
  /* Center text within the element */
}

.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;
}

.no-bold {
  font-weight: normal;
}

.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 {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.results-carousel {
  width: 95%;
  margin: 0 auto;
}

.results-carousel .item {
  margin: 5px;
  overflow: hidden;
  border: 1px solid #bbb;
  border-radius: 10px;
  padding: 0;
  font-size: 0;
}

.results-carousel video {
  margin: 0;
}

.videos-flex {
  display: flex;
  justify-content: center;
  width: 100%;
  flex-wrap: wrap;
}

.videos-flex>video {
  margin: 0.2rem;
  min-width: 200px;
  max-width: 300px;
}

.rw-subtitle {
  max-width: 56rem;
  margin: 0.75rem auto 0;
  color: rgba(0,0,0,0.65);
}

.rw-block {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 14px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.06);
  padding: 1.25rem 1.25rem 1rem;
  margin-top: 1.25rem;
}

.rw-block__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.rw-block__body {
  padding-top: 1rem;
}

.rw-block video,
.rw-video video {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
}

.sub-results-carousel .item {
  padding: 0.25rem;
}

/* =======================
   Teaser
======================= */
.teaser .hero-body {
  padding-top: 0rem;
  padding-bottom: 0rem;
}

.teaser-subtitle {
  max-width: 60rem;
  margin: 0.75rem auto 0;
  color: rgba(0, 0, 0, 0.65);
}

.teaser-grid{
  margin-top: 1.25rem;
  display: grid;
  grid-template-columns: 1fr;  /* 单列：上下两行 */
  gap: 1rem;
}


@media (max-width: 768px) {
  .teaser-grid {
    grid-template-columns: 1fr;
  }
}

.teaser-figure img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.teaser-text {
  max-width: 70ch;
  margin: 0 auto;
  line-height: 1.65;
}

.teaser-tags {
  margin-top: 0.75rem;
}

/* =======================
   Results (carousel section)
======================= */
.results {
  padding-top: 2.25rem;
  padding-bottom: 2.25rem;
}

.results-head {
  margin-bottom: 1rem;
}

.results-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
  padding: 1rem;
}

.results-hint {
  margin-top: 0.75rem;
  color: rgba(0, 0, 0, 0.55);
}

/* A stable media frame prevents carousel height jumping */
.media-frame {
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 14px;
  overflow: hidden;
}

/* Ensure both video and gif fill the same frame */
.media-frame > video,
.media-frame > img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover; /* if you prefer no cropping, use contain */
}

/* Optional: small spacing inside carousel items (adjust if it breaks your carousel layout) */
.results-carousel .item {
  padding: 0.25rem;
}

/* ===== TOC ===== */
html {
  scroll-behavior: smooth; /* 点击目录平滑滚动 */
}

section[id] {
  scroll-margin-top: 16px; /* 防止跳转后标题贴边（如有固定头部可调大） */
}

.toc {
  position: fixed;
  top: 24px;
  right: 24px;
  width: 260px;
  max-height: calc(100vh - 48px);
  overflow: auto;

  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  padding: 12px 12px;
  z-index: 1000;
  backdrop-filter: blur(8px);
}

.toc__title {
  font-weight: 700;
  font-size: 14px;
  margin: 4px 4px 10px 4px;
}

.toc__list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.toc__list li {
  margin: 6px 4px;
}

.toc__list a {
  color: #1f2d3d;
  text-decoration: none;
  font-size: 14px;
  line-height: 1.3;
}

.toc__list a:hover {
  text-decoration: underline;
}

/* 小屏幕：不固定在右侧，避免遮挡 */
@media (max-width: 1024px) {
  .toc {
    position: static;
    width: auto;
    max-height: none;
    margin: 12px auto;
  }
}

.toc__sublist{
  list-style: none;
  padding-left: 14px;
  margin: 6px 0 0 0;
}
.toc__sublist li{ margin: 6px 0; }
.toc__sublist a{ font-size: 13px; opacity: .9; }

/* Real-world: single-column full-width video */
.rw-single {
  width: 100%;
}

.rw-single video {
  display: block;
  width: 100%;
  max-width: 960px; /* 你想更宽就调大或删除 */
  margin: 0 auto;
  border-radius: 12px; /* 可选：和页面风格一致 */
}
