﻿:root {
  --bg: #050208;
  --text: #f2e9ff;
  --accent: #a65fff;
  --accent-hot: #d8a5ff;
  --portal-core: #7c2dc6;
  --portal-shadow: rgba(130, 57, 201, 0.45);
  --hero-font: "ITC Avant Garde Gothic Demi", "ITCAvantGardeGothicDemi", "SimHei", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

@font-face {
  font-family: "ITC Avant Garde Gothic Demi";
  src: url("font/itc-avant-garde-gothic-std-demi_8kAJG/ITC Avant Garde Gothic Std Demi/ITC Avant Garde Gothic Std Demi.otf") format("opentype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", "Microsoft YaHei", sans-serif;
}

body {
  overflow: hidden;
}

.app {
  min-height: 100vh;
}

.site-footer {
  position: fixed;
  left: 50%;
  bottom: 8px;
  transform: translateX(-50%);
  z-index: 6;
  margin: 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.62);
  font-size: 11px;
  line-height: 1.35;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

.site-footer p {
  margin: 0;
}

.admin-login-btn {
  position: fixed;
  top: 10px;
  right: 12px;
  z-index: 40;
  min-height: 24px;
  padding: 0 0.45rem;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.7rem;
  font-family: "SimHei", "Microsoft YaHei", sans-serif;
  color: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(4px);
  opacity: 0.24;
  transition: opacity 180ms ease, color 180ms ease, border-color 180ms ease;
}

.admin-login-btn:hover {
  opacity: 0.62;
  color: rgba(255, 255, 255, 0.72);
  border-color: rgba(255, 255, 255, 0.32);
}

.music-fab {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 50;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(225, 186, 255, 0.72);
  border-radius: 999px;
  background: rgba(168, 88, 255, 0.5);
  color: rgba(255, 245, 255, 0.96);
  font-size: 1.42rem;
  line-height: 1;
  display: grid;
  place-items: center;
  backdrop-filter: blur(8px) saturate(1.04);
  box-shadow: 0 10px 24px rgba(10, 8, 22, 0.28);
  user-select: none;
  touch-action: none;
  cursor: pointer;
}

.music-fab:not(.is-playing) {
  opacity: 0.5;
  filter: grayscale(0.35);
}

.portal-loader,
.main-page {
  position: fixed;
  inset: 0;
}

.portal-loader {
  z-index: 20;
  display: grid;
  place-items: center;
  background-image: url("asset/netherrack_tile.png");
  background-size: 92px 92px;
  background-repeat: repeat;
  image-rendering: pixelated;
  overflow: hidden;
}

.portal-loader::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, transparent 58%, rgba(0, 0, 0, 0.28) 100%);
  pointer-events: none;
}

.loader-content {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: 0.95rem;
  padding: 1rem;
}

.loader-title {
  margin: 0;
  font-size: clamp(1rem, 2.2vw, 1.4rem);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #e5c9ff;
  text-shadow: 0 0 16px rgba(169, 93, 255, 0.8);
}

.loader-status {
  margin: 0;
  font-size: clamp(0.92rem, 1.5vw, 1.08rem);
  color: #ede2ff;
  opacity: 0.94;
}

.portal-transfer-text {
  position: absolute;
  top: clamp(10px, 6vh, 44px);
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  z-index: 4;
  font-family: "SimHei", "Microsoft YaHei", sans-serif;
  font-weight: 800;
  font-size: clamp(1rem, 2.2vw, 1.3rem);
  letter-spacing: 0.04em;
  color: #ecd9ff;
  text-shadow: 0 0 14px rgba(143, 72, 224, 0.6);
}

.portal-transfer-dots {
  display: inline-block;
  width: 0;
  overflow: hidden;
  vertical-align: bottom;
  animation: loadingDots 1.2s steps(4, end) infinite;
}

@keyframes loadingDots {
  from { width: 0; }
  to { width: 1.5em; }
}

.portal-stage {
  --portal-gap: 6px;
  position: relative;
  width: min(70vw, 470px);
  aspect-ratio: 4 / 5;
  display: grid;
  place-items: center;
  margin-top: 0.4rem;
  cursor: default;
  outline: none;
}

.portal-frame {
  position: absolute;
  inset: 0;
}

.portal-frame {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(5, 1fr);
  gap: var(--portal-gap);
}

.block {
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 200ms ease, transform 220ms cubic-bezier(.34, 1.56, .64, 1);
  background-size: cover;
  image-rendering: pixelated;
  filter: drop-shadow(0 0 6px rgba(20, 8, 34, 0.8));
}

.block.on {
  opacity: 1;
  transform: scale(1);
}

.frame-block {
  background-image: url("asset/obsidian.png");
}

.portal-interior {
  position: absolute;
  left: calc((100% - (3 * var(--portal-gap))) / 4 + var(--portal-gap));
  top: calc((100% - (4 * var(--portal-gap))) / 5 + var(--portal-gap));
  width: calc(100% / 2 - (var(--portal-gap) / 2));
  height: calc((100% * 3 / 5) - (2 * var(--portal-gap) / 5));
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: 0;
  box-shadow:
    inset 0 0 24px rgba(127, 51, 197, 0.6),
    0 0 22px rgba(136, 60, 205, 0.42);
}

.portal-tile {
  opacity: 0;
  background-image: url("asset/block/NetherPortal.gif");
  background-size: cover;
  background-repeat: no-repeat;
  image-rendering: pixelated;
  filter: saturate(1.2) brightness(1.02);
}

.portal-tile.active {
  opacity: 0.95;
  animation: portalPulse 1.35s ease-in-out infinite;
}

@keyframes portalPulse {
  0%,
  100% {
    filter: hue-rotate(0deg) saturate(1.22) brightness(0.98);
  }
  50% {
    filter: hue-rotate(18deg) saturate(1.35) brightness(1.16);
  }
}

.ignite-tip {
  margin: 0;
  font-size: 0.98rem;
  color: var(--accent-hot);
  text-shadow: 0 0 10px rgba(176, 99, 255, 0.9);
  animation: tipBlink 1.3s ease-in-out infinite;
}

@keyframes tipBlink {
  0%,
  100% { opacity: 0.45; }
  50% { opacity: 1; }
}

.portal-loader.ready .portal-stage {
  cursor: url("asset/flint_cursor_48.png") 12 36, pointer;
}

.portal-loader.ready {
  cursor: url("asset/flint_cursor_48.png") 12 36, auto;
}

.hidden {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.particle-canvas,
.portal-flash {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.portal-flash {
  opacity: 0;
  background:
    radial-gradient(circle at 50% 50%, rgba(211, 164, 255, 0.4), rgba(111, 35, 201, 0.2), transparent 58%);
}

.portal-loader.ignite .portal-flash {
  animation: flashPop 680ms ease-out;
}

@keyframes flashPop {
  0% { opacity: 0; transform: scale(0.7); }
  25% { opacity: 1; }
  100% { opacity: 0; transform: scale(1.3); }
}

.ambient-vignette,
.scanline {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.portal-transition-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(circle at 50% 45%, rgba(146, 86, 226, 0.18) 0%, rgba(76, 26, 138, 0.5) 42%, rgba(17, 4, 32, 0.86) 74%, rgba(3, 1, 10, 0.98) 100%);
}

.ambient-vignette {
  background: radial-gradient(circle at 50% 35%, rgba(162, 95, 255, 0.06), transparent 42%);
}

.scanline {
  opacity: 0.08;
  background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0.33) 1px, transparent 1px);
  background-size: 100% 4px;
}

.main-page {
  z-index: 5;
  background: transparent;
  opacity: 1;
  visibility: visible;
  overflow-y: auto;
  overflow-x: hidden;
  transition: opacity 700ms ease;
}

.site-backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #09020f;
}

.hero {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: transparent;
}

.hero-carousel {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 900ms ease, transform 9s ease;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
}

.hero-overlay {
  display: none;
}

.hero-noise {
  display: none;
}

@keyframes drift {
  from { transform: translate3d(0, 0, 0) rotate(-1.5deg); }
  to { transform: translate3d(-30px, -26px, 0) rotate(-1.5deg); }
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 1.4rem;
  max-width: 880px;
}

.hero-kicker {
  margin: 0;
  letter-spacing: 0.28em;
  font-size: clamp(0.72rem, 1.4vw, 0.98rem);
  text-transform: uppercase;
  color: #f5bf99;
}

.hero-title {
  margin: 0.8rem auto 1rem;
  max-width: 960px;
  font-size: clamp(2rem, 6.4vw, 5.6rem);
  line-height: 1.06;
  font-weight: 700;
  font-family: var(--hero-font);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-shadow:
    0 0 18px rgba(189, 115, 255, 0.35),
    0 8px 20px rgba(7, 2, 12, 0.8);
}

.hero-subtitle {
  margin: 0.85rem 0 0;
  font-size: clamp(0.92rem, 1.75vw, 1.2rem);
  line-height: 1.6;
  font-weight: 800;
  font-family: var(--hero-font);
  color: rgba(244, 230, 255, 0.94);
}

.hero-scroll-btn {
  margin-top: 2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.62rem;
  white-space: nowrap;
  border: 1px solid rgba(220, 230, 245, 0.6);
  border-radius: 16px;
  padding: 0.95rem 1.7rem;
  font-family: var(--hero-font);
  font-size: clamp(1rem, 2vw, 1.28rem);
  font-weight: 800;
  letter-spacing: 0.03em;
  color: rgba(245, 249, 255, 0.96);
  text-decoration: none;
  background: rgba(170, 180, 198, 0.09);
  backdrop-filter: blur(12px) saturate(1.05);
  box-shadow:
    0 8px 22px rgba(16, 9, 32, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.hero-scroll-btn::after {
  content: "→";
  font-size: 1.1em;
  line-height: 1;
}

.hero-scroll-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow:
    0 14px 32px rgba(16, 9, 32, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.scroll-cue {
  position: relative;
  left: auto;
  bottom: auto;
  transform: none;
  margin: 1.7rem auto 0;
  z-index: 4;
  border: 0;
  border-radius: 999px;
  min-height: 42px;
  padding: 0.42rem 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: rgba(245, 249, 255, 0.94);
  background: rgba(94, 172, 255, 0.12);
  backdrop-filter: blur(10px) saturate(1.05);
  box-shadow: 0 8px 20px rgba(16, 9, 32, 0.2);
  font-family: var(--hero-font);
  font-size: clamp(0.74rem, 1.3vw, 0.9rem);
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: opacity 220ms ease, transform 220ms ease;
  animation: cueFloat 1.6s ease-in-out infinite;
}

.scroll-cue.is-soft {
  opacity: 0.56;
}

.scroll-cue.is-out {
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
}

.scroll-cue.is-clicked {
  animation: none;
}

.scroll-cue-text,
.scroll-cue-arrow {
  animation: cueTextShift 2.4s linear infinite;
}

.scroll-cue-arrow {
  font-size: 1.06em;
  animation: cueBounce 1.2s ease-in-out infinite;
}

@keyframes cueBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(3px); }
}

@keyframes cueFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes cueTextShift {
  0% {
    color: #7fe9ff;
  }
  33% {
    color: #9bffca;
  }
  66% {
    color: #ffe294;
  }
  100% {
    color: #7fe9ff;
  }
}

.action-hub {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  padding: clamp(2.4rem, 6vw, 4.2rem) 1rem clamp(2.8rem, 6vw, 4.8rem);
  background: transparent;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.action-head {
  max-width: 900px;
  margin: 0 auto;
  padding: 1rem 1rem 1.2rem;
  text-align: center;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(10, 16, 24, 0.26);
  backdrop-filter: blur(10px) saturate(1.06);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.2);
}

.action-kicker {
  margin: 0;
  letter-spacing: 0.24em;
  font-size: clamp(0.72rem, 1.5vw, 0.95rem);
  font-family: var(--hero-font);
  font-weight: 700;
  color: #ffd17d;
}

.action-title {
  margin: 0.5rem 0 0;
  font-size: clamp(2rem, 6vw, 4.8rem);
  line-height: 0.98;
  letter-spacing: 0.02em;
  font-family: var(--hero-font);
  font-weight: 900;
  color: #fff8e5;
  text-shadow: 0 10px 24px rgba(7, 2, 12, 0.48);
}

.action-subtitle {
  margin: 0.8rem auto 0;
  max-width: 620px;
  font-size: clamp(0.95rem, 1.9vw, 1.2rem);
  font-family: "SimHei", "Microsoft YaHei", sans-serif;
  font-weight: 700;
  color: rgba(247, 239, 255, 0.94);
  text-shadow: 0 6px 16px rgba(9, 1, 16, 0.45);
}

.action-grid {
  margin: clamp(1.5rem, 4vw, 2.6rem) auto 0;
  width: min(1080px, 100%);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.85rem, 2.2vw, 1.3rem);
}

.intro-link-btn {
  margin: 1.1rem auto 0;
  display: flex;
  width: fit-content;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 1.1rem;
  border-radius: 999px;
  text-decoration: none;
  font-family: var(--hero-font);
  font-weight: 700;
  color: #fef6ff;
  background: linear-gradient(115deg, #3537ff, #cb35aa);
  box-shadow: 0 10px 24px rgba(71, 34, 141, 0.35);
}

.action-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  padding: 1.3rem 1.25rem 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: rgba(10, 16, 24, 0.24);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(12px) saturate(1.04);
}

.action-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0));
}

.action-card-download {
  background: rgba(10, 16, 24, 0.24);
}

.action-card-group {
  background: rgba(10, 16, 24, 0.24);
}

.card-tag {
  margin: 0;
  font-family: var(--hero-font);
  letter-spacing: 0.16em;
  font-size: 0.77rem;
  color: rgba(255, 209, 125, 0.92);
}

.card-title {
  margin: 0.35rem 0 0;
  font-family: var(--hero-font);
  font-size: clamp(1.3rem, 3.4vw, 2.2rem);
  color: #fff8e5;
}

.card-desc {
  margin: 0.55rem 0 0;
  font-size: 0.97rem;
  line-height: 1.55;
  color: rgba(247, 239, 255, 0.94);
}

.card-meta {
  margin-top: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.34rem 0.62rem;
  font-size: 0.76rem;
  font-weight: 700;
  color: rgba(244, 236, 255, 0.96);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.action-btn {
  margin-top: 1rem;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border: 0;
  border-radius: 14px;
  width: 100%;
  min-height: 52px;
  font-family: var(--hero-font);
  font-size: 1.04rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, filter 180ms ease;
}

.action-btn:hover {
  transform: translateY(-2px);
  filter: saturate(1.1) brightness(1.04);
}

.btn-download {
  color: rgba(245, 249, 255, 0.96);
  background: rgba(170, 180, 198, 0.16);
  border: 1px solid rgba(220, 230, 245, 0.46);
  backdrop-filter: blur(10px) saturate(1.05);
}

.btn-group {
  color: rgba(245, 249, 255, 0.96);
  background: rgba(170, 180, 198, 0.16);
  border: 1px solid rgba(220, 230, 245, 0.46);
  backdrop-filter: blur(10px) saturate(1.05);
}

.group-modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
}

.group-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 10, 31, 0.62);
  backdrop-filter: blur(2px);
}

.group-panel {
  position: relative;
  width: min(92vw, 460px);
  border-radius: 22px;
  padding: 1.2rem 1.2rem 1.3rem;
  background: linear-gradient(140deg, #fff6eb, #f7f1ff);
  box-shadow: 0 20px 60px rgba(26, 13, 44, 0.4);
  z-index: 1;
}

.modal-close {
  position: absolute;
  top: 0.5rem;
  right: 0.6rem;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 50%;
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
  color: #3f2555;
  background: rgba(255, 255, 255, 0.72);
}

.group-tag {
  margin: 0;
  letter-spacing: 0.2em;
  font-size: 0.72rem;
  font-family: var(--hero-font);
  color: rgba(90, 57, 130, 0.8);
}

.group-title {
  margin: 0.32rem 0 0;
  font-family: var(--hero-font);
  font-size: clamp(1.7rem, 5vw, 2.45rem);
  color: #2d1539;
}

.group-desc {
  margin: 0.6rem 0 0;
  color: rgba(48, 30, 68, 0.82);
  line-height: 1.52;
  font-weight: 700;
}

.group-qr-wrap {
  margin-top: 1rem;
  width: min(250px, 100%);
  border-radius: 14px;
  overflow: visible;
  background: white;
  display: grid;
  place-items: center;
}

.group-qr-image {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  background: white;
}

.group-qr-placeholder {
  font-family: var(--hero-font);
  letter-spacing: 0.08em;
  color: #7a4a95;
}

.group-link {
  margin-top: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  border-radius: 12px;
  text-decoration: none;
  font-family: var(--hero-font);
  font-weight: 700;
  color: #fff3ea;
  background: linear-gradient(125deg, #6f28df, #d9428d);
}

.group-qq-row {
  margin-top: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.group-qq-label {
  font-size: 0.86rem;
  color: rgba(48, 30, 68, 0.78);
  font-weight: 700;
}

.group-qq-number {
  font-family: var(--hero-font);
  font-size: 1.02rem;
  color: #2d1539;
  letter-spacing: 0.03em;
}

.group-copy-btn {
  border: 1px solid rgba(111, 40, 223, 0.42);
  background: rgba(255, 255, 255, 0.78);
  color: #4c2385;
  border-radius: 8px;
  min-height: 32px;
  padding: 0 0.72rem;
  font-family: "SimHei", "Microsoft YaHei", sans-serif;
  font-weight: 700;
  cursor: pointer;
}

.group-copy-btn:hover {
  filter: brightness(1.04);
}

.portal-loader.fade-out {
  opacity: 0;
  transition: opacity 740ms ease;
}

.portal-loader.portal-transitioning .portal-transition-overlay {
  animation: portalDarken 3.5s linear forwards;
}

.portal-loader.portal-transitioning .loader-content {
  transition: filter 3.5s linear;
  filter: saturate(1.18) brightness(0.62);
}

.main-page.main-page-reveal {
  animation: mainReveal 1.25s ease-out forwards;
}

@keyframes portalDarken {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

@keyframes mainReveal {
  0% {
    opacity: 0;
    filter: brightness(0);
  }
  40% {
    opacity: 0.88;
    filter: brightness(0.35);
  }
  100% {
    opacity: 1;
    filter: brightness(1);
  }
}

@media (max-width: 760px) {
  .portal-stage {
    --portal-gap: 4px;
  }

  .action-grid {
    grid-template-columns: 1fr;
  }

  .hero-content {
    padding: 1rem;
  }

  .loader-title {
    letter-spacing: 0.16em;
  }

  .site-footer {
    bottom: 6px;
    font-size: 10px;
    width: calc(100vw - 0.8rem);
  }

  .scroll-cue {
    width: min(92vw, 520px);
    justify-content: center;
    margin-top: 1.35rem;
    font-size: 0.72rem;
    padding: 0.4rem 0.7rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0ms !important;
  }
}
