/* ============================================================
   House Party 中文官网 — 霓虹派对主题
   色彩方案: 霓虹蓝 #00BCD4 | 派对紫 #9C27B0 | 霓虹粉 #FF4081 | 深夜黑点缀
   ============================================================ */

/* ========== FONTS ========== */
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;700;900&family=Noto+Sans+SC:wght@300;400;500;700&display=swap');

/* ========== CSS VARIABLES ========== */
:root {
  /* Neon Party Palette */
  --neon-cyan: #00BCD4;
  --party-purple: #9C27B0;
  --neon-pink: #FF4081;
  --deep-night: #0D0221;
  --dark-purple: #1a0030;
  --midnight: #12002C;

  /* Light Theme */
  --bg: #fefcfb;
  --bg-warm: #fdf5f7;
  --bg-card: #ffffff;
  --text: #1a1a2e;
  --text-soft: #555566;
  --text-muted: #888899;

  /* Accent */
  --accent: var(--neon-cyan);
  --accent-dk: var(--party-purple);
  --pink-fierce: var(--neon-pink);
  --accent-gold: #FFB300;
  --danger-red: #E53935;
  --uniform-navy: #1A237E;

  /* Border / Divider */
  --border: #e8e0e8;
  --border-accent: var(--neon-cyan);

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --shadow-neon: 0 0 20px rgba(0,188,212,0.3);

  /* Fonts */
  --font-sans: 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
  --font-serif: 'Noto Serif SC', 'SimSun', serif;

  /* Spacing */
  --header-h: 64px;
  --max-width: 1200px;
}

/* ========== RESET ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--party-purple); }

/* ========== UTILITY: 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 {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--deep-night);
  border-bottom: 3px solid var(--neon-cyan);
  box-shadow: var(--shadow-md);
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: var(--header-h);
}
.header-logo {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}
.header-logo img { width: 32px; height: 32px; }
.header-nav { display: flex; gap: 24px; align-items: center; }
.header-nav a {
  color: #ccc;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}
.header-nav a:hover,
.header-nav a.active { color: var(--neon-cyan); }
.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  background: linear-gradient(135deg, var(--neon-pink), var(--party-purple));
  color: #fff !important;
  border-radius: 24px;
  font-weight: 700;
  font-size: 0.9rem;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(255,64,129,0.4);
}
.btn-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(255,64,129,0.6);
  color: #fff !important;
}

/* ========== HERO ========== */
.hero {
  background: linear-gradient(135deg, var(--dark-purple) 0%, var(--midnight) 50%, var(--deep-night) 100%);
  padding: 60px 24px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(0,188,212,0.15) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 50%, rgba(255,64,129,0.12) 0%, transparent 60%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}
.hero-title-main {
  font-family: var(--font-serif);
  font-size: 2.8rem;
  font-weight: 900;
  color: #fff;
  text-shadow: 0 0 30px rgba(0,188,212,0.5), 0 2px 8px rgba(0,0,0,0.4);
  margin-bottom: 12px;
  line-height: 1.3;
}
.hero-tagline {
  color: rgba(255,255,255,0.75);
  font-size: 1.1rem;
  margin-top: 8px;
  font-weight: 300;
}

/* ========== HERO SUBPAGE ========== */
.hero-subpage {
  padding: 40px 24px 48px;
}
.hero-subpage-title {
  font-size: 2rem;
  font-weight: 700;
}

/* ========== CONTENT SECTION ========== */
.content-section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 64px 24px;
}
.section-alt {
  background: var(--bg-warm);
}
.section-heading {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  color: var(--accent-dk);
  margin-bottom: 8px;
}
.section-subtext {
  text-align: center;
  color: var(--text-soft);
  margin-bottom: 24px;
}
.section-heading-alt {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  color: var(--accent-dk);
  margin-bottom: 20px;
}

/* ========== CONTENT SECTION H2 (subpages) ========== */
.content-section h2 {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}

/* ========== INFO CARDS (index) ========== */
.info-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 40px;
}
.info-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px 16px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}
.info-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.info-card .info-icon {
  font-size: 2rem;
  margin-bottom: 8px;
}
.info-card .info-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.info-card .info-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent-dk);
}
.game-info-desc {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 0;
}

/* ========== PROSE CENTERED ========== */
.prose-centered {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 32px;
  color: var(--text-soft);
  line-height: 1.85;
  font-size: 0.95rem;
}
.prose-centered:last-of-type {
  margin-bottom: 40px;
}

/* ========== FEATURE CARDS (index) ========== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
}
.feature-card {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 28px 20px;
  border-left: 4px solid var(--neon-cyan);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}
.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.feature-card h4 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--accent-dk);
  margin-bottom: 8px;
}
.feature-card p {
  color: var(--text-soft);
  font-size: 0.9rem;
  line-height: 1.6;
}
.feature-card .feature-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

/* ========== SCREENSHOT GALLERY ========== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 32px;
}
.gallery-item {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
.gallery-item:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-lg);
}
.gallery-item img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* ========== REVIEWS (index) ========== */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 32px;
}
.review-card {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}
.review-card .review-stars {
  color: var(--accent-gold);
  font-size: 1.1rem;
  margin-bottom: 10px;
}
.review-card .review-text {
  color: var(--text-soft);
  font-style: italic;
  line-height: 1.7;
  margin-bottom: 12px;
}
.review-card .review-author {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ========== CTA BANNER (index only) ========== */
.cta-banner {
  background: linear-gradient(135deg, var(--party-purple) 0%, var(--neon-pink) 100%);
  padding: 48px 24px;
  text-align: center;
  color: #fff;
}
.cta-banner h3 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  margin-bottom: 12px;
}
.cta-banner p {
  color: rgba(255,255,255,0.85);
  margin-bottom: 24px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 36px;
  background: #fff;
  color: var(--party-purple) !important;
  border-radius: 30px;
  font-weight: 700;
  font-size: 1.05rem;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}
.btn-download:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 28px rgba(0,0,0,0.3);
}

/* ========== GUIDE PAGE ========== */
.guide-intro {
  color: var(--text-soft);
  line-height: 1.8;
  margin-bottom: 24px;
}
.guide-steps-wrapper {
  counter-reset: guide-step;
}
.guide-step {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 20px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--neon-cyan);
}
.route-heading {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--party-purple);
  margin: 24px 0 12px;
  border-bottom: 2px dashed var(--border);
  padding-bottom: 8px;
}
.route-desc {
  color: var(--text-soft);
  line-height: 1.75;
  margin-bottom: 16px;
}
.tips-box {
  background: linear-gradient(135deg, rgba(0,188,212,0.06), rgba(156,39,176,0.06));
  border: 1px solid var(--neon-cyan);
  border-radius: 8px;
  padding: 16px 20px;
  margin: 16px 0;
}
.tips-box strong { color: var(--neon-cyan); }

/* ========== STORY PAGE ========== */
.chapter-title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--party-purple);
  margin: 28px 0 10px;
}

/* ========== CHARACTERS PAGE ========== */
.char-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 32px;
}
.char-card {
  background: var(--bg-card);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s;
}
.char-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.char-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.char-info {
  padding: 16px;
}
.char-info h4 {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--accent-dk);
  margin-bottom: 4px;
}
.char-info .char-role {
  font-size: 0.8rem;
  color: var(--neon-pink);
  font-weight: 600;
  margin-bottom: 8px;
}
.char-info .char-desc {
  font-size: 0.85rem;
  color: var(--text-soft);
  line-height: 1.55;
}
.char-traits {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 10px;
}
.char-tag {
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: 10px;
  background: rgba(0,188,212,0.1);
  color: var(--neon-cyan);
  font-weight: 500;
}
.section-subheading {
  text-align: center;
  margin: 40px 0 24px;
}
.section-title-group-spaced {
  margin-top: 48px;
}

/* ========== FAQ PAGE ========== */
.faq-intro {
  color: var(--text-soft);
  margin-bottom: 32px;
}
.faq-item {
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 12px;
  overflow: hidden;
  background: var(--bg-card);
}
.faq-question {
  padding: 16px 20px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text);
  transition: background 0.2s;
}
.faq-question:hover { background: rgba(0,188,212,0.04); }
.faq-answer {
  padding: 0 20px 20px;
  color: var(--text-soft);
  line-height: 1.75;
  display: none;
}
.faq-item.open .faq-answer { display: block; }
.faq-item.open .faq-question { color: var(--neon-cyan); }
.sys-reqs-h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--uniform-navy);
  margin-top: 24px;
  margin-bottom: 12px;
}
.sys-reqs-h3:first-of-type {
  margin-top: 8px;
}
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.table-scroll table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.table-scroll th,
.table-scroll td {
  padding: 10px 14px;
  border: 1px solid var(--border);
  text-align: left;
}
.table-scroll th {
  background: rgba(0,188,212,0.08);
  font-weight: 600;
  color: var(--accent-dk);
  white-space: nowrap;
}
.table-scroll td {
  color: var(--text-soft);
}
.faq-note {
  margin-top: 16px;
}
.sys-note {
  margin-top: 20px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ========== CONTENT LIST ========== */
.content-list {
  list-style: disc;
  padding-left: 20px;
}
.content-list-num {
  list-style: decimal;
  padding-left: 24px;
}
.content-li {
  margin-bottom: 5px;
  color: var(--text-soft);
}
.content-li-sm {
  margin-bottom: 4px;
  color: var(--text-soft);
}
.content-li-md {
  margin-bottom: 8px;
  color: var(--text-soft);
}
.content-li-lg {
  margin-bottom: 10px;
  color: var(--text-soft);
}

/* ========== COLORED STRONG TAGS ========== */
.strong-pink { color: var(--pink-fierce); }
.strong-red { color: var(--danger-red); }
.strong-gold { color: var(--accent-gold); }
.strong-muted { color: var(--text-muted); }
.strong-navy { color: var(--uniform-navy); }

/* ========== TABLE HIGHLIGHT ========== */
.td-highlight {
  color: var(--pink-fierce);
  font-weight: 700;
}

/* ========== ZERO-PADDING SECTION ========== */
.section-no-padding {
  padding: 0;
}

/* ========== FOOTER ========== */
.site-footer {
  background: var(--deep-night);
  padding: 24px;
  text-align: center;
}
.site-footer p {
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
}

/* ========== LIGHTBOX (JS driven) ========== */
.lightbox-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.9);
  z-index: 9999;
  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 60px rgba(0,188,212,0.4);
}

/* ========== RESPONSIVE: 768px ========== */
@media (max-width: 768px) {
  .header-nav { gap: 12px; }
  .header-nav a { font-size: 0.8rem; }
  .hero-title-main { font-size: 2rem; }
  .hero-subpage-title { font-size: 1.6rem; }
  .content-section { padding: 40px 16px; }
  .content-section h2 { font-size: 1.6rem; }
  .info-cards { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .reviews-grid { grid-template-columns: 1fr; }
  .char-grid { grid-template-columns: repeat(2, 1fr); }
  .section-heading { font-size: 1.6rem; }
  .section-heading-alt { font-size: 1.6rem; }
}

/* ========== RESPONSIVE: 480px ========== */
@media (max-width: 480px) {
  .header-inner { padding: 0 12px; }
  .header-logo { font-size: 1rem; }
  .header-nav { gap: 8px; }
  .header-nav a { font-size: 0.75rem; }
  .btn-cta { padding: 6px 14px; font-size: 0.78rem; }
  .hero-title-main { font-size: 1.6rem; }
  .hero-subpage-title { font-size: 1.3rem; }
  .hero { padding: 40px 16px 56px; }
  .hero-subpage { padding: 30px 16px 36px; }
  .content-section { padding: 32px 12px; }
  .content-section h2 { font-size: 1.3rem; }
  .info-cards { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .char-grid { grid-template-columns: 1fr; }
  .section-heading { font-size: 1.4rem; }
  .section-heading-alt { font-size: 1.4rem; }
}
