:root {
  color-scheme: light;
  --ink: #142235;
  --muted: #626d7d;
  --line: #dce3ef;
  --blue: #2563eb;
  --blue-dark: #1749bd;
  --surface: #f7f9ff;
  --white: #ffffff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
}
button, a { font: inherit; }
.shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 68px;
  background: rgba(247, 249, 255, 0.94);
  border-bottom: 1px solid rgba(220, 227, 239, 0.75);
  backdrop-filter: blur(14px);
}
.topbar-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.brand { color: var(--blue); text-decoration: none; font-size: 25px; font-weight: 800; }
.top-download {
  color: var(--white);
  background: var(--blue);
  text-decoration: none;
  padding: 10px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
}
.hero {
  min-height: calc(100vh - 132px);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  gap: 64px;
  align-items: center;
  padding-top: 60px;
  padding-bottom: 72px;
}
.eyebrow { color: var(--blue); font-size: 14px; font-weight: 700; display: flex; gap: 8px; align-items: center; }
.eyebrow span { width: 8px; height: 8px; background: #20bd74; border-radius: 50%; }
h1 { margin: 20px 0 18px; font-size: clamp(42px, 5.2vw, 68px); line-height: 1.08; letter-spacing: 0; }
h1 strong { color: var(--blue); }
.lead { color: var(--muted); font-size: 18px; line-height: 1.7; margin: 0 0 30px; }
.features { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 30px; }
.feature { padding: 15px 16px; border: 1px solid var(--line); background: var(--white); border-radius: 7px; }
.feature b, .feature span { display: block; }
.feature b { font-size: 15px; margin-bottom: 5px; }
.feature span { color: var(--muted); font-size: 12px; line-height: 1.5; }
.actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; scroll-margin-top: 90px; }
.action {
  min-width: 0;
  min-height: 70px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--white);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease;
}
.action:hover:not(:disabled) { transform: translateY(-2px); border-color: #9cb7f7; }
.action-primary { background: var(--ink); color: var(--white); border-color: var(--ink); }
.action:disabled { cursor: not-allowed; opacity: 0.48; }
.action-icon { font-size: 11px; font-weight: 800; min-width: 34px; }
.action span:last-child { text-align: left; min-width: 0; }
.action small, .action b { display: block; white-space: nowrap; letter-spacing: 0; }
.action small { font-size: 8px; opacity: 0.66; margin-bottom: 4px; }
.action b { font-size: 13px; }
.preview { display: flex; justify-content: center; }
.phone {
  width: min(326px, 80vw);
  aspect-ratio: 9 / 19.2;
  overflow: hidden;
  border: 11px solid var(--ink);
  border-radius: 42px;
  background: var(--white);
  box-shadow: 0 26px 70px rgba(20, 34, 53, 0.2);
}
.phone img { width: 100%; height: 100%; object-fit: cover; display: block; }
footer { border-top: 1px solid var(--line); background: var(--white); }
.footer-inner { min-height: 64px; display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 13px; }
.footer-inner b { color: var(--blue); font-size: 18px; }
dialog { border: 0; padding: 0; border-radius: 8px; width: min(440px, calc(100% - 32px)); box-shadow: 0 24px 80px rgba(0,0,0,.25); }
dialog::backdrop { background: rgba(15, 24, 38, 0.58); }
.dialog-panel { padding: 24px; }
.dialog-head { display: flex; justify-content: space-between; gap: 20px; }
.dialog-head small { color: var(--blue); font-weight: 800; }
.dialog-head h2 { margin: 4px 0 0; font-size: 22px; }
.dialog-panel > p { color: var(--muted); font-size: 14px; }
.close { border: 0; background: transparent; font-size: 30px; color: var(--muted); cursor: pointer; }
.apk-links { display: grid; gap: 10px; margin-top: 18px; }
.apk-link { display: flex; justify-content: space-between; color: var(--ink); text-decoration: none; padding: 15px; border: 1px solid var(--line); border-radius: 6px; font-weight: 700; }
.apk-link span { color: var(--blue); }

@media (max-width: 760px) {
  .shell { width: min(560px, calc(100% - 28px)); }
  .hero { grid-template-columns: 1fr; gap: 36px; padding-top: 34px; padding-bottom: 48px; }
  .intro { text-align: center; }
  .eyebrow { justify-content: center; }
  h1 { margin-top: 14px; font-size: clamp(34px, 10vw, 48px); }
  .lead { font-size: 15px; }
  .features { text-align: left; }
  .actions { grid-template-columns: 1fr 1fr; }
  .action-primary { grid-column: 1 / -1; }
  .preview { order: -1; }
  .phone { width: 220px; border-width: 8px; border-radius: 32px; }
  .footer-inner { flex-direction: column; justify-content: center; gap: 5px; padding: 15px 0; }
}

@media (max-width: 420px) {
  .features { grid-template-columns: 1fr; }
  .feature { padding: 12px 14px; }
  .actions { grid-template-columns: 1fr; }
  .action-primary { grid-column: auto; }
}
