/* ═══════════════════════════════════════════════════════════
   首页首屏幻灯 v137
   与 home-v90.css 的 .h90-hero 体系配合，仅补充轮播所需样式
   ═══════════════════════════════════════════════════════════ */

/* 无障碍隐藏 h1 */
.hs-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- 幻灯主体 ---------- */
/* grid 子项默认 min-width:auto 会被幻灯内容撑宽，必须显式归零 */
.h90-hero-inner {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  min-width: 0;
}
.h90-hero-copy {
  min-width: 0;
}
.hs-wrap {
  position: relative;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  outline: none;
}
.hs-viewport {
  position: relative;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  touch-action: pan-y;
}
.hs-track {
  display: flex;
  align-items: flex-start;
  width: 100%;
  min-width: 0;
  transition: transform 0.58s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}
.hs-slide {
  flex: 0 0 100%;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  padding-right: 6px;
  user-select: none;
  -webkit-user-select: none;
}

/* 标题沿用 h90 hero 视觉（语义用 h2，样式对齐原 h1） */
.hs-slide .hs-title {
  margin: 26px 0 0;
  font-size: 50px;
  line-height: 1.18;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #fff;
  overflow-wrap: break-word;
  word-break: break-word;
}
.hs-slide .hs-title span {
  background: linear-gradient(90deg, #8cb8ff 0%, #d3e3ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.hs-slide .h90-hero-desc {
  margin-top: 24px;
  max-width: 100%;
  overflow-wrap: break-word;
  word-break: break-word;
}

/* ---------- 控制条：指示点 + 左右箭头 ---------- */
.hs-ctrl {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 34px;
}
.hs-dots {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 6px;
}
.hs-dot {
  width: 28px;
  height: 5px;
  padding: 0;
  border: 0;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.24);
  cursor: pointer;
  transition: width 0.3s ease, background 0.3s ease;
}
.hs-dot:hover {
  background: rgba(255, 255, 255, 0.5);
}
.hs-dot.on {
  width: 46px;
  background: #fff;
}

.hs-nav {
  display: flex;
  gap: 10px;
  flex: 0 0 auto;
}
.hs-arrow {
  width: 40px;
  height: 40px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.7;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: opacity 0.25s ease, background 0.25s ease, transform 0.25s ease;
}
.hs-arrow i {
  font-style: normal;
  transform: translateY(-1px);
}
.hs-arrow:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.06);
}

/* ---------- 主题配色 ---------- */
.h90-hero {
  transition: background 0.65s ease;
}
.h90-hero-glow {
  transition: background 0.65s ease;
}
.h90-hero-slider[data-theme="gold"] {
  background: linear-gradient(135deg, #1b1206 0%, #3b2807 52%, #5a3e0d 100%);
}
.h90-hero-slider[data-theme="gold"] .h90-hero-glow.g1 {
  background: rgba(245, 158, 11, 0.36);
}
.h90-hero-slider[data-theme="gold"] .h90-hero-glow.g2 {
  background: rgba(251, 191, 36, 0.15);
}
.h90-hero-slider[data-theme="gold"] .hs-title span {
  background: linear-gradient(90deg, #fcd34d 0%, #fef3c7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.h90-hero-slider[data-theme="green"] {
  background: linear-gradient(135deg, #04170f 0%, #0a2a1c 52%, #0e3d29 100%);
}
.h90-hero-slider[data-theme="green"] .h90-hero-glow.g1 {
  background: rgba(16, 185, 129, 0.32);
}
.h90-hero-slider[data-theme="green"] .h90-hero-glow.g2 {
  background: rgba(52, 211, 153, 0.15);
}
.h90-hero-slider[data-theme="green"] .hs-title span {
  background: linear-gradient(90deg, #6ee7b7 0%, #d1fae5 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  .h90-hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }
  .hs-slide .hs-title {
    font-size: 40px;
  }
  .hs-slide {
    padding-right: 0;
  }
}

@media (max-width: 720px) {
  .hs-slide .hs-title {
    font-size: 27px;
    line-height: 1.28;
  }
  .hs-slide .h90-hero-desc {
    margin-top: 16px;
    font-size: 14.5px;
    line-height: 1.75;
  }
  /* 两个按钮在窄屏按 46% 排布，超长自动换行，不再撑破容器 */
  .hs-slide .h90-hero-cta {
    gap: 10px;
    margin-top: 24px;
  }
  .hs-slide .h90-hero-cta .h90-btn {
    flex: 1 1 46%;
    min-width: 0;
    padding: 12px 10px;
    font-size: 13.5px;
    text-align: center;
    justify-content: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .hs-ctrl {
    margin-top: 22px;
    gap: 12px;
  }
  .hs-dot {
    width: 20px;
    height: 4px;
  }
  .hs-dot.on {
    width: 30px;
  }
  .hs-arrow {
    width: 32px;
    height: 32px;
    font-size: 17px;
  }
}

@media (max-width: 380px) {
  .hs-slide .hs-title {
    font-size: 24px;
  }
  .hs-slide .h90-hero-desc {
    font-size: 13.5px;
  }
  .hs-slide .h90-hero-cta {
    gap: 8px;
  }
  .hs-slide .h90-hero-cta .h90-btn {
    flex: 1 1 45%;
    padding: 11px 6px;
    font-size: 12.5px;
  }
}
