/* ================================================================
   Vtuber Hack 中文官网 — Cyber VTuber Theme
   Color Palette:
     Neon Pink:       #FF4081
     Electric Blue:   #448AFF
     Cyber Purple:    #AA00FF
     Terminal Black:  #212121
     Light Gray BG:   #F5F5F5
     Soft Gray:       #E8E8E8
     Card White:      #FAFAFA
     Text:            #333333
     Text Soft:       #666666
   ================================================================ */

/* === CSS Variables === */
:root {
  --pink-fierce: #FF4081;
  --pink-glow: #FF80AB;
  --blue-electric: #448AFF;
  --blue-glow: #82B1FF;
  --purple-cyber: #AA00FF;
  --purple-glow: #D500F9;
  --terminal-black: #212121;
  --bg: #F5F5F5;
  --bg-soft: #E8E8E8;
  --card: #FAFAFA;
  --text: #333333;
  --text-soft: #666666;
  --text-muted: #999999;
  --border: #DDDDDD;
  --danger-red: #D32F2F;
  --gold: #FFA000;
  --navy: #1A237E;
  --font-sans: 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans SC', system-ui, -apple-system, sans-serif;
  --font-serif: 'Noto Serif SC', 'STSong', 'SimSun', 'Songti SC', serif;
}

/* === Reset === */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* === Screen Reader Only === */
.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;
}

/* === Header === */
.site-header {
  background: var(--terminal-black);
  border-bottom: 3px solid var(--pink-fierce);
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(255, 64, 129, 0.15);
}

.site-header .header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.site-header .logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.site-header .logo img {
  width: 32px;
  height: 32px;
}

.site-header .logo span {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: 1px;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-header nav a {
  color: #CCCCCC;
  text-decoration: none;
  font-size: 0.95rem;
  padding: 8px 14px;
  border-radius: 4px;
  transition: all 0.2s;
}

.site-header nav a:hover,
.site-header nav a.active {
  color: var(--pink-fierce);
  background: rgba(255, 64, 129, 0.1);
}

/* Header CTA Button */
.header-cta {
  background: linear-gradient(135deg, var(--pink-fierce), var(--purple-cyber));
  color: #FFFFFF !important;
  padding: 8px 20px !important;
  border-radius: 20px !important;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 2px 8px rgba(255, 64, 129, 0.3);
  transition: all 0.3s;
}

.header-cta:hover {
  box-shadow: 0 4px 16px rgba(255, 64, 129, 0.5);
  transform: translateY(-1px);
  background: linear-gradient(135deg, var(--pink-fierce), var(--pink-glow));
  color: #FFFFFF !important;
}

/* === Hero Section === */
.hero {
  background: linear-gradient(135deg, #12062A 0%, #1A0A2E 30%, #0D1B3E 60%, #12062A 100%);
  padding: 80px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(255, 64, 129, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(68, 138, 255, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 50% 80%, rgba(170, 0, 255, 0.06) 0%, transparent 50%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(255, 64, 129, 0.03) 2px, rgba(255, 64, 129, 0.03) 4px);
  pointer-events: none;
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero-title-main {
  font-family: var(--font-serif);
  font-size: 3.2rem;
  font-weight: 700;
  color: #FFFFFF;
  text-shadow: 0 0 20px rgba(255, 64, 129, 0.5), 0 0 40px rgba(170, 0, 255, 0.3);
  margin-bottom: 12px;
  letter-spacing: 2px;
}

.hero-tagline {
  font-size: 1.2rem;
  color: var(--pink-glow);
  margin-bottom: 8px;
  font-weight: 400;
}

.hero-subtitle {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.6);
  max-width: 600px;
  margin: 0 auto;
}

/* Hero subpage variant */
.hero-subpage {
  padding: 40px 24px 48px;
}

.hero-subpage-title {
  font-size: 2rem;
  font-weight: 700;
}

/* === Main Content === */
main {
  flex: 1;
}

.content-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 24px;
}

.content-section h2 {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
  position: relative;
  display: inline-block;
}

.content-section h2::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--pink-fierce), var(--purple-cyber));
  border-radius: 2px;
}

.content-section h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
  margin: 32px 0 12px;
}

.content-section p {
  color: var(--text-soft);
  margin-bottom: 16px;
  line-height: 1.9;
}

/* === Card Grids === */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.card {
  background: var(--card);
  border-radius: 12px;
  padding: 28px;
  border-left: 4px solid var(--pink-fierce);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: all 0.3s;
}

.card:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.card .card-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.card h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 8px;
}

.card p {
  color: var(--text-soft);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* === Feature Cards (index) === */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 32px;
}

.feature-card {
  background: var(--card);
  border-radius: 10px;
  padding: 24px;
  border-top: 3px solid var(--blue-electric);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  transition: all 0.3s;
}

.feature-card:hover {
  box-shadow: 0 6px 18px rgba(68, 138, 255, 0.15);
  transform: translateY(-2px);
}

.feature-card .feature-num {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--blue-electric);
  opacity: 0.3;
  line-height: 1;
  margin-bottom: 8px;
}

.feature-card h3 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  margin: 0 0 8px;
}

.feature-card p {
  color: var(--text-soft);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* === Screenshot Gallery === */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
  margin-top: 32px;
}

.gallery-grid img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.gallery-grid img:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 20px rgba(255, 64, 129, 0.2);
}

/* === CTA Banner (index only) === */
.cta-banner {
  background: linear-gradient(135deg, #1A0A2E, #0D1B3E);
  text-align: center;
  padding: 80px 24px;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(circle at 30% 50%, rgba(255, 64, 129, 0.1) 0%, transparent 40%),
    radial-gradient(circle at 70% 50%, rgba(68, 138, 255, 0.1) 0%, transparent 40%);
  pointer-events: none;
}

.cta-banner > * {
  position: relative;
  z-index: 1;
}

.cta-banner h2 {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: #FFFFFF;
  margin-bottom: 12px;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 1.05rem;
  margin-bottom: 28px;
}

.cta-btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--pink-fierce), var(--purple-cyber));
  color: #FFFFFF;
  padding: 14px 48px;
  border-radius: 30px;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(255, 64, 129, 0.4);
  transition: all 0.3s;
}

.cta-btn:hover {
  box-shadow: 0 6px 28px rgba(255, 64, 129, 0.6);
  transform: translateY(-2px);
}

/* === Guide Page === */
.guide-intro {
  color: var(--text-soft);
  font-size: 1.05rem;
  line-height: 1.9;
  margin: 0 0 24px;
}

.guide-step {
  background: var(--card);
  border-radius: 10px;
  padding: 24px 28px;
  margin-bottom: 20px;
  border-left: 4px solid var(--blue-electric);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.guide-step .step-number {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--blue-electric);
  margin-bottom: 6px;
}

.guide-step h3 {
  margin: 0 0 8px;
}

.guide-step p,
.guide-step li {
  color: var(--text-soft);
  font-size: 0.95rem;
  line-height: 1.7;
}

.tip-box {
  background: linear-gradient(135deg, rgba(255, 64, 129, 0.08), rgba(170, 0, 255, 0.05));
  border-left: 4px solid var(--pink-fierce);
  border-radius: 8px;
  padding: 16px 20px;
  margin: 16px 0;
}

.tip-box strong {
  color: var(--pink-fierce);
}

.tip-box p {
  margin: 0;
}

.route-heading {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--purple-cyber);
  margin: 28px 0 10px;
  padding-left: 14px;
  border-left: 3px solid var(--purple-cyber);
}

.route-desc {
  color: var(--text-soft);
  margin-bottom: 16px;
  line-height: 1.8;
}

/* === Story Page === */
.chapter-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--pink-fierce);
  margin: 24px 0 8px;
}

/* === Characters Page === */
.character-card {
  display: flex;
  gap: 24px;
  background: var(--card);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
  border-left: 4px solid var(--purple-cyber);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.character-card .char-img {
  width: 160px;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.character-card .char-info {
  flex: 1;
}

.character-card .char-info h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  margin: 0 0 4px;
}

.character-card .char-info .char-subtitle {
  color: var(--purple-cyber);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 10px;
}

.character-card .char-info .char-traits {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.character-card .char-info .char-traits span {
  background: rgba(170, 0, 255, 0.1);
  color: var(--purple-cyber);
  font-size: 0.8rem;
  padding: 3px 10px;
  border-radius: 12px;
  font-weight: 500;
}

.character-card .char-info p {
  color: var(--text-soft);
  font-size: 0.95rem;
  line-height: 1.7;
}

.section-subheading {
  text-align: center;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
  margin: 40px 0 24px;
}

/* === FAQ Page === */
.faq-item {
  border-bottom: 1px solid var(--border);
  margin-bottom: 4px;
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 18px 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.2s;
}

.faq-question:hover {
  color: var(--pink-fierce);
}

.faq-question .faq-icon {
  font-size: 1.2rem;
  color: var(--pink-fierce);
  transition: transform 0.3s;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-answer.open {
  max-height: 500px;
  padding-bottom: 16px;
}

.faq-answer p,
.faq-answer li {
  color: var(--text-soft);
  font-size: 0.95rem;
  line-height: 1.8;
}

/* System Requirements Table */
.sys-reqs-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 32px;
  font-size: 0.9rem;
}

.sys-reqs-table th,
.sys-reqs-table td {
  padding: 10px 14px;
  border: 1px solid var(--border);
  text-align: left;
}

.sys-reqs-table th {
  background: var(--terminal-black);
  color: #FFFFFF;
  font-weight: 600;
}

.sys-reqs-table td {
  color: var(--text-soft);
}

.sys-reqs-h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  margin: 28px 0 12px;
}

.sys-reqs-h3:first-of-type {
  margin-top: 16px;
}

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* === Reviews Section === */
.review-card {
  background: var(--card);
  border-radius: 10px;
  padding: 24px;
  margin-bottom: 16px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.review-card .review-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.review-card .review-stars {
  color: var(--gold);
  font-size: 1rem;
}

.review-card p {
  color: var(--text-soft);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* === Utility Classes === */
.content-list {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 16px;
}

.content-list-num {
  list-style: decimal;
  padding-left: 24px;
  margin-bottom: 16px;
}

.content-li {
  color: var(--text-soft);
  margin-bottom: 5px;
  line-height: 1.8;
}

.content-li-sm {
  color: var(--text-soft);
  margin-bottom: 4px;
  line-height: 1.7;
  font-size: 0.9rem;
}

.content-li-md {
  color: var(--text-soft);
  margin-bottom: 8px;
  line-height: 1.8;
}

.content-li-lg {
  color: var(--text-soft);
  margin-bottom: 10px;
  line-height: 1.9;
}

.strong-pink {
  color: var(--pink-fierce);
  font-weight: 600;
}

.strong-red {
  color: var(--danger-red);
  font-weight: 600;
}

.strong-gold {
  color: var(--gold);
  font-weight: 600;
}

.strong-muted {
  color: var(--text-muted);
  font-weight: 600;
}

.strong-navy {
  color: var(--navy);
  font-weight: 600;
}

.td-highlight {
  color: var(--pink-fierce);
  font-weight: 700;
}

/* === Featured Game Info Cards === */
.game-info-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 32px;
}

.game-info-card {
  background: var(--card);
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.game-info-card .info-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.game-info-card .info-value {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--pink-fierce);
}

/* === Footer === */
.site-footer {
  background: var(--terminal-black);
  color: var(--text-muted);
  text-align: center;
  padding: 24px;
  font-size: 0.85rem;
}

.site-footer p {
  margin: 0;
}

/* === Lightbox === */
.lightbox-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 2000;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

.lightbox-overlay.active {
  display: flex;
}

.lightbox-overlay img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 8px;
  box-shadow: 0 0 40px rgba(255, 64, 129, 0.3);
}

/* === Responsive: 768px === */
@media (max-width: 768px) {
  .site-header .header-inner {
    flex-wrap: wrap;
    height: auto;
    padding: 12px 0;
    gap: 8px;
  }

  .site-header nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 2px;
  }

  .site-header nav a {
    font-size: 0.85rem;
    padding: 6px 10px;
  }

  .hero {
    padding: 60px 16px;
  }

  .hero-title-main {
    font-size: 2.2rem;
  }

  .hero-subpage {
    padding: 32px 16px 40px;
  }

  .hero-subpage-title {
    font-size: 1.6rem;
  }

  .content-section {
    padding: 40px 16px;
  }

  .content-section h2 {
    font-size: 1.8rem;
  }

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

  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }

  .character-card {
    flex-direction: column;
  }

  .character-card .char-img {
    width: 100%;
    height: 260px;
  }

  .cta-banner {
    padding: 60px 16px;
  }

  .cta-banner h2 {
    font-size: 1.6rem;
  }

  .game-info-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* === Responsive: 480px === */
@media (max-width: 480px) {
  .site-header nav {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .site-header nav a {
    font-size: 0.8rem;
    padding: 4px 8px;
  }

  .hero {
    padding: 40px 12px;
  }

  .hero-title-main {
    font-size: 1.6rem;
  }

  .hero-tagline {
    font-size: 0.95rem;
  }

  .hero-subtitle {
    font-size: 0.85rem;
  }

  .content-section {
    padding: 28px 12px;
  }

  .content-section h2 {
    font-size: 1.5rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .character-card .char-info h3 {
    font-size: 1.1rem;
  }

  .game-info-cards {
    grid-template-columns: 1fr;
  }

  .cta-btn,
  .header-cta {
    padding: 10px 28px;
    font-size: 0.9rem;
  }
}
