/* ============================================================
   逆兔女郎 (Reverse Bunny Girl) — Casino Reverse Bunny Theme
   Black latex blacks, bunny-ear pinks, casino-floor motifs
   Light neon background | 5-page static site
   ============================================================ */

@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 {
  /* Core palette */
  --bg:             #fdf6fc;
  --bg-warm:        #fef9ff;
  --bg-card:        #ffffff;
  --text:           #1a1a1a;
  --text-soft:      #555555;
  --text-muted:     #888888;

  /* Accent — bunny-ear pinks */
  --pink-hot:       #ff1493;
  --pink-bunny:     #ff69b4;
  --pink-soft:      #ffb6c1;
  --pink-glow:      #ff85c0;

  /* Black latex */
  --black-latex:    #0d0d0d;
  --black-warm:     #1a1a1a;
  --black-soft:     #2a2a2a;

  /* Neon / Casino */
  --neon-cyan:      #00f5ff;
  --neon-purple:    #b44dff;
  --neon-gold:      #ffd700;
  --neon-green:     #39ff14;

  /* Cards and suits */
  --heart:          #ff1493;
  --diamond:        #ff69b4;
  --club:           #b44dff;
  --spade:          #1a1a1a;

  /* Semantic */
  --border:         #e8d5e8;
  --shadow:         0 4px 20px rgba(255, 105, 180, 0.10);
  --shadow-lg:      0 8px 40px rgba(255, 20, 147, 0.12);
  --radius:         12px;
  --radius-lg:      20px;

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

  /* Layout */
  --max-width:      1100px;
  --header-height:  70px;
}

/* ========== RESET & BASE ========== */
*, *::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.8;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Casino-floor diamond pattern over light bg */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 30%, rgba(255,105,180,0.04) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(180,77,255,0.04) 0%, transparent 50%),
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 30px,
      rgba(255,105,180,0.03) 30px,
      rgba(255,105,180,0.03) 31px
    );
}

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

/* ========== HEADER ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--black-latex);
  border-bottom: 3px solid var(--pink-bunny);
  box-shadow: 0 2px 20px rgba(255,105,180,0.15);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

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

.site-logo .logo-icon {
  font-size: 28px;
  filter: drop-shadow(0 0 6px var(--pink-bunny));
}

.site-logo .logo-text {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--pink-bunny);
  letter-spacing: 2px;
  text-shadow: 0 0 12px rgba(255,105,180,0.4);
}

/* Header navigation */
.header-nav { display: flex; align-items: center; gap: 20px; }

.header-nav a {
  color: #cccccc;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 6px;
  transition: all 0.25s;
  position: relative;
}

.header-nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--pink-bunny);
  transition: width 0.25s;
}

.header-nav a:hover,
.header-nav a.active {
  color: var(--pink-bunny);
}

.header-nav a:hover::after,
.header-nav a.active::after {
  width: 70%;
}

/* CTA button in header */
.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, var(--pink-hot), var(--pink-bunny));
  color: #ffffff;
  padding: 8px 22px;
  border-radius: 25px;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  box-shadow: 0 0 20px rgba(255,20,147,0.35), 0 4px 12px rgba(255,20,147,0.2);
  transition: all 0.3s;
  border: 2px solid transparent;
  white-space: nowrap;
}

.header-cta:hover {
  box-shadow: 0 0 35px rgba(255,20,147,0.55), 0 6px 20px rgba(255,20,147,0.3);
  transform: translateY(-2px);
  border-color: var(--pink-soft);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--pink-bunny);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ========== HERO SECTION ========== */
.hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 420px;
  background: var(--black-latex);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.5;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(13,13,13,0.7) 0%,
    rgba(13,13,13,0.3) 50%,
    rgba(13,13,13,0.85) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 40px 20px;
  max-width: 700px;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 900;
  color: var(--pink-bunny);
  text-shadow: 0 0 30px rgba(255,105,180,0.6), 0 2px 4px rgba(0,0,0,0.5);
  margin-bottom: 12px;
  letter-spacing: 4px;
}

.hero-subtitle {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--pink-soft);
  margin-bottom: 6px;
  text-shadow: 0 0 10px rgba(255,105,180,0.3);
}

.hero-tagline {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: rgba(255,255,255,0.7);
  font-weight: 600;
}

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

/* ========== MAIN CONTENT ========== */
main {
  position: relative;
  z-index: 1;
}

.content-section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 60px 20px;
}

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

.content-section h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--black-warm);
  margin: 30px 0 10px;
}

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

/* ========== SECTION ALTERNATING BG ========== */
.section-dark {
  background: var(--black-latex);
  color: #ffffff;
}

.section-dark .content-section h2,
.section-dark .content-section h3 {
  color: var(--pink-bunny);
}

.section-dark .content-section p {
  color: #cccccc;
}

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

.card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--pink-bunny);
  transition: all 0.3s;
  position: relative;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

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

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

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

/* Card variation: diamond suit accent */
.card-diamond { border-left-color: var(--diamond); }
.card-heart   { border-left-color: var(--heart); }
.card-club    { border-left-color: var(--club); }
.card-spade   { border-left-color: var(--spade); }

/* ========== SCREENSHOT GALLERY ========== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 32px;
}

.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: all 0.3s;
  position: relative;
}

.gallery-item:hover {
  transform: scale(1.03);
  box-shadow: 0 0 25px rgba(255,105,180,0.3);
}

.gallery-item::after {
  content: '♢';
  position: absolute;
  top: 10px;
  right: 14px;
  font-size: 20px;
  color: var(--pink-bunny);
  opacity: 0.8;
  text-shadow: 0 0 8px rgba(255,105,180,0.5);
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
}

/* ========== LIGHTBOX ========== */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(13,13,13,0.95);
  align-items: center;
  justify-content: center;
}

.lightbox.active { display: flex; }

.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: var(--radius);
  box-shadow: 0 0 40px rgba(255,105,180,0.3);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 2rem;
  color: var(--pink-bunny);
  cursor: pointer;
  background: none;
  border: none;
  z-index: 2001;
}

/* ========== CTA BANNER (index only) ========== */
.cta-banner {
  background: linear-gradient(135deg, var(--black-latex), #1a0a2e);
  text-align: center;
  padding: 50px 20px;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 50%, rgba(255,105,180,0.1) 0%, transparent 50%),
    radial-gradient(circle at 70% 50%, rgba(180,77,255,0.1) 0%, transparent 50%);
  pointer-events: none;
}

.cta-banner h2 {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 900;
  color: var(--pink-bunny);
  margin-bottom: 10px;
  text-shadow: 0 0 20px rgba(255,105,180,0.4);
}

.cta-banner p {
  color: var(--pink-soft);
  font-size: 1.1rem;
  margin-bottom: 30px;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--pink-hot), var(--neon-purple));
  color: #ffffff;
  padding: 14px 48px;
  border-radius: 30px;
  font-size: 1.2rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 0 30px rgba(255,20,147,0.4);
  transition: all 0.3s;
}

.cta-btn:hover {
  box-shadow: 0 0 50px rgba(255,20,147,0.6);
  transform: translateY(-3px);
}

/* ========== GAME INFO SECTION ========== */
.game-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 32px;
}

.game-info-item {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  box-shadow: var(--shadow);
  border-top: 3px solid var(--pink-bunny);
}

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

.game-info-item .info-value {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}

/* ========== REVIEW CARDS ========== */
.review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 32px;
}

.review-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
  position: relative;
}

.review-card::before {
  content: '"';
  position: absolute;
  top: 8px;
  left: 16px;
  font-family: var(--font-serif);
  font-size: 4rem;
  color: var(--pink-soft);
  opacity: 0.3;
  line-height: 1;
}

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

.review-card .review-author {
  font-size: 0.85rem;
  color: var(--pink-bunny);
  font-weight: 600;
}

/* ========== CHARACTER CARDS ========== */
.char-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
  margin-top: 32px;
}

.char-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s;
}

.char-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.char-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
}

.char-info {
  padding: 20px;
}

.char-info h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 4px 0;
}

.char-info .char-role {
  font-size: 0.85rem;
  color: var(--pink-bunny);
  font-weight: 600;
  margin-bottom: 10px;
}

.char-info p {
  font-size: 0.9rem;
  color: var(--text-soft);
  line-height: 1.6;
  margin: 0;
}

.char-traits {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.char-trait {
  background: rgba(255,105,180,0.1);
  color: var(--pink-hot);
  font-size: 0.78rem;
  padding: 3px 10px;
  border-radius: 12px;
  font-weight: 500;
}

/* ========== GUIDE PAGE ========== */
.guide-step {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--pink-bunny);
  counter-increment: step-counter;
}

.guide-step h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 10px 0;
}

.guide-step h3::before {
  content: "0" counter(step-counter) ".";
  color: var(--pink-bunny);
  margin-right: 8px;
}

.guide-step p { margin: 0; }

.tip-box {
  background: linear-gradient(135deg, rgba(255,105,180,0.08), rgba(180,77,255,0.08));
  border: 1px solid rgba(255,105,180,0.2);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: 16px 0;
}

.tip-box .tip-label {
  font-weight: 700;
  color: var(--pink-hot);
  font-size: 0.85rem;
  margin-bottom: 6px;
}

.tip-box p {
  font-size: 0.9rem;
  color: var(--text-soft);
  margin: 0;
}

.guide-intro {
  color: var(--text-soft);
  margin-bottom: 24px;
  font-size: 1.05rem;
  line-height: 1.9;
}

.route-heading {
  font-family: var(--font-serif);
  color: var(--pink-hot);
  margin: 28px 0 10px;
  font-size: 1.3rem;
  font-weight: 700;
}

.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-hot);
  margin-top: 20px;
  margin-bottom: 8px;
}

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

.ending-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.ending-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--pink-bunny);
}

.ending-card.good  { border-top-color: var(--neon-gold); }
.ending-card.true  { border-top-color: var(--pink-hot); }
.ending-card.normal  { border-top-color: var(--neon-cyan); }

.ending-card h4 {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.ending-card p {
  font-size: 0.9rem;
  color: var(--text-soft);
  margin: 0;
}

/* ========== FAQ PAGE ========== */
.faq-list {
  margin-top: 32px;
}

.faq-item {
  background: var(--bg-card);
  border-radius: var(--radius);
  margin-bottom: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.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: 1.05rem;
  font-weight: 600;
  color: var(--text);
  text-align: left;
  gap: 12px;
}

.faq-question::after {
  content: '＋';
  font-size: 1.3rem;
  color: var(--pink-bunny);
  transition: transform 0.3s;
  flex-shrink: 0;
}

.faq-item.active .faq-question::after {
  content: '－';
}

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

.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 0 24px 18px;
}

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

/* ========== SYSTEM REQUIREMENTS TABLE ========== */
.specs-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 32px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.specs-table thead {
  background: var(--black-latex);
}

.specs-table th {
  padding: 14px 20px;
  text-align: left;
  color: var(--pink-bunny);
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 700;
}

.specs-table td {
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--text-soft);
}

.specs-table tr:last-child td {
  border-bottom: none;
}

.table-scroll {
  overflow-x: auto;
  margin-top: 20px;
}

/* ========== FOOTER ========== */
.site-footer {
  background: var(--black-latex);
  text-align: center;
  padding: 24px 20px;
  border-top: 2px solid rgba(255,105,180,0.2);
}

.site-footer p {
  color: #888888;
  font-size: 0.85rem;
  margin: 0;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  :root { --header-height: 60px; }

  .hamburger { display: flex; }

  .header-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--black-latex);
    flex-direction: column;
    padding: 20px;
    gap: 8px;
    transform: translateY(-120%);
    transition: transform 0.3s;
    border-bottom: 2px solid var(--pink-bunny);
    z-index: 999;
  }

  .header-nav.open { transform: translateY(0); }

  .header-nav a {
    font-size: 1rem;
    padding: 10px;
    text-align: center;
  }

  .header-cta { font-size: 0.82rem; padding: 6px 16px; }

  .hero { min-height: 300px; }
  .hero-title { font-size: 2rem; letter-spacing: 2px; }
  .hero-subtitle { font-size: 1rem; }

  .content-section { padding: 40px 16px; }
  .content-section h2 { font-size: 1.6rem; }

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

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

@media (max-width: 480px) {
  .hero-title { font-size: 1.6rem; }
  .hero-subtitle { font-size: 0.9rem; }
  .hero-tagline { font-size: 0.85rem; }

  .content-section h2 { font-size: 1.4rem; }
  .content-section h3 { font-size: 1.15rem; }

  .cta-btn { font-size: 1rem; padding: 12px 32px; }

  .char-grid { grid-template-columns: 1fr; }
  .review-grid { grid-template-columns: 1fr; }
  .ending-grid { grid-template-columns: 1fr; }

  .specs-table th,
  .specs-table td { padding: 10px 12px; font-size: 0.82rem; }
}
