@font-face {
  font-family: "Maiyuan";
  src: url("./assets/fonts/KNMaiyuan-Regular.ttf") format("truetype");
  font-display: swap;
}

:root {
  --bg: #eaf7f5;
  --grid: #b7dfe0;
  --teal: #126b73;
  --teal-dark: #0a3941;
  --navy: #10242f;
  --panel: #14242d;
  --cream: #fff3bf;
  --cream-soft: #fff9dc;
  --brown: #7a473a;
  --brown-dark: #4b2825;
  --tomato: #e94c43;
  --blue: #1686d9;
  --white: #f9fbfc;
  --ink: #20303a;
  --muted: #6d828b;
  --line: #7abec2;
  --shadow: 0 22px 60px rgba(10, 57, 65, 0.18);
  --radius-xl: 36px;
  --radius-lg: 24px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 1180px;
  color: var(--ink);
  font-family: "Maiyuan", "Microsoft YaHei", system-ui, sans-serif;
  background:
    linear-gradient(rgba(255, 255, 255, 0.58) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.58) 1px, transparent 1px),
    var(--bg);
  background-size: 76px 76px;
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  z-index: -1;
  width: 8px;
  height: 48px;
  background: var(--tomato);
}

body::before {
  left: 9vw;
  top: 30vh;
}

body::after {
  right: 8vw;
  top: 68vh;
  background: var(--teal);
}

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

img {
  display: block;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  width: min(var(--max), calc(100% - 32px));
  height: 72px;
  margin: 18px auto 0;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0 18px;
  border: 3px solid var(--teal-dark);
  border-radius: 24px;
  background: rgba(249, 251, 252, 0.86);
  box-shadow: 0 10px 35px rgba(10, 57, 65, 0.12);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: var(--teal-dark);
  font-size: 20px;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 3px solid var(--teal-dark);
  border-radius: 12px;
  background: var(--cream);
  color: var(--brown-dark);
}

.nav-links {
  display: flex;
  gap: 24px;
  margin-left: auto;
  color: var(--ink);
  font-size: 17px;
}

.nav-links a {
  padding: 8px 0;
}

.nav-download,
.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border: 3px solid var(--teal-dark);
  border-radius: 18px;
  font-size: 20px;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.nav-download,
.primary-button {
  color: white;
  background: var(--tomato);
  box-shadow: 0 8px 0 var(--brown);
}

.secondary-button {
  color: var(--brown-dark);
  background: var(--cream);
  border-color: var(--brown);
}

.nav-download {
  min-height: 42px;
  padding-inline: 20px;
  font-size: 18px;
}

.nav-download:hover,
.primary-button:hover,
.secondary-button:hover {
  transform: translateY(-2px);
}

.section-shell {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  min-height: 760px;
  display: grid;
  grid-template-columns: 0.94fr 1.06fr;
  align-items: center;
  gap: 64px;
  padding: 74px 0 64px;
}

.hero > * {
  min-width: 0;
}

.version-tag,
.creator-tag,
.hero-chips span,
.float-label {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  color: white;
  background: var(--tomato);
}

.hero-tags {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 28px;
}

.version-tag {
  margin: 0;
  padding: 10px 18px;
  font-size: 20px;
}

.creator-tag {
  margin: 0;
  padding: 9px 16px;
  border: 2px solid var(--brown);
  color: var(--brown-dark);
  background: var(--cream);
  font-size: 18px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 560px;
  margin-bottom: 26px;
  color: var(--teal-dark);
  font-size: 82px;
  line-height: 1.04;
  letter-spacing: 0;
}

h1 span {
  display: block;
  white-space: nowrap;
}

.hero-lede {
  max-width: 590px;
  color: var(--muted);
  font-size: 23px;
  line-height: 1.58;
}

.hero-lede span {
  display: block;
  white-space: nowrap;
}

.quick-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: -34px;
  padding-bottom: 72px;
}

.quick-points article {
  min-height: 116px;
  padding: 24px 26px;
  border: 3px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(249, 251, 252, 0.92);
  box-shadow: 0 12px 28px rgba(10, 57, 65, 0.08);
}

.quick-points strong,
.quick-points span {
  display: block;
}

.quick-points strong {
  margin-bottom: 8px;
  color: var(--teal-dark);
  font-size: 28px;
}

.quick-points span {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 36px 0 18px;
}

.creator-note {
  margin: 0 0 24px;
  color: var(--teal);
  font-size: 19px;
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-chips span {
  padding: 8px 16px;
  font-size: 18px;
}

.hero-chips span:nth-child(2) {
  background: var(--brown);
}

.hero-chips span:nth-child(3) {
  background: var(--blue);
}

.hero-stage {
  position: relative;
  min-width: 0;
}

.desktop-window {
  position: relative;
  width: 100%;
  min-height: 560px;
  border: 5px solid var(--teal-dark);
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.window-titlebar {
  display: flex;
  align-items: center;
  height: 84px;
  padding: 0 32px;
  border-bottom: 3px solid #c8d7dc;
  background: #eff7f8;
  color: var(--ink);
  font-size: 26px;
}

.window-controls {
  display: flex;
  gap: 12px;
  margin-left: auto;
}

.window-controls i {
  width: 42px;
  height: 42px;
  border: 2px solid #b9cbd1;
  background: #f5f8f9;
}

.window-controls .close {
  background: var(--tomato);
}

.window-screen {
  position: relative;
  min-height: 476px;
  margin: 38px;
  border: 4px solid #405e69;
  border-radius: 30px;
  background: var(--panel);
  overflow: hidden;
}

.pet,
.junimo,
.emote-heart {
  image-rendering: pixelated;
}

.pet-main {
  position: absolute;
  left: 48%;
  bottom: -20px;
  width: 255px;
  transform: translateX(-50%);
}

.junimo {
  position: absolute;
  right: 74px;
  width: 80px;
}

.junimo.focus {
  top: 116px;
}

.junimo.outfit {
  top: 286px;
}

.float-label {
  position: absolute;
  right: 118px;
  padding: 9px 18px;
  font-size: 22px;
}

.label-focus {
  top: 78px;
  background: var(--tomato);
}

.label-outfit {
  top: 248px;
  background: var(--teal);
}

.emote-heart {
  position: absolute;
  right: 184px;
  bottom: 66px;
  width: 84px;
}

.demo-bubble {
  position: absolute;
  left: 28px;
  top: 18px;
  max-width: 232px;
  padding: 16px 20px;
  border: 4px solid var(--brown);
  border-radius: 22px;
  color: var(--brown-dark);
  background: var(--cream);
  box-shadow: 6px 8px 0 var(--brown-dark);
  font-size: 20px;
  line-height: 1.35;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 34px;
}

.section-heading h2,
.updates h2,
.download h2 {
  margin-bottom: 12px;
  color: var(--teal-dark);
  font-size: clamp(42px, 5vw, 66px);
  line-height: 1.05;
}

.section-heading p,
.updates p,
.download p {
  color: var(--muted);
  font-size: 22px;
  line-height: 1.55;
}

.download .platform-note {
  display: inline-block;
  margin: 14px 0 0;
  padding: 10px 14px;
  border: 2px solid var(--brown);
  border-radius: 14px;
  color: var(--brown-dark);
  background: var(--cream);
  font-size: 18px;
  line-height: 1.45;
}

.features,
.island,
.gallery,
.updates,
.download,
.faq {
  padding: 76px 0;
}

.island {
  display: grid;
  grid-template-columns: 0.84fr 1.16fr;
  gap: 42px;
  align-items: center;
  padding-top: 28px;
}

.island-copy {
  min-width: 0;
}

.eyebrow {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 9px 16px;
  border: 2px solid var(--brown);
  border-radius: 999px;
  color: var(--brown-dark);
  background: var(--cream);
  font-size: 18px;
}

.island-copy h2 {
  margin-bottom: 18px;
  color: var(--teal-dark);
  font-size: clamp(48px, 5vw, 72px);
  line-height: 1.02;
}

.island-copy p {
  color: var(--muted);
  font-size: 22px;
  line-height: 1.58;
}

.island-copy .mac-note {
  display: inline-block;
  margin: 14px 0 0;
  padding: 14px 16px;
  border: 3px solid var(--teal);
  border-radius: 18px;
  color: var(--teal-dark);
  background: rgba(255, 249, 220, 0.92);
  font-size: 19px;
}

.island-showcase {
  min-width: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  border: 4px solid var(--teal-dark);
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--shadow);
}

.island-cover-card {
  width: min(100%, 560px);
  height: auto;
  object-fit: contain;
  border-radius: 24px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.feature-card {
  min-height: 330px;
  padding: 28px;
  border: 3px solid var(--teal-dark);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: 0 12px 28px rgba(10, 57, 65, 0.1);
}

.feature-card img {
  width: 96px;
  height: 96px;
  object-fit: contain;
  image-rendering: pixelated;
  margin-bottom: 20px;
}

.feature-card h3 {
  margin-bottom: 12px;
  color: var(--ink);
  font-size: 28px;
}

.feature-card p {
  color: var(--muted);
  font-size: 19px;
  line-height: 1.5;
}

.screenshot-rail {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.screenshot-rail figure {
  margin: 0;
  padding: 14px;
  border: 3px solid var(--teal-dark);
  border-radius: 28px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.screenshot-rail img {
  width: 100%;
  border-radius: 18px;
}

.screenshot-rail figcaption {
  padding: 14px 4px 2px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.4;
}

.update-panel,
.download {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 40px;
  align-items: center;
}

.update-panel {
  padding: 44px;
  border: 4px solid var(--brown);
  border-radius: var(--radius-xl);
  background: var(--navy);
  box-shadow: var(--shadow);
}

.update-panel h2,
.update-panel p {
  color: var(--cream);
}

.update-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.update-list li {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 18px;
  padding: 18px 20px;
  border: 2px solid rgba(255, 243, 191, 0.42);
  border-radius: 18px;
  color: var(--cream-soft);
  background: rgba(255, 255, 255, 0.05);
}

.update-list strong {
  color: var(--cream);
  font-size: 22px;
}

.update-list span {
  color: rgba(255, 249, 220, 0.82);
  font-size: 18px;
}

.download-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 22px;
  align-items: center;
  padding: 28px;
  border: 4px solid var(--teal-dark);
  border-radius: 30px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.file-type {
  display: grid;
  width: 76px;
  height: 76px;
  place-items: center;
  border: 3px solid var(--brown);
  border-radius: 20px;
  color: var(--brown-dark);
  background: var(--cream);
  font-size: 28px;
}

.download-card h3 {
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 28px;
}

.download-card p {
  margin: 0;
  font-size: 18px;
}

.faq-list {
  display: grid;
  gap: 14px;
}

details {
  border: 3px solid var(--teal-dark);
  border-radius: 20px;
  background: var(--white);
  box-shadow: 0 10px 24px rgba(10, 57, 65, 0.08);
}

summary {
  cursor: pointer;
  padding: 22px 26px;
  color: var(--ink);
  font-size: 24px;
}

details p {
  margin: 0;
  padding: 0 26px 24px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.55;
}

.site-footer {
  width: min(var(--max), calc(100% - 32px));
  margin: 30px auto 50px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: 18px;
}

.site-footer a {
  color: var(--teal-dark);
}

@media (prefers-reduced-motion: no-preference) {
  .pet-main {
    animation: pet-breathe 2.8s ease-in-out infinite;
  }

  .junimo {
    animation: bob 2.4s ease-in-out infinite;
  }

  .junimo.outfit {
    animation-delay: 0.3s;
  }
}

@keyframes pet-breathe {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(-6px);
  }
}

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