/* DESIGN.md (active / Airbnb-inspired) tokens — leyou.asia 静态首页 */
:root {
  --rausch: #ff385c;
  --rausch-deep: #e00b41;
  --ink: #222222;
  --ash: #6a6a6a;
  --mute: #929292;
  --hairline: #dddddd;
  --canvas: #ffffff;
  --cloud: #f7f7f7;
  --info: #428bff;
  --radius: 16px;
  --font-display: "Outfit", "Noto Sans SC", system-ui, sans-serif;
  --font-body: "Noto Sans SC", "Outfit", system-ui, sans-serif;
  --pad-x: clamp(1.25rem, 4vw, 3rem);
  --max: 72rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font-family: var(--font-body);
  font-weight: 500;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 100;
}

.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
}

/* —— Top bar —— */
.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem var(--pad-x);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0) 100%);
  color: #fff;
  pointer-events: none;
}

.topbar a,
.topbar .brand {
  pointer-events: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 0.45rem;
  background: linear-gradient(90deg, #ff385c 0%, #e00b41 50%, #92174d 100%);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.35);
}

.topnav a {
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.topnav a:hover {
  background: rgba(255, 255, 255, 0.24);
}

/* —— Hero：一屏一构图，全宽主视觉 —— */
.hero {
  position: relative;
  min-height: 100svh;
  min-height: 100vh;
  display: grid;
  align-items: end;
  color: #fff;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  transform: scale(1.04);
  animation: heroDrift 18s ease-in-out alternate infinite;
}

@keyframes heroDrift {
  from {
    transform: scale(1.04) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.1) translate3d(-1.5%, -1%, 0);
  }
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.28) 0%, rgba(0, 0, 0, 0.15) 35%, rgba(0, 0, 0, 0.72) 100%),
    radial-gradient(ellipse 80% 50% at 20% 80%, rgba(255, 56, 92, 0.28), transparent 55%);
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 6.5rem var(--pad-x) 3.25rem;
  animation: riseIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(1.25rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-brand {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

.hero-title {
  margin: 0 0 0.85rem;
  max-width: 18ch;
  font-size: clamp(1.35rem, 3.4vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.hero-lead {
  margin: 0 0 1.5rem;
  max-width: 28ch;
  font-size: 1rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  animation: riseIn 0.9s 0.15s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.btn {
  appearance: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.25;
  padding: 0.9rem 1.5rem;
  border-radius: 8px;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.btn:active {
  transform: scale(0.96);
}

.btn-primary {
  background: var(--rausch);
  color: #fff;
  box-shadow: 0 8px 24px rgba(255, 56, 92, 0.35);
}

.btn-primary:hover {
  background: var(--rausch-deep);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(6px);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.22);
}

/* —— Open band —— */
.band {
  background: var(--cloud);
  padding: 4rem var(--pad-x);
}

.band-inner,
.pillars-inner,
.footer-inner {
  width: min(100%, var(--max));
  margin: 0 auto;
}

.band-title,
.section-title {
  margin: 0 0 0.5rem;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.band-lead,
.section-lead {
  margin: 0 0 2rem;
  color: var(--ash);
  font-size: 1rem;
  max-width: 36rem;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1.15rem 1.25rem;
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
}

.step-n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--rausch);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
}

.steps strong {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 1rem;
}

.steps p {
  margin: 0;
  color: var(--ash);
  font-size: 0.925rem;
}

.meta {
  margin: 1.75rem 0 0;
  font-size: 0.75rem;
  color: var(--mute);
}

.meta code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.7rem;
  color: var(--ash);
}

/* —— Pillars —— */
.pillars {
  padding: 4rem var(--pad-x) 5rem;
  background: var(--canvas);
}

.pillar-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .pillar-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .pillar-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.pillar-grid li {
  padding: 1.35rem 1.25rem;
  border-top: 2px solid var(--ink);
}

.pillar-grid h3 {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.pillar-grid p {
  margin: 0;
  color: var(--ash);
  font-size: 0.925rem;
  line-height: 1.45;
}

/* —— Footer —— */
.footer {
  border-top: 1px solid var(--hairline);
  background: var(--cloud);
  padding: 2rem var(--pad-x);
}

.footer-brand {
  margin: 0 0 0.35rem;
  font-weight: 700;
  font-size: 0.95rem;
}

.footer-note {
  margin: 0;
  font-size: 0.75rem;
  color: var(--mute);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%);
  z-index: 50;
  padding: 0.75rem 1.15rem;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 0.875rem;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.toast[hidden] {
  display: none;
}
