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 {
}

.results-carousel {
  overflow: hidden;
}

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

.results-carousel video {
  margin: 0;
}

/* ===== 视频对比滑块样式 ===== */
.video-comparison-container {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  background: #000;
  user-select: none;
  -webkit-user-select: none;
}

.video-comparison-container::before {
  content: "";
  display: block;
  padding-top: 56.25%; /* 16:9 宽高比 */
}

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

.video-comparison-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.video-comparison-item video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-comparison-item.video-left {
  z-index: 1;
  clip-path: inset(0 50% 0 0);
}

.video-comparison-item.video-right {
  z-index: 0;
}

/* 滑动条手柄 */
.video-comparison-handle {
  position: absolute;
  top: 0;
  left: 50%;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, #fff 0%, #e0e0e0 100%);
  transform: translateX(-50%);
  z-index: 10;
  cursor: ew-resize;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.4);
}

.video-comparison-handle::before,
.video-comparison-handle::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 0;
  height: 0;
  border-style: solid;
  transform: translateY(-50%);
}

/* 左箭头 */
.video-comparison-handle::before {
  left: -16px;
  border-width: 10px 12px 10px 0;
  border-color: transparent #fff transparent transparent;
  filter: drop-shadow(-2px 0 4px rgba(0, 0, 0, 0.3));
}

/* 右箭头 */
.video-comparison-handle::after {
  right: -16px;
  border-width: 10px 0 10px 12px;
  border-color: transparent transparent transparent #fff;
  filter: drop-shadow(2px 0 4px rgba(0, 0, 0, 0.3));
}

/* 中间圆形拖拽按钮 */
.video-comparison-handle-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
  border-radius: 50%;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.video-comparison-handle-circle:hover {
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4);
}

.video-comparison-handle-circle svg {
  width: 24px;
  height: 24px;
  fill: #333;
}

/* 标签 */
.video-comparison-label {
  position: absolute;
  top: 16px;
  padding: 6px 16px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  border-radius: 20px;
  z-index: 5;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.video-comparison-label.label-left {
  left: 16px;
}

.video-comparison-label.label-right {
  right: 16px;
}


/* ===== 视频对比轮播样式 ===== */
.video-carousel-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 100%;
}

.carousel-nav-btn {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.carousel-nav-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.carousel-nav-btn:active {
  transform: scale(0.95);
}

.carousel-nav-btn svg {
  width: 24px;
  height: 24px;
  fill: #fff;
}

.carousel-indicators {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ddd;
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel-dot:hover {
  background: #aaa;
}

.carousel-dot.active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  transform: scale(1.2);
}

.video-carousel-wrapper .video-comparison-container {
  flex: 1;
  max-width: 800px;
}

/* ===== 方法对比选择器样式 ===== */
.method-selector-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
}

.method-selector-wrapper .method-label {
  font-size: 16px;
  font-weight: 600;
  color: #363636;
}

.method-selector-wrapper .select select {
  font-weight: 500;
  min-width: 280px;
  border-radius: 8px;
  border-color: #667eea;
}

.method-selector-wrapper .select select:focus {
  border-color: #764ba2;
  box-shadow: 0 0 0 0.125em rgba(102, 126, 234, 0.25);
}

.method-selector-wrapper .select:not(.is-multiple):not(.is-loading)::after {
  border-color: #667eea;
}

.method-comparison-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 100%;
}

.method-comparison-wrapper .video-comparison-container {
  flex: 1;
  max-width: 900px;
}

.method-indicators {
  margin-top: 20px;
}

/* ===== 长视频对比样式 ===== */
.long-video-comparison-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.long-video-comparison-wrapper .video-comparison-container {
  width: 100%;
  max-width: 1000px;
}

/* ===== BEV视频样式 ===== */
.bev-videos-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.bev-video-item {
  position: relative;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.bev-video-item video {
  width: 100%;
  display: block;
}

.bev-video-label {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 16px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  border-radius: 20px;
  z-index: 5;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* 高亮 DwD (Ours) 选项 */
.method-selector-wrapper .select select option[value="dwd_process"] {
  font-weight: 700;
  color: #667eea;
}

/* 响应式 */
@media screen and (max-width: 768px) {
  .video-comparison-handle-circle {
    width: 40px;
    height: 40px;
  }
  
  .video-comparison-handle-circle svg {
    width: 20px;
    height: 20px;
  }
  
  .video-comparison-label {
    font-size: 12px;
    padding: 4px 12px;
  }
  
  .video-comparison-controls {
    flex-wrap: wrap;
    gap: 12px;
  }

  .video-comparison-controls button {
    width: 40px;
    height: 40px;
  }

  .carousel-nav-btn {
    width: 36px;
    height: 36px;
  }

  .carousel-nav-btn svg {
    width: 18px;
    height: 18px;
  }

  .video-carousel-wrapper {
    gap: 8px;
  }

  .carousel-dot {
    width: 10px;
    height: 10px;
  }

  .method-selector-wrapper {
    flex-direction: column;
    gap: 8px;
  }

  .method-selector-wrapper .select select {
    min-width: 240px;
  }

  .method-comparison-wrapper {
    gap: 8px;
  }

  .bev-video-label {
    font-size: 12px;
    padding: 4px 12px;
  }

  .bev-videos-wrapper {
    gap: 12px;
  }
}

/* Image Carousel Styles */
.image-carousel-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 100%;
}

.image-display-container {
  position: relative;
  flex: 1;
  max-width: 100%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  background: #fff;
  line-height: 0; /* Removes bottom gap for images */
}

.carousel-loading-spinner {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.85);
  z-index: 10;
}

.carousel-loading-spinner .spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #e0e0e0;
  border-top-color: #667eea;
  border-radius: 50%;
  animation: carousel-spin 0.8s linear infinite;
}

@keyframes carousel-spin {
  to { transform: rotate(360deg); }
}

.carousel-image {
  width: 100%;
  height: auto;
  display: block;
  transition: opacity 0.3s ease;
}