@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:wght@300;400;500;600;700&family=Varela+Round&display=swap');

/* ===== CSS 变量 ===== */
:root {
  --neon-green: #69ff69;
  --neon-cyan: #00ffff;
  --dark-bg: #172617;
  --dark-bg2: #1e321e;
  --dark-bg3: #0f1a0f;
  --text-main: #e8ffe8;
  --text-muted: #9db89d;
  --text-dark: #172617;
  --card-bg: #1f351f;
  --card-bg2: #223422;
  --border-neon: rgba(105, 255, 105, 0.3);
  --border-cyan: rgba(0, 255, 255, 0.3);
  --glow-green: 0 0 12px rgba(105, 255, 105, 0.6), 0 0 28px rgba(105, 255, 105, 0.3);
  --glow-cyan: 0 0 12px rgba(0, 255, 255, 0.6), 0 0 28px rgba(0, 255, 255, 0.3);
  --radius-card: 18px;
  --radius-btn: 50px;
  --font-main: 'Nunito Sans', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-display: 'Varela Round', 'Nunito Sans', sans-serif;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --topbar-h: 36px;
  --header-h: 120px;
  --scroll-offset: 160px;
}

/* ===== 重置 ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  font-size: 17px;
  color-scheme: dark;
}
body.y2k-body {
  background-color: var(--dark-bg3);
  color: var(--text-main);
  font-family: var(--font-main);
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--neon-cyan); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--neon-green); }
ul, menu { list-style: none; }
address { font-style: normal; }

/* ===== 滚动偏移（固定/吸顶导航）===== */
div[id] { scroll-margin-top: var(--scroll-offset); }

/* ===== 页面包裹 ===== */
.page-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ===== 顶部公告条 ===== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(90deg, var(--neon-green) 0%, var(--neon-cyan) 50%, var(--neon-green) 100%);
  color: var(--dark-bg3);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: center;
  height: var(--topbar-h);
  line-height: var(--topbar-h);
  overflow: hidden;
  white-space: nowrap;
}
.topbar-text { animation: marquee 18s linear infinite; display: inline-block; padding-left: 100%; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-100%); } }

/* ===== 站点页头 ===== */
.site-header {
  position: sticky;
  top: var(--topbar-h);
  z-index: 90;
  background: linear-gradient(180deg, rgba(23,38,23,0.98) 0%, rgba(23,38,23,0.95) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-neon);
  box-shadow: 0 2px 24px rgba(105, 255, 105, 0.08);
}

/* 品牌行 */
.brand-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 24px 6px;
  border-bottom: 1px solid rgba(105, 255, 105, 0.12);
}
.brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--neon-green);
  text-decoration: none;
}
.brand-mark { width: 32px; height: 32px; border-radius: 50%; }
.brand-logo { height: 28px; width: auto; }
.brand-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--neon-green);
  text-shadow: var(--glow-green);
  letter-spacing: 0.04em;
}

/* chrome 徽章 */
.chrome-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 12px;
  border-radius: 50px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  background: linear-gradient(135deg, #c0c0c0 0%, #e8e8e8 40%, #a0a0a0 60%, #d0d0d0 100%);
  color: var(--dark-bg3);
  box-shadow: 0 1px 4px rgba(255,255,255,0.3), inset 0 1px 0 rgba(255,255,255,0.6);
  text-transform: uppercase;
  margin-left: auto;
}
.chrome-badge.small { font-size: 0.6rem; padding: 2px 10px; margin-left: 0; margin-top: 12px; }

/* 导航行 */
.main-nav { padding: 0 24px; }

.nav-details { position: relative; }
.nav-details[open] > summary .nav-toggle-icon { transform: rotate(90deg); }

.nav-summary {
  display: none; /* 桌面隐藏 summary 触发器，导航直接展开 */
  cursor: pointer;
  list-style: none;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  color: var(--neon-green);
  font-weight: 600;
  font-size: 0.9rem;
  min-height: 44px;
}
.nav-summary::-webkit-details-marker { display: none; }
.nav-toggle-icon { transition: transform var(--transition); font-size: 1.3rem; }

.nav-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 4px;
  padding: 6px 0 8px;
}
.nav-menu li { display: flex; }
.nav-link {
  display: flex;
  align-items: center;
  padding: 7px 14px;
  min-height: 40px;
  border-radius: 50px;
  color: var(--text-main);
  font-size: 0.88rem;
  font-weight: 500;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
  white-space: nowrap;
}
.nav-link:hover, .nav-link:focus {
  background: rgba(105, 255, 105, 0.12);
  color: var(--neon-green);
  box-shadow: var(--glow-green);
  outline: none;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 45vh;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 48px 24px 40px;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(0,255,255,0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(105,255,105,0.1) 0%, transparent 50%),
    var(--dark-bg);
  overflow: hidden;
  border-bottom: 1px solid var(--border-neon);
}
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 640px;
  text-align: right;
}
.hero-badges {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.bubble-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 16px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  background: linear-gradient(135deg, rgba(105,255,105,0.2), rgba(0,255,255,0.15));
  border: 1px solid var(--border-neon);
  color: var(--neon-green);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.1), var(--glow-green);
  backdrop-filter: blur(4px);
}
.bubble-badge.accent {
  background: linear-gradient(135deg, rgba(0,255,255,0.2), rgba(105,255,105,0.15));
  border-color: var(--border-cyan);
  color: var(--neon-cyan);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.1), var(--glow-cyan);
}
.bubble-badge.glow {
  background: linear-gradient(135deg, #69ff69, #00ffff);
  color: var(--dark-bg3);
  border-color: transparent;
  box-shadow: var(--glow-green);
  animation: pulse-glow 2.5s ease-in-out infinite;
}
@keyframes pulse-glow {
  0%, 100% { box-shadow: var(--glow-green); }
  50% { box-shadow: 0 0 24px rgba(105,255,105,0.9), 0 0 48px rgba(105,255,105,0.5); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3.6rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--neon-green) 0%, var(--neon-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 16px rgba(105,255,105,0.4));
}
.hero-sub {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 28px;
  line-height: 1.65;
}
.hero-cta-row {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

/* 按钮 */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 28px;
  min-height: 44px;
  border-radius: var(--radius-btn);
  background: linear-gradient(135deg, var(--neon-green) 0%, var(--neon-cyan) 100%);
  color: var(--dark-bg3);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  box-shadow: 0 4px 16px rgba(105,255,105,0.4), inset 0 1px 0 rgba(255,255,255,0.4);
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
}
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.3) 0%, transparent 60%);
  border-radius: inherit;
  pointer-events: none;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(105,255,105,0.6), inset 0 1px 0 rgba(255,255,255,0.4);
  color: var(--dark-bg3);
}
.btn-primary.large { padding: 14px 40px; font-size: 1.05rem; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 28px;
  min-height: 44px;
  border-radius: var(--radius-btn);
  border: 1.5px solid var(--border-cyan);
  color: var(--neon-cyan);
  font-weight: 600;
  font-size: 0.95rem;
  transition: background var(--transition), box-shadow var(--transition), color var(--transition);
}
.btn-ghost:hover {
  background: rgba(0,255,255,0.1);
  box-shadow: var(--glow-cyan);
  color: var(--neon-cyan);
}

/* Hero 装饰 */
.hero-deco {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}
.deco-circle {
  position: absolute;
  border-radius: 50%;
  opacity: 0.12;
  background: linear-gradient(135deg, var(--neon-green), var(--neon-cyan));
}
.deco-circle.c1 { width: 320px; height: 320px; left: -80px; top: -60px; }
.deco-circle.c2 { width: 180px; height: 180px; left: 140px; bottom: -60px; opacity: 0.08; }
.deco-circle.c3 { width: 80px; height: 80px; left: 60%; top: 20%; opacity: 0.15; background: var(--neon-cyan); }
.deco-star {
  position: absolute;
  font-size: 1.5rem;
  color: var(--neon-green);
  opacity: 0.5;
  animation: twinkle 3s ease-in-out infinite;
}
.deco-star.s1 { top: 18%; left: 15%; animation-delay: 0s; }
.deco-star.s2 { top: 55%; left: 30%; animation-delay: 1s; font-size: 1rem; color: var(--neon-cyan); }
.deco-star.s3 { top: 25%; left: 48%; animation-delay: 2s; font-size: 0.9rem; }
@keyframes twinkle {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.3); }
}

/* ===== 主内容 ===== */
.main-content {
  flex: 1;
  padding: 48px 24px;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

/* 内容 div */
.content-section {
  display: grid;
  grid-template-columns: 220px 1fr;
  grid-template-rows: auto 1fr;
  grid-template-areas:
    "aside figure"
    "aside body";
  gap: 0 32px;
  position: relative;
}

/* aside 在左侧 */
.content-aside {
  grid-area: aside;
  position: sticky;
  top: calc(var(--topbar-h) + var(--header-h));
  align-self: start;
  background: var(--card-bg);
  border-radius: var(--radius-card);
  border: 1px solid var(--border-neon);
  padding: 24px 18px;
  box-shadow: 0 4px 24px rgba(105,255,105,0.08);
}
.aside-inner { display: flex; flex-direction: column; gap: 12px; }
.aside-title {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--neon-green);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border-neon);
  padding-bottom: 10px;
}
.aside-title span { display: block; }
.aside-nav-list { display: flex; flex-direction: column; gap: 4px; }
.aside-link {
  display: flex;
  align-items: center;
  padding: 6px 10px;
  min-height: 36px;
  border-radius: 10px;
  font-size: 0.84rem;
  color: var(--text-muted);
  transition: background var(--transition), color var(--transition);
}
.aside-link:hover {
  background: rgba(105,255,105,0.1);
  color: var(--neon-green);
}

/* figure 装饰 */
.content-figure {
  grid-area: figure;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 0 20px 0;
}
.figure-deco-box {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, rgba(0,255,255,0.12), rgba(105,255,105,0.08));
  border: 1px solid var(--border-cyan);
  border-radius: 50px;
  padding: 6px 20px;
  color: var(--neon-cyan);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  box-shadow: var(--glow-cyan);
}
.figure-icon { font-size: 1.1rem; }

/* 正文主容器 */
.content-body { grid-area: body; min-width: 0; }

/* ===== 正文内容样式（page.content 里的元素）===== */
.content-body div {
  margin-bottom: 56px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(105,255,105,0.1);
  position: relative;
}
.content-body div:last-child { border-bottom: none; }

.content-body h2 {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: 700;
  color: var(--neon-green);
  margin-bottom: 20px;
  line-height: 1.3;
  text-shadow: 0 0 20px rgba(105,255,105,0.3);
}
.content-body h2 span { display: inline; }

.content-body h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--neon-cyan);
  margin-bottom: 12px;
  margin-top: 28px;
}
.content-body h3 span { display: inline; }

.content-body p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-main);
  margin-bottom: 14px;
  max-width: 72ch;
}
.content-body ul, .content-body ol {
  margin: 12px 0 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.content-body ul { list-style: none; margin-left: 0; }
.content-body ul li {
  padding-left: 20px;
  position: relative;
  color: var(--text-main);
  line-height: 1.65;
}
.content-body ul li::before {
  content: '✦';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--neon-green);
  font-size: 0.7rem;
  line-height: 1.65;
}
.content-body ol { list-style: decimal; padding-left: 20px; }
.content-body ol li { color: var(--text-main); line-height: 1.65; }

.content-body strong { color: var(--neon-green); font-weight: 700; }
.content-body em { color: var(--neon-cyan); font-style: normal; font-weight: 600; }

.content-body a {
  color: var(--neon-cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(0,255,255,0.4);
}
.content-body a:hover { color: var(--neon-green); text-decoration-color: rgba(105,255,105,0.6); }

.content-body blockquote {
  border-left: 3px solid var(--neon-cyan);
  padding: 12px 20px;
  margin: 20px 0;
  background: rgba(0,255,255,0.05);
  border-radius: 0 12px 12px 0;
  color: var(--text-muted);
  font-style: normal;
}

/* 卡片（如果正文有卡片结构）*/
.content-body .card, .content-body article {
  background: var(--card-bg);
  border-radius: var(--radius-card);
  padding: 24px;
  margin-bottom: 20px;
  border: 1px solid var(--border-neon);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  transition: transform var(--transition), box-shadow var(--transition);
}
.content-body .card:hover, .content-body article:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(105,255,105,0.15);
}

/* ===== 页脚 ===== */
.site-footer {
  background: var(--dark-bg3);
  border-top: 1px solid var(--border-neon);
  padding: 0;
}

/* CTA 大块 */
.footer-cta-block {
  background: linear-gradient(135deg, rgba(105,255,105,0.08) 0%, rgba(0,255,255,0.08) 100%);
  border-bottom: 1px solid var(--border-neon);
  padding: 48px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.footer-cta-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3.5vw, 2.2rem);
  font-weight: 700;
  color: var(--neon-green);
  text-shadow: var(--glow-green);
}
.footer-cta-title span { display: block; }
.footer-cta-desc { color: var(--text-muted); font-size: 1rem; max-width: 480px; }

/* 三栏 */
.footer-cols {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  padding: 40px 48px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}
.footer-col-title {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--neon-green);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border-neon);
  padding-bottom: 10px;
}
.footer-col-title span { display: block; }
.footer-brand-name {
  display: block;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--neon-green);
  margin-bottom: 10px;
  text-shadow: 0 0 12px rgba(105,255,105,0.4);
}
.footer-brand-desc {
  display: block;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.footer-nav-list, .footer-links-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.footer-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 4px 0;
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: color var(--transition);
}
.footer-link:hover { color: var(--neon-cyan); }
.footer-address { margin-bottom: 16px; }
.footer-contact-item {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.8;
}
.footer-contact-item span { color: var(--neon-green); font-weight: 600; }

/* 底栏 */
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 48px;
  border-top: 1px solid rgba(105,255,105,0.1);
  gap: 12px;
  flex-wrap: wrap;
}
.footer-copyright { font-size: 0.8rem; color: var(--text-muted); }
.footer-bottom-links {
  display: flex;
  gap: 16px;
}
.footer-bottom-links li { display: flex; }
.footer-bottom-links .footer-link { font-size: 0.8rem; min-height: 40px; }

/* ===== Scroll Reveal 动效 ===== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== 移动端 ===== */
@media (max-width: 768px) {
  :root {
    --topbar-h: 32px;
    --header-h: 100px;
    --scroll-offset: 140px;
  }

  .brand-row { padding: 8px 16px 6px; }
  .brand-name { font-size: 1rem; }

  .main-nav { padding: 0 16px; }

  .nav-summary {
    display: flex; /* 移动端显示 summary 触发器 */
  }
  /* 移动端默认收起 */
  .nav-details:not([open]) .nav-menu { display: none; }
  .nav-menu {
    padding: 4px 0 12px;
    flex-direction: column;
    gap: 2px;
  }
  .nav-link { font-size: 0.95rem; padding: 10px 14px; min-height: 44px; }

  .hero {
    min-height: 50vh;
    padding: 36px 16px 32px;
    justify-content: flex-start;
  }
  .hero-inner { max-width: 100%; text-align: left; }
  .hero-badges { justify-content: flex-start; }
  .hero-cta-row { justify-content: flex-start; }
  .hero-title { font-size: clamp(1.6rem, 7vw, 2.4rem); }

  .main-content { padding: 32px 16px; }

  .content-section {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }
  .content-aside {
    position: relative;
    top: auto;
    order: 2;
  }
  .content-figure { order: 1; justify-content: flex-start; }
  .content-body { order: 0; }

  .footer-cols {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 32px 16px;
  }
  .footer-cta-block { padding: 36px 16px; }
  .footer-bottom { padding: 14px 16px; flex-direction: column; align-items: flex-start; gap: 8px; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 1.6rem; }
  .topbar-text { font-size: 0.72rem; }
}

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

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