:root {
  --bg: #fff8f5;
  --surface: rgba(255, 255, 255, .94);
  --ink: #271d23;
  --muted: #8b7380;
  --primary: #e94f7a;
  --primary-dark: #c92f5b;
  --primary-soft: #ffe0e9;
  --line: #f0dde4;
  --success: #31956f;
  --disabled: #a9a1a4;
  --shadow: 0 28px 90px rgba(54, 18, 34, .22);
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0;
  min-width: 320px;
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(33, 12, 24, .7) 0%, rgba(33, 12, 24, .42) 42%, rgba(33, 12, 24, .12) 74%),
    linear-gradient(180deg, rgba(49, 18, 34, .15), rgba(49, 18, 34, .55)),
    url("/downloads/background.jpg") center center / cover no-repeat;
  z-index: -2;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 80% 18%, rgba(255, 224, 233, .22), transparent 36%);
  z-index: -1;
  pointer-events: none;
}
.page-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 42px 24px;
}
.download-card {
  width: min(1060px, 100%);
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, .42);
  border-radius: 30px;
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  color: #fff;
  background: linear-gradient(135deg, #ef648d, #c92f5b);
  box-shadow: 0 10px 24px rgba(201, 47, 91, .26);
}
.brand > div { display: grid; gap: 2px; }
.brand strong { font-size: 17px; letter-spacing: .5px; }
.brand span { color: var(--muted); font-size: 11px; }
.hero { margin: 40px 0 28px; max-width: 650px; }
.eyebrow { color: var(--primary); font-size: 11px; font-weight: 900; letter-spacing: 2px; }
.hero h1 {
  margin: 8px 0 10px;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: -1.5px;
}
.hero p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.75; }
.platforms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.platform {
  display: flex;
  flex-direction: column;
  min-height: 285px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 14px 38px rgba(70, 35, 50, .08);
}
.platform-android { border-color: #f1b7c7; background: linear-gradient(145deg, #fff, #fff2f6); }
.platform-ios { background: #f4f1f2; }
.platform-head { display: flex; align-items: center; gap: 15px; }
.platform-icon { width: 62px; height: 62px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 18px; }
.platform-icon svg { width: 38px; height: 38px; }
.android-icon { color: #fff; background: linear-gradient(145deg, #43b87c, #26935d); }
.apple-icon { color: #fff; background: #343034; }
.platform h2 { margin: 5px 0 3px; font-size: 22px; }
.platform p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.platform-status { display: inline-block; padding: 4px 8px; border-radius: 999px; font-size: 10px; font-weight: 900; }
.available { color: var(--success); background: #e5f6ee; }
.unavailable { color: #81797d; background: #e9e5e6; }
.meta-row { display: flex; justify-content: space-between; gap: 12px; margin-top: 21px; color: var(--muted); font-size: 12px; }
.download-button {
  min-height: 52px;
  width: 100%;
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 18px;
  border: 0;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, #ed5b84, #c92f5b);
  box-shadow: 0 12px 28px rgba(201, 47, 91, .24);
  font: inherit;
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}
.download-button:hover { filter: brightness(1.03); transform: translateY(-1px); }
.download-button:disabled {
  color: #8e8589;
  background: #ded9db;
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}
.disabled { opacity: .78; }
.hint { margin-top: 11px; color: var(--muted); font-size: 11px; text-align: center; }
.footer { display: flex; justify-content: space-between; gap: 16px; margin-top: 24px; color: var(--muted); font-size: 10px; }
@media (max-width: 760px) {
  body::before {
    background:
      linear-gradient(180deg, rgba(35, 14, 25, .46) 0%, rgba(35, 14, 25, .62) 42%, rgba(35, 14, 25, .72) 100%),
      url("/downloads/background.jpg") 58% center / cover no-repeat;
  }
  .page-shell { padding: 16px 12px calc(16px + env(safe-area-inset-bottom)); place-items: center; }
  .download-card { padding: 20px 16px; border-radius: 24px; background: rgba(255, 255, 255, .97); }
  .hero { margin: 30px 0 22px; }
  .hero h1 { font-size: 36px; }
  .hero p { font-size: 14px; }
  .platforms { grid-template-columns: 1fr; }
  .platform { min-height: 250px; padding: 18px; }
  .platform-icon { width: 54px; height: 54px; border-radius: 16px; }
  .platform-icon svg { width: 33px; height: 33px; }
  .footer { flex-direction: column; align-items: flex-start; }
}
