:root {
  color: #20211f;
  background: #f3f1ec;
  font-family: "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html, body { min-width: 320px; min-height: 100%; margin: 0; }
button { font: inherit; }

.download-page {
  width: min(100%, 480px);
  min-height: 100vh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  background: #fbfaf7;
  box-shadow: 0 0 32px #18231a12;
}

.page-header {
  height: 76px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #ffffff1c;
  background: #293f31;
}

.brand { display: flex; align-items: center; gap: 11px; }
.brand > div { display: grid; gap: 3px; }
.brand strong { color: #fff; font-size: 15px; line-height: 1; }
.brand small { color: #ffffff8f; font-size: 9px; }

.app-logo {
  width: 42px;
  height: 42px;
  border-radius: 15px;
  object-fit: cover;
}

.official-mark {
  padding: 6px 10px;
  border-radius: 13px;
  color: #293f31;
  background: #d9f072;
  font-size: 9px;
}

.download-content {
  position: relative;
  flex: 1;
  min-height: 710px;
  padding: 0 24px;
  overflow: hidden;
}

.download-content::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 245px;
  background: #293f31;
}

.download-heading {
  position: relative;
  z-index: 1;
  padding-top: 48px;
  text-align: center;
}

.download-heading > span {
  color: #d9f072;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .16em;
}

.download-heading h1 {
  margin: 10px 0 0;
  color: #fff;
  font-size: 28px;
  letter-spacing: -.04em;
}

.download-heading p {
  margin: 10px 0 0;
  color: #ffffffb3;
  font-size: 11px;
}

.download-heading small {
  display: block;
  margin-top: 8px;
  color: #ffffff73;
  font-size: 9px;
}

.download-area {
  position: absolute;
  z-index: 1;
  right: 24px;
  bottom: 13vh;
  left: 24px;
}

.qr-section { margin-bottom: 19px; text-align: center; }

.qr-card {
  width: 178px;
  height: 178px;
  margin: 0 auto;
  padding: 10px;
  border: 5px solid #fff;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 12px 32px #293f3121;
}

.qr-card img,
.qr-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 14px;
}

.qr-card img { display: block; object-fit: contain; }

.qr-placeholder {
  display: grid;
  place-content: center;
  gap: 8px;
  color: #49604f;
  background: #edf3dc;
}

.qr-placeholder[hidden],
.qr-card img[hidden] { display: none; }
.qr-label { font-size: 22px; font-weight: 700; letter-spacing: .1em; }
.qr-placeholder small { color: #758278; font-size: 9px; }
.qr-section p { margin: 9px 0 0; color: #85877f; font-size: 10px; }

.download-button {
  width: 100%;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 17px;
  color: #293f31;
  background: #d9f072;
  box-shadow: 0 9px 20px #879b382d;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}

.download-button:active:not(:disabled) { background: #cde662; transform: translateY(1px); }
.download-button:disabled { color: #607047; background: #e5ecc5; box-shadow: none; cursor: default; }
.download-icon { font-size: 22px; line-height: 1; }

.download-message {
  margin: 9px 0 0;
  padding: 9px 11px;
  border-radius: 12px;
  color: #685f42;
  background: #f6edc9;
  text-align: center;
  font-size: 10px;
}

.security-note {
  margin-top: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: #718075;
  font-size: 9px;
}

.download-page footer {
  padding: 14px;
  color: #a0a29c;
  text-align: center;
  font-size: 8px;
}

@media (max-height: 760px) {
  .download-content { min-height: 610px; }
  .download-heading { padding-top: 28px; }
  .download-area { bottom: 8vh; }
  .qr-card { width: 148px; height: 148px; }
  .qr-section { margin-bottom: 13px; }
}
