:root {
  --bg-start: #fffdf9;
  --bg-mid: #fff7f8;
  --bg-end: #fff4f5;
  --text-main: #161214;
  --text-sub: #5b4f54;
  --brand-pink: #ff1493;
  --brand-peach: #ffb68c;
  --line-soft: rgba(255, 130, 170, 0.18);
  --shadow-soft: 0 24px 50px rgba(255, 104, 163, 0.14);
  --max-width: 1460px;
  --font-main: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-hero: "Nowar Warcraft Rounded CN Bold", "Nowar-Warcraft-Rounded-CN-Bold",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--font-main);
  color: var(--text-main);
  background: #fff;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.site-shell {
  min-height: 100vh;
  background: #fff;
}

.hero-stage {
  position: relative;
  min-height: calc(100vh - 110px);
  overflow: hidden;
  --hero-scale: 1;
  background:
    radial-gradient(circle at 10% 14%, rgba(255, 216, 233, 0.34), transparent 22%),
    radial-gradient(circle at 87% 8%, rgba(255, 231, 187, 0.34), transparent 20%),
    linear-gradient(180deg, var(--bg-start) 0%, var(--bg-mid) 54%, var(--bg-end) 100%);
}

.hero-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("./image/底图@2x.png");
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: cover;
  opacity: 1;
  pointer-events: none;
}

.hero-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 6%, rgba(255, 255, 255, 0.72), transparent 22%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  left: 50%;
  top: -15px;
  width: 1460px;
  height: 900px;
  transform: translateX(-50%) scale(var(--hero-scale));
  transform-origin: top center;
  z-index: 2;
}

.topbar {
  width: 100%;
  margin: 0;
  padding: 20px 0 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: relative;
  z-index: 2;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
}

.brand-mark {
  width: 36px;
  height: 36px;
}

.brand-text {
  font-size: 31px;
  letter-spacing: 0.5px;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 56px;
  margin-left: auto;
  margin-right: auto;
}

.primary-nav a {
  position: relative;
  padding: 8px 0;
  font-size: 24px;
  font-weight: 600;
  color: #241d1f;
}

.primary-nav a.is-active {
  color: var(--brand-pink);
}

.primary-nav a.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -12px;
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff89b8, var(--brand-pink));
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.top-action-image img {
  height: 32px;
  width: auto;
}

.pill {
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 600;
  white-space: nowrap;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.pill.gradient {
  color: #fff;
  background: linear-gradient(90deg, #ffb184, #ff118f);
  box-shadow: 0 10px 24px rgba(255, 76, 151, 0.24);
}

.pill:hover,
.download-btn:hover,
.top-action-image:hover {
  transform: translateY(-2px);
}

.hero {
  width: 100%;
  margin: 0;
  position: relative;
  z-index: 2;
  padding-top: 52px;
  min-height: 760px;
}

.hero-copy {
  position: relative;
  z-index: 2;
  text-align: center;
}

.eyebrow {
  margin: 0 0 14px;
  font-size: 17px;
  letter-spacing: 0.18em;
  color: #97888d;
}

.hero h1 {
  margin: 0;
  font-size: clamp(50px, 5.3vw, 84px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: 1px;
  font-family: var(--font-hero);
}

.hero h1 span {
  color: var(--brand-pink);
}

.hero-subtitle {
  margin: 18px 0 0;
  font-size: clamp(18px, 1.65vw, 30px);
  color: var(--text-sub);
}

.download-bar {
  margin-top: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  flex-wrap: wrap;
}

.qr-panel,
.download-btn {
  min-height: 108px;
  border-radius: 28px;
  box-shadow: var(--shadow-soft);
}

.qr-panel {
  width: 350px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 12px 12px 24px;
  background: linear-gradient(90deg, rgba(255, 187, 148, 0.98), rgba(255, 23, 143, 0.98));
}

.qr-label {
  flex: 1;
  text-align: left;
  font-size: 21px;
  font-weight: 800;
  color: #1a1517;
}

.qr-code {
  flex: 0 0 92px;
  height: 92px;
  border-radius: 22px;
  background: #fff;
  border: 5px solid rgba(255, 255, 255, 0.98);
  position: relative;
  overflow: hidden;
}

.qr-code img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
}

.download-btn {
  min-width: 330px;
  padding: 0 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-size: 24px;
  font-weight: 800;
  color: #141112;
  background: linear-gradient(90deg, rgba(255, 186, 151, 0.96), rgba(255, 18, 144, 0.98));
}

.download-icon-image {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.footer {
  width: min(calc(100% - 44px), var(--max-width));
  margin: 0 auto;
  padding: 24px 0 30px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  color: rgba(105, 94, 99, 0.92);
  font-size: 15px;
}

.footer p {
  margin: 6px 0 0;
}

@media (max-width: 1120px) {
  .hero-stage {
    min-height: calc(100vh - 100px);
  }

  .hero-overlay {
    height: 860px;
  }

  .topbar {
    flex-wrap: wrap;
    justify-content: center;
  }

  .primary-nav {
    order: 3;
    margin: 0;
  }

  .hero {
    padding-top: 28px;
    min-height: 720px;
  }
}

@media (max-width: 860px) {
  .hero-overlay {
    width: calc(100% - 28px);
    left: 14px;
    transform: none;
    transform-origin: top left;
    height: auto;
  }

  .topbar,
  .hero,
  .footer {
    width: 100%;
  }

  .brand-text {
    font-size: 26px;
  }

  .primary-nav {
    gap: 28px;
  }

  .primary-nav a {
    font-size: 18px;
  }

  .pill {
    font-size: 15px;
    padding: 0 14px;
  }

  .top-action-image img {
    height: 28px;
  }

  .download-btn,
  .qr-panel {
    width: min(100%, 420px);
    min-width: 0;
  }

  .download-btn {
    font-size: 21px;
  }
}

@media (max-width: 640px) {
  .hero-stage {
    min-height: auto;
  }

  .hero-overlay {
    position: relative;
    left: auto;
    top: auto;
    width: 100%;
    height: auto;
    transform: none;
  }

  .topbar {
    justify-content: space-between;
    gap: 12px;
    padding-top: 14px;
  }

  .brand-mark {
    width: 30px;
    height: 30px;
  }

  .brand-text {
    font-size: 22px;
  }

  .top-actions {
    width: 100%;
    justify-content: space-between;
    gap: 8px;
  }

  .top-action-image img {
    height: 26px;
  }

  .pill {
    min-height: 36px;
    padding: 0 12px;
    font-size: 13px;
  }

  .primary-nav {
    width: 100%;
    justify-content: center;
    gap: 24px;
  }

  .eyebrow {
    font-size: 13px;
    letter-spacing: 0.14em;
  }

  .hero-subtitle {
    margin-top: 14px;
    font-size: 16px;
  }

  .download-bar {
    margin-top: 26px;
    gap: 14px;
  }

  .qr-panel,
  .download-btn {
    min-height: 82px;
    border-radius: 22px;
  }

  .qr-panel {
    padding: 10px 10px 10px 18px;
  }

  .qr-label,
  .download-btn {
    font-size: 17px;
  }

  .qr-code {
    flex-basis: 70px;
    height: 70px;
    border-radius: 18px;
  }

  .download-icon-image {
    width: 24px;
    height: 24px;
  }

  .footer {
    flex-direction: column;
    align-items: flex-start;
    font-size: 13px;
    padding-top: 18px;
  }
}
