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-size: 1.3em;
  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;
    max-width: 100% !important;
    width: 100% !important;
}

.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;
  display: flex;
  align-items: center;
}

.results-carousel .item {
  margin: 10px;
  overflow: hidden;
  border: 1px solid #bbb;
  border-radius: 10px;
  padding: 0;
  font-size: 0;
  flex: 0 0 calc(50% - 20px); /* 确保每个项目占用50%宽度减去边距 */
}

.results-carousel video {
  margin: 0;
}


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

.button-group {
  /* margin-bottom: 30px; 增加按钮组下边距 */
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px; /* 增加按钮间距 */
}
.button-group button {
  padding: 5px 10px; /* 增加按钮内边距，使按钮更大 */
  font-size: 13px; /* 增大字体 */
  cursor: pointer;
  border: 1px solid #ced4da; /* 细致的灰色边框 */
  border-radius: 8px; /* 更圆润的按钮边角 */
  background-color: #ffffff; /* 纯白色背景 */
  color: #495057; /* 默认文字颜色 */
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
  min-width: 80px; /* 确保按钮有最小宽度 */
  font-weight: 700; /* 字体适中 */
  outline: none; /* 移除点击时的外边框 */
}
.button-group button:hover {
  background-color: #e9ecef; /* 悬停时浅灰色背景 */
  border-color: #adb5bd; /* 悬停时边框颜色稍深 */
  color: #212529; /* 悬停时文字颜色更深 */
  transform: translateY(-2px); /* 悬停时轻微上浮 */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); /* 悬停时增加阴影 */
}
.button-group button.active {
  background-color: #00809D; /* 蓝色主色调 */
  color: white;
  border-color: #00809D;
  box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3); /* 激活时更明显的蓝色阴影 */
  transform: translateY(-1px); /* 激活时轻微上浮 */
  font-weight: 600; /* 激活时字体更粗 */
}

.video-block-container {
  overflow: hidden;
  position: relative; /* 保持 relative 以便 video 元素绝对定位 */
  width: 100%;
  padding-top: 80%; /* 不再强制 16:9 比例 */
  background-color: #ffffff; /* 容器背景色，可在加载时显示 */
}

.media-display-container {
  display: flex; /* 启用Flexbox布局 */
  justify-content: center; /* 水平居中 */
  align-items: center;
  gap: 30px; /* 图片和视频之间的间距 */
  margin-top: -10px; /* 与上方按钮组的间距 */
}

.image-display-wrapper {
  width: 25%; /* 40% 减去一半的 gap */
}

.video-block-container {
  width: 75%; /* 40% 减去一半的 gap */
  text-align: center; /* 内容居中 */
  display: flex;
  flex-direction: column;
  align-items: center; /* 确保图片和视频在各自容器中居中 */
}

.image-display-wrapper img {
  max-width: 100%; /* 图片宽度适应容器 */
  height: auto; /* 高度自适应 */
  display: block; /* 移除图片底部空白 */
}

.video-block-container video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  transition: opacity 0.3s ease-in-out;
  opacity: 1; /* 默认可见 */
  background-color: transparent; /* 确保视频本身没有背景色 */
}

.video-block-container.loading video {
  opacity: 0; /* 加载时隐藏视频 */
}

/* --- 加载覆盖层样式 --- */
.video-loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.7); /* 加载时的深色半透明背景 */
  color: white;
  font-size: 1.5em;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  pointer-events: none;
}

.video-block-container.loading .video-loading-overlay {
  opacity: 1; /* 加载时显示覆盖层 */
  pointer-events: all;
}

#button-selection-grid {
  display: flex; /* Use flexbox for side-by-side layout */
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
  justify-content: center; /* Center the groups horizontally */
  gap: 30px; /* Space between the two button groups */
  margin-bottom: 30px; /* Space below the entire button grid */
}
.selection-group {
  flex: 1; /* Allow each group to grow and shrink */
  text-align: center; /* Center align content within each group */
  padding: 15px; /* Add some padding around content */
  border: 1px solid #e9ecef; /* Subtle border for distinction */
  border-radius: 8px; /* Rounded corners for the group container */
  background-color: #fcfcfc; /* Slightly different background for the group */
  box-shadow: 0 2px 8px rgba(0,0,0,0.05); /* Light shadow for depth */
}
.selection-group.scene {
  flex: 1 1 200px; /* Allow each group to grow and shrink */
  min-width: 300px; /* Minimum width for each group before wrapping */
  max-width: unset; /* Max width for each group, keeping space for the other */
  text-align: center; /* Center align content within each group */
  padding: 15px; /* Add some padding around content */
  border: 1px solid #e9ecef; /* Subtle border for distinction */
  border-radius: 8px; /* Rounded corners for the group container */
  background-color: #fcfcfc; /* Slightly different background for the group */
  box-shadow: 0 2px 8px rgba(0,0,0,0.05); /* Light shadow for depth */
}
.selection-group.mode {
  flex: 0 1 200px; /* flex-grow: 0 (don't grow), flex-shrink: 1 (can shrink), flex-basis: 200px (initial size) */
  max-width: 250px; /* Limit its maximum width more strictly */
  min-width: unset; /* Remove min-width inherited from .selection-group if it's too wide for mode */
}


#button-selection-grid2 {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-bottom: 30px;
  margin-left: auto;
  margin-right: auto;
  width: 100%; /* 确保容器宽度足够 */
}

.selection-group2 {
  flex: 0 0 auto;
  padding: 15px;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  background-color: #fcfcfc;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  box-sizing: border-box;
  text-align: center;
}

/* 第一组（scene）*/
.selection-group2.scene {
  min-width: 300px;
}

/* 第二组（mode）*/
.selection-group2.mode {
  min-width: 250px;
  max-width: 100%; /* 防止溢出 */
}

.media-display-container2 {
  display: flex;
  justify-content: center;
  align-items: center; /* 纵向中线对齐 */
  gap: 20px; /* 可以调整间距 */
  margin-top: 30px;
}

.media-display-container2 .image-display-wrapper,
.media-display-container2 .video-block-container2 {
  flex: 1; /* 让它们平均分配空间 */
  width: unset; /* 覆盖之前的 width: calc() 避免冲突 */
  max-width: 33.33%; /* 大致平均分成三列 */
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}


.video-block-container2 {
  overflow: hidden;
  position: relative; /* 保持 relative 以便 video 元素绝对定位 */
  background-color: #ffffff; /* 容器背景色，可在加载时显示 */
}

.video-block-container2 video {
  position: relative;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  transition: opacity 0.3s ease-in-out;
  opacity: 1; /* 默认可见 */
  background-color: transparent; /* 确保视频本身没有背景色 */
}

.video-block-container2.loading video {
  opacity: 0; /* 加载时隐藏视频 */
}


.slider-carousel {
  overflow: hidden;
}

.slider-carousel .item {
  margin: 10px;
  overflow: hidden;
  border-radius: 10px;
  padding: 10px;
  font-size: 1em;
}

/* 三个视频section的白色背景样式 */
.three-videos-section.white-background {
  background-color: white !important;
}

/* 三个视频在同一行的样式 */
.three-videos-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* 确保标题和副标题在flex容器中正确显示 */
.three-videos-container .title,
.three-videos-container .subtitle {
  flex-basis: 100%;
  flex-grow: 0;
  flex-shrink: 0;
  width: 100%;
  text-align: center;
  margin-bottom: 1rem;
}

.three-videos-container .item-speed {
  flex: 1;
  min-width: 300px;
  max-width: 400px;
  text-align: center;
}

.three-videos-container .item-speed video {
  width: 100%;
  height: auto;
  max-height: 300px;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: none;
}

/* 限制文本宽度的样式 */
.hero .title,
.hero .subtitle {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Interactive Demo 样式 */
.interactive-demo-container {
  display: flex;
  gap: 2.5rem;
  margin-top: 2rem;
  margin-bottom: 2rem;
  align-items: flex-start;
}

@media (max-width: 768px) {
  .interactive-demo-container {
    flex-direction: column;
  }
  
  .input-images-container {
    width: 100%;
  }
}

.input-images-container {
  flex: 0 0 380px;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  padding: 1.5rem;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 128, 157, 0.1);
}

.scene-3d-container {
  width: 100%;
  margin-bottom: 1.5rem;
}

.scene-3d-canvas {
  width: 100%;
  height: 300px;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  background-size: 200% 200%;
  animation: gradientShift 10s ease infinite;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), inset 0 0 60px rgba(0, 128, 157, 0.1);
  border: 2px solid rgba(0, 128, 157, 0.2);
  cursor: grab;
}

.scene-3d-canvas:active {
  cursor: grabbing;
}

.scene-3d-canvas::before {
  content: '💡 Drag to rotate • Scroll to zoom';
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
  background: rgba(0, 0, 0, 0.3);
  padding: 4px 12px;
  border-radius: 12px;
  z-index: 10;
  pointer-events: none;
  font-weight: 600;
  letter-spacing: 0.5px;
  backdrop-filter: blur(4px);
  opacity: 1;
  transition: opacity 0.3s ease;
}

.scene-3d-canvas:hover::before {
  opacity: 0.8;
}

.input-views-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 0.75rem;
}

.input-view-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 128, 157, 0.15);
}

.view-control-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid #00809D;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  color: #00809D;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 128, 157, 0.2);
}

.view-control-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, #00809D 0%, #006a84 100%);
  color: white;
  transform: scale(1.15);
  box-shadow: 0 4px 12px rgba(0, 128, 157, 0.4);
}

.view-control-btn:active:not(:disabled) {
  transform: scale(1.05);
}

.view-control-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  box-shadow: none;
}

.view-count-indicator {
  font-size: 15px;
  font-weight: 700;
  color: #00809D;
  min-width: 70px;
  text-align: center;
  letter-spacing: 0.5px;
}

.input-images-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.input-image-item {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: 2px solid rgba(0, 128, 157, 0.2);
  background: white;
}

.input-image-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 128, 157, 0.1) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
  pointer-events: none;
}

.input-image-item:hover::before {
  opacity: 1;
}

.input-image-item.hidden {
  opacity: 0.25;
  transform: scale(0.90);
  pointer-events: none;
  filter: grayscale(0.5);
}

.input-image-item:not(.hidden):hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 20px rgba(0, 128, 157, 0.3);
  border-color: rgba(0, 128, 157, 0.5);
}

.input-image-item img {
  width: 100%;
  height: auto;
  display: block;
  position: relative;
  z-index: 0;
}

.output-image-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
}

.output-image-wrapper {
  position: relative;
  width: 100%;
  max-width: 520px;
  height: 520px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
  border: 3px solid rgba(0, 128, 157, 0.2);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.output-image-wrapper:hover {
  box-shadow: 0 16px 48px rgba(0, 128, 157, 0.2);
  border-color: rgba(0, 128, 157, 0.4);
}

@media (max-width: 768px) {
  .output-image-wrapper {
    height: 320px;
  }
}

.output-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: transform 0.3s ease;
}

.output-loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(0, 128, 157, 0.95) 0%, rgba(0, 106, 132, 0.95) 100%);
  color: white;
  font-size: 1.5em;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.4s ease-in-out;
  pointer-events: none;
}

.output-loading-overlay::after {
  content: '';
  margin-top: 1rem;
  width: 40px;
  height: 40px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

.output-image-wrapper.loading .output-loading-overlay {
  opacity: 1;
  pointer-events: all;
}

.demo-controls {
  margin-top: 3rem;
  padding: 2.5rem;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 128, 157, 0.1);
}

.controls-container {
  display: grid;
  grid-template-columns: auto auto;
  justify-content: center;
  align-items: center;
  gap: 4rem;
}

.control-group {
  display: grid;
  grid-template-rows: auto auto;
  justify-items: center;
  gap: 1rem;
}

.control-group h4 {
  color: #00809D;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  height: 1.5rem;
  line-height: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: start;
}

.control-group .button-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  align-self: center;
}

/* 旋转按钮十字布局 */
.rotate-button-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  align-self: center;
}

.rotate-row {
  display: flex;
  gap: 0.4rem;
  justify-content: center;
  align-items: center;
}

.rotate-btn {
  min-width: 72px !important;
  width: 72px !important;
  height: 32px;
  padding: 2px 3px !important;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.rotate-btn.center-btn {
  min-width: 72px !important;
  width: 72px !important;
  height: 32px;
  padding: 2px !important;
  font-size: 14px;
}

.control-btn {
  padding: 12px 24px;
  font-size: 15px;
  cursor: pointer;
  border: 2px solid #ced4da;
  border-radius: 10px;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  color: #495057;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  min-width: 120px;
  font-weight: 600;
  outline: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
}

.control-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  transition: left 0.5s ease;
}

.control-btn:hover:not(:disabled)::before {
  left: 100%;
}

.control-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
  border-color: #00809D;
  color: #00809D;
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 128, 157, 0.2);
}

.control-btn:active:not(:disabled) {
  transform: translateY(-1px);
}

.control-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  box-shadow: none;
}

.control-btn.active {
  background: linear-gradient(135deg, #00809D 0%, #006a84 100%);
  color: white;
  border-color: #00809D;
  box-shadow: 0 6px 20px rgba(0, 128, 157, 0.4);
  transform: translateY(-2px);
}

.position-indicator {
  padding: 12px 24px;
  font-size: 17px;
  font-weight: 700;
  color: #00809D;
  background: white;
  border: 2px solid #00809D;
  border-radius: 12px;
  min-width: 160px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 128, 157, 0.15);
  letter-spacing: 0.5px;
}

/* Pipeline Architecture 样式 */
.pipeline-content {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  margin-top: 2rem;
}

.pipeline-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.pipeline-item figure {
  margin-bottom: 1rem;
}

.pipeline-item img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.pipeline-item p {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* 混合媒体区域的样式 */
#button-selection-grid3 {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
}

.selection-group3 {
  padding: 15px;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  background-color: #fcfcfc;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  text-align: center;
}

.selection-group3.content {
  min-width: 500px;
}

.media-display-container3 {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 30px;
}

.media-display-wrapper {
  position: relative;
  width: 100%;
  max-width: 800px;
  height: 500px; /* 增加高度，让媒体显示更大 */
  text-align: center;
  background-color: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.media-display-wrapper img,
.media-display-wrapper video {
  width: 100%;
  height: 100%;
  max-height: 500px;
  object-fit: contain;
  display: block;
}

.media-loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  font-size: 1.5em;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  pointer-events: none;
}

.media-display-wrapper.loading .media-loading-overlay {
  opacity: 1;
  pointer-events: all;
}

/* 控制视频大小的样式 */
#steve, #chair-tp {
  max-width: 900px !important;
  max-height: 900px !important;
  width: auto !important;
  height: auto !important;
  display: block !important;
  margin: 0 auto !important;
}

/* Interactive Demo 额外优化 */
.interactive-demo-container > * {
  animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.input-images-container:hover {
  box-shadow: 0 12px 40px rgba(0, 128, 157, 0.15);
}

/* 3D场景加载提示 */
.scene-3d-canvas::after {
  content: '';
  position: absolute;
  bottom: 10px;
  right: 10px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  font-family: 'Noto Sans', sans-serif;
}

/* 输入图片网格响应式优化 */
@media (max-width: 480px) {
  .input-images-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }
}

/* 控制按钮组响应式优化 */
@media (max-width: 768px) {
  .demo-controls {
    padding: 1.5rem;
  }
  
  .controls-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .control-btn {
    padding: 10px 16px;
    font-size: 13px;
    min-width: 90px;
  }
  
  .rotate-btn {
    min-width: 36px !important;
    width: 36px !important;
    height: 28px;
    font-size: 14px;
    padding: 4px !important;
  }
  
  .rotate-btn.center-btn {
    min-width: 32px !important;
    width: 32px !important;
    height: 28px;
    font-size: 12px;
  }
  
  .position-indicator {
    padding: 10px 16px;
    font-size: 15px;
    min-width: 130px;
  }
}

/* 渐变背景动画 */
@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* 更好的工具提示样式 */
[title] {
  position: relative;
}

/* 按钮点击波纹效果 */
.control-btn {
  position: relative;
  overflow: hidden;
}

.control-btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.control-btn:active:not(:disabled)::after {
  width: 200px;
  height: 200px;
}

