/* 黄柚短剧：按提供的 PC / H5 五段切图分别排版，保留图片原始比例。 */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; width: 100%; min-height: 100%; }
html { color-scheme: dark; }
body { background: #080603; color: #f9df9c; font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif; overflow-x: hidden; }
img { display: block; width: 100%; height: auto; -webkit-user-drag: none; }
picture { display: block; }
h1, h2, p { margin: 0; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
a:hover { color: #fff4ce; }
button:focus-visible, a:focus-visible, [tabindex]:focus-visible { outline: 3px solid #ffe67f; outline-offset: 5px; }
.landing { width: 100%; }
.campaign { position: relative; width: 100%; background-position: center; background-size: 100% 100%; }
.campaign > picture, .campaign > h1, .campaign > h2, .image-button { position: absolute; }
.image-button { border: 0; padding: 0; background: transparent; transition: filter .2s, transform .2s; }
.image-button:hover { filter: brightness(1.12); transform: translateY(-2px); }
.site-header { position: absolute; inset: 3.5% 5.2% auto; display: flex; gap: 2.5%; align-items: center; z-index: 2; }
.site-logo { width: 22.5%; }
.cooperation { display: flex; gap: 1.5em; align-items: center; font-size: clamp(12px, 1vw, 20px); }
.site-header .cooperation { margin-left: auto; }
.site-header .header-download { position: static; width: 12%; }
.hero { aspect-ratio: 1920 / 934; background-image: url('/static/assets/huangyou/pc/hero-bg.png'); }
.hero-brand { left: 5.2%; top: 20%; width: 39%; }
.hero-download { left: 8%; top: 61%; width: 26.1%; }
.hero-trust { left: 6%; top: 77%; width: 32%; }
.qr-card { position: absolute; left: 39.7%; top: 60%; width: 9%; text-align: center; }
#pcQr { padding: 8%; aspect-ratio: 1; background: #fff; border-radius: 6px; }
#pcQr canvas, #pcQr img { width: 100% !important; height: 100% !important; }
.qr-card p { margin-top: 8px; font-size: clamp(10px, 1vw, 18px); }
.install-guide { position: absolute; left: 8%; top: 86%; width: 26.1%; padding: 8px 0; border: 0; background: transparent; font-size: clamp(12px, 1vw, 18px); }
.theater { aspect-ratio: 1920 / 558; background-image: url('/static/assets/huangyou/pc/theater-bg.png'); }
.theater-title { width: 22%; left: 39%; top: 0; }
.poster-strip { position: absolute; top: 43%; left: 12.5%; width: 75%; display: flex; gap: 1.6%; overflow-x: auto; scrollbar-width: thin; scrollbar-color: #876529 transparent; padding-bottom: 8px; }
.poster { flex: 0 0 15.33%; width: 15.33%; border-radius: 8px; overflow: hidden; }
.features { aspect-ratio: 1920 / 728; background-image: url('/static/assets/huangyou/pc/features-bg.png'); }
.features-title { top: 5%; left: 37%; width: 26%; }
.feature-art { top: 34%; left: 18.75%; width: 62.5%; }
.section-download { top: 76%; left: 38.6%; width: 22.8%; }
.about { aspect-ratio: 1920 / 751; background-image: url('/static/assets/huangyou/pc/about-bg.png'); }
.about-art { top: 8%; left: 12.5%; width: 28.3%; }
.wish-ranking { top: 3%; left: 47%; width: 43%; }
.wish-link { position: absolute; top: 78%; left: 60%; width: 19%; height: 12%; padding: 0; border: 0; background: transparent; }
.wish-link img { width: 100%; }
.campaign-footer { aspect-ratio: 1920 / 887; background-image: url('/static/assets/huangyou/pc/footer-bg.png'); }
.footer-brand { top: 15%; left: 9%; width: 37%; }
.footer-download { top: 57%; left: 15%; width: 22.8%; }
.footer-trust { top: 74%; left: 7%; width: 39%; }
.install-notice { top: 86%; left: 13.4%; width: 26.4%; }
.footer-links { position: absolute; bottom: 2%; width: 100%; display: flex; gap: 2em; justify-content: center; align-items: center; }
.footer-links button { border: 0; background: none; padding: 8px; font-size: 12px; }
.h5-only, .mobile-downloads { display: none; }
@media (max-width: 960px) {
  .pc-only { display: none !important; }
  .h5-only { display: block; }
  .landing { max-width: 750px; margin: 0 auto; }
  .site-header { inset: 2.8% 4.3% auto; gap: 4%; }
  .site-logo { width: 26.5%; flex-shrink: 0; }
  .cooperation { font-size: clamp(10px, 2.65vw, 18px); gap: 1em; }
  .site-header .cooperation { justify-content: flex-end; flex-wrap: wrap; row-gap: 6px; }
  .hero { aspect-ratio: 750 / 1086; background-image: url('/static/assets/huangyou/h5/hero-bg.png'); }
  .hero-brand { top: 12%; left: 20.7%; width: 58.6%; }
  .hero-trust { top: 33.5%; left: 8.8%; width: 82.4%; }
  .mobile-downloads { display: flex; gap: 4%; }
  .mobile-downloads .image-button { position: static; width: 48%; }
  .hero > .mobile-downloads { position: absolute; top: 87%; left: 8%; width: 84%; }
  .install-guide { top: 94%; left: 8%; width: 84%; font-size: clamp(11px, 2.8vw, 18px); padding: 4px; }
  .theater { aspect-ratio: 750 / 612; background-image: url('/static/assets/huangyou/h5/theater-bg.png'); }
  .theater-title { width: 61.1%; left: 19.45%; top: 1%; }
  .poster-strip { top: 44%; left: 4.3%; width: 91.4%; gap: 3%; padding-bottom: 10px; scroll-snap-type: x proximity; }
  .poster { flex-basis: 32%; width: 32%; scroll-snap-align: start; }
  .features { aspect-ratio: 750 / 1298; background-image: url('/static/assets/huangyou/h5/features-bg.png'); }
  .features-title { top: 6%; left: 21.9%; width: 56.2%; }
  .feature-art { top: 25%; left: 21.7%; width: 56.6%; }
  .features-mobile-download { position: absolute; top: 75%; left: 8%; width: 84%; }
  .about { aspect-ratio: 750 / 1006; background-image: url('/static/assets/huangyou/h5/about-bg.png'); }
  .about-art { top: 1%; left: 20%; width: 60%; }
  .wish-link { top: 34.4%; left: 25.5%; width: 48.3%; height: 8.9%; }
  .wish-ranking { top: 47%; left: 1%; width: 98%; }
  .campaign-footer { aspect-ratio: 750 / 1228; background-image: url('/static/assets/huangyou/h5/footer-bg.png'); }
  .footer-brand { top: 8%; left: 20.7%; width: 58.6%; }
  .footer-trust { top: 27%; left: 8.8%; width: 82.4%; }
  .footer-mobile-download { position: absolute; top: 82%; left: 8%; width: 84%; }
  .install-notice { top: 91%; left: 22.25%; width: 55.5%; }
  .footer-links { bottom: 1%; gap: 1em; }
}
@media (prefers-reduced-motion: reduce) { .image-button { transition: none; } }

/* 轻量 toast：下载链未配置时给用户可见反馈（见 landing.js trackThenGo）。 */
.landing-toast {
  position: fixed;
  left: 50%;
  bottom: 12%;
  z-index: 200;
  max-width: 80vw;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .82);
  color: #fff;
  font-size: 14px;
  line-height: 1.4;
  text-align: center;
  transform: translate(-50%, 8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease;
}
.landing-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Android 安装教程弹层（继承原落地页行为）。 */
.android-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  overflow-y: auto;
  background: #f5f5f5;
  color: #222;
}
.android-modal[hidden] { display: none; }
.android-modal-header {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid #eee;
  background: #fff;
}
.android-modal-back { width: 32px; height: 32px; padding: 0; border: 0; background: none; cursor: pointer; }
.android-modal-back img { width: 100%; height: 100%; object-fit: contain; }
.android-modal-title { flex: 1; text-align: center; font-size: 16px; font-weight: 600; }
.android-modal-spacer { width: 32px; }
.android-modal-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  max-width: 750px;
  margin: 0 auto;
  padding: 12px;
}
.android-modal-cell { display: block; overflow: hidden; border-radius: 8px; background: #fff; text-decoration: none; }
.android-modal-cell img { width: 100%; }
.android-modal-detail { width: 100%; max-width: 750px; margin: 0 auto; padding: 12px; }
.android-modal-detail[hidden] { display: none; }
.android-modal-pic { overflow: hidden; margin-bottom: 8px; border-radius: 8px; background: #fff; }
.android-modal-pic img { width: 100%; }

/* 后台可配的右下角浮动广告；无数据时模板不渲染。 */
.ad-float {
  position: fixed;
  right: 12px;
  bottom: 16px;
  z-index: 50;
  width: min(80px, 22vw);
  aspect-ratio: 1;
}
.ad-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .35s; }
.ad-slide.active { opacity: 1; }
.ad-slide img { width: 100%; height: 100%; object-fit: contain; border-radius: 8px; background: rgba(0,0,0,.12); }
.ad-close {
  position: absolute;
  top: -8px;
  right: -8px;
  z-index: 1;
  width: 20px;
  height: 20px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(0,0,0,.65);
  color: #fff;
  cursor: pointer;
}

@media (min-width: 961px) {
  .ad-float { right: 24px; bottom: 24px; width: 96px; }
}

@media (prefers-reduced-motion: reduce) {
  .ad-slide { transition: none; }
}
