/* ============================================================
   治愈使与受诅咒的地下城 — 推广站样式表
   The Agnietta ~The Holy Healer & The Cursed Dungeon~
   治愈系暖色调主题：柔粉、薄荷绿、浅金点缀
   ============================================================ */

/* ========== FONT IMPORT ========== */
@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 — healing warmth */
  --bg:            #faf6f2;
  --bg-warm:       #fdf5ee;
  --bg-soft-pink:  #f8e8e0;
  --bg-mint:       #e8f5e9;
  --bg-gold:       #fffbf0;

  /* Accent colors */
  --pink-soft:     #e8b4b8;
  --pink-fierce:   #d4848a;
  --mint-green:    #c8e6c9;
  --mint-dark:     #81c784;
  --gold-light:    #fff3cd;
  --gold-accent:   #d4a853;
  --gold-dark:     #b8860b;
  --lavender:      #d1c4e9;

  /* Text */
  --text:          #3e2f2a;
  --text-soft:     #6b5b55;
  --text-muted:    #9e8e87;
  --text-on-dark:  #fefcf6;

  /* Header / nav */
  --header-bg:     #3a2a24;
  --header-border: #d4a853;
  --nav-link:      #dcd3ce;
  --nav-hover:     #fff3cd;

  /* Cards & sections */
  --card-bg:       #ffffff;
  --card-border:   #e8d5cc;
  --card-shadow:   0 2px 12px rgba(62, 47, 42, 0.06);
  --card-accent-l: #d4a853;

  /* CTA */
  --cta-bg:        #d4848a;
  --cta-hover:     #c06c72;
  --cta-text:      #ffffff;

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

  /* Spacing */
  --content-max:   1100px;
  --section-pad:   60px 24px;
  --section-pad-sm: 40px 16px;
}

/* ========== 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;
}
a { color: var(--pink-fierce); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--gold-dark); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

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

/* Lists */
.content-list { list-style: disc; padding-left: 24px; }
.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: 12px; color: var(--text-soft); }

/* Strong colored variants */
.strong-pink { color: var(--pink-fierce); font-weight: 700; }
.strong-red { color: #c0392b; font-weight: 700; }
.strong-gold { color: var(--gold-accent); font-weight: 700; }
.strong-muted { color: var(--text-muted); font-weight: 700; }
.strong-navy { color: #2c3e50; font-weight: 700; }
.strong-mint { color: #388e3c; font-weight: 700; }

/* Table helpers */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.td-highlight { color: var(--pink-fierce); font-weight: 700; }

/* Guide page */
.guide-intro { color: var(--text-soft); font-size: 1.05rem; margin-bottom: 16px; }
.route-desc { color: var(--text-soft); margin-bottom: 12px; }
.route-heading { font-family: var(--font-serif); font-size: 1.35rem; color: var(--pink-fierce); margin: 24px 0 10px; font-weight: 700; }
.chapter-title { font-family: var(--font-serif); font-size: 1.25rem; color: var(--gold-accent); margin: 20px 0 8px; font-weight: 600; }

/* Story page */
.section-subheading {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--pink-fierce);
  text-align: center;
  margin: 40px 0 24px;
}

/* Hero tagline */
.hero-tagline { font-size: 1.15rem; color: var(--text-on-dark); opacity: 0.85; margin-top: 12px; }

/* Hero title main (index) — duplicates h1 styling for visible title */
.hero-title-main {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 900;
  color: #fefcf6;
  text-shadow: 0 2px 12px rgba(0,0,0,0.35);
  line-height: 1.2;
}

/* System requirements h3 */
.sys-reqs-h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  margin: 28px 0 12px;
}
.sys-reqs-h3:first-of-type { margin-top: 16px; }

/* ========== HEADER / NAV ========== */
.site-header {
  background: var(--header-bg);
  border-bottom: 3px solid var(--header-border);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.header-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 64px;
}
.logo {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-on-dark);
  white-space: nowrap;
}
.logo a { color: var(--text-on-dark); }
.logo a:hover { color: var(--gold-light); }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  color: var(--nav-link);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links a.active { color: var(--gold-light); }

.nav-cta {
  background: var(--cta-bg);
  color: var(--cta-text) !important;
  padding: 8px 20px;
  border-radius: 6px;
  font-weight: 700 !important;
  transition: background 0.25s;
}
.nav-cta:hover {
  background: var(--cta-hover);
  color: var(--cta-text) !important;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
  z-index: 1001;
}
.hamburger span {
  display: block;
  width: 26px;
  height: 2.5px;
  background: var(--nav-link);
  border-radius: 2px;
  transition: all 0.3s;
}
.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 SECTION ========== */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 24px 120px;
  overflow: hidden;
  min-height: 420px;
}
.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(58,42,36,0.65) 0%, rgba(212,132,138,0.35) 50%, rgba(200,230,201,0.2) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}
.hero-subtitle {
  font-size: 1.25rem;
  color: var(--gold-light);
  font-family: var(--font-serif);
  margin-top: 10px;
  opacity: 0.9;
}

/* Per-page hero backgrounds */
.hero-home .hero-bg { background-image: url('../img/hero-main.jpg'); }
.hero-guide .hero-bg { background-image: url('../img/screenshot-01.jpg'); }
.hero-story .hero-bg { background-image: url('../img/screenshot-02.jpg'); }
.hero-characters .hero-bg { background-image: url('../img/screenshot-03.jpg'); }
.hero-faq .hero-bg { background-image: url('../img/title-screen.jpg'); }

/* Sub-page hero */
.hero-subpage { padding: 50px 24px 60px; min-height: 260px; }
.hero-subpage-title { font-size: 2.2rem; font-weight: 700; }

/* ========== CONTENT SECTIONS ========== */
.content-section {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: var(--section-pad);
}
.content-section h2 {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
  position: relative;
  padding-bottom: 14px;
}
.content-section h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--pink-fierce);
  border-radius: 2px;
}
.content-section h3 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text);
  margin: 28px 0 10px;
}
.content-section h4 {
  font-family: var(--font-sans);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-soft);
  margin: 20px 0 8px;
}
.content-section p { margin-bottom: 14px; color: var(--text-soft); line-height: 1.85; }

/* Section alternates */
.section-alt { background: var(--bg-soft-pink); }
.section-mint { background: var(--bg-mint); }
.section-gold { background: var(--bg-gold); }

/* ========== GAME INFO CARDS (index) ========== */
.game-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
  margin-top: 24px;
}
.game-info-card {
  background: var(--card-bg);
  border-radius: 10px;
  padding: 24px 20px;
  box-shadow: var(--card-shadow);
  border-left: 4px solid var(--card-accent-l);
  transition: transform 0.2s, box-shadow 0.2s;
}
.game-info-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(62,47,42,0.1);
}
.game-info-card .info-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}
.game-info-card .info-value {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
}

/* ========== FEATURE CARDS (index) ========== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 24px;
}
.feature-card {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 28px 24px;
  box-shadow: var(--card-shadow);
  border-top: 3px solid var(--mint-green);
  transition: transform 0.25s, box-shadow 0.25s;
}
.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(62,47,42,0.1);
}
.feature-card:nth-child(even) { border-top-color: var(--pink-soft); }
.feature-card:nth-child(3n) { border-top-color: var(--gold-accent); }
.feature-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}
.feature-card h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.feature-card p {
  color: var(--text-soft);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ========== SCREENSHOT GALLERY ========== */
.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin-top: 24px;
}
.screenshot-grid a {
  display: block;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: transform 0.25s, box-shadow 0.25s;
}
.screenshot-grid a:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 24px rgba(62,47,42,0.15);
}
.screenshot-grid img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

/* ========== REVIEWS / QUOTES ========== */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 24px;
}
.review-card {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 28px 24px;
  box-shadow: var(--card-shadow);
  position: relative;
}
.review-card::before {
  content: '"';
  position: absolute;
  top: 8px;
  left: 16px;
  font-family: var(--font-serif);
  font-size: 3rem;
  color: var(--pink-soft);
  opacity: 0.5;
  line-height: 1;
}
.review-card .review-text {
  color: var(--text-soft);
  font-style: italic;
  margin-bottom: 10px;
  line-height: 1.7;
}
.review-card .review-author {
  font-weight: 600;
  color: var(--text);
  font-size: 0.9rem;
}

/* ========== CTA BANNER (index only) ========== */
.cta-banner {
  background: linear-gradient(135deg, var(--pink-fierce) 0%, #c06c72 50%, #d4a853 100%);
  text-align: center;
  padding: 50px 24px;
}
.cta-banner h2 {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 10px;
}
.cta-banner p {
  color: rgba(255,255,255,0.85);
  font-size: 1.05rem;
  margin-bottom: 24px;
}
.cta-btn {
  display: inline-block;
  background: #fff;
  color: var(--pink-fierce) !important;
  padding: 14px 40px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1.1rem;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}
.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0,0,0,0.3);
  color: var(--pink-fierce) !important;
}

/* ========== FAQ ACCORDION ========== */
.faq-list { margin-top: 24px; }
.faq-item {
  background: var(--card-bg);
  border-radius: 10px;
  margin-bottom: 10px;
  box-shadow: var(--card-shadow);
  overflow: hidden;
}
.faq-question {
  width: 100%;
  text-align: left;
  padding: 18px 24px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.2s;
}
.faq-question:hover { background: var(--bg-soft-pink); }
.faq-icon {
  font-size: 1.4rem;
  color: var(--pink-fierce);
  transition: transform 0.3s;
  flex-shrink: 0;
  margin-left: 12px;
}
.faq-item.active .faq-icon { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}
.faq-item.active .faq-answer {
  max-height: 600px;
}
.faq-answer-inner {
  padding: 0 24px 20px;
  color: var(--text-soft);
  line-height: 1.8;
}

/* ========== CHARACTER CARDS ========== */
.char-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 24px;
}
.char-card {
  background: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: transform 0.25s;
}
.char-card:hover { transform: translateY(-3px); }
.char-card-image {
  width: 100%;
  height: 260px;
  object-fit: cover;
}
.char-card-body { padding: 20px; }
.char-card-body h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}
.char-card-body .char-role {
  font-size: 0.85rem;
  color: var(--pink-fierce);
  font-weight: 600;
  margin-bottom: 10px;
}
.char-card-body p { color: var(--text-soft); font-size: 0.95rem; line-height: 1.7; }
.char-traits {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0;
}
.char-tag {
  background: var(--bg-soft-pink);
  color: var(--pink-fierce);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
}

/* ========== TABLE STYLES ========== */
.content-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 0.95rem;
}
.content-table th {
  background: var(--header-bg);
  color: var(--text-on-dark);
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
}
.content-table td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--card-border);
}
.content-table tr:nth-child(even) { background: var(--bg-warm); }
.content-table tr:hover { background: var(--bg-soft-pink); }

/* ========== TIPS BOX ========== */
.tips-box {
  background: var(--bg-gold);
  border-left: 4px solid var(--gold-accent);
  border-radius: 8px;
  padding: 18px 20px;
  margin: 20px 0;
}
.tips-box .tips-title {
  font-weight: 700;
  color: var(--gold-dark);
  margin-bottom: 6px;
}
.tips-box p { color: var(--text-soft); margin: 0; }

/* ========== STEP LIST (guide) ========== */
.step-list { counter-reset: step; margin-top: 20px; }
.step-item {
  counter-increment: step;
  position: relative;
  padding: 20px 20px 20px 64px;
  margin-bottom: 16px;
  background: var(--card-bg);
  border-radius: 10px;
  box-shadow: var(--card-shadow);
}
.step-item::before {
  content: counter(step);
  position: absolute;
  left: 16px;
  top: 16px;
  width: 34px;
  height: 34px;
  background: var(--pink-fierce);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
}
.step-item h3 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}
.step-item p { color: var(--text-soft); line-height: 1.7; }

/* ========== LIGHTBOX ========== */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 92vw;
  max-height: 92vh;
  border-radius: 6px;
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #fff;
  font-size: 2.5rem;
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1;
}

/* ========== FOOTER ========== */
.site-footer {
  background: var(--header-bg);
  color: var(--text-muted);
  text-align: center;
  padding: 24px;
  font-size: 0.9rem;
}

/* ========== RESPONSIVE — Tablet 768px ========== */
@media (max-width: 768px) {
  .hero-title-main { font-size: 2.2rem; }
  .hero-subpage-title { font-size: 1.8rem; }
  .hero { padding: 70px 20px 90px; min-height: 320px; }
  .hero-subpage { padding: 40px 20px 50px; min-height: 220px; }

  .content-section { padding: var(--section-pad-sm); }
  .content-section h2 { font-size: 1.7rem; }

  .hamburger { display: flex; }
  .nav-links {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--header-bg);
    flex-direction: column;
    padding: 20px 24px;
    gap: 16px;
    border-bottom: 3px solid var(--header-border);
    z-index: 999;
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 1.05rem; }

  .feature-grid { grid-template-columns: 1fr; }
  .game-info-grid { grid-template-columns: repeat(2, 1fr); }
  .screenshot-grid { grid-template-columns: repeat(2, 1fr); }
  .reviews-grid { grid-template-columns: 1fr; }
  .char-grid { grid-template-columns: 1fr; }

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

/* ========== RESPONSIVE — Mobile 480px ========== */
@media (max-width: 480px) {
  .hero-title-main { font-size: 1.7rem; }
  .hero-subpage-title { font-size: 1.5rem; }
  .hero { padding: 50px 16px 70px; min-height: 260px; }
  .hero-subpage { padding: 32px 16px 40px; min-height: 180px; }
  .hero-subtitle { font-size: 1rem; }
  .hero-tagline { font-size: 0.95rem; }

  .content-section { padding: 32px 16px; }
  .content-section h2 { font-size: 1.45rem; }
  .content-section h3 { font-size: 1.2rem; }

  .game-info-grid { grid-template-columns: 1fr; }
  .screenshot-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .reviews-grid { grid-template-columns: 1fr; }
  .char-grid { grid-template-columns: 1fr; }

  .header-inner { padding: 0 16px; }
  .logo { font-size: 1rem; }

  .cta-banner { padding: 36px 16px; }
  .cta-banner h2 { font-size: 1.3rem; }

  .step-item { padding: 16px 16px 16px 52px; }
  .step-item::before { width: 28px; height: 28px; font-size: 0.85rem; left: 12px; top: 14px; }
}

/* ========== PRINT ========== */
@media print {
  .site-header, .site-footer, .cta-banner, .lightbox { display: none; }
  body { background: #fff; color: #000; }
}
