:root {
  --ink: #10241b;
  --muted: #355245;
  --foam: #f3faf6;
  --leaf: #1a7a4c;
  --leaf-deep: #0d4a30;
  --sun: #f0c36a;
  --line: rgba(16, 36, 27, 0.14);
  --font: "Manrope", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", sans-serif;
  --display: "Fraunces", "Songti SC", "Noto Serif SC", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.portal {
  margin: 0;
  color: var(--ink);
  font-family: var(--font);
  background: #d7e8cf;
  overflow-x: hidden;
}

.hero-plane {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background:
    radial-gradient(900px 420px at 18% 12%, rgba(255, 255, 255, 0.45), transparent 60%),
    linear-gradient(180deg, #9ec8ea 0%, #c5dfef 28%, #d7ebc8 62%, #9fc46d 100%);
}

.hill {
  position: absolute;
  left: -12%;
  right: -12%;
  border-radius: 50% 50% 0 0;
  bottom: -22%;
}
.h1 { height: 46%; background: #4d8a3d; }
.h2 {
  height: 38%;
  bottom: -16%;
  background: #67a84f;
  transform: translateX(10%);
  animation: sway 12s ease-in-out infinite;
}
.h3 {
  height: 28%;
  bottom: -10%;
  background: #3f7433;
  transform: translateX(-16%);
}

.cloud {
  position: absolute;
  background: rgba(255, 255, 255, 0.88);
  border-radius: 999px;
  animation: driftx 20s linear infinite;
}
.cloud::before,
.cloud::after {
  content: "";
  position: absolute;
  background: inherit;
  border-radius: 50%;
}
.c1 { width: 110px; height: 34px; top: 16%; left: 8%; }
.c1::before { width: 42px; height: 42px; top: -20px; left: 16px; }
.c1::after { width: 56px; height: 56px; top: -30px; left: 42px; }
.c2 {
  width: 150px; height: 40px; top: 22%; right: 12%;
  animation-duration: 26s; animation-delay: -8s;
}
.c2::before { width: 52px; height: 52px; top: -24px; left: 22px; }
.c2::after { width: 68px; height: 68px; top: -36px; left: 56px; }
.c3 {
  width: 90px; height: 28px; top: 34%; left: 42%;
  opacity: 0.75; animation-duration: 30s; animation-delay: -14s;
}
.c3::before { width: 34px; height: 34px; top: -16px; left: 12px; }
.c3::after { width: 44px; height: 44px; top: -24px; left: 34px; }

.beacon {
  position: absolute;
  left: 62%;
  bottom: 28%;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--sun);
  box-shadow: 0 0 0 0 rgba(240, 195, 106, 0.55);
  animation: pulse 2.6s ease-out infinite;
}

.site-header {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 2;
}

.logo {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.01em;
}

.site-header nav {
  display: flex;
  gap: 18px;
}
.site-header nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}
.site-header nav a:hover { color: var(--ink); }

.hero-copy {
  width: min(720px, calc(100% - 32px));
  margin: auto auto 12vh;
  padding-top: 6vh;
  position: relative;
  z-index: 2;
}

.brand-zh {
  margin: 0 0 12px;
  color: var(--leaf-deep);
  font-weight: 700;
  letter-spacing: 0.28em;
  font-size: 0.86rem;
  opacity: 0;
  animation: rise 0.8s ease forwards 0.08s;
}

.hero-copy h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(3.2rem, 10vw, 6.4rem);
  line-height: 0.92;
  letter-spacing: -0.035em;
  opacity: 0;
  animation: rise 0.9s ease forwards 0.2s;
}

.lead {
  margin: 20px 0 0;
  max-width: 28ch;
  font-size: 1.14rem;
  line-height: 1.7;
  color: var(--muted);
  opacity: 0;
  animation: rise 0.9s ease forwards 0.36s;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
  opacity: 0;
  animation: rise 0.9s ease forwards 0.5s;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
  border-radius: 999px;
  background: var(--leaf);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 14px 34px rgba(13, 74, 48, 0.24);
  transition: transform 0.2s ease, filter 0.2s ease;
}
.cta:hover { transform: translateY(-2px); filter: brightness(1.05); }
.cta-ghost {
  background: rgba(255, 255, 255, 0.55);
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: none;
  backdrop-filter: blur(8px);
}

.how {
  width: min(1080px, calc(100% - 32px));
  margin: -36px auto 32px;
  padding: 36px 28px;
  border-radius: 28px;
  background: rgba(243, 250, 246, 0.86);
  border: 1px solid var(--line);
  backdrop-filter: blur(12px);
  position: relative;
  z-index: 3;
}
.how-alt {
  margin-top: 0;
  margin-bottom: 72px;
}

.how h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}
.section-lead {
  margin: 10px 0 0;
  color: var(--muted);
  max-width: 36ch;
}

.steps {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  counter-reset: step;
}
.steps li {
  counter-increment: step;
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  display: grid;
  gap: 8px;
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--display);
  color: var(--leaf);
  font-size: 1.2rem;
  font-weight: 700;
}
.steps strong { font-size: 1.1rem; }
.steps span {
  color: var(--muted);
  line-height: 1.55;
  font-size: 0.95rem;
}

.site-footer {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto 40px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  color: var(--muted);
  font-size: 0.92rem;
}
.site-footer p { margin: 6px 0 0; }
.site-footer a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}
.site-footer .beian {
  color: var(--muted);
  font-weight: 500;
}
.site-footer .beian:hover { text-decoration: underline; }

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes sway {
  0%, 100% { transform: translateX(10%); }
  50% { transform: translateX(6%); }
}
@keyframes driftx {
  from { transform: translateX(0); }
  to { transform: translateX(12%); }
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(240, 195, 106, 0.55); }
  70% { box-shadow: 0 0 0 28px rgba(240, 195, 106, 0); }
  100% { box-shadow: 0 0 0 0 rgba(240, 195, 106, 0); }
}

@media (max-width: 860px) {
  .hero-copy {
    margin-bottom: 18vh;
    padding-top: 4vh;
  }
  .lead { max-width: none; }
  .steps { grid-template-columns: 1fr; }
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
  .beacon { left: 70%; bottom: 24%; }
}
