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


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

.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: #555;
    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 {
}



.interpolation-panel {
  background: #f5f5f5;
  border-radius: 10px;
}

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

.model-name {
  font-variant: small-caps;
}

.result-row img{
  width: 75%;
  margin: auto;
  left: 0;
  right: 0;
}
.result-row td{
  width: 25%;
  border: 10px;
  padding: 1rem 0;
}

tr.result-row {
  border-bottom: 1px solid #e0e0e0;
}

tr.result-row:last-child {
  border-bottom: none;
}

.prompt-row{
  text-align: center;
  /* 移除特殊字体样式，使用正文默认样式 */
}

.prompt-background{
  background: #5f5555;
  font-size: 1.2rem;

}

.prompt{
  text-align: center;
  padding: 1rem;

}

.inserted-image {
  max-width: 100%;     /* Set the maximum width for the image */
  height: auto;       /* Ensure the height adjusts automatically to maintain aspect ratio */
  margin: 30px;       /* Add space above and below the image */
  margin-top: 10px;
  display: block;     /* Make sure the image is treated as a block-level element */
  margin-left: auto;  /* Center the image horizontally */
  margin-right: auto;
  border-radius: 10px;
  box-shadow: 2px 2px 10px 3px #00000030;
}

/* 布局容器 */
  .main-container {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    gap: 40px; /* 目录和正文的间距 */
  }

  /* 左侧目录：关键样式 */
  .toc-sidebar {
    width: 200px; /* 宽度固定 */
    height: fit-content;
    position: sticky; /* 核心：吸附效果 */
    top: 50px; /* 距离顶部 50px 时吸附 */
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  
  /* 目录链接样式 */
  .toc-link {
    text-decoration: none;
    color: #555;
    padding: 5px 10px;
    border-left: 2px solid transparent; /*以此做高亮指示条*/
    transition: all 0.3s;
  }
  
  .toc-link:hover, .toc-link.active {
    color: #007bff; /* 激活颜色 */
    border-left-color: #007bff;
    background-color: #f0f7ff;
  }

  /* 右侧正文 */
  .content-column {
    flex: 1; /* 占据剩余宽度 */
    min-width: 0; /* 防止视频撑爆 */
  }

  /* 移动端隐藏侧边栏 */
  @media (max-width: 1000px) {
    .toc-sidebar { display: none; }
  }
  
/* Section 5: Results layout (non-carousel) */
.results-media {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #000;
  margin: 0 0;
}

.results-meta {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: stretch;
}

@media screen and (max-width: 768px) {
  .results-meta {
    grid-template-columns: 1fr;
  }
}

.results-ref-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  flex-wrap: nowrap;    /* 强制一行内展示 */

}

.results-ref {
  flex: 0 1 auto;  /* 宽度可不同，但在父容器内可收缩 */
  min-width: 0;
  margin: 0.5rem 0;
}

.results-ref img {
  width: auto;            /* 宽度随比例变化 */
  max-width: 100%;        /* 防止单张图宽度超过列宽 */
  height: clamp(110px, 12vw, 160px);
  display: block;
  border-radius: 0;
  object-fit: contain;
}

/* Section 5: black background + vertical centering for paired blocks */
.results-pair-box {
  background: #000;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 12px;
}

/* Keep refs layout intact inside black box */
.results-pair-box .results-ref-list {
  margin-top: 0 !important;
}

/* Make prompt readable on black background */
.results-pair-box.custom-prompt-box,
.results-pair-box.custom-prompt-box .prompt-title {
  color: #fff;
}

.results-pair-box.custom-prompt-box {
  background-color: #000;
  border-radius: 0;
  margin-top: 0;
}

.results-plus {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  color: transparent;
}

/* Make prompt box fill the height of results-meta row */
.results-meta .custom-prompt-box {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.results-meta .custom-prompt-box .prompt-text {
  flex: 1;
}

.results-divider {
  border: 0;
  border-top: 1px solid #706666;
  margin-top: 2rem;
}

.results-grid {
  margin: 22px 0;
}
/* Make Results prompt boxes equal height */
.results-grid > .column {
  display: flex;
  flex-direction: column;
}

.results-grid .custom-prompt-box {
  height: clamp(70px, 12vw, 140px);
  display: flex;
  flex-direction: column;
  margin-top: 8px;
}

.results-grid .custom-prompt-box .prompt-text {
  flex: 1;
  overflow: auto;
}

/* Section 2: Teaser reference images */
.teaser-ref-img {
  width: 100%;
  height: clamp(90px, 10vw, 140px);
  display: block;
  border-radius: 0;
  object-fit: contain;
}

/* Styling for reference+prompt pairs */
.results-pair-wrapper {
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(2xl);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 1.5rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  padding: 16px;
  margin: 12px;
  transition: box-shadow 0.3s ease;
}

.results-pair-wrapper:hover {
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.results-pair-wrapper .columns {
  align-items: center;
}

/* Only for assets/examples/ID-Composer_s2v_video1_sub3.png */
.teaser-ref-img--square {
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

/* Action buttons row: keep arXiv, Code, Cite on one line */
.actions-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;
}
.actions-row .link-block {
  display: inline-flex;
}

/* Sidebar Navigation */
.sidebar {
  position: fixed;
  left: 14px;
  top: 30%;
  transform: translateY(-50%);
  width: auto;
  min-width: 100px;
  z-index: 9999; /* Ensure it's on top of everything */
  display: none; /* Default hidden */
  /* background: rgba(255, 255, 255, 0.2); */
  /* backdrop-filter: blur(16px); */
  /* -webkit-backdrop-filter: blur(16px); */
  padding: 10px 5px;
  border-radius: 20px;
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
  /* border: 1px solid rgba(255, 255, 255, 0.4); */
  transition: all 0.3s ease;
}

/* Show on desktop screens (>= 1024px) */
@media screen and (min-width: 1024px) {
  .sidebar {
    display: block;
    left: 20px; /* Stick to left edge on smaller desktops */
  }
}

/* Center-aligned positioning for larger screens */
@media screen and (min-width: 1400px) {
  .sidebar {
    /* Calculate position to align with container but stick to left */
    left: calc(50% - 700px); /* 50% - (max-desktop-width / 2) - extra-margin */
  }
}

/* Adjust for very wide screens if needed */
@media screen and (min-width: 1600px) {
  .sidebar {
    left: calc(50% - 770px);
  }
}

.sidebar-nav {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar-nav li a {
  text-decoration: none;
  color: #666;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  display: block;
  padding: 8px 10px; 
  border-radius: 6px;
  position: relative;
  letter-spacing: 0.02em;
}

.sidebar-nav li a:hover {
  color: #3273dc;
  background-color: rgba(255, 255, 255, 0.9);
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Optional: Add a small indicator on hover */
.sidebar-nav li a::before {
  content: '';
  position: absolute;
  left: 3px;
  top: 50%;
  transform: translateY(-50%) scaleY(0);
  height: 16px;
  width: 3px;
  background-color: #3273dc;
  border-radius: 2px;
  transition: transform 0.2s ease;
  margin-top: 0;
}

.sidebar-nav li a:hover::before {
  transform: translateY(-50%) scaleY(1);
}
