:root {
  --font-size-display-lg: 32px;
  --font-size-display-md: 24px;
  --font-size-title-lg: 20px;
  --font-size-title-md: 18px;
  --font-size-title-sm: 16px;
  --font-size-body-md: 14px;
  --font-size-body-sm: 13px;
  --font-size-caption: 12px;
  --ink: #5a5a5a;
  --body: #666666;
  --muted: #767676;
  --line: rgba(90, 90, 90, 0.14);
  --paper: #fbfafb;
  --paper-soft: #f4f0f5;
  --white: #ffffff;
  --purple: #772a91;
  --purple-deep: #632378;
  --purple-soft: #eee4f1;
  --shadow: 0 30px 90px rgba(78, 38, 90, 0.14);
  color: var(--ink);
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "PingFang SC",
    "Noto Sans SC",
    "Microsoft YaHei",
    sans-serif;
  background: var(--paper);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(119, 42, 145, 0.28);
  outline-offset: 4px;
}

.download-header {
  position: relative;
  z-index: 20;
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 14px clamp(20px, 5vw, 72px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.62);
  background: rgba(251, 250, 251, 0.84);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: max-content;
}

.brand-logo {
  width: 238px;
  height: 58px;
  object-fit: contain;
  object-position: left center;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: var(--font-size-title-md);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: var(--font-size-caption);
  font-weight: 400;
}

.download-header nav,
.download-footer nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--body);
  font-size: var(--font-size-body-md);
}

.download-header nav a {
  transition: color 180ms ease;
}

.download-header nav a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.home-link {
  padding: 10px 17px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
}

.download-hero {
  position: relative;
  display: grid;
  min-height: calc(100vh - 76px);
  min-height: calc(100svh - 76px);
  grid-template-columns: minmax(0, 0.92fr) minmax(440px, 1.08fr);
  align-items: center;
  gap: clamp(48px, 7vw, 112px);
  overflow: hidden;
  padding: clamp(68px, 8vw, 116px) clamp(20px, 6vw, 92px);
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.95) 0%, rgba(250, 247, 250, 0.94) 48%, rgba(239, 229, 242, 0.9) 100%),
    radial-gradient(circle at 78% 44%, rgba(119, 42, 145, 0.16), transparent 34%);
  isolation: isolate;
}

.download-hero::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: radial-gradient(rgba(119, 42, 145, 0.13) 0.8px, transparent 0.8px);
  background-size: 22px 22px;
  content: "";
  mask-image: linear-gradient(90deg, transparent 8%, black 52%, black 94%);
  opacity: 0.45;
}

.ambient {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(2px);
  pointer-events: none;
}

.ambient-one {
  top: 12%;
  right: 4%;
  width: min(38vw, 560px);
  height: min(38vw, 560px);
  background: radial-gradient(circle, rgba(119, 42, 145, 0.16), transparent 68%);
}

.ambient-two {
  right: 34%;
  bottom: -18%;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(184, 135, 61, 0.11), transparent 68%);
}

.hero-copy {
  position: relative;
  z-index: 3;
  max-width: 650px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  color: var(--body);
  font-size: var(--font-size-body-md);
  font-weight: 600;
  letter-spacing: 0.08em;
}

.eyebrow span {
  width: 24px;
  height: 1px;
  background: currentColor;
}

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

h1 {
  margin-bottom: 26px;
  font-size: var(--font-size-display-lg);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

h2 {
  margin-bottom: 18px;
  font-size: var(--font-size-display-md);
  font-weight: 600;
  line-height: 1.16;
  letter-spacing: -0.035em;
}

h3 {
  margin-bottom: 12px;
  font-size: var(--font-size-title-lg);
  font-weight: 600;
}

p {
  color: var(--body);
  font-size: var(--font-size-title-sm);
  line-height: 1.8;
}

.hero-description {
  max-width: 590px;
  margin-bottom: 34px;
  font-size: var(--font-size-title-md);
  line-height: 1.75;
}

.store-actions {
  display: none;
  flex-wrap: wrap;
  gap: 14px;
}

.store-button {
  display: grid;
  min-width: 238px;
  min-height: 76px;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 13px;
  padding: 13px 15px;
  border: 1px solid rgba(90, 90, 90, 0.12);
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(61, 42, 66, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.store-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 38px rgba(61, 42, 66, 0.13);
}

.android-button {
  border-color: transparent;
  background: var(--purple);
  color: var(--white);
}

.ios-button {
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
}

.store-button[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.56;
  transform: none;
  box-shadow: none;
}

.store-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.14);
}

.ios-button .store-icon {
  background: var(--paper-soft);
}

.store-icon svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
}

.store-button small,
.store-button strong {
  display: block;
}

.store-button small {
  margin-bottom: 3px;
  font-size: var(--font-size-caption);
  font-weight: 400;
  opacity: 0.76;
}

.store-button strong {
  font-size: var(--font-size-title-sm);
  font-weight: 600;
}

.version-row {
  display: none;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 17px;
  color: var(--muted);
  font-size: var(--font-size-body-sm);
}

.download-notice {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: var(--font-size-body-sm);
  line-height: 1.6;
}

.hero-visual {
  position: relative;
  min-height: 620px;
  perspective: 1400px;
}

.phone {
  position: absolute;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 46px;
  background: linear-gradient(145deg, #5f5c62, #27242a);
  box-shadow: var(--shadow);
}

.phone-front {
  top: 20px;
  left: 12%;
  z-index: 3;
  width: 282px;
  height: 576px;
  transform: rotateY(5deg) rotateZ(-3deg);
}

.phone-back {
  top: 70px;
  right: 2%;
  z-index: 2;
  width: 260px;
  height: 530px;
  opacity: 0.88;
  transform: rotateY(-12deg) rotateZ(7deg) scale(0.94);
}

.phone-screen {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: 37px;
}

.light-screen {
  padding: 48px 20px 24px;
  background: linear-gradient(180deg, #ffffff, #f5f1f6);
}

.purple-screen {
  padding: 52px 22px 24px;
  background: linear-gradient(160deg, #5d1c73, #a265b4);
  color: var(--white);
}

.phone-pill {
  position: absolute;
  top: 14px;
  left: 50%;
  width: 78px;
  height: 23px;
  border-radius: 999px;
  background: #423d43;
  transform: translateX(-50%);
}

.app-topbar {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: var(--font-size-body-md);
  font-weight: 600;
}

.app-topbar img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.app-banner {
  display: flex;
  height: 132px;
  flex-direction: column;
  justify-content: flex-end;
  margin: 22px 0 18px;
  padding: 18px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 75% 22%, rgba(255, 255, 255, 0.3), transparent 25%),
    linear-gradient(135deg, var(--purple), #b47ac2);
  color: var(--white);
  box-shadow: 0 16px 30px rgba(119, 42, 145, 0.2);
}

.app-banner span {
  margin-bottom: 5px;
  font-size: var(--font-size-caption);
  opacity: 0.76;
}

.app-banner strong {
  font-size: var(--font-size-title-md);
  font-weight: 600;
}

.app-shortcuts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.app-shortcuts i {
  height: 42px;
  border-radius: 13px;
  background: linear-gradient(145deg, #eee5f0, #ffffff);
  box-shadow: 0 8px 18px rgba(70, 55, 74, 0.08);
}

.app-card {
  position: relative;
  height: 108px;
  margin-bottom: 14px;
  padding: 16px 14px 16px 100px;
  border: 1px solid rgba(90, 90, 90, 0.08);
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 10px 24px rgba(70, 55, 74, 0.07);
}

.app-card span {
  position: absolute;
  top: 14px;
  bottom: 14px;
  left: 14px;
  width: 70px;
  border-radius: 13px;
  background: linear-gradient(135deg, #cab7cf, #79527f);
}

.app-card b {
  display: block;
  width: 92%;
  height: 8px;
  margin: 12px 0;
  border-radius: 99px;
  background: #ebe7ec;
}

.app-card b:last-child {
  width: 62%;
}

.app-card.compact {
  height: 82px;
}

.mini-brand {
  font-size: var(--font-size-caption);
  opacity: 0.72;
}

.mini-title {
  margin-top: 14px;
  font-size: var(--font-size-display-md);
  font-weight: 600;
}

.bid-ring {
  display: grid;
  width: 148px;
  height: 148px;
  place-content: center;
  margin: 54px auto 46px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 50%;
  box-shadow: 0 0 0 18px rgba(255, 255, 255, 0.05), 0 0 0 40px rgba(255, 255, 255, 0.025);
  text-align: center;
}

.bid-ring strong,
.bid-ring span {
  display: block;
}

.bid-ring strong {
  font-size: var(--font-size-display-lg);
  font-weight: 600;
}

.bid-ring span {
  margin-top: 2px;
  font-size: var(--font-size-caption);
  opacity: 0.7;
}

.bid-bars i {
  display: block;
  height: 8px;
  margin: 14px 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
}

.bid-bars i:nth-child(1) { width: 88%; }
.bid-bars i:nth-child(2) { width: 72%; }
.bid-bars i:nth-child(3) { width: 94%; }
.bid-bars i:nth-child(4) { width: 56%; }

.qr-card {
  position: absolute;
  top: 50%;
  right: 1%;
  z-index: 6;
  display: flex;
  width: 258px;
  align-items: center;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 64px rgba(60, 42, 65, 0.2);
  backdrop-filter: blur(16px);
  text-align: center;
  transform: translateY(-50%);
  transition: box-shadow 180ms ease, transform 180ms ease;
}

.qr-card:hover {
  box-shadow: 0 30px 72px rgba(60, 42, 65, 0.26);
  transform: translateY(calc(-50% - 4px));
}

.qr-card img {
  width: 218px;
  height: 218px;
  padding: 8px;
  border-radius: 6px;
  background: var(--white);
}

.qr-card small,
.qr-card strong {
  display: block;
}

.qr-card small {
  margin-top: 6px;
  color: var(--muted);
  font-size: var(--font-size-caption);
}

.qr-card strong {
  font-size: var(--font-size-title-sm);
  font-weight: 600;
}

.orbital-line {
  position: absolute;
  border: 1px solid rgba(119, 42, 145, 0.12);
  border-radius: 50%;
}

.line-one {
  inset: 4% -12% 2% 2%;
  transform: rotate(-12deg);
}

.line-two {
  inset: 14% -6% 12% 10%;
  transform: rotate(18deg);
}

.section-wrap {
  padding: clamp(82px, 9vw, 128px) clamp(20px, 7vw, 108px);
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 48px;
}

.section-heading h2 {
  max-width: 760px;
  margin-bottom: 0;
}

.feature-section {
  background: var(--white);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.feature-grid article {
  min-height: 260px;
  padding: 34px clamp(24px, 3vw, 44px) 28px 0;
}

.feature-grid article + article {
  padding-left: clamp(24px, 3vw, 44px);
  border-left: 1px solid var(--line);
}

.feature-number {
  display: block;
  margin-bottom: 52px;
  color: var(--muted);
  font-size: var(--font-size-body-sm);
  font-weight: 600;
}

.feature-grid p {
  max-width: 350px;
  margin-bottom: 0;
}

.guide-section {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(420px, 1fr);
  gap: clamp(50px, 9vw, 140px);
  background: var(--paper-soft);
}

.guide-copy p:last-child {
  max-width: 560px;
}

.guide-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.guide-list li {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
  padding: 25px 0;
  border-bottom: 1px solid var(--line);
}

.guide-list li:first-child {
  padding-top: 0;
}

.guide-list > li > span {
  color: var(--muted);
  font-size: var(--font-size-body-sm);
  font-weight: 600;
}

.guide-list strong {
  display: block;
  margin-bottom: 6px;
  font-size: var(--font-size-title-md);
  font-weight: 600;
}

.guide-list p {
  margin-bottom: 0;
  font-size: var(--font-size-body-md);
  line-height: 1.65;
}

.download-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 32px clamp(20px, 6vw, 92px);
  border-top: 1px solid var(--line);
  background: var(--white);
}

.download-footer strong,
.download-footer span {
  display: block;
}

.download-footer strong {
  margin-bottom: 6px;
  font-size: var(--font-size-title-sm);
  font-weight: 600;
}

.download-footer span,
.download-footer nav {
  color: var(--muted);
  font-size: var(--font-size-caption);
}

@media (max-width: 1080px) {
  .download-header nav a:not(.home-link) {
    display: none;
  }

  .download-hero {
    grid-template-columns: minmax(0, 0.9fr) minmax(390px, 1.1fr);
    gap: 32px;
  }

  .hero-visual {
    min-height: 560px;
    transform: scale(0.9);
    transform-origin: center;
  }

  .phone-front {
    left: 2%;
  }

  .feature-grid article {
    min-height: 240px;
  }
}

@media (max-width: 820px) {
  .download-header {
    min-height: 68px;
    padding-top: 11px;
    padding-bottom: 11px;
  }

  .brand-logo {
    width: clamp(168px, 48vw, 196px);
    height: 46px;
  }

  .brand strong {
    font-size: var(--font-size-title-sm);
  }

  .brand small {
    font-size: var(--font-size-caption);
  }

  .home-link {
    padding: 8px 13px;
  }

  .download-hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 42px;
    padding-top: 58px;
    padding-bottom: 40px;
  }

  .hero-copy {
    max-width: none;
  }

  h1 {
    font-size: var(--font-size-display-lg);
  }

  .store-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .store-button {
    min-width: 0;
  }

  .hero-visual {
    min-height: 520px;
    transform: none;
  }

  .phone-front {
    left: 10%;
  }

  .phone-back {
    right: 8%;
  }

  .qr-card {
    right: 1%;
  }

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

  .feature-grid article,
  .feature-grid article + article {
    min-height: auto;
    padding: 26px 0;
    border-left: 0;
    border-bottom: 1px solid var(--line);
  }

  .feature-number {
    margin-bottom: 28px;
  }

  .guide-section {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .download-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .download-footer nav {
    flex-wrap: wrap;
    gap: 12px 20px;
  }
}

@media (max-width: 560px) {
  .download-header nav {
    gap: 0;
  }

  .download-hero {
    padding-top: 46px;
  }

  .download-hero::before {
    opacity: 0.28;
  }

  .eyebrow {
    margin-bottom: 16px;
    font-size: var(--font-size-body-sm);
  }

  h1 {
    margin-bottom: 20px;
    font-size: var(--font-size-display-lg);
    line-height: 1.12;
  }

  .hero-description {
    margin-bottom: 28px;
    font-size: var(--font-size-title-sm);
  }

  .store-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .version-row {
    display: grid;
  }

  .store-button {
    width: 100%;
    min-height: 72px;
  }

  .version-row {
    display: grid;
  }

  .hero-visual {
    min-height: 430px;
    margin: 0 -20px;
  }

  .phone-front {
    top: 0;
    left: 50%;
    width: 218px;
    height: 446px;
    transform: translateX(-62%) rotateZ(-4deg);
  }

  .phone-back {
    top: 46px;
    right: 50%;
    width: 195px;
    height: 400px;
    transform: translateX(96%) rotateZ(7deg);
  }

  .phone {
    padding: 7px;
    border-radius: 36px;
  }

  .phone-screen {
    border-radius: 30px;
  }

  .light-screen {
    padding: 42px 15px 18px;
  }

  .purple-screen {
    padding: 44px 16px 18px;
  }

  .phone-pill {
    top: 11px;
    width: 60px;
    height: 18px;
  }

  .app-banner {
    height: 104px;
    margin: 16px 0 13px;
    padding: 14px;
    border-radius: 17px;
  }

  .app-shortcuts {
    gap: 8px;
    margin-bottom: 16px;
  }

  .app-shortcuts i {
    height: 32px;
    border-radius: 10px;
  }

  .app-card {
    height: 86px;
    padding-left: 78px;
  }

  .app-card span {
    width: 54px;
  }

  .mini-title {
    font-size: var(--font-size-title-lg);
  }

  .bid-ring {
    width: 112px;
    height: 112px;
    margin: 42px auto 34px;
  }

  .bid-ring strong {
    font-size: var(--font-size-display-lg);
  }

  .qr-card {
    display: none;
  }

  .section-wrap {
    padding-top: 72px;
    padding-bottom: 72px;
  }

  .section-heading {
    margin-bottom: 28px;
  }

  h2 {
    font-size: var(--font-size-display-md);
  }

  .guide-list li {
    grid-template-columns: 42px 1fr;
    gap: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
