﻿:root {
  --bg-0: #0c0f1a;
  --bg-1: #111626;
  --bg-2: #151c2d;
  --accent: #667eea;
  --accent-2: #764ba2;
  --accent-soft: rgba(102, 126, 234, 0.2);
  --text: #eef0ff;
  --muted: #8b8b9f;
  --card: rgba(30, 30, 45, 0.6);
  --border: rgba(255, 255, 255, 0.08);
  --shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Noto Sans SC", "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 15%, rgba(102, 126, 234, 0.18), transparent 45%),
    radial-gradient(circle at 85% 10%, rgba(118, 75, 162, 0.2), transparent 45%),
    linear-gradient(180deg, var(--bg-0), var(--bg-1) 45%, var(--bg-2));
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3 {
  margin: 0 0 12px;
}

p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.container {
  width: min(1100px, 92vw);
  margin: 0 auto;
}

.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: 0.25;
  pointer-events: none;
  z-index: 0;
}

.site-header {
  position: relative;
  z-index: 2;
  padding: 18px 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  font-weight: 700;
  letter-spacing: 0.5px;
}

.nav {
  display: flex;
  gap: 20px;
  color: var(--muted);
  font-size: 14px;
}

.nav a:hover {
  color: var(--text);
}

.pill {
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(102, 126, 234, 0.15);
  border: 1px solid rgba(102, 126, 234, 0.45);
  color: var(--text);
  font-size: 13px;
}

.hero,
.tutorial-hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
  align-items: center;
  padding: 40px 0 20px;
  position: relative;
  z-index: 1;
}

.tutorial-panel {
  padding: 20px;
  border-radius: 18px;
  background: rgba(20, 24, 36, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.tutorial-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  display: grid;
  gap: 6px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 12px;
  color: var(--accent);
  margin-bottom: 10px;
}

.lead {
  font-size: 16px;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin: 20px 0 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn.primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #ffffff;
  box-shadow: 0 10px 20px rgba(102, 126, 234, 0.35);
}

.btn.ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--text);
}

.btn.ghost:hover {
  border-color: rgba(102, 126, 234, 0.4);
}

.hero-meta {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: var(--muted);
}

.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 6px;
}

.dot-teal {
  background: #4cc9f0;
}

.dot-amber {
  background: #f4b861;
}

.hero-card {
  display: flex;
  justify-content: center;
}

.notice-stack {
  display: grid;
  gap: 14px;
  justify-items: center;
}

.notice-inline {
  width: min(360px, 92vw);
  padding: 12px 16px;
  border-radius: 16px;
  background: rgba(102, 126, 234, 0.15);
  border: 1px solid rgba(102, 126, 234, 0.45);
  color: #d9ddff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

.notice-inline p {
  margin: 0;
  font-size: 12px;
  color: #d9ddff;
}

.notice-title {
  font-weight: 700;
  font-size: 12px;
  margin-bottom: 6px;
  letter-spacing: 1px;
}

.notice-status {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #bff5d6;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.8);
  animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {
  0%,
  100% {
    opacity: 0.6;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.15);
  }
}

.section {
  padding: 60px 0;
  position: relative;
  z-index: 1;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.section-search {
  display: flex;
  align-items: center;
  gap: 14px;
}

.input {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-size: 13px;
}

.result-count {
  font-size: 12px;
  color: var(--muted);
}

.link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.link-card {
  padding: 18px;
  border-radius: 18px;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: grid;
  gap: 10px;
  transition: transform 0.2s ease, border-color 0.2s ease;
  position: relative;
}

.link-card:hover {
  transform: translateY(-4px);
  border-color: rgba(102, 126, 234, 0.5);
}

.card-title {
  font-weight: 600;
  font-size: 16px;
}

.card-desc {
  font-size: 13px;
  color: var(--muted);
}

.card-tag {
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(102, 126, 234, 0.15);
  color: var(--accent);
  font-size: 11px;
}

.card-note {
  font-size: 11px;
  color: #f4b861;
}

.step-grid,
.tutorial-grid,
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.step-card,
.tutorial-card,
.video-card {
  padding: 18px;
  border-radius: 18px;
  background: rgba(20, 24, 36, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.step-num {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(102, 126, 234, 0.18);
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 12px;
}

.step-title {
  font-weight: 600;
  margin-bottom: 6px;
}

.step-desc,
.tutorial-card p {
  font-size: 13px;
  color: var(--muted);
}

.tutorial-step {
  color: var(--accent);
  font-weight: 600;
  font-size: 12px;
  margin-bottom: 6px;
}

.video-title {
  font-weight: 600;
  margin-bottom: 10px;
}

.video-player {
  width: 100%;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.4);
}

.video-note {
  font-size: 12px;
  color: var(--muted);
  margin-top: 10px;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-list details {
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(20, 24, 36, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.faq-list summary {
  cursor: pointer;
  font-weight: 600;
}

.site-footer {
  padding: 30px 0 50px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(6, 10, 16, 0.6);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 16px;
  color: var(--muted);
  font-size: 13px;
}

.footer-links a:hover {
  color: var(--text);
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.modal.is-open {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 7, 12, 0.7);
  backdrop-filter: blur(6px);
}

.modal-card {
  position: relative;
  width: min(420px, 90vw);
  background: rgba(30, 30, 45, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 20px;
  z-index: 2;
  display: grid;
  gap: 12px;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.modal-desc {
  color: var(--muted);
  font-size: 13px;
}

.modal-extra {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text);
  font-size: 12px;
  display: none;
}

.qr-box {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 14px;
  border: 1px dashed rgba(255, 255, 255, 0.2);
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 12px;
  background: rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

.qr-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #ffffff;
}

.copy-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.copy-input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-size: 12px;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.is-disabled {
  pointer-events: none;
  opacity: 0.5;
}

.no-scroll {
  overflow: hidden;
}

@media (max-width: 720px) {
  .nav {
    display: none;
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .hero,
  .tutorial-hero {
    padding-top: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* From Uiverse.io by mughal_4968 */
.error-card-404 {
  position: relative;
  width: min(360px, 90vw);
  background: rgba(30, 30, 45, 0.6);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 24px 16px;
  gap: 12px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.glow-bg-404 {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  height: 300px;
  background: radial-gradient(
    circle,
    rgba(102, 126, 234, 0.15) 0%,
    transparent 60%
  );
  pointer-events: none;
  animation: glowPulse-404 4s ease-in-out infinite;
}

@keyframes glowPulse-404 {
  0%,
  100% {
    opacity: 0.5;
    transform: translateX(-50%) scale(1);
  }
  50% {
    opacity: 0.8;
    transform: translateX(-50%) scale(1.1);
  }
}

.stars-404 {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.star-404 {
  position: absolute;
  width: 2px;
  height: 2px;
  background: white;
  border-radius: 50%;
  animation: twinkle-404 2s infinite;
}

.star-404:nth-child(1) {
  top: 15%;
  left: 15%;
  animation-delay: 0s;
}
.star-404:nth-child(2) {
  top: 25%;
  left: 85%;
  animation-delay: 0.3s;
}
.star-404:nth-child(3) {
  top: 60%;
  left: 10%;
  animation-delay: 0.6s;
}
.star-404:nth-child(4) {
  top: 75%;
  left: 80%;
  animation-delay: 0.9s;
}
.star-404:nth-child(5) {
  top: 40%;
  left: 90%;
  animation-delay: 1.2s;
}
.star-404:nth-child(6) {
  top: 20%;
  left: 50%;
  animation-delay: 0.4s;
}
.star-404:nth-child(7) {
  top: 80%;
  left: 30%;
  animation-delay: 0.7s;
}
.star-404:nth-child(8) {
  top: 35%;
  left: 20%;
  animation-delay: 1s;
}
.star-404:nth-child(9) {
  top: 70%;
  left: 70%;
  animation-delay: 1.3s;
}
.star-404:nth-child(10) {
  top: 10%;
  left: 65%;
  animation-delay: 0.2s;
}

@keyframes twinkle-404 {
  0%,
  100% {
    opacity: 0.2;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.2);
  }
}

.astronaut-section-404 {
  position: relative;
  width: 80px;
  height: 100px;
  flex-shrink: 0;
}

.cable-404 {
  position: absolute;
  width: 2px;
  height: 30px;
  background: linear-gradient(to bottom, #667eea, transparent);
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0.6;
  animation: cableSway-404 3s ease-in-out infinite;
}

@keyframes cableSway-404 {
  0%,
  100% {
    transform: translateX(-50%) rotate(-2deg);
  }
  50% {
    transform: translateX(-50%) rotate(2deg);
  }
}

.astronaut-404 {
  width: 100%;
  height: 100%;
  position: relative;
  animation: astronautFloat-404 3s ease-in-out infinite;
}

@keyframes astronautFloat-404 {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-8px);
  }
}

.helmet-404 {
  width: 44px;
  height: 44px;
  background: linear-gradient(145deg, #f5f5f5 0%, #e0e0e0 50%, #c0c0c0 100%);
  border-radius: 50%;
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  box-shadow:
    inset -5px -5px 10px rgba(0, 0, 0, 0.1),
    inset 5px 5px 10px rgba(255, 255, 255, 0.8),
    0 5px 15px rgba(0, 0, 0, 0.2);
  z-index: 10;
}

.visor-404 {
  width: 30px;
  height: 22px;
  background: linear-gradient(135deg, #1a1a2e 0%, #0f0f1e 100%);
  border-radius: 50%;
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  overflow: hidden;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
}

.visor-404::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 40%,
    rgba(255, 255, 255, 0.15) 50%,
    transparent 60%
  );
  animation: visorShine-404 2.5s ease-in-out infinite;
}

@keyframes visorShine-404 {
  0%,
  100% {
    transform: translateX(-100%) rotate(45deg);
  }
  50% {
    transform: translateX(100%) rotate(45deg);
  }
}

.body-404 {
  width: 36px;
  height: 32px;
  background: linear-gradient(145deg, #ffffff 0%, #e8e8e8 100%);
  border-radius: 18px 18px 12px 12px;
  position: absolute;
  top: 48px;
  left: 50%;
  transform: translateX(-50%);
  box-shadow:
    inset -3px -3px 8px rgba(0, 0, 0, 0.08),
    0 4px 12px rgba(0, 0, 0, 0.15);
}

.chest-panel-404 {
  width: 20px;
  height: 14px;
  background: linear-gradient(135deg, #2a2a3a 0%, #1a1a2a 100%);
  border-radius: 4px;
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 2px;
  padding: 3px;
  align-items: center;
  justify-content: center;
}

.light-404 {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  animation: lightBlink-404 1.5s ease-in-out infinite;
}

.light-red-404 {
  background: #ff4757;
  animation-delay: 0s;
}
.light-green-404 {
  background: #2ed573;
  animation-delay: 0.3s;
}
.light-blue-404 {
  background: #3742fa;
  animation-delay: 0.6s;
}

@keyframes lightBlink-404 {
  0%,
  100% {
    opacity: 0.3;
    box-shadow: none;
  }
  50% {
    opacity: 1;
    box-shadow: 0 0 6px currentColor;
  }
}

.arm-left-404,
.arm-right-404 {
  width: 12px;
  height: 28px;
  background: linear-gradient(145deg, #ffffff 0%, #d8d8d8 100%);
  border-radius: 8px;
  position: absolute;
  top: 50px;
}

.arm-left-404 {
  left: 14px;
  transform: rotate(15deg);
  transform-origin: top center;
  animation: armWaveLeft-404 2.5s ease-in-out infinite;
}

.arm-right-404 {
  right: 14px;
  transform: rotate(-15deg);
  transform-origin: top center;
  animation: armWaveRight-404 2.5s ease-in-out infinite;
}

@keyframes armWaveLeft-404 {
  0%,
  100% {
    transform: rotate(15deg);
  }
  50% {
    transform: rotate(25deg);
  }
}

@keyframes armWaveRight-404 {
  0%,
  100% {
    transform: rotate(-15deg);
  }
  50% {
    transform: rotate(-25deg);
  }
}

.leg-left-404,
.leg-right-404 {
  width: 14px;
  height: 24px;
  background: linear-gradient(145deg, #ffffff 0%, #d8d8d8 100%);
  border-radius: 0 0 8px 8px;
  position: absolute;
  top: 76px;
}

.leg-left-404 {
  left: 26px;
}
.leg-right-404 {
  right: 26px;
}

.backpack-404 {
  width: 32px;
  height: 26px;
  background: linear-gradient(145deg, #e0e0e0 0%, #c0c0c0 100%);
  border-radius: 8px;
  position: absolute;
  top: 50px;
  left: 50%;
  transform: translateX(-50%);
  z-index: -1;
}

.content-section-404 {
  text-align: center;
  z-index: 1;
}

.error-code-404 {
  font-size: 40px;
  font-weight: 800;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 4px;
  letter-spacing: -2px;
}

.error-title-404 {
  color: #ffffff;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
}

.error-message-404 {
  color: #8b8b9f;
  font-size: 12px;
  line-height: 1.5;
  max-width: 240px;
}

.notice-list {
  margin: 0;
  padding-left: 0;
  list-style: none;
  color: #8b8b9f;
  font-size: 12px;
  line-height: 1.5;
  max-width: 240px;
  display: grid;
  gap: 6px;
  text-align: left;
}

.notice-list li {
  position: relative;
  padding: 6px 10px 6px 20px;
  background: rgba(102, 126, 234, 0.08);
  border: 1px solid rgba(102, 126, 234, 0.2);
  border-radius: 10px;
}

.notice-list li::before {
  content: "•";
  position: absolute;
  left: 8px;
  color: rgba(126, 231, 135, 0.9);
}

.notice-list li.notice-highlight {
  color: #e9ecff;
  font-weight: 600;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.28), rgba(118, 75, 162, 0.28));
  border-color: rgba(150, 170, 255, 0.55);
  box-shadow: 0 6px 14px rgba(102, 126, 234, 0.25);
}

.notice-list li.notice-highlight::before {
  color: #7ee787;
}

.search-section-404 {
  width: 100%;
  z-index: 1;
}

.search-box-404 {
  position: relative;
  width: 100%;
}

.search-input-404 {
  width: 100%;
  padding: 10px 36px 10px 14px;
  border: 1px solid rgba(102, 126, 234, 0.25);
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.05);
  color: white;
  font-size: 13px;
  outline: none;
  transition: all 0.2s ease;
  font-family: inherit;
}

.search-input-404:focus {
  border-color: rgba(102, 126, 234, 0.5);
  background: rgba(255, 255, 255, 0.08);
}

.search-input-404::placeholder {
  color: #6a6a7a;
}

.search-btn-404 {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: transform 0.2s ease;
  padding: 0;
}

.search-btn-404:hover {
  transform: translateY(-50%) scale(1.05);
}

.buttons-section-404 {
  display: flex;
  gap: 10px;
  width: 100%;
  z-index: 1;
}

.btn-404 {
  flex: 1;
  padding: 10px 16px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 12px;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.btn-primary-404 {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.35);
}

.btn-primary-404:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(102, 126, 234, 0.45);
}

.btn-secondary-404 {
  background: transparent;
  color: #9a9aaf;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-secondary-404:hover {
  border-color: rgba(102, 126, 234, 0.4);
  color: white;
  background: rgba(102, 126, 234, 0.1);
}

.footer-section-404 {
  display: flex;
  gap: 16px;
  padding-top: 4px;
  z-index: 1;
}

.footer-link-404 {
  color: #6a6a7a;
  text-decoration: none;
  font-size: 11px;
  transition: color 0.2s ease;
}

.footer-link-404:hover {
  color: #667eea;
}
