@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@400;500;600;700&family=Comic+Neue:wght@300;400;700&display=swap');

/* ===================== 基础重置 ===================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background: #0d0d0d;
  color: #e0e0e0;
}

body.cyberpunk-body {
  font-family: 'Baloo 2', 'Comic Neue', system-ui, sans-serif;
  background: #0d0d0d;
  color: #e0e0e0;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

body.menu-open {
  overflow: hidden;
}

/* ===================== 扫描线叠层 ===================== */
.scanlines {
  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.18) 3px,
    rgba(0, 0, 0, 0.18) 4px
  );
}

/* ===================== 霓虹发光工具 ===================== */
.neon-purple {
  text-shadow: 0 0 8px #8000ff, 0 0 20px #8000ff, 0 0 40px #8000ff;
}
.neon-pink {
  text-shadow: 0 0 8px #ff00ff, 0 0 20px #ff00ff, 0 0 40px #ff00ff;
}

/* ===================== 顶部导航：品牌行 ===================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 800;
  background: rgba(13, 13, 13, 0.97);
  border-bottom: 1px solid #8000ff;
  box-shadow: 0 2px 24px rgba(128, 0, 255, 0.25);
}

.brand-bar {
  background: linear-gradient(90deg, rgba(128,0,255,0.12) 0%, rgba(255,0,255,0.06) 100%);
  border-bottom: 1px solid rgba(128, 0, 255, 0.3);
}

.brand-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: #ff00ff;
  font-family: 'Baloo 2', sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  text-shadow: 0 0 8px #ff00ff, 0 0 20px #ff00ff;
  transition: text-shadow 0.3s;
}

.brand-link:hover {
  text-shadow: 0 0 16px #ff00ff, 0 0 40px #ff00ff, 0 0 60px #8000ff;
}

.brand-logo-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.brand-name {
  letter-spacing: 0.04em;
}

/* 汉堡按钮 */
.menu-toggle {
  background: none;
  border: 1px solid #8000ff;
  border-radius: 6px;
  padding: 8px 10px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-height: 44px;
  min-width: 44px;
  align-items: center;
  justify-content: center;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.menu-toggle:hover {
  border-color: #ff00ff;
  box-shadow: 0 0 12px rgba(255,0,255,0.5);
}

.hamburger-line {
  display: block;
  width: 22px;
  height: 2px;
  background: #8000ff;
  border-radius: 2px;
  box-shadow: 0 0 6px #8000ff;
  transition: background 0.3s;
}

.menu-toggle:hover .hamburger-line {
  background: #ff00ff;
  box-shadow: 0 0 6px #ff00ff;
}

/* ===================== 导航行 ===================== */
.nav-bar {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 48px;
}

.main-nav ol {
  display: flex;
  list-style: none;
  gap: 0.2rem;
  flex-wrap: nowrap;
}

.main-nav ol li a {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #c0c0c0;
  text-decoration: none;
  border-radius: 4px;
  transition: color 0.2s, text-shadow 0.2s, background 0.2s;
  white-space: nowrap;
  min-height: 40px;
}

.main-nav ol li a:hover {
  color: #ff00ff;
  text-shadow: 0 0 8px #ff00ff;
  background: rgba(255,0,255,0.07);
}

/* CTA 按钮 */
.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.4rem;
  background: linear-gradient(135deg, #8000ff 0%, #ff00ff 100%);
  color: #fff;
  font-family: 'Baloo 2', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 0 14px rgba(128,0,255,0.5), 0 0 28px rgba(255,0,255,0.2);
  transition: box-shadow 0.3s, transform 0.2s;
  min-height: 44px;
  white-space: nowrap;
}

.cta-btn:hover {
  box-shadow: 0 0 24px rgba(128,0,255,0.8), 0 0 48px rgba(255,0,255,0.5);
  transform: translateY(-1px);
}

.nav-cta {
  font-size: 0.82rem;
  padding: 0.45rem 1rem;
}

/* ===================== 全屏遮罩菜单 ===================== */
.fullscreen-menu {
  position: fixed;
  inset: 0;
  z-index: 900;
  background: rgba(13, 13, 13, 0.98);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  border: 2px solid transparent;
}

.fullscreen-menu.is-open {
  opacity: 1;
  pointer-events: auto;
  border-color: rgba(128,0,255,0.3);
}

.fullscreen-menu::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 3px,
    rgba(128,0,255,0.04) 3px,
    rgba(128,0,255,0.04) 4px
  );
  pointer-events: none;
}

.menu-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: 1px solid #ff00ff;
  color: #ff00ff;
  font-size: 1.4rem;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  text-shadow: 0 0 8px #ff00ff;
  transition: background 0.2s, box-shadow 0.2s;
}

.menu-close:hover {
  background: rgba(255,0,255,0.1);
  box-shadow: 0 0 16px rgba(255,0,255,0.5);
}

.fullscreen-nav-list {
  list-style: none;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.fullscreen-nav-list li {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  transition-delay: calc(var(--i, 0) * 0.07s);
}

.fullscreen-menu.is-open .fullscreen-nav-list li {
  opacity: 1;
  transform: translateY(0);
}

.fullscreen-nav-link {
  font-family: 'Baloo 2', sans-serif;
  font-size: clamp(1.4rem, 4vw, 2.2rem);
  font-weight: 700;
  color: #e0e0e0;
  text-decoration: none;
  padding: 0.5rem 1.5rem;
  display: inline-block;
  min-height: 44px;
  border-radius: 8px;
  transition: color 0.2s, text-shadow 0.2s, background 0.2s;
  letter-spacing: 0.04em;
}

.fullscreen-nav-link:hover {
  color: #ff00ff;
  text-shadow: 0 0 12px #ff00ff, 0 0 30px #8000ff;
  background: rgba(255,0,255,0.06);
}

/* ===================== Hero ===================== */
.hero-section {
  display: flex;
  flex-direction: column-reverse;
  min-height: 45vh;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem 2.5rem;
  gap: 1.5rem;
  position: relative;
  scroll-margin-top: 104px;
}

.hero-figure {
  width: 100%;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(128,0,255,0.35);
  box-shadow: 0 0 30px rgba(128,0,255,0.25);
  flex-shrink: 0;
  max-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(128,0,255,0.06);
}

.hero-figure:empty {
  display: none;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-aside {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  align-items: flex-start;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  color: #ff00ff;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-shadow: 0 0 8px #ff00ff;
  border: 1px solid rgba(255,0,255,0.4);
  border-radius: 4px;
  padding: 0.2rem 0.6rem;
}

.hero-h1 {
  font-family: 'Baloo 2', sans-serif;
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
  text-shadow: 0 0 16px rgba(128,0,255,0.6);
}

.hero-desc {
  font-size: 1.05rem;
  color: #aaa;
  max-width: 600px;
  line-height: 1.65;
}

.hero-cta {
  margin-top: 0.4rem;
}

/* ===================== 内容区（aside 左侧） ===================== */
.content-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.content-aside {
  flex: 0 0 200px;
  position: sticky;
  top: 112px;
}

.aside-inner {
  background: rgba(128,0,255,0.07);
  border: 1px solid rgba(128,0,255,0.25);
  border-radius: 18px;
  padding: 1.2rem 1rem;
}

.aside-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  color: #8000ff;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
  text-shadow: 0 0 6px #8000ff;
}

.aside-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.aside-nav-list li a {
  display: block;
  padding: 0.45rem 0.6rem;
  font-size: 0.85rem;
  color: #c0c0c0;
  text-decoration: none;
  border-radius: 6px;
  border-left: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
  min-height: 40px;
  line-height: 1.4;
  display: flex;
  align-items: center;
}

.aside-nav-list li a:hover {
  color: #ff00ff;
  border-left-color: #ff00ff;
  background: rgba(255,0,255,0.06);
  text-shadow: 0 0 6px #ff00ff;
}

.content-main {
  flex: 1;
  min-width: 0;
}

/* ===================== 正文内 div 样式（page.content 内） ===================== */
.content-main div,
.content-main [id] {
  scroll-margin-top: 112px;
  padding: 2rem 0;
  border-bottom: 1px solid rgba(128,0,255,0.15);
}

.content-main div:last-child,
.content-main [id]:last-child {
  border-bottom: none;
}

.content-main h2 {
  font-family: 'Baloo 2', sans-serif;
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  font-weight: 700;
  color: #ff00ff;
  text-shadow: 0 0 10px rgba(255,0,255,0.5);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.content-main h3 {
  font-family: 'Baloo 2', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: #c080ff;
  margin: 1.2rem 0 0.6rem;
  text-shadow: 0 0 6px rgba(192,128,255,0.4);
}

.content-main p {
  font-size: 1rem;
  line-height: 1.7;
  color: #d0d0d0;
  margin-bottom: 0.9rem;
  max-width: 68ch;
}

.content-main ul,
.content-main ol {
  padding-left: 1.4rem;
  margin-bottom: 0.9rem;
}

.content-main li {
  font-size: 1rem;
  line-height: 1.65;
  color: #d0d0d0;
  margin-bottom: 0.35rem;
}

.content-main a {
  color: #ff00ff;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: text-shadow 0.2s;
}

.content-main a:hover {
  text-shadow: 0 0 8px #ff00ff;
}

.content-main strong {
  color: #fff;
  font-weight: 700;
}

.content-main table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
}

.content-main th,
.content-main td {
  border: 1px solid rgba(128,0,255,0.3);
  padding: 0.6rem 0.8rem;
  font-size: 0.95rem;
  text-align: left;
}

.content-main th {
  background: rgba(128,0,255,0.15);
  color: #ff00ff;
}

/* ===================== small 眉题（build2 注入） ===================== */
small + h2,
small + h3 {
  margin-top: 0.3rem;
}

small {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #8000ff;
  text-shadow: 0 0 6px #8000ff;
}

/* ===================== 页脚 ===================== */
.site-footer {
  border-top: 1px solid rgba(128,0,255,0.4);
  box-shadow: 0 -2px 24px rgba(128,0,255,0.15);
  background: rgba(13,13,13,0.98);
}

.footer-cta-section {
  text-align: center;
  padding: 3rem 1.5rem 2.5rem;
  background: linear-gradient(180deg, rgba(128,0,255,0.08) 0%, transparent 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.footer-eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  color: #8000ff;
  letter-spacing: 0.14em;
  text-shadow: 0 0 6px #8000ff;
  border: 1px solid rgba(128,0,255,0.4);
  border-radius: 4px;
  padding: 0.2rem 0.6rem;
}

.footer-cta-title {
  font-family: 'Baloo 2', sans-serif;
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 700;
  color: #ff00ff;
  text-shadow: 0 0 16px #ff00ff, 0 0 32px #8000ff;
}

.footer-cta-btn {
  font-size: 1rem;
}

.footer-bottom-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding: 1rem 1.5rem;
  border-top: 1px solid rgba(128,0,255,0.2);
  max-width: 1200px;
  margin: 0 auto;
}

.footer-copy {
  font-size: 0.8rem;
  color: #666;
}

.footer-desc {
  font-size: 0.78rem;
  color: #555;
}

.footer-links {
  font-size: 0.8rem;
}

/* ===================== 动效 ===================== */
@media (prefers-reduced-motion: no-preference) {
  .main-nav ol li {
    animation: fadeInDown 0.4s ease both;
    animation-delay: calc(var(--i, 0) * 0.06s);
  }

  @keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  @keyframes glitch {
    0%   { transform: skewX(0deg); }
    5%   { transform: skewX(-4deg) translateX(2px); }
    10%  { transform: skewX(3deg) translateX(-2px); }
    15%  { transform: skewX(0deg); }
    100% { transform: skewX(0deg); }
  }

  .hero-h1 {
    animation: glitch 6s infinite;
  }

  .brand-name {
    animation: glitch 8s infinite 2s;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* ===================== 响应式 ===================== */
@media (max-width: 900px) {
  .content-section {
    flex-direction: column;
  }

  .content-aside {
    position: static;
    flex: none;
    width: 100%;
  }

  .aside-inner {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
  }

  .aside-nav-list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.3rem;
  }

  .aside-nav-list li a {
    border-left: none;
    border-bottom: 2px solid transparent;
    min-height: 40px;
    padding: 0.4rem 0.8rem;
  }

  .aside-nav-list li a:hover {
    border-left-color: transparent;
    border-bottom-color: #ff00ff;
  }

  .main-nav ol {
    gap: 0;
    overflow-x: auto;
  }

  .main-nav ol li a {
    font-size: 0.78rem;
    padding: 0.45rem 0.5rem;
  }
}

@media (max-width: 600px) {
  .brand-bar-inner {
    height: 52px;
    padding: 0 1rem;
  }

  .nav-bar {
    padding: 0 1rem;
    height: 44px;
  }

  .main-nav {
    display: none;
  }

  .nav-cta {
    display: none;
  }

  .hero-section {
    padding: 1.5rem 1rem 2rem;
    min-height: auto;
  }

  .hero-h1 {
    font-size: 1.6rem;
  }

  .content-section {
    padding: 1.5rem 1rem 2.5rem;
  }

  .footer-bottom-section {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
  }

  .footer-cta-section {
    padding: 2rem 1rem;
  }
}

/* scroll-margin-top for sections inside page.content */
div[id] {
  scroll-margin-top: 112px;
}
