/* ========== DESERT STALKER - Desert Wasteland 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 {
  /* Colors - Desert Wasteland */
  --desert-orange: #E65100;
  --desert-orange-dark: #BF360C;
  --desert-orange-light: #FF8A65;
  --cactus-green: #558B2F;
  --cactus-green-dark: #33691E;
  --cactus-green-light: #7CB342;
  --sand-gold: #FFE082;
  --sand-gold-dark: #FFB300;
  --sun-white: #FFF8E1;
  --sun-white-dark: #FFECB3;
  --bg: #FFFDF7;
  --bg-warm: #FFF8E1;
  --bg-card: #FFFFFF;
  --bg-footer: #3E2723;
  --text: #3E2723;
  --text-soft: #5D4037;
  --text-muted: #8D6E63;
  --text-light: #BCAAA4;
  --border: #D7CCC8;
  --border-light: #EFEBE9;
  --danger-red: #C62828;
  --danger-bg: #FFEBEE;

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

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(62, 39, 35, 0.08);
  --shadow-md: 0 4px 12px rgba(62, 39, 35, 0.12);
  --shadow-lg: 0 8px 30px rgba(62, 39, 35, 0.16);
  --shadow-orange: 0 4px 16px rgba(230, 81, 0, 0.25);

  /* Layout */
  --max-width: 1200px;
  --nav-height: 72px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
}

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

/* ========== UTILITY CLASSES ========== */
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.prose {
  max-width: 800px; margin: 0 auto;
}
.section-alt {
  background: var(--bg-warm); padding-top: 0;
}
.content-list {
  list-style: disc; padding-left: 24px;
}
.content-list-num {
  list-style: decimal; padding-left: 28px;
}
.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); }
.strong-orange { color: var(--desert-orange); font-weight: 700; }
.strong-red { color: var(--danger-red); font-weight: 700; }
.strong-gold { color: var(--sand-gold-dark); font-weight: 700; }
.strong-muted { color: var(--text-muted); font-weight: 600; }
.strong-green { color: var(--cactus-green); font-weight: 700; }
.td-highlight { color: var(--desert-orange); font-weight: 700; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.guide-intro { color: var(--text-soft); font-size: 1.05rem; line-height: 1.85; }
.route-desc { color: var(--text-soft); font-size: 1rem; }
.route-heading { font-family: var(--font-serif); color: var(--desert-orange); font-size: 1.25rem; margin: 24px 0 12px; }
.chapter-title { font-family: var(--font-serif); font-size: 1.35rem; color: var(--cactus-green); margin-bottom: 10px; }
.hero-tagline { color: var(--sand-gold); font-size: 1.2rem; margin-top: 8px; font-weight: 400; text-shadow: 0 1px 4px rgba(0,0,0,0.5); }
.hero-subpage { padding: 40px 24px 48px; }
.hero-subpage-title { font-size: 2rem; font-weight: 700; }
.sys-reqs-h3 { font-family: var(--font-serif); font-size: 1.2rem; color: var(--desert-orange); margin: 28px 0 14px; }
.sys-reqs-h3:first-of-type { margin-top: 0; }
.section-subheading {
  text-align: center; margin: 40px 0 24px;
  font-family: var(--font-serif); font-size: 1.6rem; color: var(--desert-orange);
}
.card-group-title {
  text-align: center; margin: 48px 0 28px; font-family: var(--font-serif);
  font-size: 1.7rem; color: var(--text); position: relative;
}
.card-group-title::after {
  content: ''; display: block; width: 60px; height: 3px;
  background: var(--desert-orange); margin: 12px auto 0; border-radius: 2px;
}
.characters-footer-note {
  text-align: center; margin-top: 40px; color: var(--text-muted);
}

/* ========== HEADER / NAV ========== */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: linear-gradient(135deg, #3E2723 0%, #4E342E 40%, #5D4037 100%);
  border-bottom: 3px solid var(--desert-orange);
  box-shadow: var(--shadow-md);
}
.header-inner {
  max-width: var(--max-width); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; height: var(--nav-height);
}
.site-logo {
  display: flex; align-items: center; gap: 10px; text-decoration: none;
}
.site-logo-icon {
  width: 40px; height: 40px; border-radius: 50%; object-fit: cover;
  border: 2px solid var(--desert-orange);
}
.site-logo-text {
  font-family: var(--font-serif); font-size: 1.3rem; font-weight: 700;
  color: var(--sand-gold); letter-spacing: 1px;
}
.nav-links {
  display: flex; align-items: center; gap: 4px; list-style: none;
}
.nav-links a {
  display: block; padding: 8px 16px; text-decoration: none;
  color: var(--text-light); font-size: 0.95rem; font-weight: 500;
  border-radius: var(--radius-md); transition: all 0.2s;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--sand-gold); background: rgba(255, 224, 130, 0.1);
}
.nav-cta {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 22px; background: linear-gradient(135deg, var(--desert-orange), #FF6D00);
  color: #fff !important; font-weight: 700; font-size: 0.95rem;
  border-radius: 50px; text-decoration: none;
  box-shadow: var(--shadow-orange); transition: all 0.3s;
  white-space: nowrap;
}
.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(230, 81, 0, 0.35);
}
.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(--sand-gold); border-radius: 2px; transition: all 0.3s;
}

/* ========== HERO ========== */
.hero {
  position: relative; overflow: hidden;
  padding: 80px 24px; text-align: center;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 420px;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center;
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(62,39,35,0.75) 0%, rgba(62,39,35,0.55) 60%, rgba(62,39,35,0.8) 100%);
}
.hero > * { position: relative; z-index: 1; }
.hero-home .hero-bg { background-image: url('../img/header.jpg'); }
.hero-story .hero-bg { background-image: url('../img/screenshot-01.jpg'); }
.hero-guide .hero-bg { background-image: url('../img/screenshot-03.jpg'); }
.hero-characters .hero-bg { background-image: url('../img/screenshot-02.jpg'); }
.hero-faq .hero-bg { background-image: url('../img/header.jpg'); }

.hero-title-main {
  font-family: var(--font-serif); font-size: 3.2rem; font-weight: 900;
  color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,0.6); letter-spacing: 2px;
}
.hero-subtitle {
  font-size: 1.25rem; color: var(--sand-gold); margin-top: 12px;
  max-width: 600px; font-weight: 400;
}
.hero-stats {
  display: flex; gap: 32px; margin-top: 32px; flex-wrap: wrap; justify-content: center;
}
.hero-stat {
  text-align: center;
}
.hero-stat-num {
  font-family: var(--font-serif); font-size: 2rem; font-weight: 900;
  color: var(--desert-orange);
}
.hero-stat-label {
  font-size: 0.85rem; color: var(--text-light); margin-top: 2px;
}

/* ========== SECTIONS ========== */
.section {
  padding: 72px 24px;
}
.section-inner {
  max-width: var(--max-width); margin: 0 auto;
}
.section-title {
  font-family: var(--font-serif); font-size: 2rem; font-weight: 700;
  text-align: center; color: var(--text); margin-bottom: 8px;
}
.section-subtitle {
  text-align: center; color: var(--text-muted); font-size: 1.05rem;
  margin-bottom: 48px;
}
.section-divider {
  width: 60px; height: 3px; background: linear-gradient(90deg, var(--desert-orange), var(--sand-gold));
  margin: 0 auto 36px; border-radius: 2px;
}

/* ========== CARDS ========== */
.card-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}
.card {
  background: var(--bg-card); border-radius: var(--radius-lg);
  border: 1px solid var(--border-light); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: all 0.3s;
  border-left: 4px solid var(--desert-orange);
}
.card:hover {
  transform: translateY(-4px); box-shadow: var(--shadow-lg);
  border-left-color: var(--cactus-green);
}
.card-img {
  width: 100%; height: 200px; object-fit: cover;
}
.card-body {
  padding: 20px 24px;
}
.card-title {
  font-family: var(--font-serif); font-size: 1.2rem; font-weight: 700;
  color: var(--text); margin-bottom: 8px;
}
.card-desc {
  color: var(--text-soft); font-size: 0.95rem; line-height: 1.7;
}
.card-icon {
  font-size: 2rem; display: block; margin-bottom: 12px;
}

/* ========== FEATURE CARDS (index) ========== */
.feature-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.feature-card {
  background: var(--bg-card); border-radius: var(--radius-lg);
  padding: 28px 24px; text-align: center;
  border: 1px solid var(--border-light); box-shadow: var(--shadow-sm);
  transition: all 0.3s; border-top: 3px solid var(--desert-orange);
}
.feature-card:hover {
  transform: translateY(-3px); box-shadow: var(--shadow-md);
  border-top-color: var(--cactus-green);
}
.feature-icon {
  font-size: 2.5rem; margin-bottom: 12px; display: block;
}
.feature-title {
  font-family: var(--font-serif); font-size: 1.15rem; font-weight: 700;
  color: var(--text); margin-bottom: 8px;
}
.feature-desc {
  color: var(--text-soft); font-size: 0.9rem; line-height: 1.65;
}

/* ========== SCREENSHOT GALLERY ========== */
.gallery-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.gallery-item {
  border-radius: var(--radius-md); overflow: hidden;
  cursor: pointer; position: relative;
  box-shadow: var(--shadow-sm); transition: all 0.3s;
}
.gallery-item:hover { transform: scale(1.03); box-shadow: var(--shadow-md); }
.gallery-item img {
  width: 100%; height: 180px; object-fit: cover; display: block;
}
.gallery-overlay {
  position: absolute; inset: 0; background: rgba(0,0,0,0.5);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.3s;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay span {
  color: #fff; font-size: 1.5rem; font-weight: 700;
}

/* ========== LIGHTBOX ========== */
.lightbox {
  display: none; position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,0.92); align-items: center; justify-content: center;
}
.lightbox.active { display: flex; }
.lightbox img {
  max-width: 90vw; max-height: 85vh; border-radius: var(--radius-md);
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
}
.lightbox-close {
  position: absolute; top: 24px; right: 32px;
  background: none; border: none; color: #fff; font-size: 2.5rem;
  cursor: pointer; transition: color 0.2s;
}
.lightbox-close:hover { color: var(--desert-orange); }

/* ========== REVIEWS ========== */
.reviews-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}
.review-card {
  background: var(--bg-card); border-radius: var(--radius-lg);
  padding: 28px 24px; border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm); position: relative;
}
.review-card::before {
  content: '\201C'; position: absolute; top: 8px; left: 16px;
  font-family: var(--font-serif); font-size: 3.5rem; color: var(--sand-gold-dark);
  opacity: 0.4; line-height: 1;
}
.review-text {
  color: var(--text-soft); font-size: 0.95rem; line-height: 1.7;
  padding-top: 8px; margin-bottom: 16px;
}
.review-author {
  display: flex; align-items: center; gap: 10px;
}
.review-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--desert-orange), var(--sand-gold-dark));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 1rem;
}
.review-name { font-weight: 600; color: var(--text); font-size: 0.9rem; }
.review-date { color: var(--text-muted); font-size: 0.8rem; }

/* ========== CTA BANNER ========== */
.cta-banner {
  background: linear-gradient(135deg, #3E2723 0%, #4E342E 50%, #3E2723 100%);
  padding: 64px 24px; text-align: center; position: relative; overflow: hidden;
}
.cta-banner::before {
  content: ''; position: absolute; inset: 0;
  background: repeating-linear-gradient(
    90deg, transparent, transparent 2px,
    rgba(230, 81, 0, 0.03) 2px, rgba(230, 81, 0, 0.03) 4px
  );
}
.cta-banner > * { position: relative; z-index: 1; }
.cta-title {
  font-family: var(--font-serif); font-size: 2.2rem; font-weight: 900;
  color: var(--sand-gold); margin-bottom: 12px;
}
.cta-desc {
  color: var(--text-light); font-size: 1.05rem; margin-bottom: 32px;
  max-width: 500px; margin-left: auto; margin-right: auto;
}
.cta-button {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 16px 40px; background: linear-gradient(135deg, var(--desert-orange), #FF6D00);
  color: #fff; font-size: 1.15rem; font-weight: 700;
  text-decoration: none; border-radius: 50px;
  box-shadow: var(--shadow-orange); transition: all 0.3s;
}
.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(230, 81, 0, 0.4);
}

/* ========== CONTENT SECTIONS (story, guide, characters) ========== */
.content-section {
  padding: 72px 24px; 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(--text); margin-bottom: 12px;
}
.content-section h3 {
  font-family: var(--font-serif); font-size: 1.4rem; font-weight: 600;
  color: var(--desert-orange-dark); margin: 32px 0 14px;
}
.content-section p {
  color: var(--text-soft); margin-bottom: 16px; line-height: 1.85;
}
.content-section ul, .content-section ol {
  margin-bottom: 20px;
}

/* Story chapter blocks */
.chapter-block {
  background: var(--bg-warm); border-radius: var(--radius-lg);
  padding: 28px 28px; margin-bottom: 28px;
  border-left: 5px solid var(--desert-orange);
  box-shadow: var(--shadow-sm);
}
.chapter-num {
  display: inline-block; background: var(--desert-orange); color: #fff;
  font-size: 0.85rem; font-weight: 700; padding: 3px 14px; border-radius: 20px;
  margin-bottom: 10px;
}

/* Guide step blocks */
.guide-step {
  background: var(--bg-card); border-radius: var(--radius-lg);
  padding: 24px 28px; margin-bottom: 24px; border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm); border-left: 4px solid var(--cactus-green);
}
.guide-step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; background: var(--cactus-green);
  color: #fff; font-weight: 700; border-radius: 50%; margin-bottom: 10px;
  font-size: 1rem;
}
.guide-tip {
  background: var(--sun-white); border-radius: var(--radius-md);
  padding: 16px 20px; margin-top: 16px;
  border: 1px solid var(--sand-gold); font-size: 0.9rem; color: var(--text-soft);
}
.guide-step-title { font-family: var(--font-serif); font-size: 1.1rem; color: var(--text); margin-bottom: 8px; }
.guide-tip::before { content: '💡 提示：'; font-weight: 700; color: var(--desert-orange); }

/* Character cards */
.char-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px; margin-bottom: 48px;
}
.char-card {
  background: var(--bg-card); border-radius: var(--radius-lg);
  overflow: hidden; border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm); transition: all 0.3s;
}
.char-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.char-card-header {
  background: linear-gradient(135deg, #4E342E, #3E2723);
  padding: 20px; text-align: center; color: #fff;
  position: relative;
}
.char-card-header::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
  background: var(--desert-orange);
}
.char-card-header h3 {
  font-family: var(--font-serif); font-size: 1.2rem; font-weight: 700; color: #fff; margin: 0;
}
.char-card-role {
  font-size: 0.8rem; color: var(--sand-gold); margin-top: 4px;
}
.char-card-body { padding: 20px; }
.char-card-body p { color: var(--text-soft); font-size: 0.9rem; line-height: 1.7; }
.char-tags {
  display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px;
}
.char-tag {
  display: inline-block; padding: 3px 10px; font-size: 0.75rem;
  border-radius: 20px; font-weight: 500;
  background: var(--sun-white); color: var(--desert-orange);
  border: 1px solid var(--sand-gold);
}

/* ========== TABLE ========== */
.info-table {
  width: 100%; border-collapse: collapse; margin: 20px 0;
}
.info-table th, .info-table td {
  padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border-light);
}
.info-table th {
  background: var(--bg-warm); color: var(--desert-orange);
  font-family: var(--font-serif); font-size: 0.95rem; font-weight: 600; width: 140px;
}
.info-table td { color: var(--text-soft); font-size: 0.95rem; }

/* ========== FAQ ========== */
.faq-list {
  max-width: 800px; margin: 0 auto;
}
.faq-item {
  border: 1px solid var(--border-light); border-radius: var(--radius-md);
  margin-bottom: 12px; overflow: hidden;
  background: var(--bg-card);
}
.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-serif); font-size: 1.05rem;
  font-weight: 600; color: var(--text); text-align: left;
  transition: background 0.2s;
}
.faq-question:hover { background: var(--sun-white); }
.faq-question::after {
  content: '+'; font-size: 1.5rem; font-weight: 300; color: var(--desert-orange);
  transition: transform 0.3s;
}
.faq-item.open .faq-question::after {
  content: '−'; transform: rotate(180deg);
}
.faq-answer {
  max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.4s ease;
}
.faq-item.open .faq-answer {
  max-height: 500px; padding: 0 24px 20px;
}
.faq-answer p { color: var(--text-soft); font-size: 0.95rem; line-height: 1.75; }

/* ========== SYS REQS TABLE ========== */
.sys-table {
  width: 100%; border-collapse: collapse; margin: 20px 0;
  font-size: 0.9rem;
}
.sys-table th, .sys-table td {
  padding: 10px 14px; border: 1px solid var(--border-light); text-align: left;
}
.sys-table th {
  background: var(--desert-orange); color: #fff; font-weight: 600;
  font-size: 0.85rem;
}
.sys-table tr:nth-child(even) { background: var(--bg-warm); }
.sys-table td:first-child { font-weight: 600; color: var(--text); }

/* ========== FOOTER ========== */
.site-footer {
  background: var(--bg-footer); padding: 28px 24px; text-align: center;
  border-top: 3px solid var(--desert-orange);
}
.site-footer p {
  color: var(--text-light); font-size: 0.85rem;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  :root { --nav-height: 60px; }
  .hamburger { display: flex; }
  .nav-links {
    position: fixed; top: var(--nav-height); left: 0; right: 0;
    flex-direction: column; background: linear-gradient(180deg, #3E2723, #4E342E);
    padding: 16px 24px; gap: 4px; border-bottom: 3px solid var(--desert-orange);
    transform: translateY(-110%); transition: transform 0.3s; z-index: 999;
  }
  .nav-links.active { transform: translateY(0); }
  .nav-links a { width: 100%; text-align: center; padding: 12px; }
  .hero { min-height: 320px; padding: 60px 20px; }
  .hero-title-main { font-size: 2.2rem; }
  .hero-subtitle { font-size: 1rem; }
  .hero-stats { gap: 20px; }
  .hero-stat-num { font-size: 1.5rem; }
  .section { padding: 48px 20px; }
  .section-title { font-size: 1.6rem; }
  .card-grid, .feature-grid, .char-grid, .reviews-grid {
    grid-template-columns: 1fr;
  }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-title { font-size: 1.6rem; }
  .content-section { padding: 48px 20px; }
  .content-section h2 { font-size: 1.6rem; }
}

@media (max-width: 480px) {
  .hero-title-main { font-size: 1.7rem; }
  .gallery-grid { grid-template-columns: 1fr; }
  .hero-stats { flex-direction: column; gap: 12px; }
  .header-inner { padding: 0 16px; }
  .site-logo-text { font-size: 1.1rem; }
  .cta-button { padding: 14px 28px; font-size: 1rem; }
  .section { padding: 36px 16px; }
}
