:root {
  --ink: #13261f;
  --ink-soft: #2a4338;
  --mist: #e7f0ea;
  --fog: #f3f8f5;
  --leaf: #1f6b56;
  --leaf-deep: #0d3f34;
  --amber: #e09a45;
  --amber-deep: #c47828;
  --glass: rgba(255, 255, 255, 0.55);
  --glass-strong: rgba(255, 255, 255, 0.78);
  --line: rgba(19, 38, 31, 0.12);
  --shadow: 0 18px 40px rgba(13, 63, 52, 0.12);
  --radius: 22px;
  --nav-h: 64px;
  --promo-gap: 0px;
  --stick-h: 0px;
  --font-display: "ZCOOL XiaoWei", "Songti SC", serif;
  --font-body: "Noto Sans SC", "PingFang SC", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(224, 154, 69, 0.18), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(31, 107, 86, 0.16), transparent 50%),
    linear-gradient(180deg, #dff0e7 0%, var(--fog) 28%, #eef5f1 100%);
  line-height: 1.75;
  min-height: 100vh;
  overflow-x: hidden;
}

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

a {
  color: var(--leaf);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--amber-deep);
}

.wrap {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.site-promo {
  background: linear-gradient(90deg, #0d3f34, #1f6b56 55%, #2a7d63);
  padding: 10px 0 6px;
}

.site-promo .promo-inner {
  width: min(1120px, calc(100% - 16px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(243, 248, 245, 0.82);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.45rem;
  letter-spacing: 0.04em;
}

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

.nav-desktop {
  display: none;
  gap: 22px;
  align-items: center;
}

.nav-desktop a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.95rem;
  position: relative;
}

.nav-desktop a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--leaf), var(--amber));
  transition: width 0.25s ease;
}

.nav-desktop a:hover::after,
.nav-desktop a.is-active::after {
  width: 100%;
}

.menu-toggle {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--glass-strong);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  margin: 3px 0;
  transition: 0.2s ease;
}

.menu-toggle.is-open span:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

.nav-drawer {
  display: none;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  padding: 12px 0 18px;
}

.nav-drawer.is-open {
  display: block;
}

.nav-drawer a {
  display: block;
  padding: 12px 16px;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid rgba(19, 38, 31, 0.06);
}

.stick-download {
  position: sticky;
  top: var(--nav-h);
  z-index: 40;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transform: translateY(-120%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.28s ease, opacity 0.28s ease;
}

.stick-download.is-show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.stick-download .ads-grid {
  width: min(1120px, calc(100% - 12px));
  margin: 0 auto;
  padding: 8px 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  justify-items: center;
}

.stick-download .ads-grid a {
  text-decoration: none;
  width: 100%;
  max-width: 72px;
  text-align: center;
}

.stick-download .ads-grid img {
  width: 52px;
  height: 52px;
  margin: 0 auto;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 6px 14px rgba(13, 63, 52, 0.16);
}

.stick-download .ads-grid span {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  color: #5b6f66;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero {
  position: relative;
  min-height: min(88vh, 760px);
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  animation: slowDrift 18s ease-in-out infinite alternate;
}

.hero-veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(13, 63, 52, 0.15) 0%, rgba(13, 63, 52, 0.35) 42%, rgba(8, 28, 24, 0.88) 100%),
    radial-gradient(600px 280px at 70% 20%, rgba(224, 154, 69, 0.28), transparent 60%);
}

.hero-copy {
  padding: 48px 0 56px;
  color: #f7fbf8;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 10vw, 4.8rem);
  line-height: 1.05;
  margin: 0 0 14px;
  letter-spacing: 0.06em;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  animation: riseIn 0.9s ease both;
}

.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(1.25rem, 4.2vw, 1.85rem);
  font-weight: 600;
  line-height: 1.35;
  max-width: 18em;
  animation: riseIn 0.9s ease 0.12s both;
}

.hero-lead {
  margin: 0;
  max-width: 28em;
  color: rgba(247, 251, 248, 0.88);
  font-size: 1rem;
  animation: riseIn 0.9s ease 0.22s both;
}

.crumbs {
  padding: 18px 0 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

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

.crumbs span {
  margin: 0 6px;
  opacity: 0.5;
}

.panel {
  margin: 28px 0;
  padding: 28px 22px;
  background: var(--glass);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.panel h2 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 4vw, 1.9rem);
  color: var(--leaf-deep);
}

.panel h3 {
  margin: 22px 0 10px;
  font-size: 1.15rem;
  color: var(--ink);
}

.panel p {
  margin: 0 0 14px;
  color: var(--ink-soft);
}

.panel p:last-child {
  margin-bottom: 0;
}

.split {
  display: grid;
  gap: 18px;
  align-items: center;
}

.split figure {
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 14px 30px rgba(13, 63, 52, 0.16);
  position: relative;
}

.split figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(224, 154, 69, 0.12), transparent 45%);
  pointer-events: none;
}

.split img {
  width: 100%;
  height: auto;
}

.mosaic {
  display: grid;
  gap: 14px;
}

.tile {
  padding: 18px 16px;
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.9), rgba(231, 240, 234, 0.75));
  border: 1px solid var(--line);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.tile h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
}

.tile p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.rail {
  display: grid;
  gap: 16px;
}

.rail-item {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 14px;
  align-items: start;
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
}

.rail-item img {
  width: 88px;
  height: 88px;
  object-fit: cover;
  border-radius: 14px;
}

.cta-band {
  margin: 36px 0;
  padding: 28px 22px;
  border-radius: 24px;
  background:
    radial-gradient(400px 160px at 20% 0%, rgba(224, 154, 69, 0.35), transparent 70%),
    linear-gradient(135deg, #0d3f34, #1f6b56);
  color: #f7fbf8;
  text-align: center;
}

.cta-band h2 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 1.7rem;
  color: #fff;
}

.cta-band p {
  margin: 0 0 18px;
  color: rgba(247, 251, 248, 0.88);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--amber), #f0b86a);
  color: #1a1a1a;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 10px 24px rgba(224, 154, 69, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  color: #1a1a1a;
  box-shadow: 0 14px 28px rgba(224, 154, 69, 0.42);
}

.legal {
  padding-bottom: 40px;
}

.legal .panel {
  margin-top: 18px;
}

.site-footer {
  margin-top: 40px;
  padding: 28px 0 40px;
  background: linear-gradient(180deg, transparent, rgba(13, 63, 52, 0.08));
  border-top: 1px solid var(--line);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  justify-content: center;
  margin-bottom: 14px;
}

.footer-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.95rem;
}

.footer-copy {
  text-align: center;
  color: #6a7d74;
  font-size: 0.88rem;
}

.error-shell {
  min-height: 62vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 40px 0;
}

.error-shell .code {
  font-family: var(--font-display);
  font-size: clamp(4rem, 18vw, 7rem);
  line-height: 1;
  background: linear-gradient(120deg, var(--leaf), var(--amber));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin: 0;
}

.error-shell h1 {
  margin: 8px 0 12px;
  font-size: 1.5rem;
}

.float-glow {
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(224, 154, 69, 0.35), transparent 70%);
  filter: blur(8px);
  animation: pulseGlow 5s ease-in-out infinite;
  pointer-events: none;
}

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

@keyframes slowDrift {
  from {
    transform: scale(1.04) translateY(0);
  }
  to {
    transform: scale(1.08) translateY(-12px);
  }
}

@keyframes pulseGlow {
  0%,
  100% {
    opacity: 0.45;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.12);
  }
}

@media (min-width: 768px) {
  .menu-toggle {
    display: none;
  }

  .nav-desktop {
    display: flex;
  }

  .nav-drawer {
    display: none !important;
  }

  .stick-download .ads-grid {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }

  .split {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 28px;
  }

  .split.reverse {
    grid-template-columns: 0.95fr 1.05fr;
  }

  .split.reverse figure {
    order: 2;
  }

  .mosaic {
    grid-template-columns: repeat(3, 1fr);
  }

  .rail {
    grid-template-columns: 1fr 1fr;
  }

  .panel {
    padding: 34px 36px;
  }
}

@media (min-width: 1024px) {
  .hero-copy {
    padding: 72px 0 80px;
  }
}
