:root {
  color-scheme: dark;
  --mango-orange: #fc8039;
  --mango-gold: #f5bc4d;
  --mango-ink: #080708;
  --mango-serif: "Songti SC", "STSong", "SimSun", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { background: var(--mango-ink); color: #fff; font-family: "PingFang SC", "Microsoft YaHei", sans-serif; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ul { margin: 0; padding: 0; }
ul { list-style: none; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; cursor: pointer; }
button:disabled { cursor: wait; }
img { display: block; max-width: 100%; }
img:not([src]) { visibility: hidden; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--mango-gold); outline-offset: 4px; }
.mango-icon { display: inline-block; flex: 0 0 auto; width: 24px; height: 24px; overflow: hidden; }
.mango-icon img { width: calc(100% * var(--icon-count)); max-width: none; height: 100%; transform: translateX(calc(-100% * var(--icon-index) / var(--icon-count))); pointer-events: none; -webkit-touch-callout: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.desktop-landing { display: none; }

.contact-link { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 7px; white-space: nowrap; border: 1px solid rgb(255 255 255 / 75%); border-radius: 40px; background: rgb(85 83 80 / 74%); transition: background 160ms ease; }
.contact-link-mask { position: absolute; inset: 0; z-index: 2; border-radius: inherit; pointer-events: auto; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.contact-link:hover { background: rgb(60 57 54 / 95%); }

/* 以 hgdj_v3 手机端为基础：四行滚动海报、居中主图、固定下载区。 */
.mobile-landing { width: 100%; max-width: 750px; min-height: 100vh; min-height: 100dvh; margin: 0 auto; overflow-x: clip; background: #000; }
.mobile-landing .m-page-cont { position: relative; isolation: isolate; width: 100%; min-height: 100vh; min-height: 100dvh; padding-bottom: 100px; }
.mobile-landing .m-page-marquee {
  --m-marquee-row-gap: 6px;
  --m-marquee-poster-gap: 12px;
  --m-marquee-poster-count: 4;
  --m-marquee-poster-ratio: calc(220 / 292);
  --m-marquee-top-inset: 52px;
  --m-marquee-img-scale: calc(.88 * .95);
  --m-marquee-row-full: calc((100vh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - var(--m-marquee-top-inset) - 3 * var(--m-marquee-row-gap)) / 4);
  --m-marquee-row-h: max(calc(var(--m-marquee-row-full) * var(--m-marquee-img-scale)), calc((min(100vw, 750px) / var(--m-marquee-poster-count) - var(--m-marquee-poster-gap)) / var(--m-marquee-poster-ratio)));
  position: fixed; inset: 0; z-index: 1; max-width: 750px; margin: 0 auto; display: flex; flex-direction: column; gap: var(--m-marquee-row-gap); padding-top: var(--m-marquee-top-inset); overflow: hidden; background: #000; pointer-events: none; -webkit-touch-callout: none;
}
@supports (height: 100dvh) {
  .mobile-landing .m-page-marquee { --m-marquee-row-full: calc((100dvh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - var(--m-marquee-top-inset) - 3 * var(--m-marquee-row-gap)) / 4); }
}
.mobile-landing .m-page-marquee-mask { position: absolute; inset: 0; z-index: 2; pointer-events: auto; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
/* 渐变独立于动画 track，避免滚动合成层覆盖遮罩。 */
.mobile-landing .m-marquee-gradient { position: fixed; inset: 0; z-index: 2; max-width: 750px; margin: 0 auto; pointer-events: none; background: linear-gradient(180deg, rgb(0 0 0 / 96%) 0%, transparent 46%, transparent 58%, rgb(0 0 0 / 35%) 100%), linear-gradient(to top, #000 0%, transparent 62%); }
.mobile-landing .m-center-hero-wrap { position: fixed; top: 50%; left: 0; right: 0; z-index: 3; max-width: 750px; margin: 0 auto; transform: translateY(-50%); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0 8px; pointer-events: none; -webkit-touch-callout: none; }
.mobile-landing .m-center-hero { display: block; width: auto; height: auto; max-width: min(100%, 711px); max-height: min(91.96vh, 961px); max-height: min(91.96dvh, 961px); object-fit: contain; object-position: center; }
.mobile-landing .m-marquee-row { flex: 0 0 auto; width: 100%; height: var(--m-marquee-row-h); min-height: var(--m-marquee-row-h); overflow: hidden; display: flex; align-items: stretch; }
.mobile-landing .m-marquee-track { display: flex; width: max-content; height: 100%; will-change: transform; animation: m-marquee-scroll var(--marquee-duration) linear infinite; }
.mobile-landing .m-marquee-group { display: flex; flex-shrink: 0; align-items: stretch; height: 100%; gap: var(--m-marquee-poster-gap); padding-right: var(--m-marquee-poster-gap); }
.mobile-landing .m-marquee-img { height: 100%; width: auto; max-width: none; object-fit: cover; flex-shrink: 0; }
.mobile-landing .m-page-head-top { position: fixed; top: 12px; left: 0; right: 0; z-index: 20; width: 100%; max-width: 750px; margin: 0 auto; display: flex; align-items: center; justify-content: center; padding: 6px 8px; }
.mobile-landing .row-slide { display: flex; align-items: center; width: 100%; }
.mobile-landing .item-RndTag { flex: 1 1 0; min-width: 0; display: flex; align-items: center; justify-content: center; }
.mobile-landing .item-RndTag-icon-wrap { position: relative; width: 100%; aspect-ratio: 80 / 26; overflow: hidden; }
.mobile-landing .icons { width: 100%; height: 100%; object-fit: cover; object-position: center; pointer-events: none; -webkit-touch-callout: none; }
.mobile-landing .item-RndTag-mask { position: absolute; inset: 0; z-index: 2; pointer-events: auto; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.mobile-landing .m-foot { position: fixed; bottom: 0; left: 0; right: 0; z-index: 10; width: 100%; max-width: 750px; margin: 0 auto; display: flex; justify-content: center; padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px)); pointer-events: none; }
.mobile-landing .footer_img { position: relative; width: 100%; aspect-ratio: 750 / 850; padding: 0; border: 0; background: transparent center bottom / 100% auto no-repeat; pointer-events: none; -webkit-touch-callout: none; }
.mobile-landing .footer_img-mask { position: absolute; inset: 0; z-index: 2; pointer-events: auto; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
@keyframes m-marquee-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* 桌面稿：轮播、品牌介绍、社群三个独立区块。 */
.mango-hero { width: 100%; overflow: hidden; background: #000; }
/* 1920 × 1080 设计基准：背景满宽铺满视口，前景按宽高较小的比例缩放。 */
.hero-stage { --hero-unit: min(calc(100cqw / 1920), calc(100vh / 1080)); position: relative; isolation: isolate; container-type: inline-size; width: 100%; height: 100vh; overflow: hidden; background: var(--mango-orange); }
@supports (height: 100svh) { .hero-stage { --hero-unit: min(calc(100cqw / 1920), calc(100svh / 1080)); height: 100svh; } }
.hero-scenes, .hero-scene { position: absolute; inset: 0; }
.hero-scenes { z-index: -1; }
.hero-scene { opacity: 0; background: var(--mango-orange) center / cover no-repeat; transition: opacity 500ms ease; }
.hero-scene.is-active { opacity: 1; }
.mango-header { position: absolute; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; gap: calc(24 * var(--hero-unit)); height: calc(110 * var(--hero-unit)); padding: 0 3.3854%; }
.header-brand { width: calc(257 * var(--hero-unit)); height: auto; }
.desktop-nav { display: flex; gap: calc(20 * var(--hero-unit)); }
.desktop-nav .contact-link { min-height: calc(56 * var(--hero-unit)); padding: calc(6 * var(--hero-unit)) calc(20 * var(--hero-unit)); gap: calc(7 * var(--hero-unit)); font-size: calc(24 * var(--hero-unit)); }
.desktop-nav .mango-icon { width: calc(40 * var(--hero-unit)); height: calc(40 * var(--hero-unit)); }
.hero-promo { position: absolute; top: 27.3148%; left: 0; width: calc(960 * var(--hero-unit)); }
.hero-promo img { width: 100%; height: auto; }
.hero-download { position: absolute; left: 2.4479%; top: 76.2037%; width: calc(826 * var(--hero-unit)); height: calc(200 * var(--hero-unit)); }
.qr-frame { position: absolute; top: 0; left: 0; width: calc(200 * var(--hero-unit)); height: 100%; overflow: hidden; border-radius: 12.5%; }
.qr-frame img { width: 100%; height: 100%; object-fit: contain; }
.qr-copy { position: absolute; top: 0; left: calc(238 * var(--hero-unit)); width: calc(550 * var(--hero-unit)); height: 100%; }
.qr-title { position: absolute; top: calc(30 * var(--hero-unit)); left: calc(70 * var(--hero-unit)); width: calc(393.143 * var(--hero-unit)); font-size: calc(28.661 * var(--hero-unit)); font-weight: 500; line-height: 1.5; white-space: nowrap; }
.install-note { position: absolute; top: calc(104 * var(--hero-unit)); left: 0; width: 100%; font-size: calc(18 * var(--hero-unit)); line-height: 1.5; color: #fff; }
.hero-posters { position: absolute; right: 7.34375%; top: 77.5926%; width: calc(565 * var(--hero-unit)); display: flex; gap: 4.4248%; }
.poster-button { position: relative; flex: 1; min-width: 0; aspect-ratio: 122.5 / 170; padding: 0; border: 0; border-radius: calc(14 * var(--hero-unit)); background: transparent; }
.poster-art { position: absolute; inset: 0; overflow: hidden; border-radius: inherit; }
.poster-art img { width: 400%; max-width: none; height: 100%; transform: translateX(calc(var(--poster-index) * -25%)); pointer-events: none; -webkit-touch-callout: none; }
.poster-button-mask { position: absolute; inset: 0; z-index: 2; border-radius: inherit; pointer-events: auto; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.poster-button::before { content: ""; position: absolute; inset: 0; z-index: 1; border: max(1px, calc(2 * var(--hero-unit))) solid transparent; border-radius: inherit; pointer-events: none; }
.poster-button.is-active::before { border-color: #ffd000; }
.poster-button[aria-busy="true"]::after { content: ""; position: absolute; inset: 40% 30%; border: 2px solid #fff5; border-top-color: #fff; border-radius: 50%; animation: mango-spin 800ms linear infinite; }
.mango-about { --section-unit: calc(100cqw / 1920); position: relative; isolation: isolate; container-type: inline-size; width: 100%; aspect-ratio: 16 / 9; background: #000; }
.about-art { position: absolute; inset: 0; z-index: -1; opacity: .3; background: center / cover no-repeat; }
.about-content { position: absolute; inset: 0; }
.about-copy { position: absolute; left: 10.46875%; top: 31.2963%; width: 48.737%; }
.section-eyebrow { color: var(--mango-gold); font-family: "Times New Roman", serif; font-size: clamp(26px, 2.4vw, 46px); font-weight: 400; line-height: 1.3; }
.about-copy .section-eyebrow { font-size: calc(46 * var(--section-unit)); line-height: calc(60 * var(--section-unit)); }
.about-copy h2 { margin: calc(10 * var(--section-unit)) 0 calc(28 * var(--section-unit)); height: calc(200 * var(--section-unit)); }
.about-copy h2 img { width: 100%; height: 100%; object-fit: contain; }
.about-copy > p:not(.section-eyebrow) { margin-left: calc(15 * var(--section-unit)); font-size: calc(20 * var(--section-unit)); line-height: calc(40 * var(--section-unit)); }
.about-copy > p + p { margin-top: calc(12 * var(--section-unit)); }
.about-features { position: absolute; top: 40.2778%; left: 59.21875%; width: 36.3021%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: calc(40 * var(--section-unit)); }
.about-features li { position: relative; min-height: calc(294 * var(--section-unit)); padding: calc(50 * var(--section-unit)) calc(30 * var(--section-unit)); border-radius: calc(30 * var(--section-unit)); background: rgb(255 255 255 / 10%); backdrop-filter: blur(12px); }
.about-features li::before { content: ""; position: absolute; inset: 0; padding: max(1px, calc(1.6 * var(--section-unit))); border-radius: inherit; background: linear-gradient(#ecca5a, #666); mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); mask-composite: exclude; pointer-events: none; }
.about-features h3 { margin-bottom: calc(6 * var(--section-unit)); color: var(--mango-gold); font-family: var(--mango-serif); font-size: calc(35 * var(--section-unit)); line-height: calc(49 * var(--section-unit)); font-weight: 900; white-space: nowrap; }
.about-features p { color: #e1dfdd; font-size: calc(20 * var(--section-unit)); line-height: 1.4; }
.mango-community { position: relative; isolation: isolate; width: 100%; min-height: 560px; aspect-ratio: 16 / 9; overflow: hidden; background: #100b0c; }
.community-art { position: absolute; inset: 0; z-index: -1; background: center / cover no-repeat; opacity: .28; }
.community-content { position: absolute; inset: 0; text-align: center; }
.community-content > * { position: absolute; left: 50%; transform: translateX(-50%); }
.community-content .section-eyebrow { top: 12.6%; width: 100%; font-size: clamp(28px, 2.7vw, 52px); }
.community-content h2 { top: 20.7407%; left: 49.6094%; width: 38.2031%; }
.community-content h2 img { width: 100%; height: auto; }
.community-intro { top: 33.8%; width: 100%; font-size: clamp(16px, 1.5625vw, 30px); line-height: 1.8; }
.telegram-button { top: 46.5741%; width: 18.125%; border-radius: 30px; }
.telegram-button img { width: 100%; height: auto; }
.telegram-button:hover { filter: brightness(1.08); }
.community-social { top: 57.7%; display: flex; gap: 2.08vw; }
.community-social button { display: grid; place-items: center; width: clamp(34px, 3.125vw, 60px); height: clamp(34px, 3.125vw, 60px); padding: 0; border: 0; border-radius: 50%; background: #000; transition: transform 180ms ease; }
.community-social button:hover, .community-social button:focus-visible { transform: translateY(-4px); }
.community-social button:active { transform: translateY(-1px); }
.social-art { display: block; width: 100%; height: 100%; overflow: hidden; border-radius: inherit; }
.social-art img { width: 300%; max-width: none; height: 100%; transform: translateX(calc(var(--social-index) * -33.333333%)); }
.community-brand { top: 67.9%; width: 23.3%; height: auto; }
.copyright { top: 86.4%; width: 100%; padding: 0 20px; font-size: clamp(12px, 1.0417vw, 20px); line-height: 1.5; }

/* 下载与安装引导沿用原流程，提供明确的加载、取消和错误反馈。 */
.userDialogbox, .jcbox, .download-loading { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgb(0 0 0 / 70%); }
.userDialogbox .dialog { width: min(100%, 360px); padding: 28px; border-radius: 16px; background: #fff; color: #222; text-align: center; }
.userDialogbox .header { font-size: 20px; font-weight: 600; }
.userDialogbox .tit { margin: 20px 0 12px; }
.userDialogbox .link { word-break: break-all; font-size: 13px; }
.copybtn { margin-top: 24px; min-height: 44px; width: 100%; border: 0; border-radius: 24px; background: var(--mango-orange); color: #fff; }
.jcbox { z-index: 120; padding: 48px 24px; }
.jcbox-inner { display: flex; justify-content: center; align-items: center; width: 100%; height: 100%; }
.jcbox .item { width: auto; height: auto; max-width: min(100%, 360px); max-height: 100%; object-fit: contain; }
.dialog-close { position: absolute; right: 16px; top: 16px; width: 44px; height: 44px; padding: 0; border: 1px solid #fff8; border-radius: 50%; background: #222; font-size: 30px; line-height: 1; }
.social-dialog { width: min(440px, calc(100% - 40px)); max-height: calc(100svh - 40px); padding: 36px 28px 28px; border: 1px solid #fff3; border-radius: 20px; background: #191719; color: #fff; }
.social-dialog::backdrop { background: rgb(0 0 0 / 75%); }
.social-dialog .dialog-close { top: 12px; right: 12px; width: 32px; height: 32px; font-size: 24px; }
.social-dialog h2 { padding-right: 28px; font-size: 24px; }
.social-dialog p { margin-top: 20px; color: #d8d4d8; font-size: 15px; line-height: 1.8; }
.social-dialog-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.social-dialog-actions a, .social-dialog-actions button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 18px; border: 1px solid #fff4; border-radius: 24px; background: transparent; font-size: 14px; }
.social-dialog-actions a { border-color: var(--mango-orange); background: var(--mango-orange); color: #141014; }
.social-dialog-actions button:hover { background: #fff1; }
.download-loading { z-index: 150; backdrop-filter: blur(2px); }
.download-loading-panel { display: flex; flex-direction: column; align-items: center; gap: 16px; min-width: 150px; padding: 24px; border: 1px solid #fff2; border-radius: 16px; background: #242329; }
.download-loading-ring { width: 40px; height: 40px; border: 3px solid #fff3; border-top-color: var(--mango-orange); border-radius: 50%; animation: mango-spin 850ms linear infinite; }
.download-loading-ring-outer, .download-loading-ring-inner { display: none; }
.download-loading-text { font-size: 14px; letter-spacing: 2px; }
.download-cancel { min-height: 36px; padding: 6px 24px; border: 1px solid #fff5; border-radius: 20px; background: transparent; font-size: 13px; }
.download-toast { position: fixed; top: 50%; left: 50%; z-index: 200; transform: translate(-50%, -50%); width: max-content; max-width: 85%; padding: 12px 18px; border-radius: 8px; background: rgb(0 0 0 / 85%); font-size: 15px; line-height: 1.5; text-align: center; pointer-events: none; opacity: 0; visibility: hidden; }
.download-toast.is-show { opacity: 1; visibility: visible; }
@keyframes mango-spin { to { transform: rotate(360deg); } }
@media (min-width: 768px) { .mobile-landing { display: none; } .desktop-landing { display: block; } }
@media (min-width: 768px) and (max-width: 1100px) {
  .mango-about { padding: 64px 8%; aspect-ratio: auto; }
  .about-content { position: relative; }
  .about-copy { position: static; width: 100%; }
  .about-copy .section-eyebrow { font-size: 26px; line-height: 1.3; }
  .about-copy h2 { margin: 12px 0 24px; height: auto; }
  .about-copy h2 img { height: auto; }
  .about-copy > p:not(.section-eyebrow) { margin-left: 0; font-size: 14px; line-height: 2; }
  .about-features { position: static; width: 100%; margin-top: 28px; gap: 18px; }
  .about-features li { min-height: 160px; padding: 24px 20px; border-radius: 22px; }
  .about-features h3 { font-size: 24px; line-height: 1.4; }
  .about-features p { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .mobile-landing .m-marquee-track { animation: none; }
  .hero-scene, .contact-link, .community-social button { transition: none; }
  .community-social button:hover, .community-social button:focus-visible, .community-social button:active { transform: none; }
  .download-loading-ring, .poster-button[aria-busy="true"]::after { animation: none; }
}
