/* 首页上的 NipaPlay Next 入口：始终是深色，不随站点主题变化 */
@font-face { font-family: NipaSerif; src: url(/next-assets/fonts/nipa-serif.woff2) format("woff2"); font-weight: 900; font-display: swap; }
section.nx-tile { max-width: none; padding: 0; margin: 0 auto 2rem; width: min(1400px, calc(100% - 32px)); }
.nx-card { position: relative; overflow: hidden; border-radius: 28px; height: min(78vh, 720px); min-height: 520px; background: #000; color: #f5f1ea; isolation: isolate;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif; }
.nx-bd { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); animation: nx-kb 24s ease-in-out infinite alternate; }
@keyframes nx-kb { to { transform: scale(1) translateX(-1.5%); } }
.nx-card::after { content: ""; position: absolute; inset: 0; z-index: 1; background:
  linear-gradient(90deg, rgba(0,0,0,.92) 0%, rgba(0,0,0,.72) 38%, rgba(0,0,0,.2) 70%, rgba(0,0,0,.45) 100%),
  linear-gradient(180deg, rgba(0,0,0,.2), transparent 30%, transparent 60%, rgba(0,0,0,.85)); }
.nx-wall { position: absolute; z-index: 1; right: -4%; top: -30%; bottom: -30%; width: 38%; display: flex; gap: 14px; transform: rotate(-9deg); opacity: .9; }
.nx-wall div { flex: 1; display: flex; flex-direction: column; gap: 14px; animation: nx-up 60s linear infinite; }
.nx-wall div:nth-child(2) { animation-direction: reverse; animation-duration: 70s; }
.nx-wall img { width: 100%; aspect-ratio: 2/3; object-fit: cover; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.5); }
@keyframes nx-up { to { transform: translateY(-50%); } }
.nx-copy { position: absolute; z-index: 3; left: clamp(28px, 6vw, 88px); top: 50%; transform: translateY(-54%); max-width: 560px; }
.nx-k { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; letter-spacing: .3em; color: rgba(245,241,234,.72); }
.nx-k i { width: 7px; height: 7px; border-radius: 50%; background: #ff2e55; box-shadow: 0 0 10px #ff2e55; }
.nx-copy h2 { margin: 22px 0 0; font-family: NipaSerif, "Songti SC", "Noto Serif SC", serif; font-weight: 900; font-size: clamp(48px, 7vw, 104px); line-height: .95; letter-spacing: -.01em; color: #f5f1ea; }
.nx-copy h2 span { color: #ff2e55; }
.nx-copy p { margin: 24px 0 0; font-size: clamp(16px, 1.4vw, 20px); line-height: 1.7; color: rgba(245,241,234,.78); }
.nx-btns { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 12px; }
.nx-btns a { display: inline-flex; align-items: center; height: 48px; padding: 0 24px; border-radius: 999px; font-size: 15px; font-weight: 600; text-decoration: none; transition: transform .2s; }
.nx-btns a:hover { transform: translateY(-1px); }
.nx-btns .nx-pink { background: #ff2e55; color: #fff; box-shadow: 0 8px 28px rgba(255,46,85,.35); }
.nx-btns .nx-ghost { background: rgba(245,241,234,.1); color: #f5f1ea; border: 1px solid rgba(245,241,234,.18); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.nx-ask { position: absolute; z-index: 3; left: clamp(28px, 6vw, 88px); bottom: 34px; width: min(460px, calc(100% - 56px)); height: 52px; display: flex; align-items: center; gap: 12px; padding: 0 8px;
  border-radius: 999px; background: rgba(20,20,26,.62); border: 1px solid rgba(245,241,234,.16); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.nx-ask img { width: 36px; height: 36px; border-radius: 50%; }
.nx-ask span { font-size: 15px; white-space: nowrap; overflow: hidden; width: 0; border-right: 2px solid #ff2e55; animation: nx-type 7s steps(5) infinite, nx-caret 1s steps(1) infinite; }
@keyframes nx-type { 0%, 12% { width: 0; } 40%, 82% { width: 5.2em; } 100% { width: 0; } }
@keyframes nx-caret { 50% { border-color: transparent; } }
.nx-ask b { margin-left: auto; width: 36px; height: 36px; border-radius: 50%; background: #ff2e55; display: grid; place-items: center; color: #fff; font-size: 16px; }
.nx-dm { position: absolute; z-index: 2; inset: 0; pointer-events: none; overflow: hidden; }
.nx-dm span { position: absolute; left: 100%; white-space: nowrap; font-size: clamp(15px, 1.4vw, 20px); font-weight: 600; color: #fff; text-shadow: 0 0 2px #000, 0 0 2px #000;
  animation: nx-dm 12s linear infinite; }
.nx-dm span:nth-child(1) { top: 12%; animation-delay: 0s; }
.nx-dm span:nth-child(2) { top: 20%; animation-delay: 3.5s; color: #ffb3c4; }
.nx-dm span:nth-child(3) { top: 8%; animation-delay: 7s; color: #ffe08a; }
.nx-dm span:nth-child(4) { top: 26%; animation-delay: 9.5s; }
@keyframes nx-dm { to { transform: translateX(calc(-1400px - 100%)); } }
.nx-peek { position: absolute; z-index: 3; right: 30%; bottom: -26px; width: clamp(110px, 12vw, 170px); transform: rotate(-6deg); filter: drop-shadow(0 10px 20px rgba(0,0,0,.5)); }
@media (max-width: 760px) {
  section.nx-tile { width: calc(100% - 20px); }
  .nx-card { height: 640px; border-radius: 22px; }
  .nx-wall { width: 70%; right: -26%; opacity: .45; }
  .nx-copy { top: 42%; }
  .nx-peek { right: 2%; width: 104px; bottom: -18px; }
  .nx-ask { width: calc(100% - 150px); }
}
@media (prefers-reduced-motion: reduce) {
  .nx-bd, .nx-wall div, .nx-dm span { animation: none; }
  .nx-dm { display: none; }
  .nx-ask span { animation: none; width: 5.2em; border: 0; }
}
