/* ===== CSS Variables ===== */
:root {
  --color-bg: #0a0a14;
  --color-bg-alt: #0d0d22;
  --color-surface: rgba(15, 15, 40, 0.6);
  --color-border: rgba(100, 100, 180, 0.15);
  --color-cyan: #00d4ff;
  --color-magenta: #e040fb;
  --color-purple: #7c3aed;
  --color-gold: #ffd54f;
  --color-text: #e0e0f0;
  --color-text-dim: #7070a0;
  --color-text-bright: #ffffff;
  --font-display: 'Orbitron', 'Rajdhani', sans-serif;
  --font-body: 'Rajdhani', 'Noto Sans SC', sans-serif;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  --glow-cyan: 0 0 20px rgba(0, 212, 255, 0.3), 0 0 60px rgba(0, 212, 255, 0.1);
  --glow-magenta: 0 0 20px rgba(224, 64, 251, 0.3), 0 0 60px rgba(224, 64, 251, 0.1);
  --glow-gold: 0 0 20px rgba(255, 213, 79, 0.3), 0 0 60px rgba(255, 213, 79, 0.1);
  --nav-height: 72px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  overflow-x: hidden;
  line-height: 1.6;
  min-height: 100vh;
}

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

ul, ol { list-style: none; }

img { max-width: 100%; display: block; }

/* ===== Starfield Background ===== */
#starfield {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ===== Navigation ===== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 5vw, 60px);
  transition: background var(--transition-normal);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(10, 10, 20, 0.85);
  backdrop-filter: blur(20px);
  border-bottom-color: var(--color-border);
  box-shadow: 0 1px 30px rgba(0, 0, 0, 0.3);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-text-bright);
  letter-spacing: 0.05em;
  transition: var(--transition-fast);
}
.nav-logo:hover { color: var(--color-cyan); text-shadow: var(--glow-cyan); }
.nav-logo-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--color-cyan);
  box-shadow: 0 0 12px var(--color-cyan);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 8px var(--color-cyan); }
  50% { box-shadow: 0 0 20px var(--color-cyan), 0 0 40px rgba(0, 212, 255, 0.5); }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(20px, 4vw, 40px);
}
.nav-link {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text-dim);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  position: relative;
  padding: 4px 0;
  transition: color var(--transition-fast);
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1.5px;
  background: var(--color-cyan);
  transition: width var(--transition-normal);
  box-shadow: 0 0 8px var(--color-cyan);
}
.nav-link:hover, .nav-link.active {
  color: var(--color-cyan);
}
.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
  z-index: 1001;
}
.nav-hamburger span {
  width: 24px; height: 2px;
  background: var(--color-text-bright);
  transition: var(--transition-fast);
  border-radius: 2px;
}
.nav-hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-hamburger.active span:nth-child(2) { opacity: 0; }
.nav-hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0; right: -100%;
    width: 70%; height: 100vh;
    flex-direction: column;
    justify-content: center;
    gap: 32px;
    background: rgba(10, 10, 20, 0.95);
    backdrop-filter: blur(20px);
    border-left: 1px solid var(--color-border);
    transition: right var(--transition-normal);
  }
  .nav-links.open { right: 0; }
  .nav-hamburger { display: flex; }
}

/* ===== Page Sections ===== */
.page {
  position: relative;
  z-index: 1;
  padding-top: var(--nav-height);
}

.section {
  padding: clamp(60px, 10vw, 120px) clamp(20px, 5vw, 60px);
  max-width: 1200px;
  margin: 0 auto;
}

/* ===== Section Titles ===== */
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--color-text-bright);
  margin-bottom: 0.4em;
  letter-spacing: 0.03em;
}
.section-subtitle {
  font-size: 1.05rem;
  color: var(--color-text-dim);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 3em;
}

/* ===== Glow Text ===== */
.glow-text {
  background: linear-gradient(135deg, var(--color-cyan), var(--color-magenta));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 36px;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity var(--transition-fast);
}
.btn-primary {
  background: linear-gradient(135deg, var(--color-cyan), var(--color-purple));
  color: var(--color-bg);
  box-shadow: 0 4px 20px rgba(0, 212, 255, 0.25);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 212, 255, 0.4);
}
.btn-outline {
  background: transparent;
  color: var(--color-cyan);
  border: 1.5px solid var(--color-cyan);
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.1);
}
.btn-outline:hover {
  background: rgba(0, 212, 255, 0.1);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
  transform: translateY(-2px);
}
.btn-gold {
  background: linear-gradient(135deg, var(--color-gold), #ffab00);
  color: #1a1a2e;
  box-shadow: 0 4px 20px rgba(255, 213, 79, 0.25);
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255, 213, 79, 0.4);
}

/* ===== Cards ===== */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 36px);
  transition: all var(--transition-normal);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-cyan), transparent);
  opacity: 0;
  transition: opacity var(--transition-normal);
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 212, 255, 0.3);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3), var(--glow-cyan);
}
.card:hover::before { opacity: 1; }

.card-icon {
  width: 56px; height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
  position: relative;
}
.card-icon.cyan { background: rgba(0, 212, 255, 0.1); color: var(--color-cyan); }
.card-icon.magenta { background: rgba(224, 64, 251, 0.1); color: var(--color-magenta); }
.card-icon.gold { background: rgba(255, 213, 79, 0.1); color: var(--color-gold); }
.card-icon.purple { background: rgba(124, 58, 237, 0.1); color: var(--color-purple); }

.card-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-text-bright);
  margin-bottom: 8px;
  letter-spacing: 0.03em;
}
.card-desc {
  font-size: 0.9rem;
  color: var(--color-text-dim);
  line-height: 1.6;
}

/* ===== Footer ===== */
.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--color-border);
  padding: clamp(30px, 6vw, 50px) clamp(20px, 5vw, 60px);
  text-align: center;
  background: rgba(10, 10, 20, 0.5);
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: clamp(16px, 4vw, 32px);
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.footer-link {
  font-size: 0.85rem;
  color: var(--color-text-dim);
  transition: color var(--transition-fast);
}
.footer-link:hover { color: var(--color-cyan); }
.footer-copy {
  font-size: 0.8rem;
  color: var(--color-text-dim);
  opacity: 0.6;
}
.footer-icp {
  margin-top: 6px;
}
.footer-icp a {
  font-size: 0.75rem;
  color: var(--color-text-dim);
  opacity: 0.6;
  transition: color var(--transition-fast);
}
.footer-icp a:hover {
  color: var(--color-cyan);
  opacity: 1;
}
  .footer-icp .gongan-beian {
    display: inline-block;
    white-space: nowrap;
    margin-right: 10px;
    vertical-align: middle;
    line-height: 1;
  }
  .footer-icp .gongan-beian img {
    display: inline-block !important;
    width: 14px;
    height: 14px;
    vertical-align: -2px;
    margin-right: 3px;
    border: 0;
  }
  .footer-icp .gongan-beian a {
    font-size: 0.75rem;
    color: var(--color-text-dim);
    opacity: 0.6;
    text-decoration: none;
  }
  .footer-icp .gongan-beian a:hover {
    color: var(--color-cyan);
    opacity: 1;
  }

/* ===== Page Transitions ===== */
.page-transition {
  animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) both;
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== Utility ===== */
.text-center { text-align: center; }
.mt-1 { margin-top: 1em; }
.mt-2 { margin-top: 2em; }
.mt-3 { margin-top: 3em; }

/* ===== Scrollbar ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--color-bg); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--color-cyan), var(--color-purple));
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #22d3ee, #8b5cf6);
}