/* ===== 苦主救助中心 — Rescue Center Theme ===== */
/* Support-group blues + hope yellows on light warm background */

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

:root {
  --font-serif: 'Noto Serif SC', serif;
  --font-sans: 'Noto Sans SC', sans-serif;

  --bg: #faf8f3;
  --bg-warm: #fef9f0;
  --bg-card: #fffdf8;
  --bg-blue-pale: #eaf0f6;
  --text: #2d2d2d;
  --text-soft: #5a5a5a;
  --text-light: #8a8a8a;

  --blue-rescue: #3a6b8c;
  --blue-dark: #1e3a52;
  --blue-mid: #4a7fa5;
  --blue-light: #6da3c7;
  --blue-pale: #d8e8f3;

  --hope-yellow: #f0c040;
  --hope-gold: #d4a017;
  --hope-warm: #f5d478;
  --hope-pale: #fef3d0;

  --accent-green: #5a9e6f;
  --danger-red: #c0392b;
  --pink-fierce: #c0395b;

  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.10);

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;

  --max-width: 1200px;
  --header-height: 64px;
}

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

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

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

/* Pattern: subtle helping-hand outline on body */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse at 15% 20%, rgba(58,107,140,0.03) 0%, transparent 50%),
              radial-gradient(ellipse at 85% 80%, rgba(240,192,64,0.04) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* ===== HEADER ===== */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--blue-dark);
  border-bottom: 3px solid var(--hope-yellow);
  backdrop-filter: blur(8px);
}

.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-height);
}

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

.header-logo-icon {
  width: 36px;
  height: 36px;
  background: var(--hope-yellow);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--blue-dark);
  font-weight: 700;
}

.header-logo-text {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

nav { display: flex; align-items: center; gap: 28px; }

nav a {
  color: #c8d6e5;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 400;
  transition: color 0.2s;
}

nav a:hover, nav a.active { color: var(--hope-yellow); }

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--hope-yellow);
  color: var(--blue-dark) !important;
  padding: 8px 20px;
  border-radius: 24px;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.25s;
  border: 2px solid var(--hope-yellow);
}

.header-cta:hover {
  background: transparent;
  color: var(--hope-yellow) !important;
  border-color: var(--hope-yellow);
}

/* Mobile nav toggle */
.nav-toggle { display: none; background: none; border: none; color: #fff; font-size: 1.5rem; cursor: pointer; }

/* ===== HERO ===== */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--blue-dark) 0%, #2a5070 40%, #3a6b8c 100%);
  padding: 60px 24px 80px;
  text-align: center;
  overflow: hidden;
  z-index: 1;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(240,192,64,0.12) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(240,192,64,0.08) 0%, transparent 40%);
  pointer-events: none;
}

/* Helping hand decorative motif */
.hero::after {
  content: '✋';
  position: absolute;
  bottom: -30px;
  right: 8%;
  font-size: 120px;
  opacity: 0.06;
  transform: rotate(-15deg);
  pointer-events: none;
}

.hero-image {
  max-width: 400px;
  margin: 0 auto 20px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 3px solid rgba(255,255,255,0.15);
}

.hero-image img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  display: block;
}

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

.hero-title-main {
  font-family: var(--font-serif);
  font-size: 2.8rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
  margin-bottom: 12px;
  line-height: 1.3;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: #b8d4e8;
  font-weight: 300;
  margin-bottom: 6px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-tagline {
  font-size: 0.95rem;
  color: #8db8d0;
  font-weight: 400;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

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

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

section { padding: 56px 24px; }

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--blue-dark);
  text-align: center;
  margin-bottom: 8px;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: var(--hope-yellow);
  margin: 12px auto 0;
  border-radius: 2px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-soft);
  font-size: 1rem;
  margin-bottom: 40px;
  line-height: 1.6;
}

/* ===== SECTION BACKGROUNDS ===== */
.section-warm { background: var(--bg-warm); }
.section-blue-pale { background: var(--bg-blue-pale); }

/* ===== GAME INFO CARDS ===== */
.info-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 40px;
}

.info-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border-left: 3px solid var(--blue-rescue);
  transition: transform 0.2s, box-shadow 0.2s;
}

.info-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.info-card-icon { font-size: 1.8rem; margin-bottom: 8px; }

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

.info-card-value {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
}

/* ===== FEATURE CARDS ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.feature-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--hope-yellow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

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

.feature-card h3 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--blue-dark);
}

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

/* ===== SCREENSHOT GALLERY ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
}

.gallery-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  background: var(--bg-card);
}

.gallery-item:hover { transform: scale(1.02); box-shadow: var(--shadow-md); }

.gallery-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

/* ===== LIGHTBOX ===== */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  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: 90vh;
  border-radius: var(--radius-sm);
  box-shadow: 0 0 40px rgba(0,0,0,0.5);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #fff;
  font-size: 2.5rem;
  cursor: pointer;
  line-height: 1;
}

/* ===== REVIEWS ===== */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.review-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  border-top: 3px solid var(--hope-yellow);
}

.review-stars { color: var(--hope-yellow); font-size: 1.1rem; margin-bottom: 10px; }

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

.review-author {
  font-size: 0.85rem;
  color: var(--text-light);
  font-weight: 500;
}

/* ===== CTA BANNER (index only) ===== */
.cta-banner {
  background: linear-gradient(135deg, var(--blue-dark), #2a5070);
  text-align: center;
  padding: 56px 24px;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(240,192,64,0.1) 0%, transparent 70%);
  pointer-events: none;
}

.cta-banner h2 {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 8px;
  position: relative;
}

.cta-banner p {
  font-size: 1.05rem;
  color: #b8d4e8;
  margin-bottom: 28px;
  position: relative;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--hope-yellow);
  color: var(--blue-dark);
  padding: 14px 36px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  transition: all 0.25s;
  position: relative;
  box-shadow: 0 4px 16px rgba(240,192,64,0.3);
}

.cta-btn:hover {
  background: var(--hope-gold);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(240,192,64,0.4);
}

/* ===== CONTENT SECTION (sub-pages) ===== */
.content-section {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}

.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.35rem;
  font-weight: 600;
  color: var(--blue-dark);
  margin-top: 36px;
  margin-bottom: 12px;
}

.content-section p {
  font-size: 1rem;
  color: var(--text-soft);
  line-height: 1.85;
  margin-bottom: 16px;
}

/* Utility classes for list styling */
.content-list {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 20px;
  color: var(--text-soft);
}

.content-list-num {
  list-style: decimal;
  padding-left: 24px;
  margin-bottom: 20px;
  color: var(--text-soft);
}

.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); }

/* ===== CHAPTER STYLING (story page) ===== */
.chapter-box {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--blue-rescue);
}

.chapter-title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--blue-dark);
  margin-bottom: 8px;
}

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

.ending-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border-top: 3px solid var(--hope-yellow);
}

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

.ending-card h4 {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 6px;
}

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

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

.char-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s;
  border-bottom: 4px solid var(--blue-rescue);
}

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

.char-card-img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
  background: linear-gradient(135deg, var(--blue-pale), var(--hope-pale));
}

.char-card-body { padding: 20px; }

.char-card-body h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.char-card-subtitle {
  font-size: 0.85rem;
  color: var(--blue-rescue);
  font-weight: 500;
  margin-bottom: 10px;
}

.char-card-body p {
  font-size: 0.9rem;
  color: var(--text-soft);
  line-height: 1.6;
  margin-bottom: 12px;
}

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

.char-trait {
  background: var(--hope-pale);
  color: var(--hope-gold);
  font-size: 0.8rem;
  padding: 3px 10px;
  border-radius: 12px;
  font-weight: 500;
}

/* Section subheading for character groups */
.section-subheading {
  text-align: center;
  margin: 40px 0 24px;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--blue-dark);
}

/* ===== GUIDE TIPS ===== */
.tip-box {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-bottom: 16px;
  border-left: 4px solid var(--accent-green);
  box-shadow: var(--shadow-sm);
}

.tip-box h4 {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--accent-green);
  margin-bottom: 6px;
}

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

.guide-intro {
  font-size: 1rem;
  color: var(--text-soft);
  line-height: 1.85;
  margin-bottom: 20px;
}

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

.route-heading {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--blue-dark);
  margin-top: 24px;
  margin-bottom: 8px;
}

/* ===== FAQ ACCORDION ===== */
.faq-list { max-width: 800px; margin: 0 auto; }

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

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

.faq-question:hover { background: var(--hope-pale); }

.faq-icon {
  font-size: 1.3rem;
  transition: transform 0.3s;
  color: var(--hope-yellow);
}

.faq-item.active .faq-icon { transform: rotate(45deg); }

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

.faq-item.active .faq-answer { max-height: 500px; }

.faq-answer-inner {
  padding: 0 24px 20px;
  font-size: 0.95rem;
  color: var(--text-soft);
  line-height: 1.75;
}

/* ===== SYSTEM REQUIREMENTS TABLE ===== */
.table-scroll { overflow-x: auto; margin: 20px 0; }

.sys-reqs {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.sys-reqs th, .sys-reqs td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid #e8e4dc;
}

.sys-reqs th {
  background: var(--blue-dark);
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
}

.sys-reqs tr:nth-child(even) td { background: var(--bg-blue-pale); }

.sys-reqs td:first-child { font-weight: 500; color: var(--text); }

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

.sys-reqs-h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--blue-dark);
  margin-top: 28px;
  margin-bottom: 12px;
}

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

.text-center { text-align: center; color: var(--text-soft); margin-bottom: 24px; }

/* Colored strong tags */
.strong-pink { color: var(--pink-fierce); }
.strong-red { color: var(--danger-red); }
.strong-gold { color: var(--hope-gold); }
.strong-muted { color: var(--text-soft); }
.strong-navy { color: var(--blue-dark); }

/* ===== FOOTER ===== */
footer {
  background: var(--blue-dark);
  text-align: center;
  padding: 28px 24px;
  position: relative;
  z-index: 1;
  border-top: 3px solid var(--hope-yellow);
}

footer p {
  color: #90acc0;
  font-size: 0.85rem;
}

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

  .header-inner { padding: 0 16px; }

  nav { gap: 16px; }

  nav a { font-size: 0.85rem; }

  .header-cta { padding: 6px 14px; font-size: 0.8rem; }

  .hero { padding: 48px 16px 60px; }

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

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

  .hero-image { max-width: 300px; }

  section { padding: 40px 16px; }

  .section-title { font-size: 1.6rem; }

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

  .feature-card, .review-card { padding: 20px 16px; }

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

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

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

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

  /* Mobile nav */
  .nav-toggle { display: block; }

  nav {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--blue-dark);
    flex-direction: column;
    padding: 16px 24px 24px;
    gap: 12px;
    border-top: 1px solid rgba(255,255,255,0.1);
  }

  nav.open { display: flex; }
}

/* ===== RESPONSIVE: 480px ===== */
@media (max-width: 480px) {
  .hero-title-main { font-size: 1.6rem; }

  .hero-image { max-width: 240px; }

  .info-cards { grid-template-columns: 1fr 1fr; gap: 10px; }

  .info-card { padding: 14px 10px; }

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

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

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

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

  .section-title { font-size: 1.4rem; }

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

  .cta-btn { width: 100%; justify-content: center; }
}
