:root {
  --ink: #1a1410;
  --ink-soft: #4a3f36;
  --muted: #7a6c60;
  --paper: #fff8f2;
  --paper-2: #ffe8d6;
  --orange: #e86a1a;
  --orange-deep: #c4510c;
  --orange-soft: #ffb57a;
  --line: rgba(26, 20, 16, 0.12);
  --ok: #1f7a4c;
  --font-display: "ZCOOL XiaoWei", "Noto Serif SC", serif;
  --font-body: "Noto Sans SC", sans-serif;
  --max: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  min-height: 100vh;
}

a {
  color: var(--orange-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--orange);
}

img {
  max-width: 100%;
  display: block;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  background: rgba(255, 248, 242, 0.88);
  border-bottom: 1px solid var(--line);
}

.site-header__inner,
.site-footer__inner,
.wrap {
  width: min(var(--max), calc(100% - 2.5rem));
  margin-inline: auto;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: inherit;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.04em;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
  font-size: 0.95rem;
}

.nav a {
  color: var(--ink-soft);
  text-decoration: none;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--orange-deep);
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: min(92vh, 820px);
  display: grid;
  align-items: end;
  padding: 4.5rem 0 3.5rem;
  background:
    radial-gradient(1200px 600px at 80% 10%, rgba(232, 106, 26, 0.28), transparent 55%),
    radial-gradient(900px 500px at 10% 90%, rgba(255, 181, 122, 0.35), transparent 50%),
    linear-gradient(165deg, #fff3e8 0%, #ffe0c4 42%, #f4c49a 100%);
}

.hero__mesh {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(26, 20, 16, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26, 20, 16, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), transparent 85%);
  animation: mesh-drift 18s linear infinite;
}

@keyframes mesh-drift {
  from {
    background-position: 0 0, 0 0;
  }
  to {
    background-position: 48px 24px, 24px 48px;
  }
}

.hero__layout {
  width: min(var(--max), calc(100% - 2.5rem));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: end;
}

.hero__brand {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 8vw, 5.6rem);
  line-height: 0.95;
  letter-spacing: 0.06em;
  color: var(--ink);
  animation: rise 0.9s ease both;
}

.hero__title {
  margin: 0 0 0.85rem;
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  font-weight: 600;
  color: var(--ink-soft);
  animation: rise 0.9s ease 0.08s both;
}

.hero__lead {
  margin: 0 0 1.6rem;
  max-width: 28rem;
  color: var(--muted);
  font-size: 1.05rem;
  animation: rise 0.9s ease 0.16s both;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  animation: rise 0.9s ease 0.24s both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 48px;
  padding: 0.7rem 1.25rem;
  border-radius: 12px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--orange);
  color: #fff;
}

.btn--primary:hover {
  background: var(--orange-deep);
  color: #fff;
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.55);
  border-color: var(--line);
  color: var(--ink);
}

.btn--ghost:hover {
  background: #fff;
  color: var(--ink);
}

.hero__visual {
  justify-self: end;
  width: min(100%, 360px);
  aspect-ratio: 1;
  border-radius: 28% 28% 22% 22%;
  background:
    radial-gradient(circle at 35% 30%, #fff 0 14%, transparent 15%),
    linear-gradient(160deg, #ff9a4a, #e86a1a 55%, #b84308);
  box-shadow: 0 30px 60px rgba(180, 70, 10, 0.28);
  display: grid;
  place-items: center;
  animation: float-y 5.5s ease-in-out infinite;
}

.hero__visual img {
  width: 72%;
  height: 72%;
  object-fit: contain;
  filter: drop-shadow(0 12px 20px rgba(26, 20, 16, 0.18));
}

@keyframes float-y {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.section {
  padding: 4rem 0;
}

.section--alt {
  background: linear-gradient(180deg, #fff 0%, #fff4ea 100%);
  border-block: 1px solid var(--line);
}

.section__head {
  max-width: 40rem;
  margin-bottom: 2rem;
}

.section__head h2 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  letter-spacing: 0.04em;
}

.section__head p {
  margin: 0;
  color: var(--muted);
}

.feature-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.feature {
  padding: 1.25rem 0;
  border-top: 2px solid var(--orange-soft);
}

.feature h3 {
  margin: 0 0 0.4rem;
  font-size: 1.1rem;
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.download-panel {
  display: grid;
  gap: 1rem;
}

.download-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
}

.download-item:first-child {
  border-top: 1px solid var(--line);
}

.download-item h3 {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
}

.meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.badge {
  display: inline-block;
  margin-left: 0.4rem;
  padding: 0.12rem 0.45rem;
  border-radius: 6px;
  background: rgba(31, 122, 76, 0.12);
  color: var(--ok);
  font-size: 0.78rem;
  font-weight: 600;
  vertical-align: middle;
}

.badge--soon {
  background: rgba(122, 108, 96, 0.14);
  color: var(--muted);
}

.prose {
  max-width: 44rem;
}

.prose h1 {
  font-family: var(--font-display);
  letter-spacing: 0.04em;
  margin-top: 0;
}

.prose h2 {
  margin-top: 2rem;
  font-size: 1.2rem;
}

.prose p,
.prose li {
  color: var(--ink-soft);
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0 2.5rem;
  background: #1a1410;
  color: #f6ebe2;
}

.site-footer a {
  color: #ffb57a;
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
}

.site-footer p {
  margin: 0;
  color: rgba(246, 235, 226, 0.72);
  font-size: 0.92rem;
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.1rem;
}

.page-hero {
  padding: 2.75rem 0 1rem;
}

.page-hero h1 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  letter-spacing: 0.04em;
}

.page-hero p {
  margin: 0;
  color: var(--muted);
  max-width: 36rem;
}

@media (max-width: 860px) {
  .hero__layout {
    grid-template-columns: 1fr;
  }

  .hero__visual {
    justify-self: start;
    width: min(100%, 240px);
    order: -1;
  }

  .feature-row {
    grid-template-columns: 1fr;
  }

  .download-item {
    grid-template-columns: 1fr;
  }
}
