@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,300;0,400;0,500;0,700;1,400&display=swap');

/* ===== 基础变量 ===== */
:root {
  --green: #69ff69;
  --cyan: #00ffff;
  --dark: #172617;
  --dark2: #1e2e1e;
  --dark3: #0f1a0f;
  --card-bg: #1c2e1c;
  --card-bg2: #162516;
  --text: #d4f0d4;
  --text-muted: #7aab7a;
  --border: rgba(105, 255, 105, 0.18);
  --border-cyan: rgba(0, 255, 255, 0.2);
  --glow-green: 0 0 16px rgba(105, 255, 105, 0.5), 0 0 40px rgba(105, 255, 105, 0.2);
  --glow-cyan: 0 0 16px rgba(0, 255, 255, 0.5), 0 0 40px rgba(0, 255, 255, 0.2);
  --radius: 4px;
  --nav-h: 56px;
  --font: 'Roboto', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
}

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

/* ===== 霓虹滚动条 ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--dark3); }
::-webkit-scrollbar-thumb { background: var(--green); border-radius: 3px; }

/* ===== Hero（首页） ===== */
.hero-wrap {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg-gradient {
  background: linear-gradient(135deg, var(--dark3) 0%, #0a2010 40%, #001a1a 100%);
}
.hero-bg-img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(135deg, rgba(23,38,23,0.92) 0%, rgba(0,20,20,0.75) 100%);
}
.hero-slash {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  z-index: 2;
  background: linear-gradient(135deg, var(--green) 0%, var(--cyan) 100%);
  clip-path: polygon(0 60%, 100% 0%, 100% 100%, 0% 100%);
  opacity: 0.12;
}
.hero-content {
  position: relative;
  z-index: 3;
  text-align: right;
  padding: 2rem 5% 8rem;
  max-width: 700px;
}
.hero-eyebrow { margin-bottom: 1rem; }
.hero-h1 {
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 700;
  color: #fff;
  text-shadow: var(--glow-green);
  line-height: 1.2;
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
}
.hero-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 500px;
  margin-left: auto;
}

/* 星形装饰 */
.hero-sparkle {
  position: absolute;
  z-index: 3;
  font-size: 1.5rem;
  color: var(--green);
  filter: drop-shadow(0 0 8px var(--green));
  animation: sparkle-pulse 2s ease-in-out infinite;
  pointer-events: none;
}
.hero-sparkle.s1 { top: 15%; left: 8%; animation-delay: 0s; }
.hero-sparkle.s2 { top: 35%; left: 20%; animation-delay: 0.7s; color: var(--cyan); filter: drop-shadow(0 0 8px var(--cyan)); }
.hero-sparkle.s3 { bottom: 25%; right: 10%; animation-delay: 1.4s; }

@keyframes sparkle-pulse {
  0%, 100% { opacity: 1; transform: scale(1) rotate(0deg); }
  50% { opacity: 0.4; transform: scale(1.3) rotate(20deg); }
}

/* ===== 泡泡标签 ===== */
.bubble-tag {
  display: inline-block;
  padding: 0.25rem 0.9rem;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  background: linear-gradient(90deg, rgba(105,255,105,0.15), rgba(0,255,255,0.15));
  border: 1px solid var(--border);
  color: var(--cyan);
  text-shadow: none;
}

/* ===== 按钮 ===== */
.btn-glow {
  display: inline-block;
  padding: 0.75rem 2rem;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 700;
  background: linear-gradient(90deg, var(--green), var(--cyan));
  color: var(--dark3);
  box-shadow: var(--glow-green);
  transition: box-shadow 0.2s, transform 0.15s;
  min-height: 44px;
  line-height: 1;
}
.btn-glow:hover {
  box-shadow: var(--glow-cyan);
  color: var(--dark3);
  transform: translateY(-2px);
}
.btn-glow.btn-sm { padding: 0.5rem 1.2rem; font-size: 0.88rem; }
.btn-outline {
  display: inline-block;
  padding: 0.65rem 1.8rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 500;
  border: 1px solid var(--green);
  color: var(--green);
  min-height: 44px;
  line-height: 1.4;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.btn-outline:hover {
  background: rgba(105,255,105,0.1);
  box-shadow: var(--glow-green);
  color: var(--green);
}
.text-link {
  color: var(--cyan);
  font-weight: 500;
  border-bottom: 1px solid rgba(0,255,255,0.3);
  padding-bottom: 1px;
  transition: border-color 0.2s;
}
.text-link:hover { border-color: var(--cyan); color: var(--cyan); }

/* ===== 布局骨架 ===== */
.main-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 1.2rem 3rem;
}
.main-article { width: 100%; }
.content-with-aside {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

/* ===== 侧边栏（左侧） ===== */
.sidebar {
  width: 220px;
  flex-shrink: 0;
  position: sticky;
  top: 1.5rem;
}
.sidebar-inner {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem 1rem;
}
.sidebar-heading {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--green);
  text-transform: uppercase;
  margin-bottom: 0.9rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}
.sidebar-heading > span { display: block; }
.side-nav-list { display: flex; flex-direction: column; gap: 0.3rem; }
.side-link {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  padding: 0.35rem 0;
  transition: color 0.2s;
  line-height: 1.4;
}
.side-link:hover { color: var(--green); }
.side-dot {
  font-size: 0.55rem;
  color: var(--green);
  flex-shrink: 0;
  opacity: 0.6;
}
.side-current .side-link { color: var(--cyan); }
.side-current .side-dot { color: var(--cyan); opacity: 1; }
.sidebar-badge {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}
.badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px var(--green);
  animation: blink 1.5s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes blink { 0%,100%{opacity:1}50%{opacity:0.3} }
.sidebar-cta { margin-top: 1rem; }
.sidebar-note {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  padding-top: 0.8rem;
  line-height: 1.5;
}

/* ===== 正文区 ===== */
.main-body { flex: 1; min-width: 0; }

/* ===== 面包屑 ===== */
.breadcrumb {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--green); }
.bc-sep { opacity: 0.4; }

/* ===== div 标题 ===== */
.section-heading {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 1.2rem;
  padding-left: 0.8rem;
  border-left: 3px solid var(--cyan);
  line-height: 1.3;
}
.section-heading > span { display: block; }
.footer-nav-heading {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--green);
  margin-bottom: 0.8rem;
}
.footer-nav-heading > span { display: block; }

/* ===== 各 div ===== */
.prose-section, .home-intro, .home-faq-section, .home-about-section,
.related-section, .faq-children-section, .faq-nav-section, .contact-channels {
  margin-bottom: 3rem;
}

/* ===== Prose 正文 ===== */
.prose {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text);
}
.prose p { margin-bottom: 1rem; }
.prose h2 { font-size: 1.1rem; font-weight: 700; color: var(--green); margin: 1.8rem 0 0.7rem; padding-left: 0.6rem; border-left: 2px solid var(--cyan); }
.prose h3 { font-size: 1rem; font-weight: 600; color: var(--cyan); margin: 1.4rem 0 0.5rem; }
.prose ul, .prose ol { padding-left: 1.4rem; margin-bottom: 1rem; }
.prose li { margin-bottom: 0.4rem; }
.prose strong { color: var(--green); font-weight: 700; }
.prose a { color: var(--cyan); border-bottom: 1px solid rgba(0,255,255,0.25); }
.prose a:hover { color: var(--green); border-color: var(--green); }
.prose blockquote {
  border-left: 3px solid var(--green);
  padding: 0.6rem 1rem;
  margin: 1rem 0;
  background: rgba(105,255,105,0.06);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--text-muted);
}
.prose table { width: 100%; border-collapse: collapse; margin-bottom: 1rem; font-size: 0.93rem; }
.prose th { background: rgba(105,255,105,0.1); color: var(--green); padding: 0.5rem 0.7rem; border: 1px solid var(--border); text-align: left; }
.prose td { padding: 0.5rem 0.7rem; border: 1px solid var(--border); }
.prose tr:nth-child(even) td { background: rgba(105,255,105,0.04); }

.page-date {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.page-date time { color: var(--cyan); }

/* ===== FAQ 卡片网格 ===== */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.faq-card {
  background: linear-gradient(135deg, var(--card-bg) 0%, var(--card-bg2) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  animation: stagger-in 0.4s ease both;
  animation-delay: calc(var(--i) * 0.06s);
}
.faq-card:hover {
  border-color: var(--green);
  box-shadow: var(--glow-green);
  transform: translateY(-3px);
}
.faq-card-link {
  display: flex;
  flex-direction: column;
  padding: 1.1rem 1rem;
  color: var(--text);
  height: 100%;
}
.faq-card-link:hover { color: var(--text); }
.faq-card-num {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--green);
  letter-spacing: 0.1em;
  margin-bottom: 0.4rem;
  opacity: 0.7;
}
.faq-card-title {
  font-size: 0.93rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.4;
  margin-bottom: 0.5rem;
}
.faq-card-title > span { display: block; }
.faq-card-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
  flex: 1;
}
.faq-card-arrow {
  margin-top: 0.8rem;
  font-size: 0.9rem;
  color: var(--cyan);
  align-self: flex-end;
}
.see-all-wrap { text-align: center; margin-top: 0.5rem; }
.home-content { margin-bottom: 1rem; }
.about-teaser {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.about-teaser p { color: var(--text-muted); font-size: 0.95rem; }

/* ===== 相关链接卡片 ===== */
.related-links {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}
.related-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.2rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 0.93rem;
  min-width: 160px;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}
.related-card:hover {
  border-color: var(--cyan);
  box-shadow: var(--glow-cyan);
  color: var(--cyan);
  transform: translateY(-2px);
}
.related-label { font-weight: 500; }
.related-arrow { color: var(--cyan); }

/* ===== FAQ 子页列表（dl） ===== */
.faq-children-dl {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.faq-children-dl dt {
  padding: 0.9rem 1.2rem 0.3rem;
  background: var(--card-bg);
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  border-radius: var(--radius) var(--radius) 0 0;
  margin-top: 0.8rem;
}
.faq-children-dl dt:first-of-type { margin-top: 0; }
.faq-children-dl dt a {
  font-size: 1rem;
  font-weight: 600;
  color: var(--green);
}
.faq-children-dl dt a:hover { color: var(--cyan); }
.faq-children-dl dd {
  padding: 0.5rem 1.2rem 0.9rem;
  background: var(--card-bg2);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
}
.child-desc { font-size: 0.88rem; color: var(--text-muted); }
.child-date { font-size: 0.78rem; color: var(--text-muted); margin-top: 0.3rem; }
.child-date time { color: var(--cyan); }

/* ===== 联系渠道 ===== */
.channel-list { display: flex; flex-direction: column; gap: 0.8rem; }
.channel-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  transition: border-color 0.2s;
}
.channel-item:hover { border-color: var(--green); }
.channel-icon {
  font-size: 1.4rem;
  color: var(--cyan);
  flex-shrink: 0;
  line-height: 1;
  filter: drop-shadow(0 0 6px var(--cyan));
}
.channel-info strong { display: block; color: var(--green); font-weight: 600; margin-bottom: 0.25rem; }
.channel-info p { font-size: 0.88rem; color: var(--text-muted); }

/* ===== Inner Hero ===== */
.inner-hero {
  position: relative;
  padding: 4rem 5% 3rem;
  overflow: hidden;
  min-height: 220px;
  display: flex;
  align-items: flex-end;
}
.inner-hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--dark3) 0%, #0d1f0d 60%, #001818 100%);
  z-index: 0;
}
.inner-hero-bg::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 60px;
  background: linear-gradient(90deg, var(--green), var(--cyan));
  clip-path: polygon(0 80%, 100% 20%, 100% 100%, 0 100%);
  opacity: 0.1;
}
.inner-hero-content {
  position: relative;
  z-index: 2;
}
.inner-eyebrow { margin-bottom: 0.7rem; }
.inner-h1 {
  font-size: clamp(1.4rem, 4vw, 2.2rem);
  font-weight: 700;
  color: #fff;
  text-shadow: 0 0 20px rgba(105,255,105,0.3);
  line-height: 1.3;
  max-width: 800px;
}

/* ===== 页脚 ===== */
.site-footer {
  background: var(--dark3);
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 0;
  padding: 0 0 var(--nav-h);
}
.site-footer > div {
  padding: 2rem 1.5rem;
  border-right: 1px solid var(--border);
}
.site-footer > div:last-child { border-right: none; }

.footer-logo { max-height: 36px; margin-bottom: 0.7rem; }
.footer-brand-text {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: var(--green);
  text-shadow: var(--glow-green);
  margin-bottom: 0.7rem;
  letter-spacing: 0.05em;
}
.footer-desc { font-size: 0.82rem; color: var(--text-muted); line-height: 1.6; }

.footer-dl { display: flex; flex-direction: column; gap: 0.15rem; }
.footer-dl dt a {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: block;
  padding: 0.3rem 0;
  min-height: 40px;
  display: flex;
  align-items: center;
  transition: color 0.2s;
}
.footer-dl dt a:hover { color: var(--green); }
.footer-dl dd {
  font-size: 0.75rem;
  color: rgba(122,171,122,0.5);
  padding-left: 0.3rem;
  margin-bottom: 0.3rem;
  line-height: 1.3;
}

.footer-legal {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.footer-legal-inner {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.footer-link {
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 0.35rem 0;
  min-height: 40px;
  display: flex;
  align-items: center;
  transition: color 0.2s;
}
.footer-link:hover { color: var(--green); }
.footer-copy {
  font-size: 0.75rem;
  color: rgba(122,171,122,0.4);
  margin-top: 1.5rem;
  line-height: 1.5;
}

/* ===== 固定底部 nav 条（融合在 footer 结构外，覆盖在上面） ===== */
/* 注意：nav 通过 footer 内的 nav > dl 实现，同时有固定底部条作为快捷入口 */
.site-footer .footer-nav { width: 100%; }

/* ===== 移动端固定导航条（底部） ===== */
.mobile-nav-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: rgba(15, 26, 15, 0.96);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  height: var(--nav-h);
  padding: 0 1rem;
  gap: 0.5rem;
}
.nav-brand {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--green);
  text-shadow: 0 0 10px rgba(105,255,105,0.5);
  white-space: nowrap;
  flex-shrink: 0;
  min-height: 40px;
  display: flex;
  align-items: center;
  padding: 0 0.3rem;
}
.nav-brand:hover { color: var(--cyan); }
.nav-links-bar {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  overflow-x: auto;
  flex: 1;
  scrollbar-width: none;
}
.nav-links-bar::-webkit-scrollbar { display: none; }
.nav-bar-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.3rem 0.6rem;
  font-size: 0.72rem;
  color: var(--text-muted);
  white-space: nowrap;
  min-height: 44px;
  border-radius: var(--radius);
  transition: color 0.2s, background 0.2s;
  gap: 0.1rem;
}
.nav-bar-link:hover {
  color: var(--green);
  background: rgba(105,255,105,0.08);
}
.nav-bar-link.active { color: var(--green); }
.nav-bar-icon { font-size: 1rem; line-height: 1; }
.nav-bar-label { font-size: 0.65rem; }

/* ===== 动画 ===== */
@keyframes stagger-in {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-sparkle { animation: none; }
  .badge-dot { animation: none; }
  .faq-card { animation: none; }
  .faq-card:hover, .related-card:hover, .btn-glow:hover { transform: none; }
}

/* ===== 响应式 ===== */
@media (max-width: 900px) {
  .site-footer {
    grid-template-columns: 1fr;
  }
  .site-footer > div {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 1.5rem 1.2rem;
  }
  .site-footer > div:last-child { border-bottom: none; }
}

@media (max-width: 768px) {
  .content-with-aside {
    flex-direction: column;
  }
  .sidebar {
    width: 100%;
    position: static;
  }
  .sidebar-inner { padding: 1rem; }
  .side-nav-list {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.3rem 0.8rem;
  }
  .side-link { font-size: 0.82rem; }

  .hero-content {
    text-align: center;
    padding: 2rem 1.2rem 6rem;
    max-width: 100%;
  }
  .hero-sub { margin-right: auto; }

  .faq-grid { grid-template-columns: 1fr 1fr; }
  .inner-hero { padding: 3rem 1.2rem 2rem; min-height: 160px; }

  .related-links { flex-direction: column; }
  .about-teaser { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .faq-grid { grid-template-columns: 1fr; }
  .hero-h1 { font-size: 1.8rem; }
  .main-wrap { padding: 1.5rem 0.9rem 2rem; }
  .footer-dl dt a { font-size: 0.82rem; }
}

/* ===== 无障碍 ===== */
:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 2px;
}
