:root {
  color-scheme: light;
  --paper: #faf8f4;
  --ink: #493c30;
  --muted: #786b5e;
  --button: #53624e;
  --button-hover: #43513f;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--paper);
  -webkit-text-size-adjust: 100%;
}
* { box-sizing: border-box; }
body { margin: 0; }
::selection { background: #dce3d4; color: var(--ink); }
main {
  min-height: calc(100vh - 64px);
  min-height: calc(100svh - 64px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: max(48px, env(safe-area-inset-top)) 24px max(64px, env(safe-area-inset-bottom));
  text-align: center;
}
.app-icon { display: block; width: 112px; height: 112px; }
h1 {
  margin: 26px 0 42px;
  font-family: "Songti SC", "STSong", "SimSun", serif;
  font-size: clamp(40px, 8vw, 48px);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: .12em;
  text-indent: .12em;
}
.download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  max-width: 100%;
  padding: 14px 32px;
  border-radius: 14px;
  background: var(--button);
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  text-decoration: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 160ms ease-out;
}
.download svg { flex: 0 0 auto; }
@media (hover: hover) { .download:hover { background: var(--button-hover); } }
.download:active { background: var(--button-hover); }
.download:focus-visible { outline: 3px solid var(--button); outline-offset: 5px; }
p { margin: 18px 0 0; font-size: 13px; line-height: 1.7; color: var(--muted); }
.requirements { margin-top: 4px; font-size: 12px; }
footer { padding: 20px 24px; text-align: center; font-size: 12px; line-height: 24px; }
footer a { color: var(--muted); text-decoration: none; text-underline-offset: 4px; }
footer a:hover { text-decoration: underline; }
footer a:focus-visible { outline: 2px solid var(--button); outline-offset: 4px; }
@media (max-width: 480px) {
  .app-icon { width: 96px; height: 96px; }
  h1 { margin-top: 22px; margin-bottom: 36px; }
}
@media (prefers-reduced-motion: reduce) { .download { transition: none; } }
