:root {
  color-scheme: dark;
  --page: #081b2d;
  --surface: #102c3d;
  --text: #eef8f7;
  --muted: #a9c0c9;
  --mint: #78e3d9;
  --line: rgba(184, 235, 232, .14);
  --sidebar-width: 224px;
}

* { box-sizing: border-box; }

body {
  min-width: 320px;
  margin: 0;
  padding-inline-start: var(--sidebar-width);
  color: var(--text);
  background: var(--page);
  font-family: system-ui, -apple-system, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
}

h1, h2, h3, p { margin-top: 0; }

.container {
  width: min(1080px, calc(100% - 48px));
  margin-inline: auto;
}

.site-navigation {
  position: fixed;
  z-index: 10;
  inset: 0 auto 0 0;
  width: var(--sidebar-width);
  padding: 24px 16px;
  overflow-y: auto;
  border-inline-end: 1px solid var(--line);
  background: var(--surface);
}

.site-navigation a {
  display: block;
  border-radius: 8px;
  text-decoration: none;
}

.nav-brand {
  padding: 10px 12px;
  color: var(--text);
  font-size: 1.125rem;
  font-weight: 750;
}

.nav-links {
  display: grid;
  gap: 4px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.nav-links a { padding: 10px 12px; color: var(--muted); }
.site-navigation a:hover,
.nav-links a[aria-current="page"] { background: rgba(120, 227, 217, .12); color: var(--mint); }

.site-navigation :is(a, button):focus-visible { outline: 2px solid var(--mint); outline-offset: 2px; }
.nav-toggle, .nav-drawer:not([open]) { display: none; }

.site-header {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: radial-gradient(circle at 50% 16%, rgba(74, 191, 183, .25), transparent 38%),
              radial-gradient(circle at 8% 80%, rgba(43, 99, 147, .22), transparent 35%),
              linear-gradient(160deg, #0c2a3c, var(--page) 75%);
}

.site-header::before {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  opacity: .25;
  background-image: linear-gradient(rgba(168, 233, 229, .16) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(168, 233, 229, .16) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: linear-gradient(to bottom, black, transparent 92%);
}

.hero-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-block: 55px 68px;
  text-align: center;
}

.app-logo {
  display: block;
  width: 112px;
  height: 112px;
}

.hero-label { margin: 26px 0 7px; }

.hero-content h1 {
  margin-bottom: 8px;
  font-size: clamp(2.35rem, 6vw, 4rem);
  font-weight: 850;
  letter-spacing: -.045em;
  line-height: 1.2;
}

.hero-description {
  margin-bottom: 0;
  color: #c3d9de;
  font-size: clamp(1rem, 2vw, 1.18rem);
}

.download-area {
  display: flex;
  flex-direction: column;
  align-self: stretch;
  align-items: center;
  margin-top: 32px;
}

.download-row { position: relative; display: flex; justify-content: center; }

#apk-download {
  display: inline-flex;
  align-items: stretch;
  overflow: hidden;
  border-radius: 0.3em;
  background: var(--mint);
  color: #082d34;
  font-weight: 800;
  box-shadow: 0 13px 30px rgba(7, 164, 157, .18);
}

#download-text, #app-version { display: grid; place-items: center; min-height: 50px; }
#download-text { min-width: 140px; padding: 11px 20px; }
#app-version { min-width: 65px; padding: 11px 15px; background: #53cbd0; font-size: .88rem; }
#apk-download:active { background: #a2f0e9; }

#download-loading {
  position: absolute;
  left: calc(100% + 12px);
  top: 50%;
  display: flex;
  transform: translateY(-50%);
  visibility: hidden;
}

#apk-download-a { align-self: stretch; margin-top: 14px; color: var(--muted); font-size: .86rem; text-align: left; min-height: 50px; }
#apk-download-a a { color: #a7eee5; text-underline-offset: 3px; }

.features { padding-block: 50px 60px; background: #0a2031; }
.section-heading { margin-bottom: 30px; text-align: center; }
.section-label { margin-bottom: 5px; }
.section-heading h2 { margin-bottom: 0; font-size: clamp(1.8rem, 3.5vw, 2.5rem); letter-spacing: -.035em; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  counter-reset: feature;
}

.feature {
  min-width: 0;
  min-height: 190px;
  padding: 27px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .018));
}

.feature h3 { margin-bottom: 8px; font-size: 1.13rem; line-height: 1.35; }
.feature p { margin-bottom: 0; color: var(--muted); font-size: .91rem; line-height: 1.72; }

.notice { padding-block: 38px 55px; }
.notice-inner { display: grid; grid-template-columns: 170px 1fr; gap: 30px; padding-top: 25px; border-top: 1px solid var(--line); }
.notice h2 { margin-bottom: 0; font-size: 1rem; }
.notice p { margin-bottom: 10px; color: #9db6c1; font-size: .85rem; }
.notice p:last-child { margin-bottom: 0; }

.feature-page { max-width: 760px; padding-block: 48px 60px; }
.feature-page h1 { margin-bottom: 24px; font-size: clamp(1.8rem, 4vw, 2.5rem); }
.feature-page article { padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.feature-page article h2 { margin-bottom: 8px; font-size: 1.2rem; }
.feature-page p { margin-bottom: 0; color: var(--muted); }
.feature-page article section:not([hidden]) + section { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); }
.feature-page article a { color: var(--mint); text-underline-offset: 3px; overflow-wrap: anywhere; }
.feature-breadcrumb { display: flex; gap: 8px; margin-bottom: 20px; color: var(--muted); font-size: .85rem; }
.feature-pagination { display: flex; justify-content: space-between; gap: 16px; margin-top: 20px; font-size: .95rem; }
.feature-pagination a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
.feature-breadcrumb a, .feature-pagination a { color: var(--mint); text-decoration: none; text-underline-offset: 3px; }
.feature-breadcrumb a:hover, .feature-pagination a:hover { text-decoration: underline; }
.release-status:not(:empty) { margin-bottom: 16px; }
.release-history ol { margin: 0; padding-inline-start: 1.5em; color: var(--muted); }
.release-notes { white-space: pre-wrap; overflow-wrap: anywhere; }

@media (max-width: 880px) {
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  body { padding-inline-start: 0; }

  .site-navigation {
    position: sticky;
    inset: 0 auto auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    width: auto;
    padding: 4px 16px;
    border-inline-end: 0;
    border-bottom: 1px solid var(--line);
  }

  .has-nav-drawer .nav-toggle {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--text);
    cursor: pointer;
  }

  .nav-toggle span {
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    box-shadow: 0 -6px currentColor, 0 6px currentColor;
  }

  .nav-brand { padding: 8px; }
  .site-navigation > .nav-links { flex-basis: 100%; margin: 0; padding-block-end: 8px; }
  .has-nav-drawer .site-navigation > .nav-links { display: none; }
  body.nav-open { overflow: hidden; }

  .nav-drawer {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(76vw, 360px);
    max-width: none;
    max-height: none;
    height: 100vh;
    height: 100dvh;
    margin: 0;
    padding: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    border: 0;
    color-scheme: light;
    background: #fff;
    color: #262626;
    box-shadow: 2px 0 10px rgba(0, 0, 0, .16);
  }

  .nav-drawer::backdrop { background: rgba(0, 0, 0, .32); }
  .nav-drawer-header { min-height: 112px; padding: 20px; }

  .nav-close {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
  }

  .nav-close::before, .nav-close::after {
    grid-area: 1 / 1;
    width: 26px;
    height: 2px;
    background: currentColor;
    content: "";
  }

  .nav-close::before { transform: rotate(45deg); }
  .nav-close::after { transform: rotate(-45deg); }
  .nav-drawer .nav-links { gap: 0; margin: 0; }
  .nav-drawer .nav-links a { padding: 15px 30px; border-radius: 0; color: #262626; }
  .nav-drawer .nav-links a:hover { background: #f1f5fb; }
  .nav-drawer .nav-links a[aria-current="page"] { background: #e7f2fb; color: #154a72; }
  .nav-drawer :is(a, button):focus-visible { outline-color: #32658d; outline-offset: -2px; }
}

@media (max-width: 820px) and (prefers-reduced-motion: no-preference) {
  .nav-drawer[open] { animation: nav-slide-in .22s ease-out; }
  @keyframes nav-slide-in {
    from { transform: translateX(-100%); }
  }
}

@media (max-width: 600px) {
  .container { width: min(100% - 32px, 1080px); }
  .hero-content { padding-block: 40px 30px; }
  .app-logo { width: 96px; height: 96px; }
  .hero-label { margin-top: 22px; }
  .download-area { margin-top: 28px; }
  .features { padding-block: 40px 10px; }
  .feature-grid { grid-template-columns: 1fr; gap: 20px; }
  .feature { min-height: 0; padding: 23px; }
  .notice-inner { grid-template-columns: 1fr; gap: 12px; }
}

