/* ============================================================
   黄果短剧 — Portal Website (Premium Redesign)
   ============================================================ */

/* --- Font (local subset) ----------------------------------- */
@font-face {
  font-family: 'Noto Serif SC';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/NotoSerifSC-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Noto Serif SC';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('../fonts/NotoSerifSC-900.woff2') format('woff2');
}

/* --- Reset & Base ------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; margin: 0; }

html, body {
  width: 100%; height: 100%;
  font-family: "Noto Serif SC", "PingFang SC", "Songti SC", serif;
  font-size: 16px;
  color: #ede8e0;
  background: #08080c;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
  overflow: hidden;
}

img {
  -webkit-user-drag: none;
  -webkit-user-select: none;
  user-select: none;
}

/* --- Scroll-Snap Deck ------------------------------------- */
.deck {
  width: 100%;
  height: 100vh;
  overflow-y: scroll;
  overflow-x: hidden;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.deck::-webkit-scrollbar { display: none; }

.deck-page {
  width: 100%;
  height: 100vh;
  overflow: hidden;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

/* --- Fit Container (1920x1080 scaled) --------------------- */
.fit {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  background: #08080c;
}

.stage {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(var(--fit, 1));
  width: 1920px;
  height: 1080px;
  z-index: 2;
  pointer-events: none;
}

/* ============================================================
   SECTION 1 — HERO
   ============================================================ */
.hero-section {
  -webkit-user-select: none;
  user-select: none;
  width: 100%; height: 100%;
  position: relative;
  overflow: hidden;
}

/* Background carousel + cinematic overlay */
.hero-bg {
  position: absolute;
  inset: 0;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8,8,12,0.6) 0%, rgba(8,8,12,0.25) 40%, rgba(8,8,12,0.5) 80%, rgba(8,8,12,0.85) 100%),
    linear-gradient(90deg, rgba(8,8,12,0.7) 0%, transparent 50%);
  z-index: 1;
}
.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: opacity 1.2s ease-in-out;
}

/* Nav bar */
.hero-nav {
  position: absolute;
  left: 220px; top: 38px;
  width: 1480px; height: 77px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: auto;
}
.hero-logo {
  width: 220px; height: 77px;
  object-fit: contain;
  display: block;
}
/* Nav tabs */
.nav-tabs {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-tab {
  font-family: "PingFang SC", "Noto Serif SC", sans-serif;
  font-weight: 500;
  font-size: 24px;
  color: #c9956a;
  text-decoration: none;
  letter-spacing: 2px;
  padding: 12px 28px;
  border-radius: 999px;
  border: 1px solid rgba(200, 149, 106, 0.3);
  transition: background 0.25s, border-color 0.25s;
  white-space: nowrap;
}
.nav-tab:hover {
  background: rgba(200, 149, 106, 0.15);
  border-color: rgba(200, 149, 106, 0.6);
}

/* Title block */
.hero-theme {
  position: absolute;
  left: 220px; top: 260px;
  width: 800px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.hero-title {
  margin: 0;
  display: flex;
  flex-direction: column;
  font-family: "Noto Serif SC", "PingFang SC", "Songti SC", serif;
  font-weight: 900;
  line-height: 1.3;
  white-space: nowrap;
}
.hero-title-line {
  display: block;
}
.hero-title-hl {
  font-size: 110px;
  background: linear-gradient(135deg, #e8d5b0 0%, #c9956a 50%, #a86e4a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-title-sub {
  font-size: 72px;
  font-weight: 900;
  color: #ede8e0;
  margin-top: 8px;
}

.hero-desc {
  margin: 0;
  font-family: "PingFang SC", "Noto Serif SC", sans-serif;
  font-weight: 500;
  font-size: 30px;
  line-height: 1;
  letter-spacing: 4px;
  color: rgba(237, 232, 224, 0.5);
}

/* CTA / Download area */
.hero-cta {
  position: absolute;
  left: 220px; top: 740px;
  width: 756px; height: 240px;
  display: flex;
  align-items: flex-start;
  gap: 28px;
  pointer-events: auto;
}

/* QR frame */
.qr-wrap {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.qr-frame {
  width: 190px; height: 190px;
  padding: 1px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(200,149,106,0.6), rgba(200,149,106,0.15));
}
.qr-inner {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 19px;
  background: #0c0c10;
  overflow: hidden;
}
#qrcode {
  width: 148px; height: 148px;
  background: #fff;
  border-radius: 10px;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
#qrcode img, #qrcode canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

/* CTA right column */
.cta-right {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-top: 8px;
}

.qr-title {
  margin: 0;
  font-family: "PingFang SC", "Noto Serif SC", sans-serif;
  font-weight: 500;
  font-size: 26px;
  line-height: 1;
  color: rgba(237, 232, 224, 0.7);
}

/* Download button */
.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 20px 44px;
  border-radius: 16px;
  background: linear-gradient(135deg, #c9956a, #a86e4a);
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(168, 110, 74, 0.25);
  transition: box-shadow 0.2s;
}
.download-btn:hover {
  box-shadow: 0 8px 32px rgba(168, 110, 74, 0.4);
}
.download-btn svg {
  width: 28px; height: 28px;
  flex-shrink: 0;
}
.download-btn-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.download-btn-main {
  font-family: "PingFang SC", "Noto Serif SC", sans-serif;
  font-weight: 700;
  font-size: 24px;
  color: #fff;
  line-height: 1;
}
.download-btn-sub {
  font-family: "PingFang SC", "Noto Serif SC", sans-serif;
  font-weight: 400;
  font-size: 16px;
  color: rgba(255,255,255,0.6);
  line-height: 1;
}

.qr-tip {
  margin: 0;
  font-family: "PingFang SC", "Noto Serif SC", sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.6;
  color: rgba(237, 232, 224, 0.35);
  max-width: 440px;
}

/* Cover thumbnails */
.hero-covers {
  position: absolute;
  left: 1184px; top: 778px;
  width: 606px; height: 152px;
  pointer-events: auto;
}
.hero-covers img {
  width: 100%; height: 100%;
  object-fit: contain;
}
.cover-hit {
  position: absolute;
  top: 0;
  width: 110px; height: 152px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.cover-hit:hover,
.cover-hit.active {
  border-color: rgba(200, 149, 106, 0.5);
  background: rgba(200, 149, 106, 0.1);
}

/* ============================================================
   SECTION 2 — ABOUT / WHO WE ARE
   ============================================================ */
.about-section {
  -webkit-user-select: none;
  user-select: none;
  width: 100%; height: 100%;
  position: relative;
  overflow: hidden;
  background: #08080c;
}
.about-bg {
  position: absolute;
  inset: 0;
}
.about-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.7;
}

.about-content {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 52px;
}

.about-intro {
  width: 840px;
  display: flex;
  flex-direction: column;
  gap: 60px;
}
.about-head {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.eyebrow {
  margin: 0;
  font-family: "Noto Serif SC", "PingFang SC", "Songti SC", serif;
  font-weight: 400;
  font-size: 36px;
  line-height: 1;
  color: #c9956a;
  letter-spacing: 4px;
}
.section-title {
  margin: 0;
  font-family: "Noto Serif SC", "PingFang SC", "Songti SC", serif;
  font-weight: 900;
  font-size: 60px;
  line-height: 1.4;
  color: #ede8e0;
}
.about-paras {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.about-paras p {
  margin: 0;
  font-family: "Noto Serif SC", "PingFang SC", "Songti SC", serif;
  font-weight: 400;
  font-size: 20px;
  line-height: 1.6;
  color: rgba(237, 232, 224, 0.7);
}

/* Feature cards */
.about-cards {
  display: flex;
  align-items: center;
  gap: 20px;
}
.about-card {
  position: relative;
  width: 230px;
  box-sizing: border-box;
  padding: 70px 35px;
  border-radius: 24px;
  background: rgba(237, 232, 224, 0.04);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.about-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(180deg, rgba(200,149,106,0.4), rgba(200,149,106,0.05));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.about-card h3 {
  margin: 0;
  width: 160px;
  font-family: "Noto Serif SC", "PingFang SC", "Songti SC", serif;
  font-weight: 700;
  font-size: 36px;
  line-height: 1.2;
  color: #c9956a;
}
.about-card p {
  margin: 0;
  width: 160px;
  font-family: "Noto Serif SC", "PingFang SC", "Songti SC", serif;
  font-weight: 400;
  font-size: 22px;
  line-height: 1.5;
  text-align: justify;
  color: rgba(237, 232, 224, 0.5);
}

/* ============================================================
   SECTION 3 — STAY TUNED / FOOTER
   ============================================================ */
.footer-section {
  -webkit-user-select: none;
  user-select: none;
  width: 100%; height: 100%;
  position: relative;
  overflow: hidden;
  background: #08080c;
}
.footer-bg {
  position: absolute;
  inset: 0;
}
.footer-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.5;
}

.footer-content {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 48px;
}

.footer-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.footer-head .section-title {
  text-align: center;
  line-height: 1.2;
}

.footer-paras {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.footer-paras p {
  margin: 0;
  font-family: "Noto Serif SC", "PingFang SC", "Songti SC", serif;
  font-weight: 400;
  font-size: 22px;
  line-height: 1;
  color: rgba(237, 232, 224, 0.6);
  text-align: center;
}

/* Telegram button */
.tg-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 36px;
  border-radius: 999px;
  background: #229ed9;
  box-shadow: 0 8px 24px rgba(34, 158, 217, 0.15);
  text-decoration: none;
  cursor: pointer;
  transition: box-shadow 0.2s;
}
.tg-btn:hover {
  box-shadow: 0 10px 32px rgba(34, 158, 217, 0.25);
}
.tg-icon {
  width: 32px; height: 32px;
  display: block;
}
.tg-btn span {
  font-family: "PingFang SC", "Noto Serif SC", sans-serif;
  font-weight: 700;
  font-size: 20px;
  line-height: 1;
  color: #fff;
  white-space: nowrap;
}

/* Share-for-VIP promo card */
.promo-card {
  width: 520px;
  padding: 32px 36px;
  border-radius: 20px;
  background: rgba(237, 232, 224, 0.04);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(200, 149, 106, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.promo-title {
  font-family: "Noto Serif SC", "PingFang SC", serif;
  font-weight: 900;
  font-size: 22px;
  color: #c9956a;
}
.promo-desc {
  margin: 0;
  font-family: "PingFang SC", "Noto Serif SC", sans-serif;
  font-size: 14px;
  color: rgba(237, 232, 224, 0.5);
  text-align: center;
  line-height: 1.6;
}
.promo-tiers {
  width: 100%;
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  overflow: hidden;
}
.promo-tier {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: rgba(237, 232, 224, 0.03);
  border-bottom: 1px solid rgba(237, 232, 224, 0.05);
}
.promo-tier:last-child { border-bottom: none; }
.promo-tier-action {
  font-family: "PingFang SC", "Noto Serif SC", sans-serif;
  font-size: 14px;
  color: rgba(237, 232, 224, 0.7);
}
.promo-tier-reward {
  font-family: "PingFang SC", "Noto Serif SC", sans-serif;
  font-weight: 700;
  font-size: 13px;
  padding: 4px 12px;
  border-radius: 6px;
}
.tier-bronze .promo-tier-reward { background: rgba(168,110,74,0.15); color: #c9956a; }
.tier-silver .promo-tier-reward { background: rgba(192,192,192,0.1); color: #b0b0b0; }
.tier-gold .promo-tier-reward { background: rgba(200,149,106,0.15); color: #e8d5b0; }
.promo-cta {
  display: inline-flex;
  align-items: center;
  padding: 11px 28px;
  border-radius: 999px;
  background: linear-gradient(135deg, #c9956a, #a86e4a);
  text-decoration: none;
  font-family: "PingFang SC", "Noto Serif SC", sans-serif;
  font-weight: 600;
  font-size: 15px;
  color: #fff;
  letter-spacing: 1px;
  transition: box-shadow 0.2s;
}
.promo-cta:hover {
  box-shadow: 0 4px 16px rgba(168, 110, 74, 0.3);
}

/* Footer bottom */
.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.footer-logo {
  width: 180px; height: 63px;
  object-fit: contain;
  display: block;
  opacity: 0.7;
}
.footer-copy {
  margin: 0;
  font-family: "PingFang SC", "Noto Serif SC", sans-serif;
  font-weight: 400;
  font-size: 13px;
  line-height: 1.4;
  color: rgba(237, 232, 224, 0.3);
  text-align: center;
}

/* ============================================================
   RESPONSIVE — Mobile (<768px)
   Premium mobile-first redesign
   ============================================================ */
@media (max-width: 768px) {
  .deck {
    scroll-snap-type: none;
  }
  .deck-page {
    height: auto;
    min-height: 100vh;
    scroll-snap-align: none;
  }

  /* Stage: cancel the 1920x1080 scaling, use natural flow */
  .stage {
    position: relative;
    top: auto; left: auto;
    transform: none;
    width: 100%;
    height: auto;
    padding: 0 24px;
    padding-top: env(safe-area-inset-top, 20px);
    pointer-events: auto;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
  }

  /* ── Nav ── */
  .hero-nav {
    position: relative;
    left: auto; top: auto;
    width: 100%; height: auto;
    padding: 20px 0 16px;
    flex-wrap: nowrap;
  }
  .hero-logo {
    width: 100px; height: auto;
  }
  .nav-tabs {
    gap: 4px;
  }
  .nav-tab {
    font-family: "PingFang SC", "Noto Serif SC", sans-serif !important;
    font-size: 11px !important;
    font-weight: 500 !important;
    padding: 6px 10px !important;
    letter-spacing: 0.5px !important;
    color: #c9956a !important;
    text-decoration: none !important;
    border: 1px solid rgba(200, 149, 106, 0.35) !important;
    border-radius: 999px !important;
    background: rgba(200, 149, 106, 0.06) !important;
    display: inline-block !important;
    white-space: nowrap !important;
    line-height: 1 !important;
  }

  /* ── Title: centered on mobile ── */
  .hero-theme {
    position: relative;
    left: auto; top: auto;
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 28px 0 20px;
    flex-grow: 1;
    justify-content: center;
  }
  .hero-title {
    white-space: normal;
    align-items: center;
  }
  .hero-title-line {
    display: block;
    text-align: center;
  }
  .hero-title-hl {
    font-size: 44px;
  }
  .hero-title-sub {
    font-size: 30px;
    margin-top: 2px;
  }
  .hero-desc {
    font-size: 13px;
    letter-spacing: 2px;
    text-align: center;
    color: rgba(237, 232, 224, 0.45);
  }

  /* ── CTA: hide QR on mobile, show download button as primary ── */
  .hero-cta {
    position: relative;
    left: auto; top: auto;
    width: 100%; height: auto;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding-bottom: 20px;
  }
  .qr-wrap {
    display: none !important;
  }
  .cta-right {
    width: 100%;
    align-items: center;
  }
  .qr-title {
    font-size: 15px;
    text-align: center;
    color: rgba(237, 232, 224, 0.55);
    margin-bottom: 4px;
  }
  .download-btn {
    display: inline-flex !important;
    padding: 16px 48px !important;
    border-radius: 14px !important;
    background: linear-gradient(135deg, #c9956a, #a86e4a) !important;
    text-decoration: none !important;
    box-shadow: 0 6px 24px rgba(168, 110, 74, 0.3) !important;
    gap: 10px !important;
  }
  .download-btn svg {
    width: 22px !important; height: 22px !important;
    fill: white !important;
  }
  .download-btn-main {
    font-family: "PingFang SC", sans-serif !important;
    font-size: 17px !important;
    font-weight: 700 !important;
    color: #fff !important;
    line-height: 1 !important;
  }
  .download-btn-sub {
    font-family: "PingFang SC", sans-serif !important;
    font-size: 11px !important;
    font-weight: 400 !important;
    color: rgba(255,255,255,0.6) !important;
    line-height: 1 !important;
  }
  .download-btn-text {
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
  }
  .qr-tip {
    font-size: 11px;
    text-align: center;
    max-width: 280px;
    color: rgba(237, 232, 224, 0.3);
  }

  /* ── Covers: single row, auto width ── */
  .hero-covers {
    position: relative;
    left: auto; top: auto;
    width: 100%; height: auto;
    margin-top: 12px;
    padding-bottom: 20px;
  }
  .cover-hit { display: none; }

  /* ── Section 2: About ── */
  .about-content {
    position: relative;
    left: auto; top: auto;
    transform: none;
    flex-direction: column;
    padding: 48px 24px;
    gap: 36px;
  }
  .about-intro { width: 100%; gap: 32px; }
  .section-title { font-size: 26px; }
  .eyebrow { font-size: 18px; letter-spacing: 2px; }
  .about-paras p { font-size: 14px; color: rgba(237,232,224,0.6); }
  .about-cards { flex-direction: column; width: 100%; gap: 12px; }
  .about-card {
    width: 100%;
    padding: 28px 24px;
    border-radius: 16px;
  }
  .about-card h3 { width: 100%; font-size: 24px; }
  .about-card p { width: 100%; font-size: 15px; }

  /* ── Section 3: Footer ── */
  .footer-content {
    position: relative;
    left: auto; top: auto;
    transform: none;
    padding: 48px 24px;
    gap: 32px;
  }
  .footer-head .section-title { font-size: 24px; }
  .footer-paras p { font-size: 15px; }
  .tg-btn {
    padding: 14px 28px;
  }
  .tg-btn span { font-size: 16px; }
  .tg-icon { width: 24px; height: 24px; }

  /* Promo card */
  .promo-card {
    width: 100%;
    padding: 24px 20px;
    border-radius: 16px;
  }
  .promo-title { font-size: 18px; }
  .promo-desc { font-size: 13px; }
  .promo-tier {
    padding: 12px 16px;
  }
  .promo-tier-action { font-size: 13px; }
  .promo-tier-reward { font-size: 12px; }
  .promo-cta {
    font-size: 14px;
    padding: 10px 24px;
  }

  .footer-logo { width: 120px; height: auto; }
  .footer-copy { font-size: 11px; }
}

/* --- SEO Content (visually hidden, crawler-readable) -------- */
.seo-content {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}
.seo-content h1 { font-size: 24px; margin-bottom: 16px; }
.seo-content h2 { font-size: 20px; margin: 16px 0 8px; }
.seo-content p { font-size: 16px; line-height: 1.6; margin-bottom: 8px; }
.seo-content ul { padding-left: 20px; }
.seo-content li { margin-bottom: 6px; }
.seo-content .btn {
  display: inline-block;
  padding: 12px 24px;
  margin: 8px 4px;
  background: #c9956a;
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
}
