/* ============================================================
   女神的旨意 (Goddess's Will) — Divine Mythology Theme
   Soft golds, whites, heavenly light aesthetic
   ============================================================ */

/* --- CSS Variables --- */
:root {
  --gold: #D4AF37;
  --gold-light: #F5D78E;
  --gold-pale: #FFF3D6;
  --gold-dark: #B8960F;
  --white: #FFFFFF;
  --cream: #FFF8E7;
  --cream-dark: #F5EDD6;
  --text: #2C1810;
  --text-muted: #6B5B4E;
  --text-light: #8C7B6E;
  --bg: #FEFCF7;
  --bg-alt: #F8F2E8;
  --border: #E8DCC8;
  --shadow: 0 2px 16px rgba(180, 150, 100, 0.12);
  --shadow-lg: 0 8px 40px rgba(180, 150, 100, 0.18);
  --glow: 0 0 30px rgba(212, 175, 55, 0.2);
  --radius: 12px;
  --radius-sm: 8px;
  --max-width: 1200px;
  --header-h: 72px;
}

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

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

body {
  font-family: 'Noto Serif SC', 'Source Han Serif SC', 'STSong', 'SimSun', 'Songti SC', Georgia, 'Times New Roman', serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.8;
  min-height: 100vh;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Noto Serif SC', 'Source Han Serif SC', 'STSong', 'Songti SC', Georgia, serif;
  font-weight: 700;
  line-height: 1.4;
}

h1 {
  font-size: 2.6rem;
  color: var(--text);
  text-align: center;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold), var(--gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

h2 {
  font-size: 1.8rem;
  color: var(--text);
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.75rem;
}

h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-light), var(--gold), var(--gold-dark));
  border-radius: 3px;
}

h3 {
  font-size: 1.3rem;
  color: var(--gold-dark);
  margin-bottom: 0.75rem;
}

p {
  margin-bottom: 1.2rem;
  color: var(--text);
}

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

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

/* --- Header & Navigation --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 8px rgba(180, 150, 100, 0.08);
}

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

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}

.site-logo img {
  height: 40px;
  width: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.site-nav a {
  color: var(--text-muted);
  font-size: 1rem;
  font-weight: 500;
  padding: 0.4rem 0;
  position: relative;
  transition: color 0.3s ease;
}

.site-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-light), var(--gold));
  transition: width 0.3s ease;
  border-radius: 2px;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--gold-dark);
}

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

/* CTA Button */
.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.6rem;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: #FFFFFF !important;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(212, 175, 55, 0.3);
  white-space: nowrap;
}

.btn-cta:hover {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  box-shadow: 0 6px 24px rgba(212, 175, 55, 0.45);
  transform: translateY(-1px);
  color: #FFFFFF !important;
}

.btn-cta::before {
  content: '⬇';
  font-size: 1rem;
}

/* --- Hero Section --- */
.hero {
  position: relative;
  width: 100%;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(180deg, #1a0a2e 0%, #2d1b4e 30%, #4a2c5e 60%, #8B7355 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(20, 10, 40, 0.7) 0%,
    rgba(40, 20, 60, 0.5) 40%,
    rgba(60, 35, 50, 0.6) 70%,
    rgba(80, 50, 40, 0.8) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  padding: 3rem 2rem;
}

.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  background: linear-gradient(180deg, #FFE7A0, var(--gold), var(--gold-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
  filter: drop-shadow(0 2px 8px rgba(212, 175, 55, 0.3));
}

.hero-subtitle {
  font-size: 1.3rem;
  color: var(--gold-pale);
  margin-bottom: 2rem;
  letter-spacing: 0.05em;
  opacity: 0.9;
}

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

.hero-tag {
  display: inline-block;
  padding: 0.4rem 1.2rem;
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 50px;
  color: var(--gold-light);
  font-size: 0.9rem;
  backdrop-filter: blur(4px);
}

/* --- Sections --- */
.section {
  padding: 5rem 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

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

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

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* --- Cards --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.card-body {
  padding: 1.5rem;
}

.card-body h3 {
  margin-bottom: 0.75rem;
}

.card-body p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* --- Feature List --- */
.feature-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.feature-list li {
  padding: 1.5rem;
  background: var(--white);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.feature-icon {
  font-size: 2rem;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gold-pale);
  border-radius: 50%;
}

.feature-list h4 {
  font-size: 1.1rem;
  color: var(--gold-dark);
  margin-bottom: 0.4rem;
}

.feature-list p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* --- Screenshot Gallery --- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.gallery-item:hover {
  border-color: var(--gold);
  transform: scale(1.02);
}

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

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.75rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: #fff;
  font-size: 0.85rem;
}

/* --- Story Content --- */
.story-content {
  max-width: 800px;
  margin: 0 auto;
}

.story-block {
  margin-bottom: 3rem;
}

.story-block h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--gold-dark);
}

.story-image {
  width: 100%;
  border-radius: var(--radius);
  margin: 1.5rem 0;
  box-shadow: var(--shadow);
}

/* --- Character Cards (larger) --- */
.char-card {
  display: flex;
  gap: 2rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 1px solid var(--border);
  margin-bottom: 2rem;
}

.char-card-img {
  width: 280px;
  flex-shrink: 0;
  object-fit: cover;
}

.char-card-body {
  padding: 2rem;
  flex: 1;
}

.char-card-body h3 {
  font-size: 1.6rem;
  margin-bottom: 0.3rem;
}

.char-role {
  display: inline-block;
  padding: 0.2rem 0.8rem;
  background: var(--gold-pale);
  color: var(--gold-dark);
  border-radius: 50px;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.char-details {
  list-style: none;
  margin-top: 1rem;
}

.char-details li {
  padding: 0.3rem 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.char-details li strong {
  color: var(--text);
  margin-right: 0.5rem;
}

/* --- Guide Page --- */
.guide-section {
  margin-bottom: 3rem;
}

.guide-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.guide-table th {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: #fff;
  padding: 1rem;
  text-align: left;
  font-weight: 600;
}

.guide-table td {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
}

.guide-table tr:last-child td {
  border-bottom: none;
}

.guide-table tr:hover td {
  background: var(--gold-pale);
}

.choice-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow);
}

.choice-box h4 {
  color: var(--gold-dark);
  margin-bottom: 0.5rem;
}

.choice-result {
  margin-top: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--gold-pale);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--gold);
  font-size: 0.9rem;
  color: var(--text-muted);
}

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

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

.faq-question {
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text);
  transition: background 0.3s ease;
}

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

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--gold);
  font-weight: 300;
  transition: transform 0.3s ease;
}

.faq-item.open .faq-question::after {
  content: '−';
}

.faq-answer {
  padding: 0 1.5rem 1.25rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.8;
}

/* --- CTA Banner --- */
.cta-banner {
  background: linear-gradient(135deg, #2d1b4e, #4a2c5e);
  padding: 4rem 2rem;
  text-align: center;
  border-top: 3px solid var(--gold);
  border-bottom: 3px solid var(--gold);
}

.cta-banner h2 {
  color: var(--gold-light);
  margin-bottom: 1rem;
}

.cta-banner h2::after {
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.cta-banner p {
  color: var(--gold-pale);
  margin-bottom: 2rem;
  opacity: 0.9;
}

/* --- Page Header (non-index) --- */
.page-header {
  background: linear-gradient(180deg, #1a0a2e 0%, #2d1b4e 60%, #4a2c5e 100%);
  padding: 4rem 2rem;
  text-align: center;
}

.page-header h1 {
  color: var(--gold-light);
  -webkit-text-fill-color: var(--gold-light);
  margin-bottom: 0.5rem;
}

.page-header p {
  color: var(--gold-pale);
  font-size: 1.1rem;
  opacity: 0.85;
}

/* --- Footer --- */
.site-footer {
  background: #1a0a2e;
  padding: 2rem;
  text-align: center;
  color: var(--text-light);
  font-size: 0.85rem;
}

.site-footer p {
  color: var(--text-light);
  margin-bottom: 0.3rem;
}

/* --- Breadcrumb --- */
.breadcrumb {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.5rem 2rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

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

.breadcrumb a:hover {
  color: var(--gold-dark);
}

.breadcrumb span {
  color: var(--gold-dark);
}

/* --- Responsive --- */
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  .hero { min-height: 50vh; }
  .hero-content h1 { font-size: 2.2rem; }
  .hero-subtitle { font-size: 1rem; }
  .section { padding: 3rem 1.2rem; }
  .header-inner { padding: 0 1rem; }
  .site-nav { gap: 1rem; }
  .site-nav a { font-size: 0.9rem; }

  .char-card {
    flex-direction: column;
  }
  .char-card-img {
    width: 100%;
    height: 280px;
  }
  .card-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .site-nav { gap: 0.7rem; }
  .site-nav a { font-size: 0.8rem; }
  .btn-cta { padding: 0.5rem 1rem; font-size: 0.85rem; }
}

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

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: var(--radius-sm);
  box-shadow: 0 0 60px rgba(212, 175, 55, 0.2);
}

.lightbox-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.15);
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.lightbox-close:hover {
  background: rgba(255,255,255,0.3);
}

/* --- Endings Grid --- */
.endings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.ending-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  text-align: center;
}

.ending-card .ending-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.ending-card h4 {
  color: var(--gold-dark);
  margin-bottom: 0.5rem;
}

.ending-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* --- Utility --- */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.max-w-800 { max-width: 800px; }
