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

:root {
  --bg-void: #050a0f;
  --bg-deep: #0a1118;
  --bg-card: #0d1a24;
  --bg-card-hover: #122230;
  --accent-cyan: #00f5d4;
  --accent-cyan-dim: #00f5d440;
  --accent-amber: #f5a623;
  --accent-red: #ff4757;
  --accent-purple: #a855f7;
  --text-primary: #e8f0f2;
  --text-secondary: #8899aa;
  --text-dim: #556677;
  --border-subtle: #1a2a3a;
  --glow-cyan: 0 0 30px #00f5d430, 0 0 60px #00f5d415;
  --glow-amber: 0 0 30px #f5a62330, 0 0 60px #f5a62315;
  --font-display: 'Noto Serif SC', 'Songti SC', serif;
  --font-body: 'Noto Serif SC', serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --font-fun: 'ZCOOL KuaiLe', cursive;
  --font-calligraphy: 'Ma Shan Zheng', cursive;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg-void);
  color: var(--text-primary);
  font-family: var(--font-body);
  overflow-x: hidden;
  line-height: 1.7;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-void); }
::-webkit-scrollbar-thumb { background: var(--accent-cyan-dim); border-radius: 3px; }

.noise-overlay {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

.grid-bg {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(var(--border-subtle) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-subtle) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: 0.15;
}

#app { position: relative; z-index: 1; }

.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 2rem;
  text-align: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background:
    radial-gradient(ellipse 60% 40% at 50% 40%, #00f5d408 0%, transparent 70%),
    radial-gradient(ellipse 40% 50% at 30% 60%, #a855f708 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 70% 30%, #f5a62308 0%, transparent 60%);
  z-index: 0;
}

.hero-content { position: relative; z-index: 1; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1.2rem;
  border: 1px solid var(--accent-cyan-dim);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-cyan);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 2rem;
  background: #00f5d408;
  animation: pulse-border 3s ease-in-out infinite;
}

@keyframes pulse-border {
  0%, 100% { border-color: var(--accent-cyan-dim); box-shadow: none; }
  50% { border-color: var(--accent-cyan); box-shadow: var(--glow-cyan); }
}

.hero-title-cn {
  font-family: var(--font-calligraphy);
  font-size: clamp(3rem, 8vw, 7rem);
  line-height: 1.1;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  text-shadow: 0 0 40px #00f5d420, 0 0 80px #00f5d410;
  letter-spacing: 0.1em;
}

.hero-title-en {
  font-family: var(--font-mono);
  font-size: clamp(0.7rem, 1.5vw, 1rem);
  color: var(--text-dim);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 2.5rem;
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 3rem;
  line-height: 1.8;
}

.hero-subtitle em {
  font-style: normal;
  color: var(--accent-cyan);
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 2rem;
  border: none;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-cyan), #00c9a7);
  color: var(--bg-void);
  box-shadow: 0 4px 20px #00f5d430;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px #00f5d450;
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}
.btn-secondary:hover {
  border-color: var(--accent-cyan);
  background: #00f5d408;
  transform: translateY(-2px);
}

.btn-discord {
  background: #5865F2;
  color: white;
}
.btn-discord:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px #5865F250;
}

.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-dim);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  animation: float 2s ease-in-out infinite;
}

.scroll-hint .arrow {
  width: 20px;
  height: 20px;
  border-right: 1.5px solid var(--text-dim);
  border-bottom: 1.5px solid var(--text-dim);
  transform: rotate(45deg);
}

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

.section {
  padding: 6rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent-cyan);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.section-label::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--accent-cyan);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.section-desc {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 650px;
  margin-bottom: 3rem;
}

.divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-subtle), transparent);
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 2rem;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
  opacity: 0;
  transition: opacity 0.4s;
}

.feature-card:hover {
  border-color: var(--accent-cyan-dim);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px #00f5d410;
}

.feature-card:hover::before { opacity: 1; }

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.2rem;
  position: relative;
}

.feature-icon.cyan { background: #00f5d415; }
.feature-icon.amber { background: #f5a62315; }
.feature-icon.purple { background: #a855f715; }
.feature-icon.red { background: #ff475715; }

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
}

.feature-tag {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.05em;
  margin-top: 1rem;
}

.feature-tag.cyan { background: #00f5d415; color: var(--accent-cyan); }
.feature-tag.amber { background: #f5a62315; color: var(--accent-amber); }
.feature-tag.purple { background: #a855f715; color: var(--accent-purple); }

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.2rem;
}

.team-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all 0.3s;
}

.team-card:hover {
  border-color: var(--accent-cyan-dim);
  transform: translateY(-2px);
}

.team-avatar {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.team-info h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.team-info span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-dim);
  letter-spacing: 0.05em;
}

.stats-bar {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.stat-item {
  text-align: center;
}

.stat-value {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-cyan);
  line-height: 1;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 0.3rem;
  letter-spacing: 0.1em;
}

.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent-cyan), var(--accent-purple), transparent);
}

.timeline-item {
  position: relative;
  padding-bottom: 2.5rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2rem;
  top: 0.5rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 10px var(--accent-cyan);
  transform: translateX(-4px);
}

.timeline-date {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent-cyan);
  letter-spacing: 0.1em;
  margin-bottom: 0.3rem;
}

.timeline-title {
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 0.3rem;
}

.timeline-desc {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.download-section {
  background: linear-gradient(135deg, #00f5d408, #a855f708);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.download-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 50% 50%, #00f5d408 0%, transparent 50%);
  animation: rotate-slow 20s linear infinite;
}

@keyframes rotate-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.download-section .section-title {
  position: relative;
}

.download-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  margin-top: 1.5rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all 0.3s;
  cursor: pointer;
  text-decoration: none;
  color: var(--text-primary);
}

.contact-card:hover {
  border-color: var(--accent-cyan-dim);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px #00f5d410;
}

.contact-icon {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  background: #00f5d410;
}

.contact-info h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.15rem;
}

.contact-info span {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
}

.footer {
  text-align: center;
  padding: 3rem 2rem;
  border-top: 1px solid var(--border-subtle);
  color: var(--text-dim);
  font-size: 0.8rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s;
  font-size: 0.8rem;
}

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

.tag-list {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.7rem;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  background: #00f5d408;
  border: 1px solid #00f5d420;
  color: var(--accent-cyan);
}

.circuit-pattern {
  position: absolute;
  width: 200px;
  height: 200px;
  opacity: 0.04;
  pointer-events: none;
}

.circuit-pattern svg {
  width: 100%;
  height: 100%;
}

@media (max-width: 768px) {
  .hero { padding: 1.5rem; }
  .section { padding: 4rem 1.5rem; }
  .features-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .stats-bar { gap: 1.5rem; }
  .download-section { padding: 2rem 1.5rem; }
  .hero-actions { flex-direction: column; align-items: center; }
  .btn { width: 100%; max-width: 300px; justify-content: center; }
}

.float-particle {
  position: fixed;
  width: 2px;
  height: 2px;
  background: var(--accent-cyan);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.3;
  animation: drift linear infinite;
}

@keyframes drift {
  0% { transform: translateY(100vh) translateX(0); opacity: 0; }
  10% { opacity: 0.3; }
  90% { opacity: 0.3; }
  100% { transform: translateY(-10vh) translateX(40px); opacity: 0; }
}

.version-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.7rem;
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  background: #f5a62315;
  border: 1px solid #f5a62330;
  color: var(--accent-amber);
  margin-left: 0.5rem;
}

.tab-nav {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.5rem;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 0.5rem 1.2rem;
  border: none;
  background: transparent;
  color: var(--text-dim);
  font-family: var(--font-body);
  font-size: 0.85rem;
  cursor: pointer;
  border-radius: 6px 6px 0 0;
  transition: all 0.3s;
  position: relative;
}

.tab-btn.active {
  color: var(--accent-cyan);
  background: #00f5d408;
}

.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent-cyan);
}

.tab-btn:hover {
  color: var(--text-primary);
}

.changelog-content {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 2rem;
  min-height: 200px;
}

.glitch-text {
  position: relative;
}

.glitch-text::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  color: var(--accent-cyan);
  opacity: 0;
  animation: glitch 4s ease-in-out infinite;
}

@keyframes glitch {
  0%, 95%, 100% { opacity: 0; transform: translate(0); }
  96% { opacity: 0.5; transform: translate(2px, -1px); }
  97% { opacity: 0; transform: translate(-2px, 1px); }
  98% { opacity: 0.3; transform: translate(1px, 2px); }
  99% { opacity: 0; transform: translate(0); }
}

.backstory {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
}

.backstory::before {
  content: '"';
  position: absolute;
  top: -20px;
  left: 20px;
  font-family: var(--font-display);
  font-size: 8rem;
  color: var(--accent-cyan);
  opacity: 0.08;
  line-height: 1;
}

.backstory p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 2;
  text-indent: 2em;
  margin-bottom: 1rem;
}

.backstory p:last-child { margin-bottom: 0; }

.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #050a0fCC;
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}

.nav.scrolled {
  border-bottom-color: var(--border-subtle);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--text-primary);
}

.nav-brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid var(--border-subtle);
}

.nav-brand-text {
  font-family: var(--font-calligraphy);
  font-size: 1.2rem;
}

.nav-links {
  display: flex;
  gap: 0.3rem;
}

.nav-link {
  padding: 0.4rem 0.9rem;
  border-radius: 6px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.3s;
}

.nav-link:hover {
  color: var(--text-primary);
  background: #ffffff08;
}

.nav-link.active {
  color: var(--accent-cyan);
  background: #00f5d408;
}

.nav-mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.3rem;
  cursor: pointer;
  padding: 0.3rem;
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #050a0fEE;
    backdrop-filter: blur(16px);
    flex-direction: column;
    padding: 1rem;
    border-bottom: 1px solid var(--border-subtle);
  }
  .nav-links.show { display: flex; }
  .nav-mobile-toggle { display: block; }
  .nav { padding: 0.8rem 1.2rem; }
}
