:root {
  --red-1: #fff5f5;
  --red-2: #ffd9d9;
  --red-3: #ffb3b3;
  --red-4: #ff7a7a;
  --red-5: #ff5252;
  --rose: #e63946;
  --deep: #8f2d2d;
  --ink: #722020;
  --soft: rgba(114, 32, 32, 0.72);
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  min-height: 100svh;
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Noto Serif SC", sans-serif;
  background: linear-gradient(180deg, #fff0f0 0%, #ffd9d9 45%, #ffc0c0 75%, #ffabab 100%);
  color: var(--ink);
  overflow-x: hidden;
}

#sky {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ------- Sun ------- */
.sun-wrap {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(88vw, 520px);
  height: min(88vw, 520px);
  z-index: 0;
  pointer-events: none;
}

.sun {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 42%,
      #fff5ec 0%, #ffe6cc 30%, #ffb37a 58%, rgba(255, 120, 60, 0.65) 82%, transparent 100%);
  animation: sun-breathe 6s ease-in-out infinite;
}

.sun::after {
  content: "";
  position: absolute;
  inset: -38%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 150, 100, 0.55) 0%, rgba(255, 150, 100, 0.18) 45%, transparent 72%);
  filter: blur(14px);
}

.sun-core {
  position: absolute;
  inset: 26%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, #fff7e8 0%, #ffcf8a 55%, #ff9850 100%);
  box-shadow: 0 0 40px rgba(255, 140, 90, 0.8), 0 0 120px rgba(255, 110, 60, 0.5);
}

@keyframes sun-breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

/* ------- Clouds ------- */
.cloud {
  position: fixed;
  z-index: 0;
  pointer-events: none;
  border-radius: 60px;
  background: rgba(255, 245, 245, 0.6);
  filter: blur(2px);
  box-shadow: 0 10px 30px rgba(230, 90, 90, 0.18);
}

.cloud::before,
.cloud::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: inherit;
}

.cloud-a {
  top: 10%;
  left: -14%;
  width: 190px;
  height: 50px;
  animation: drift 40s linear infinite;
}

.cloud-a::before {
  width: 66px;
  height: 66px;
  top: -32px;
  left: 38px;
}

.cloud-a::after {
  width: 48px;
  height: 48px;
  top: -24px;
  left: 104px;
}

.cloud-b {
  top: 22%;
  right: -14%;
  width: 240px;
  height: 56px;
  animation: drift-rev 52s linear infinite;
  opacity: 0.8;
}

.cloud-b::before {
  width: 84px;
  height: 84px;
  top: -42px;
  left: 56px;
}

.cloud-b::after {
  width: 56px;
  height: 56px;
  top: -30px;
  left: 148px;
}

.cloud-c {
  top: 34%;
  left: 6%;
  width: 150px;
  height: 42px;
  animation: drift 60s linear infinite;
  opacity: 0.5;
}

.cloud-c::before {
  width: 54px;
  height: 54px;
  top: -28px;
  left: 30px;
}

@keyframes drift {
  from { transform: translateX(0); }
  to { transform: translateX(140vw); }
}

@keyframes drift-rev {
  from { transform: translateX(0); }
  to { transform: translateX(-150vw); }
}

/* ------- Layout: 9:16 portrait ------- */
main {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  padding: clamp(120px, 24vh, 220px) 20px 60px;
  text-align: center;
}

/* ------- Hero ------- */
.eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.5em;
  color: rgba(143, 45, 45, 0.62);
  animation: fadeUp 1s 0.15s ease both;
}

.title {
  margin-top: 24px;
  font-family: "Noto Serif SC", "PingFang SC", serif;
  font-weight: 900;
  font-size: clamp(3.4rem, 13vw, 4.6rem);
  letter-spacing: 0.22em;
  margin-left: 0.22em;
  color: var(--deep);
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9),
    0 2px 2px rgba(140, 40, 40, 0.25),
    0 0 42px rgba(255, 100, 70, 0.55);
  animation: fadeUp 1s 0.3s ease both;
}

.title-line {
  width: 68px;
  height: 4px;
  margin: 24px auto 0;
  border-radius: 4px;
  background: linear-gradient(90deg, transparent, var(--red-5), transparent);
  animation: fadeUp 1s 0.42s ease both;
}

.subtitle {
  margin-top: 18px;
  font-size: 1.02rem;
  letter-spacing: 0.45em;
  margin-left: 0.45em;
  color: var(--soft);
  animation: fadeUp 1s 0.5s ease both;
}

/* ------- Card ------- */
.card {
  margin-top: 44px;
  background: linear-gradient(160deg, rgba(255, 250, 250, 0.74), rgba(255, 236, 236, 0.58));
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 28px;
  padding: 40px 24px;
  box-shadow:
    0 24px 60px rgba(160, 40, 40, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.sun-emoji {
  font-size: 3.4rem;
  display: inline-block;
  animation: spin 18s linear infinite;
  filter: drop-shadow(0 6px 16px rgba(255, 110, 60, 0.5));
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.card h2 {
  margin-top: 18px;
  font-family: "Noto Serif SC", serif;
  font-weight: 600;
  font-size: clamp(1.3rem, 5.2vw, 1.6rem);
  color: var(--deep);
  line-height: 1.65;
}

.card > p {
  margin-top: 12px;
  font-size: 1rem;
  color: var(--soft);
  line-height: 1.7;
}

blockquote {
  margin: 26px auto 0;
  max-width: 340px;
  font-size: 1.06rem;
  font-style: italic;
  color: var(--rose);
  background: linear-gradient(90deg, rgba(255, 82, 82, 0.14), rgba(255, 150, 150, 0.18));
  border-left: 4px solid var(--rose);
  border-radius: 0 14px 14px 0;
  padding: 14px 18px;
  line-height: 1.8;
}

.quote-writer {
  margin-top: 12px;
  font-size: 0.82rem;
  letter-spacing: 0.2em;
  color: rgba(114, 32, 32, 0.6);
}

/* ------- Music ------- */
.music-card {
  margin-top: 34px;
}

.music-label {
  font-size: 0.8rem;
  letter-spacing: 0.35em;
  color: rgba(143, 45, 45, 0.6);
}

.music-title {
  margin-top: 10px;
  font-family: "Noto Serif SC", serif;
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--deep);
}

.music-frame {
  margin-top: 18px;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255, 250, 250, 0.9);
}

.music-frame iframe {
  display: block;
  border: none;
}

/* ------- Grid ------- */
.grid {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
}

.mini-card {
  background: linear-gradient(170deg, rgba(255, 250, 250, 0.7), rgba(255, 240, 240, 0.52));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 22px;
  padding: 26px 18px 24px;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
  box-shadow: 0 10px 26px rgba(160, 40, 40, 0.08);
}

.mini-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 22px 44px rgba(190, 60, 60, 0.2);
}

.mini-card:nth-child(2) {
  transition-delay: 0.06s;
}

.mini-card:nth-child(3) {
  transition-delay: 0.12s;
}

.icon {
  font-size: 2.3rem;
  display: inline-block;
  transition: transform 0.4s ease;
}

.mini-card:hover .icon {
  transform: scale(1.2) rotate(-8deg);
}

.mini-card h3 {
  margin-top: 12px;
  font-family: "Noto Serif SC", serif;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--deep);
}

.mini-card p {
  margin-top: 8px;
  font-size: 0.9rem;
  color: var(--soft);
  line-height: 1.8;
}

/* ------- Footer ------- */
footer {
  margin-top: 48px;
  font-size: 0.9rem;
  color: rgba(114, 32, 32, 0.62);
  line-height: 2;
}

footer p:first-child {
  font-size: 1rem;
  letter-spacing: 0.1em;
  color: rgba(143, 45, 45, 0.8);
}

/* ------- Reveal ------- */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

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

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

/* ------- Phone screens ------- */
@media (max-width: 480px) {
  .title { letter-spacing: 0.16em; margin-left: 0.16em; }
  .subtitle { letter-spacing: 0.32em; margin-left: 0.32em; }
  .card { padding: 34px 18px; }
  .cloud-b { display: none; }
}

@media (min-width: 800px) {
  main { padding-top: clamp(140px, 22vh, 200px); }
}
