@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@700&display=swap');

/* ===== 基础变量 ===== */
:root {
  --green: #69ff69;
  --cyan: #00ffff;
  --dark: #172617;
  --dark2: #0d1a0d;
  --dark3: #1e341e;
  --glass: rgba(105, 255, 105, 0.07);
  --glass-border: rgba(105, 255, 105, 0.25);
  --glass-cyan: rgba(0, 255, 255, 0.08);
  --text-main: #e8ffe8;
  --text-muted: #8bbb8b;
  --font: 'Space Grotesk', 'Arial Black', Arial, sans-serif;
  --header-h: 64px;
  --anchor-h: 40px;
  --radius: 0px;
  --transition: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  font-size: 16px;
  background: var(--dark2);
  color: var(--text-main);
}
body.y2k-body {
  font-family: var(--font);
  background: var(--dark2);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* ===== 扫描线覆盖 ===== */
.scanline-overlay {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,0.04) 2px,
    rgba(0,0,0,0.04) 4px
  );
}

/* ===== 滚动边距（粘性导航补偿）===== */
article[id] {
  scroll-margin-top: calc(var(--header-h) + var(--anchor-h) + 8px);
}

/* ===== 公告滚动条 ===== */
.ticker-bar {
  background: linear-gradient(90deg, var(--dark3) 0%, #0a2010 50%, var(--dark3) 100%);
  border-bottom: 1px solid var(--green);
  overflow: hidden;
  white-space: nowrap;
  height: 32px;
  display: flex;
  align-items: center;
}
.ticker-inner {
  display: inline-block;
  padding-left: 100%;
  animation: ticker-scroll 28s linear infinite;
  color: var(--green);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-shadow: 0 0 8px var(--green);
}
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

/* ===== 顶部 Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 32px;
  background: rgba(23, 38, 23, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--green);
  box-shadow: 0 0 24px rgba(105,255,105,0.15), 0 2px 0 var(--green);
}

.header-brand { flex-shrink: 0; }
.brand-link { text-decoration: none; display: flex; align-items: center; }
.site-logo { height: 36px; width: auto; }
.logo-text {
  font-size: 22px;
  font-weight: 700;
  color: var(--green);
  text-shadow: 0 0 12px var(--green), 0 0 24px rgba(105,255,105,0.5);
  letter-spacing: 0.06em;
}

/* 导航：header > nav > p > a */
.site-nav { flex: 1; overflow: hidden; }
.site-nav p {
  display: flex;
  flex-wrap: nowrap;
  gap: 4px;
  align-items: center;
}
.site-nav p a {
  color: var(--text-main);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 10px 12px;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: color var(--transition), border-color var(--transition), text-shadow var(--transition);
}
.site-nav p a:hover,
.site-nav p a:focus {
  color: var(--green);
  border-color: var(--green);
  text-shadow: 0 0 8px var(--green);
  outline: none;
}

.header-tagline {
  flex-shrink: 0;
  font-size: 11px;
  color: var(--cyan);
  letter-spacing: 0.18em;
  text-shadow: 0 0 8px var(--cyan);
  opacity: 0.7;
}

/* ===== 粘性锚点条 ===== */
.sticky-anchor-bar {
  position: sticky;
  top: var(--header-h);
  z-index: 800;
  height: var(--anchor-h);
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0 32px;
  background: rgba(13, 26, 13, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(0,255,255,0.2);
  overflow-x: auto;
  scrollbar-width: none;
}
.sticky-anchor-bar::-webkit-scrollbar { display: none; }

.anchor-chip {
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  height: var(--anchor-h);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: 0.05em;
  border-right: 1px solid rgba(0,255,255,0.1);
  white-space: nowrap;
  transition: color var(--transition), background var(--transition);
}
.anchor-chip:first-child { border-left: 1px solid rgba(0,255,255,0.1); }
.anchor-chip:hover,
.anchor-chip:focus {
  color: var(--cyan);
  background: rgba(0,255,255,0.06);
  text-shadow: 0 0 6px var(--cyan);
  outline: none;
}

/* ===== Main ===== */
.site-main { width: 100%; }
.main-article { width: 100%; }

/* ===== Hero ===== */
.hero-section {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 80px 48px 64px;
  background:
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(0,255,255,0.08) 0%, transparent 70%),
    radial-gradient(ellipse 60% 80% at 20% 80%, rgba(105,255,105,0.1) 0%, transparent 60%),
    linear-gradient(160deg, var(--dark2) 0%, #0a200a 50%, var(--dark2) 100%);
  overflow: hidden;
  border-bottom: 2px solid rgba(105,255,105,0.2);
}

.hero-bg-text {
  position: absolute;
  left: -20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: clamp(100px, 22vw, 220px);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(105,255,105,0.08);
  user-select: none;
  pointer-events: none;
  line-height: 1;
  white-space: nowrap;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: right;
  max-width: 640px;
}

.hero-eyebrow {
  font-size: 13px;
  letter-spacing: 0.18em;
  color: var(--cyan);
  text-shadow: 0 0 10px var(--cyan);
  margin-bottom: 16px;
  text-transform: uppercase;
}

.hero-h1 {
  font-size: clamp(36px, 7vw, 80px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--green) 0%, var(--cyan) 60%, #fff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 20px rgba(105,255,105,0.4));
}

.hero-sub {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 480px;
  margin-left: auto;
}

.hero-cta-row {
  display: flex;
  gap: 16px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

/* 装饰泡泡 */
.hero-deco { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.bubble {
  position: absolute;
  border-radius: 50%;
  opacity: 0.18;
  animation: float-bubble 6s ease-in-out infinite;
}
.b1 { width: 120px; height: 120px; left: 8%; top: 15%; background: radial-gradient(circle, var(--green), transparent); animation-delay: 0s; }
.b2 { width: 80px; height: 80px; left: 25%; bottom: 20%; background: radial-gradient(circle, var(--cyan), transparent); animation-delay: 2s; }
.b3 { width: 60px; height: 60px; right: 12%; top: 25%; background: radial-gradient(circle, var(--green), transparent); animation-delay: 4s; }

.sparkle {
  position: absolute;
  color: var(--green);
  font-size: 20px;
  animation: sparkle-anim 3s ease-in-out infinite;
  text-shadow: 0 0 8px var(--green);
}
.s1 { left: 15%; top: 30%; animation-delay: 0s; }
.s2 { left: 40%; top: 10%; animation-delay: 1s; color: var(--cyan); text-shadow: 0 0 8px var(--cyan); }
.s3 { right: 20%; bottom: 30%; animation-delay: 2s; font-size: 14px; }

@keyframes float-bubble {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-20px) scale(1.05); }
}
@keyframes sparkle-anim {
  0%, 100% { opacity: 0.4; transform: scale(1) rotate(0deg); }
  50% { opacity: 1; transform: scale(1.3) rotate(30deg); }
}

/* ===== 按钮 ===== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  min-height: 48px;
  background: linear-gradient(135deg, var(--green) 0%, #3dcc3d 100%);
  color: var(--dark2);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 0 16px rgba(105,255,105,0.5), 0 4px 0 rgba(0,0,0,0.3);
}
.btn-primary::before {
  content: '';
  position: absolute;
  top: 0; left: -100%; width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transform: skewX(-20deg);
  transition: left 0.5s ease;
}
.btn-primary:hover::before { left: 150%; }
.btn-primary:hover, .btn-primary:focus {
  transform: translateY(-2px);
  box-shadow: 0 0 28px rgba(105,255,105,0.7), 0 6px 0 rgba(0,0,0,0.3);
  outline: 2px solid var(--green);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  min-height: 48px;
  background: transparent;
  color: var(--cyan);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  border: 2px solid var(--cyan);
  transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
  box-shadow: 0 0 10px rgba(0,255,255,0.25), inset 0 0 10px rgba(0,255,255,0.05);
}
.btn-ghost:hover, .btn-ghost:focus {
  background: rgba(0,255,255,0.1);
  box-shadow: 0 0 20px rgba(0,255,255,0.5);
  transform: translateY(-2px);
  outline: none;
}

.btn-large { font-size: 18px; padding: 18px 40px; }

/* ===== 内容区布局 ===== */
.content-with-aside {
  display: flex;
  align-items: flex-start;
  gap: 0;
  max-width: 1400px;
  margin: 0 auto;
  padding: 48px 32px;
}

/* ===== Aside（左侧）===== */
.site-aside {
  flex-shrink: 0;
  width: 220px;
  margin-right: 40px;
  position: sticky;
  top: calc(var(--header-h) + var(--anchor-h) + 16px);
  align-self: flex-start;
}
.aside-inner {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(8px);
  padding: 24px 20px;
  box-shadow: 0 0 16px rgba(105,255,105,0.08), inset 0 0 20px rgba(105,255,105,0.03);
}
.aside-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--green);
  text-shadow: 0 0 8px var(--green);
  margin-bottom: 4px;
  text-transform: uppercase;
}
.aside-inner > p.subtitle {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.aside-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.aside-link {
  display: block;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: 0.04em;
  border-left: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}
.aside-link:hover, .aside-link:focus {
  color: var(--green);
  border-left-color: var(--green);
  background: rgba(105,255,105,0.06);
  text-shadow: 0 0 6px rgba(105,255,105,0.4);
  outline: none;
}
.aside-badge {
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--cyan);
  letter-spacing: 0.06em;
}
.badge-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px var(--green);
  animation: pulse-dot 2s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 6px var(--green); }
  50% { box-shadow: 0 0 14px var(--green), 0 0 20px rgba(105,255,105,0.4); }
}

/* ===== 正文主列 ===== */
.main-content-col { flex: 1; min-width: 0; }

.page-content-section { width: 100%; }

/* ===== 正文内容样式（page.content 内部）===== */
.page-content-section h2 {
  font-size: clamp(22px, 3.5vw, 36px);
  font-weight: 700;
  color: var(--green);
  text-shadow: 0 0 12px rgba(105,255,105,0.4);
  letter-spacing: -0.01em;
  margin: 56px 0 8px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(105,255,105,0.2);
}
.page-content-section h2:first-child { margin-top: 0; }

.page-content-section h3 {
  font-size: clamp(18px, 2.5vw, 24px);
  font-weight: 700;
  color: var(--cyan);
  margin: 32px 0 12px;
  letter-spacing: 0.02em;
}

.page-content-section p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-main);
  margin-bottom: 16px;
  max-width: 72ch;
}

.page-content-section a {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition), text-shadow var(--transition);
}
.page-content-section a:hover {
  color: var(--cyan);
  text-shadow: 0 0 6px var(--cyan);
}

.page-content-section ul,
.page-content-section ol {
  margin: 12px 0 20px 24px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-main);
}
.page-content-section li { margin-bottom: 6px; }

.page-content-section strong {
  color: var(--green);
  font-weight: 700;
}

.page-content-section article {
  margin-bottom: 64px;
  padding: 40px 36px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(6px);
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(105,255,105,0.05), inset 0 0 30px rgba(105,255,105,0.02);
}
.page-content-section article::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--green), var(--cyan), transparent);
}

.page-content-section .subtitle,
.page-content-section p.subtitle,
.page-content-section p.subhead,
.page-content-section p.lead {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 24px;
  letter-spacing: 0.03em;
}

/* 卡片（glass 玻璃拟态，radius=0）*/
.page-content-section .card,
.page-content-section figure {
  background: var(--glass-cyan);
  border: 1px solid rgba(0,255,255,0.2);
  padding: 24px;
  margin: 24px 0;
  position: relative;
  box-shadow: 0 0 16px rgba(0,255,255,0.06);
  transition: box-shadow var(--transition), border-color var(--transition);
}
.page-content-section .card:hover {
  border-color: var(--cyan);
  box-shadow: 0 0 24px rgba(0,255,255,0.2);
}

/* 图片 */
.page-content-section img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* 时间标签 */
.page-content-section time {
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

/* ===== 交错动画（stagger）===== */
@media (prefers-reduced-motion: no-preference) {
  .page-content-section article {
    opacity: 0;
    transform: translateY(32px);
    animation: section-in 0.6s ease forwards;
  }
  .page-content-section article:nth-child(1) { animation-delay: 0.05s; }
  .page-content-section article:nth-child(2) { animation-delay: 0.12s; }
  .page-content-section article:nth-child(3) { animation-delay: 0.19s; }
  .page-content-section article:nth-child(4) { animation-delay: 0.26s; }
  .page-content-section article:nth-child(5) { animation-delay: 0.33s; }
  .page-content-section article:nth-child(6) { animation-delay: 0.40s; }
  .page-content-section article:nth-child(7) { animation-delay: 0.47s; }
}
@keyframes section-in {
  to { opacity: 1; transform: translateY(0); }
}

/* ===== 页脚 ===== */
.site-footer {
  border-top: 2px solid rgba(105,255,105,0.2);
  margin-top: 80px;
}

/* footer > article (CTA) */
.footer-cta-section {
  background: linear-gradient(135deg, #0a1f0a 0%, #0a1a1a 100%);
  padding: 80px 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.footer-cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 60% at 50% 50%, rgba(105,255,105,0.07) 0%, transparent 70%);
}
.footer-cta-inner { position: relative; z-index: 1; }

.footer-cta-label {
  font-size: 13px;
  letter-spacing: 0.16em;
  color: var(--cyan);
  text-shadow: 0 0 8px var(--cyan);
  margin-bottom: 12px;
  text-transform: uppercase;
}
.footer-cta-title {
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 700;
  color: var(--green);
  text-shadow: 0 0 20px rgba(105,255,105,0.5);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.footer-cta-inner > .subtitle {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 36px;
}
.footer-cta-inner h2 + .subtitle { margin-top: -4px; }

/* footer > article (底栏) */
.footer-bottom-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 32px;
  background: var(--dark2);
  border-top: 1px solid rgba(105,255,105,0.1);
}
.footer-copy {
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}
.footer-links {
  display: flex;
  gap: 20px;
}
.footer-links a {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  padding: 12px 4px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  transition: color var(--transition);
}
.footer-links a:hover {
  color: var(--green);
  text-shadow: 0 0 6px var(--green);
}

/* ===== 响应式 ===== */
@media (max-width: 900px) {
  .content-with-aside {
    flex-direction: column;
    padding: 32px 20px;
  }
  .site-aside {
    width: 100%;
    margin-right: 0;
    margin-bottom: 32px;
    position: static;
  }
  .aside-inner { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; }
  .aside-nav { flex-direction: row; flex-wrap: wrap; }
  .aside-link { border-left: none; border-bottom: 2px solid transparent; padding: 8px 10px; }
  .aside-link:hover { border-bottom-color: var(--green); border-left-color: transparent; }
}

@media (max-width: 768px) {
  :root { --header-h: 56px; }

  .site-header {
    padding: 0 16px;
    gap: 12px;
  }
  .logo-text { font-size: 18px; }
  .header-tagline { display: none; }

  .site-nav p {
    gap: 0;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .site-nav p::-webkit-scrollbar { display: none; }
  .site-nav p a {
    font-size: 12px;
    padding: 10px 10px;
    flex-shrink: 0;
  }

  .sticky-anchor-bar { padding: 0 16px; }

  .hero-section {
    min-height: 70vh;
    padding: 48px 20px 48px;
    align-items: flex-end;
    justify-content: flex-end;
  }
  .hero-content { max-width: 100%; }
  .hero-h1 { font-size: clamp(28px, 9vw, 56px); }
  .hero-cta-row { justify-content: flex-end; }

  .footer-bottom-section {
    flex-direction: column;
    gap: 12px;
    text-align: center;
    padding: 20px 16px;
  }
  .footer-cta-section { padding: 60px 20px; }

  .page-content-section article { padding: 28px 20px; }
}

@media (max-width: 480px) {
  .hero-bg-text { font-size: 80px; opacity: 0.5; }
  .hero-cta-row { flex-direction: column; align-items: flex-end; }
  .btn-primary, .btn-ghost { width: 100%; max-width: 240px; }
  .content-with-aside { padding: 24px 16px; }
  .footer-links { flex-direction: column; gap: 4px; align-items: center; }
}

/* ===== 视差（纯 CSS 提示，JS 增强）===== */
@media (prefers-reduced-motion: no-preference) {
  .hero-deco .bubble { will-change: transform; }
  .ticker-inner { will-change: transform; }
}

@media (prefers-reduced-motion: reduce) {
  .ticker-inner { animation: none; padding-left: 16px; }
  .bubble { animation: none; }
  .sparkle { animation: none; }
  .badge-dot { animation: none; }
  .page-content-section article { animation: none; opacity: 1; transform: none; }
  .btn-primary::before { display: none; }
}

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