/** ============================================
 * Banner & Stats Panel 样式
 * 从 header.css 迁移
 * ============================================ */

/* CSS Variables for Banner */
:root {
  --color-banner-start: #2175e9;
  --color-banner-end: #0b63db;
  --color-gold-start: #e8d71f;
  --color-gold-end: #c37d04;
  --color-blue-text-start: #3ca7ff;
  --color-blue-text-end: #1f6de8;
  --color-desc: #00429f;
  --shadow-sub: 0 10px 7px rgba(0, 78, 151, 0.14);
  --font-title: "Alimama ShuHeiTi", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Source Han Sans CN", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-num: "OPPOSans H", "DIN Alternate", "Roboto", "PingFang SC", sans-serif;
}

.is-hidden {
  display: none !important;
}

/* ============================================
 * Banner
 * ============================================ */
.banner {
  position: relative;
  width: 100%;
  max-width: 1920px;
  height: 695px;
  margin: 0 auto;
  overflow: hidden;
  background: #ffffff;
}

/* Background */
.banner-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.banner-bg__img {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 583px;
  background-size: cover;
  background-position: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

.banner-bg__img--active {
  opacity: 1;
  z-index: 1;
  pointer-events: auto;
}

.banner-bg__gradient {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 583px;
  background: linear-gradient(180deg, rgba(29, 124, 254, 0.7) 0%, rgba(29, 124, 254, 0) 100%);
  z-index: 2;
  pointer-events: none;
}

/* Banner Content */
.banner-content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 189px;
  max-width: 1200px;
  margin: 0 auto;
}

.slogan {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
}

.slogan-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
}

.slogan-word {
  font-family: var(--font-title);
  font-size: 70px;
  font-weight: 700;
  letter-spacing: 8.4px;
  line-height: 1.1;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.slogan-word--gold {
  background-image: linear-gradient(180deg, var(--color-gold-start) 0%, var(--color-gold-end) 100%);
}

.slogan-word--blue {
  background-image: linear-gradient(180deg, var(--color-blue-text-start) 0%, var(--color-blue-text-end) 100%);
}

.slogan-dot {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #ffffff;
  flex-shrink: 0;
}

.slogan-sub {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 798px;
  height: 42px;
  padding: 0 32px;
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.32) 100%);
  border: 1px solid transparent;
  border-image: linear-gradient(360deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%) 1;
  box-shadow: var(--shadow-sub);
  backdrop-filter: blur(10.5px);
  -webkit-backdrop-filter: blur(10.5px);
}

.slogan-sub p {
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: normal;
  color: var(--color-desc);
  line-height: 1.4;
  white-space: nowrap;
}

/* Carousel Indicators */
.carousel-indicators {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 173px;
  z-index: 10;
  display: flex;
  gap: 10px;
  width: 1200px;
}

.indicator {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  opacity: 0.4;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.indicator--active,
.indicator:hover {
  opacity: 1;
}

.indicator-num {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1;
}

.indicator-line {
  display: block;
  width: 100%;
  height: 2px;
  background: #ffffff;
  border-radius: 1px;
}

/* ============================================
 * Stats Panel
 * ============================================ */
.stats-panel {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 10;
  width: 100%;
  height: 112px;
  background:
    linear-gradient(180deg, #2175E9 0%, #0B63DB 100%),
    url("../images/image_116.png"),
    url("../images/image_115.png");
  background-size: 100% 100%, auto 100%, auto 100%;
  background-position: left top, right center, left center;
  background-repeat: no-repeat, no-repeat, no-repeat;
}

.stats-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  max-width: 1920px;
  height: 100%;
  margin: 0 auto;
  padding: 12px 270px;
}

.stat-item {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 71px;
  border-radius: 8px 0 0 8px;
  padding: 0 16px;
  transition: transform 0.25s ease;
  flex: 1;
}

.stat-item:hover {
  transform: translateY(-2px);
}

.stat-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.stat-value {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.stat-value--amount {
  flex-wrap: nowrap;
  white-space: nowrap;
}

.stat-num {
  font-family: var(--font-num);
  font-size: 28px;
  font-weight: normal;
  color: #ffffff;
  line-height: 1;
}

.stat-unit {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1;
}

.stat-unit--small {
  font-size: 14px;
  font-weight: normal;
}

.stat-label {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: normal;
  color: #ffffff;
  line-height: 1.2;
  white-space: nowrap;
}

/* ============================================
 * Responsive — Tablet (768px ~ 1439px)
 * ============================================ */
@media (max-width: 1439px) {
  .banner {
    height: 620px;
  }

  .banner-content {
    padding-top: 140px;
  }

  .slogan-word {
    font-size: 48px;
    letter-spacing: 4px;
  }

  .slogan-sub {
    width: auto;
    max-width: 700px;
    padding: 0 24px;
  }

  .slogan-sub p {
    font-size: 16px;
    white-space: normal;
    text-align: center;
  }

  .carousel-indicators {
    left: 48px;
    width: auto;
    right: 48px;
    bottom: 140px;
  }

  .stats-inner {
    padding: 12px 48px;
  }

  .stat-num {
    font-size: 22px;
  }

  .stat-label {
    font-size: 14px;
  }
}

/* ============================================
 * Responsive — Mobile (< 768px)
 * ============================================ */
@media (max-width: 767px) {
  .banner {
    height: 520px;
  }

  .banner-content {
    padding-top: 100px;
    padding-left: 16px;
    padding-right: 16px;
  }

  .slogan {
    gap: 16px;
    width: 100%;
  }

  .slogan-title {
    gap: 12px;
  }

  .slogan-word {
    font-size: 32px;
    letter-spacing: 2px;
  }

  .slogan-dot {
    width: 8px;
    height: 8px;
  }

  .slogan-sub {
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: 36px;
    padding: 8px 16px;
    border-radius: 20px;
  }

  .slogan-sub p {
    font-size: 13px;
    white-space: normal;
    text-align: center;
    line-height: 1.5;
  }

  .carousel-indicators {
    left: 16px;
    right: 16px;
    bottom: 200px;
  }

  .indicator-num {
    font-size: 14px;
  }

  .stats-panel {
    height: auto;
    min-height: 100px;
    padding: 12px 0;
  }

  .stats-inner {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 0 16px;
    height: auto;
  }

  .stat-item {
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 8px;
    border-radius: 8px;
  }

  .stat-info {
    align-items: center;
    gap: 2px;
  }

  .stat-num {
    font-size: 18px;
  }

  .stat-unit {
    font-size: 14px;
  }

  .stat-unit--small {
    font-size: 12px;
  }

  .stat-label {
    font-size: 12px;
  }
}

/* ============================================
 * Responsive — Small Mobile (< 480px)
 * ============================================ */
@media (max-width: 479px) {
  .stats-inner {
    grid-template-columns: repeat(2, 1fr);
  }

  .slogan-word {
    font-size: 26px;
    letter-spacing: 1px;
  }

  .carousel-indicators {
    bottom: 210px;
  }
}
