@import url('https://fonts.googleapis.com/css2?family=Cormorant:wght@400;500;600;700&family=Montserrat:wght@300;400;500;600;700&display=swap');

/* ── 自定义属性 ── */
:root {
  --c-bg: #0d0d0d;
  --c-surface: #111118;
  --c-surface2: #16161f;
  --c-purple: #8000ff;
  --c-magenta: #ff00ff;
  --c-purple-dim: rgba(128,0,255,0.18);
  --c-magenta-dim: rgba(255,0,255,0.12);
  --c-text: #e8e0f0;
  --c-text-muted: #9980bb;
  --c-border: rgba(128,0,255,0.35);
  --c-border-bright: rgba(255,0,255,0.5);
  --font-serif: 'Cormorant', 'Georgia', serif;
  --font-mono: 'Montserrat', 'Courier New', monospace;
  --aside-w: 220px;
  --header-h: 40px;
  --nav-glow: 0 0 8px var(--c-purple), 0 0 20px rgba(128,0,255,0.4);
  --text-glow-p: 0 0 8px rgba(128,0,255,0.8), 0 0 20px rgba(128,0,255,0.4);
  --text-glow-m: 0 0 8px rgba(255,0,255,0.8), 0 0 24px rgba(255,0,255,0.5);
  --transition-fast: 0.18s ease;
  --transition-mid: 0.32s ease;
  --radius-card: 10px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font-mono);
  font-size: 16px;
  line-height: 1.7;
  -webkit-text-size-adjust: 100%;
}
body { background: var(--c-bg); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-magenta); text-decoration: none; transition: color var(--transition-fast), text-shadow var(--transition-fast); }
a:hover { color: #fff; text-shadow: var(--text-glow-m); }
ul { list-style: none; }
h1,h2,h3,h4 { font-family: var(--font-serif); font-weight: 700; line-height: 1.2; }
p { margin-bottom: 1em; }

/* ── 扫描线遮罩 ── */
.scanlines {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0,0,0,0) 0px,
    rgba(0,0,0,0) 2px,
    rgba(0,0,0,0.18) 2px,
    rgba(0,0,0,0.18) 4px
  );
}

/* ── 侧边栏导航 ── */
.site-aside {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: var(--aside-w);
  background: var(--c-surface);
  border-right: 1px solid var(--c-border);
  display: flex;
  flex-direction: column;
  gap: 0;
  z-index: 200;
  box-shadow: 4px 0 24px rgba(128,0,255,0.12);
}

.aside-brand {
  padding: 24px 18px 16px;
  border-bottom: 1px solid var(--c-border);
}
.brand-link { display: block; }
.site-logo-img { width: 44px; height: 44px; object-fit: contain; }
.site-logo-text {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--c-purple);
  text-shadow: var(--text-glow-p);
  letter-spacing: 0.04em;
}

.site-aside > nav {
  flex: 1;
  padding: 16px 0;
  overflow-y: auto;
}
.site-aside > nav ul {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.site-aside > nav ul > li > a {
  display: block;
  padding: 11px 20px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--c-text-muted);
  text-transform: uppercase;
  border-left: 2px solid transparent;
  transition: color var(--transition-fast), border-color var(--transition-fast), background var(--transition-fast), text-shadow var(--transition-fast);
  min-height: 40px;
  line-height: 1.2;
  display: flex;
  align-items: center;
}
.site-aside > nav ul > li > a:hover,
.site-aside > nav ul > li > a:focus-visible {
  color: var(--c-magenta);
  border-left-color: var(--c-magenta);
  background: var(--c-magenta-dim);
  text-shadow: var(--text-glow-m);
}

.aside-tagline {
  padding: 14px 20px;
  border-top: 1px solid var(--c-border);
}
.tagline-inner {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: var(--c-purple);
  text-shadow: var(--text-glow-p);
  opacity: 0.8;
}

/* ── 页面包装（主区域） ── */
.page-wrapper {
  margin-left: var(--aside-w);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── 顶部公告条 ── */
.site-header {
  position: sticky;
  top: 0;
  height: var(--header-h);
  background: rgba(13,13,13,0.9);
  border-bottom: 1px solid var(--c-border);
  backdrop-filter: blur(8px);
  z-index: 100;
  display: flex;
  align-items: center;
  padding: 0 24px;
}
.header-ticker {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  overflow: hidden;
}
.ticker-label {
  color: var(--c-magenta);
  text-shadow: var(--text-glow-m);
  white-space: nowrap;
  font-weight: 600;
}
.ticker-text {
  color: var(--c-text-muted);
  white-space: nowrap;
}

/* ── Hero ── */
.hero-section {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--c-bg);
  scroll-margin-top: calc(var(--header-h) + 8px);
}
.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(128,0,255,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(128,0,255,0.08) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: 0;
}
.hero-grid-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 50%, rgba(128,0,255,0.14) 0%, transparent 70%);
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 48px 24px 72px;
  max-width: 760px;
}
.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--c-purple);
  text-shadow: var(--text-glow-p);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.hero-content h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 700;
  color: #fff;
  text-shadow: 0 0 30px rgba(255,0,255,0.5), 0 0 60px rgba(128,0,255,0.4);
  letter-spacing: 0.02em;
  margin-bottom: 20px;
  line-height: 1.1;
}
.hero-desc {
  font-size: 1rem;
  color: var(--c-text-muted);
  line-height: 1.8;
  margin-bottom: 32px;
  max-width: 560px;
  margin-inline: auto;
}
.hero-cta-row {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  padding: 12px 28px;
  background: var(--c-purple);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 4px;
  box-shadow: 0 0 16px rgba(128,0,255,0.5), 0 0 40px rgba(128,0,255,0.2);
  transition: box-shadow var(--transition-fast), background var(--transition-fast);
  min-height: 44px;
}
.btn-primary:hover { background: #9a20ff; box-shadow: 0 0 28px rgba(128,0,255,0.8), 0 0 60px rgba(128,0,255,0.4); color: #fff; text-shadow: none; }
.btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: 12px 28px;
  border: 1px solid var(--c-magenta);
  color: var(--c-magenta);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 4px;
  box-shadow: 0 0 10px rgba(255,0,255,0.2);
  transition: box-shadow var(--transition-fast), background var(--transition-fast), color var(--transition-fast);
  min-height: 44px;
}
.btn-ghost:hover { background: var(--c-magenta-dim); color: #fff; box-shadow: 0 0 20px rgba(255,0,255,0.5); text-shadow: none; }

/* 斜切底边 */
.hero-clip {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 60px;
  background: var(--c-bg);
  clip-path: polygon(0 60px, 100% 0, 100% 60px);
  z-index: 3;
}

/* ── 主内容区 ── */
main { flex: 1; }

.content-section {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 48px 24px 64px;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 0 20px;
  align-items: start;
}

/* HUD装饰 figure */
.content-figure {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  width: 56px;
  display: flex;
  justify-content: center;
  margin: 0;
}
.hud-ornament {
  position: relative;
  width: 32px;
  height: 120px;
}
.hud-line {
  position: absolute;
  background: var(--c-purple);
  box-shadow: 0 0 6px var(--c-purple);
  opacity: 0.6;
}
.hud-line-h { top: 50%; left: 0; right: 0; height: 1px; transform: translateY(-50%); }
.hud-line-v { left: 50%; top: 0; bottom: 0; width: 1px; transform: translateX(-50%); }
.hud-corner {
  position: absolute;
  width: 8px;
  height: 8px;
  border-color: var(--c-magenta);
  border-style: solid;
  box-shadow: 0 0 6px var(--c-magenta);
}
.hud-tl { top: 0; left: 0; border-width: 2px 0 0 2px; }
.hud-tr { top: 0; right: 0; border-width: 2px 2px 0 0; }
.hud-bl { bottom: 0; left: 0; border-width: 0 0 2px 2px; }
.hud-br { bottom: 0; right: 0; border-width: 0 2px 2px 0; }

/* 正文 */
.content-body { min-width: 0; }

/* section 内容 (page.content 里的各 section) */
.content-body section {
  padding: 48px 0;
  border-bottom: 1px solid var(--c-border);
  scroll-margin-top: calc(var(--header-h) + 16px);
}
.content-body section:last-child { border-bottom: none; }

.content-body h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  color: #fff;
  text-shadow: 0 0 16px rgba(128,0,255,0.6);
  margin-bottom: 20px;
  position: relative;
  padding-left: 16px;
}
.content-body h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8%;
  bottom: 8%;
  width: 3px;
  background: linear-gradient(to bottom, var(--c-purple), var(--c-magenta));
  box-shadow: 0 0 8px var(--c-magenta);
  border-radius: 2px;
}
.content-body h2 > span { color: inherit; }
.content-body h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--c-magenta);
  text-shadow: 0 0 10px rgba(255,0,255,0.4);
  margin: 20px 0 10px;
}
.content-body h3 > span { color: inherit; }
.content-body p { color: var(--c-text); font-size: 1rem; line-height: 1.85; }
.content-body ul, .content-body ol {
  padding-left: 20px;
  margin-bottom: 1em;
  color: var(--c-text);
}
.content-body li { margin-bottom: 6px; line-height: 1.75; }
.content-body a { color: var(--c-magenta); border-bottom: 1px solid rgba(255,0,255,0.25); }
.content-body a:hover { border-bottom-color: var(--c-magenta); }

/* 卡片（正文内可能有） */
.content-body .card, .card {
  background: var(--c-surface2);
  border: 1px solid var(--c-border);
  border-bottom: 3px solid var(--c-purple);
  border-radius: var(--radius-card);
  padding: 20px;
  margin-bottom: 16px;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.card:hover {
  border-color: var(--c-magenta);
  border-bottom-color: var(--c-magenta);
  box-shadow: 0 0 20px rgba(255,0,255,0.15);
}

/* ── 页脚 ── */
.site-footer {
  background: var(--c-surface);
  border-top: 1px solid var(--c-border);
  padding: 0;
}
.footer-main {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  padding: 40px 40px 32px;
  border-bottom: 1px solid var(--c-border);
}
.footer-brand-block { flex: 1; min-width: 0; }
.footer-brand-big {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 700;
  color: var(--c-purple);
  text-shadow: 0 0 30px rgba(128,0,255,0.6), 0 0 60px rgba(128,0,255,0.3);
  letter-spacing: 0.04em;
  line-height: 1;
  margin-bottom: 12px;
}
.footer-brand-desc {
  font-size: 0.82rem;
  color: var(--c-text-muted);
  line-height: 1.6;
  max-width: 320px;
}
.footer-nav ul {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 160px;
}
.footer-nav ul li a {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--c-text-muted);
  text-transform: uppercase;
  padding: 6px 0;
  display: block;
  min-height: 40px;
  display: flex;
  align-items: center;
  transition: color var(--transition-fast), text-shadow var(--transition-fast);
}
.footer-nav ul li a:hover { color: var(--c-magenta); text-shadow: var(--text-glow-m); }

.footer-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 40px;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-copy {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--c-text-muted);
  letter-spacing: 0.06em;
}
.footer-status {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: var(--c-purple);
  text-shadow: var(--text-glow-p);
  opacity: 0.7;
}

/* ── Scroll Reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.reveal-stagger.visible > * { opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.08s; }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.16s; }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 0.24s; }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: 0.32s; }
.reveal-stagger.visible > *:nth-child(6) { transition-delay: 0.40s; }
.reveal-stagger.visible > *:nth-child(7) { transition-delay: 0.48s; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-stagger > * { opacity: 1 !important; transform: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .scanlines { display: none; }
}

/* ── 霓虹字闪烁动效 ── */
@keyframes neonPulse {
  0%, 100% { text-shadow: 0 0 8px rgba(128,0,255,0.8), 0 0 20px rgba(128,0,255,0.4); }
  50% { text-shadow: 0 0 16px rgba(128,0,255,1), 0 0 40px rgba(128,0,255,0.7), 0 0 70px rgba(128,0,255,0.3); }
}
@keyframes glitchSkew {
  0%, 92%, 100% { transform: skewX(0deg); }
  93% { transform: skewX(-2deg); }
  96% { transform: skewX(1.5deg); }
}
.hero-content h1 {
  animation: neonPulse 3s ease-in-out infinite, glitchSkew 8s linear infinite;
}
@media (prefers-reduced-motion: reduce) {
  .hero-content h1 { animation: none; }
}

/* ── 响应式 ── */
@media (max-width: 900px) {
  .content-section {
    grid-template-columns: 1fr;
  }
  .content-figure { display: none; }
  .footer-main { flex-direction: column; gap: 24px; }
}

@media (max-width: 768px) {
  :root { --aside-w: 0px; }
  .site-aside {
    position: fixed;
    left: -240px;
    width: 240px;
    transition: left var(--transition-mid);
    z-index: 300;
  }
  .site-aside.open { left: 0; }
  .page-wrapper { margin-left: 0; }
  .site-header { padding: 0 16px; justify-content: space-between; }
  .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: none;
    border: 1px solid var(--c-border);
    color: var(--c-purple);
    cursor: pointer;
    font-size: 1.1rem;
    letter-spacing: 0;
    border-radius: 4px;
    flex-shrink: 0;
  }
  .hero-content h1 { font-size: 2rem; }
  .hero-cta-row { flex-direction: column; align-items: center; }
  .content-section { padding: 32px 16px 48px; }
  .footer-main { padding: 28px 16px 20px; }
  .footer-bar { padding: 12px 16px; }
  .footer-brand-big { font-size: 2rem; }
}

@media (min-width: 769px) {
  .menu-toggle { display: none; }
  .overlay { display: none; }
}

.overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 250;
}
.overlay.active { display: block; }

/* ── 焦点可见 ── */
:focus-visible { outline: 2px solid var(--c-magenta); outline-offset: 3px; }
