:root {
  --blue-deep: #0f2744;
  --blue-mid: #1e4a73;
  --blue-soft: #2f6a9a;
  --panel-from: #3a160c;
  --panel-to: #8a3d1a;
  --gold: #f5c542;
  --gold-bright: #ffe08a;
  --cream: #fff7e8;
  --white: #ffffff;
  --white-90: rgba(255, 255, 255, 0.92);
  --white-75: rgba(255, 255, 255, 0.75);
  --white-55: rgba(255, 255, 255, 0.55);
  --shadow: 0 24px 60px rgba(8, 18, 36, 0.45);
  --radius: 22px;
  --font-cn: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-en: "Outfit", "Noto Sans SC", sans-serif;
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-cn);
  color: var(--cream);
  background: var(--blue-deep);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

button {
  font: inherit;
  border: 0;
  background: none;
  cursor: pointer;
}

#app {
  min-height: 100vh;
}

.home {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background-image:
    linear-gradient(180deg, rgba(15, 39, 68, 0.88) 0%, rgba(30, 74, 115, 0.78) 48%, rgba(15, 39, 68, 0.9) 100%),
    url("../assets/img/fwc-1.jpg");
  background-size: cover;
  background-position: center bottom;
  background-attachment: fixed;
}

.home::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: radial-gradient(ellipse at center bottom, rgba(245, 197, 66, 0.16), transparent 68%);
  pointer-events: none;
}

/* —— Hero —— */
.hero-section {
  position: relative;
  z-index: 1;
  padding: clamp(48px, 8vw, 96px) clamp(20px, 5vw, 48px) clamp(40px, 6vw, 72px);
}

.hero-content {
  position: relative;
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: end;
  gap: 24px;
  min-height: clamp(280px, 42vh, 420px);
}

.hero-text {
  position: relative;
  z-index: 2;
  text-align: left;
  max-width: 620px;
  animation: rise 0.8s ease both;
}

.hero-nav {
  margin-bottom: 22px;
  color: var(--white-55);
  font-size: 14px;
  letter-spacing: 0.04em;
}

.brand-mark {
  font-family: var(--font-en);
  font-size: clamp(42px, 8vw, 72px);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--gold);
  text-shadow: 0 8px 28px rgba(245, 197, 66, 0.35);
  margin-bottom: 14px;
}

.hero-title {
  font-size: clamp(26px, 4.4vw, 44px);
  font-weight: 900;
  line-height: 1.22;
  color: var(--white);
  margin-bottom: 14px;
}

.hero-title span {
  display: inline-block;
  margin-top: 4px;
  font-size: 0.78em;
  font-weight: 700;
  color: var(--gold-bright);
}

.hero-subtitle {
  font-size: clamp(14px, 1.6vw, 17px);
  color: var(--white-75);
}

.hero-image {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  animation: float-in 1s ease 0.15s both;
}

.hero-image img {
  width: min(360px, 42vw);
  height: auto;
  display: block;
  filter: drop-shadow(0 22px 40px rgba(245, 197, 66, 0.28));
  transform: translateY(18px);
}

/* —— Download panel —— */
.download-section {
  position: relative;
  z-index: 2;
  padding: 0 clamp(16px, 4vw, 40px) clamp(48px, 8vw, 88px);
}

.download-panel {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(28px, 4vw, 40px) clamp(22px, 4vw, 40px) clamp(26px, 3.5vw, 36px);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), transparent 40%),
    linear-gradient(135deg, var(--panel-from) 0%, var(--panel-to) 100%);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 214, 140, 0.22);
  overflow: hidden;
  animation: rise 0.85s ease 0.2s both;
}

.download-glow {
  position: absolute;
  width: 280px;
  height: 280px;
  right: -80px;
  top: -120px;
  background: radial-gradient(circle, rgba(255, 196, 90, 0.28), transparent 68%);
  pointer-events: none;
}

.download-title {
  position: relative;
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 900;
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 8px;
}

.download-title em {
  font-style: normal;
  font-family: var(--font-en);
  color: var(--gold);
  letter-spacing: -0.02em;
}

.download-lead {
  position: relative;
  font-size: clamp(16px, 2.2vw, 20px);
  font-weight: 600;
  color: var(--white-90);
  margin-bottom: 20px;
}

.id-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 26px;
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 214, 140, 0.35);
  color: var(--gold-bright);
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.id-chip:hover {
  transform: translateY(-1px);
  background: rgba(0, 0, 0, 0.38);
  border-color: rgba(255, 214, 140, 0.55);
}

.id-chip:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.id-chip__at {
  font-family: var(--font-en);
  font-weight: 700;
  opacity: 0.8;
}

.id-chip__id {
  font-family: var(--font-en);
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.id-chip__hint {
  margin-left: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(245, 197, 66, 0.18);
  color: var(--cream);
  font-size: 12px;
  font-weight: 600;
}

.id-chip.is-copied .id-chip__hint {
  background: rgba(74, 222, 128, 0.22);
  color: #bbf7d0;
}

.cta-row {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 0;
}

.cta {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 72px;
  padding: 14px 18px;
  border-radius: 16px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.cta:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

.cta:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.cta--ios {
  background: linear-gradient(135deg, #111827 0%, #1f2937 100%);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
  color: var(--white);
}

.cta--android {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  box-shadow: 0 10px 24px rgba(217, 119, 6, 0.35);
  color: #1a1208;
}

.cta__icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.cta__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  text-align: left;
}

.cta__text small {
  font-size: 12px;
  opacity: 0.75;
  font-weight: 500;
}

.cta__text strong {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

/* —— Motion —— */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float-in {
  from {
    opacity: 0;
    transform: translate(20px, 24px);
  }
  to {
    opacity: 1;
    transform: translate(0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* —— Responsive —— */
@media (max-width: 900px) {
  .hero-content {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-text {
    max-width: none;
    text-align: center;
  }

  .hero-image {
    justify-content: center;
    margin-top: -8px;
  }

  .hero-image img {
    width: min(240px, 58vw);
    transform: translateY(28px);
  }

  .download-panel {
    margin-top: -8px;
  }
}

@media (max-width: 560px) {
  .home {
    background-attachment: scroll;
  }

  .cta-row {
    grid-template-columns: 1fr;
  }

  .id-chip {
    width: 100%;
    justify-content: center;
  }
}
