.appdl-page {
  --appdl-red: #d90429;
  --appdl-red-dark: #af0421;
  --appdl-ink: #291716;
  --appdl-muted: #6f5553;
  --appdl-line: #e7bcba;
  --appdl-pink: #fff0ef;
  min-height: 100vh;
  overflow-x: hidden;
  background: #fff8f7;
  color: var(--appdl-ink);
  font-family: "Hanken Grotesk", "Microsoft YaHei", Arial, sans-serif;
}

.appdl-page *,
.appdl-page *::before,
.appdl-page *::after {
  box-sizing: border-box;
}

.appdl-page button,
.appdl-page a {
  font: inherit;
}

.appdl-page button {
  border: 0;
  cursor: pointer;
}

.appdl-page a {
  color: inherit;
  text-decoration: none;
}

.appdl-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 80;
  border-bottom: 1px solid rgba(231, 188, 186, 0.45);
  background: rgba(255, 255, 255, 0.94);
  transition: box-shadow 180ms ease, background-color 180ms ease;
  backdrop-filter: blur(12px);
}

.appdl-header.is-scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 6px 22px rgba(63, 20, 25, 0.08);
}

.appdl-header-inner {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto minmax(290px, 1fr);
  align-items: center;
  width: min(100% - 48px, 1180px);
  height: 68px;
  margin: 0 auto;
}

.appdl-brand,
.appdl-footer-brand a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
}

.appdl-brand img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.appdl-brand strong,
.appdl-footer-brand strong {
  color: var(--appdl-red);
  font-family: "Be Vietnam Pro", "Microsoft YaHei", sans-serif;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0;
  white-space: nowrap;
}

.appdl-nav {
  display: flex;
  align-items: stretch;
  align-self: stretch;
  gap: 30px;
}

.appdl-nav button {
  position: relative;
  padding: 0 2px;
  background: transparent;
  color: #6d5553;
  font-size: 14px;
  font-weight: 600;
}

.appdl-nav button::after {
  position: absolute;
  right: 0;
  bottom: 14px;
  left: 0;
  height: 2px;
  background: var(--appdl-red);
  content: "";
  opacity: 0;
  transform: scaleX(0.3);
  transition: opacity 160ms ease, transform 160ms ease;
}

.appdl-nav button:hover,
.appdl-nav button.active {
  color: var(--appdl-red);
}

.appdl-nav button:hover::after,
.appdl-nav button.active::after {
  opacity: 1;
  transform: scaleX(1);
}

.appdl-header-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.appdl-header-download,
.appdl-header-ios {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  transition: transform 150ms ease, background-color 150ms ease;
}

.appdl-header-download {
  background: var(--appdl-red);
  color: #fff !important;
}

.appdl-header-download:hover {
  background: var(--appdl-red-dark);
}

.appdl-header-ios {
  border: 1px solid var(--appdl-red) !important;
  background: #fff;
  color: var(--appdl-red);
}

.appdl-header-download:active,
.appdl-header-ios:active {
  transform: scale(0.97);
}

.appdl-menu-button,
.appdl-mobile-menu {
  display: none;
}

.appdl-hero {
  scroll-margin-top: 68px;
  padding: 150px 0 88px;
  background: #fff0ef;
}

.appdl-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.93fr) minmax(430px, 1.07fr);
  align-items: center;
  gap: clamp(48px, 7vw, 96px);
  width: min(100% - 48px, 1180px);
  margin: 0 auto;
}

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

.appdl-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 22px;
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(217, 4, 41, 0.09);
  color: var(--appdl-red);
  font-size: 13px;
  font-weight: 700;
}

.appdl-eyebrow .material-symbols-outlined {
  font-size: 18px;
  font-variation-settings: "FILL" 1;
}

.appdl-copy h1 {
  margin: 0;
  color: var(--appdl-ink);
  font-family: "Be Vietnam Pro", "Microsoft YaHei", sans-serif;
  font-size: clamp(40px, 4vw, 58px);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.16;
}

.appdl-copy h1 span {
  color: var(--appdl-red);
}

.appdl-intro {
  max-width: 570px;
  margin: 22px 0 32px;
  color: var(--appdl-muted);
  font-size: 16px;
  line-height: 1.85;
}

.appdl-download-cluster {
  display: flex;
  align-items: center;
  gap: 20px;
  scroll-margin-top: 96px;
}

.appdl-qr {
  display: flex;
  flex: 0 0 138px;
  flex-direction: column;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(231, 188, 186, 0.55);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(78, 31, 35, 0.08);
}

.appdl-qr img {
  display: block;
  width: 116px;
  height: 116px;
}

.appdl-qr span {
  margin-top: 5px;
  color: #826b69;
  font-size: 11px;
}

.appdl-download-buttons {
  display: grid;
  gap: 12px;
  width: min(100%, 250px);
}

.appdl-download-button {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  min-height: 64px;
  padding: 10px 22px;
  border-radius: 8px;
  text-align: left;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.appdl-download-button > .material-symbols-outlined {
  font-size: 29px;
}

.appdl-download-button span:last-child {
  display: grid;
  min-width: 0;
}

.appdl-download-button small {
  font-size: 10px;
  line-height: 1.25;
  opacity: 0.75;
}

.appdl-download-button strong {
  overflow-wrap: anywhere;
  font-size: 16px;
  line-height: 1.4;
}

.appdl-download-button.android {
  background: var(--appdl-red);
  color: #fff;
  box-shadow: 0 8px 20px rgba(172, 0, 30, 0.2);
}

.appdl-download-button.ios {
  border: 1px solid #967a78;
  background: rgba(255, 255, 255, 0.55);
  color: #604b49;
}

.appdl-download-button:hover {
  transform: translateY(-2px);
}

.appdl-download-button.android:hover {
  background: var(--appdl-red-dark);
  box-shadow: 0 12px 24px rgba(172, 0, 30, 0.25);
}

.appdl-showcase {
  position: relative;
  min-height: 420px;
}

.appdl-showcase-photo {
  position: absolute;
  overflow: hidden;
  width: min(100%, 500px);
  aspect-ratio: 16 / 9;
  border: 7px solid #241b1b;
  border-radius: 42px;
  background: #fff;
  box-shadow: 0 28px 50px rgba(56, 22, 24, 0.2);
}

.appdl-showcase-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.appdl-showcase-photo.primary {
  top: 28px;
  right: 0;
  z-index: 2;
  transform: rotate(-5deg);
  animation: appdl-float 4s ease-in-out infinite;
}

.appdl-showcase-photo.secondary {
  right: 46px;
  bottom: 8px;
  z-index: 1;
  width: min(90%, 450px);
  border-color: #c9b8b6;
  opacity: 0.48;
  transform: rotate(5deg);
}

@keyframes appdl-float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -9px; }
}

.appdl-features {
  scroll-margin-top: 68px;
  padding: 74px 0;
  background: #fff;
}

.appdl-features-inner {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  width: min(100% - 48px, 1180px);
  margin: 0 auto;
}

.appdl-feature {
  min-width: 0;
  min-height: 238px;
  padding: 26px 24px 22px;
  border: 1px solid #f1e3e2;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 26px rgba(50, 31, 33, 0.045);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.appdl-feature:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(50, 31, 33, 0.08);
}

.appdl-feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 20px;
  border-radius: 8px;
  font-size: 29px;
  font-variation-settings: "FILL" 1;
}

.appdl-feature-icon.red { background: #ffe4e7; color: var(--appdl-red); }
.appdl-feature-icon.yellow { background: #fff4d6; color: #e59a00; }
.appdl-feature-icon.violet { background: #ededff; color: #62659a; }
.appdl-feature-icon.blue { background: #e3efff; color: #3e5879; }

.appdl-feature h3 {
  margin: 0 0 8px;
  font-family: "Be Vietnam Pro", "Microsoft YaHei", sans-serif;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0;
}

.appdl-feature p {
  margin: 0;
  color: #796361;
  font-size: 13px;
  line-height: 1.75;
}

.appdl-feature a,
.appdl-feature button {
  display: inline-block;
  max-width: 100%;
  margin-top: 10px;
  padding: 0;
  background: transparent;
  color: var(--appdl-red);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.appdl-cta {
  position: relative;
  overflow: hidden;
  padding: 72px 0;
  background: #c90027;
  color: #fff;
}

.appdl-cta-pattern {
  position: absolute;
  inset: 0;
  background: url('/images/app-download-cta-pattern.jpg') center / cover;
  opacity: 0.1;
}

.appdl-cta-inner {
  position: relative;
  z-index: 1;
  width: min(100% - 32px, 860px);
  margin: 0 auto;
  text-align: center;
}

.appdl-cta h2 {
  margin: 0 0 28px;
  font-family: "Be Vietnam Pro", "Microsoft YaHei", sans-serif;
  font-size: clamp(28px, 3.2vw, 42px);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.3;
}

.appdl-cta-inner > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.appdl-cta a,
.appdl-cta button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 164px;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 800;
  transition: transform 150ms ease, background-color 150ms ease;
}

.appdl-cta a {
  background: #fff;
  color: var(--appdl-red);
}

.appdl-cta button {
  border: 1px solid #fff;
  background: transparent;
  color: #fff;
}

.appdl-cta a:hover,
.appdl-cta button:hover {
  transform: translateY(-2px);
}

.appdl-footer {
  scroll-margin-top: 68px;
  padding: 34px 0;
  background: #ffe9e7;
}

.appdl-footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 120px;
  align-items: center;
  gap: 28px;
  width: min(100% - 48px, 1180px);
  margin: 0 auto;
}

.appdl-footer-brand img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.appdl-footer-brand strong {
  color: var(--appdl-ink);
  font-size: 16px;
}

.appdl-footer-brand p {
  margin: 10px 0 0;
  color: #7a6260;
  font-size: 11px;
}

.appdl-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 22px;
}

.appdl-footer nav a,
.appdl-footer nav button {
  padding: 2px 0;
  background: transparent;
  color: #735c5a;
  font-size: 12px;
}

.appdl-footer nav a:hover,
.appdl-footer nav button:hover {
  color: var(--appdl-red);
}

.appdl-footer-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.appdl-footer-actions button,
.appdl-footer-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #fff;
  color: var(--appdl-red);
  box-shadow: 0 5px 15px rgba(84, 35, 39, 0.08);
}

.appdl-footer-actions .material-symbols-outlined {
  font-size: 19px;
}

.appdl-dialog {
  width: min(100% - 32px, 420px);
  padding: 36px 30px 30px;
  border: 0;
  border-radius: 8px;
  color: var(--appdl-ink);
  text-align: center;
  box-shadow: 0 24px 80px rgba(50, 17, 22, 0.28);
}

.appdl-dialog::backdrop {
  background: rgba(35, 20, 21, 0.55);
  backdrop-filter: blur(5px);
}

.appdl-dialog-close {
  position: absolute;
  top: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff0ef;
  color: #765d5b;
}

.appdl-dialog-close .material-symbols-outlined {
  font-size: 20px;
}

.appdl-dialog-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: #ffe4e7;
  color: var(--appdl-red);
  font-size: 32px;
}

.appdl-dialog h2 {
  margin: 18px 0 8px;
  font-size: 22px;
}

.appdl-dialog p {
  margin: 0 0 22px;
  color: #796260;
  font-size: 14px;
  line-height: 1.7;
}

.appdl-dialog > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 8px;
  background: var(--appdl-red);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
}

.appdl-toast {
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 120;
  max-width: calc(100vw - 40px);
  margin: 0;
  padding: 11px 17px;
  border-radius: 8px;
  background: #2b2d42;
  color: #fff;
  font-size: 13px;
  box-shadow: 0 12px 30px rgba(26, 27, 39, 0.24);
}

.appdl-toast-enter-active,
.appdl-toast-leave-active {
  transition: opacity 160ms ease, transform 160ms ease;
}

.appdl-toast-enter-from,
.appdl-toast-leave-to {
  opacity: 0;
  transform: translateY(8px);
}

.appdl-visually-hidden {
  position: absolute !important;
  overflow: hidden !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  border: 0 !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
}

@media (max-width: 1020px) {
  .appdl-header-inner {
    grid-template-columns: 1fr auto;
  }

  .appdl-nav {
    display: none;
  }

  .appdl-hero-inner {
    grid-template-columns: minmax(0, 0.95fr) minmax(370px, 1.05fr);
    gap: 34px;
  }

  .appdl-copy h1 {
    font-size: 42px;
  }

  .appdl-showcase {
    min-height: 370px;
  }

  .appdl-features-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .appdl-footer-inner {
    grid-template-columns: 1fr auto;
  }

  .appdl-footer nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  .appdl-header-inner {
    width: calc(100% - 32px);
    height: 60px;
  }

  .appdl-brand img {
    width: 34px;
    height: 34px;
  }

  .appdl-brand strong {
    font-size: 17px;
  }

  .appdl-header-download,
  .appdl-header-ios {
    display: none;
  }

  .appdl-menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
    background: #fff0ef;
    color: var(--appdl-red);
  }

  .appdl-menu-button .material-symbols-outlined {
    font-size: 23px;
  }

  .appdl-mobile-menu {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
    padding: 8px 16px 12px;
    border-top: 1px solid #f3dddd;
    background: #fff;
  }

  .appdl-mobile-menu button {
    min-height: 36px;
    border-radius: 6px;
    background: #fff8f7;
    color: #684f4d;
    font-size: 13px;
  }

  .appdl-hero {
    padding: 102px 0 54px;
  }

  .appdl-hero-inner {
    display: flex;
    width: calc(100% - 32px);
    flex-direction: column;
    gap: 42px;
  }

  .appdl-copy {
    width: 100%;
    text-align: center;
  }

  .appdl-eyebrow {
    margin-bottom: 18px;
    font-size: 12px;
  }

  .appdl-copy h1 {
    font-size: clamp(34px, 10vw, 42px);
    line-height: 1.2;
  }

  .appdl-intro {
    margin: 18px auto 28px;
    font-size: 14px;
    line-height: 1.75;
  }

  .appdl-download-cluster {
    display: block;
  }

  .appdl-qr {
    display: none;
  }

  .appdl-download-buttons {
    width: min(100%, 350px);
    margin: 0 auto;
  }

  .appdl-download-button {
    grid-template-columns: 42px minmax(0, 1fr);
    min-height: 62px;
    padding: 10px 24px;
  }

  .appdl-showcase {
    width: 100%;
    min-height: 275px;
  }

  .appdl-showcase-photo {
    left: 50%;
    width: min(92%, 410px);
    border-width: 5px;
    border-radius: 28px;
  }

  .appdl-showcase-photo.primary {
    top: 0;
    right: auto;
    transform: translateX(-50%) rotate(-3deg);
  }

  .appdl-showcase-photo.secondary {
    right: auto;
    bottom: 0;
    width: min(84%, 370px);
    transform: translateX(-50%) rotate(4deg);
  }

  .appdl-features {
    scroll-margin-top: 60px;
    padding: 48px 0;
  }

  .appdl-features-inner {
    grid-template-columns: 1fr;
    gap: 14px;
    width: calc(100% - 32px);
  }

  .appdl-feature {
    display: grid;
    grid-template-columns: 50px minmax(0, 1fr);
    min-height: 0;
    padding: 20px;
    column-gap: 16px;
  }

  .appdl-feature-icon {
    grid-row: 1 / span 3;
    width: 48px;
    height: 48px;
    margin: 0;
    font-size: 27px;
  }

  .appdl-feature h3 {
    margin: 0 0 4px;
    font-size: 17px;
  }

  .appdl-feature p {
    font-size: 12px;
    line-height: 1.65;
  }

  .appdl-feature a,
  .appdl-feature button {
    grid-column: 2;
    width: fit-content;
    margin-top: 6px;
  }

  .appdl-cta {
    padding: 54px 0;
  }

  .appdl-cta h2 {
    font-size: 28px;
  }

  .appdl-cta-inner > div {
    display: grid;
    grid-template-columns: 1fr;
    width: min(100%, 320px);
    margin: 0 auto;
  }

  .appdl-cta a,
  .appdl-cta button {
    width: 100%;
  }

  .appdl-footer {
    scroll-margin-top: 60px;
    padding: 28px 0;
  }

  .appdl-footer-inner {
    display: flex;
    width: calc(100% - 32px);
    flex-direction: column;
    align-items: center;
    gap: 22px;
    text-align: center;
  }

  .appdl-footer-brand a {
    margin: 0 auto;
  }

  .appdl-footer nav {
    justify-content: center;
    gap: 14px 20px;
  }

  .appdl-footer-actions {
    justify-content: center;
  }

  .appdl-toast {
    right: 16px;
    bottom: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .appdl-page *,
  .appdl-page *::before,
  .appdl-page *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
