/* ============================================
   魔女的侵袭 - Witch Invasion Theme
   Witch-Purple + Spell-Fire Green on Light Mystical BG
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
  /* Witch-purple palette */
  --purple-dark: #5c1d8a;
  --purple: #8b2fc9;
  --purple-mid: #a855f7;
  --purple-light: #c084fc;
  --purple-pale: #e9d5ff;

  /* Spell-fire green palette */
  --green-dark: #1a6b3c;
  --green: #22c55e;
  --green-mid: #4ade80;
  --green-light: #86efac;
  --green-pale: #dcfce7;
  --green-fire: #50fa7b;

  /* Mystical background */
  --bg: #f8f6fc;
  --bg-card: #ffffff;
  --bg-alt: #f3eff9;

  /* Text */
  --text: #1e1b2e;
  --text-muted: #6b647a;
  --text-light: #9a94a8;

  /* Header */
  --header-bg: #1a1228;
  --header-text: #f5f0ff;
  --header-border: #8b2fc9;

  /* UI */
  --radius: 8px;
  --radius-lg: 16px;
  --shadow: 0 2px 8px rgba(91, 29, 138, 0.08);
  --shadow-lg: 0 8px 32px rgba(91, 29, 138, 0.12);
  --shadow-green: 0 4px 16px rgba(34, 197, 94, 0.15);

  /* Fonts */
  --font-heading: 'Noto Serif SC', 'STSong', 'SimSun', 'KaiTi', serif;
  --font-body: 'PingFang SC', 'Microsoft YaHei', 'Hiragino Sans GB', sans-serif;
}

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

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

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Mystical ambient glow */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(ellipse 40% 50% at 20% 20%, rgba(139, 47, 201, 0.04) 0%, transparent 70%),
    radial-gradient(ellipse 35% 45% at 80% 30%, rgba(34, 197, 94, 0.03) 0%, transparent 70%),
    radial-gradient(ellipse 30% 35% at 50% 80%, rgba(139, 47, 201, 0.03) 0%, transparent 70%);
}

/* --- Typography --- */
h1, h2, h3, h4 { font-family: var(--font-heading); line-height: 1.3; }
h1 { font-size: 2.4rem; color: var(--purple-dark); }
h2 { font-size: 1.8rem; color: var(--purple); margin-bottom: 0.75rem; }
h3 { font-size: 1.3rem; color: var(--text); margin-bottom: 0.5rem; }
h4 { font-size: 1.1rem; color: var(--purple-mid); }

p { margin-bottom: 1rem; }
a { color: var(--purple); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--purple-dark); }
img { max-width: 100%; height: auto; display: block; }

/* --- Utility --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.accent-text { color: var(--purple); }
.green-text { color: var(--green-dark); }
.section-padding { padding: 4rem 0; }
.section-alt { background: var(--bg-alt); }

/* --- Header --- */
.site-header {
  background: var(--header-bg);
  border-bottom: 3px solid var(--header-border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 16px rgba(26, 18, 40, 0.3);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--header-text);
  text-decoration: none;
}

.site-logo:hover { color: var(--purple-light); }

.site-logo .logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--purple), var(--green));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

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

.main-nav a {
  color: var(--header-text);
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
  transition: all 0.2s;
  text-decoration: none;
}

.main-nav a:hover,
.main-nav a.active {
  background: rgba(139, 47, 201, 0.25);
  color: var(--purple-light);
}

.nav-cta {
  background: linear-gradient(135deg, var(--purple), var(--purple-mid)) !important;
  color: #fff !important;
  font-weight: 600;
  padding: 0.5rem 1.25rem !important;
  border-radius: var(--radius) !important;
  box-shadow: 0 2px 12px rgba(139, 47, 201, 0.4);
  transition: all 0.25s !important;
}

.nav-cta:hover {
  background: linear-gradient(135deg, var(--purple-mid), var(--purple-light)) !important;
  box-shadow: 0 4px 20px rgba(139, 47, 201, 0.6) !important;
  transform: translateY(-1px);
}

/* Hamburger */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--header-text);
  margin: 5px 0;
  transition: all 0.3s;
}

/* --- Hero --- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 5rem 0;
  background: linear-gradient(135deg, #1a1228 0%, #2d1b4e 50%, #1a2e1a 100%);
  color: #f5f0ff;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 25% 50%, rgba(139, 47, 201, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 75% 50%, rgba(34, 197, 94, 0.2) 0%, transparent 50%);
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-content h1 {
  font-size: 2.8rem;
  color: #fff;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, var(--purple-light), var(--green-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--purple-pale);
  margin-bottom: 1.5rem;
  font-family: var(--font-heading);
}

.hero-desc {
  font-size: 1.05rem;
  color: #c4b8d4;
  margin-bottom: 2rem;
  line-height: 1.8;
}

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

.hero-tags .tag {
  padding: 0.3rem 0.9rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

.tag-purple { background: rgba(139, 47, 201, 0.2); color: var(--purple-light); border: 1px solid rgba(139, 47, 201, 0.3); }
.tag-green { background: rgba(34, 197, 94, 0.2); color: var(--green-light); border: 1px solid rgba(34, 197, 94, 0.3); }
.tag-gold { background: rgba(201, 160, 48, 0.2); color: #e8c96a; border: 1px solid rgba(201, 160, 48, 0.3); }
.tag-dark { background: rgba(255,255,255,0.08); color: #a89bb8; border: 1px solid rgba(255,255,255,0.1); }

.hero-visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(91, 29, 138, 0.3);
  border: 2px solid rgba(139, 47, 201, 0.3);
}

.hero-visual img {
  width: 100%;
  height: auto;
  display: block;
}

.hero-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(26, 18, 40, 0.4) 0%, transparent 40%);
  pointer-events: none;
}

/* --- Page Hero (sub-pages) --- */
.page-hero {
  background: linear-gradient(135deg, #1a1228 0%, #2d1b4e 100%);
  color: #f5f0ff;
  padding: 3rem 0;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 50%, rgba(139, 47, 201, 0.2) 0%, transparent 50%),
    radial-gradient(circle at 70% 50%, rgba(34, 197, 94, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.page-hero .container { position: relative; z-index: 1; }

.page-hero h1 {
  color: #fff;
  background: linear-gradient(135deg, var(--purple-light), var(--green-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-hero p { color: #c4b8d4; font-size: 1.1rem; max-width: 700px; }

/* Breadcrumbs */
.breadcrumbs {
  padding: 1rem 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  background: var(--bg-alt);
  border-bottom: 1px solid rgba(139, 47, 201, 0.1);
}

.breadcrumbs .container { display: flex; gap: 0.5rem; align-items: center; }

.breadcrumbs a { color: var(--purple); }

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

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
  cursor: pointer;
  border: none;
  transition: all 0.25s;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--purple), var(--purple-mid));
  color: #fff;
  box-shadow: 0 4px 16px rgba(139, 47, 201, 0.4);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--purple-dark), var(--purple));
  box-shadow: 0 6px 24px rgba(139, 47, 201, 0.5);
  transform: translateY(-2px);
  color: #fff;
}

.btn-green {
  background: linear-gradient(135deg, var(--green-dark), var(--green));
  color: #fff;
  box-shadow: 0 4px 16px rgba(34, 197, 94, 0.3);
}

.btn-green:hover {
  background: linear-gradient(135deg, #145a2e, var(--green-mid));
  box-shadow: 0 6px 24px rgba(34, 197, 94, 0.45);
  transform: translateY(-2px);
  color: #fff;
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--purple);
  color: var(--purple);
}

.btn-outline:hover {
  background: var(--purple);
  color: #fff;
}

.btn-lg { padding: 1rem 2.5rem; font-size: 1.1rem; border-radius: var(--radius-lg); }

/* --- Cards --- */
.card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: all 0.3s;
  border: 1px solid rgba(139, 47, 201, 0.08);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(139, 47, 201, 0.2);
}

/* --- Info Cards --- */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.info-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  border-left: 4px solid var(--purple);
  box-shadow: var(--shadow);
  transition: all 0.3s;
}

.info-card:hover {
  border-left-color: var(--green);
  box-shadow: var(--shadow-lg);
}

.info-card .info-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.info-card h3 { margin-bottom: 0.5rem; font-size: 1.15rem; }

.info-card p { color: var(--text-muted); font-size: 0.95rem; }

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

.feature-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  border-left: 4px solid var(--purple);
  box-shadow: var(--shadow);
  transition: all 0.3s;
}

.feature-card:hover {
  border-left-color: var(--green);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.feature-card .feature-icon {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.feature-card h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }

.feature-card p { color: var(--text-muted); font-size: 0.95rem; }

/* --- Story Blocks --- */
.story-block {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 1.5rem;
  border-left: 4px solid var(--purple);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.story-block::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 120px; height: 120px;
  background: radial-gradient(circle, rgba(139, 47, 201, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.story-block:hover { border-left-color: var(--green); }

.story-chapter {
  display: inline-block;
  background: linear-gradient(135deg, var(--purple), var(--purple-mid));
  color: #fff;
  padding: 0.2rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

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

.char-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s;
  border: 1px solid rgba(139, 47, 201, 0.08);
}

.char-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(139, 47, 201, 0.2);
}

.char-card-header {
  background: linear-gradient(135deg, var(--header-bg), #2d1b4e);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.char-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--green-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
  border: 2px solid rgba(255,255,255,0.2);
}

.char-info h3 {
  color: #fff;
  margin: 0;
  font-size: 1.15rem;
}

.char-role {
  color: var(--purple-light);
  font-size: 0.85rem;
}

.char-card-body {
  padding: 1.25rem;
}

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

.char-image {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.char-image img { width: 100%; height: 100%; object-fit: cover; }

/* --- Guide Steps --- */
.guide-steps {
  display: grid;
  gap: 1.25rem;
}

.guide-step {
  display: flex;
  gap: 1.25rem;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: all 0.3s;
  border: 1px solid rgba(139, 47, 201, 0.06);
}

.guide-step:hover {
  box-shadow: var(--shadow-lg);
  border-color: rgba(139, 47, 201, 0.15);
}

.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--purple-mid));
  color: #fff;
  font-weight: 700;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(139, 47, 201, 0.3);
}

.step-content h3 { margin-bottom: 0.25rem; }
.step-content p { color: var(--text-muted); margin: 0; }

/* --- Tip Boxes --- */
.tip-box {
  background: var(--green-pale);
  border-left: 4px solid var(--green);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}

.tip-box p { margin: 0; color: var(--green-dark); font-size: 0.95rem; }

.warning-box {
  background: #fef3c7;
  border-left: 4px solid #f59e0b;
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}

.warning-box p { margin: 0; color: #92400e; font-size: 0.95rem; }

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

.gallery-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  position: relative;
  aspect-ratio: 16/9;
  box-shadow: var(--shadow);
  transition: all 0.3s;
  border: 2px solid transparent;
}

.gallery-item:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-lg);
  border-color: var(--purple);
}

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

.gallery-item .gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26, 18, 40, 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: 2rem;
}

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

.lightbox.active { display: flex; }

.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: var(--radius);
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  font-size: 2.5rem;
  color: #fff;
  cursor: pointer;
  background: none;
  border: none;
  z-index: 1001;
}

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

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

.faq-item {
  background: var(--bg-card);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  border: 1px solid rgba(139, 47, 201, 0.08);
  overflow: hidden;
  transition: all 0.3s;
}

.faq-item:hover { border-color: rgba(139, 47, 201, 0.2); }

.faq-item.active { border-color: var(--purple); box-shadow: var(--shadow); }

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.15rem 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  text-align: left;
  font-family: var(--font-body);
}

.faq-question:hover { color: var(--purple); }

.faq-toggle {
  font-size: 1.5rem;
  color: var(--purple);
  transition: transform 0.3s;
  flex-shrink: 0;
  margin-left: 1rem;
}

.faq-item.active .faq-toggle { transform: rotate(45deg); color: var(--green); }

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

.faq-item.active .faq-answer { max-height: 500px; }

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

/* --- Download Card --- */
.download-card {
  background: linear-gradient(135deg, var(--bg-card), var(--purple-pale));
  border: 2px solid var(--purple-light);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
  box-shadow: 0 8px 32px rgba(139, 47, 201, 0.12);
}

.download-card h3 { color: var(--purple-dark); margin-bottom: 0.75rem; }

.download-card .version { color: var(--purple-mid); font-weight: 600; margin-bottom: 0.5rem; }

.download-card .file-info {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin: 1rem 0 1.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  flex-wrap: wrap;
}

/* --- Split cards on index (dual version) --- */
.download-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.download-option {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow);
  border: 2px solid transparent;
  transition: all 0.3s;
}

.download-option:hover {
  border-color: var(--purple);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.download-option.green:hover { border-color: var(--green); }

.download-option h3 { margin-bottom: 0.5rem; }
.download-option .version-tag {
  display: inline-block;
  padding: 0.2rem 0.8rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.download-option .version-tag.purple { background: var(--purple-pale); color: var(--purple-dark); }
.download-option .version-tag.green { background: var(--green-pale); color: var(--green-dark); }

.download-option .file-meta {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0.75rem 0 1.25rem;
}

/* --- CTA Banner --- */
.cta-banner {
  background: linear-gradient(135deg, #1a1228, #2d1b4e);
  color: #f5f0ff;
  padding: 3rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 50%, rgba(139, 47, 201, 0.25) 0%, transparent 50%),
    radial-gradient(circle at 70% 50%, rgba(34, 197, 94, 0.15) 0%, transparent 50%);
  pointer-events: none;
}

.cta-banner .container { position: relative; z-index: 1; }

.cta-banner h2 { color: #fff; margin-bottom: 0.75rem; }
.cta-banner p { color: var(--purple-pale); margin-bottom: 1.5rem; font-size: 1.05rem; }

/* --- Stats Row --- */
.stats-row {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  margin: 2rem 0;
}

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

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--purple), var(--green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-family: var(--font-heading);
}

.stat-label { color: var(--text-muted); font-size: 0.9rem; }

/* --- Requirements table --- */
.req-table {
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
  border-collapse: collapse;
}

.req-table th {
  background: linear-gradient(135deg, var(--header-bg), #2d1b4e);
  color: #fff;
  padding: 0.75rem 1.25rem;
  text-align: left;
  font-size: 0.95rem;
}

.req-table td {
  padding: 0.6rem 1.25rem;
  border-bottom: 1px solid rgba(139, 47, 201, 0.1);
  font-size: 0.95rem;
}

.req-table tr:nth-child(even) td { background: rgba(139, 47, 201, 0.03); }

/* --- Version Timeline --- */
.timeline { position: relative; padding-left: 2rem; }

.timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--purple), var(--green));
}

.timeline-item {
  position: relative;
  padding: 0.75rem 0 0.75rem 2rem;
  margin-bottom: 0.5rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -1.65rem;
  top: 1.1rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--purple);
  border: 3px solid var(--purple-pale);
}

.timeline-item:nth-child(even)::before { background: var(--green); border-color: var(--green-pale); }

.timeline-item h4 { margin-bottom: 0.25rem; font-size: 1.05rem; }
.timeline-item .timeline-date { color: var(--purple-mid); font-size: 0.85rem; font-weight: 600; }
.timeline-item ul { color: var(--text-muted); font-size: 0.9rem; padding-left: 1.25rem; }

/* --- Review Cards --- */
.review-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  border: 1px solid rgba(139, 47, 201, 0.1);
  box-shadow: var(--shadow);
}

.review-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.review-stars { color: #f59e0b; font-size: 1.1rem; }
.review-author { color: var(--text-muted); font-size: 0.85rem; }
.review-body { color: var(--text); font-size: 0.95rem; line-height: 1.7; }

/* --- Divider --- */
.witch-divider {
  text-align: center;
  margin: 2rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.witch-divider::before,
.witch-divider::after {
  content: '';
  height: 2px;
  width: 60px;
  background: linear-gradient(90deg, var(--purple), var(--green));
}

.witch-divider span { font-size: 1.3rem; }

/* --- Potion bubble decorative --- */
.cauldron-section {
  position: relative;
  overflow: hidden;
}

.cauldron-section::before {
  content: '';
  position: absolute;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 47, 201, 0.1) 0%, transparent 70%);
  top: 15%;
  right: 10%;
  pointer-events: none;
  animation: bubbleFloat 6s ease-in-out infinite;
}

.cauldron-section::after {
  content: '';
  position: absolute;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.1) 0%, transparent 70%);
  bottom: 20%;
  left: 8%;
  pointer-events: none;
  animation: bubbleFloat 8s ease-in-out infinite reverse;
}

@keyframes bubbleFloat {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.6; }
  50% { transform: translateY(-20px) scale(1.2); opacity: 0.3; }
}

/* --- Section title with accent line --- */
.section-title {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-title h2 { display: inline-block; position: relative; }

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, var(--purple), var(--green));
  border-radius: 2px;
}

/* --- Blockquote --- */
blockquote {
  background: var(--purple-pale);
  border-left: 4px solid var(--purple);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--purple-dark);
}

/* --- Spacing Utilities --- */
.mt-sm { margin-top: 0.75rem; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }

/* --- Footer --- */
.site-footer {
  background: var(--header-bg);
  color: #6b647a;
  text-align: center;
  padding: 2rem 0;
  font-size: 0.9rem;
  border-top: 3px solid var(--header-border);
}

/* --- Breadcrumbs nav --- */
.breadcrumbs-nav {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  font-size: 0.9rem;
}

.breadcrumbs-nav a { color: var(--purple); }

.breadcrumbs-nav .sep { color: var(--text-light); }

/* --- Install Steps --- */
.install-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  text-align: center;
}

.install-step {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(139, 47, 201, 0.06);
}

.install-step .step-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--green));
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.75rem;
}

.install-step h4 { margin-bottom: 0.25rem; }

.install-step p { color: var(--text-muted); font-size: 0.9rem; margin: 0; }

/* --- Responsive --- */
@media (max-width: 768px) {
  html { font-size: 15px; }

  .menu-toggle { display: block; }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--header-bg);
    flex-direction: column;
    padding: 1rem;
    border-top: 1px solid rgba(139, 47, 201, 0.2);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  }

  .main-nav.open { display: flex; }

  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-tags { justify-content: center; }

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

  .download-split { grid-template-columns: 1fr; }

  .gallery-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

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

  .stats-row { gap: 1.5rem; }

  .info-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .container { padding: 0 1rem; }

  .hero { padding: 3rem 0; }

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

  .section-padding { padding: 2.5rem 0; }

  .guide-step { flex-direction: column; align-items: flex-start; }
}
