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

/* ===== CSS 变量 ===== */
:root {
  --neon-green: #69ff69;
  --neon-cyan: #00ffff;
  --ink: #172617;
  --ink-mid: #1e3b1e;
  --ink-light: #243d24;
  --text-main: #e8ffe8;
  --text-muted: #9ecf9e;
  --chrome-silver: #c8e8ff;
  --glow-green: 0 0 12px #69ff69, 0 0 28px #69ff6966;
  --glow-cyan: 0 0 12px #00ffff, 0 0 28px #00ffff66;
  --font-head: 'Outfit', 'Rubik', system-ui, sans-serif;
  --font-body: 'Rubik', 'Outfit', system-ui, sans-serif;
  --nav-h: 104px;
  --radius-card: 10px;
  --transition-fast: 0.18s ease;
  --transition-mid: 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 17px;
  background: var(--ink);
  color: var(--text-main);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  line-height: 1.65;
  background: var(--ink);
  min-height: 100vh;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--neon-cyan); text-decoration: none; }
a:hover { color: var(--neon-green); }

/* ===== 全局滚动 margin（固定导航补偿）===== */
section[id] {
  scroll-margin-top: calc(var(--nav-h) + 8px);
}

/* ===== 站包装 ===== */
.site-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ===== 品牌侧边栏 / 顶部导航 ===== */
.nav-aside {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  background: linear-gradient(180deg, #0d1f0d 0%, rgba(23,38,23,0.97) 100%);
  border-bottom: 1.5px solid var(--neon-green);
  box-shadow: 0 2px 24px rgba(105,255,105,0.13);
  backdrop-filter: blur(8px);
}

/* 品牌行 */
.brand-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  height: 52px;
  border-bottom: 1px solid rgba(105,255,105,0.18);
}

.brand-logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo-img {
  height: 36px;
  width: auto;
  filter: drop-shadow(var(--glow-green));
}

.brand-wordmark {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.06em;
  background: linear-gradient(90deg, var(--neon-green) 0%, var(--neon-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
  filter: drop-shadow(0 0 8px #69ff6955);
}

/* 汉堡按钮 */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 8px;
  background: transparent;
  border: 1.5px solid var(--neon-green);
  border-radius: 6px;
  cursor: pointer;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.hamburger:hover {
  border-color: var(--neon-cyan);
  box-shadow: var(--glow-cyan);
}

.hb-line {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--neon-green);
  border-radius: 2px;
  transition: background var(--transition-fast);
}

.hamburger:hover .hb-line { background: var(--neon-cyan); }

/* 桌面菜单行 */
.desktop-nav {
  display: flex;
  align-items: center;
  padding: 0 32px;
  height: 52px;
}

.desktop-nav ul {
  display: flex;
  gap: 0;
  list-style: none;
  flex-wrap: wrap;
  width: 100%;
}

.desktop-nav li { flex: 1; text-align: center; }

.desktop-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 6px 12px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  border-radius: 4px;
  transition: color var(--transition-fast), text-shadow var(--transition-fast), background var(--transition-fast);
  white-space: nowrap;
}

.desktop-nav a:hover {
  color: var(--neon-green);
  text-shadow: var(--glow-green);
  background: rgba(105,255,105,0.07);
}

/* ===== 全屏遮罩菜单 ===== */
.fullscreen-menu {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: radial-gradient(ellipse at 30% 20%, #1a4a1a 0%, #0b1f0b 50%, #050f05 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4%);
  transition: opacity 0.38s cubic-bezier(0.4,0,0.2,1), transform 0.38s cubic-bezier(0.4,0,0.2,1);
}

.fullscreen-menu.is-open {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.menu-close {
  position: absolute;
  top: 28px; right: 32px;
  background: transparent;
  border: 1.5px solid var(--neon-cyan);
  color: var(--neon-cyan);
  font-size: 1.4rem;
  width: 48px; height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition-fast), box-shadow var(--transition-fast), color var(--transition-fast);
}

.menu-close:hover {
  background: var(--neon-cyan);
  color: var(--ink);
  box-shadow: var(--glow-cyan);
}

.fs-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 0 24px;
}

.fs-nav-list li {
  width: 100%;
  max-width: 480px;
  opacity: 0;
  transform: translateX(-28px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

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

/* 错落动画延迟 */
.fullscreen-menu.is-open .fs-nav-list li:nth-child(1) { transition-delay: 0.06s; }
.fullscreen-menu.is-open .fs-nav-list li:nth-child(2) { transition-delay: 0.11s; }
.fullscreen-menu.is-open .fs-nav-list li:nth-child(3) { transition-delay: 0.16s; }
.fullscreen-menu.is-open .fs-nav-list li:nth-child(4) { transition-delay: 0.21s; }
.fullscreen-menu.is-open .fs-nav-list li:nth-child(5) { transition-delay: 0.26s; }
.fullscreen-menu.is-open .fs-nav-list li:nth-child(6) { transition-delay: 0.31s; }
.fullscreen-menu.is-open .fs-nav-list li:nth-child(7) { transition-delay: 0.36s; }

.fs-nav-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  padding: 10px 24px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 0.05em;
  color: var(--text-main);
  border: 1.5px solid rgba(105,255,105,0.2);
  border-radius: var(--radius-card);
  background: rgba(105,255,105,0.04);
  transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.fs-nav-list a::after {
  content: '→';
  font-size: 1rem;
  opacity: 0.5;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.fs-nav-list a:hover {
  color: var(--neon-green);
  border-color: var(--neon-green);
  background: rgba(105,255,105,0.09);
  box-shadow: var(--glow-green);
}

.fs-nav-list a:hover::after {
  opacity: 1;
  transform: translateX(6px);
}

/* ===== Hero 区域 ===== */
.hero-section {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 520px;
  display: flex;
  align-items: flex-end;
  padding-bottom: 80px;
  padding-top: var(--nav-h);
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.hero-no-img {
  background: linear-gradient(135deg, #0d2d0d 0%, #0a1a1a 40%, #172617 100%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(23,38,23,0.35) 0%,
    rgba(23,38,23,0.55) 40%,
    rgba(23,38,23,0.88) 100%
  );
}

/* Y2K 装饰性光晕 */
.hero-overlay::before {
  content: '';
  position: absolute;
  left: -80px; top: 20%;
  width: 480px; height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(105,255,105,0.15) 0%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}

.hero-overlay::after {
  content: '';
  position: absolute;
  right: -60px; bottom: 10%;
  width: 360px; height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,255,255,0.12) 0%, transparent 70%);
  filter: blur(32px);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding: 0 40px;
  text-align: left;
}

.hero-h1 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(2.2rem, 6vw, 4rem);
  line-height: 1.18;
  letter-spacing: 0.02em;
  margin-bottom: 20px;
  background: linear-gradient(90deg, var(--neon-green) 0%, var(--neon-cyan) 60%, #fff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
  filter: drop-shadow(0 0 18px rgba(105,255,105,0.45));
}

.hero-sub {
  font-size: 1.08rem;
  color: var(--chrome-silver);
  margin-bottom: 36px;
  max-width: 540px;
  line-height: 1.7;
}

.hero-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 52px;
  padding: 12px 36px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.06em;
  color: var(--ink);
  background: linear-gradient(90deg, var(--neon-green) 0%, var(--neon-cyan) 100%);
  border: none;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: var(--glow-green);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), filter var(--transition-fast);
  text-decoration: none;
}

.hero-cta-btn:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 0 24px #69ff69, 0 0 48px #69ff6955, 0 0 24px #00ffff66;
  filter: brightness(1.08);
  color: var(--ink);
}

/* ===== 正文主容器 ===== */
.main-content {
  width: 100%;
  flex: 1;
  padding-top: var(--nav-h);
  margin-top: calc(-1 * var(--nav-h));
}

.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px 80px;
}

.content-section {
  width: 100%;
}

.content-article {
  width: 100%;
}

/* ===== page.content 内部样式（S3 写的 section 区块）===== */
.content-article section {
  padding: 72px 0 56px;
  border-bottom: 1px solid rgba(105,255,105,0.1);
}

.content-article section:last-child {
  border-bottom: none;
}

.content-article h2 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.5rem, 3.5vw, 2.1rem);
  letter-spacing: 0.03em;
  color: var(--neon-green);
  text-shadow: var(--glow-green);
  margin-bottom: 12px;
}

.content-article h2 + hr {
  border: none;
  border-top: 1.5px solid var(--neon-green);
  margin-bottom: 28px;
  box-shadow: 0 0 8px rgba(105,255,105,0.4);
  opacity: 0.6;
}

.content-article hr {
  border: none;
  border-top: 1px solid rgba(105,255,105,0.2);
  margin: 32px 0;
}

.content-article h3 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--neon-cyan);
  margin: 28px 0 12px;
  text-shadow: 0 0 8px rgba(0,255,255,0.4);
}

.content-article p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-main);
  margin-bottom: 18px;
}

.content-article ul,
.content-article ol {
  padding-left: 24px;
  margin-bottom: 20px;
}

.content-article li {
  margin-bottom: 8px;
  line-height: 1.65;
}

.content-article a {
  color: var(--neon-cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.content-article a:hover {
  color: var(--neon-green);
  text-shadow: 0 0 8px rgba(105,255,105,0.5);
}

/* 卡片（page.content 内如有）：纯色块，无边框，圆角10px */
.content-article .card,
.content-article [class*="card"] {
  background: var(--ink-mid);
  border-radius: var(--radius-card);
  padding: 24px;
  margin-bottom: 20px;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.content-article .card:hover,
.content-article [class*="card"]:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(105,255,105,0.12);
}

/* 表格 */
.content-article table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
  font-size: 0.95rem;
}

.content-article th {
  background: var(--ink-light);
  color: var(--neon-cyan);
  font-family: var(--font-head);
  font-weight: 600;
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1.5px solid var(--neon-cyan);
}

.content-article td {
  padding: 10px 16px;
  border-bottom: 1px solid rgba(105,255,105,0.1);
}

.content-article tr:hover td {
  background: rgba(105,255,105,0.04);
}

/* time 标签 */
.content-article time {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: inline-block;
  margin-bottom: 8px;
}

/* strong / em */
.content-article strong {
  color: var(--neon-green);
  font-weight: 600;
}

.content-article em {
  color: var(--neon-cyan);
  font-style: italic;
}

/* blockquote */
.content-article blockquote {
  border-left: 3px solid var(--neon-green);
  padding: 12px 20px;
  margin: 20px 0;
  background: rgba(105,255,105,0.04);
  border-radius: 0 var(--radius-card) var(--radius-card) 0;
  color: var(--text-muted);
  font-style: italic;
}

/* ===== 页脚 ===== */
.site-footer {
  background: #0a160a;
  border-top: 1.5px solid rgba(105,255,105,0.15);
  padding: 36px 32px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-brand {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.6rem, 4vw, 3rem);
  letter-spacing: 0.04em;
  background: linear-gradient(90deg, var(--neon-green), var(--neon-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 10px rgba(105,255,105,0.3));
  line-height: 1.1;
}

.footer-copy {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-align: right;
  max-width: 480px;
  line-height: 1.5;
}

/* ===== Y2K 装饰：滚动光效线 ===== */
.site-wrapper::before {
  content: '';
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--neon-green), var(--neon-cyan), var(--neon-green), transparent);
  opacity: 0.18;
  z-index: 800;
  pointer-events: none;
}

/* ===== 动效：prefers-reduced-motion ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .fullscreen-menu { transition: none; }
  .fs-nav-list li { transition: none; opacity: 1; transform: none; }
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
  :root {
    --nav-h: 96px;
  }

  .brand-bar {
    padding: 0 18px;
  }

  .desktop-nav {
    padding: 0 12px;
  }

  .desktop-nav a {
    font-size: 0.78rem;
    padding: 6px 6px;
    letter-spacing: 0.02em;
  }

  .hero-content {
    padding: 0 20px;
  }

  .hero-sub {
    font-size: 0.97rem;
  }

  .wrap {
    padding: 0 18px 60px;
  }

  .content-article section {
    padding: 52px 0 40px;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    padding: 28px 18px;
  }

  .footer-copy {
    text-align: left;
  }

  .fs-nav-list a {
    font-size: 1.1rem;
    padding: 10px 18px;
  }
}

@media (max-width: 480px) {
  :root {
    --nav-h: 96px;
  }

  .desktop-nav ul {
    gap: 0;
  }

  .desktop-nav li {
    flex: 0 0 auto;
  }

  .desktop-nav {
    overflow-x: auto;
    scrollbar-width: none;
  }

  .desktop-nav::-webkit-scrollbar { display: none; }

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

  .hero-cta-btn {
    min-height: 48px;
    padding: 10px 28px;
    font-size: 0.95rem;
  }
}
