/* ===== SiNiSistar (哥特少女勇闯恶魔城) — Gothic Action Pixel Art Theme ===== */
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;600;700;900&family=Noto+Sans+SC:wght@300;400;500;700&display=swap');

:root {
  /* Light background (required) */
  --bg: #faf8f5;
  --bg-alt: #f3efe8;
  --bg-card: #ffffff;

  /* Gothic horror palette */
  --crimson: #8b1a2b;
  --crimson-dark: #5c0f1a;
  --crimson-light: #c0394b;
  --deep-purple: #3d1e3d;
  --charcoal: #2c2c2c;
  --charcoal-dark: #1a1a1a;
  --gold: #c9a84c;
  --gold-dark: #9c7e2e;
  --gold-light: #e8d48b;
  --silver: #b0a8a0;
  --text: #2c2c2c;
  --text-soft: #5c5450;
  --text-muted: #8c8478;
  --border: #d8d0c8;
  --border-light: #e8e0d8;
  --danger-red: #8b0000;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 4px 24px rgba(0, 0, 0, 0.12);

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

  /* Layout */
  --max-width: 1200px;
  --header-height: 64px;
  --radius: 8px;
  --radius-sm: 4px;
  --radius-lg: 12px;
}

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

/* ===== ACCESSIBLE HIDDEN ===== */
.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(--charcoal-dark);
  border-bottom: 3px solid var(--crimson);
  height: var(--header-height);
  display: flex;
  align-items: center;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}
.header-inner {
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
}
.header-logo:hover { color: var(--gold-light); }
.header-logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  object-fit: cover;
}
.header-nav { display: flex; gap: 4px; }
.header-nav a {
  color: var(--silver);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s;
}
.header-nav a:hover, .header-nav a.active { color: #fff; background: rgba(255,255,255,0.1); }
.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--crimson);
  color: #fff;
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.9rem;
  transition: all 0.2s;
}
.header-cta:hover { background: var(--crimson-light); color: #fff; transform: translateY(-1px); }
.header-cta::before { content: '⬇'; font-size: 0.85rem; }

/* ===== HERO SECTION ===== */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--charcoal-dark) 0%, #2a1020 40%, var(--deep-purple) 70%, var(--crimson-dark) 100%);
  padding: 60px 24px 80px;
  text-align: center;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(201, 168, 76, 0.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40px;
  background: linear-gradient(to top, var(--bg), transparent);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  max-width: var(--max-width);
  margin: 0 auto;
  z-index: 1;
}
.hero-img {
  width: 100%;
  max-width: 800px;
  height: auto;
  margin: 0 auto 24px;
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
  border: 2px solid rgba(201, 168, 76, 0.3);
}
.hero-title-main {
  font-family: var(--font-serif);
  font-size: 2.8rem;
  font-weight: 900;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  margin-bottom: 12px;
  line-height: 1.3;
}
.hero-tagline {
  font-size: 1.05rem;
  color: var(--silver);
  font-weight: 300;
  max-width: 600px;
  margin: 0 auto 20px;
  line-height: 1.7;
}

/* Sub-page hero (compact) */
.hero-subpage { padding: 40px 24px 48px; }
.hero-subpage-title { font-size: 2rem; font-weight: 700; }

/* ===== SECTION LAYOUT ===== */
.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 64px 24px;
}
.section-alt { background: var(--bg-alt); }
.section-no-padding { padding: 0; }
.section-title {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--charcoal);
  text-align: center;
  margin-bottom: 8px;
  position: relative;
}
.section-title::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--crimson), var(--gold));
  margin: 12px auto 0;
  border-radius: 2px;
}
.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 40px;
}
.section-title-group { margin-bottom: 48px; }
.section-title-group:last-child { margin-bottom: 0; }
.section-title-group-spaced { margin-top: 48px; }
.section-title-group .section-title { margin-bottom: 6px; }
.section-title-group .section-subtitle { margin-bottom: 0; }

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

/* ===== 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; }

/* ===== GAME INFO CARDS ===== */
.game-info-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 12px;
}
.game-info-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 20px 16px;
  text-align: center;
  box-shadow: var(--shadow);
  border-top: 3px solid var(--crimson);
  transition: transform 0.2s, box-shadow 0.2s;
}
.game-info-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.game-info-card .info-icon { font-size: 1.8rem; margin-bottom: 8px; }
.game-info-card .info-value {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--crimson);
}
.game-info-card .info-label { font-size: 0.8rem; color: var(--text-muted); margin-top: 2px; }
.game-info-desc {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 0;
}

/* ===== FEATURE CARDS ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 28px 22px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--crimson);
  transition: transform 0.2s, box-shadow 0.2s;
}
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.feature-card .feature-icon { font-size: 2rem; margin-bottom: 12px; }
.feature-card h3 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 8px;
}
.feature-card p {
  font-size: 0.9rem;
  color: var(--text-soft);
  line-height: 1.7;
}

/* ===== SCREENSHOT GALLERY ===== */
.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.screenshot-grid a {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s;
  cursor: pointer;
}
.screenshot-grid a:hover { transform: scale(1.03); }
.screenshot-grid img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

/* ===== LIGHTBOX ===== */
.lightbox {
  display: none;
  position: fixed;
  z-index: 2000;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
  cursor: pointer;
}
.lightbox.active { display: flex; }
.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: var(--radius);
  box-shadow: 0 4px 40px rgba(0, 0, 0, 0.6);
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  z-index: 2001;
}

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

/* ===== CTA BANNER (index only) ===== */
.cta-banner {
  text-align: center;
  padding: 48px 24px;
  background: linear-gradient(135deg, var(--charcoal-dark), var(--deep-purple));
  border-radius: var(--radius-lg);
  margin-top: 48px;
}
.cta-banner h2 {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}
.cta-banner p { color: var(--silver); margin-bottom: 24px; font-size: 0.95rem; }
.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--crimson);
  color: #fff;
  padding: 14px 36px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1.05rem;
  transition: all 0.25s;
  box-shadow: 0 4px 16px rgba(139, 26, 43, 0.4);
}
.cta-btn:hover { background: var(--crimson-light); color: #fff; transform: translateY(-2px); box-shadow: 0 6px 24px rgba(139, 26, 43, 0.5); }
.cta-btn::after { content: '→'; font-size: 1.1rem; }

/* ===== GUIDE PAGE ===== */
.guide-step {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--crimson);
  counter-increment: guide-step;
}
.guide-step h3::before {
  content: '#' counter(guide-step) ' ';
  color: var(--crimson);
  font-weight: 900;
}
.guide-steps-wrapper { counter-reset: guide-step; }
.guide-step h3 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 10px;
}
.guide-step p { font-size: 0.95rem; color: var(--text-soft); line-height: 1.75; }
.guide-intro { font-size: 0.95rem; color: var(--text-soft); line-height: 1.8; margin-bottom: 24px; }
.route-heading { font-family: var(--font-serif); font-size: 1.3rem; font-weight: 700; color: var(--deep-purple); margin-top: 32px; margin-bottom: 12px; }
.route-desc { font-size: 0.95rem; color: var(--text-soft); line-height: 1.75; margin-bottom: 16px; }
.tip-box {
  background: linear-gradient(135deg, #fdf5e6, #faf0dc);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: 20px 0;
  border-left: 4px solid var(--gold);
}
.tip-box strong { color: var(--gold-dark); }

/* ===== STORY PAGE ===== */
.chapter-title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--deep-purple);
  margin-top: 28px;
  margin-bottom: 10px;
}
.story-block {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--gold);
}

/* ===== CHARACTER CARDS ===== */
.char-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.char-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s;
}
.char-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.char-card-header {
  background: linear-gradient(135deg, var(--charcoal-dark), var(--deep-purple));
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.char-card-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold);
}
.char-card-header h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}
.char-card-header .char-role { font-size: 0.85rem; color: var(--silver); }
.char-card-body { padding: 20px; }
.char-card-body p { font-size: 0.9rem; color: var(--text-soft); line-height: 1.7; }
.char-traits {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}
.char-trait {
  font-size: 0.78rem;
  padding: 4px 10px;
  background: var(--bg-alt);
  border-radius: 20px;
  color: var(--crimson);
  font-weight: 500;
}

/* ===== ENEMY CARDS ===== */
.enemy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.enemy-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  box-shadow: var(--shadow);
  border-top: 3px solid var(--danger-red);
}
.enemy-card h4 {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  color: var(--danger-red);
  margin-bottom: 6px;
}
.enemy-card p { font-size: 0.85rem; color: var(--text-soft); line-height: 1.6; }

/* ===== FAQ ===== */
.faq-intro { color: var(--text-soft); margin-bottom: 32px; }
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { margin-bottom: 12px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.faq-question {
  background: var(--bg-card);
  padding: 18px 24px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--charcoal);
  border: none;
  width: 100%;
  text-align: left;
  transition: background 0.2s;
}
.faq-question:hover { background: var(--bg-alt); }
.faq-question::after { content: '+'; font-size: 1.2rem; color: var(--crimson); transition: transform 0.3s; font-weight: 300; }
.faq-item.open .faq-question::after { content: '−'; transform: rotate(180deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  background: var(--bg-card);
  border-top: 1px solid var(--border-light);
}
.faq-item.open .faq-answer { max-height: 1200px; }
.faq-answer-inner { padding: 20px 24px; font-size: 0.95rem; color: var(--text-soft); line-height: 1.8; }

/* ===== SYSTEM REQUIREMENTS TABLE ===== */
.sys-reqs-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 0.9rem;
}
.sys-reqs-table th, .sys-reqs-table td {
  padding: 10px 14px;
  border: 1px solid var(--border-light);
  text-align: left;
}
.sys-reqs-table th {
  background: linear-gradient(135deg, var(--charcoal-dark), var(--deep-purple));
  color: #fff;
  font-weight: 600;
  font-size: 0.85rem;
}
.sys-reqs-table tr:nth-child(even) { background: var(--bg-alt); }
.table-scroll { overflow-x: auto; }
.sys-reqs-h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--deep-purple);
  margin-top: 24px;
  margin-bottom: 12px;
}
.sys-reqs-h3:first-of-type { margin-top: 8px; }
.sys-note { margin-top: 20px; color: var(--text-muted); font-size: 0.9rem; }
.td-highlight { color: var(--crimson); font-weight: 700; }
.faq-note { margin-top: 16px; }

/* ===== CONTENT LISTS ===== */
.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-crimson { color: var(--crimson); }
.strong-red { color: var(--danger-red); }
.strong-gold { color: var(--gold-dark); }
.strong-muted { color: var(--text-muted); }
.strong-purple { color: var(--deep-purple); }

/* ===== SECTION SUBHEADING (characters) ===== */
.section-subheading {
  text-align: center;
  margin: 40px 0 24px;
}

/* ===== FOOTER ===== */
footer {
  background: var(--charcoal-dark);
  color: var(--silver);
  text-align: center;
  padding: 24px;
  font-size: 0.85rem;
  border-top: 3px solid var(--crimson);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero-title-main { font-size: 2rem; }
  .hero-subpage-title { font-size: 1.5rem; }
  .section-title { font-size: 1.6rem; }
  .content-section h2 { font-size: 1.8rem; }
  .game-info-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: 1fr; }
  .screenshot-grid { grid-template-columns: repeat(2, 1fr); }
  .reviews-grid { grid-template-columns: 1fr; }
  .char-grid { grid-template-columns: 1fr; }
  .enemy-grid { grid-template-columns: repeat(2, 1fr); }
  .header-nav { gap: 0; }
  .header-nav a { padding: 8px 10px; font-size: 0.82rem; }
  .header-inner { padding: 0 16px; }
}

@media (max-width: 480px) {
  .hero-title-main { font-size: 1.6rem; }
  .hero-subpage-title { font-size: 1.3rem; }
  .hero { padding: 40px 16px 60px; }
  .hero-subpage { padding: 30px 16px 36px; }
  .section { padding: 40px 16px; }
  .game-info-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .screenshot-grid { grid-template-columns: 1fr; }
  .enemy-grid { grid-template-columns: 1fr; }
  .cta-banner { padding: 32px 16px; }
  .cta-banner h2 { font-size: 1.4rem; }
  .header-inner { padding: 0 12px; }
  .header-cta { padding: 6px 14px; font-size: 0.82rem; }
  .header-logo { font-size: 0.95rem; }
}
