:root {
  color-scheme: dark;
  --page: #07080c;
  --ink: #ffffff;
  --ink-soft: rgba(255, 255, 255, 0.76);
  --line: rgba(255, 255, 255, 0.18);
  --white: #ffffff;
  font-family: "Inter", "Microsoft YaHei", "PingFang SC", "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-width: 320px;
  min-height: 100%;
  margin: 0;
  background: var(--page);
}

body {
  overflow-x: hidden;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
a {
  font: inherit;
}

button {
  cursor: pointer;
}

.landing-page {
  min-height: 100svh;
  background: var(--page);
}

.hero {
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-height: 100svh;
  width: 100%;
  padding: 56px 64px 26px;
  overflow: hidden;
  isolation: isolate;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero::before {
  z-index: -2;
  background-image: url("/image/bg.png");
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  transform: scale(1.01);
}

.hero::after {
  z-index: -1;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.08), transparent 30%),
    linear-gradient(180deg, rgba(2, 4, 8, 0.66) 0%, rgba(2, 4, 8, 0.34) 42%, rgba(2, 4, 8, 0.76) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.68) 0%, rgba(0, 0, 0, 0.16) 42%, rgba(0, 0, 0, 0.68) 100%);
}

.hero-copy,
.ad-slots {
  position: relative;
  z-index: 2;
}

.hero-copy {
  align-self: center;
  width: min(840px, 100%);
  margin: 0 auto 34px;
  text-align: center;
}

.hero-kicker {
  display: inline-grid;
  place-items: center;


  margin: 0 0 20px;
  padding: 0;
  border-radius: 18px;
  background: transparent;
}

.hero-kicker img {
  height: 68px;
  border-radius: 18px;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.34);
}



.hero-subtitle {
  width: min(620px, 100%);
  margin: 18px auto 0;
  color: var(--ink-soft);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0;
  text-shadow: 0 6px 24px rgba(0, 0, 0, 0.32);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 34px;
}

.primary-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  justify-content: center;
  width: 286px;
  min-width: 286px;
  height: 58px;
  padding: 8px 24px;
  color: #fff;
  border: 0;
  border-radius: 999px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.24);
  overflow: hidden;
  transition: transform 200ms ease, box-shadow 200ms ease;
  z-index: 0;
  background: linear-gradient(135deg, #dc2626, #ef4444, #450a0a, #1c1917, #dc2626);
  background-size: 400% 400%;
  animation: cta-fluid-bg 8s ease-in-out infinite;
}

@keyframes cta-fluid-bg {
  0% { background-position: 0% 50%; }
  25% { background-position: 100% 0%; }
  50% { background-position: 100% 100%; }
  75% { background-position: 0% 100%; }
  100% { background-position: 0% 50%; }
}

.primary-cta::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  opacity: 0;
  animation: cta-glow-pulse 3s ease-in-out infinite;
  z-index: -1;
  pointer-events: none;
}

.primary-cta::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 120px;
  height: 120px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: repeating-conic-gradient(
    from 0deg,
    rgba(255, 255, 255, 0.18) 0deg 1deg,
    transparent 1deg 8deg,
    rgba(255, 255, 255, 0.08) 8deg 9deg,
    transparent 9deg 30deg
  );
  z-index: -2;
  pointer-events: none;
  animation: cta-rays 3s ease-out infinite;
}

@keyframes cta-rays {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.3); }
  12% { opacity: 1; }
  50% { opacity: 0.7; }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(2.2); }
}

@keyframes cta-glow-pulse {
  0%, 100% { opacity: 0; }
  50% { opacity: 0.6; }
}

.primary-cta:hover {
  transform: scale(1.04);
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.32);
}

.primary-cta:hover::before {
  opacity: 0.8;
}

.primary-cta:active {
  transform: scale(0.97);
}

.primary-cta span {
  text-align: center;
}

.primary-cta strong {
  font-size: 17px;
  font-weight: 800;
  line-height: 1.1;
}

.ad-slots {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  width: min(1120px, 100%);
  margin: 0 auto;
}

.ad-card {
  min-width: 0;
  height: 90px;
  min-height: 0;
  padding: 14px 16px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.ad-card__eyebrow {
  display: block;
  margin-bottom: 5px;
  color: rgba(9, 11, 15, 0.52);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ad-card h2 {
  margin: 0;
  color: #07080c;
  font-size: 19px;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: 0;
}

.ad-card p {
  margin: 5px 0 0;
  color: rgba(9, 11, 15, 0.62);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
}

.ad-card--active {
  position: relative;
  display: grid;
  align-content: start;
  color: #07080c;
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(18px);
  box-shadow: none;
  cursor: pointer;
}

.ad-card--active h2 {
  color: #fff;
}

.ad-card--active p {
  color: rgba(255, 255, 255, 0.7);
}

.ad-card--active .ad-card__eyebrow {
  color: rgba(255, 255, 255, 0.5);
}

.ad-card__main {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
}

.ad-card__icon {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.ad-card__copy {
  min-width: 0;
}

.ad-card--active p {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ad-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: inline-grid;
  place-items: center;
  height: 22px;
  padding: 0 9px;
  border-radius: 999px;
  color: #0d1118;
  font-size: 12px;
  font-weight: 900;
  background: rgba(116, 216, 79, 0.72);
  box-shadow: 0 10px 26px rgba(77, 181, 54, 0.24);
}

.ad-card--active::before {
  content: "";
  position: absolute;
  right: -36px;
  bottom: -42px;
  width: 118px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(116, 216, 79, 0.65), transparent 68%);
}

.ad-card--empty {
  border-style: dashed;
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(18px);
  box-shadow: none;
}

.ad-card--empty .ad-card__eyebrow,
.ad-card--empty h2,
.ad-card--empty p {
  color: rgba(255, 255, 255, 0.4);
}

.ad-card--empty h2 {
  font-size: 18px;
  font-weight: 800;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 20;
  max-width: min(520px, calc(100vw - 32px));
  padding: 11px 16px;
  border-radius: 999px;
  color: #111318;
  font-size: 13px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.22);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.primary-cta:focus-visible {
  outline: 3px solid rgba(116, 216, 79, 0.58);
  outline-offset: 4px;
}

.primary-cta.is-loading {
  pointer-events: none;
  transform: translateY(1px);
}

@media (max-width: 980px) {
  .hero {
    padding: 44px 32px 26px;
  }

  .hero-copy h1 {
    font-size: 44px;
  }

  .ad-slots {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .hero {
    align-content: start;
    min-height: 100svh;
    padding: 18px 18px 20px;
  }

  .hero-copy {
    align-self: start;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 20vh;
    margin: 0 auto;
  }

  .hero-kicker {

    margin-bottom: 16px;
    border-radius: 16px;
  }

  .hero-kicker img {

    height: 58px;
    border-radius: 16px;
  }

  .hero-copy h1 {
    font-size: 34px;
    line-height: 1.12;
  }

  .hero-subtitle {
    margin-top: 14px;
    font-size: 15px;
    line-height: 1.55;
  }

  .hero-actions {
    gap: 10px;
    margin-top: 24px;
  }

  .primary-cta {
    width: min(100%, 330px);
    min-width: 0;
    height: 52px;
  }

  .ad-slots {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .ad-card {
    height: 90px;
    min-height: 0;
    padding: 13px 14px;
  }

  .ad-card__eyebrow {
    margin-bottom: 8px;
    font-size: 10px;
  }

  .ad-card h2 {
    font-size: 18px;
  }

  .ad-card p {
    font-size: 12px;
  }

  .ad-card__main {
    gap: 10px;
  }

  .ad-card__icon {
    flex-basis: 32px;
    width: 32px;
    height: 32px;
    border-radius: 9px;
  }

}

@media (max-width: 380px) {
  .hero-copy {
    margin-top: 30px;
  }

  .hero-copy h1 {
    font-size: 30px;
  }

  .primary-cta {
    height: 58px;
  }

}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
