﻿:root {
  --primary: #7c3aed;
  --secondary: #22d3ee;
  --accent: #f472b6;
  --bg-dark: #020617;
  --bg-light: rgba(124, 58, 237, 0.12);
  --text-main: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.65);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.7;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

#main-header.scrolled {
  background: rgba(2, 6, 23, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(124, 58, 237, 0.2);
}

.nav-link {
  color: var(--text-muted);
  font-weight: 500;
  transition: color 0.3s;
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--secondary);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--secondary), var(--accent));
  transition: width 0.3s;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.mobile-nav {
  background: rgba(2, 6, 23, 0.98);
  border-left: 1px solid rgba(124, 58, 237, 0.3);
}

.mobile-nav.translate-x-full {
  visibility: hidden;
}

.mobile-nav nav a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  color: var(--text-muted);
  transition: all 0.3s;
}

.mobile-nav nav a:hover,
.mobile-nav nav a.active {
  background: rgba(124, 58, 237, 0.2);
  color: var(--secondary);
}

.btn-neon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), #5b21b6);
  color: #fff;
  padding: 0.75rem 1.75rem;
  border-radius: 9999px;
  font-weight: 600;
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: all 0.3s;
  border: 1px solid rgba(34, 211, 238, 0.4);
}

.btn-neon:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 35px rgba(124, 58, 237, 0.8), 0 0 60px rgba(34, 211, 238, 0.3);
}

.btn-glass {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  padding: 0.75rem 1.75rem;
  border-radius: 9999px;
  font-weight: 600;
  border: 1px solid rgba(34, 211, 238, 0.35);
  backdrop-filter: blur(8px);
  transition: all 0.3s;
}

.btn-glass:hover {
  background: rgba(34, 211, 238, 0.12);
  border-color: var(--secondary);
  box-shadow: 0 0 25px rgba(34, 211, 238, 0.25);
}

.section {
  padding: 5rem 0;
  position: relative;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--secondary);
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 1rem;
}

.section-label::before {
  content: "◆";
  color: var(--accent);
  font-size: 0.7rem;
}

.section-label.justify-center {
  justify-content: center;
}

.page-hero-sm {
  min-height: 55vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse at center, rgba(124, 58, 237, 0.22) 0%, var(--bg-dark) 65%);
  padding-top: 6rem;
}

.hero-particles {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 15% 25%, rgba(34, 211, 238, 0.15) 0%, transparent 25%),
    radial-gradient(circle at 85% 75%, rgba(244, 114, 182, 0.12) 0%, transparent 25%);
  animation: particle-flow 10s ease-in-out infinite;
}

.hero-content-sm {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.hero-title-sm {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  background: linear-gradient(135deg, #fff 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}

.hero-subtitle-sm {
  color: var(--text-muted);
  font-size: clamp(1rem, 1.8vw, 1.25rem);
}

.section-guide {
  background: linear-gradient(180deg, var(--bg-dark) 0%, rgba(124, 58, 237, 0.05) 50%, var(--bg-dark) 100%);
}

.guide-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.guide-sidebar {
  order: 2;
}

.sidebar-inner {
  position: sticky;
  top: 6rem;
  padding: 1.75rem;
  border-radius: 1.5rem;
  background: rgba(124, 58, 237, 0.08);
  border: 1px solid rgba(124, 58, 237, 0.25);
  backdrop-filter: blur(12px);
}

.sidebar-inner h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-main);
}

.toc {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toc a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  color: var(--text-muted);
  transition: all 0.3s;
  border: 1px solid transparent;
}

.toc a:hover {
  background: rgba(124, 58, 237, 0.15);
  border-color: rgba(34, 211, 238, 0.3);
  color: var(--secondary);
}

.toc-num {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--accent);
}

.sidebar-cta {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(124, 58, 237, 0.25);
  text-align: center;
}

.sidebar-cta p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.guide-content {
  order: 1;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.guide-chapter {
  padding: 2.5rem;
  border-radius: 1.5rem;
  background: rgba(124, 58, 237, 0.06);
  border: 1px solid rgba(124, 58, 237, 0.2);
  position: relative;
  overflow: hidden;
}

.guide-chapter::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
}

.chapter-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.chapter-num {
  font-size: 2.5rem;
  font-weight: 900;
  color: transparent;
  -webkit-text-stroke: 1px var(--secondary);
  line-height: 1;
}

.chapter-header h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--text-main);
}

.chapter-summary {
  color: var(--text-muted);
  margin-bottom: 1.75rem;
  font-size: 1.05rem;
}

.guide-chapter h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--secondary);
  margin: 1.75rem 0 1rem;
}

.guide-chapter p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.guide-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 1rem 0 1.5rem;
}

.guide-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  color: var(--text-muted);
}

.guide-list li i {
  color: var(--accent);
  margin-top: 0.3rem;
}

.role-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 1.5rem 0;
}

.role-card {
  padding: 1.5rem;
  border-radius: 1rem;
  background: rgba(2, 6, 23, 0.5);
  border: 1px solid rgba(34, 211, 238, 0.15);
  transition: all 0.3s;
}

.role-card:hover {
  transform: translateX(8px);
  border-color: rgba(34, 211, 238, 0.4);
  box-shadow: 0 10px 30px rgba(124, 58, 237, 0.2);
}

.role-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), #5b21b6);
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.role-card h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.35rem;
}

.role-card p {
  font-size: 0.9rem;
  margin: 0;
}

.tip-box {
  padding: 1.25rem 1.5rem;
  border-radius: 1rem;
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.25);
  margin-top: 1.5rem;
}

.tip-box.accent {
  background: rgba(244, 114, 182, 0.08);
  border-color: rgba(244, 114, 182, 0.25);
}

.tip-box strong {
  display: block;
  color: var(--secondary);
  margin-bottom: 0.5rem;
}

.tip-box.accent strong {
  color: var(--accent);
}

.tip-box p {
  margin: 0;
  font-size: 0.95rem;
}

.data-table-wrap {
  overflow-x: auto;
  margin: 1.25rem 0;
  border-radius: 1rem;
  border: 1px solid rgba(124, 58, 237, 0.25);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.data-table thead {
  background: rgba(124, 58, 237, 0.2);
}

.data-table th,
.data-table td {
  padding: 0.9rem 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(124, 58, 237, 0.15);
}

.data-table th {
  color: var(--secondary);
  font-weight: 700;
}

.data-table td {
  color: var(--text-muted);
}

.data-table tbody tr:last-child td {
  border-bottom: none;
}

.data-table tbody tr:hover {
  background: rgba(124, 58, 237, 0.08);
}

.dungeon-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 1.25rem 0;
}

.dungeon-card {
  padding: 1.25rem;
  border-radius: 1rem;
  background: rgba(2, 6, 23, 0.5);
  border-left: 4px solid var(--accent);
}

.dungeon-card h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.35rem;
}

.dungeon-card h4 i {
  color: var(--accent);
}

.dungeon-card p {
  font-size: 0.9rem;
  margin: 0;
}

.section-friends {
  background: linear-gradient(180deg, var(--bg-dark) 0%, rgba(124, 58, 237, 0.06) 100%);
  padding: 4rem 0 3rem;
}

.friends-card {
  max-width: 1000px;
  margin: 0 auto;
  padding: 1.75rem;
  border-radius: 1.5rem;
  background: rgba(124, 58, 237, 0.06);
  border: 1px solid rgba(124, 58, 237, 0.2);
}

.friends-title {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--secondary);
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 1.25rem;
}

.friends-title::before {
  content: '◆';
  color: var(--accent);
  font-size: 0.7rem;
}

.friends-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.friends-list a {
  display: inline-flex;
  align-items: center;
  padding: 0.6rem 1.1rem;
  border-radius: 9999px;
  background: rgba(124, 58, 237, 0.12);
  border: 1px solid rgba(34, 211, 238, 0.25);
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s;
  max-width: 100%;
  word-break: break-word;
}

.friends-list a:hover {
  background: rgba(34, 211, 238, 0.12);
  border-color: var(--secondary);
  color: var(--text-main);
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(34, 211, 238, 0.15);
}

.page-footer {
  position: relative;
  padding: 5rem 0 2rem;
  background: linear-gradient(180deg, var(--bg-dark) 0%, #000 100%);
  overflow: hidden;
}

.footer-beams {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 20% 100%, rgba(124, 58, 237, 0.25) 0%, transparent 40%),
    radial-gradient(circle at 80% 100%, rgba(34, 211, 238, 0.18) 0%, transparent 40%);
}

.footer-beams::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(0deg, rgba(124, 58, 237, 0.15), transparent);
  animation: beam-rise 4s ease-in-out infinite;
}

.footer-inner {
  position: relative;
  z-index: 10;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.footer-brand span {
  font-size: 1.75rem;
  font-weight: 800;
  background: linear-gradient(135deg, #fff, var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.footer-links a {
  color: var(--text-muted);
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--secondary);
}

.footer-copy {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.85rem;
  line-height: 1.8;
  max-width: 800px;
  margin: 0 auto;
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 768px) {
  .guide-layout {
    grid-template-columns: 280px 1fr;
    gap: 2.5rem;
  }

  .guide-sidebar {
    order: 1;
  }

  .guide-content {
    order: 2;
  }

  .role-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .dungeon-cards {
    grid-template-columns: repeat(3, 1fr);
  }

  .friends-card {
    padding: 2rem;
  }
}

@media (min-width: 1024px) {
  .role-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@keyframes particle-flow {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-20px) scale(1.02); }
}

@keyframes beam-rise {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50% { opacity: 0.7; transform: scaleY(1.1); }
}

.section-contact {
  background: var(--bg-dark);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.qr-card {
  background: var(--bg-light);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.5rem;
  text-align: center;
  transition: all 0.35s ease;
}

.qr-card:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: rgba(255, 255, 255, 0.25);
}

.qr-img {
  width: 160px;
  height: 160px;
  margin: 0 auto 1rem;
  padding: 0.5rem;
  background: white;
  border: 2px solid var(--secondary);
}

.qr-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.qr-card h3 {
  font-size: 1.15rem;
  color: var(--secondary);
  margin-bottom: 0.35rem;
}

.qr-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.btn-pulse {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  color: #fff;
  padding: 1rem 2.25rem;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 1.05rem;
  position: relative;
  overflow: hidden;
  transition: all 0.3s;
  animation: pulse-glow 2.5s infinite;
}

.btn-pulse:hover {
  transform: scale(1.05);
  filter: brightness(1.15);
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 25px rgba(124, 58, 237, 0.5), 0 0 50px rgba(244, 114, 182, 0.25); }
  50% { box-shadow: 0 0 45px rgba(124, 58, 237, 0.8), 0 0 80px rgba(244, 114, 182, 0.45); }
}

