:root {
  color-scheme: light;
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  background: #ead8bd;
}

* {
  box-sizing: border-box;
}

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

.landing-body {
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  color: #72513c;
  background: #ead8bd;
}

.landing-page {
  position: relative;
  isolation: isolate;
  display: flex;
  min-height: 100vh;
  min-height: 100svh;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: max(30px, env(safe-area-inset-top)) 24px max(26px, env(safe-area-inset-bottom));
  overflow: hidden;
}

.landing-background,
.landing-haze {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.landing-background {
  z-index: -3;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.82) brightness(1.04);
}

.landing-haze {
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(239, 220, 190, 0.92) 0%, rgba(244, 227, 198, 0.68) 22%, rgba(255, 248, 229, 0.5) 62%, rgba(226, 193, 151, 0.68) 100%),
    radial-gradient(circle at 50% 42%, rgba(255, 253, 238, 0.9), transparent 52%);
  backdrop-filter: blur(2px);
}

.landing-brand {
  position: absolute;
  top: max(28px, env(safe-area-inset-top));
  left: 50%;
  width: min(78vw, 760px);
  transform: translateX(-50%);
}

.landing-brand img {
  display: block;
  width: 100%;
  height: auto;
}

.landing-card {
  position: relative;
  z-index: 2;
  width: min(88vw, 650px);
  padding: clamp(54px, 7vw, 74px) clamp(28px, 7vw, 72px) clamp(64px, 8vw, 82px);
  border: 1px solid rgba(174, 116, 63, 0.25);
  border-radius: clamp(28px, 5vw, 44px);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.68), transparent 45%),
    rgba(255, 250, 236, 0.92);
  box-shadow:
    0 0 0 3px rgba(255, 245, 210, 0.58),
    0 28px 74px rgba(97, 60, 32, 0.17),
    inset 0 0 52px rgba(207, 151, 75, 0.08);
  text-align: center;
  backdrop-filter: blur(9px);
}

.landing-card::before,
.landing-card::after {
  position: absolute;
  width: 24px;
  height: 24px;
  border-color: rgba(191, 73, 45, 0.5);
  content: "";
}

.landing-card::before {
  top: 24px;
  left: 24px;
  border-top: 2px solid;
  border-left: 2px solid;
}

.landing-card::after {
  right: 24px;
  bottom: 24px;
  border-right: 2px solid;
  border-bottom: 2px solid;
}

.landing-kicker {
  display: block;
  color: #b87843;
  font-size: clamp(13px, 2.6vw, 18px);
  font-weight: 700;
  letter-spacing: 0.3em;
  text-indent: 0.3em;
}

.landing-card h1 {
  margin: 18px 0 0;
  color: #a53b2d;
  font-family: "Songti SC", "STSong", "Noto Serif CJK SC", serif;
  font-size: clamp(34px, 7vw, 54px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.08em;
  text-indent: 0.08em;
}

.landing-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: min(210px, 54%);
  margin: 30px auto;
}

.landing-divider::before,
.landing-divider::after {
  width: 74px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(183, 117, 65, 0.58));
  content: "";
}

.landing-divider::after {
  transform: rotate(180deg);
}

.landing-divider i {
  width: 9px;
  height: 9px;
  border: 1px solid #be7a45;
  transform: rotate(45deg);
}

.landing-message {
  margin: 0;
  color: #735544;
  font-size: clamp(18px, 3.8vw, 25px);
  line-height: 1.6;
}

.landing-guide {
  margin: 12px 0 0;
  color: #bb4935;
  font-size: clamp(23px, 5vw, 32px);
  font-weight: 700;
  line-height: 1.45;
}

.landing-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 34px;
  padding: 15px 18px;
  border: 1px solid rgba(194, 150, 97, 0.28);
  border-radius: 999px;
  color: #98765c;
  background: rgba(255, 255, 255, 0.42);
}

.landing-note span {
  color: #c1925c;
}

.landing-note p {
  margin: 0;
  font-size: clamp(12px, 2.5vw, 16px);
  line-height: 1.5;
}

.landing-mascot {
  position: absolute;
  z-index: 3;
  right: max(3vw, 20px);
  bottom: max(42px, calc(env(safe-area-inset-bottom) + 20px));
  width: clamp(126px, 20vw, 220px);
  pointer-events: none;
}

.landing-mascot img {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 18px 22px rgba(97, 60, 32, 0.18));
  animation: landing-float 4.2s ease-in-out infinite;
}

.landing-mascot-glow {
  position: absolute;
  inset: 22% -20% -8%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 244, 185, 0.7), transparent 70%);
}

.landing-stars {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.landing-stars i {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #d8a056;
  box-shadow: 0 0 12px rgba(223, 165, 89, 0.7);
  animation: landing-twinkle 3.8s ease-in-out infinite;
}

.landing-stars i:nth-child(1) { top: 22%; left: 12%; }
.landing-stars i:nth-child(2) { top: 35%; right: 10%; animation-delay: -1.2s; }
.landing-stars i:nth-child(3) { bottom: 22%; left: 17%; animation-delay: -2.5s; }
.landing-stars i:nth-child(4) { top: 17%; right: 28%; animation-delay: -0.7s; }
.landing-stars i:nth-child(5) { bottom: 13%; left: 43%; animation-delay: -3.1s; }

.landing-page footer {
  position: absolute;
  bottom: max(20px, env(safe-area-inset-bottom));
  left: 50%;
  color: rgba(111, 81, 60, 0.68);
  font-size: clamp(12px, 2.2vw, 15px);
  letter-spacing: 0.12em;
  transform: translateX(-50%);
  white-space: nowrap;
}

@keyframes landing-float {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-8px) rotate(1deg); }
}

@keyframes landing-twinkle {
  0%, 100% { opacity: 0.25; transform: scale(0.75); }
  50% { opacity: 0.9; transform: scale(1.2); }
}

@media (max-width: 600px) {
  .landing-brand {
    width: min(88vw, 520px);
  }

  .landing-card h1 {
    font-size: clamp(25px, 7.4vw, 32px);
    letter-spacing: 0.04em;
    text-indent: 0.04em;
    white-space: nowrap;
  }

  .landing-message {
    font-size: clamp(16px, 4.4vw, 18px);
  }

  .landing-guide {
    font-size: clamp(20px, 5.5vw, 23px);
  }

  .landing-card {
    margin-top: -4vh;
  }

  .landing-mascot {
    right: -10px;
    bottom: 34px;
    opacity: 0.9;
  }
}

@media (max-height: 660px) {
  .landing-brand {
    top: 18px;
    width: min(68vw, 580px);
  }

  .landing-card {
    padding-top: 42px;
    padding-bottom: 52px;
  }

  .landing-divider {
    margin: 20px auto;
  }

  .landing-note {
    margin-top: 24px;
  }

  .landing-mascot {
    width: clamp(100px, 17vw, 160px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .landing-mascot img,
  .landing-stars i {
    animation: none;
  }
}
