@import url('https://fonts.googleapis.com/css2?family=Audiowide&family=Noto+Sans+SC:wght@300;400;500;700&display=swap');

:root {
  --bg-deep: #030712;
  --bg-panel: rgba(10, 18, 36, 0.72);
  --border-subtle: rgba(120, 160, 255, 0.12);
  --accent-primary: #6ee7ff;
  --accent-secondary: #7c5cff;
  --accent-warm: #ffb36b;
  --text-primary: #eef2ff;
  --text-secondary: rgba(220, 228, 255, 0.72);
  --glow-primary: rgba(110, 231, 255, 0.35);
  --glow-secondary: rgba(124, 92, 255, 0.25);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Noto Sans SC', system-ui, -apple-system, Segoe UI, sans-serif;
  background: var(--bg-deep);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

body {
  min-height: 100vh;
  background-image:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(110, 231, 255, 0.08), transparent),
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(124, 92, 255, 0.08), transparent),
    radial-gradient(ellipse 50% 40% at 20% 80%, rgba(255, 179, 107, 0.05), transparent);
}

/* 噪点纹理 */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.06;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.6'/></svg>");
}

/* 星空背景 */
#starfield {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* 导航栏 */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 1rem 2rem;
  transition: 0.4s ease;
}

nav.scrolled {
  background: rgba(3, 7, 18, 0.75);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  color: var(--text-primary);
  text-decoration: none;
  font-family: 'Audiowide', sans-serif;
  font-weight: 400;
  font-size: 1.4rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  letter-spacing: 0.08em;
}

.logo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  color: #fff;
  font-size: 0.9rem;
  box-shadow: 0 10px 30px var(--glow-secondary);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 400;
  transition: 0.3s ease;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.nav-links a:hover { color: var(--accent-primary); }

.nav-btn {
  padding: 0.5rem 1.2rem;
  border-radius: 999px;
  color: #fff !important;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  box-shadow: 0 10px 26px var(--glow-secondary);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.nav-toggle span {
  width: 22px;
  height: 1.5px;
  background: var(--text-primary);
  transition: 0.3s ease;
  border-radius: 999px;
}

section {
  position: relative;
  z-index: 1;
  padding: 6rem 1.5rem;
}

.section-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 3.5rem;
}

.section-tag {
  display: inline-block;
  font-family: 'Audiowide', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  color: var(--accent-primary);
  border: 1px solid var(--border-subtle);
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 0.8rem;
}

.section-title {
  font-size: 2.6rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  letter-spacing: 0.04em;
}

.section-desc {
  color: var(--text-secondary);
  font-size: 1rem;
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 80px;
  position: relative;
}

.hero-rings {
  position: absolute;
  inset: 0;
  overflow: hidden;
  opacity: 0.9;
}

.ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(118, 170, 255, 0.12);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.ring-1 { width: 420px; height: 420px; animation: spin 22s linear infinite; }
.ring-2 { width: 620px; height: 620px; animation: spin 32s linear infinite reverse; border-color: rgba(124, 92, 255, 0.12); }
.ring-3 { width: 860px; height: 860px; animation: spin 44s linear infinite; border-color: rgba(255, 179, 107, 0.1); }

@keyframes spin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.hero-content { position: relative; z-index: 2; }

.hero-badge {
  display: inline-block;
  font-family: 'Audiowide', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  color: var(--accent-primary);
  border: 1px solid var(--border-subtle);
  padding: 0.45rem 1.4rem;
  border-radius: 999px;
  margin-bottom: 2rem;
  background: rgba(110, 231, 255, 0.06);
}

.hero-title {
  font-size: 4.2rem;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1.4rem;
  letter-spacing: 0.02em;
}

.title-line {
  display: block;
  color: var(--text-primary);
}

.title-glow {
  display: block;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: glow 4s ease-in-out infinite alternate;
}

@keyframes glow {
  from { filter: drop-shadow(0 0 10px rgba(110, 231, 255, 0.25)); }
  to { filter: drop-shadow(0 0 22px rgba(124, 92, 255, 0.45)); }
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 2.6rem;
}

.hero-actions {
  display: inline-flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.8rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s ease;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  color: #fff;
  box-shadow: 0 14px 34px var(--glow-secondary);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(124, 92, 255, 0.45);
}

.btn-secondary {
  background: transparent;
  color: var(--accent-primary);
  border: 1px solid var(--border-subtle);
}

.btn-secondary:hover {
  background: rgba(110, 231, 255, 0.08);
  border-color: rgba(110, 231, 255, 0.35);
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
}

.scroll-line {
  width: 1px;
  height: 56px;
  background: linear-gradient(to bottom, var(--accent-primary), transparent);
  animation: scroll 2.2s ease-in-out infinite;
}

@keyframes scroll {
  0%, 100% { transform: scaleY(0.5); opacity: 0.35; }
  50% { transform: scaleY(1); opacity: 1; }
}

.awakening-visual {
  position: relative;
  width: 100%;
  height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#neuralCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.awakening-core {
  position: relative;
  width: 110px;
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.core-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(118, 170, 255, 0.25);
}

.core-ring-1 {
  width: 100%;
  height: 100%;
  animation: pulse-ring 2.2s ease-in-out infinite;
}

.core-ring-2 {
  width: 145%;
  height: 145%;
  animation: pulse-ring 2.2s ease-in-out infinite 0.25s;
  border-color: rgba(124, 92, 255, 0.25);
}

.core-ring-3 {
  width: 190%;
  height: 190%;
  animation: pulse-ring 2.2s ease-in-out infinite 0.5s;
  border-color: rgba(255, 179, 107, 0.18);
}

@keyframes pulse-ring {
  0%, 100% { transform: scale(1); opacity: 0.55; }
  50% { transform: scale(1.08); opacity: 1; }
}

.core-center {
  width: 36px;
  height: 36px;
  background: radial-gradient(circle, var(--accent-primary), var(--accent-secondary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 36px var(--glow-primary);
}

.core-glyph {
  color: #fff;
  font-size: 1.4rem;
}

.awakening-stats {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 3rem;
}

.stat-item { text-align: center; }

.stat-value {
  display: block;
  font-family: 'Audiowide', sans-serif;
  font-size: 1.7rem;
  font-weight: 400;
  color: var(--accent-primary);
}

.stat-label {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-top: 0.2rem;
}

.pulse-section {
  background: linear-gradient(180deg, rgba(3, 7, 18, 0.5), rgba(10, 18, 36, 0.35));
}

.pulse-wrapper {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  padding: 1.8rem 1.6rem 2rem;
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  box-shadow: 0 0 50px rgba(110, 231, 255, 0.08);
}

.pulse-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.pulse-meta {
  color: var(--text-secondary);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
}

.pulse-streak {
  color: var(--accent-warm);
  font-weight: 600;
}

.pulse-progress { margin-bottom: 1.2rem; }

.pulse-progress-bar {
  height: 5px;
  border-radius: 999px;
  background: rgba(118, 170, 255, 0.18);
  overflow: hidden;
}

.pulse-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
  transition: width 0.5s ease;
}

.pulse-levels {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.2rem;
}

.pulse-level-chip {
  min-width: 34px;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.78rem;
  cursor: pointer;
  transition: 0.25s ease;
}

.pulse-level-chip.pulse-active {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  background: rgba(110, 231, 255, 0.08);
}

.pulse-level-chip.pulse-locked {
  opacity: 0.45;
  cursor: not-allowed;
}

.pulse-question { margin: 0.6rem 0 1rem; }

.pulse-question-type {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  color: var(--accent-primary);
  border: 1px solid var(--border-subtle);
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 0.6rem;
}

.pulse-question-text {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-primary);
}

.pulse-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}

.pulse-option {
  text-align: left;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  background: rgba(8, 14, 28, 0.55);
  color: var(--text-primary);
  font-size: 0.95rem;
  cursor: pointer;
  transition: 0.25s ease;
}

.pulse-option:hover {
  border-color: var(--accent-primary);
  background: rgba(110, 231, 255, 0.06);
  transform: translateY(-1px);
}

.pulse-result {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 14px;
  border: 1px solid var(--border-subtle);
  background: rgba(110, 231, 255, 0.05);
}

.pulse-hidden { display: none; }

.pulse-btn {
  padding: 0.7rem 1.2rem;
  border-radius: 10px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  color: #fff;
}

.pulse-btn-primary {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
}

@media (max-width: 640px) {
  .pulse-options { grid-template-columns: 1fr; }
  .pulse-wrapper { padding: 1.2rem 1rem 1.4rem; border-radius: 16px; }
}

/* 留言板 */
.guestbook-container { max-width: 860px; margin: 0 auto; }

.gb-form {
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 2rem;
}

.gb-input-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.gb-input {
  flex: 1;
  padding: 0.8rem 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  color: var(--text-primary);
  font-size: 0.95rem;
}

.gb-input:focus {
  outline: none;
  border-color: var(--accent-primary);
}

.gb-textarea {
  width: 100%;
  min-height: 100px;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  color: var(--text-primary);
  font-size: 0.95rem;
  resize: vertical;
  font-family: inherit;
}

.gb-textarea:focus { outline: none; border-color: var(--accent-primary); }

.gb-counter {
  text-align: right;
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-top: 0.5rem;
}

.gb-submit {
  padding: 0.8rem 1.4rem;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  border: none;
  border-radius: 10px;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: 0.3s ease;
}

.gb-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px var(--glow-secondary);
}

.gb-captcha-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: 1rem;
}

.gb-captcha-question {
  font-family: 'Audiowide', sans-serif;
  font-size: 0.88rem;
  color: var(--accent-primary);
  min-width: 72px;
}

.gb-captcha-refresh {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--accent-primary);
  width: 34px;
  height: 34px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.1rem;
  transition: 0.3s ease;
}

.gb-captcha-refresh:hover { background: rgba(110, 231, 255, 0.08); }

.gb-messages { display: flex; flex-direction: column; gap: 1rem; }

.gb-loading { text-align: center; color: var(--text-secondary); padding: 2rem; }

.gb-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 1.2rem 1.4rem;
  animation: fadeIn 0.45s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.gb-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.7rem;
}

.gb-author { font-weight: 600; color: var(--accent-primary); }

.gb-time { font-size: 0.78rem; color: var(--text-secondary); }

.gb-text { color: var(--text-primary); line-height: 1.7; }

.download-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.4rem;
  max-width: 960px;
  margin: 0 auto;
}

.dl-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 2rem 1.4rem;
  text-align: center;
  transition: 0.35s ease;
}

.dl-card:hover {
  transform: translateY(-4px);
  border-color: rgba(110, 231, 255, 0.35);
  box-shadow: 0 12px 34px rgba(110, 231, 255, 0.12);
}

.dl-icon { color: var(--accent-primary); margin-bottom: 1rem; }

.dl-card h3 { font-size: 1.15rem; margin-bottom: 0.3rem; }

.dl-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.dl-badge {
  display: inline-block;
  padding: 0.25rem 0.7rem;
  background: rgba(124, 92, 255, 0.14);
  border: 1px solid rgba(124, 92, 255, 0.35);
  border-radius: 999px;
  font-size: 0.78rem;
  color: var(--accent-secondary);
}

.remote-section { max-width: 860px; margin: 0 auto; }

.remote-card {
  position: relative;
  background: linear-gradient(135deg, rgba(110, 231, 255, 0.08), rgba(124, 92, 255, 0.08));
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 3rem 2rem;
  text-align: center;
  overflow: hidden;
}

.remote-glow {
  position: absolute;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(110, 231, 255, 0.35), transparent);
  top: -70px;
  right: -70px;
  border-radius: 50%;
  filter: blur(50px);
}

.remote-content { position: relative; z-index: 1; }

.remote-content h3 { font-size: 1.7rem; margin-bottom: 0.8rem; }

.remote-content p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.footer {
  border-top: 1px solid var(--border-subtle);
  padding: 3rem 2rem;
  position: relative;
  z-index: 1;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.footer-brand .logo-icon {
  width: 28px;
  height: 28px;
  font-size: 0.75rem;
}

.footer-brand .logo-text {
  font-family: 'Audiowide', sans-serif;
  font-weight: 400;
  font-size: 1.2rem;
  letter-spacing: 0.06em;
}

.footer-brand p { color: var(--text-secondary); font-size: 0.88rem; }

.footer-links { display: flex; gap: 2rem; }

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: 0.3s ease;
}

.footer-links a:hover { color: var(--accent-primary); }

.footer-copy {
  width: 100%;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.82rem;
  margin-top: 2rem;
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(3, 7, 18, 0.92);
    backdrop-filter: blur(16px);
    flex-direction: column;
    padding: 1rem;
    gap: 1rem;
  }

  .nav-links.open { display: flex; }

  .nav-toggle { display: flex; }

  .hero-title { font-size: 2.6rem; }
  .section-title { font-size: 2rem; }

  section { padding: 4rem 1rem; }

  .awakening-stats { gap: 1.4rem; }
  .stat-value { font-size: 1.3rem; }
}
