/* ============================================================
   迷失的生命 - Lost Innocence Theme
   Faded photograph sepias + gentle memory blues
   Vintage frame motifs, bittersweet nostalgic on light cream
   ============================================================ */

:root {
  /* Color palette */
  --bg: #faf6f0;
  --bg-cream: #f5efe5;
  --bg-cream-light: #fdfaf5;
  --sepia: #8b7355;
  --sepia-light: #c4a882;
  --sepia-pale: #e0d3c0;
  --sepia-dark: #6b5a45;
  --memory-blue: #7a9bb5;
  --memory-blue-light: #b8cfe0;
  --memory-blue-pale: #dce8f2;
  --memory-blue-dark: #5a7d96;
  --text: #3d3226;
  --text-light: #8b7d6b;
  --text-muted: #b8a898;
  --bg-header: #2d2418;
  --bg-header-hover: #3d3428;
  --border-cream: #e0d5c5;
  --border-frame: #d4c4ad;
  --shadow-sm: 0 1px 3px rgba(107,90,69,0.08);
  --shadow-md: 0 4px 12px rgba(107,90,69,0.10);
  --shadow-lg: 0 8px 24px rgba(107,90,69,0.12);
  --radius: 6px;
  --radius-lg: 10px;
  --font-heading: 'Georgia', 'Noto Serif SC', 'STSong', 'Songti SC', 'SimSun', serif;
  --font-body: -apple-system, 'PingFang SC', 'Microsoft YaHei', 'Hiragino Sans GB', sans-serif;
  --max-width: 1100px;
}

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

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

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* Vintage photo-album body overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 60% 50% at 20% 30%, rgba(196,168,130,0.06) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 75% 65%, rgba(122,155,181,0.05) 0%, transparent 60%),
    radial-gradient(ellipse 40% 35% at 50% 15%, rgba(196,168,130,0.04) 0%, transparent 55%);
  pointer-events: none;
}

/* ===== HEADER ===== */
header {
  background: var(--bg-header);
  border-bottom: 3px solid var(--sepia);
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--sepia-pale);
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.logo img {
  height: 36px;
  width: auto;
  border-radius: 4px;
}

/* Navigation */
nav { display: flex; align-items: center; gap: 0.25rem; }

nav a {
  display: block;
  padding: 0.5rem 1rem;
  color: #c4bfb4;
  text-decoration: none;
  font-size: 0.925rem;
  border-radius: var(--radius);
  transition: all 0.2s;
}

nav a:hover,
nav a.active {
  color: var(--sepia-pale);
  background: rgba(139,115,85,0.15);
}

/* Nav CTA */
.nav-cta {
  background: var(--sepia) !important;
  color: #faf6f0 !important;
  padding: 0.45rem 1.2rem !important;
  border-radius: var(--radius) !important;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-left: 0.5rem;
}

.nav-cta:hover {
  background: var(--sepia-dark) !important;
  color: #faf6f0 !important;
}

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

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

/* ===== HERO ===== */
.hero {
  position: relative;
  background: linear-gradient(180deg, #3d3428 0%, #5c4d3a 40%, var(--bg-header) 100%);
  color: #f5efe5;
  overflow: hidden;
  text-align: center;
  padding: 4rem 1.5rem;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 60% at 35% 70%, rgba(196,168,130,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 40% 50% at 65% 30%, rgba(122,155,181,0.08) 0%, transparent 55%);
  pointer-events: none;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.28;
  filter: sepia(0.35) brightness(0.7);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: 2.6rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  margin-bottom: 0.75rem;
  color: #f5efe5;
}

.hero .tagline {
  font-size: 1.15rem;
  color: var(--sepia-pale);
  font-family: var(--font-heading);
  font-style: italic;
  margin-bottom: 1.5rem;
  letter-spacing: 0.03em;
}

.hero .desc {
  font-size: 0.975rem;
  color: #c4bfb4;
  max-width: 600px;
  margin: 0 auto 2rem;
  line-height: 1.8;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.hero-tags span {
  padding: 0.3rem 0.85rem;
  border-radius: 20px;
  font-size: 0.85rem;
  background: rgba(245,239,229,0.1);
  border: 1px solid rgba(196,168,130,0.3);
  color: var(--sepia-pale);
}

.btn-hero {
  display: inline-block;
  padding: 0.75rem 2.5rem;
  background: var(--sepia);
  color: #faf6f0;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.03em;
  transition: all 0.25s;
  border: none;
  cursor: pointer;
}

.btn-hero:hover {
  background: var(--sepia-dark);
  box-shadow: 0 4px 16px rgba(107,90,69,0.3);
}

/* Page hero (sub-pages) */
.page-hero {
  padding: 3rem 1.5rem;
  text-align: center;
  background:
    linear-gradient(180deg, var(--bg-cream) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border-cream);
}

.page-hero h1 {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  color: var(--sepia-dark);
  letter-spacing: 0.03em;
  margin-bottom: 0.5rem;
}

.page-hero .subtitle {
  color: var(--text-light);
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.05rem;
}

/* ===== SECTIONS ===== */
section { padding: 3.5rem 1.5rem; }

.section-alt { background: var(--bg-cream-light); }

.section-title {
  text-align: center;
  font-family: var(--font-heading);
  font-size: 1.75rem;
  color: var(--sepia-dark);
  letter-spacing: 0.03em;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  text-align: center;
  color: var(--text-light);
  font-family: var(--font-heading);
  font-style: italic;
  margin-bottom: 2.5rem;
  font-size: 0.975rem;
}

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

/* Vintage frame divider */
.memory-divider {
  width: 80px;
  height: 2px;
  margin: 1.5rem auto;
  background: linear-gradient(90deg, transparent, var(--sepia-pale), var(--memory-blue-light), var(--sepia-pale), transparent);
  border-radius: 1px;
}

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

.info-card {
  background: #fff;
  border: 1px solid var(--border-cream);
  border-radius: var(--radius);
  padding: 1.25rem 1rem;
  text-align: center;
  transition: all 0.25s;
  box-shadow: var(--shadow-sm);
}

.info-card:hover {
  border-color: var(--sepia-pale);
  box-shadow: var(--shadow-md);
}

.info-card .label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

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

/* ===== FEATURE CARDS ===== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: #fff;
  border: 1px solid var(--border-cream);
  border-left: 4px solid var(--sepia);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: all 0.25s;
  box-shadow: var(--shadow-sm);
}

.feature-card:hover {
  border-left-color: var(--memory-blue);
  box-shadow: var(--shadow-md);
}

.feature-card h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--sepia-dark);
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
}

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

/* ===== GUIDE STEPS ===== */
.guide-grid {
  display: grid;
  gap: 1.5rem;
  max-width: 800px;
  margin: 0 auto;
}

.guide-step {
  display: flex;
  gap: 1.25rem;
  background: #fff;
  border: 1px solid var(--border-cream);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s;
}

.guide-step:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--sepia-pale);
}

.guide-num {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--sepia);
  color: #faf6f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
}

.guide-content h3 {
  font-family: var(--font-heading);
  color: var(--sepia-dark);
  margin-bottom: 0.35rem;
  font-size: 1.1rem;
}

.guide-content p {
  color: var(--text-light);
  font-size: 0.925rem;
  line-height: 1.7;
}

/* ===== STORY BLOCKS ===== */
.story-block {
  background: #fff;
  border: 1px solid var(--border-cream);
  border-left: 4px solid var(--memory-blue);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s;
}

.story-block:hover {
  border-left-color: var(--sepia);
  box-shadow: var(--shadow-md);
}

.story-block .story-chapter {
  display: inline-block;
  padding: 0.2rem 0.75rem;
  background: var(--memory-blue-pale);
  color: var(--memory-blue-dark);
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 0.75rem;
}

.story-block h3 {
  font-family: var(--font-heading);
  color: var(--sepia-dark);
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.story-block p {
  color: var(--text-light);
  line-height: 1.8;
}

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

.char-card {
  background: #fff;
  border: 1px solid var(--border-cream);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s;
}

.char-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--sepia-pale);
}

.char-header {
  background: var(--bg-header);
  padding: 1.25rem;
  text-align: center;
}

.char-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  margin: 0 auto 0.75rem;
  background: linear-gradient(135deg, var(--sepia), var(--memory-blue-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  border: 3px solid var(--sepia-pale);
}

.char-header h3 {
  color: var(--sepia-pale);
  font-family: var(--font-heading);
  font-size: 1.1rem;
  letter-spacing: 0.02em;
}

.char-header .char-role {
  color: var(--memory-blue-light);
  font-size: 0.85rem;
  font-style: italic;
  margin-top: 0.2rem;
}

.char-body {
  padding: 1.25rem;
}

.char-body p {
  color: var(--text-light);
  font-size: 0.925rem;
  line-height: 1.7;
}

.char-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.75rem;
}

.char-tags span {
  padding: 0.2rem 0.65rem;
  border-radius: 20px;
  font-size: 0.78rem;
  background: var(--bg-cream);
  color: var(--sepia);
  border: 1px solid var(--sepia-pale);
}

/* ===== GALLERY ===== */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.gallery a {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-cream);
  transition: all 0.25s;
  box-shadow: var(--shadow-sm);
}

.gallery a:hover {
  border-color: var(--sepia);
  box-shadow: var(--shadow-md);
}

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

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

.faq-item {
  background: #fff;
  border: 1px solid var(--border-cream);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.25rem;
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
  transition: all 0.2s;
  user-select: none;
}

.faq-q:hover {
  color: var(--sepia);
  background: var(--bg-cream-light);
}

.faq-q .icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--sepia-pale);
  color: var(--sepia-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  line-height: 1;
  transition: all 0.3s;
}

.faq-item.open .faq-q .icon {
  background: var(--sepia);
  color: #faf6f0;
  transform: rotate(45deg);
}

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

.faq-item.open .faq-a {
  max-height: 500px;
}

.faq-a-inner {
  padding: 0 1.25rem 1.25rem;
  color: var(--text-light);
  line-height: 1.8;
  font-size: 0.925rem;
}

/* ===== CTA BANNER ===== */
.cta-banner {
  background: linear-gradient(135deg, var(--bg-header) 0%, #4a3d2e 100%);
  color: #f5efe5;
  text-align: center;
  padding: 3rem 1.5rem;
  border-top: 3px solid var(--sepia);
  border-bottom: 3px solid var(--sepia);
}

.cta-banner h2 {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
  letter-spacing: 0.03em;
}

.cta-banner p {
  color: var(--sepia-pale);
  margin-bottom: 1.5rem;
  font-size: 0.975rem;
  font-family: var(--font-heading);
  font-style: italic;
}

.btn-cta {
  display: inline-block;
  padding: 0.75rem 2.5rem;
  background: var(--sepia);
  color: #faf6f0;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.03em;
  transition: all 0.25s;
}

.btn-cta:hover {
  background: var(--sepia-dark);
  box-shadow: 0 4px 16px rgba(107,90,69,0.4);
}

/* ===== FOOTER ===== */
footer {
  background: var(--bg-header);
  color: #8b7d6b;
  text-align: center;
  padding: 2rem 1.5rem;
  font-size: 0.875rem;
  border-top: 3px solid var(--sepia);
}

footer p { margin: 0; }

/* ===== BREADCRUMBS ===== */
.breadcrumbs {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.breadcrumbs a {
  color: var(--sepia);
  text-decoration: none;
}

.breadcrumbs a:hover { color: var(--sepia-dark); text-decoration: underline; }

/* ===== TAGS ===== */
.tag-sepia {
  display: inline-block;
  padding: 0.2rem 0.7rem;
  border-radius: 20px;
  font-size: 0.82rem;
  background: var(--sepia-pale);
  color: var(--sepia-dark);
  border: 1px solid var(--sepia-light);
}

.tag-blue {
  display: inline-block;
  padding: 0.2rem 0.7rem;
  border-radius: 20px;
  font-size: 0.82rem;
  background: var(--memory-blue-pale);
  color: var(--memory-blue-dark);
  border: 1px solid var(--memory-blue-light);
}

/* ===== LIGHTBOX ===== */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(45,36,24,0.92);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.lightbox.show { display: flex; }

.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: var(--radius);
  border: 3px solid var(--sepia-pale);
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: var(--sepia-pale);
  font-size: 2rem;
  cursor: pointer;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-close:hover { color: #fff; }

/* ===== TIP BOX ===== */
.tip-box {
  background: var(--memory-blue-pale);
  border-left: 4px solid var(--memory-blue);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  color: var(--memory-blue-dark);
  font-size: 0.925rem;
}

/* ===== BLOCKQUOTE ===== */
blockquote {
  border-left: 4px solid var(--sepia);
  padding: 0.75rem 1.25rem;
  margin: 1.5rem 0;
  background: var(--bg-cream);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--text-light);
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1rem;
}

/* ===== STATS ROW ===== */
.stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  padding: 1rem 0;
}

.stat-item {
  text-align: center;
}

.stat-value {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  color: var(--sepia);
  font-weight: 700;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

/* ===== UTILITY ===== */
.text-center { text-align: center; }
.text-muted { color: var(--text-light); }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-1 { margin-bottom: 1rem; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hamburger { display: flex; }

  nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg-header);
    flex-direction: column;
    padding: 0.5rem 1rem 1rem;
    border-bottom: 3px solid var(--sepia);
  }

  nav.show { display: flex; }

  nav a { padding: 0.7rem 0; border-radius: 0; text-align: center; }

  .nav-cta { margin-left: 0; margin-top: 0.25rem; }

  .hero { padding: 3rem 1rem; }
  .hero h1 { font-size: 2rem; }
  .page-hero h1 { font-size: 1.75rem; }

  .feature-grid { grid-template-columns: 1fr; }
  .char-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: repeat(2, 1fr); }
  .guide-step { flex-direction: column; align-items: flex-start; gap: 0.75rem; }

  section { padding: 2.5rem 1rem; }
}

@media (max-width: 480px) {
  .info-grid { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 1.6rem; }
  .hero .tagline { font-size: 1rem; }
}
