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

/* ===== 基础变量 ===== */
:root {
  --c-green: #69ff69;
  --c-cyan: #00ffff;
  --c-dark: #172617;
  --c-dark2: #1f3520;
  --c-dark3: #0d1a0d;
  --c-glass: rgba(23, 38, 23, 0.72);
  --c-glass-border: rgba(105, 255, 105, 0.22);
  --c-text: #e8ffe8;
  --c-text-muted: #9abf9a;
  --c-accent: #69ff69;
  --c-accent2: #00ffff;
  --c-card-bg: rgba(0, 255, 255, 0.05);
  --radius-card: 18px;
  --radius-btn: 50px;
  --font-main: 'Lexend', 'Source Sans 3', system-ui, sans-serif;
  --nav-h: 64px;
  --max-w: 1100px;
  --glow-green: 0 0 12px rgba(105, 255, 105, 0.6), 0 0 28px rgba(105, 255, 105, 0.25);
  --glow-cyan: 0 0 12px rgba(0, 255, 255, 0.6), 0 0 28px rgba(0, 255, 255, 0.25);
}

/* ===== 重置 ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font-main);
  background-color: var(--c-dark3);
  color: var(--c-text);
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-cyan); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--c-green); }
ul, ol { list-style: none; }

/* ===== 全局网格底纹 ===== */
.site-wrapper {
  position: relative;
  min-height: 100vh;
}
.site-wrapper::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(105, 255, 105, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(105, 255, 105, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

/* ===== 导航 ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 26, 13, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--c-glass-border);
  height: var(--nav-h);
}

/* details/summary 隐藏式备用（移动端将可见） */
.nav-details {
  display: none;
}
.nav-details[open] .nav-menu {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: absolute;
  top: var(--nav-h);
  left: 0;
  right: 0;
  background: rgba(13, 26, 13, 0.97);
  border-bottom: 1px solid var(--c-glass-border);
  padding: 8px 0;
  z-index: 200;
}
.nav-details[open] .nav-menu li a {
  display: block;
  padding: 12px 24px;
  color: var(--c-text);
  font-size: 0.95rem;
  border-bottom: 1px solid rgba(105, 255, 105, 0.08);
}
.nav-details[open] .nav-menu li a:hover {
  color: var(--c-green);
  background: rgba(105, 255, 105, 0.06);
}

/* 桌面横向导航 */
.nav-inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  gap: 12px;
}
.nav-left, .nav-right {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}
.nav-right { justify-content: flex-end; }
.nav-inline a {
  color: var(--c-text-muted);
  font-size: 0.85rem;
  font-weight: 400;
  padding: 8px 10px;
  border-radius: 6px;
  white-space: nowrap;
  min-height: 40px;
  display: flex;
  align-items: center;
  transition: color 0.2s, background 0.2s;
  letter-spacing: 0.01em;
}
.nav-inline a:hover {
  color: var(--c-green);
  background: rgba(105, 255, 105, 0.08);
}
.nav-brand-center {
  flex-shrink: 0;
}
.brand-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--c-green) !important;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.03em;
  text-shadow: var(--glow-green);
}
.brand-link:hover { color: var(--c-cyan) !important; text-shadow: var(--glow-cyan); }
.nav-logo-mark {
  width: 32px;
  height: 32px;
  object-fit: contain;
}
.brand-name { white-space: nowrap; }

/* ===== Hero 首页 ===== */
.hero-section {
  position: relative;
  min-height: 45vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--c-dark3) 0%, var(--c-dark2) 50%, #0a1f1f 100%);
  padding: 0 0 60px;
}
.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 255, 0.06) 1px, transparent 1px),
    radial-gradient(ellipse at 20% 50%, rgba(105, 255, 105, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 50%, rgba(0, 255, 255, 0.08) 0%, transparent 60%);
  background-size: 40px 40px, 40px 40px, 100% 100%, 100% 100%;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 60px 24px 40px;
  display: flex;
  align-items: center;
  gap: 48px;
  width: 100%;
}
.hero-text {
  flex: 1;
  min-width: 0;
}
.hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--c-cyan);
  text-transform: uppercase;
  margin-bottom: 12px;
  text-shadow: var(--glow-cyan);
}
.hero-text h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
  margin-bottom: 16px;
  text-shadow: 0 0 40px rgba(105, 255, 105, 0.3);
}
.hero-sub {
  font-size: 1.05rem;
  color: var(--c-text-muted);
  max-width: 520px;
  margin-bottom: 28px;
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.hero-media {
  flex-shrink: 0;
  width: 320px;
}
.hero-media .hero-img {
  border-radius: var(--radius-card);
  border: 1px solid var(--c-glass-border);
  box-shadow: var(--glow-green);
}
.hero-skew {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 60px;
  background: var(--c-dark3);
  clip-path: polygon(0 60px, 100% 0, 100% 60px);
  z-index: 3;
}

/* ===== 内页 Hero ===== */
.inner-hero {
  position: relative;
  padding: 48px 0 60px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--c-dark3) 0%, var(--c-dark2) 100%);
}
.inner-hero--guide { background: linear-gradient(135deg, var(--c-dark3) 0%, #0d2020 100%); }
.inner-hero--feature { background: linear-gradient(135deg, #0d1a0d 0%, #0a1f1f 100%); }
.inner-hero--faq { background: linear-gradient(135deg, var(--c-dark3) 0%, #1a170d 100%); }
.inner-hero--about { background: linear-gradient(135deg, var(--c-dark2) 0%, var(--c-dark3) 100%); }
.inner-hero--plain { background: var(--c-dark3); }

.inner-hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}
.inner-hero-media {
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 260px;
  opacity: 0.7;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--c-text-muted);
  margin-bottom: 12px;
}
.breadcrumb a { color: var(--c-text-muted); }
.breadcrumb a:hover { color: var(--c-green); }
.breadcrumb span { color: var(--c-text-muted); }
.page-type-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 12px;
  border-radius: 50px;
  margin-bottom: 12px;
  background: rgba(105, 255, 105, 0.15);
  color: var(--c-green);
  border: 1px solid rgba(105, 255, 105, 0.3);
}
.page-type-badge--feature { background: rgba(0, 255, 255, 0.12); color: var(--c-cyan); border-color: rgba(0, 255, 255, 0.3); }
.page-type-badge--faq { background: rgba(255, 200, 50, 0.12); color: #ffd700; border-color: rgba(255, 200, 50, 0.3); }
.page-type-badge--about { background: rgba(105, 255, 105, 0.1); color: var(--c-green); border-color: rgba(105, 255, 105, 0.25); }
.page-type-badge--plain { background: rgba(255,255,255,0.06); color: var(--c-text-muted); border-color: rgba(255,255,255,0.1); }

.inner-hero h1 {
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
  margin-bottom: 14px;
  max-width: 700px;
}
.meta-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.82rem;
}
.pub-date, .mod-date {
  color: var(--c-text-muted);
  font-size: 0.82rem;
}

/* ===== 按钮 ===== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  min-height: 44px;
  border-radius: var(--radius-btn);
  background: linear-gradient(135deg, var(--c-green), #00e000);
  color: var(--c-dark3);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  border: none;
  cursor: pointer;
  transition: box-shadow 0.25s, transform 0.2s;
  box-shadow: 0 0 16px rgba(105, 255, 105, 0.5);
  text-decoration: none;
}
.btn-primary:hover {
  box-shadow: 0 0 30px rgba(105, 255, 105, 0.8), 0 0 60px rgba(105, 255, 105, 0.3);
  transform: translateY(-2px);
  color: var(--c-dark3);
}
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  min-height: 44px;
  border-radius: var(--radius-btn);
  background: transparent;
  color: var(--c-cyan);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1.5px solid var(--c-cyan);
  cursor: pointer;
  transition: box-shadow 0.25s, background 0.2s;
  text-decoration: none;
}
.btn-ghost:hover {
  background: rgba(0, 255, 255, 0.1);
  box-shadow: var(--glow-cyan);
  color: var(--c-cyan);
}

/* ===== 卡片区 ===== */
.cards-section {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 48px 24px;
}
.cards-section--alt { padding-top: 0; }
.section-head {
  margin-bottom: 28px;
}
.section-head h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}
.section-head h2 span { color: var(--c-green); }
.section-head p {
  color: var(--c-text-muted);
  font-size: 0.95rem;
}
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

/* 玻璃拟态卡片 */
.glass-card {
  background: var(--c-card-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--c-glass-border);
  border-radius: var(--radius-card);
  padding: 24px;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  position: relative;
  overflow: hidden;
}
.glass-card::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(105, 255, 105, 0.12) 0%, transparent 70%);
  pointer-events: none;
}
.glass-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(105, 255, 105, 0.15);
  border-color: rgba(105, 255, 105, 0.4);
}
.card-eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-cyan);
  margin-bottom: 8px;
}
.glass-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
  line-height: 1.4;
}
.glass-card h3 span { color: inherit; }
.glass-card p {
  font-size: 0.88rem;
  color: var(--c-text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}
.card-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--c-green);
  letter-spacing: 0.02em;
}
.card-link:hover { text-shadow: var(--glow-green); }

/* ===== 内容区 ===== */
.content-section {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 48px 24px;
}
.page-content-wrap { padding-top: 32px; }
.content-with-aside {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 40px;
  align-items: start;
}
.main-content { min-width: 0; }

/* ===== prose 正文样式 ===== */
.prose {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--c-text);
}
.prose h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--c-green);
  margin: 32px 0 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(105, 255, 105, 0.2);
}
.prose h2 span { color: inherit; }
.prose h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--c-cyan);
  margin: 24px 0 10px;
}
.prose h3 span { color: inherit; }
.prose p { margin-bottom: 14px; }
.prose ul, .prose ol {
  margin: 12px 0 16px 20px;
  list-style: disc;
}
.prose ol { list-style: decimal; }
.prose li { margin-bottom: 6px; color: var(--c-text); }
.prose strong { color: #fff; font-weight: 600; }
.prose a { color: var(--c-cyan); border-bottom: 1px solid rgba(0, 255, 255, 0.3); }
.prose a:hover { color: var(--c-green); border-bottom-color: rgba(105, 255, 105, 0.5); }
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 0.9rem;
}
.prose th {
  background: rgba(105, 255, 105, 0.1);
  color: var(--c-green);
  padding: 10px 14px;
  text-align: left;
  border: 1px solid rgba(105, 255, 105, 0.2);
}
.prose td {
  padding: 9px 14px;
  border: 1px solid rgba(105, 255, 105, 0.1);
  color: var(--c-text);
}
.prose tr:nth-child(even) td { background: rgba(105, 255, 105, 0.03); }
.prose blockquote {
  border-left: 3px solid var(--c-cyan);
  margin: 16px 0;
  padding: 10px 20px;
  background: rgba(0, 255, 255, 0.05);
  border-radius: 0 8px 8px 0;
  color: var(--c-text-muted);
  font-style: italic;
}
.prose code {
  background: rgba(105, 255, 105, 0.12);
  color: var(--c-green);
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 0.88em;
}
.prose pre {
  background: rgba(0,0,0,0.4);
  border: 1px solid var(--c-glass-border);
  border-radius: 10px;
  padding: 16px;
  overflow-x: auto;
  margin: 16px 0;
}
.prose pre code { background: none; padding: 0; }

/* ===== 侧边栏 ===== */
.sidebar {
  position: sticky;
  top: calc(var(--nav-h) + 16px);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.sidebar-block {
  background: var(--c-card-bg);
  border: 1px solid var(--c-glass-border);
  border-radius: var(--radius-card);
  padding: 18px 20px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.bubble-block {
  border-color: rgba(0, 255, 255, 0.2);
  background: rgba(0, 255, 255, 0.04);
}
.sidebar-title {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-text-muted);
  margin-bottom: 12px;
}
.sidebar-title span { color: inherit; }
.sidebar-list { display: flex; flex-direction: column; gap: 0; }
.sidebar-list li { border-bottom: 1px solid rgba(105, 255, 105, 0.08); }
.sidebar-list li:last-child { border-bottom: none; }
.sidebar-list a {
  display: block;
  padding: 7px 0;
  font-size: 0.85rem;
  color: var(--c-text-muted);
  transition: color 0.2s, padding-left 0.2s;
  min-height: 40px;
  display: flex;
  align-items: center;
}
.sidebar-list a:hover {
  color: var(--c-green);
  padding-left: 6px;
}
.sidebar-note {
  font-size: 0.85rem;
  color: var(--c-text-muted);
  line-height: 1.6;
}

/* ===== FAQ 专属 ===== */
.faq-prose details {
  background: var(--c-card-bg);
  border: 1px solid var(--c-glass-border);
  border-radius: 12px;
  margin-bottom: 10px;
  overflow: hidden;
  transition: border-color 0.2s;
}
.faq-prose details[open] { border-color: rgba(105, 255, 105, 0.35); }
.faq-prose details > summary {
  padding: 14px 18px;
  cursor: pointer;
  font-weight: 600;
  color: #fff;
  font-size: 0.97rem;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
}
.faq-prose details > summary::after {
  content: '+';
  color: var(--c-green);
  font-size: 1.2rem;
  font-weight: 300;
  flex-shrink: 0;
  margin-left: 12px;
}
.faq-prose details[open] > summary::after { content: '－'; }
.faq-prose details > *:not(summary) {
  padding: 0 18px 14px;
  color: var(--c-text-muted);
  font-size: 0.92rem;
  line-height: 1.7;
}

/* ===== 子页列表 dl ===== */
.guide-dl {
  display: grid;
  gap: 0;
  max-width: 800px;
}
.guide-dl dt {
  padding: 12px 0 4px;
  border-top: 1px solid rgba(105, 255, 105, 0.12);
}
.guide-dl dt:first-of-type { border-top: none; }
.guide-dl dt a {
  font-size: 1rem;
  font-weight: 600;
  color: var(--c-green);
}
.guide-dl dt a:hover { text-shadow: var(--glow-green); }
.guide-dl dd {
  padding: 0 0 12px;
  color: var(--c-text-muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

.faq-guide-list, .about-links-section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px 48px;
}
.faq-guide-list .section-head, .about-links-section .section-head {
  margin-bottom: 20px;
}

/* ===== 页脚 ===== */
.site-footer {
  position: relative;
  z-index: 1;
  margin-top: 24px;
  border-top: 1px solid var(--c-glass-border);
}
.footer-cta {
  text-align: center;
  padding: 56px 24px 40px;
  background: linear-gradient(180deg, transparent 0%, rgba(105, 255, 105, 0.04) 100%);
}
.footer-cta h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}
.footer-cta h2 span { color: var(--c-green); text-shadow: var(--glow-green); }
.footer-cta p {
  color: var(--c-text-muted);
  margin-bottom: 24px;
  font-size: 1rem;
}
.footer-bottom {
  padding: 16px 24px;
  border-top: 1px solid rgba(105, 255, 105, 0.1);
  text-align: center;
}
.footer-copy {
  font-size: 0.82rem;
  color: var(--c-text-muted);
}
.footer-copy a {
  color: var(--c-text-muted);
  margin: 0 4px;
}
.footer-copy a:hover { color: var(--c-green); }

/* ===== 滚动显现动效 ===== */
.card-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.card-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .card-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ===== 霓虹装饰气泡 ===== */
.hero-section::after {
  content: '';
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 255, 255, 0.08) 0%, transparent 70%);
  top: -80px;
  right: 10%;
  pointer-events: none;
  animation: bubbleFloat 8s ease-in-out infinite;
}
@keyframes bubbleFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-20px) scale(1.05); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-section::after { animation: none; }
}

/* ===== 响应式 ===== */
@media (max-width: 900px) {
  .content-with-aside {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
  }
  .sidebar-block { flex: 1 1 220px; }
  .hero-inner { flex-direction: column; gap: 24px; }
  .hero-media { width: 100%; max-width: 380px; }
  .inner-hero-media { display: none; }
  .cards-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
}

@media (max-width: 768px) {
  :root { --nav-h: 56px; }
  .nav-inline { display: none; }
  .nav-details {
    display: block;
    position: relative;
  }
  .nav-details summary {
    display: flex;
    align-items: center;
    gap: 10px;
    height: var(--nav-h);
    padding: 0 20px;
    cursor: pointer;
    list-style: none;
    color: var(--c-green);
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.04em;
    text-shadow: var(--glow-green);
    min-height: 44px;
  }
  .nav-details summary::-webkit-details-marker { display: none; }
  .nav-details[open] .nav-menu { display: flex; }
  .nav-details .nav-menu { display: none; }

  .hero-section { min-height: auto; }
  .hero-inner { padding: 40px 20px 32px; }
  .hero-text h1 { font-size: 1.7rem; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .btn-primary, .btn-ghost { width: 100%; max-width: 280px; justify-content: center; }

  .inner-hero { padding: 36px 0 50px; }
  .inner-hero h1 { font-size: 1.4rem; }
  .inner-hero-content { padding: 0 20px; }

  .cards-section, .content-section, .faq-guide-list, .about-links-section {
    padding-left: 16px;
    padding-right: 16px;
  }
  .cards-grid { grid-template-columns: 1fr; }

  .footer-cta { padding: 40px 16px 28px; }
  .footer-cta h2 { font-size: 1.4rem; }
}

@media (max-width: 480px) {
  .sidebar { flex-direction: column; }
  .sidebar-block { flex: 1 1 100%; }
}
