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

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'VT323', 'Courier New', monospace;
  font-size: 18px;
  line-height: 1.7;
  background: #fff;
  color: #000;
  overflow-x: hidden;
}

a {
  color: #000;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 200ms ease;
}

a:hover {
  opacity: 0.6;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ===== 全局排版 ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Press Start 2P', 'Courier New', monospace;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(1.4rem, 4vw, 2.4rem); }
h2 { font-size: clamp(1.1rem, 2.5vw, 1.6rem); }
h3 { font-size: clamp(0.85rem, 2vw, 1.1rem); }

p { line-height: 1.75; }

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

/* ===== 顶部导航 ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: #000;
  color: #fff;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 0 1.5rem;
  height: 60px;
  border-bottom: 3px solid #fff;
}

.brand-icon {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-pixel {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.75rem;
  color: #fff;
  background: #fff;
  color: #000;
  padding: 4px 6px;
  letter-spacing: 0;
}

.logo-mark {
  height: 36px;
  width: auto;
}

.top-nav {
  overflow: hidden;
}

.top-nav p {
  display: flex;
  flex-wrap: nowrap;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.top-nav p::-webkit-scrollbar {
  display: none;
}

.top-nav p a {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.55rem;
  color: #fff;
  text-decoration: none;
  padding: 0 0.75rem;
  height: 60px;
  display: flex;
  align-items: center;
  white-space: nowrap;
  border-right: 1px solid rgba(255,255,255,0.15);
  transition: background 200ms ease;
}

.top-nav p a:hover {
  background: rgba(255,255,255,0.1);
  opacity: 1;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.cta-btn {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.55rem;
  background: #fff;
  color: #000;
  text-decoration: none;
  padding: 10px 14px;
  border: 2px solid #fff;
  white-space: nowrap;
  transition: background 200ms ease, color 200ms ease;
  min-height: 40px;
  display: flex;
  align-items: center;
}

.cta-btn:hover {
  background: #000;
  color: #fff;
  opacity: 1;
}

.burger-btn {
  background: none;
  border: 2px solid #fff;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  padding: 6px;
  transition: background 200ms ease;
}

.burger-btn:hover {
  background: rgba(255,255,255,0.15);
}

.burger-btn span {
  display: block;
  width: 18px;
  height: 2px;
  background: #fff;
  transition: transform 250ms ease, opacity 250ms ease;
}

.burger-btn.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.burger-btn.is-active span:nth-child(2) {
  opacity: 0;
}
.burger-btn.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===== 全屏遮罩菜单 ===== */
.overlay-menu {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transform: translateY(-100%);
  transition: transform 300ms ease;
  visibility: hidden;
}

.overlay-menu.is-open {
  transform: translateY(0);
  visibility: visible;
}

.overlay-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: 2px solid #fff;
  color: #fff;
  font-family: 'Press Start 2P', monospace;
  font-size: 0.8rem;
  width: 44px;
  height: 44px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 200ms ease;
}

.overlay-close:hover {
  background: #fff;
  color: #000;
}

.overlay-nav p {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.overlay-nav p a {
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(0.65rem, 2vw, 0.9rem);
  color: #fff;
  text-decoration: none;
  padding: 1.2rem 2rem;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  width: 100%;
  max-width: 480px;
  transition: background 200ms ease;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.overlay-nav p a:hover {
  background: rgba(255,255,255,0.08);
  opacity: 1;
}

/* ===== 粘性锚点条 ===== */
.sticky-anchor-bar {
  position: sticky;
  top: 60px;
  z-index: 800;
  background: #fff;
  border-bottom: 2px solid #000;
  overflow-x: auto;
  scrollbar-width: none;
}

.sticky-anchor-bar::-webkit-scrollbar {
  display: none;
}

.sticky-anchor-bar nav p {
  display: flex;
  flex-wrap: nowrap;
  gap: 0;
  padding: 0 1.5rem;
}

.sticky-anchor-bar nav p a {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.5rem;
  color: #000;
  text-decoration: none;
  padding: 0 1.25rem;
  height: 44px;
  display: flex;
  align-items: center;
  white-space: nowrap;
  border-right: 1px solid #000;
  transition: background 200ms ease;
}

.sticky-anchor-bar nav p a:first-child {
  border-left: 1px solid #000;
}

.sticky-anchor-bar nav p a:hover {
  background: #000;
  color: #fff;
  opacity: 1;
}

/* ===== Hero（首页） ===== */
.hero--home {
  position: relative;
  min-height: 70vh;
  background: #000;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 1.5rem 6rem;
  text-align: right;
}

.hero-badge {
  display: inline-block;
  font-family: 'Press Start 2P', monospace;
  font-size: 0.5rem;
  background: #fff;
  color: #000;
  padding: 6px 12px;
  margin-bottom: 1.5rem;
  letter-spacing: 0.1em;
}

.hero-title {
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(1.2rem, 4vw, 2.8rem);
  color: #fff;
  line-height: 1.4;
  margin-bottom: 1.25rem;
  word-break: break-all;
}

.hero-desc {
  font-family: 'VT323', monospace;
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: rgba(255,255,255,0.8);
  max-width: 560px;
  margin-left: auto;
  margin-bottom: 2rem;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  font-family: 'Press Start 2P', monospace;
  font-size: 0.65rem;
  background: #fff;
  color: #000;
  text-decoration: none;
  padding: 14px 28px;
  border: 3px solid #fff;
  transition: background 230ms ease, color 230ms ease;
  min-height: 48px;
}

.hero-cta:hover {
  background: #000;
  color: #fff;
  opacity: 1;
}

/* 斜切底边 */
.hero--home::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 80px;
  background: #fff;
  clip-path: polygon(0 80px, 100% 0, 100% 80px);
  z-index: 3;
}

/* 像素点阵装饰 */
.hero--home::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 24px 24px;
  z-index: 1;
}

/* ===== 内页 Hero ===== */
.inner-hero {
  background: #000;
  color: #fff;
  padding: 3rem 1.5rem 2.5rem;
  position: relative;
  overflow: hidden;
}

.inner-hero::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 40px;
  background: #fff;
  clip-path: polygon(0 40px, 100% 0, 100% 40px);
}

.inner-hero-label {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.5rem;
  background: #fff;
  color: #000;
  display: inline-block;
  padding: 5px 10px;
  margin-bottom: 1.25rem;
  letter-spacing: 0.1em;
}

.inner-hero-h1 {
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(1rem, 3vw, 1.8rem);
  color: #fff;
  margin-bottom: 1rem;
  max-width: 900px;
}

.inner-hero-meta {
  font-family: 'VT323', monospace;
  font-size: 1.1rem;
  color: rgba(255,255,255,0.7);
}

.inner-hero-meta time {
  color: rgba(255,255,255,0.9);
}

/* ===== FAQ Hero ===== */
.faq-hero {
  background: #000;
  color: #fff;
  padding: 3rem 1.5rem 2.5rem;
  position: relative;
  overflow: hidden;
}

.faq-hero::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 40px;
  background: #fff;
  clip-path: polygon(0 40px, 100% 0, 100% 40px);
}

.breadcrumb {
  font-family: 'VT323', monospace;
  font-size: 1rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 1rem;
}

.breadcrumb a {
  color: rgba(255,255,255,0.7);
  text-decoration: underline;
}

.breadcrumb a:hover {
  color: #fff;
  opacity: 1;
}

.breadcrumb span {
  color: rgba(255,255,255,0.4);
}

.faq-h1 {
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(1rem, 3vw, 1.8rem);
  color: #fff;
  margin-bottom: 1rem;
  max-width: 900px;
}

.faq-meta {
  font-family: 'VT323', monospace;
  font-size: 1.1rem;
  color: rgba(255,255,255,0.7);
}

.faq-meta time {
  color: rgba(255,255,255,0.9);
}

/* ===== 内容区公共 ===== */
.content-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.5rem 2rem;
}

.page-content {
  max-width: 800px;
  font-size: 18px;
  line-height: 1.8;
}

/* ===== FAQ 布局 ===== */
.faq-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.5rem 2rem;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 3rem;
  align-items: start;
}

.faq-body {
  min-width: 0;
}

.faq-content-inner {
  font-size: 18px;
  line-height: 1.8;
}

/* ===== About 布局 ===== */
.about-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.5rem 2rem;
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 3rem;
  align-items: start;
}

.about-main {
  min-width: 0;
}

.about-content-inner {
  font-size: 18px;
  line-height: 1.8;
}

/* ===== Privacy 布局 ===== */
.privacy-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.5rem 2rem;
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 3rem;
  align-items: start;
}

.privacy-main {
  min-width: 0;
}

.privacy-content-inner {
  font-size: 18px;
  line-height: 1.8;
}

/* ===== 侧边栏 ===== */
.faq-aside,
.about-aside,
.privacy-aside {
  position: sticky;
  top: 120px;
}

.aside-block {
  border: 2px solid #000;
  border-radius: 28px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
}

.aside-title {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.55rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #000;
}

.aside-nav-list {
  list-style: none;
}

.aside-nav-list li {
  border-bottom: 1px solid rgba(0,0,0,0.12);
}

.aside-nav-list li:last-child {
  border-bottom: none;
}

.aside-nav-list li a {
  display: block;
  font-family: 'VT323', monospace;
  font-size: 1.05rem;
  text-decoration: none;
  padding: 0.5rem 0;
  color: #000;
  transition: opacity 200ms ease;
  min-height: 40px;
  display: flex;
  align-items: center;
}

.aside-nav-list li a[aria-current="page"] {
  font-weight: bold;
  text-decoration: underline;
}

.aside-nav-list li a:hover {
  opacity: 0.55;
}

/* ===== 富文本内容样式 ===== */
.faq-content-inner h2,
.about-content-inner h2,
.privacy-content-inner h2,
.page-content h2 {
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(0.8rem, 2vw, 1.1rem);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #000;
}

.faq-content-inner h3,
.about-content-inner h3,
.privacy-content-inner h3,
.page-content h3 {
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(0.7rem, 1.5vw, 0.9rem);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.faq-content-inner p,
.about-content-inner p,
.privacy-content-inner p,
.page-content p {
  margin-bottom: 1.25rem;
  font-size: 18px;
  line-height: 1.8;
}

.faq-content-inner ul,
.faq-content-inner ol,
.about-content-inner ul,
.about-content-inner ol,
.privacy-content-inner ul,
.privacy-content-inner ol,
.page-content ul,
.page-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}

.faq-content-inner li,
.about-content-inner li,
.privacy-content-inner li,
.page-content li {
  margin-bottom: 0.5rem;
  line-height: 1.75;
}

.faq-content-inner strong,
.about-content-inner strong,
.privacy-content-inner strong,
.page-content strong {
  font-weight: bold;
}

.faq-content-inner a,
.about-content-inner a,
.privacy-content-inner a,
.page-content a {
  color: #000;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.faq-content-inner table,
.about-content-inner table,
.privacy-content-inner table,
.page-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
  font-size: 17px;
}

.faq-content-inner th,
.about-content-inner th,
.privacy-content-inner th,
.page-content th,
.faq-content-inner td,
.about-content-inner td,
.privacy-content-inner td,
.page-content td {
  border: 2px solid #000;
  padding: 0.6rem 0.9rem;
  text-align: left;
}

.faq-content-inner th,
.about-content-inner th,
.privacy-content-inner th,
.page-content th {
  background: #000;
  color: #fff;
  font-family: 'Press Start 2P', monospace;
  font-size: 0.55rem;
}

time {
  font-family: 'VT323', monospace;
  font-size: 1rem;
}

/* ===== 卡片区 ===== */
.home-cards,
.faq-related {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
}

.section-title {
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(0.8rem, 2vw, 1.1rem);
  margin-bottom: 2rem;
  padding-bottom: 0.75rem;
  border-bottom: 3px solid #000;
}

.card-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card-list li {
  display: flex;
}

.card {
  border: 2px solid #000;
  border-radius: 28px;
  padding: 1.5rem;
  background: #fff;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: background 230ms ease;
  animation: cardReveal 0.5s ease both;
}

.card:hover {
  background: #f5f5f5;
}

.card h3 {
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(0.6rem, 1.5vw, 0.8rem);
  line-height: 1.5;
}

.card h3 a {
  color: #000;
  text-decoration: none;
}

.card h3 a:hover {
  text-decoration: underline;
  opacity: 1;
}

.card p {
  font-family: 'VT323', monospace;
  font-size: 1.05rem;
  line-height: 1.6;
  color: rgba(0,0,0,0.75);
  flex: 1;
  margin: 0;
}

.card-date {
  font-family: 'VT323', monospace;
  font-size: 0.95rem;
  color: rgba(0,0,0,0.5);
  margin-top: auto;
}

/* ===== 页脚 ===== */
.site-footer {
  margin-top: auto;
  background: #000;
  color: #fff;
  border-top: 3px solid #000;
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.5rem 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.footer-bigname {
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(1.2rem, 4vw, 2.6rem);
  line-height: 1.2;
  color: #fff;
  margin-bottom: 0.75rem;
  word-break: break-all;
}

.footer-tagline {
  font-family: 'VT323', monospace;
  font-size: 1.15rem;
  color: rgba(255,255,255,0.65);
}

.footer-links-title {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.55rem;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.12em;
  margin-bottom: 1rem;
}

.footer-links nav p {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.footer-links nav p a {
  font-family: 'VT323', monospace;
  font-size: 1.1rem;
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  transition: color 200ms ease;
  min-height: 40px;
  display: flex;
  align-items: center;
}

.footer-links nav p a:last-child {
  border-bottom: none;
}

.footer-links nav p a:hover {
  color: #fff;
  opacity: 1;
}

.footer-bottom {
  border-top: 2px solid rgba(255,255,255,0.15);
  padding: 1.25rem 1.5rem;
  text-align: center;
}

.footer-bottom p {
  font-family: 'VT323', monospace;
  font-size: 1rem;
  color: rgba(255,255,255,0.55);
  margin: 0;
}

.footer-bottom a {
  color: rgba(255,255,255,0.75);
  text-decoration: underline;
}

.footer-bottom a:hover {
  color: #fff;
  opacity: 1;
}

/* ===== 动效 ===== */
@keyframes cardReveal {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card-list li:nth-child(1) .card { animation-delay: 0.05s; }
.card-list li:nth-child(2) .card { animation-delay: 0.10s; }
.card-list li:nth-child(3) .card { animation-delay: 0.15s; }
.card-list li:nth-child(4) .card { animation-delay: 0.20s; }
.card-list li:nth-child(5) .card { animation-delay: 0.25s; }
.card-list li:nth-child(6) .card { animation-delay: 0.30s; }

.hero-inner {
  animation: heroIn 0.6s ease both;
}

@keyframes heroIn {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.faq-hero,
.inner-hero {
  animation: heroIn 0.5s ease both;
}

/* ===== 减少动效 ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .overlay-menu {
    transition: none;
  }
}

/* ===== 响应式：平板 ===== */
@media (max-width: 900px) {
  .faq-layout,
  .about-layout,
  .privacy-layout {
    grid-template-columns: 1fr;
  }

  .faq-aside,
  .about-aside,
  .privacy-aside {
    position: static;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .top-nav {
    display: none;
  }

  .site-header {
    grid-template-columns: auto 1fr auto;
  }
}

/* ===== 响应式：手机 ===== */
@media (max-width: 600px) {
  .site-header {
    padding: 0 1rem;
    height: 56px;
  }

  .sticky-anchor-bar {
    top: 56px;
  }

  .hero-inner {
    padding: 2.5rem 1rem 5rem;
  }

  .hero-title {
    font-size: 1.1rem;
  }

  .hero-desc {
    font-size: 1.1rem;
  }

  .faq-layout,
  .about-layout,
  .privacy-layout,
  .content-wrap {
    padding: 2rem 1rem 1.5rem;
  }

  .home-cards,
  .faq-related {
    padding: 1.5rem 1rem 2rem;
  }

  .card-list {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    padding: 2rem 1rem 1.5rem;
  }

  .footer-bigname {
    font-size: 1.4rem;
  }

  .footer-bottom {
    padding: 1rem;
  }

  .overlay-nav p a {
    font-size: 0.6rem;
    padding: 1rem 1.5rem;
  }

  .inner-hero,
  .faq-hero {
    padding: 2.5rem 1rem 2rem;
  }

  .inner-hero-h1,
  .faq-h1 {
    font-size: 0.95rem;
  }
}

/* ===== 实用类 ===== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
