:root {
  --orange: #f5823c;
  --warm: #ffd08a;
  --warm-soft: #ffe1ac;
  --ink: #21120a;
  --card: rgba(255, 252, 242, 0.82);
  --line: rgba(115, 55, 16, 0.18);
  --shadow: 0 18px 45px rgba(122, 63, 19, 0.16);
}

* {
  box-sizing: border-box;
}

html,
body {
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

img,
svg {
  max-width: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  background:
    linear-gradient(180deg, #f5823c 0 112px, #ffd08a 112px 100%),
    radial-gradient(circle at 20% 26%, rgba(255, 255, 255, 0.36), transparent 30%),
    radial-gradient(circle at 84% 12%, rgba(255, 190, 100, 0.48), transparent 34%);
}

.top-band {
  position: fixed;
  inset: 0 0 auto;
  height: 112px;
  background: #f5823c;
  pointer-events: none;
  z-index: -1;
}

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 26px 0 68px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  min-height: 76px;
}

.logo-link {
  display: inline-flex;
  align-items: center;
  width: 92px;
  height: 72px;
}

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

.support-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  max-width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 999px;
  padding: 0 18px;
  color: #fff;
  background: rgba(125, 61, 16, 0.18);
  text-decoration: none;
  font-weight: 800;
  box-shadow: 0 10px 26px rgba(126, 61, 18, 0.18);
}

.support-symbol {
  position: relative;
  width: 22px;
  height: 22px;
  border: 3px solid currentColor;
  border-bottom-color: transparent;
  border-radius: 50%;
}

.support-symbol::before,
.support-symbol::after {
  position: absolute;
  top: 10px;
  width: 5px;
  height: 9px;
  border-radius: 4px;
  content: "";
  background: currentColor;
}

.support-symbol::before {
  left: -5px;
}

.support-symbol::after {
  right: -5px;
  box-shadow: -6px 9px 0 -3px currentColor;
}

.marquee-shell {
  overflow: hidden;
  width: 100%;
  margin-top: 18px;
  border: 1px solid rgba(111, 55, 17, 0.18);
  border-radius: 8px;
  background: rgba(255, 249, 232, 0.76);
  box-shadow: var(--shadow);
}

.marquee-track {
  display: flex;
  width: max-content;
  gap: 34px;
  padding: 12px 0;
  color: #7b3b12;
  font-size: clamp(13px, 1.8vw, 15px);
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
  animation: marqueeMove 24s linear infinite;
}

.marquee-track span {
  display: inline-flex;
  align-items: center;
  font: inherit;
}

.carousel {
  position: relative;
  width: 100%;
  aspect-ratio: var(--carousel-ratio, 16 / 6);
  margin-top: 22px;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  background: transparent;
  box-shadow: var(--shadow);
}

.carousel-track,
.carousel-image {
  width: 100%;
  height: 100%;
}

.carousel-image {
  position: absolute;
  inset: 0;
  object-fit: contain;
  object-position: center;
  opacity: 0;
  transform: none;
  transition: opacity 520ms ease;
}

.carousel-image.is-active {
  opacity: 1;
  transform: none;
}

.carousel-dots {
  position: absolute;
  right: 22px;
  bottom: 18px;
  display: flex;
  gap: 10px;
  max-width: calc(100% - 32px);
}

.carousel-dots button {
  width: clamp(26px, 5vw, 42px);
  height: 10px;
  border: 0;
  border-radius: 999px;
  padding: 0;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
}

.carousel-dots button.is-active {
  background: #f5823c;
  box-shadow: 0 0 18px rgba(245, 130, 60, 0.7);
}

.entrances {
  margin-top: 34px;
}

.section-head.centered {
  text-align: center;
}

.section-head h3,
.download-title,
.contact-title {
  margin: 0 0 16px;
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.1;
  font-weight: 900;
}

.download-title,
.contact-title {
  margin: 8px 0 -2px;
  text-align: center;
}

.entrance-grid {
  display: grid;
  gap: 18px;
}

.entrance-row {
  display: grid;
  gap: 16px;
}

.line-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.download-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: min(760px, 100%);
  margin: 0 auto;
}

.contact-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(860px, 100%);
  margin: 0 auto 8px;
}

.entry-card {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  gap: 14px;
  min-height: 104px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  color: var(--ink);
  background: var(--card);
  text-decoration: none;
  font-weight: 900;
  text-align: center;
  overflow-wrap: anywhere;
  box-shadow: var(--shadow);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.entry-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 48px rgba(122, 63, 19, 0.22);
}

.entry-badge,
.platform-icon,
.contact-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  border-radius: 8px;
  color: #fff;
  background: #f5823c;
  box-shadow: 0 10px 22px rgba(245, 130, 60, 0.28);
}

.platform-icon {
  position: relative;
  width: 56px;
  height: 56px;
  font-size: 17px;
  letter-spacing: 0;
}

.platform-icon.android::before,
.platform-icon.android::after {
  position: absolute;
  top: -8px;
  width: 3px;
  height: 12px;
  border-radius: 99px;
  content: "";
  background: #f5823c;
}

.platform-icon.android::before {
  left: 18px;
  transform: rotate(-25deg);
}

.platform-icon.android::after {
  right: 18px;
  transform: rotate(25deg);
}

.platform-icon.ios {
  border-radius: 50% 50% 45% 45%;
}

.contact-icon {
  border-radius: 50%;
  font-size: 16px;
  letter-spacing: 0;
}

.contact-icon.whatsapp {
  background: #27b66b;
}

.contact-icon.facebook {
  background: #2f6edc;
  font-family: Arial, sans-serif;
  font-size: 24px;
}

.contact-icon.telegram {
  background: #229ed9;
}

.bottom-features {
  margin-top: 42px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.feature-panel {
  min-height: 260px;
  border: 1px solid rgba(115, 55, 16, 0.18);
  border-radius: 18px;
  padding: 34px 28px;
  color: var(--ink);
  background: rgba(255, 252, 242, 0.82);
  text-align: center;
  box-shadow: 0 22px 42px rgba(122, 63, 19, 0.16);
}

.feature-icon {
  display: block;
  width: 86px;
  height: 72px;
  margin: 0 auto 22px;
  object-fit: contain;
}

.feature-panel h3 {
  margin: 0 0 18px;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.2;
}

.feature-panel p {
  max-width: 330px;
  margin: 0 auto;
  color: #9a560f;
  font-size: clamp(14px, 1.6vw, 17px);
  line-height: 1.7;
}

.site-footer {
  margin-top: 44px;
  padding: 24px max(16px, calc((100vw - 1180px) / 2)) 22px;
  color: rgba(255, 241, 208, 0.9);
  background: #f5823c;
}

.footer-badges {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  padding: 20px 0;
}

.footer-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 70px;
  min-height: 34px;
  color: rgba(255, 242, 222, 0.86);
  font-size: 14px;
  font-weight: 900;
  text-align: center;
  overflow-wrap: anywhere;
}

.copyright {
  margin: 22px 0 0;
  color: rgba(255, 229, 189, 0.92);
  font-weight: 800;
  text-align: center;
}

@keyframes marqueeMove {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 760px) {
  :root {
    --mobile-top-band-height: 96px;
  }

  body {
    background:
      linear-gradient(180deg, #f5823c 0 var(--mobile-top-band-height), #ffd08a var(--mobile-top-band-height) 100%),
      radial-gradient(circle at 20% 26%, rgba(255, 255, 255, 0.36), transparent 30%),
      radial-gradient(circle at 84% 12%, rgba(255, 190, 100, 0.48), transparent 34%);
  }

  .top-band {
    height: var(--mobile-top-band-height);
  }

  /* mobile entrances stay one row */
  .page-shell {
    width: min(100% - 20px, 1180px);
    padding-top: 0;
    padding-bottom: 46px;
  }

  .site-header {
    /* mobile header keeps logo left and support right */
    justify-content: space-between;
    flex-wrap: nowrap;
    height: var(--mobile-top-band-height);
    min-height: 0;
    gap: 12px;
  }

  .logo-link {
    width: 76px;
    height: 42px;
    /* mobile logo vertically centered */
    justify-content: flex-start;
    align-self: center;
  }

  .logo-image {
    height: auto;
    max-height: 34px;
  }

  .support-link {
    min-height: 40px;
    padding: 0 12px;
    font-size: 14px;
  }

  .support-link .support-symbol {
    /* mobile compact support icon */
    width: 17px;
    height: 17px;
    border-width: 2px;
  }

  .support-link .support-symbol::before,
  .support-link .support-symbol::after {
    top: 8px;
    width: 4px;
    height: 7px;
  }

  .support-link .support-symbol::before {
    left: -4px;
  }

  .support-link .support-symbol::after {
    right: -4px;
    box-shadow: -5px 7px 0 -3px currentColor;
  }

  /* mobile marquee lowered below orange band */
  .marquee-shell {
    /* mobile marquee tucked below narrow top band */
    margin-top: 14px;
  }

  .marquee-track {
    /* mobile marquee uses compact uniform text */
    font-size: 13px;
    line-height: 1.2;
  }

  .entrance-grid {
    gap: 14px;
  }

  .entrance-row {
    gap: 10px;
  }

  .line-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .download-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  /* mobile contact entries stay one row */
  .contact-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
  }

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

  .feature-panel {
    min-height: auto;
    padding: 28px 20px;
  }

  .footer-badges {
    justify-content: center;
  }

  .carousel {
    aspect-ratio: var(--carousel-ratio, 16 / 9);
    margin-top: 16px;
  }

  .carousel-dots {
    right: 12px;
    bottom: 12px;
    gap: 7px;
  }

  .entry-card {
    flex-direction: column;
    min-height: 76px;
    gap: 8px;
    padding: 12px 8px;
    font-size: 14px;
  }

  .entry-badge,
  .platform-icon,
  .contact-icon {
    width: 38px;
    height: 38px;
    font-size: 14px;
  }

  .platform-icon.android::before,
  .platform-icon.android::after {
    top: -6px;
    height: 9px;
  }
}

@media (max-width: 420px) {
  .page-shell {
    width: min(100% - 16px, 1180px);
    padding-top: 0;
  }

  .site-header {
    justify-content: space-between;
  }

  .support-link {
    min-height: 40px;
    padding: 0 14px;
    font-size: 13px;
  }

  .logo-link {
    width: 68px;
    height: 40px;
  }

  .logo-image {
    max-height: 30px;
  }

  .marquee-track {
    gap: 22px;
    font-size: 13px;
  }

  .carousel {
    aspect-ratio: var(--carousel-ratio, 4 / 3);
  }

  .section-head h3 {
    margin-bottom: 14px;
  }

  .download-title {
    margin-top: 4px;
  }

  .contact-title {
    margin-top: 2px;
  }

  .entry-card {
    min-height: 68px;
    gap: 7px;
    padding: 10px 6px;
    font-size: 12px;
  }

  .entry-badge,
  .platform-icon,
  .contact-icon {
    width: 34px;
    height: 34px;
    font-size: 12px;
  }

  .contact-icon.facebook {
    font-size: 20px;
  }
}
