/* CTS 页顶 Banner：背景图 + 右侧代码文案层
 * 首页设计稿 1920×800，右侧蓝色文案区约 1100px（1100/1920 ≈ 57.2917%）
 */
.cts-banner {
  position: relative;
  width: 100%;
  height: 600px;
  overflow: hidden;
  background: #0b1c2c;
  box-sizing: border-box;
}
.cts-banner--home {
  height: 800px;
  /* 与顶栏垂直排列，不再上拉叠导航 */
  margin-top: 0;
}
.cts-banner-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
}
/* 首页双缓冲轮播：两层 .cts-banner-layer，is-front 淡入到上层 */
.cts-banner-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  background: #0b1c2c;
  overflow: hidden;
}
.cts-banner-layer {
  position: absolute !important;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  z-index: 0;
  transition: opacity 0.9s ease;
  pointer-events: none;
  will-change: opacity;
}
.cts-banner-layer.is-front {
  opacity: 1;
  z-index: 1;
}
.cts-banner-dots {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: auto;
}
.cts-banner-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}
.cts-banner-dot.is-active {
  background: #fff;
  transform: scale(1.15);
}
/* 首页：蓝区贴右，缩窄视口时裁切左侧场景，避免文案区被裁掉 */
.cts-banner--home .cts-banner-bg {
  background-position: right center;
}

/* 内页：相对右缘偏移的文案块 */
.cts-banner-copy {
  position: absolute;
  z-index: 2;
  top: 50%;
  right: 140px;
  left: auto;
  width: auto;
  max-width: calc(100% - 280px);
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: #fff;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  pointer-events: none;
  box-sizing: border-box;
}
/*
 * 首页文案层 = 蓝区本身，内容在蓝区内水平/垂直居中。
 * width 取 max(比例宽, min(1100px, 100%))：
 * - 视口≈1920：≈1100px
 * - 笔记本 125%（≈1536）：仍约 1100px（cover 贴右后蓝区物理宽度）
 * - 视口>1920：随比例变宽
 * - 视口<1100：占满整宽（此时画面几乎全是蓝区）
 */
.cts-banner--home .cts-banner-copy {
  right: 0;
  left: auto;
  width: max(calc(1100 / 1920 * 100%), min(1100px, 100%));
  max-width: 100%;
  padding: 0 clamp(16px, 2.5vw, 48px);
}
.cts-banner-copy-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  transition: opacity 0.25s ease;
}
.cts-banner-copy-text.is-fading {
  opacity: 0;
}
.cts-banner-copy a,
.cts-banner-cta {
  pointer-events: auto;
}
.cts-banner-title {
  margin: 0;
  font-size: 68px;
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
  letter-spacing: 1px;
}
.cts-banner-sub {
  margin: 40px 0 0;
  font-size: 36px;
  font-weight: 500;
  line-height: 1.4;
  color: #c7fdfd;
}
.cts-banner-sub--gold { color: #f5d078; }
.cts-banner-sub--cyan { color: #c7fdfd; }
.cts-banner-sub--orange { color: #f5931e; }
.cts-banner-sub--white { color: #fff; }
.cts-banner-desc {
  margin: 40px 0 0;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.92);
}
.cts-banner-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 40px;
  margin: 80px 0 0;
}
.cts-banner-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 280px;
  height: 60px;
  padding: 0;
  box-sizing: border-box;
  font-size: 30px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.cts-banner-cta--ghost {
  color: #fff;
  border: 2px solid #fff;
  background: transparent;
}
.cts-banner-cta--solid {
  color: #fff;
  border: 2px solid #0561e6;
  background: #0561e6;
}

/* 覆盖旧 subpage_ad 居中大字，改用右侧文案层 */
.subpage_ad.cts-banner-wrap {
  height: 600px !important;
  min-height: 600px;
}
.subpage_ad.cts-banner-wrap .text.capitalize {
  display: none !important;
}
.subpage_ad.cts-banner-wrap .cts-banner-copy {
  display: flex;
}

@media (max-width: 1400px) {
  .cts-banner:not(.cts-banner--home) .cts-banner-copy {
    right: 80px;
    max-width: calc(100% - 160px);
  }
  .cts-banner-title { font-size: 52px; }
  .cts-banner-sub { font-size: 28px; }
  .cts-banner-cta { width: 240px; height: 52px; font-size: 24px; }
}
@media (max-width: 1200px) {
  .cts-banner { height: 480px; }
  .cts-banner--home { height: 560px; margin-top: -80px; }
  .subpage_ad.cts-banner-wrap { height: 480px !important; min-height: 480px; }
  .cts-banner:not(.cts-banner--home) .cts-banner-copy { right: 48px; }
  .cts-banner-title { font-size: 40px; }
  .cts-banner-sub { font-size: 22px; margin-top: 28px; }
  .cts-banner-desc { margin-top: 28px; }
  .cts-banner-actions { margin-top: 48px; gap: 24px; }
  .cts-banner-cta { width: 200px; height: 48px; font-size: 18px; }
}
/* 平板及以下：蓝区往往铺满视口，文案改为整宽安全边距 */
@media (max-width:900px){
  .cts-banner--home .cts-banner-copy {
    width: max(calc(1100 / 1920 * 100%), min(1100px, 100%));
    padding: 0 clamp(12px, 2vw, 24px);
  }
}
@media (max-width: 768px) {
  .cts-banner { height: 320px; }
  /* 首页 hero：全宽，高度跟 1920×800 实图比例走，文案仍贴右侧蓝区 */
  .cts-banner--home {
    height: auto;
    min-height: 0;
    margin-top: 0;
    aspect-ratio: 1920 / 800;
  }
  .subpage_ad.cts-banner-wrap { height: 320px !important; min-height: 320px; }
  .cts-banner-copy {
    right: 16px;
    left: auto;
    width: 58%;
    max-width: none;
    padding: 0 12px;
    transform: translateY(-50%);
  }
  .cts-banner--home .cts-banner-copy {
    right: 0;
    left: auto;
    width: calc(1100 / 1920 * 100%);
    max-width: 62%;
    padding: 0 8px;
  }
  .cts-banner-title { font-size: 22px; }
  .cts-banner-sub { font-size: 13px; margin-top: 10px; }
  .cts-banner-desc { font-size: 12px; margin-top: 10px; line-height: 1.5; }
  .cts-banner--home .cts-banner-title { font-size: 16px; }
  .cts-banner--home .cts-banner-sub { font-size: 11px; margin-top: 6px; }
  .cts-banner-actions {
    margin-top: 16px;
    gap: 8px;
    width: 100%;
  }
  .cts-banner--home .cts-banner-actions { margin-top: 8px; }
  .cts-banner-cta {
    width: calc(50% - 4px);
    min-width: 0;
    height: 36px;
    font-size: 12px;
  }
  .cts-banner--home .cts-banner-cta {
    height: 26px;
    font-size: 10px;
    border-radius: 4px;
  }
  .cts-banner--home .cts-banner-dots { bottom: 8px; gap: 6px; }
  .cts-banner--home .cts-banner-dot { width: 6px; height: 6px; }
}
@media (max-width: 480px) {
  .cts-banner:not(.cts-banner--home) .cts-banner-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .cts-banner:not(.cts-banner--home) .cts-banner-cta {
    width: 100%;
    font-size: 14px;
  }
}
