:root {
  --ink: #141714;
  --paper: #f4f5f2;
  --panel: #ffffff;
  --muted: #687068;
  --line: #d8ddd7;
  --green: #16775b;
  --red: #e85b49;
  --yellow: #e9c34b;
  --blue: #4980a5;
  --dark: #111512;
  font-family: Inter, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; background: var(--paper); }
body { margin: 0; min-height: 100vh; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
a, button, input { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid rgba(22, 119, 91, .32); outline-offset: 3px; }
[hidden] { display: none !important; }

.site-header {
  position: fixed; z-index: 50; inset: 0 0 auto; height: 76px; display: grid;
  grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 clamp(20px, 4vw, 64px);
  color: #fff; border-bottom: 1px solid rgba(255,255,255,.16); transition: background .2s, border-color .2s;
}
.site-header.is-scrolled { color: var(--ink); background: rgba(244,245,242,.96); border-color: var(--line); backdrop-filter: blur(16px); }
.site-brand { display: inline-flex; align-items: center; gap: 11px; width: max-content; font-size: 17px; font-weight: 800; }
.site-brand img { width: 38px; height: 38px; object-fit: cover; border: 1px solid rgba(255,255,255,.45); border-radius: 6px; }
.site-header nav { display: flex; align-items: center; gap: clamp(22px, 3vw, 42px); font-size: 13px; font-weight: 600; }
.site-header nav a { position: relative; padding: 28px 0; }
.site-header nav a::after { content: ""; position: absolute; inset: auto 0 20px; height: 2px; background: currentColor; transform: scaleX(0); transition: transform .2s; }
.site-header nav a:hover::after { transform: scaleX(1); }
.header-download { justify-self: end; display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 14px; border: 1px solid currentColor; border-radius: 4px; font-size: 12px; font-weight: 700; }
.header-download svg { width: 16px; height: 16px; }

.hero { position: relative; isolation: isolate; min-height: min(850px, 100svh); display: flex; align-items: center; color: #fff; overflow: hidden; }
.hero-background, .hero-shade { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; }
.hero-background { object-fit: cover; object-position: center; }
.hero-shade { z-index: -1; background: linear-gradient(90deg, rgba(8,12,9,.9) 0%, rgba(8,12,9,.7) 47%, rgba(8,12,9,.2) 100%); }
.hero-content { width: min(1180px, calc(100% - 40px)); margin: 76px auto 0; padding: clamp(58px, 8vh, 100px) 0; }
.hero-brand-lockup { display: flex; align-items: center; gap: 14px; color: rgba(255,255,255,.76); font-size: 12px; font-weight: 700; }
.hero-brand-lockup img { width: 54px; height: 54px; object-fit: cover; border: 1px solid rgba(255,255,255,.45); border-radius: 6px; }
.hero h1 { margin: 24px 0 18px; max-width: 900px; font-size: clamp(64px, 10vw, 142px); line-height: .84; font-weight: 850; letter-spacing: 0; }
.hero-content > p { max-width: 670px; margin: 0; color: rgba(255,255,255,.78); font-size: clamp(16px, 2vw, 21px); line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.primary-action, .secondary-action { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 20px; border-radius: 4px; font-size: 14px; font-weight: 750; transition: transform .2s, background .2s; }
.primary-action { color: #fff; background: var(--green); }
.primary-action:hover { transform: translateY(-2px); background: #0f684e; }
.secondary-action { border: 1px solid rgba(255,255,255,.52); color: #fff; }
.primary-action svg, .secondary-action svg { width: 18px; height: 18px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 18px 28px; margin-top: 36px; color: rgba(255,255,255,.7); font-size: 12px; }
.hero-meta span { display: inline-flex; align-items: center; gap: 7px; }
.hero-meta svg { width: 15px; height: 15px; }
.hero-scroll { position: absolute; left: 50%; bottom: 22px; display: grid; place-items: center; width: 38px; height: 38px; transform: translateX(-50%); border: 1px solid rgba(255,255,255,.4); border-radius: 50%; }
.hero-scroll svg { width: 18px; height: 18px; animation: scroll-pulse 1.5s ease-in-out infinite; }
@keyframes scroll-pulse { 50% { transform: translateY(4px); } }

.feature-band, .platform-band, .download-band, footer { padding-inline: max(20px, calc((100vw - 1180px) / 2)); }
.feature-band { padding-top: 112px; padding-bottom: 118px; }
.section-intro { display: grid; grid-template-columns: minmax(0, .8fr) minmax(300px, 1.2fr); gap: 20px 80px; align-items: end; }
.eyebrow { margin: 0 0 14px; color: var(--green); font-size: 11px; font-weight: 800; text-transform: uppercase; }
.section-intro .eyebrow { grid-column: 1 / -1; margin-bottom: -4px; }
.section-intro h2, .platform-copy h2, .download-copy h2 { margin: 0; font-size: clamp(34px, 5vw, 64px); line-height: 1.05; letter-spacing: 0; }
.section-intro > p:last-child, .platform-copy > p:last-child, .download-copy > p:last-child { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.75; }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 72px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.feature-grid article { min-width: 0; min-height: 310px; padding: 34px 26px; border-right: 1px solid var(--line); }
.feature-grid article:first-child { border-left: 1px solid var(--line); }
.feature-icon { display: grid; place-items: center; width: 44px; height: 44px; color: #fff; background: var(--green); border-radius: 4px; }
.feature-icon.accent-red { background: var(--red); }
.feature-icon.accent-yellow { color: var(--ink); background: var(--yellow); }
.feature-icon.accent-blue { background: var(--blue); }
.feature-icon svg { width: 22px; height: 22px; }
.feature-number { margin: 42px 0 14px; color: #9aa09a; font: 700 11px ui-monospace, monospace; }
.feature-grid h3 { margin: 0 0 12px; font-size: 21px; }
.feature-grid article > p:last-child { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; }

.platform-band { display: grid; grid-template-columns: minmax(280px, .85fr) minmax(420px, 1.15fr); gap: clamp(50px, 9vw, 130px); padding-top: 112px; padding-bottom: 112px; color: #fff; background: var(--dark); }
.platform-copy .eyebrow { color: #68c8a7; }
.platform-copy > p:last-child { margin-top: 24px; color: #aeb8b0; }
.platform-list { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid #384039; }
.platform-list span { min-height: 100px; display: flex; flex-direction: column; justify-content: center; padding: 18px; border-bottom: 1px solid #384039; }
.platform-list span:nth-child(odd) { border-right: 1px solid #384039; }
.platform-list b { font-size: 16px; }
.platform-list small { margin-top: 7px; color: #89938b; font-size: 12px; }

.download-band { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr); gap: 60px; align-items: end; padding-top: 108px; padding-bottom: 108px; }
.download-copy > p:last-child { max-width: 700px; margin-top: 23px; }
.download-action { justify-self: end; width: min(100%, 380px); }
.download-action .primary-action { width: 100%; min-height: 56px; }
.release-meta { display: flex; justify-content: space-between; gap: 16px; margin-top: 14px; color: var(--muted); font-size: 12px; }
.release-meta strong { color: var(--ink); }

footer { min-height: 124px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; border-top: 1px solid var(--line); background: var(--panel); }
.footer-brand img { width: 34px; height: 34px; }
footer p { margin: 0; color: var(--muted); font-size: 12px; }
.footer-copy { display: grid; gap: 7px; justify-items: center; }
.beian-link { color: var(--muted); font-size: 11px; }
.beian-link:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.admin-link { justify-self: end; display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
.admin-link:hover { color: var(--ink); }
.admin-link svg { width: 15px; height: 15px; }

@media (max-width: 900px) {
  .site-header { grid-template-columns: 1fr auto; }
  .site-header nav { display: none; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .feature-grid article:nth-child(2) { border-right: 1px solid var(--line); }
  .feature-grid article:nth-child(3) { border-left: 1px solid var(--line); border-top: 1px solid var(--line); }
  .feature-grid article:nth-child(4) { border-top: 1px solid var(--line); }
  .platform-band, .download-band { grid-template-columns: 1fr; }
  .download-action { justify-self: start; }
}

@media (max-width: 620px) {
  .site-header { height: 66px; padding-inline: 16px; }
  .header-download span { display: none; }
  .header-download { width: 38px; padding: 0; justify-content: center; }
  .hero { min-height: 720px; }
  .hero-content { width: calc(100% - 32px); margin-top: 66px; }
  .hero-shade { background: rgba(8,12,9,.76); }
  .hero h1 { font-size: clamp(54px, 20vw, 86px); }
  .hero-actions { display: grid; }
  .primary-action, .secondary-action { width: 100%; }
  .hero-meta { display: grid; gap: 12px; }
  .feature-band { padding-top: 78px; padding-bottom: 80px; }
  .section-intro { grid-template-columns: 1fr; }
  .section-intro .eyebrow { grid-column: auto; }
  .feature-grid { grid-template-columns: 1fr; margin-top: 46px; }
  .feature-grid article, .feature-grid article:first-child, .feature-grid article:nth-child(3) { min-height: auto; border: 0; border-top: 1px solid var(--line); }
  .feature-grid article:last-child { border-bottom: 1px solid var(--line); }
  .platform-band { grid-template-columns: 1fr; padding-top: 78px; padding-bottom: 78px; }
  .platform-list { grid-template-columns: 1fr; }
  .platform-list span:nth-child(odd) { border-right: 0; }
  .download-band { padding-top: 78px; padding-bottom: 78px; }
  .release-meta { flex-direction: column; gap: 5px; }
  footer { grid-template-columns: 1fr auto; min-height: 104px; }
  footer p { display: none; }
}

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