:root {
  color: #173129;
  background: #f6faf7;
  font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: #f6faf7; }
a { color: inherit; }

.site-header {
  position: absolute;
  z-index: 10;
  top: 0;
  left: 50%;
  width: min(1180px, calc(100% - 40px));
  height: 76px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 800; text-decoration: none; }
.brand img { border-radius: 8px; box-shadow: 0 5px 16px rgba(22, 71, 49, .18); }
.header-download { padding: 10px 16px; border: 1px solid rgba(24, 69, 51, .22); border-radius: 6px; font-size: 14px; font-weight: 700; text-decoration: none; background: rgba(255, 255, 255, .72); }

.hero {
  position: relative;
  min-height: min(780px, 92vh);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, .92fr);
  align-items: center;
  overflow: hidden;
  padding: 104px max(40px, calc((100vw - 1180px) / 2)) 64px;
  background: linear-gradient(135deg, #e9f5ef 0 52%, #d8edf5 52% 100%);
}
.hero-copy { position: relative; z-index: 3; max-width: 590px; padding-right: 30px; }
.platform { display: inline-block; margin: 0 0 16px; color: #17633f; font-size: 13px; font-weight: 800; }
h1 { margin: 0; color: #174c37; font-size: clamp(54px, 7vw, 94px); line-height: .98; letter-spacing: 0; }
.lead { max-width: 540px; margin: 26px 0 32px; color: #405c52; font-size: clamp(18px, 2vw, 24px); line-height: 1.7; }
.hero-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.primary-download { min-width: 214px; padding: 14px 22px; border-radius: 7px; color: #fff; text-decoration: none; background: #216b4a; box-shadow: 0 12px 28px rgba(21, 92, 60, .24); }
.primary-download span, .primary-download small { display: block; }
.primary-download span { font-size: 16px; font-weight: 800; }
.primary-download small { margin-top: 3px; color: #cde9da; font-size: 11px; }
.install-note { max-width: 230px; color: #63776f; font-size: 12px; line-height: 1.6; }

.hero-farm { position: relative; align-self: stretch; min-height: 540px; }
.sun { position: absolute; top: 16%; right: 9%; width: 88px; height: 88px; border-radius: 50%; background: #ffd76a; box-shadow: 0 0 0 18px rgba(255, 215, 106, .18); }
.ground { position: absolute; right: -20%; bottom: -12%; width: 125%; height: 56%; border-radius: 50% 50% 0 0; background: #78ac6a; transform: rotate(-4deg); box-shadow: inset 0 18px 0 rgba(255, 255, 255, .15); }
.pet { position: absolute; z-index: 2; object-fit: contain; filter: drop-shadow(0 18px 15px rgba(31, 68, 48, .2)); animation: float 4s ease-in-out infinite; }
.pet-dragon { right: 3%; bottom: 18%; width: 54%; animation-delay: -.7s; }
.pet-cat { left: 4%; bottom: 8%; width: 45%; animation-delay: -2.2s; }
.pet-fox { right: 31%; bottom: 5%; width: 37%; animation-delay: -1.4s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.section-inner, .facts, .download-band, .release-info, footer { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }
.feature-band { padding: 82px 0; background: #fff; }
.section-heading { display: grid; grid-template-columns: 220px 1fr; gap: 30px; align-items: end; margin-bottom: 42px; }
.section-heading p, .facts-copy > p:first-child { margin: 0; color: #c25735; font-size: 13px; font-weight: 800; }
h2 { margin: 0; color: #1a3f32; font-size: clamp(28px, 4vw, 44px); line-height: 1.25; letter-spacing: 0; }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid #dce7e1; }
.feature-grid article { min-height: 240px; padding: 28px 22px 20px; border-right: 1px solid #dce7e1; }
.feature-grid article:first-child { border-left: 1px solid #dce7e1; }
.feature-number { color: #d5a92d; font-size: 13px; font-weight: 800; }
.feature-grid h3 { margin: 45px 0 12px; font-size: 18px; }
.feature-grid p { margin: 0; color: #65766f; font-size: 14px; line-height: 1.75; }

.facts { display: grid; grid-template-columns: .9fr 1.1fr; gap: 80px; padding-block: 88px; }
.facts-copy > h2 { margin: 12px 0 22px; }
.facts-copy > p:last-child { margin: 0; color: #5d7068; line-height: 1.9; }
.facts dl { display: grid; grid-template-columns: 1fr 1fr; margin: 0; border-top: 1px solid #bfd0c7; border-left: 1px solid #bfd0c7; }
.facts dl div { min-height: 150px; padding: 24px; border-right: 1px solid #bfd0c7; border-bottom: 1px solid #bfd0c7; }
.facts dt { color: #1f7250; font-size: 46px; font-weight: 900; }
.facts dd { margin: 6px 0 0; color: #65766f; font-size: 13px; }

.download-band { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; padding: 34px; border-radius: 8px; color: #fff; background: #174c37; }
.download-band img { border-radius: 8px; }
.download-band h2 { color: #fff; font-size: 28px; }
.download-band p { margin: 8px 0 0; color: #cbe0d6; font-size: 13px; }
.download-band a { padding: 13px 22px; border-radius: 6px; color: #174c37; font-weight: 800; text-decoration: none; background: #f4cc53; }
.release-info { padding: 34px 0 76px; }
.release-info p { display: grid; grid-template-columns: 120px 1fr; margin: 0; padding: 11px 0; border-bottom: 1px solid #dce7e1; color: #5b6f66; font-size: 12px; }
.release-info strong { color: #274b3d; }
.release-info code { overflow-wrap: anywhere; font-family: Consolas, monospace; }
.release-info .security-note { display: block; padding-top: 18px; border: 0; color: #7a6240; }
footer { display: flex; justify-content: space-between; padding: 24px 0 calc(24px + env(safe-area-inset-bottom)); border-top: 1px solid #dce7e1; color: #6a7c74; font-size: 12px; }
footer a { font-weight: 700; }

@media (max-width: 820px) {
  .site-header { width: calc(100% - 28px); }
  .hero { min-height: 820px; grid-template-columns: 1fr; align-content: start; padding: 106px 20px 0; background: linear-gradient(165deg, #e9f5ef 0 56%, #d8edf5 56% 100%); }
  .hero-copy { padding-right: 0; }
  h1 { font-size: 58px; }
  .lead { margin: 20px 0 24px; font-size: 18px; }
  .hero-actions { align-items: flex-start; }
  .hero-farm { min-height: 370px; margin-top: 12px; }
  .section-heading { grid-template-columns: 1fr; gap: 12px; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .feature-grid article:nth-child(3) { border-left: 1px solid #dce7e1; }
  .facts { grid-template-columns: 1fr; gap: 40px; }
  .download-band { grid-template-columns: auto 1fr; padding: 24px; }
  .download-band a { grid-column: 1 / -1; text-align: center; }
}

@media (max-width: 500px) {
  .header-download { padding: 9px 12px; }
  .hero { min-height: 790px; }
  .primary-download { width: 100%; text-align: center; }
  .install-note { max-width: none; }
  .hero-farm { min-height: 330px; }
  .pet-dragon { width: 58%; }
  .pet-cat { width: 48%; }
  .pet-fox { width: 40%; }
  .feature-band { padding: 62px 0; }
  .section-inner, .facts, .download-band, .release-info, footer { width: min(100% - 28px, 1120px); }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-grid article { min-height: 190px; border-left: 1px solid #dce7e1; }
  .feature-grid h3 { margin-top: 28px; }
  .facts { padding-block: 62px; }
  .facts dl div { min-height: 126px; padding: 18px; }
  .facts dt { font-size: 36px; }
  .download-band img { width: 58px; height: 58px; }
  .release-info p { grid-template-columns: 92px 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pet { animation: none; }
}
