:root {
  color-scheme: light;
  --bg: #f7efe8;
  --surface: rgba(255, 255, 255, 0.84);
  --border: rgba(146, 108, 85, 0.16);
  --text: #231815;
  --muted: #7a6558;
  --accent: #d76944;
  --accent-strong: #bb4f2c;
  --shadow: 0 24px 60px rgba(67, 39, 26, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top right, rgba(255, 203, 160, 0.28), transparent 24%),
    linear-gradient(180deg, #fff8f3 0%, #f7efe8 100%);
  color: var(--text);
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    sans-serif;
}

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

button {
  font: inherit;
}

.page-shell {
  min-height: 100vh;
  padding: 24px;
}

.topbar {
  display: flex;
  width: min(1180px, 100%);
  margin: 0 auto 20px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.brand-mark {
  color: var(--accent-strong);
  font-size: 15px;
  font-weight: 700;
}

.brand-copy {
  font-size: 30px;
  font-weight: 800;
}

.topnav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.nav-link {
  padding: 10px 16px;
  border: 1px solid rgba(214, 155, 120, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  backdrop-filter: blur(12px);
}

.nav-link.active {
  background: rgba(215, 105, 68, 0.12);
  color: var(--accent-strong);
  border-color: rgba(215, 105, 68, 0.24);
}

.main-layout {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.hero-panel {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.56);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.eyebrow {
  margin: 0;
  color: var(--accent-strong);
  font-size: 14px;
  font-weight: 700;
}

.hero-title {
  margin: 0;
  font-size: 48px;
  line-height: 1.08;
}

.hero-desc {
  margin: 0;
  max-width: 760px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

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

.primary-action,
.secondary-action {
  display: inline-flex;
  min-width: 176px;
  min-height: 50px;
  padding: 0 18px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.primary-action {
  border: 1px solid var(--accent-strong);
  background: linear-gradient(135deg, #df7a52 0%, #cf603b 100%);
  color: #fff9f6;
  box-shadow: 0 14px 28px rgba(208, 96, 59, 0.22);
}

.secondary-action {
  border: 1px solid rgba(146, 108, 85, 0.2);
  background: rgba(255, 255, 255, 0.84);
  color: var(--text);
}

.merchant-entry {
  display: flex;
  padding: 18px 20px;
  flex-direction: column;
  gap: 8px;
  border: 1px solid rgba(146, 108, 85, 0.14);
  border-radius: 20px;
  background: rgba(255, 250, 246, 0.76);
}

.merchant-entry-label {
  font-size: 17px;
  font-weight: 700;
}

.merchant-entry-copy {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.promo-card,
.download-actions-panel,
.qr-panel {
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.74);
}

.promo-card {
  position: relative;
  aspect-ratio: 1672 / 941;
  min-height: 0;
  box-shadow: 0 20px 44px rgba(63, 33, 17, 0.12);
  background:
    radial-gradient(circle at top right, rgba(255, 223, 198, 0.4), transparent 28%),
    rgba(255, 248, 242, 0.88);
}

.promo-card::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgba(255, 248, 242, 0.04), rgba(35, 24, 21, 0.08));
  pointer-events: none;
}

.promo-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.promo-dots {
  display: flex;
  position: absolute;
  right: 16px;
  bottom: 16px;
  gap: 8px;
  z-index: 1;
}

.promo-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.52);
  padding: 0;
}

.promo-dot.active {
  background: #ffffff;
  box-shadow: 0 0 0 2px rgba(35, 24, 21, 0.12);
}

.download-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
  align-items: stretch;
}

.download-actions-panel {
  display: flex;
  padding: 24px;
  flex-direction: column;
  gap: 18px;
  justify-content: center;
}

.download-app-head {
  display: flex;
  align-items: center;
  gap: 16px;
}

.qr-panel {
  display: flex;
  padding: 22px;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.app-icon {
  width: 82px;
  height: 82px;
  border-radius: 22px;
  object-fit: cover;
  box-shadow: 0 12px 24px rgba(67, 39, 26, 0.18);
}

.qr-copy-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  text-align: center;
}

.qr-copy-block strong {
  font-size: 20px;
}

.qr-copy-block span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.qr-code-image {
  display: block;
  width: 238px;
  height: 238px;
  padding: 12px;
  border-radius: 20px;
  background: #ffffff;
  object-fit: contain;
}

.qr-copy {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
  text-align: center;
}

@media (max-width: 980px) {
  .download-section {
    grid-template-columns: 1fr;
  }

  .hero-title {
    font-size: 38px;
  }

  .promo-card {
    aspect-ratio: 1672 / 941;
  }
}

@media (max-width: 640px) {
  .page-shell {
    padding: 16px;
  }

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

  .brand-copy {
    font-size: 24px;
  }

  .hero-panel {
    padding: 20px;
    gap: 20px;
    border-radius: 24px;
  }

  .hero-copy {
    gap: 18px;
  }

  .hero-title {
    font-size: 30px;
  }

  .hero-desc {
    font-size: 15px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .primary-action,
  .secondary-action {
    width: 100%;
  }

  .download-actions-panel,
  .qr-panel {
    padding: 20px;
  }

  .promo-card {
    aspect-ratio: 1672 / 941;
  }

  .app-icon {
    width: 72px;
    height: 72px;
  }

  .qr-code-image {
    width: min(238px, 100%);
    height: auto;
    aspect-ratio: 1;
  }
}
