:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #145b47;
  background: #fff;
  -webkit-text-size-adjust: 100%;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-width: 280px;
  min-height: 100vh;
  min-height: 100svh;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}

.header {
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand { font-size: 22px; font-weight: 700; letter-spacing: .02em; }
.edition { border: 1px solid #145b47; border-radius: 22px; padding: 5px 13px; font-size: 14px; font-weight: 500; }

.download {
  width: min(100% - 48px, 360px);
  margin: clamp(58px, 10svh, 112px) auto 56px;
  text-align: center;
}

.app-icon {
  display: block;
  width: 160px;
  height: 160px;
  margin: 0 auto;
  border-radius: 36px;
  box-shadow: 0 14px 40px -12px #8e764c35;
}

h1 { margin: 34px 0 0; font-size: 27px; line-height: 1.4; font-weight: 650; letter-spacing: .01em; }
.platform { margin: 10px 0 0; color: #858585; font-size: 16px; line-height: 1.5; }

.download-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 58px;
  margin-top: 56px;
  padding: 14px 20px;
  border-radius: 14px;
  color: #fff;
  background: #145b47;
  text-decoration: none;
  font-size: 20px;
  font-weight: 500;
  -webkit-tap-highlight-color: transparent;
}

.download-button:hover { background: #104c3b; }
.download-button:active { background: #0d4032; }
.download-button:focus-visible { outline: 3px solid #c4a55a; outline-offset: 4px; }
.tip { margin: 20px -8px 0; color: #757575; font-size: 14px; line-height: 1.7; text-wrap: balance; }

@media (max-width: 350px) {
  .header { padding: 20px; }
  .download { width: calc(100% - 40px); }
  h1 { font-size: 24px; }
  .tip { margin-inline: 0; }
}

@media (max-height: 650px) {
  .download { margin-top: 28px; margin-bottom: 32px; }
  .app-icon { width: 128px; height: 128px; border-radius: 29px; }
  h1 { margin-top: 24px; }
  .download-button { margin-top: 32px; }
}
