/* ============================================================
   Anime Academy Theme — 二次元老婆学院
   Cherry-blossom pinks + school-uniform blues + chalkboard greens
   Playful campus aesthetic on light background
   ============================================================ */

/* --- CSS Custom Properties --- */
:root {
  /* Sakura / Cherry Blossom Pink */
  --accent: #f4a7b9;
  --accent-hover: #e892a6;
  --accent-light: #fef0f3;
  --accent-glow: rgba(244, 167, 185, 0.30);

  /* School-Uniform Navy Blue */
  --blue: #3a6090;
  --blue-dark: #2c3e6b;
  --blue-light: #e8f0fe;
  --blue-glow: rgba(58, 96, 144, 0.18);

  /* Chalkboard Green */
  --green: #5a8a6a;
  --green-light: #e8f5e9;
  --green-glow: rgba(90, 138, 106, 0.15);

  /* Light campus background */
  --bg: #faf8f5;
  --bg-card: #ffffff;
  --bg-cream: #f5f0e6;
  --bg-header: #2c3e6b;

  /* Text */
  --text: #2d1f1a;
  --text-light: #6b5e55;
  --text-muted: #9c8e84;
  --text-on-dark: #f0ece6;

  /* Borders & Dividers */
  --border: #e0d8ce;
  --border-light: #efe9df;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.10);

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;

  /* Typography */
  --font: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', system-ui, sans-serif;
  --font-heading: 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', system-ui, sans-serif;
  --max-width: 1100px;
  --header-h: 64px;

  /* Transitions */
  --ease: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Sakura petal body decoration --- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(244, 167, 185, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 85% 60%, rgba(244, 167, 185, 0.06) 0%, transparent 40%),
    radial-gradient(circle at 50% 85%, rgba(90, 138, 106, 0.05) 0%, transparent 35%),
    radial-gradient(circle at 30% 70%, rgba(58, 96, 144, 0.04) 0%, transparent 35%);
}

/* --- 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);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* ============================================================
   HEADER — Dark navy with sakura pink bottom border
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-header);
  border-bottom: 3px solid var(--accent);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
  height: var(--header-h);
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.logo-icon {
  width: 36px;
  height: 36px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #fff;
  flex-shrink: 0;
}
.logo-text { white-space: nowrap; }
.logo-text .logo-sub {
  display: block;
  font-size: 0.6rem;
  font-weight: 400;
  opacity: 0.7;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 500;
  transition: all var(--ease);
  white-space: nowrap;
}
.main-nav a:hover, .main-nav a.active { color: #fff; background: rgba(255, 255, 255, 0.1); }
.nav-cta {
  background: var(--accent) !important;
  color: var(--blue-dark) !important;
  font-weight: 700 !important;
  padding: 8px 20px !important;
  border-radius: 20px !important;
  margin-left: 8px;
  transition: all var(--ease) !important;
}
.nav-cta:hover {
  background: var(--accent-hover) !important;
  box-shadow: 0 2px 10px var(--accent-glow);
  transform: translateY(-1px);
}
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; background: none; border: none; }
.hamburger span { display: block; width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: all var(--ease); }

/* ============================================================
   HERO — Navy-to-pink gradient with sakura glow
   ============================================================ */
.hero {
  background: linear-gradient(135deg, var(--blue-dark) 0%, #1a2a4a 40%, var(--accent-hover) 100%);
  position: relative;
  overflow: hidden;
  padding: 80px 24px;
  text-align: center;
  color: #fff;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 40%, var(--accent-glow) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 60%, var(--blue-glow) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 90%, var(--green-glow) 0%, transparent 50%);
}
.hero-content { position: relative; z-index: 2; max-width: 800px; margin: 0 auto; }
.hero h1 {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #fff 20%, #ffe0e8 60%, #ffd0d8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.04em;
  line-height: 1.3;
}
.hero-subtitle { font-size: 1.15rem; color: rgba(255, 255, 255, 0.85); margin-bottom: 10px; font-weight: 400; }
.hero-desc { font-size: 1rem; color: rgba(255, 255, 255, 0.7); max-width: 600px; margin: 0 auto 32px; line-height: 1.8; }
.hero-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 32px; }
.tag {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(4px);
}
.tag-pink { background: var(--accent); border-color: var(--accent); color: var(--blue-dark); font-weight: 600; }
.tag-blue { background: rgba(58, 96, 144, 0.5); border-color: rgba(58, 96, 144, 0.6); color: #fff; }
.tag-green { background: rgba(90, 138, 106, 0.5); border-color: rgba(90, 138, 106, 0.6); color: #fff; }
.tag-gold { background: rgba(201, 160, 48, 0.5); border-color: rgba(201, 160, 48, 0.6); color: #fff; }
.btn-hero {
  display: inline-block;
  padding: 14px 40px;
  background: var(--accent);
  color: var(--blue-dark);
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 28px;
  text-decoration: none;
  transition: all var(--ease);
  box-shadow: 0 4px 20px var(--accent-glow);
}
.btn-hero:hover { background: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 8px 28px var(--accent-glow); }

/* Page hero (sub-pages) */
.page-hero {
  background: linear-gradient(135deg, var(--blue-dark) 0%, #1a2a4a 100%);
  position: relative;
  overflow: hidden;
  padding: 48px 24px;
  text-align: center;
  color: #fff;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 100%, var(--accent-glow) 0%, transparent 60%),
    radial-gradient(ellipse at 30% 30%, var(--green-glow) 0%, transparent 50%);
}
.page-hero .hero-content { position: relative; z-index: 2; }
.page-hero h1 { font-size: 2.2rem; margin-bottom: 8px; }

/* Sakura petal divider */
.petal-divider {
  text-align: center;
  font-size: 1.2rem;
  color: var(--accent);
  letter-spacing: 8px;
  margin: 16px 0;
  opacity: 0.7;
}

/* Chalkboard accent line */
.accent-line {
  height: 4px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--green) 40%, var(--blue) 70%, var(--accent) 100%);
  margin: 0;
}

/* ============================================================
   SECTIONS, CARDS
   ============================================================ */
.section { padding: 64px 24px; max-width: var(--max-width); margin: 0 auto; position: relative; z-index: 1; }
.section-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  text-align: center;
  margin-bottom: 8px;
  position: relative;
}
.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--blue));
  margin: 10px auto 0;
  border-radius: 2px;
}
.section-subtitle { text-align: center; color: var(--text-light); font-size: 1rem; margin-bottom: 40px; }
.section-compact { padding: 40px 24px; }

/* Info cards */
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-bottom: 40px; }
.info-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: all var(--ease);
  border-left: 4px solid var(--blue);
}
.info-card:hover { box-shadow: var(--shadow-md); border-left-color: var(--accent); transform: translateY(-2px); }
.info-card .card-icon { font-size: 1.8rem; margin-bottom: 10px; }
.info-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 6px; color: var(--text); }
.info-card p { font-size: 0.9rem; color: var(--text-light); line-height: 1.6; }

/* Feature cards */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.feature-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: all var(--ease);
  border-left: 4px solid var(--accent);
}
.feature-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-left-color: var(--green); }
.feature-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; color: var(--blue-dark); }
.feature-card p { font-size: 0.92rem; color: var(--text-light); line-height: 1.7; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.gallery img {
  width: 100%;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--ease);
  box-shadow: var(--shadow-sm);
  aspect-ratio: 16/9;
  object-fit: cover;
}
.gallery img:hover { transform: scale(1.03); box-shadow: 0 4px 20px var(--accent-glow); }

/* Story blocks */
.story-block {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 28px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--green);
  transition: all var(--ease);
}
.story-block:hover { border-left-color: var(--accent); box-shadow: var(--shadow-md); }
.story-block h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 10px; color: var(--blue-dark); }
.story-block .story-chapter { font-size: 0.8rem; color: var(--accent); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 4px; }
.story-block p { color: var(--text-light); line-height: 1.8; }

/* Character cards */
.char-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.char-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: all var(--ease);
}
.char-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.char-header {
  background: linear-gradient(135deg, var(--blue-dark), var(--blue));
  color: #fff;
  padding: 14px 18px;
  font-weight: 700;
  font-size: 1.05rem;
}
.char-body { padding: 18px; }
.char-avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--blue));
  display: flex;
  align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 12px;
  color: #fff;
  border: 3px solid var(--accent-light);
}
.char-card p { font-size: 0.9rem; color: var(--text-light); line-height: 1.6; }
.char-card .char-traits { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }

/* Guide steps */
.guide-steps { max-width: 700px; margin: 0 auto; }
.guide-step { display: flex; gap: 18px; margin-bottom: 28px; align-items: flex-start; }
.step-num {
  flex-shrink: 0;
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  color: var(--blue-dark);
  border-radius: 50%;
  display: flex;
  align-items: center; justify-content: center;
  font-weight: 700; font-size: 1.1rem;
  box-shadow: 0 2px 10px var(--accent-glow);
}
.step-content h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 4px; color: var(--blue-dark); }
.step-content p { color: var(--text-light); font-size: 0.92rem; line-height: 1.7; }

/* FAQ */
.faq-list { max-width: 720px; margin: 0 auto; position: relative; z-index: 1; }
.faq-item {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  margin-bottom: 10px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  overflow: hidden;
}
.faq-q {
  width: 100%; padding: 18px 24px;
  background: none; border: none; cursor: pointer;
  text-align: left; font-size: 1rem; font-weight: 600; color: var(--text);
  display: flex; justify-content: space-between; align-items: center;
  transition: background var(--ease);
  font-family: var(--font);
}
.faq-q:hover { background: var(--bg-cream); }
.faq-q .faq-icon { font-size: 1.3rem; color: var(--accent); transition: transform var(--ease); flex-shrink: 0; margin-left: 12px; }
.faq-item.open .faq-q .faq-icon { 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 24px 20px; color: var(--text-light); font-size: 0.92rem; line-height: 1.8; }

/* CTA banner */
.cta-banner {
  background: linear-gradient(135deg, var(--blue-dark), #1a2a4a);
  padding: 48px 24px; text-align: center;
  border-top: 3px solid var(--accent);
  border-bottom: 3px solid var(--accent);
  position: relative; overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, var(--accent-glow) 0%, transparent 60%);
}
.cta-banner h2 { position: relative; z-index: 1; color: #fff; font-size: 1.8rem; font-weight: 700; margin-bottom: 12px; }
.cta-banner p { position: relative; z-index: 1; color: rgba(255, 255, 255, 0.75); margin-bottom: 24px; font-size: 1rem; }
.cta-banner .btn-hero { position: relative; z-index: 1; }

/* Stats row */
.stats-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 40px; padding: 32px 0; }
.stat-item { text-align: center; }
.stat-value { font-size: 2rem; font-weight: 800; color: var(--accent); }
.stat-label { font-size: 0.85rem; color: var(--text-muted); margin-top: 2px; }

/* Breadcrumbs */
.breadcrumbs { max-width: var(--max-width); margin: 0 auto; padding: 16px 24px 0; font-size: 0.85rem; color: var(--text-muted); position: relative; z-index: 1; }
.breadcrumbs a { color: var(--blue); text-decoration: none; }
.breadcrumbs a:hover { color: var(--accent); text-decoration: underline; }
.breadcrumbs span { margin: 0 6px; }

/* Tip box */
.tip-box {
  background: var(--green-light);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  border-left: 4px solid var(--green);
  margin: 20px 0;
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.7;
}
.tip-box strong { color: var(--green); }

/* Info table */
.info-table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 0.92rem; }
.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-cream); font-weight: 600; color: var(--text); white-space: nowrap; border-radius: var(--radius-sm) var(--radius-sm) 0 0; }
.info-table td { color: var(--text-light); }
.info-table tr:hover td { background: var(--bg-cream); }

/* Download card */
.download-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-md);
  border: 2px solid var(--accent);
  text-align: center;
  max-width: 500px; margin: 0 auto;
}
.download-card h2 { font-size: 1.6rem; font-weight: 700; margin-bottom: 12px; color: var(--blue-dark); }
.download-card .version { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 20px; }
.download-card .btn-hero { display: block; width: 100%; text-align: center; }
.download-card .req-list {
  list-style: none; text-align: left; margin-top: 24px;
  padding: 16px 20px; background: var(--bg-cream);
  border-radius: var(--radius-md);
}
.download-card .req-list li { padding: 4px 0; font-size: 0.88rem; color: var(--text-light); }
.download-card .req-list li::before { content: '📋 '; }

/* Blockquote */
blockquote {
  border-left: 4px solid var(--accent);
  padding: 14px 20px; margin: 20px 0;
  background: var(--accent-light);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic; color: var(--text); font-size: 0.95rem;
}

/* Review cards */
.review-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  margin-bottom: 16px;
}
.review-card .review-author { font-weight: 700; color: var(--blue-dark); margin-bottom: 6px; }
.review-card .review-text { color: var(--text-light); font-size: 0.92rem; line-height: 1.7; font-style: italic; }

/* Ending cards */
.ending-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.ending-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  border-top: 3px solid var(--accent);
  transition: all var(--ease);
}
.ending-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.ending-card h3 { font-size: 1rem; font-weight: 700; color: var(--blue-dark); margin-bottom: 6px; }
.ending-card p { font-size: 0.88rem; color: var(--text-light); line-height: 1.6; }

/* Section alt background */
.section-alt { background: var(--bg-cream); }

/* Tag variants for content sections */
.tag-pink-solid { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
.tag-blue-solid { background: var(--blue); border-color: var(--blue); color: #fff; }
.tag-green-solid { background: var(--green); border-color: var(--green); color: #fff; }
.tag-gold-solid { background: #c9a030; border-color: #c9a030; color: #fff; }

/* Utilities */
.text-center { text-align: center; }
.text-light { color: var(--text-light); }
.mt-1 { margin-top: 12px; } .mt-2 { margin-top: 24px; } .mt-3 { margin-top: 40px; }
.mb-1 { margin-bottom: 12px; } .mb-2 { margin-bottom: 24px; }
.btn-sm { display: inline-block; font-size: 0.9rem; padding: 10px 24px; }
.max-w-800 { max-width: 800px; margin-left: auto; margin-right: auto; }

/* Lightbox */
.lightbox {
  display: none;
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0, 0, 0, 0.92);
  align-items: center; justify-content: center; cursor: pointer;
}
.lightbox.active { display: flex; }
.lightbox img {
  max-width: 90vw; max-height: 90vh;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
}
.lightbox-close {
  position: absolute; top: 20px; right: 30px;
  color: #fff; font-size: 2rem; cursor: pointer;
  background: none; border: none; z-index: 1;
  opacity: 0.7; transition: opacity var(--ease);
}
.lightbox-close:hover { opacity: 1; }

/* Footer */
.site-footer {
  margin-top: auto;
  background: var(--bg-header);
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
  padding: 24px;
  font-size: 0.85rem;
  border-top: 3px solid var(--accent);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  :root { --header-h: 56px; }
  .main-nav {
    display: none;
    position: absolute; top: var(--header-h);
    left: 0; right: 0; background: var(--bg-header);
    flex-direction: column; padding: 12px; gap: 2px;
    border-bottom: 3px solid var(--accent);
  }
  .main-nav.open { display: flex; }
  .main-nav a { width: 100%; text-align: center; padding: 12px; }
  .nav-cta { margin-left: 0; margin-top: 4px; }
  .hamburger { display: flex; }
  .hero h1 { font-size: 2rem; }
  .hero { padding: 56px 16px; }
  .section { padding: 40px 16px; }
  .section-title { font-size: 1.5rem; }
  .info-grid, .feature-grid, .gallery, .char-grid { grid-template-columns: 1fr; }
  .stats-row { gap: 24px; }
  .guide-step { flex-direction: column; gap: 10px; }
}
