:root {
  --bg: #0b1117;
  --panel: #111923;
  --card: #121b26;
  --card-strong: #0b1222;
  --stroke: #26364a;
  --stroke-strong: #334866;
  --text: #ffffff;
  --muted: #9fb6d9;
  --blue: #2563eb;
  --green: #22c55e;
  --green-dark: #064e2d;
  --cyan: #7dd3fc;
  --orange: #fbbf24;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 12%, rgba(37, 99, 235, 0.18), transparent 26rem),
    linear-gradient(145deg, #0b1117 0%, #0e1620 48%, #0b1117 100%);
  font-family: "Microsoft YaHei", "Segoe UI", Arial, sans-serif;
}

button,
a {
  font: inherit;
}

.page-shell {
  width: min(1400px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 48px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 0 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: inherit;
  text-decoration: none;
}

.brand-logo {
  width: 58px;
  height: 58px;
  border-radius: 8px;
  background: #0b1827;
  box-shadow: 0 0 0 1px rgba(125, 211, 252, 0.08);
}

.brand strong {
  display: block;
  font-size: 30px;
  line-height: 1.1;
  font-weight: 800;
}

.brand small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 16px;
}

.status-pill {
  min-width: 138px;
  padding: 12px 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--cyan);
  text-align: center;
  font-size: 16px;
  font-weight: 800;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(520px, 1.1fr);
  gap: 28px;
  align-items: center;
  min-width: 0;
  min-height: 520px;
}

.hero-copy {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--cyan);
  font-weight: 800;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 20px;
  font-size: clamp(40px, 6vw, 76px);
  line-height: 1.06;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.lead {
  max-width: 680px;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: 21px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.primary-button,
.secondary-button,
.download-button {
  border: 1px solid var(--stroke-strong);
  border-radius: 8px;
  color: var(--text);
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.primary-button,
.secondary-button {
  display: grid;
  gap: 5px;
  min-width: 220px;
  padding: 18px 24px;
  text-align: left;
}

.primary-button {
  background: #1f6f46;
  border-color: rgba(34, 197, 94, 0.55);
}

.secondary-button {
  background: #203149;
}

.is-mobile-browser .hero-actions [data-download="android"] {
  order: 1;
  background: #1f6f46;
  border-color: rgba(34, 197, 94, 0.55);
}

.is-mobile-browser .hero-actions [data-download="windows"] {
  order: 2;
  background: #203149;
  border-color: var(--stroke-strong);
}

.download-button {
  width: 100%;
  margin-top: 24px;
  padding: 15px 18px;
  background: #23354d;
  font-weight: 800;
}

.primary-button:hover,
.secondary-button:hover,
.download-button:hover {
  transform: translateY(-2px);
  border-color: var(--cyan);
}

.primary-button span,
.secondary-button span {
  font-weight: 900;
  font-size: 18px;
}

.primary-button small,
.secondary-button small {
  color: #d4e5ff;
}

.product-showcase {
  position: relative;
  min-height: 560px;
  padding: 34px 22px 30px;
  overflow: hidden;
  border: 1px solid var(--stroke);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(15, 26, 38, 0.98), rgba(10, 17, 26, 0.98)),
    var(--card);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.28);
}

.desktop-frame,
.mobile-frame {
  border: 1px solid var(--stroke-strong);
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.36);
}

.desktop-frame {
  position: relative;
  width: min(780px, 100%);
  margin: 10px auto 0;
  overflow: hidden;
  border-radius: 10px;
  background: #0a111a;
  z-index: 1;
}

.mock-titlebar {
  display: grid;
  grid-template-columns: 10px 10px 10px 1fr;
  gap: 8px;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  background: #18253a;
  color: #d4e5ff;
  font-size: 13px;
}

.mock-titlebar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #5f718b;
}

.mock-titlebar span:first-child {
  background: #ef4444;
}

.mock-titlebar span:nth-child(2) {
  background: #fbbf24;
}

.mock-titlebar span:nth-child(3) {
  background: var(--green);
}

.mock-titlebar strong {
  justify-self: center;
  margin-right: 54px;
  font-weight: 800;
}

.desktop-screen {
  aspect-ratio: 1.5;
  overflow: hidden;
}

.desktop-screen img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  transform: translateY(-4.6%);
}

.mobile-frame {
  --phone-status-crop: 4.3%;
  position: absolute;
  left: 20px;
  bottom: 6px;
  width: min(212px, 34%);
  aspect-ratio: 9 / 19.1;
  padding: 4px;
  overflow: visible;
  border-radius: 22px;
  background: #050a10;
  z-index: 2;
}

.mobile-screen {
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 18px;
  background: #050a10;
}

.mobile-screen img {
  display: block;
  width: 100%;
  height: calc(100% / (1 - 0.043));
  object-fit: cover;
  object-position: center top;
  transform: translateY(calc(-1 * var(--phone-status-crop)));
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 20;
  max-width: min(520px, calc(100% - 32px));
  padding: 14px 18px;
  border: 1px solid var(--stroke-strong);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.96);
  color: var(--text);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.36);
  opacity: 0;
  transform: translate(-50%, 16px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.loading {
  opacity: 0.7;
}

@media (max-width: 860px) {
  .page-shell {
    width: 100%;
    max-width: 100vw;
    padding: 18px 14px 36px;
    overflow: hidden;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    position: relative;
    width: 100%;
    min-height: 58px;
    padding-bottom: 26px;
  }

  .status-pill {
    flex: 0 0 auto;
    min-width: 0;
    max-width: min(138px, 42vw);
    width: auto;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .hero {
    gap: 34px;
    min-height: auto;
    align-items: stretch;
  }

  .hero-copy {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  .brand {
    flex: 1 1 auto;
    min-width: 0;
  }

  .brand span {
    min-width: 0;
  }

  .brand-logo {
    width: 52px;
    height: 52px;
  }

  .brand strong {
    font-size: 27px;
  }

  .brand small {
    font-size: 15px;
  }

  .eyebrow {
    margin-bottom: 12px;
  }

  h1 {
    max-width: 100%;
    margin-bottom: 16px;
    font-size: clamp(38px, 10vw, 56px);
  }

  .lead {
    max-width: 100%;
    margin-bottom: 28px;
    font-size: 18px;
    line-height: 1.65;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    max-width: 100%;
    gap: 12px;
  }

  .primary-button,
  .secondary-button {
    min-width: 0;
    width: auto;
    padding: 16px 18px;
  }

  .product-showcase {
    min-height: clamp(540px, 132vw, 660px);
    padding: 18px;
  }

  .desktop-frame {
    width: 100%;
    transform: none;
  }

  .mobile-frame {
    left: 14px;
    bottom: 8px;
    width: min(184px, 37%);
    padding: 4px;
    border-radius: 22px;
  }

}

@media (max-width: 520px) {
  .page-shell {
    width: 100%;
    padding: 16px 12px 36px;
  }

  .topbar {
    width: min(100%, 400px);
    padding-bottom: 22px;
  }

  .brand {
    gap: 12px;
    min-width: 0;
  }

  .brand-logo {
    width: 48px;
    height: 48px;
  }

  .brand strong {
    font-size: clamp(20px, 5.7vw, 24px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .status-pill {
    padding: 10px clamp(10px, 3vw, 14px);
    font-size: clamp(13px, 3.5vw, 15px);
  }

  h1 {
    max-width: 9em;
    font-size: clamp(32px, 11vw, 40px);
    line-height: 1.12;
    line-break: anywhere;
    word-break: break-all;
  }

  .lead {
    font-size: 17px;
  }

  .hero-actions {
    width: min(100%, 400px);
    max-width: min(100%, 400px);
    gap: clamp(8px, 2.5vw, 12px);
  }

  .primary-button,
  .secondary-button {
    min-width: 0;
    padding: clamp(12px, 3.4vw, 14px) clamp(8px, 2.8vw, 12px);
  }

  .primary-button span,
  .secondary-button span {
    font-size: clamp(13px, 3.8vw, 16px);
    white-space: nowrap;
  }

  .primary-button small,
  .secondary-button small {
    font-size: 12px;
  }

  .product-showcase {
    min-height: 540px;
    padding: 14px;
  }

  .mock-titlebar {
    min-height: 30px;
    font-size: 12px;
  }

  .mock-titlebar strong {
    margin-right: 44px;
  }

  .mobile-frame {
    left: 10px;
    bottom: 8px;
    width: min(152px, 39%);
    padding: 3px;
    border-radius: 20px;
  }

  .mobile-screen {
    border-radius: 17px;
  }

}

@media (max-width: 380px) {
  .topbar,
  .hero-actions {
    width: min(100%, 312px);
    max-width: min(100%, 312px);
  }

  .status-pill {
    max-width: 112px;
    padding: 8px 10px;
    font-size: 12px;
  }

  .product-showcase {
    min-height: 500px;
  }

  .hero-actions {
    gap: 8px;
  }

  .primary-button,
  .secondary-button {
    padding: 13px 10px;
  }

  .primary-button span,
  .secondary-button span {
    font-size: 14px;
  }

  .primary-button small,
  .secondary-button small {
    font-size: 11px;
  }

  .mobile-frame {
    width: 138px;
  }

}
