/* Homepage hero banner. */

.banner {
  position: relative;
  left: 50%;
  width: 100vw;
  max-width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  height: 100vh;
  height: 100svh;
  margin-right: -50vw;
  margin-left: -50vw;
  overflow: hidden;
  background: #081120;
}

.banner__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background:
    linear-gradient(120deg, rgba(37, 99, 235, 0.18), rgba(16, 185, 129, 0.12)),
    url("https://www.liuwei.pub/pic/2023/02/04/63de7388614d4.jpg") center / cover no-repeat;
  transform: none;
}

.banner__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 4rem 1.5rem 5.5rem;
  color: #fff;
  text-align: center;
  background:
    radial-gradient(circle at 50% 38%, rgba(255, 255, 255, 0.14), transparent 21rem),
    linear-gradient(180deg, rgba(4, 11, 26, 0.28), rgba(4, 11, 26, 0.78) 78%, rgba(4, 11, 26, 0.94));
}

.banner__logo {
  width: clamp(5.8rem, 13vw, 8.4rem);
  height: auto;
  padding: 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--ld-radius);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.34);
  object-fit: contain;
}

.banner__title {
  max-width: min(92vw, 760px);
  margin: 0;
  color: #fff;
  font-family: "XinYiGuanHeiTi", system-ui, sans-serif;
  font-size: clamp(2.35rem, 7vw, 4.6rem);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.08;
  text-shadow: 0 8px 34px rgba(0, 0, 0, 0.35);
}

.banner__tagline {
  max-width: 42rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(0.95rem, 2.2vw, 1.18rem);
  line-height: 1.75;
}

.banner__badges,
.banner__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.banner__badges {
  gap: 0.55rem;
  margin-top: 0.25rem;
}

.banner__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2rem;
  padding: 0.28rem 0.76rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.8rem;
  font-weight: 650;
  backdrop-filter: blur(8px);
}

.banner__actions {
  gap: 0.75rem;
  margin-top: 0.55rem;
}

.banner__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.48rem;
  min-height: 2.55rem;
  padding: 0.62rem 1.18rem;
  border-radius: 7px;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

.banner__btn:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.banner__btn--primary {
  border: 1px solid transparent;
  background: var(--ld-blue);
  color: #fff !important;
}

.banner__btn--primary:hover {
  background: var(--ld-blue-strong);
}

.banner__btn--ghost {
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.12);
  color: #fff !important;
  backdrop-filter: blur(8px);
}

.banner__btn--ghost:hover {
  background: rgba(255, 255, 255, 0.2);
}

.banner__scroll-hint {
  position: absolute;
  bottom: 1.3rem;
  left: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.75) !important;
  text-decoration: none;
  transform: translateX(-50%);
  animation: banner-bob 2.2s ease-in-out infinite;
}

@keyframes banner-bob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(7px); }
}

@media (max-width: 640px) {
  .banner {
    min-height: 100vh;
    min-height: 100svh;
  }

  .banner__overlay {
    padding-right: 1.1rem;
    padding-left: 1.1rem;
  }

  .banner__btn {
    width: min(100%, 13rem);
  }
}
