@import url("https://cdn.jsdelivr.net/npm/lxgw-wenkai-webfont@1.7.0/lxgwwenkai-regular.css");
@import url("https://cdn.jsdelivr.net/npm/lxgw-wenkai-webfont@1.7.0/lxgwwenkai-bold.css");

:root {
  color-scheme: light;
  --bg: #f4f7f5;
  --surface: #ffffff;
  --surface-soft: #eef4f0;
  --ink: #15231e;
  --muted: #60706a;
  --line: #dce6e0;
  --brand: #2f7a65;
  --brand-dark: #155341;
  --amber: #b87a22;
  --rose: #a95560;
  --blue: #496f93;
  --shadow: 0 18px 48px rgba(21, 35, 30, 0.1);
  --font-wenkai: "LXGW WenKai", "霞鹜文楷", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--bg);
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-wenkai);
  line-height: 1.68;
  letter-spacing: 0;
  background: var(--bg);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 70px;
  padding: 14px clamp(20px, 5vw, 72px);
  background: rgba(244, 247, 245, 0.9);
  border-bottom: 1px solid rgba(220, 230, 224, 0.82);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 760;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 8px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  color: var(--muted);
}

.nav a {
  padding: 8px 12px;
  border-radius: 8px;
}

.nav .nav-icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 40px;
  height: 40px;
  padding: 0 10px;
}

.github-icon {
  flex: none;
  width: 19px;
  height: 19px;
  fill: currentColor;
}

.nav-icon-label {
  font-size: 14px;
  font-weight: 720;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--brand-dark);
  background: var(--surface-soft);
}

.hero {
  min-height: min(78vh, 760px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.88fr);
  gap: clamp(28px, 5vw, 76px);
  align-items: center;
  padding: 70px clamp(20px, 6vw, 92px) 54px;
  border-bottom: 1px solid var(--line);
  background: #f8fbf9;
}

.hero-inner {
  width: min(760px, 100%);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 760;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 16px;
  font-size: clamp(62px, 11vw, 126px);
  line-height: 0.95;
  font-weight: 840;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.12;
  font-weight: 790;
}

h3 {
  margin-bottom: 8px;
  font-size: 22px;
  line-height: 1.25;
}

.hero-copy {
  width: min(660px, 100%);
  margin-bottom: 12px;
  color: #243832;
  font-size: clamp(24px, 3.2vw, 42px);
  line-height: 1.22;
  font-weight: 760;
}

.hero-subcopy {
  width: min(650px, 100%);
  margin-bottom: 28px;
  color: var(--muted);
  font-size: clamp(17px, 1.7vw, 21px);
}

.hero-actions,
.detail-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 720;
  line-height: 1.2;
}

.button.primary {
  color: #ffffff;
  border-color: var(--brand);
  background: var(--brand);
}

.button.primary:hover {
  background: var(--brand-dark);
}

.button.secondary {
  color: var(--brand-dark);
  background: #ffffff;
}

.button.secondary:hover {
  border-color: var(--brand);
}

.button.disabled {
  color: var(--muted);
  background: #f2f5f3;
  cursor: not-allowed;
}

.hero-screens {
  justify-self: end;
  position: relative;
  width: min(360px, 100%);
  min-height: 460px;
}

.screen-shot {
  display: block;
  width: auto;
  height: clamp(360px, 44vw, 460px);
  max-width: none;
  object-fit: cover;
  object-position: top;
  border: 1px solid rgba(21, 35, 30, 0.12);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.screen-main {
  margin-left: auto;
}

.screen-side {
  position: absolute;
  left: 0;
  bottom: 28px;
  height: clamp(300px, 35vw, 380px);
}

.release-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.section {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 70px 0;
}

.intro {
  width: min(1040px, calc(100% - clamp(40px, 12vw, 184px)));
  max-width: none;
  margin-left: clamp(20px, 6vw, 92px);
  margin-right: auto;
}

.intro h2 {
  max-width: 1000px;
  font-size: clamp(30px, 3.2vw, 42px);
  line-height: 1.18;
}

.intro p:last-child {
  max-width: 900px;
  color: var(--muted);
  font-size: 20px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.feature-card,
.download-card {
  min-height: 220px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 1px 0 rgba(21, 35, 30, 0.04);
}

.feature-index {
  display: block;
  margin-bottom: 42px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 820;
}

.feature-card:nth-child(2) .feature-index {
  color: var(--amber);
}

.feature-card:nth-child(3) .feature-index {
  color: var(--rose);
}

.feature-card:nth-child(4) .feature-index {
  color: var(--blue);
}

.feature-card p,
.download-card p,
.detail-band p,
.release-band p,
.workflow-section p,
.screenshot-band p,
.doc-body p,
.doc-body li {
  color: var(--muted);
}

.detail-band,
.release-band,
.workflow-section,
.screenshot-band {
  justify-content: space-between;
  gap: 28px;
  padding: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.detail-band div,
.release-copy,
.workflow-copy,
.screenshot-band div {
  max-width: 720px;
}

.release-band,
.workflow-section,
.screenshot-band {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.9fr);
}

@media (min-width: 981px) {
  .workflow-section,
  .screenshot-band {
    grid-template-columns: minmax(680px, 1fr) minmax(300px, 0.72fr);
  }

  .workflow-copy h2,
  .screenshot-band h2 {
    white-space: nowrap;
  }
}

@media (min-width: 1360px) {
  .hero {
    grid-template-columns: minmax(760px, 1fr) minmax(320px, 0.62fr);
  }

  .hero-inner {
    width: min(900px, 100%);
  }

  .hero-copy {
    width: max-content;
    max-width: 100%;
    white-space: nowrap;
  }
}

.workflow-grid {
  display: grid;
  gap: 12px;
}

.workflow-grid article {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.workflow-grid article:last-child {
  border-bottom: 0;
}

.workflow-grid span {
  display: block;
  margin-bottom: 4px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 780;
}

.workflow-grid strong {
  display: block;
  font-size: 18px;
  line-height: 1.38;
}

.screenshot-band {
  align-items: center;
}

.share-preview {
  justify-self: center;
  margin: 0;
}

.share-preview img {
  display: block;
  width: auto;
  height: clamp(360px, 44vw, 460px);
  max-width: 100%;
  object-fit: contain;
  object-position: top;
  border: 1px solid rgba(21, 35, 30, 0.12);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.release-list {
  display: grid;
  gap: 10px;
}

.release-row {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.release-link:hover .state {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.release-row:last-child {
  border-bottom: 0;
}

.platform {
  font-weight: 760;
}

.state {
  color: var(--brand-dark);
  text-align: right;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 24px;
  padding: 34px 20px 42px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.site-footer a {
  color: var(--brand-dark);
}

.document {
  width: min(940px, calc(100% - 40px));
  margin: 0 auto;
  padding: 56px 0 72px;
}

.doc-body {
  padding: clamp(24px, 5vw, 54px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.doc-body h1 {
  margin-bottom: 8px;
  font-size: clamp(38px, 8vw, 72px);
}

.doc-body h2 {
  margin-top: 36px;
  font-size: clamp(24px, 3vw, 32px);
}

.doc-date {
  margin-bottom: 30px;
}

.doc-body a {
  color: var(--brand-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.doc-body code {
  padding: 2px 5px;
  border-radius: 6px;
  background: #eef3f0;
  color: #24473d;
  font-family: var(--font-mono);
  overflow-wrap: anywhere;
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(180px, 0.55fr) 1fr;
  gap: 16px;
  margin: 28px 0 34px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 720;
}

details {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

summary {
  cursor: pointer;
  font-weight: 760;
}

details p {
  margin: 10px 0 0;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 30px 0 38px;
}

.download-card {
  display: flex;
  flex-direction: column;
}

.download-card h2 {
  font-size: 25px;
}

.download-card .button {
  margin-top: auto;
}

.download-card.accent {
  border-top: 4px solid var(--brand);
}

.release-table {
  display: grid;
  margin: 22px 0 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.release-table [role="row"] {
  display: grid;
  grid-template-columns: minmax(160px, 0.4fr) 1fr;
  gap: 16px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}

.release-table [role="row"]:last-child {
  border-bottom: 0;
}

.release-table span {
  color: var(--muted);
}

.download-note {
  margin-bottom: 18px;
}

.apk-list {
  display: grid;
  gap: 10px;
  margin: 22px 0 32px;
}

.apk-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.apk-link:hover {
  border-color: var(--brand);
}

.apk-link strong,
.apk-link small {
  display: block;
}

.apk-link small {
  margin-top: 3px;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.apk-link em {
  color: var(--brand-dark);
  font-size: 13px;
  font-style: normal;
  font-weight: 760;
  white-space: nowrap;
}

.primary-apk {
  border-color: rgba(47, 122, 101, 0.38);
  background: #f8fcfa;
}

.checksum {
  font-family: var(--font-mono);
  font-size: 13px;
  overflow-wrap: anywhere;
}

@media (max-width: 980px) {
  .hero,
  .release-band,
  .workflow-section,
  .screenshot-band {
    grid-template-columns: 1fr;
  }

  .hero-screens {
    justify-self: start;
    width: min(360px, 100%);
  }

  .feature-grid,
  .download-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .site-header {
    gap: 12px;
    min-height: 64px;
    padding: 12px 16px;
  }

  .brand span {
    display: none;
  }

  .nav {
    gap: 2px;
    font-size: 14px;
  }

  .nav a {
    padding: 7px 9px;
  }

  .nav .nav-icon-link {
    width: 34px;
    min-width: 34px;
    height: 34px;
    padding: 0;
  }

  .nav-icon-label {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 50px 20px 38px;
  }

  .hero-copy {
    font-size: 31px;
  }

  .hero-subcopy {
    font-size: 17px;
  }

  .section,
  .document {
    width: min(100% - 28px, 1120px);
  }

  .intro {
    width: min(100% - 28px, 1120px);
    margin-left: auto;
    margin-right: auto;
  }

  .feature-grid,
  .download-grid {
    grid-template-columns: 1fr;
  }

  .feature-card,
  .download-card {
    min-height: auto;
  }

  .detail-band,
  .release-band,
  .workflow-section,
  .screenshot-band {
    padding: 28px;
  }

  .hero-screens {
    min-height: auto;
  }

  .screen-main {
    height: 380px;
    margin: 0 auto;
  }

  .screen-side {
    display: none;
  }

  .share-preview {
    width: auto;
  }

  .share-preview img {
    height: 380px;
  }

  .contact-panel,
  .release-table [role="row"] {
    grid-template-columns: 1fr;
  }

  .release-row {
    flex-direction: column;
    gap: 4px;
  }

  .state {
    text-align: left;
  }
}
