:root {
  color-scheme: light;
  --ink: #10241d;
  --ink-muted: #566860;
  --green: #19c650;
  --green-dark: #0f3d2d;
  --mint: #dff7e7;
  --cream: #f7f5ec;
  --yellow: #f3d857;
  --line: rgba(16, 36, 29, 0.14);
  --shadow: 0 28px 80px rgba(15, 61, 45, 0.15);
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    linear-gradient(rgba(16, 36, 29, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 36, 29, 0.035) 1px, transparent 1px),
    var(--cream);
  background-size: 32px 32px;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 84% 16%, rgba(25, 198, 80, 0.13), transparent 30%);
}

a { color: inherit; }

button, a { -webkit-tap-highlight-color: transparent; }

.page-shell {
  position: relative;
  width: min(1180px, calc(100% - 48px));
  min-height: 100vh;
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 92px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-size: 20px;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.brand-mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
}

.brand-mark img { width: 42px; height: 42px; object-fit: contain; }

.official-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--green-dark);
  background: rgba(255, 255, 255, 0.62);
  font-size: 13px;
  font-weight: 700;
}

.official-badge svg { width: 16px; height: 16px; fill: var(--green); }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
  gap: clamp(48px, 8vw, 112px);
  align-items: center;
  min-height: 660px;
  padding: 72px 0 64px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.eyebrow span {
  width: 34px;
  height: 3px;
  background: var(--green);
}

h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(44px, 5.6vw, 68px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.055em;
}

h1 > span { display: block; white-space: nowrap; }
h1 strong { color: var(--green-dark); text-decoration: underline; text-decoration-color: var(--green); text-decoration-thickness: 0.12em; text-underline-offset: 0.12em; }

.intro {
  max-width: 600px;
  margin: 28px 0 0;
  color: var(--ink-muted);
  font-size: 18px;
  line-height: 1.8;
}

.download-actions { margin-top: 34px; }

.download-button {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 238px;
  padding: 15px 24px;
  border: 2px solid var(--green-dark);
  border-radius: 16px;
  color: #fff;
  background: var(--green-dark);
  box-shadow: 6px 6px 0 var(--green);
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.download-button:hover { transform: translate(-2px, -2px); box-shadow: 10px 10px 0 var(--green); background: #0a3023; }
.download-button:active { transform: translate(3px, 3px); box-shadow: 3px 3px 0 var(--green); }
.download-button:focus-visible { outline: 3px solid var(--yellow); outline-offset: 5px; }
.download-button svg { width: 30px; height: 30px; flex: 0 0 auto; fill: currentColor; }
.download-button span { display: grid; gap: 2px; }
.download-button b { font-size: 17px; }
.download-button small { color: rgba(255, 255, 255, 0.7); font-size: 12px; }

.device-note { margin: 16px 0 0; color: var(--ink-muted); font-size: 13px; }

.release-info {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  max-width: 620px;
  margin-top: 42px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.release-info > div { display: grid; gap: 6px; padding: 17px 18px 17px 0; }
.release-info > div + div { padding-left: 22px; border-left: 1px solid var(--line); }
.release-info span { color: var(--ink-muted); font-size: 12px; }
.release-info strong { overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.sync-status { margin: 10px 0 0; color: var(--ink-muted); font-size: 12px; }

.hero-visual {
  position: relative;
  display: grid;
  min-height: 520px;
  place-items: center;
}

.app-ticket {
  position: relative;
  z-index: 2;
  width: min(360px, 90vw);
  padding: 24px 28px 30px;
  overflow: hidden;
  border: 2px solid var(--green-dark);
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--shadow), 14px 14px 0 var(--yellow);
  transform: rotate(2.5deg);
}

.app-ticket::before, .app-ticket::after {
  content: "";
  position: absolute;
  top: 58%;
  width: 26px;
  height: 26px;
  border: 2px solid var(--green-dark);
  border-radius: 50%;
  background: var(--cream);
}

.app-ticket::before { left: -15px; }
.app-ticket::after { right: -15px; }

.ticket-topline { display: flex; justify-content: space-between; padding-bottom: 16px; border-bottom: 1px dashed var(--line); color: var(--ink-muted); font-size: 10px; font-weight: 800; letter-spacing: 0.1em; }
.app-icon-wrap { display: grid; width: 184px; height: 184px; margin: 28px auto 18px; place-items: center; border: 1px solid var(--line); border-radius: 44px; background: #f2fbf7; }
.app-icon-wrap img { width: 160px; height: 160px; object-fit: contain; }
.ticket-title { text-align: center; font-size: 29px; font-weight: 900; letter-spacing: -0.04em; }
.ticket-subtitle { margin-top: 8px; color: var(--ink-muted); text-align: center; font-size: 13px; }
.barcode { width: 64%; height: 36px; margin: 28px 0 0; background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 5px, var(--ink) 5px 6px, transparent 6px 10px); }
.ticket-stamp { position: absolute; right: 27px; bottom: 25px; padding: 8px 10px; border: 2px solid var(--green); color: var(--green); font-size: 10px; font-weight: 900; line-height: 1.1; letter-spacing: 0.12em; transform: rotate(-8deg); }

.orbit { position: absolute; border: 1px solid rgba(15, 61, 45, 0.18); border-radius: 50%; }
.orbit-one { width: 470px; height: 470px; }
.orbit-two { width: 360px; height: 360px; border-style: dashed; }
.leaf { position: absolute; z-index: 3; width: 86px; height: 42px; border: 2px solid var(--green-dark); border-radius: 100% 0 100% 0; background: var(--green); }
.leaf-a { top: 45px; right: 20px; transform: rotate(20deg); }
.leaf-b { bottom: 55px; left: 0; width: 62px; height: 31px; transform: rotate(-18deg); background: var(--yellow); }

.install-steps {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 48px;
  padding: 42px 0;
  border-top: 2px solid var(--green-dark);
  border-bottom: 1px solid var(--line);
}

.steps-heading p { margin: 0 0 8px; color: var(--green); font-size: 12px; font-weight: 800; letter-spacing: 0.12em; }
.steps-heading h2 { margin: 0; font-size: 26px; letter-spacing: -0.03em; }
.install-steps ol { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin: 0; padding: 0; list-style: none; }
.install-steps li { display: flex; gap: 15px; }
.install-steps li > span { display: grid; width: 36px; height: 36px; flex: 0 0 auto; place-items: center; border-radius: 50%; color: #fff; background: var(--green-dark); font-size: 11px; font-weight: 800; }
.install-steps strong { font-size: 15px; }
.install-steps li p { margin: 7px 0 0; color: var(--ink-muted); font-size: 13px; line-height: 1.6; }

footer { display: flex; justify-content: space-between; gap: 24px; padding: 28px 0 42px; color: var(--ink-muted); font-size: 12px; }

.wechat-guide {
  position: fixed;
  z-index: 20;
  inset: 0;
  display: grid;
  padding: 24px;
  place-items: start center;
  background: rgba(9, 23, 18, 0.86);
  backdrop-filter: blur(8px);
}

.wechat-guide[hidden] { display: none; }
.guide-arrow { position: absolute; top: 18px; right: 20px; color: #fff; font-size: 56px; font-weight: 300; }
.guide-card { display: grid; grid-template-columns: 64px 1fr; gap: 18px; width: min(480px, calc(100vw - 48px)); margin-top: 70px; padding: 24px; border-radius: 20px; background: #fff; box-shadow: var(--shadow); }
.guide-card img { width: 64px; height: 64px; }
.guide-card h2 { margin: 2px 0 8px; font-size: 20px; }
.guide-card p { margin: 0; color: var(--ink-muted); font-size: 14px; line-height: 1.7; }
.guide-card button { grid-column: 1 / -1; padding: 13px 18px; border: 0; border-radius: 12px; color: #fff; background: var(--green-dark); font: inherit; font-weight: 700; cursor: pointer; }
.guide-card button:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.guide-open { overflow: hidden; }

@media (max-width: 860px) {
  .page-shell { width: min(100% - 32px, 680px); }
  .site-header { height: 76px; }
  .hero { grid-template-columns: 1fr; gap: 28px; min-height: auto; padding: 54px 0; }
  .hero-visual { order: -1; min-height: 390px; }
  .app-ticket { width: 286px; padding: 18px 22px 24px; box-shadow: 9px 9px 0 var(--yellow); }
  .app-icon-wrap { width: 142px; height: 142px; margin: 20px auto 13px; border-radius: 36px; }
  .app-icon-wrap img { width: 126px; height: 126px; }
  .ticket-title { font-size: 24px; }
  .barcode { margin-top: 20px; }
  .orbit-one { width: 350px; height: 350px; }
  .orbit-two { width: 270px; height: 270px; }
  .leaf-a { top: 24px; right: 6%; }
  .leaf-b { bottom: 25px; left: 4%; }
  .install-steps { grid-template-columns: 1fr; gap: 28px; }
  .install-steps ol { grid-template-columns: 1fr; gap: 22px; }
}

@media (max-width: 520px) {
  .official-badge { padding: 8px 10px; font-size: 12px; }
  .brand { gap: 9px; font-size: 17px; }
  .brand-mark { width: 42px; height: 42px; border-radius: 13px; }
  .brand-mark img { width: 38px; height: 38px; }
  .hero { padding-top: 38px; }
  .hero-visual { min-height: 340px; }
  .app-ticket { width: 244px; }
  .app-icon-wrap { width: 118px; height: 118px; border-radius: 30px; }
  .app-icon-wrap img { width: 104px; height: 104px; }
  .ticket-title { font-size: 22px; }
  .ticket-subtitle { font-size: 11px; }
  .ticket-stamp { right: 21px; bottom: 19px; }
  .orbit-one { width: 300px; height: 300px; }
  .orbit-two { width: 230px; height: 230px; }
  .leaf { width: 62px; height: 31px; }
  h1 { font-size: clamp(40px, 12vw, 58px); }
  h1 > span { white-space: normal; }
  .intro { font-size: 16px; }
  .download-button { display: flex; width: 100%; justify-content: center; }
  .device-note { text-align: center; }
  .release-info { grid-template-columns: 100px minmax(0, 1fr); }
  .release-info > div { padding-right: 12px; }
  .release-info > div + div { padding-left: 14px; }
  footer { flex-direction: column; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}
