/* ============================================================
   Amnesia 中文官网 — 褪色记忆主题样式
   Color: 雾蓝 #90A4AE  淡紫 #CE93D8  记忆黄 #FFF9C4  纯白 #FDFDFD
   ============================================================ */

/* ========== CSS VARIABLES ========== */
:root {
  --color-fog-blue: #90A4AE;
  --color-fog-blue-light: #B0BEC5;
  --color-fog-blue-dark: #78909C;
  --color-lavender: #CE93D8;
  --color-lavender-light: #E1BEE7;
  --color-lavender-dark: #AB47BC;
  --color-memory-yellow: #FFF9C4;
  --color-memory-yellow-dark: #FFF176;
  --color-white: #FDFDFD;
  --color-off-white: #F5F5F5;
  --color-text-primary: #37474F;
  --color-text-secondary: #607D8B;
  --color-text-muted: #90A4AE;
  --color-border: #E0E0E0;
  --color-shadow: rgba(144, 164, 174, 0.15);
  --color-overlay: rgba(55, 71, 79, 0.4);

  --font-sans: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', sans-serif;
  --font-serif: 'Georgia', 'STSong', 'Noto Serif SC', 'SimSun', serif;
  --font-mono: 'Consolas', 'SF Mono', 'Cascadia Code', monospace;

  --max-width: 1200px;
  --content-width: 860px;
  --header-height: 72px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-lavender-dark);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--color-lavender);
}

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

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

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

.section-padding {
  padding: 80px 24px;
}

.section-alt {
  background-color: var(--color-memory-yellow);
}

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

.text-muted {
  color: var(--color-text-muted);
}

.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.mb-5 { margin-bottom: 48px; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mt-5 { margin-top: 48px; }

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ========== HEADER / NAVIGATION ========== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(253, 253, 253, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  height: var(--header-height);
}

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

.site-logo {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text-primary);
  letter-spacing: 2px;
}

.site-logo span {
  color: var(--color-lavender);
}

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

.nav-main a {
  color: var(--color-text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
  padding: 4px 0;
}

.nav-main a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-lavender);
  transition: width 0.3s ease;
}

.nav-main a:hover::after,
.nav-main a.active::after {
  width: 100%;
}

.nav-main a.active {
  color: var(--color-lavender-dark);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, var(--color-lavender), var(--color-lavender-light));
  color: var(--color-white) !important;
  padding: 10px 24px !important;
  border-radius: 24px;
  font-weight: 600 !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

.nav-cta::after {
  display: none !important;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(206, 147, 216, 0.4);
  color: var(--color-white) !important;
}

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

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

.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;
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--color-fog-blue-dark), var(--color-fog-blue-light));
  margin-top: var(--header-height);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.35;
  filter: blur(1px) saturate(0.5);
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(253,253,253,0) 30%, rgba(253,253,253,0.85) 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 60px 24px;
}

.hero-title-main {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--color-white);
  text-shadow: 0 2px 20px rgba(55, 71, 79, 0.3);
  letter-spacing: 4px;
  margin-bottom: 16px;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--color-memory-yellow);
  font-weight: 400;
  letter-spacing: 8px;
  margin-bottom: 32px;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--color-lavender), var(--color-lavender-light));
  color: var(--color-white);
  padding: 14px 40px;
  border-radius: 30px;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 2px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(206, 147, 216, 0.5);
  color: var(--color-white);
}

/* Sub-page hero */
.hero-subpage {
  min-height: 280px;
  background: linear-gradient(135deg, var(--color-fog-blue-dark), var(--color-lavender));
  margin-top: var(--header-height);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-subpage .hero-bg {
  opacity: 0.25;
  filter: blur(2px) saturate(0.4);
}

.hero-subpage .hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.hero-subpage h1 {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-white);
  text-shadow: 0 2px 15px rgba(55, 71, 79, 0.3);
  letter-spacing: 3px;
}

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

/* ========== SECTION TITLES ========== */
.section-title {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--color-text-primary);
  text-align: center;
  margin-bottom: 12px;
  letter-spacing: 2px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  text-align: center;
  margin-bottom: 48px;
  letter-spacing: 4px;
}

.divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-lavender-light), var(--color-lavender-dark));
  margin: 0 auto 48px;
  border-radius: 2px;
}

/* ========== FEATURE CARDS (Home) ========== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.feature-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px var(--color-shadow);
  border-color: var(--color-lavender-light);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: 10px;
}

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

/* ========== SCREENSHOT GALLERY ========== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.gallery-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--color-border);
}

.gallery-item:hover {
  transform: scale(1.03);
  box-shadow: 0 10px 30px var(--color-shadow);
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

/* ========== REVIEWS ========== */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.review-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  position: relative;
}

.review-card::before {
  content: '\201C';
  position: absolute;
  top: 8px;
  left: 16px;
  font-family: var(--font-serif);
  font-size: 3rem;
  color: var(--color-lavender-light);
  line-height: 1;
}

.review-card p {
  font-size: 0.93rem;
  color: var(--color-text-secondary);
  line-height: 1.8;
  margin-bottom: 16px;
  padding-top: 12px;
}

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

.review-stars {
  color: var(--color-memory-yellow-dark);
  margin-bottom: 8px;
  font-size: 0.9rem;
  letter-spacing: 2px;
}

/* ========== CTA BANNER (Home only) ========== */
.cta-banner {
  background: linear-gradient(135deg, var(--color-fog-blue-dark), var(--color-lavender));
  padding: 60px 24px;
  text-align: center;
}

.cta-banner h2 {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 12px;
}

.cta-banner p {
  color: var(--color-memory-yellow);
  font-size: 1.05rem;
  margin-bottom: 28px;
  letter-spacing: 2px;
}

.cta-btn-large {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-white);
  color: var(--color-lavender-dark);
  padding: 16px 48px;
  border-radius: 32px;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 2px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-btn-large:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(206, 147, 216, 0.5);
  color: var(--color-lavender);
}

/* ========== CONTENT PAGES ========== */
.content-section {
  padding: 60px 24px 80px;
}

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

.content-section h3 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-top: 36px;
  margin-bottom: 14px;
  padding-left: 12px;
  border-left: 4px solid var(--color-lavender);
}

.content-section p {
  font-size: 0.98rem;
  color: var(--color-text-secondary);
  line-height: 1.9;
  margin-bottom: 16px;
  text-indent: 2em;
}

.content-section .intro-text {
  font-size: 1.08rem;
  color: var(--color-text-primary);
  font-weight: 500;
  text-indent: 0;
  margin-bottom: 24px;
}

/* ========== CHARACTER CARDS ========== */
.char-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 28px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 28px;
  margin-bottom: 28px;
  transition: box-shadow 0.3s ease;
}

.char-card:hover {
  box-shadow: 0 8px 30px var(--color-shadow);
}

.char-avatar {
  width: 180px;
  height: 220px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: var(--color-fog-blue-light);
}

.char-info h3 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: 6px;
}

.char-role {
  display: inline-block;
  background: var(--color-memory-yellow);
  color: var(--color-text-primary);
  padding: 3px 14px;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 14px;
}

.char-info p {
  font-size: 0.94rem;
  color: var(--color-text-secondary);
  line-height: 1.85;
  margin-bottom: 8px;
}

.char-info ul {
  list-style: disc;
  padding-left: 20px;
  color: var(--color-text-secondary);
  font-size: 0.93rem;
  line-height: 1.8;
}

/* ========== GUIDE / STORY CONTENT ========== */
.info-box {
  background: var(--color-off-white);
  border-left: 4px solid var(--color-lavender);
  padding: 20px 24px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 24px;
}

.info-box p {
  margin-bottom: 6px;
  text-indent: 0;
  font-size: 0.93rem;
  color: var(--color-text-primary);
}

.info-box strong {
  color: var(--color-lavender-dark);
  margin-right: 8px;
}

.tip-box {
  background: var(--color-memory-yellow);
  border: 1px solid var(--color-memory-yellow-dark);
  padding: 18px 24px;
  border-radius: var(--radius-sm);
  margin: 24px 0;
}

.tip-box p {
  text-indent: 0;
  margin-bottom: 4px;
  color: var(--color-text-primary);
  font-size: 0.93rem;
}

.tip-box strong {
  color: var(--color-lavender-dark);
}

/* ========== FAQ ACCORDION ========== */
.faq-list {
  max-width: var(--content-width);
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  text-align: left;
  background: var(--color-white);
  border: none;
  padding: 20px 24px;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: background 0.3s ease;
}

.faq-question:hover {
  background: var(--color-off-white);
}

.faq-question .faq-icon {
  font-size: 1.2rem;
  color: var(--color-lavender);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.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: 500px;
}

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

/* ========== LIGHTBOX ========== */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(55, 71, 79, 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 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 32px;
  font-size: 2rem;
  color: var(--color-white);
  cursor: pointer;
  background: none;
  border: none;
  transition: color 0.3s ease;
}

.lightbox-close:hover {
  color: var(--color-lavender-light);
}

/* ========== FOOTER ========== */
.site-footer {
  background: var(--color-fog-blue-dark);
  padding: 32px 24px;
  text-align: center;
}

.site-footer p {
  color: var(--color-white);
  font-size: 0.9rem;
  opacity: 0.8;
}

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

  .nav-main {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: rgba(253, 253, 253, 0.96);
    backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 28px 24px;
    gap: 20px;
    transform: translateY(-120%);
    transition: transform 0.3s ease;
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 10px 30px var(--color-shadow);
  }

  .nav-main.active {
    transform: translateY(0);
  }

  .features-grid,
  .reviews-grid,
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-2, .grid-3 {
    grid-template-columns: 1fr;
  }

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

  .hero-subpage h1 {
    font-size: 2rem;
  }

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

  .char-avatar {
    width: 140px;
    height: 170px;
    margin: 0 auto;
  }

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

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

  .section-padding {
    padding: 60px 20px;
  }

  .content-section {
    padding: 40px 20px 60px;
  }
}

/* ========== RESPONSIVE: 480px ========== */
@media (max-width: 480px) {
  .features-grid,
  .reviews-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 360px;
  }

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

  .hero-subtitle {
    font-size: 0.95rem;
    letter-spacing: 4px;
  }

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

  .hero-subpage {
    min-height: 200px;
  }

  .hero-subpage h1 {
    font-size: 1.6rem;
  }

  .section-padding {
    padding: 48px 16px;
  }

  .content-section {
    padding: 32px 16px 48px;
  }

  .cta-banner {
    padding: 40px 16px;
  }

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

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

  .divider {
    margin-bottom: 32px;
  }

  .container, .prose {
    padding: 0 16px;
  }

  .char-card {
    padding: 20px;
  }

  .site-logo {
    font-size: 1.25rem;
  }

  .nav-cta {
    padding: 8px 16px !important;
    font-size: 0.88rem !important;
  }
}
