:root {
  --primary: #FDBA74;
  --secondary: #A7F3D0;
  --accent: #FDE68A;
  --bg-dark: #0F172A;
  --bg-light: rgba(255, 255, 255, 0.05);
  --text-main: #FFFFFF;
  --text-muted: rgba(255, 255, 255, 0.65);
  --header-h: 64px;
  --container: 1200px;
}

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

html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: anywhere;
}

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

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

button {
  font-family: inherit;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 5vw;
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: linear-gradient(to bottom, rgba(15, 23, 42, 0.85), transparent);
  transition: background 0.3s ease, backdrop-filter 0.3s ease;
}

.site-header.scrolled {
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 2px rgba(253, 186, 116, 0.35);
}

.brand-name {
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.02em;
}

.menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  font-size: 1.25rem;
  color: var(--text-main);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  cursor: pointer;
}

.nav-links {
  display: none;
  flex-direction: column;
  position: absolute;
  top: var(--header-h);
  left: 0;
  right: 0;
  padding: 16px 5vw;
  background: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(12px);
  gap: 12px;
}

.nav-links.open {
  display: flex;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  font-weight: 600;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
}

@media (min-width: 768px) {
  .menu-toggle {
    display: none;
  }

  .nav-links {
    display: flex !important;
    flex-direction: row;
    position: static;
    padding: 0;
    background: transparent;
    backdrop-filter: none;
    gap: 28px;
  }
}

.btn-base {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  border: none;
  border-radius: 9999px;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  will-change: transform;
}

.btn-neon {
  padding: 10px 22px;
  font-size: 0.9rem;
  color: var(--primary);
  background: transparent;
  border: 2px solid var(--primary);
  box-shadow: 0 0 12px rgba(253, 186, 116, 0.35);
}

.btn-neon:hover {
  transform: scale(1.05);
  box-shadow: 0 0 24px rgba(253, 186, 116, 0.7);
}

.btn-liquid {
  position: relative;
  z-index: 1;
  padding: 14px 30px;
  font-size: 1rem;
  color: var(--bg-dark);
  background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent), var(--primary));
  background-size: 300% 100%;
  animation: liquidMove 5s linear infinite;
  overflow: hidden;
}

.btn-liquid::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%);
  transform: translateX(-100%);
  animation: shimmer 3s infinite;
}

.btn-liquid:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 12px 30px rgba(253, 186, 116, 0.35);
}

.btn-large {
  padding: 18px 40px;
  font-size: 1.15rem;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
}

.card-glass {
  background: var(--bg-light);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.25rem;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.card-glass:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.card-flat {
  background: rgba(30, 41, 59, 0.9);
  border-radius: 1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-flat:hover {
  transform: scale(1.03);
  box-shadow: 0 0 30px rgba(253, 186, 116, 0.25);
}

.title-line {
  position: relative;
  display: inline-block;
  padding-bottom: 0.6rem;
  margin-bottom: 1.5rem;
}

.title-line::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.title-bar {
  position: relative;
  padding-left: 1rem;
}

.title-bar::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.25em;
  bottom: 0.25em;
  width: 5px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--primary), var(--secondary));
}

.section {
  padding: 72px 0;
}

.section-eyebrow {
  margin: 0 0 10px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
}

.section-title {
  margin: 0 0 28px;
  font-size: clamp(1.7rem, 6vw, 2.6rem);
  font-weight: 800;
  line-height: 1.2;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  animation: heroZoom 12s ease forwards;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(15, 23, 42, 0.35) 0%, rgba(15, 23, 42, 0.82) 80%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  padding: 0 5vw;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-logo {
  width: 110px;
  height: 110px;
  border-radius: 28px;
  object-fit: cover;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.45), 0 0 0 4px rgba(253, 186, 116, 0.15);
  animation: popIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-title {
  margin: 24px 0 12px;
  font-size: clamp(2.6rem, 11vw, 5.2rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: 0.04em;
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  animation: fadeUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
}

.hero-tagline {
  margin: 0 0 32px;
  font-size: clamp(1rem, 3.6vw, 1.35rem);
  color: var(--text-muted);
  max-width: 560px;
  animation: fadeUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both;
}

.hero-cta {
  animation: fadeUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.45s both;
}

.hero-scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 26px;
  height: 40px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-radius: 13px;
  animation: fadeIn 1s ease 1s both;
}

.hero-scroll span {
  display: block;
  width: 4px;
  height: 8px;
  margin: 7px auto 0;
  background: var(--primary);
  border-radius: 2px;
  animation: scrollPulse 1.6s ease-in-out infinite;
}

.page-hero {
  position: relative;
  min-height: 42svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(15, 23, 42, 0.7), rgba(15, 23, 42, 0.92));
}

.page-hero-content {
  position: relative;
  z-index: 2;
  padding: calc(var(--header-h) + 32px) 5vw 32px;
}

.page-hero-title {
  margin: 0 0 12px;
  font-size: clamp(2rem, 8vw, 3.2rem);
  font-weight: 900;
}

.page-hero-desc {
  margin: 0 auto;
  max-width: 640px;
  color: var(--text-muted);
  font-size: clamp(1rem, 3vw, 1.15rem);
}

.qr-card img {
  width: 100%;
  max-width: 160px;
  margin: 0 auto 16px;
  border-radius: 12px;
}

.site-footer {
  padding: 56px 0 28px;
  background: #0b1221;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-bottom: 36px;
}

.footer-col h4 {
  margin: 0 0 14px;
  font-size: 1rem;
  font-weight: 800;
  color: var(--primary);
}

.footer-col p,
.footer-col a {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.footer-col a:hover {
  color: var(--primary);
}

.footer-qr {
  display: flex;
  gap: 12px;
  margin-top: 10px;
}

.footer-qr img {
  width: 76px;
  height: 76px;
  border-radius: 8px;
  object-fit: cover;
}

.friend-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
}

.friend-links a {
  display: inline-block;
  padding: 6px 12px;
  font-size: 0.88rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.friend-links a:hover {
  color: var(--bg-dark);
  background: var(--primary);
  transform: translateY(-2px);
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  :root {
    --header-h: 72px;
  }

  .section {
    padding: 100px 0;
  }

  .hero-logo {
    width: 140px;
    height: 140px;
    border-radius: 36px;
  }

  .footer-grid {
    grid-template-columns: 1.2fr 0.9fr 1fr 1.2fr;
  }
}

@keyframes heroZoom {
  from { transform: scale(1.12); }
  to { transform: scale(1.05); }
}

@keyframes popIn {
  from { opacity: 0; transform: scale(0.85) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scrollPulse {
  0%, 100% { opacity: 1; transform: translateY(0); }
  50% { opacity: 0.4; transform: translateY(6px); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes liquidMove {
  0% { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  z-index: 200;
  padding: 12px 24px;
  font-weight: 700;
  color: var(--bg-dark);
  background: var(--secondary);
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  transition: transform 0.35s ease;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
}
