@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,400;0,600;0,700;0,800;1,400&display=swap');

/* ===== 基础重置 ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  font-size: 16px;
  background: #1a1a2e;
  color: #e8e8f0;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}
body {
  min-height: 100vh;
  overflow-x: hidden;
  background: #1a1a2e;
  position: relative;
}
img { max-width: 100%; height: auto; display: block; }
a { color: #ff006e; text-decoration: none; transition: color .2s; }
a:hover { color: #ff0000; }
ul { list-style: none; }

/* ===== CRT 扫描线 ===== */
.crt-overlay {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 3px,
    rgba(0,0,0,0.08) 3px,
    rgba(0,0,0,0.08) 4px
  );
  mix-blend-mode: multiply;
}
.scanlines {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: linear-gradient(
    to bottom,
    rgba(255,0,110,0.015) 0%,
    transparent 50%,
    rgba(255,0,0,0.01) 100%
  );
  animation: scanMove 8s linear infinite;
}
@keyframes scanMove {
  0% { background-position: 0 0; }
  100% { background-position: 0 100vh; }
}

/* ===== 霓虹工具类 ===== */
.neon-red { color: #ff0000; text-shadow: 0 0 8px #ff0000, 0 0 20px #ff000080; }
.neon-pink { color: #ff006e; text-shadow: 0 0 8px #ff006e, 0 0 20px #ff006e80; }
.neon-tag {
  display: inline-block;
  padding: 4px 12px;
  border: 1px solid #ff006e;
  color: #ff006e;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  box-shadow: 0 0 8px #ff006e60;
  border-radius: 3px;
  margin-bottom: 1rem;
}

/* ===== 按钮 ===== */
.neon-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: transparent;
  border: 2px solid #ff0000;
  color: #ff0000;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .06em;
  cursor: pointer;
  border-radius: 4px;
  box-shadow: 0 0 12px #ff000060, inset 0 0 12px #ff000015;
  transition: background .25s, box-shadow .25s, color .25s;
  min-height: 44px;
}
.neon-btn:hover {
  background: #ff000022;
  box-shadow: 0 0 24px #ff0000, inset 0 0 24px #ff000030;
  color: #fff;
}
.neon-btn--lg { font-size: 1.15rem; padding: 16px 40px; }
.btn-arrow { font-size: 1.1em; }

/* ===== ASIDE 侧导航（契约：aside>nav>ul>li>a）===== */
.site-aside {
  position: fixed;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 200;
  width: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.aside-nav ul { display: flex; flex-direction: column; gap: 4px; }
.aside-nav li a.aside-nav-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: #ff006e80;
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: .04em;
  border: 1px solid #ff006e30;
  border-radius: 3px;
  writing-mode: horizontal-tb;
  transition: color .2s, border-color .2s, box-shadow .2s;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.aside-nav li a.aside-nav-link:hover {
  color: #ff006e;
  border-color: #ff006e;
  box-shadow: 0 0 8px #ff006e60;
}

/* ===== 顶部 HEADER ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  background: rgba(26,26,46,0.95);
  border-bottom: 1px solid #ff006e30;
  backdrop-filter: blur(8px);
}
.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  min-height: 60px;
}
.header-brand {
  display: flex;
  justify-content: center;
  align-items: center;
}
.brand-link {
  display: flex;
  align-items: center;
}
.site-logo { height: 36px; width: auto; }
.logo-text {
  font-size: 1.35rem;
  font-weight: 800;
  color: #ff0000;
  text-shadow: 0 0 12px #ff000080;
  letter-spacing: .08em;
}
.header-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
}
.header-nav--left ul { justify-content: flex-end; }
.header-nav--right ul { justify-content: flex-start; }
.nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 10px;
  color: #c8c8d8;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: .03em;
  border-radius: 3px;
  min-height: 40px;
  white-space: nowrap;
  transition: color .2s, background .2s;
}
.nav-link:hover {
  color: #ff006e;
  background: #ff006e12;
}
.nav-icon { color: #ff006e; font-size: 0.7rem; }

/* ===== 粘性锚点条 ===== */
.sticky-anchor-bar {
  position: sticky;
  top: 60px;
  z-index: 400;
  background: rgba(16,16,36,0.98);
  border-bottom: 1px solid #ff000040;
  overflow-x: auto;
  scrollbar-width: none;
}
.sticky-anchor-bar::-webkit-scrollbar { display: none; }
.anchor-bar-inner {
  display: flex;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  gap: 2px;
}
.anchor-link {
  display: flex;
  align-items: center;
  padding: 0 14px;
  height: 40px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #a0a0c0;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
  min-height: 40px;
}
.anchor-link:hover {
  color: #ff006e;
  border-bottom-color: #ff006e;
}

/* ===== 主内容 ===== */
.site-main {
  padding-top: 100px;
}

/* ===== HERO ===== */
.hero-section {
  position: relative;
  min-height: 70vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% 88%, 0 100%);
  background: linear-gradient(135deg, #0a0a1e 0%, #1a1a2e 50%, #0d0d22 100%);
  padding: 60px 60px 120px;
  gap: 40px;
}
.hero-figure {
  position: relative;
  height: 100%;
  min-height: 400px;
}
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 0 40px #ff006e30;
}
.hero-placeholder {
  width: 100%;
  height: 400px;
  background: linear-gradient(135deg, #1a1a2e, #0a0a1e);
  border: 1px solid #ff006e30;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}
.hero-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 20px,
    #ff006e08 20px,
    #ff006e08 21px
  );
}
.hero-glitch-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
}
.glitch-bar {
  display: block;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, #ff006e40, transparent);
  animation: glitchBar 3s ease-in-out infinite;
}
.glitch-bar:nth-child(2) { animation-delay: 1s; }
.glitch-bar:nth-child(3) { animation-delay: 2s; }
@keyframes glitchBar {
  0%, 100% { opacity: 0; transform: scaleX(0); }
  50% { opacity: 1; transform: scaleX(1); }
}
.hero-aside {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  gap: 20px;
  z-index: 2;
}
.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: .2em;
  color: #ff006e;
  text-shadow: 0 0 8px #ff006e80;
  text-transform: uppercase;
}
.hero-h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  color: #fff;
  text-shadow: 0 0 20px #ff000060;
  position: relative;
}
.glitch-text {
  animation: glitchText 6s ease-in-out infinite;
}
@keyframes glitchText {
  0%, 90%, 100% { text-shadow: 0 0 20px #ff000060; transform: none; }
  92% { text-shadow: -2px 0 #ff006e, 2px 0 #ff0000; transform: skewX(-1deg); }
  94% { text-shadow: 2px 0 #ff006e, -2px 0 #ff0000; transform: skewX(1deg); }
  96% { text-shadow: 0 0 20px #ff000060; transform: none; }
}
.hero-desc {
  font-size: 1rem;
  line-height: 1.6;
  color: #a0a0c0;
  max-width: 380px;
}

/* ===== 内容区（契约：main>article>figure/aside 交错）===== */
.content-section {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
  max-width: 1100px;
  margin: 80px auto;
  padding: 0 24px;
  align-items: start;
}
.content-aside {
  position: sticky;
  top: 110px;
  padding: 24px 20px;
  background: rgba(255,0,110,0.04);
  border: 1px solid #ff006e30;
  border-radius: 10px;
  box-shadow: 0 4px 24px #00000040;
}
.aside-meta { display: flex; flex-direction: column; gap: 6px; }
.aside-meta dt {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: .1em;
  color: #ff006e;
  text-transform: uppercase;
  margin-top: 8px;
}
.aside-meta dd { font-size: 0.9rem; color: #c0c0d0; }
.content-body {
  min-width: 0;
}

/* ===== page.content 内部样式 ===== */
.content-body h2 {
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  margin: 2.5rem 0 1rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid #ff006e30;
  position: relative;
}
.content-body h2::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 1em;
  background: #ff0000;
  box-shadow: 0 0 8px #ff000080;
  margin-right: 12px;
  vertical-align: middle;
}
.content-body h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #e0e0f0;
  margin: 1.8rem 0 .8rem;
}
.content-body p {
  font-size: 1rem;
  line-height: 1.8;
  color: #c0c0d0;
  margin-bottom: 1rem;
}
.content-body ul, .content-body ol {
  padding-left: 1.4em;
  margin-bottom: 1rem;
}
.content-body li {
  font-size: 1rem;
  line-height: 1.7;
  color: #b8b8cc;
  margin-bottom: .4rem;
}
.content-body a {
  color: #ff006e;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.content-body a:hover { color: #ff0000; }
.content-body strong { color: #ff0000; font-weight: 700; }
.content-body article {
  scroll-margin-top: 110px;
  padding: 32px 0;
  border-bottom: 1px solid #ffffff0a;
}
.content-body article:last-child { border-bottom: none; }

/* ===== 滚动揭示 ===== */
.reveal-section {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal-section.is-visible {
  opacity: 1;
  transform: none;
}

/* ===== 页脚 CTA ===== */
.footer-cta-block {
  background: linear-gradient(135deg, #0d0d22 0%, #1a0a1e 100%);
  border-top: 1px solid #ff006e40;
  border-bottom: 1px solid #ff006e40;
  padding: 60px 24px;
  text-align: center;
}
.footer-cta-inner { max-width: 700px; margin: 0 auto; }
.footer-cta-title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  margin-bottom: 24px;
  color: #fff;
}

/* ===== 页脚主体（三栏 dl 契约）===== */
.site-footer {
  background: #0a0a1e;
  border-top: 2px solid #ff000040;
}
.footer-main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 24px 40px;
}
.footer-brand-col { display: flex; flex-direction: column; gap: 16px; }
.footer-logo-img { height: 36px; width: auto; }
.footer-logo-text {
  font-size: 1.5rem;
  font-weight: 800;
  color: #ff0000;
  text-shadow: 0 0 12px #ff000060;
}
.footer-desc { font-size: 0.9rem; line-height: 1.7; color: #808098; max-width: 300px; }
.footer-links-col {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}
.footer-dl { flex: 1; min-width: 120px; }
.footer-dl dt {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: .12em;
  color: #ff006e;
  text-transform: uppercase;
  margin-bottom: 12px;
  text-shadow: 0 0 6px #ff006e60;
}
.footer-dl dd { margin-bottom: 8px; }
.footer-dl dd a {
  font-size: 0.88rem;
  color: #808098;
  transition: color .2s;
}
.footer-dl dd a:hover { color: #ff006e; }
.footer-plain-text { font-size: 0.88rem; color: #606078; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 24px;
  border-top: 1px solid #ffffff0a;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-copy { font-size: 0.82rem; color: #606078; }
.footer-tagline { font-size: 0.82rem; color: #404058; font-style: italic; }

/* ===== article scroll-margin ===== */
article[id] { scroll-margin-top: 110px; }

/* ===== 移动端 ===== */
@media (max-width: 900px) {
  .hero-section {
    grid-template-columns: 1fr;
    padding: 40px 24px 100px;
    clip-path: polygon(0 0, 100% 0, 100% 94%, 0 100%);
  }
  .hero-figure { min-height: 220px; }
  .hero-aside { align-items: flex-start; text-align: left; }
  .content-section {
    grid-template-columns: 1fr;
    margin: 40px auto;
  }
  .content-aside { position: static; }
  .footer-main { grid-template-columns: 1fr; padding: 40px 24px 24px; }
  .footer-links-col { gap: 24px; }
  .header-inner { grid-template-columns: auto 1fr; }
  .header-nav--left { display: none; }
  .header-nav--right { display: none; }
  .site-aside { display: none; }
}
@media (max-width: 600px) {
  .sticky-anchor-bar { top: 60px; }
  .anchor-link { padding: 0 10px; font-size: 0.75rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .hero-section { min-height: 55vh; }
  .footer-links-col { flex-direction: column; gap: 20px; }
}

/* ===== prefers-reduced-motion ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal-section { opacity: 1; transform: none; }
}

button[aria-expanded]{min-width:44px;min-height:44px}
