.hero-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 20px;
    text-align: center;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    max-width: 600px;
}

.hero-title {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* 文字样式 */
.slide-subtitle {
  font-size: 0.75rem;
  letter-spacing: 3px;
  margin-bottom: 0;
  /* 移除默认的 text-transform: uppercase; 让用户控制 */
}

/* 副标题文本大小写控制 */
.slide-subtitle.text-uppercase {
  text-transform: uppercase;
}

.slide-title {
  font-size: 2.5rem;
  font-weight: 400;
  margin: 0;
  letter-spacing: 0.18em;
}

/* 主标题文本大小写控制 */
.slide-title.text-uppercase {
  text-transform: uppercase;
}

.hero-button {
    background: rgba(255,255,255,0.2);
    border: 2px solid white;
    color: white;
    padding: 12px 30px;
    font-size: 1rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-button:hover {
    background: white;
    color: #667eea;
}

/* 包装容器 - 基础样式 */
.hero-wrapper {
  position: relative; /* 重要：为按钮提供定位参考 */
  background-color: rgb(var(--color-background)); /* 默认背景色 */
  color: rgb(var(--color-foreground)); /* 默认文字颜色 */
}

/* 当有滚动按钮时，为按钮预留底部空间 */
.hero-wrapper:has(.slideshow__next-section-button) {
  padding-bottom: 25px; /* 为按钮下半部分预留空间 */
}

/* 配色方案支持 - 使用更具体的选择器确保优先级 */
.hero-wrapper[class*="color-scheme-"] {
  background-color: rgb(var(--color-background));
  color: rgb(var(--color-foreground));
}

/* 当有自定义背景色时，内联样式会覆盖这些设置 */

/* 基础变量设置 */
.hero-slider {
  --hero-banner-height: 750px;
  --hero-banner-overlay-opacity: 0.3;
}

/* 轮播容器 - 使用CSS变量控制高度 */
.hero-slider {
  position: relative;
  z-index: 0; /* 设置基础层级 */
  width: 100%;
  height: var(--desktop-height, 100vh);
  background: rgb(var(--color-background)); /* 使用主题背景色而不是黑色 */
  overflow: hidden; /* 正常隐藏溢出 */
}

/* 单个幻灯片 */
.hero-slide {
  position: absolute;
  width: 100%;
  height: 100%; /* 填满容器 */
  left: 0;
  top: 0;
  transform: scale(1.1);
  opacity: 0;
  transform-origin: center center;
  transition: background-color 0.3s ease;
  overflow: hidden;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
  z-index: 1;
}

.hero-slide.leaving {
  background-color: #000;
}

/* 媒体内容 */
.slide-media {
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
}

.slide-video,
.slide-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* 遮罩层 */
.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.7) 100%);
  z-index: 1;
}

/* 内容容器 */
.slide-content-container {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  box-sizing: border-box;
  max-width: 100%;
}

/* 内容区域 */
.slide-content {
  max-width: 500px;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: white;
  gap: 1.5rem;
}

.slide-content.with-border {
  border: 1px solid transparent; /* 初始透明 */
  padding: 30px;
  width: 400px; /* 固定宽度 */
  min-height: 311px; /* 改为最小高度，让内容撑开 */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* 内容位置 */
.content-left {
  align-items: flex-start;
  text-align: left;
}

.content-center {
  align-items: center;
  text-align: center;
}

.content-right {
  align-items: flex-end;
  text-align: right;
}

/* 按钮容器 */
.slide-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
}

/* 移除所有自定义按钮样式，让全局按钮组件接管 */
/* 按钮文字大小写和间距控制 - 参考featured-banner的实现方式 */
.hero-slide .btn.btn--text-uppercase .button {
  text-transform: uppercase;
}

.hero-slide .btn.btn--letter-spacing-wide .button {
  letter-spacing: 0.05em;
}

.hero-slide .btn.btn--letter-spacing-wider .button {
  letter-spacing: 0.1em;
}

.hero-slide .btn.btn--letter-spacing-widest .button {
  letter-spacing: 0.2em;
}

/* 按钮基础样式 - 参考featured-banner的实现 */
.hero-slide .btn .button {
  min-height: 40px;
  padding: 16px 32px;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  max-width: none;
  white-space: nowrap;
  min-width: 140px; /* 添加最小宽度，确保按钮宽度一致 */
}

/* 按钮文字大小控制 - 使用具体的选择器确保样式生效 */
.hero-slide .btn.btn--text-size-caption .button {
  font-size: var(--font-size-caption, 0.75rem);
}

.hero-slide .btn.btn--text-size-body .button {
  font-size: var(--font-size-body, 1rem);
}

.hero-slide .btn.btn--text-size-title4 .button {
  font-size: var(--font-size-title4, 1.125rem);
}

.hero-slide .btn.btn--text-size-title3 .button {
  font-size: var(--font-size-title3, 1.25rem);
}

/* 分页容器 */
.slide-pagination {
  position: absolute;
  right: 20px;
  bottom: 20px;
  display: flex;
  gap: 6px; /* 从10px调小到6px */
  z-index: 3;
  color: white;
  max-width: calc(100% - 40px); /* 确保不超出容器 */
}

/* 分页点 - 调整尺寸 */
.pagination-dot {
  width: 20px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  position: relative;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 进度环容器 */
.dot-progress {
  width: 100%;
  height: 100%;
  position: relative;
}

/* 非激活状态：实心灰色圆点 */
.pagination-dot:not(.active) .dot-progress::before {
  content: '';
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
}

/* 非激活状态：隐藏SVG */
.pagination-dot:not(.active) .dot-progress svg {
  display: none;
}

/* 激活状态：显示SVG，隐藏实心圆点 */
.pagination-dot.active .dot-progress::before {
  display: none;
}

.dot-progress svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

/* 第一个circle：底层灰色圆圈 - 只在激活状态显示 */
.dot-progress circle:first-child {
  stroke: currentColor;
  stroke-opacity: 0.3;
}

/* 第二个circle：进度环 - 只在激活状态显示 */
.dot-progress circle:last-child {
  stroke: currentColor;
  stroke-opacity: 1;
  stroke-dasharray: 20.42; /* 计算：2 * π * 3.25 */
  stroke-dashoffset: 20.42;
  transition: none;
}

/* 激活状态 - 开始进度动画 */
.pagination-dot.active .dot-progress circle:last-child {
  stroke-dashoffset: 20.42; /* 初始状态，JS控制动画 */
}

/* 滚动按钮容器 - 负责定位，相对于hero-wrapper */
.slideshow__next-section-wrapper {
  position: absolute;
  bottom: 25px; /* 定位在wrapper底部 */
  left: 50%;
  z-index: 1; /* 非常保守的z-index值 */
  width: fit-content;
  margin-left: -25px; /* 居中对齐 */
  transform: translateY(50%); /* 让按钮的一半伸出容器外 */
}



/* 滚动按钮 - 只负责样式 */
.slideshow__next-section-button {
  position: relative; /* 相对定位，不脱离文档流 */
}

.circle-button {
  --circle-button-size: 3.125rem;
  --circle-button-background: 255, 255, 255;
  --circle-button-text-color: 0, 0, 0;
  --rounded-full: 50%;
  
  width: var(--circle-button-size);
  height: var(--circle-button-size);
  background: rgb(var(--circle-button-background));
  color: rgb(var(--circle-button-text-color));
  border-radius: var(--rounded-full);
  box-shadow: 0 .25rem 1.5rem rgba(0, 0, 0, 0.15), 0 .125rem .5rem rgba(0, 0, 0, 0.1);
  place-items: center;
  display: grid;
  border: none;
  cursor: pointer;
  /* 按钮保持静态，无动画效果 */
}

/* 可选：添加轻微的点击反馈，但不移动按钮位置 */
.circle-button:active {
  opacity: 0.8;
}

/* 内容动画 */
.hero-slide.active .slide-content.with-border {
  animation: 
    borderFadeIn 1s cubic-bezier(0.16, 1, 0.3, 1) forwards,
    fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}

.hero-slide.active:not(.with-border) .slide-content > * {
  opacity: 0;
  transform: translateY(30px);
}

.hero-slide.active:not(.with-border) .slide-subtitle {
  animation: fadeInUp .6s cubic-bezier(0.16, 1, 0.3, 1) 0.1s forwards;
}

.hero-slide.active:not(.with-border) .slide-title {
  animation: fadeInUp .6s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}

.hero-slide.active:not(.with-border) .slide-buttons {
  animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}

/* 离开动画 */
.hero-slide.leaving .slide-content.with-border {
  animation: 
    fadeOutDown 0.2s cubic-bezier(0.7, 0, 0.84, 0) forwards,
    borderFadeOut 0.2s cubic-bezier(0.7, 0, 0.84, 0) forwards;
}

.hero-slide.leaving:not(.with-border) .slide-content > * {
  animation: fadeOutDown 0.2s cubic-bezier(0.3, 0, 0.84, 0) forwards;
}

/* 动画关键帧 */
@keyframes borderFadeIn {
  0% { border-color: transparent; }
  100% { border-color: white; }
}

@keyframes borderFadeOut {
  0% { border-color: white; }
  100% { border-color: transparent; }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeOutDown {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(30px);
  }
}

/* 响应式调整 */
@media (max-width: 768px) {
  .hero-wrapper {
    padding-bottom: 20px;
  }
  
  .slideshow__next-section-button {
    inset-block-end: 20px;
  }
  
  .hero-slider {
    height: var(--mobile-height, 70vh);
  }
  
  .slide-content-container {
    padding: 20px;
  }

  .slide-title {
    font-size: 2.5rem;
  }

  .slide-content.with-border {
    width: 300px;
    min-height: 280px; /* 改为最小高度 */
    padding: 20px;
  }

  .slide-pagination {
    right: 15px;
    bottom: 15px;
    gap: 5px; /* 从8px调小到5px */
  }

  .pagination-dot {
    width: 18px;
    height: 18px;
    padding: 5px;
  }

  .pagination-dot:not(.active) .dot-progress::before {
    width: 5px;
    height: 5px;
  }
  
  .circle-button {
    --circle-button-size: 2.5rem;
  }

  .slide-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
  }

  /* 移动端按钮最小宽度稍小 */
  .hero-slide .btn .button {
    min-width: 120px;
  }
}

@media (max-width: 480px) {

.slideshow__next-section-wrapper {
  bottom: 5px; /* 定位在wrapper底部 */

  }
  .hero-wrapper {
    padding-bottom: 18px;
  }
  
  .slideshow__next-section-button {
    inset-block-end: 18px;
  }

  .slide-title {
    font-size: 2rem;
  }

  .slide-content.with-border {
    width: 250px;
    min-height: 250px; /* 改为最小高度，内容多时自动扩展 */
    padding: 15px;
  }

  .slide-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
  }

  /* 小屏幕按钮最小宽度更小 */
  .hero-slide .btn .button {
    min-width: 100px;
  }

  .slide-pagination {
    right: 10px;
    bottom: 10px;
    gap: 4px; /* 从6px调小到4px */
  }

  .pagination_dot {
    width: 16px;
    height: 16px;
    padding: 4px;
  }

  .pagination-dot:not(.active) .dot-progress::before {
    width: 4px;
    height: 4px;
  }
  
  .circle-button {
    --circle-button-size: 2.25rem;
  }

  .slide-content.with-border {
    width: 250px;
    height: 230px; /* 从194px增加到230px */
    padding: 15px;
  }
}

/* 移动端更小屏幕适配 */
@media (max-width: 360px) {
  .slide-content.with-border {
    width: 220px;
    min-height: 220px; /* 改为最小高度 */
    padding: 12px;
  }
  
  .slide-subtitle {
    font-size: 0.65rem;
    letter-spacing: 2px;
  }
  
  .slide-title {
    font-size: 1.6rem;
  }
}