:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #202738;
  background: #f4f6fb;
  font-synthesis: none;
  -webkit-text-size-adjust: 100%;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: max(28px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) max(28px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
}

.install-card {
  width: min(100%, 760px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 228px;
  gap: 40px;
  padding: 44px;
  background: #fff;
  border: 1px solid #e4e9f2;
  border-radius: 28px;
  box-shadow: 0 16px 48px rgb(30 47 80 / 5%);
}

.app-header { display: flex; align-items: center; gap: 18px; }
.app-icon { display: block; flex: 0 0 auto; border-radius: 19px; }
.eyebrow { margin: 0 0 4px; color: #69738a; font-size: 12px; font-weight: 600; letter-spacing: .06em; }
h1 { margin: 0; font-size: 28px; font-weight: 700; letter-spacing: -.7px; line-height: 1.25; }
.version { margin: 6px 0 0; color: #69738a; font-size: 13px; }
.version span, .compatibility span { margin: 0 4px; }
.compatibility { margin: 28px 0 10px; font-size: 14px; color: #505c73; }
.device-note { display: inline-block; margin: 0 0 24px; padding: 6px 10px; border-radius: 7px; background: #f1f4fb; color: #4f5f7b; font-size: 12px; line-height: 1.5; }

.install-button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 12px 20px;
  border-radius: 12px;
  color: #fff;
  background: #365bd9;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  -webkit-tap-highlight-color: transparent;
}

.install-button:hover { background: #2e4fc2; }
.install-button:active { background: #2846ad; }
a:focus-visible { outline: 3px solid #91a8f2; outline-offset: 4px; }
.instructions { margin: 21px 0 13px; padding-left: 20px; color: #69738a; font-size: 13px; line-height: 1.85; }
.instructions li + li { margin-top: 3px; }
.download-link { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; color: #3657bb; text-underline-offset: 4px; font-size: 13px; }
.download-link:hover { color: #233c8b; }

.qr-section { margin: 0; padding-left: 28px; border-left: 1px solid #edf0f6; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.qr-frame { padding: 10px; border: 1px solid #e4e9f2; border-radius: 16px; background: #fff; }
.qr-frame img { display: block; width: 176px; height: 176px; }
figcaption { margin-top: 15px; color: #69738a; font-size: 12px; line-height: 1.6; text-align: center; white-space: nowrap; }

@media (max-width: 640px) {
  .install-card { max-width: 420px; grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 30px 26px; border-radius: 24px; }
  .qr-section { padding: 26px 0 0; border-left: 0; border-top: 1px solid #edf0f6; }
  .qr-frame img { width: 152px; height: 152px; }
  .compatibility { margin-top: 25px; }
}

@media (max-width: 360px) {
  body { padding-left: 14px; padding-right: 14px; }
  .install-card { padding: 26px 20px; }
  .app-header { gap: 14px; }
  .app-icon { width: 64px; height: 64px; border-radius: 16px; }
  h1 { font-size: 26px; }
}
