:root {
  --page: #ffffff;
  --surface: #ffffff;
  --text: #10264a;
  --muted: #758095;
  --subtle: #9098a7;
  --accent: #007981;
  --accent-hover: #006b72;
  --accent-active: #005e64;
  --focus: #62cbd0;
  --border: #edf0f3;
  --radius-card: 24px;
  --radius-image: 18px;
  --radius-button: 14px;
  --shadow: 0 18px 55px rgba(16, 38, 74, 0.1), 0 3px 12px rgba(16, 38, 74, 0.05);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--page);
  -webkit-text-size-adjust: 100%;
}

body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.download-page {
  width: min(100%, 560px);
  min-height: 100svh;
  margin: 0 auto;
  padding: max(28px, env(safe-area-inset-top)) 18px max(28px, env(safe-area-inset-bottom));
  display: grid;
  align-content: center;
  gap: 30px;
}

.download-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 18px;
}

.cover-frame {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius-image);
  background: #e7f4f1;
}

.cover {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.content {
  padding: 22px 2px 12px;
  text-align: center;
}

.download-button {
  min-height: 60px;
  width: 100%;
  border-radius: var(--radius-button);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--accent);
  color: #ffffff;
  text-decoration: none;
  font-size: 19px;
  font-weight: 650;
  line-height: 1;
  letter-spacing: 0.01em;
  box-shadow: 0 8px 22px rgba(0, 121, 129, 0.2);
  transition: transform 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.download-button svg {
  width: 25px;
  height: 25px;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.download-button:hover {
  background: var(--accent-hover);
  box-shadow: 0 10px 26px rgba(0, 121, 129, 0.25);
}

.download-button:active,
.download-button.is-opening {
  transform: translateY(1px) scale(0.995);
  background: var(--accent-active);
  box-shadow: 0 4px 14px rgba(0, 121, 129, 0.2);
}

.download-button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.helper {
  min-height: 1.5em;
  margin: 18px 0 0;
  color: var(--subtle);
  font-size: 14px;
  line-height: 1.5;
}

.platform-note {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: var(--subtle);
  font-size: 15px;
  line-height: 1.5;
}

.platform-note svg {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 380px) {
  .download-page {
    padding-inline: 14px;
    gap: 24px;
  }

  .download-card {
    padding: 14px;
    border-radius: 21px;
  }

  .cover-frame {
    border-radius: 15px;
  }

  .content {
    padding-top: 24px;
  }

  .summary {
    margin-bottom: 22px;
  }
}

@media (min-width: 720px) {
  .download-page {
    padding-block: 48px;
  }

  .download-card {
    padding: 22px;
  }

  .content {
    padding: 34px 12px 14px;
  }
}

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