:root {
  --page-bg: oklch(0.955 0 0);
  --panel-bg: oklch(0.985 0 0);
  --ink: oklch(0.17 0 0);
  --muted: oklch(0.61 0.012 240);
  --rule: oklch(0.92 0 0);
  --blue: oklch(0.64 0.195 254);
  --blue-active: oklch(0.57 0.205 254);
}

* { box-sizing: border-box; }
html { background: var(--page-bg); }

body {
  margin: 0;
  background: var(--page-bg);
  color: var(--ink);
  font-family: Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.landing-routing body { visibility: hidden; }

button { font: inherit; }

.download-page {
  display: grid;
  min-height: 100dvh;
  place-items: start center;
  background: var(--page-bg);
}

.download-panel {
  position: relative;
  width: min(100%, 390px);
  min-height: 686px;
  overflow: hidden;
  background: var(--panel-bg);
  text-align: center;
}

.top-decoration {
  display: block;
  width: 100%;
  height: 22px;
  object-fit: cover;
  object-position: center top;
  user-select: none;
}

.app-icon-halo {
  display: grid;
  width: 124px;
  height: 124px;
  margin: 40px auto 0;
  place-items: center;
  border-radius: 50%;
  background: oklch(1 0 0);
  box-shadow: 0 10px 28px oklch(0.4 0 0 / 0.12);
}

.app-icon {
  display: block;
  width: 76px;
  height: 76px;
  border-radius: 18px;
  box-shadow: 0 5px 8px oklch(0.5 0 0 / 0.08);
}

.app-title {
  margin: 22px 0 0;
  color: var(--ink);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.3;
}

.update-time {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.separator {
  width: calc(100% - 46px);
  height: 1px;
  margin: 23px auto 20px;
  background: var(--rule);
}

.download-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.download-button {
  display: inline-flex;
  width: 226px;
  height: 52px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  border-radius: 999px;
  background: var(--blue);
  box-shadow: 0 6px 8px oklch(0.51 0.18 254 / 0.19);
  color: oklch(1 0 0);
  cursor: pointer;
  font-size: 17px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition: background-color 180ms ease-out, transform 180ms ease-out;
}

.download-icon {
  font-size: 26px;
  font-weight: 400;
  line-height: 1;
  transform: translateY(-1px);
}

.download-button:hover { background: var(--blue-active); }
.download-button:active { transform: translateY(1px); }

.download-button:focus-visible {
  outline: 3px solid oklch(0.78 0.14 252);
  outline-offset: 4px;
}

.qr-frame {
  position: relative;
  display: grid;
  width: 206px;
  height: 208px;
  margin: 19px auto 0;
  place-items: center;
  border: 1px solid oklch(0.87 0 0);
  background: oklch(1 0 0);
}

.qr-image { display: block; }

.qr-logo {
  position: absolute;
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  border-radius: 12px;
  background: oklch(1 0 0);
  box-shadow: 0 2px 8px oklch(0.4 0 0 / 0.12);
}

.qr-logo img {
  display: block;
  width: 38px;
  height: 38px;
  border-radius: 9px;
}

.scan-label {
  margin: 17px 0 24px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

@media (max-height: 720px) {
  .app-icon-halo { margin-top: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  .download-button { transition: none; }
}
