@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=VT323&display=swap');

/* ===== CSS 变量 ===== */
:root {
  --c-bg: #0D0D0D;
  --c-red: #FF3C3C;
  --c-gold: #FFD700;
  --c-surface: #1a1a1a;
  --c-surface2: #222222;
  --c-border: #333333;
  --c-text: #e8e8e8;
  --c-muted: #888888;
  --c-link: #FF3C3C;
  --c-link-hover: #FFD700;
  --font-pixel: 'Press Start 2P', monospace;
  --font-vt: 'VT323', monospace;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius-card: 28px;
  --nav-h: 64px;
  --anchor-h: 40px;
  --max-w: 860px;
  --transition: 0.25s ease;
}

/* ===== 重置 ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}
a { color: var(--c-link); text-decoration: none; transition: color var(--transition); }
a:hover, a:focus-visible { color: var(--c-link-hover); outline: 2px solid var(--c-gold); outline-offset: 2px; }
img { display: block; max-width: 100%; height: auto; }
table { border-collapse: collapse; width: 100%; }

/* ===== 像素点阵底纹 ===== */
.pixel-grid {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, #FF3C3C22 1px, transparent 1px);
  background-size: 24px 24px;
  z-index: 0;
  pointer-events: none;
}

/* ===== 导航 ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  background: rgba(13,13,13,0.97);
  border-bottom: 1px solid var(--c-red);
  z-index: 100;
  backdrop-filter: blur(8px);
}
.site-nav {
  display: flex;
  align-items: center;
  height: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  gap: 0;
}
.nav-brand {
  font-family: var(--font-pixel);
  font-size: 11px;
  color: var(--c-gold);
  white-space: nowrap;
  margin-right: auto;
  padding: 12px 0;
  line-height: 1.4;
  text-shadow: 0 0 8px rgba(255,215,0,0.6);
}
.nav-brand:hover { color: var(--c-red); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav-links::-webkit-scrollbar { display: none; }
.nav-link {
  font-family: var(--font-vt);
  font-size: 18px;
  color: var(--c-text);
  padding: 10px 12px;
  border-radius: 6px;
  white-space: nowrap;
  min-height: 40px;
  display: flex;
  align-items: center;
  transition: background var(--transition), color var(--transition);
}
.nav-link:hover,
.nav-link[aria-current="page"] {
  background: var(--c-red);
  color: #fff;
  outline: none;
}
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--c-red);
  color: var(--c-gold);
  font-size: 20px;
  padding: 8px 12px;
  cursor: pointer;
  border-radius: 6px;
  min-height: 40px;
  min-width: 44px;
  margin-left: 12px;
}

/* ===== 粘性锚点条 ===== */
.sticky-anchors {
  position: sticky;
  top: var(--nav-h);
  z-index: 90;
  background: var(--c-surface);
  border-bottom: 1px solid var(--c-border);
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0 20px;
  height: var(--anchor-h);
  overflow-x: auto;
  scrollbar-width: none;
}
.sticky-anchors::-webkit-scrollbar { display: none; }
.anchor-link {
  font-family: var(--font-vt);
  font-size: 18px;
  color: var(--c-muted);
  padding: 0 14px;
  height: var(--anchor-h);
  display: flex;
  align-items: center;
  white-space: nowrap;
  border-right: 1px solid var(--c-border);
  transition: color var(--transition);
}
.anchor-link:first-child { padding-left: 0; }
.anchor-link:hover { color: var(--c-gold); }

/* ===== Hero ===== */
.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: var(--nav-h);
  overflow: hidden;
}
.hero-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(13,13,13,0.55) 0%,
    rgba(13,13,13,0.75) 60%,
    rgba(13,13,13,0.97) 100%
  );
  z-index: 1;
}
.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.35;
}
.hero-body {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 40px 20px;
  max-width: 900px;
  width: 100%;
}
.hero-eyebrow {
  margin-bottom: 16px;
}
.typing-label {
  font-family: var(--font-pixel);
  font-size: 10px;
  color: var(--c-red);
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  border-right: 2px solid var(--c-red);
  animation: typing 2.5s steps(10, end) infinite, blink 0.75s step-end infinite;
  max-width: 10ch;
}
@keyframes typing {
  0% { max-width: 0; }
  60% { max-width: 10ch; }
  90% { max-width: 10ch; }
  100% { max-width: 0; }
}
@keyframes blink {
  0%, 100% { border-color: var(--c-red); }
  50% { border-color: transparent; }
}

/* ===== Kinetic 标题 ===== */
.kinetic-title {
  font-family: var(--font-pixel);
  font-size: clamp(20px, 4vw, 42px);
  line-height: 1.4;
  color: transparent;
  background: linear-gradient(135deg, var(--c-red) 0%, var(--c-gold) 60%, #ff9900 100%);
  -webkit-background-clip: text;
  background-clip: text;
  letter-spacing: 0.02em;
  animation: textShimmer 4s ease-in-out infinite;
}
@keyframes textShimmer {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.3) drop-shadow(0 0 12px rgba(255,215,0,0.5)); }
}
.hero-h1.kinetic-title {
  font-size: clamp(22px, 5vw, 52px);
  margin-bottom: 20px;
}
.hero-sub {
  font-family: var(--font-vt);
  font-size: clamp(20px, 3vw, 28px);
  color: var(--c-text);
  margin-bottom: 32px;
  opacity: 0.85;
  line-height: 1.5;
}
.vt323 { font-family: var(--font-vt); }
.hero-cta-row {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== 按钮 ===== */
.btn-primary {
  font-family: var(--font-pixel);
  font-size: 11px;
  background: var(--c-red);
  color: #fff;
  padding: 14px 28px;
  border-radius: 8px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 0 12px rgba(255,60,60,0.4);
}
.btn-primary:hover {
  background: #cc2222;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(255,60,60,0.6);
}
.btn-ghost {
  font-family: var(--font-pixel);
  font-size: 11px;
  background: transparent;
  color: var(--c-gold);
  padding: 14px 28px;
  border-radius: 8px;
  border: 1px solid var(--c-gold);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  transition: background var(--transition), color var(--transition);
}
.btn-ghost:hover {
  background: var(--c-gold);
  color: var(--c-bg);
}

/* ===== wrap / 正文容器 ===== */
.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 48px 20px 80px;
}
.content-section {
  margin-bottom: 60px;
}

/* ===== Prose 正文 ===== */
.prose {
  font-size: 16px;
  line-height: 1.8;
  color: var(--c-text);
}
.prose h1, .prose h2, .prose h3, .prose h4 {
  font-family: var(--font-pixel);
  color: var(--c-gold);
  line-height: 1.5;
  margin: 2em 0 0.8em;
}
.prose h2 { font-size: 14px; }
.prose h3 { font-size: 12px; color: var(--c-red); }
.prose h4 { font-size: 11px; }
.prose p { margin-bottom: 1.2em; }
.prose ul, .prose ol { padding-left: 1.6em; margin-bottom: 1.2em; }
.prose li { margin-bottom: 0.4em; }
.prose a { color: var(--c-red); text-decoration: underline; text-decoration-color: rgba(255,60,60,0.4); }
.prose a:hover { color: var(--c-gold); }
.prose blockquote {
  border-left: 3px solid var(--c-red);
  padding: 12px 20px;
  margin: 1.5em 0;
  background: var(--c-surface);
  border-radius: 0 8px 8px 0;
  font-family: var(--font-vt);
  font-size: 20px;
}
.prose code {
  font-family: monospace;
  background: var(--c-surface2);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 14px;
  color: var(--c-gold);
}
.prose pre {
  background: var(--c-surface2);
  padding: 16px;
  border-radius: 8px;
  overflow-x: auto;
  margin-bottom: 1.5em;
}
.prose strong { color: var(--c-gold); font-weight: 700; }
.prose hr { border: none; border-top: 1px solid var(--c-border); margin: 2em 0; }

/* ===== Section 标题 ===== */
.section-h2 {
  font-family: var(--font-pixel);
  font-size: 13px;
  color: var(--c-gold);
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  line-height: 1.6;
}
.eyebrow {
  font-family: var(--font-vt);
  font-size: 18px;
  color: var(--c-red);
  letter-spacing: 0.05em;
  display: block;
  text-transform: uppercase;
}

/* ===== 卡片表格 ===== */
.faq-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 12px;
}
.card-row {}
.card-td {
  padding: 0;
}
.card-link {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px 24px 20px 24px;
  background: var(--c-surface);
  border-radius: var(--radius-card);
  border-bottom: 3px solid var(--c-red);
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
  color: var(--c-text);
  position: relative;
  overflow: hidden;
}
.card-link::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--c-gold);
  opacity: 0;
  transition: opacity var(--transition);
}
.card-link:hover {
  background: var(--c-surface2);
  border-color: var(--c-gold);
  transform: translateY(-3px);
  color: var(--c-text);
  outline: none;
}
.card-link:hover::before { opacity: 1; }
.card-title {
  font-family: var(--font-pixel);
  font-size: 11px;
  color: var(--c-text);
  line-height: 1.7;
  display: block;
}
.card-desc {
  font-size: 14px;
  color: var(--c-muted);
  display: block;
  line-height: 1.5;
}
.card-date {
  font-family: var(--font-vt);
  font-size: 16px;
  color: var(--c-red);
  display: block;
}

/* ===== FAQ Hero / 内页 Hero ===== */
.faq-hero-banner,
.about-hero,
.privacy-hero {
  position: relative;
  min-height: 38vh;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  margin-top: var(--nav-h);
  padding-top: 40px;
  overflow: hidden;
}
.faq-backdrop {
  background: linear-gradient(135deg, #1a0505 0%, var(--c-bg) 100%);
}
.faq-hero-body,
.about-hero-body,
.privacy-hero-body {
  position: relative;
  z-index: 2;
  padding: 40px 20px;
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
}
.faq-h1,
.about-h1,
.privacy-h1 {
  font-family: var(--font-pixel);
  font-size: clamp(14px, 3vw, 28px);
  color: transparent;
  background: linear-gradient(135deg, var(--c-red) 0%, var(--c-gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  line-height: 1.6;
  margin: 12px 0 16px;
}
.faq-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.article-date {
  font-family: var(--font-vt);
  font-size: 18px;
  color: var(--c-muted);
  display: block;
}
.article-date.mod { color: var(--c-red); }
.faq-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2;
  z-index: 0;
}

/* ===== Related / About nav sections ===== */
.related-section,
.about-nav-section,
.privacy-links-section {
  margin-top: 48px;
}

/* ===== 页脚 ===== */
.site-footer {
  background: var(--c-surface);
  border-top: 2px solid var(--c-red);
  padding: 60px 20px 32px;
}
.footer-brand-block {
  font-family: var(--font-pixel);
  font-size: clamp(16px, 5vw, 40px);
  color: var(--c-gold);
  text-align: center;
  margin-bottom: 48px;
  line-height: 1.4;
  opacity: 0.18;
  letter-spacing: 0.04em;
  user-select: none;
  pointer-events: none;
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 1000px;
  margin: 0 auto 40px;
}
.footer-dl dt {
  font-family: var(--font-pixel);
  font-size: 10px;
  color: var(--c-red);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--c-border);
  line-height: 1.7;
}
.footer-dl dd {
  margin: 0 0 8px;
  font-size: 15px;
  color: var(--c-muted);
  line-height: 1.6;
}
.footer-dl dd a {
  color: var(--c-muted);
  transition: color var(--transition);
  min-height: 28px;
  display: inline-flex;
  align-items: center;
}
.footer-dl dd a:hover { color: var(--c-gold); }
.footer-copy {
  text-align: center;
  font-size: 14px;
  color: var(--c-muted);
  border-top: 1px solid var(--c-border);
  padding-top: 20px;
  max-width: 1000px;
  margin: 0 auto;
}

/* ===== Scroll-reveal 动效 ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
.stagger-item {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.stagger-item.visible {
  opacity: 1;
  transform: none;
}

/* ===== prefers-reduced-motion ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .kinetic-title {
    animation: none;
    background: linear-gradient(135deg, var(--c-red), var(--c-gold));
    -webkit-background-clip: text;
    background-clip: text;
  }
  .typing-label {
    animation: none;
    max-width: none;
    border-right: none;
  }
  .reveal, .stagger-item {
    opacity: 1;
    transform: none;
  }
}

/* ===== 响应式：平板 ===== */
@media (max-width: 900px) {
  .footer-cols {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===== 响应式：移动端 ===== */
@media (max-width: 640px) {
  :root {
    --nav-h: 56px;
  }
  .site-nav {
    padding: 0 14px;
  }
  .nav-brand {
    font-size: 9px;
  }
  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: rgba(13,13,13,0.98);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 16px 20px;
    border-bottom: 2px solid var(--c-red);
    gap: 4px;
    z-index: 99;
    max-height: calc(100vh - var(--nav-h));
    overflow-y: auto;
  }
  .nav-links.open {
    display: flex;
  }
  .nav-link {
    font-size: 20px;
    padding: 12px 16px;
    min-height: 44px;
  }
  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .hero-h1.kinetic-title {
    font-size: clamp(16px, 6vw, 28px);
  }
  .hero-sub {
    font-size: 20px;
  }
  .btn-primary, .btn-ghost {
    font-size: 9px;
    padding: 12px 18px;
    width: 100%;
    justify-content: center;
  }
  .hero-cta-row {
    flex-direction: column;
    align-items: stretch;
  }
  .footer-cols {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .footer-brand-block {
    font-size: 20px;
    margin-bottom: 32px;
  }
  .faq-hero-banner,
  .about-hero,
  .privacy-hero {
    min-height: 28vh;
  }
  .wrap {
    padding: 32px 16px 60px;
  }
  .section-h2 {
    font-size: 11px;
  }
  .card-title {
    font-size: 10px;
  }
  .card-link {
    padding: 16px 18px;
  }
  .anchor-link {
    font-size: 16px;
    padding: 0 10px;
  }
  .sticky-anchors {
    padding: 0 14px;
  }
}
