:root {
  color-scheme: light;
  --ink: #20201e;
  --muted: #696965;
  --line: #dfddd5;
  --paper: #f6f4ed;
  --surface: #fffdf8;
  --accent: #e84f22;
  --accent-pressed: #ca3d15;
  --accent-soft: #fce7de;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100dvh;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(32, 32, 30, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(32, 32, 30, 0.04) 1px, transparent 1px),
    var(--paper);
  background-size: 40px 40px;
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC",
    system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

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

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(75, 46, 28, 0.13);
}

.brand-copy {
  display: grid;
  gap: 1px;
}

.brand-name {
  font-size: 17px;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.brand-en {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

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

.platform svg,
.download-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
  gap: 9vw;
  align-items: center;
  min-height: 610px;
  padding: 72px 0 84px;
}

.hero-copy {
  opacity: 0;
  transform: translateY(12px);
  animation: rise 560ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 24px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.15em;
}

.eyebrow::before {
  width: 28px;
  height: 2px;
  background: currentColor;
  content: "";
}

h1 {
  max-width: 660px;
  margin: 0;
  font-size: clamp(44px, 6.4vw, 82px);
  font-weight: 800;
  letter-spacing: -0.065em;
  line-height: 0.98;
}

.lead {
  max-width: 560px;
  margin: 26px 0 34px;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.75;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.download-button {
  display: inline-flex;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 26px;
  border: 1px solid var(--accent);
  border-radius: 16px;
  color: #fffdf8;
  background: var(--accent);
  box-shadow: 0 18px 35px rgba(131, 53, 27, 0.18);
  font-size: 16px;
  font-weight: 750;
  text-decoration: none;
  transition: background-color 220ms ease, transform 220ms ease,
    box-shadow 220ms ease;
}

.download-button:hover {
  background: #db451a;
  box-shadow: 0 14px 28px rgba(131, 53, 27, 0.22);
  transform: translateY(-2px);
}

.download-button:active {
  background: var(--accent-pressed);
  transform: translateY(1px) scale(0.99);
}

.download-button[aria-disabled="true"] {
  border-color: #b7b4ac;
  color: #f4f2ec;
  background: #aaa79f;
  box-shadow: none;
  pointer-events: none;
}

.support {
  color: var(--muted);
  font-size: 13px;
}

.release-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 20px;
  min-height: 24px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 13px;
}

.release-meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.release-meta span + span::before {
  width: 3px;
  height: 3px;
  margin-right: 4px;
  border-radius: 50%;
  background: #aaa79f;
  content: "";
}

.release-meta.loading span {
  width: 84px;
  height: 14px;
  border-radius: 5px;
  background: linear-gradient(90deg, #e5e2da 25%, #f3f1eb 50%, #e5e2da 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
}

.release-meta.loading span::before {
  display: none;
}

.error {
  display: none;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  color: #9b3218;
  font-size: 13px;
}

.error.visible {
  display: flex;
}

.retry {
  padding: 5px 9px;
  border: 1px solid #d9a18e;
  border-radius: 8px;
  color: #843019;
  background: transparent;
  cursor: pointer;
  font: inherit;
}

.release-panel {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  border: 1px solid rgba(122, 64, 36, 0.12);
  border-radius: 38px;
  background: var(--accent-soft);
  box-shadow: 0 28px 70px rgba(91, 57, 35, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
  opacity: 0;
  transform: translateY(16px);
  animation: rise 640ms 120ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.panel-number {
  position: absolute;
  top: -46px;
  right: -14px;
  color: rgba(232, 79, 34, 0.12);
  font-size: 190px;
  font-weight: 850;
  letter-spacing: -0.1em;
  line-height: 1;
}

.panel-content {
  position: relative;
  display: flex;
  min-height: 430px;
  flex-direction: column;
  justify-content: space-between;
  padding: 44px;
}

.app-mark {
  width: 96px;
  height: 96px;
  border-radius: 26px;
  box-shadow: 0 20px 36px rgba(121, 51, 28, 0.22);
  animation: float 4s ease-in-out infinite;
}

.panel-copy p {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.panel-copy h2 {
  max-width: 310px;
  margin: 0;
  font-size: 32px;
  letter-spacing: -0.045em;
  line-height: 1.18;
}

.guide {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 9vw;
  padding: 54px 0 70px;
  border-top: 1px solid var(--line);
}

.guide h2 {
  margin: 0;
  font-size: 28px;
  letter-spacing: -0.04em;
}

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: install-step;
}

.steps li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  counter-increment: install-step;
}

.steps li::before {
  color: var(--accent);
  content: "0" counter(install-step);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 13px;
  font-weight: 750;
}

.steps li:first-child {
  border-top: 0;
  padding-top: 0;
}

.steps strong {
  display: block;
  margin-bottom: 6px;
  font-size: 16px;
}

.steps p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 0 38px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes shimmer {
  to {
    background-position: -200% 0;
  }
}

@media (max-width: 760px) {
  .page {
    width: min(100% - 32px, 620px);
  }

  .nav {
    min-height: 76px;
  }

  .platform span {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 48px;
    min-height: auto;
    padding: 54px 0 62px;
  }

  h1 {
    font-size: clamp(43px, 14vw, 62px);
  }

  .lead {
    font-size: 17px;
  }

  .actions {
    align-items: stretch;
    flex-direction: column;
  }

  .download-button {
    width: 100%;
  }

  .support {
    text-align: center;
  }

  .release-panel,
  .panel-content {
    min-height: 350px;
  }

  .panel-content {
    padding: 34px;
  }

  .panel-number {
    font-size: 152px;
  }

  .guide {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  footer {
    flex-direction: column;
  }
}

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