/* ============================================================
   Not a Succubus 不是魅魔 — 魅魔学院风格主题
   Succubus Academy Theme — Light Mode
   ============================================================ */
@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');

/* ========== CSS VARIABLES ========== */
:root {
  /* Primary palette — 魅魔学院 */
  --purple: #8E24AA;
  --purple-dark: #6A1B9A;
  --purple-light: #CE93D8;
  --purple-bg: #F3E5F5;
  --pink: #F06292;
  --pink-dark: #E91E63;
  --pink-light: #F8BBD0;
  --pink-bg: #FCE4EC;
  /* Neutrals */
  --ivory: #FFFFF0;
  --ivory-warm: #FFFAF0;
  --ivory-cool: #F5F0FF;
  --white: #FFFFFF;
  --black: #1A1A1A;
  --black-soft: #2D2D2D;
  --gray-100: #F5F5F5;
  --gray-200: #EEEEEE;
  --gray-300: #E0E0E0;
  --gray-500: #9E9E9E;
  --gray-700: #616161;
  --gray-900: #212121;
  /* Semantic */
  --bg: var(--ivory);
  --bg-warm: var(--ivory-warm);
  --bg-alt: var(--purple-bg);
  --text: var(--black-soft);
  --text-soft: var(--gray-700);
  --text-muted: var(--gray-500);
  --heading: var(--black);
  --accent: var(--purple);
  --accent-dk: var(--purple-dark);
  --accent-alt: var(--pink);
  --accent-alt-dk: var(--pink-dark);
  --header-bg: var(--black);
  --header-text: var(--ivory);
  --card-bg: var(--white);
  --card-border: var(--gray-300);
  --card-shadow: 0 2px 12px rgba(142, 36, 170, 0.08);
  --card-hover-shadow: 0 6px 24px rgba(142, 36, 170, 0.15);
  --btn-primary: var(--pink);
  --btn-primary-hover: var(--pink-dark);
  --btn-radius: 6px;
  --transition: 0.25s ease;
  /* Typography */
  --font-serif: 'Noto Serif SC', 'Songti SC', 'SimSun', serif;
  --font-sans: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  /* Layout */
  --max-width: 1200px;
  --section-pad: 64px 24px;
  --header-height: 64px;
}

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

/* ========== SR-ONLY (accessibility) ========== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ========== HEADER & NAV ========== */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--header-bg);
  border-bottom: 3px solid var(--accent);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: var(--header-height);
}
.logo {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--ivory);
}
.logo span { color: var(--pink); }
.logo:hover { color: var(--ivory); }
nav { display: flex; align-items: center; gap: 28px; }
nav a {
  color: var(--gray-300);
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
  padding: 4px 0;
}
nav a:hover, nav a.active { color: var(--pink); }
nav a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--pink);
  border-radius: 1px;
}
.nav-cta {
  background: var(--pink);
  color: var(--white) !important;
  padding: 8px 20px !important;
  border-radius: var(--btn-radius);
  font-weight: 600;
  transition: background var(--transition);
}
.nav-cta:hover { background: var(--pink-dark); }
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ivory);
  border-radius: 2px;
  transition: all var(--transition);
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* ========== HERO ========== */
.hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 520px;
  padding: 60px 24px 80px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,26,26,0.82) 0%, rgba(106,27,154,0.65) 100%);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 60%, rgba(240,98,146,0.15) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 40%, rgba(142,36,170,0.2) 0%, transparent 50%);
  z-index: 1;
}
.hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
}
.hero-title-main {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 900;
  color: var(--ivory);
  text-shadow: 0 2px 12px rgba(142,36,170,0.5);
  margin-bottom: 12px;
  line-height: 1.3;
  letter-spacing: 0.04em;
}
.hero-title-main .en-subtitle {
  display: block;
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--pink-light);
  margin-top: 6px;
  letter-spacing: 0.08em;
  text-shadow: none;
}
.hero-tagline {
  color: var(--gray-300);
  font-size: 1.1rem;
  margin-top: 16px;
  line-height: 1.8;
}

/* Page-specific hero backgrounds */
.hero-home .hero-bg { background-image: url('../img/header.jpg'); }
.hero-story .hero-bg { background-image: url('../img/screenshot-03.jpg'); }
.hero-characters .hero-bg { background-image: url('../img/screenshot-01.jpg'); }
.hero-guide .hero-bg { background-image: url('../img/screenshot-02.jpg'); }
.hero-faq .hero-bg { background-image: url('../img/screenshot-04.jpg'); }

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

/* ========== CONTENT SECTIONS ========== */
.content-section {
  padding: var(--section-pad);
  max-width: var(--max-width);
  margin: 0 auto;
}
.content-section h2 {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 12px;
}
.section-alt { background: var(--bg-warm); }

/* Section heading (centered) */
.section-heading {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  color: var(--accent-dk);
  margin-bottom: 8px;
}
.section-heading-alt {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  color: var(--accent-dk);
  margin-bottom: 20px;
}
.section-subtext {
  text-align: center;
  color: var(--text-soft);
  margin-bottom: 24px;
  font-size: 1.05rem;
}

/* ========== GAME INTRO / OVERVIEW ========== */
.game-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 48px;
}
.game-intro p {
  color: var(--text-soft);
  font-size: 1.05rem;
  line-height: 1.85;
  margin-bottom: 12px;
}
.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 row */
.game-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin-bottom: 12px;
}
.game-info-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  padding: 20px 16px;
  text-align: center;
  box-shadow: var(--card-shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.game-info-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--card-hover-shadow);
}
.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.5rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 4px;
}
.game-info-card .info-label { color: var(--text-muted); font-size: 0.85rem; }
.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(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 32px;
}
.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-left: 4px solid var(--accent-alt);
  border-radius: 10px;
  padding: 28px 24px;
  box-shadow: var(--card-shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-hover-shadow);
}
.feature-card .fc-icon { font-size: 2.2rem; margin-bottom: 12px; }
.feature-card h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 8px;
}
.feature-card p {
  color: var(--text-soft);
  font-size: 0.92rem;
  line-height: 1.7;
}

/* ========== SCREENSHOT GALLERY ========== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 32px;
}
.gallery-grid img {
  width: 100%;
  border-radius: 8px;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
  border: 2px solid var(--gray-200);
}
.gallery-grid img:hover {
  transform: scale(1.03);
  box-shadow: var(--card-hover-shadow);
  border-color: var(--accent);
}

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

/* ========== REVIEWS ========== */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 32px;
}
.review-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 28px 24px;
  box-shadow: var(--card-shadow);
  position: relative;
}
.review-card::before {
  content: '\201C';
  font-family: var(--font-serif);
  font-size: 4rem;
  color: var(--accent);
  opacity: 0.2;
  position: absolute;
  top: 8px;
  left: 16px;
  line-height: 1;
}
.review-card p {
  color: var(--text-soft);
  font-size: 0.95rem;
  line-height: 1.8;
  position: relative;
  z-index: 1;
}
.review-card .reviewer {
  margin-top: 16px;
  font-weight: 600;
  color: var(--accent);
  font-size: 0.9rem;
}
.review-stars {
  color: var(--pink);
  margin-bottom: 8px;
}

/* ========== CTA BANNER (index only) ========== */
.cta-banner {
  background: linear-gradient(135deg, var(--purple-dark) 0%, var(--purple) 50%, var(--pink-dark) 100%);
  color: var(--ivory);
  text-align: center;
  padding: 64px 24px;
}
.cta-banner h2 {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--ivory);
  margin-bottom: 12px;
}
.cta-banner p {
  font-size: 1.05rem;
  color: var(--pink-light);
  margin-bottom: 28px;
}
.cta-banner .btn-primary {
  display: inline-block;
  background: var(--pink);
  color: var(--white);
  padding: 14px 42px;
  border-radius: var(--btn-radius);
  font-size: 1.1rem;
  font-weight: 600;
  transition: all var(--transition);
  box-shadow: 0 4px 16px rgba(240,98,146,0.4);
}
.cta-banner .btn-primary:hover {
  background: var(--white);
  color: var(--pink-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(240,98,146,0.6);
}

/* ========== GUIDE PAGE ========== */
.guide-section { margin-bottom: 40px; }
.guide-section h3 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent-dk);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--purple-bg);
}
.guide-steps-wrapper { counter-reset: guide-step; }
.guide-step {
  display: flex;
  gap: 20px;
  margin-bottom: 24px;
  padding: 20px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  box-shadow: var(--card-shadow);
}
.guide-step .step-num {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: var(--accent);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  counter-increment: guide-step;
}
.guide-step .step-num::before { content: counter(guide-step); }
.guide-step .step-content h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 6px;
}
.guide-step .step-content p {
  color: var(--text-soft);
  font-size: 0.92rem;
  line-height: 1.7;
}
.guide-tip {
  background: var(--purple-bg);
  border-left: 4px solid var(--accent);
  padding: 16px 20px;
  border-radius: 0 8px 8px 0;
  margin: 20px 0;
}
.guide-tip strong { color: var(--accent-dk); }
.guide-intro { font-size: 1.02rem; color: var(--text-soft); line-height: 1.8; margin-bottom: 20px; }
.route-desc { font-size: 0.95rem; color: var(--text-soft); line-height: 1.8; margin-bottom: 16px; }
.route-heading { font-family: var(--font-serif); font-size: 1.25rem; color: var(--accent-dk); margin: 28px 0 12px; font-weight: 700; }

/* ========== STORY PAGE ========== */
.story-block {
  margin-bottom: 36px;
  padding: 24px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  box-shadow: var(--card-shadow);
}
.story-block h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent-dk);
  margin-bottom: 12px;
}
.story-block p {
  color: var(--text-soft);
  font-size: 0.95rem;
  line-height: 1.85;
  margin-bottom: 10px;
}
.chapter-title { font-size: 1.05rem; font-weight: 600; color: var(--accent) !important; margin-top: 20px; }

/* ========== CHARACTERS PAGE ========== */
.chars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 24px;
}
.char-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-left: 4px solid var(--accent-alt);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.char-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-hover-shadow);
}
.char-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}
.char-card-body { padding: 20px; }
.char-card-body h4 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 4px;
}
.char-card-body .char-role {
  display: inline-block;
  background: var(--pink-bg);
  color: var(--pink-dark);
  padding: 2px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 10px;
}
.char-card-body p {
  color: var(--text-soft);
  font-size: 0.88rem;
  line-height: 1.65;
}
.section-subheading {
  text-align: center;
  margin: 40px 0 24px;
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent-dk);
}
.section-title-group-spaced { margin-top: 48px; }

/* ========== FAQ ACCORDION ========== */
.faq-intro {
  color: var(--text-soft);
  margin-bottom: 32px;
}
.faq-list { margin-top: 16px; }
.faq-item {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  margin-bottom: 12px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
}
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 18px 24px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  color: var(--heading);
  text-align: left;
  transition: background var(--transition);
}
.faq-question:hover { background: var(--purple-bg); }
.faq-question .faq-icon {
  flex-shrink: 0;
  font-size: 1.2rem;
  color: var(--accent);
  transition: transform var(--transition);
}
.faq-item.active .faq-question .faq-icon { transform: rotate(45deg); }
.faq-answer {
  display: none;
  padding: 0 24px 20px;
  font-size: 0.93rem;
  color: var(--text-soft);
  line-height: 1.8;
}
.faq-item.active .faq-answer { display: block; }
.faq-note { margin-top: 16px; }
.sys-note {
  margin-top: 20px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ========== TABLE ========== */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 0.9rem;
}
th, td {
  padding: 10px 16px;
  text-align: left;
  border-bottom: 1px solid var(--gray-300);
}
th {
  background: var(--purple-bg);
  font-weight: 600;
  color: var(--accent-dk);
}
.td-highlight { color: var(--pink-dark); font-weight: 700; }
.table-scroll { overflow-x: auto; }
.sys-reqs-h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent-dk);
  margin-top: 24px;
  margin-bottom: 12px;
}
.sys-reqs-h3:first-of-type { margin-top: 8px; }

/* ========== CONTENT LIST CLASSES ========== */
.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 ========== */
.strong-pink { color: var(--pink-dark); }
.strong-red { color: #D32F2F; }
.strong-gold { color: #F9A825; }
.strong-muted { color: var(--text-muted); }
.strong-purple { color: var(--purple); }

/* ========== FOOTER ========== */
footer {
  background: var(--header-bg);
  color: var(--gray-500);
  text-align: center;
  padding: 28px 24px;
  font-size: 0.85rem;
  border-top: 3px solid var(--accent);
}

/* ========== DECORATIVE MOTIFS ========== */
/* Subtle succubus wing decorative divider */
.section-divider {
  text-align: center;
  margin: 12px 0;
  color: var(--accent);
  font-size: 1.4rem;
  opacity: 0.5;
  letter-spacing: 12px;
}

/* ========== RESPONSIVE 768px ========== */
@media (max-width: 768px) {
  :root { --section-pad: 48px 20px; }
  .hero { min-height: 400px; padding: 40px 20px 60px; }
  .hero-title-main { font-size: 2.2rem; }
  .hero-title-main .en-subtitle { font-size: 1rem; }
  .hero-subpage-title { font-size: 1.6rem !important; }
  .content-section h2 { font-size: 1.7rem; }
  .section-heading { font-size: 1.6rem; }
  .section-heading-alt { font-size: 1.6rem; }
  .features-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
  .chars-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
  .game-info-grid { grid-template-columns: repeat(2, 1fr); }
  .reviews-grid { grid-template-columns: 1fr; }
  .cta-banner h2 { font-size: 1.6rem; }
  .guide-step { flex-direction: column; gap: 12px; }
  .hamburger { display: flex; }
  nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--header-bg);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    z-index: 1000;
  }
  nav.active { display: flex; }
  nav a { font-size: 1.2rem; }
}

/* ========== RESPONSIVE 480px ========== */
@media (max-width: 480px) {
  :root { --section-pad: 40px 16px; font-size: 15px; }
  .hero { min-height: 340px; padding: 32px 16px 48px; }
  .hero-title-main { font-size: 1.7rem; }
  .hero-tagline { font-size: 0.95rem; }
  .hero-subpage-title { font-size: 1.35rem !important; }
  .game-info-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .chars-grid { grid-template-columns: 1fr; }
  .cta-banner { padding: 48px 16px; }
  .cta-banner h2 { font-size: 1.3rem; }
  .cta-banner .btn-primary { padding: 12px 32px; font-size: 1rem; }
  .faq-question { padding: 14px 16px; font-size: 0.93rem; }
}

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