/* ============================================================
   Sakura / Cherry Blossom Theme — 樱花萌放
   Soft pinks, delicate whites, elegant Japanese aesthetic
   ============================================================ */

:root {
  /* Primary sakura palette */
  --sakura: #ffb7c5;
  --sakura-dark: #e893a5;
  --sakura-deep: #d4819a;
  --sakura-light: #fce4ec;
  --sakura-soft: #fff0f5;
  --sakura-petal: #ffe4ec;
  --sakura-glow: #ffd1dc;

  /* Backgrounds */
  --bg-cream: #fefaf6;
  --bg-white: #ffffff;
  --bg-card: #fffafc;
  --bg-hero: linear-gradient(160deg, #fef6f9 0%, #fff0f5 25%, #ffe8ef 50%, #fff5f7 75%, #fdf2f5 100%);

  /* Text */
  --text-primary: #4a3548;
  --text-secondary: #7a6578;
  --text-muted: #a894a6;
  --text-white: #ffffff;

  /* Accents */
  --accent: #f4a7b9;
  --accent-hover: #e8879e;
  --accent-light: #fce4ec;
  --accent-gradient: linear-gradient(135deg, #f8b8c8, #f4a7b9, #e893a5);

  /* Functional */
  --border: #f0dce4;
  --shadow-sm: 0 2px 8px rgba(244, 167, 185, 0.12);
  --shadow-md: 0 4px 16px rgba(244, 167, 185, 0.18);
  --shadow-lg: 0 8px 32px rgba(244, 167, 185, 0.22);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --transition: 0.25s ease;
  --font-main: 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
  --max-width: 1200px;
  --header-height: 72px;
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-main); font-size: 16px; line-height: 1.75;
  color: var(--text-primary); background: var(--bg-cream);
  min-height: 100vh; display: flex; flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-hover); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
h1 { font-size: 2.25rem; font-weight: 700; margin-bottom: 1rem; line-height: 1.35; }
h2 { font-size: 1.75rem; font-weight: 700; margin-bottom: 0.75rem; line-height: 1.35; }
h3 { font-size: 1.3rem; font-weight: 600; margin-bottom: 0.5rem; line-height: 1.35; }
p { margin-bottom: 1rem; }

/* Utility */
.container { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 1.25rem; }
.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; }
.mx-auto { max-width: 800px; margin-left: auto; margin-right: auto; }
.pt-sm { padding-top: 2rem; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.img-rounded { border-radius: var(--radius-md); margin-bottom: 1.5rem; box-shadow: var(--shadow-sm); }

/* Sakura Petal decoration (global decorative element) */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(ellipse 12px 16px at 5% 15%, rgba(255,183,197,0.18), transparent),
    radial-gradient(ellipse 10px 14px at 15% 45%, rgba(255,183,197,0.13), transparent),
    radial-gradient(ellipse 14px 18px at 85% 25%, rgba(255,183,197,0.15), transparent),
    radial-gradient(ellipse 8px 12px at 92% 65%, rgba(255,183,197,0.12), transparent),
    radial-gradient(ellipse 11px 15px at 22% 78%, rgba(255,183,197,0.14), transparent),
    radial-gradient(ellipse 13px 17px at 65% 10%, rgba(255,183,197,0.10), transparent),
    radial-gradient(ellipse 9px 13px at 78% 85%, rgba(255,183,197,0.11), transparent),
    radial-gradient(ellipse 15px 19px at 45% 58%, rgba(255,183,197,0.08), transparent);
}

/* Header — sticky, soft glassmorphism */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-height); max-width: var(--max-width);
  margin: 0 auto; padding: 0 1.25rem;
}
.logo { display: flex; align-items: center; gap: 0.6rem; font-size: 1.15rem; font-weight: 700; color: var(--text-primary); }
.logo a { color: var(--text-primary); display: flex; align-items: center; gap: 0.6rem; }
.logo a:hover { color: var(--accent); }
.logo-icon {
  width: 36px; height: 36px; border-radius: var(--radius-sm);
  background: var(--accent-gradient); display: flex;
  align-items: center; justify-content: center;
  font-size: 1.2rem; color: var(--text-white);
}

/* Nav */
.nav-menu { display: flex; align-items: center; gap: 0.15rem; }
.nav-menu a {
  display: inline-block; padding: 0.5rem 1rem; border-radius: var(--radius-sm);
  color: var(--text-secondary); font-size: 0.95rem; font-weight: 500;
  transition: color var(--transition), background var(--transition);
}
.nav-menu a:hover, .nav-menu a.active { color: var(--accent); background: var(--accent-light); }
.nav-cta {
  margin-left: 0.75rem; display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.5rem 1.25rem; border-radius: 24px;
  background: var(--accent-gradient); color: var(--text-white) !important;
  font-weight: 600; font-size: 0.9rem; box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), opacity var(--transition);
}
.nav-cta:hover {
  transform: translateY(-1px); box-shadow: var(--shadow-md);
  opacity: 0.92; background: var(--accent-gradient) !important; color: var(--text-white) !important;
}

/* Mobile toggle */
.menu-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; background: none; border: none; cursor: pointer; }
.menu-toggle span { display: block; width: 24px; height: 2.5px; border-radius: 2px; background: var(--text-primary); transition: transform var(--transition), opacity var(--transition); }
.menu-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* Main */
main { flex: 1; }

/* Hero */
.hero {
  background: var(--bg-hero); padding: 5rem 0 3rem;
  text-align: center; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -50px; right: -50px;
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(255,183,197,0.2), transparent 70%);
  border-radius: 50%; pointer-events: none;
}
.hero::after {
  content: ''; position: absolute; bottom: -60px; left: -60px;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(255,183,197,0.14), transparent 70%);
  border-radius: 50%; pointer-events: none;
}
.hero-content { position: relative; z-index: 1; max-width: 800px; margin: 0 auto; padding: 0 1.25rem; }
.hero-content h1 {
  font-size: 3rem; margin-bottom: 0.3rem;
  background: linear-gradient(135deg, #d4819a, #f4a7b9, #e893a5);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-content .subtitle {
  font-size: 1.2rem; color: var(--text-secondary); margin-bottom: 0.75rem; font-weight: 500;
}
.hero-content .english-name {
  font-size: 1rem; color: var(--text-muted); margin-bottom: 1.5rem;
  font-style: italic; letter-spacing: 0.05em;
}
.hero-content .hero-desc {
  font-size: 1.05rem; color: var(--text-secondary); line-height: 1.9; margin-bottom: 2rem;
}
.hero-image {
  margin: 2rem auto 0; max-width: 600px;
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.hero-image img { width: 100%; border-radius: var(--radius-lg); }
.hero-stats { display: flex; justify-content: center; gap: 3rem; margin-top: 2rem; flex-wrap: wrap; }
.hero-stat { text-align: center; }
.hero-stat-value { font-size: 2rem; font-weight: 700; color: var(--accent); }
.hero-stat-label { font-size: 0.85rem; color: var(--text-muted); margin-top: 0.2rem; }

/* Petal divider */
.petal-divider {
  text-align: center; padding: 1.5rem 0; font-size: 1.4rem;
  color: var(--sakura); letter-spacing: 0.5em;
}

/* Sections */
.section { padding: 4rem 0; }
.section-alt { background: var(--sakura-soft); padding: 4rem 0; }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header h2 {
  position: relative; display: inline-block;
  font-size: 1.8rem; padding-bottom: 0.75rem;
}
.section-header h2::after {
  content: ''; position: absolute; bottom: 0; left: 50%;
  transform: translateX(-50%); width: 50px; height: 3px;
  border-radius: 2px; background: var(--accent-gradient);
}
.section-header p { color: var(--text-muted); font-size: 0.95rem; margin-top: 0.5rem; }

/* Features / Info Cards */
.card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card-icon {
  width: 52px; height: 52px; border-radius: var(--radius-sm);
  background: var(--accent-light); display: flex;
  align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: 1rem;
}
.card h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.card p { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.7; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }

/* Info grid (2-col) */
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; max-width: 700px; margin: 0 auto; }
.info-item { display: flex; justify-content: space-between; padding: 0.6rem 1rem; border-radius: var(--radius-sm); background: var(--bg-card); border: 1px solid var(--border); }
.info-label { font-weight: 600; color: var(--text-primary); }
.info-value { color: var(--text-secondary); }

/* Screenshots */
.screenshots-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.25rem; }
.screenshot-item {
  border-radius: var(--radius-md); overflow: hidden;
  box-shadow: var(--shadow-sm); border: 1px solid var(--border);
  cursor: pointer; transition: transform var(--transition), box-shadow var(--transition);
  background: var(--bg-card);
  min-height: 200px;
  display: flex; align-items: center; justify-content: center;
}
.screenshot-item:hover { transform: scale(1.02); box-shadow: var(--shadow-md); }
.screenshot-item .screenshot-placeholder {
  width: 100%; aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--sakura-light), var(--sakura-soft));
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem; color: var(--sakura);
}
.screenshot-caption {
  padding: 0.6rem 1rem; font-size: 0.85rem; color: var(--text-muted);
  background: var(--bg-card); border-top: 1px solid var(--border);
}

/* CTA */
.cta-section { background: var(--bg-hero); padding: 4rem 0; text-align: center; }
.cta-section h2 { font-size: 1.8rem; margin-bottom: 1rem; }
.cta-section p { color: var(--text-secondary); margin-bottom: 2rem; font-size: 1.05rem; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.85rem 2.5rem; border-radius: 28px;
  background: var(--accent-gradient); color: var(--text-white);
  font-weight: 600; font-size: 1.05rem;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition), box-shadow var(--transition), opacity var(--transition);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); opacity: 0.93; color: var(--text-white); }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.75rem 2rem; border-radius: 28px;
  border: 2px solid var(--accent); color: var(--accent);
  font-weight: 600; font-size: 1rem; background: transparent;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}
.btn-secondary:hover { background: var(--accent); color: var(--text-white); transform: translateY(-2px); }

/* Page hero (subpages) */
.page-hero { background: var(--bg-hero); padding: 3rem 0; text-align: center; position: relative; overflow: hidden; }
.page-hero::after {
  content: ''; position: absolute; bottom: -30px; right: -30px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(255,183,197,0.12), transparent 70%);
  border-radius: 50%; pointer-events: none;
}
.page-hero h1 { font-size: 2.2rem; margin-bottom: 0.5rem; }
.page-hero p { color: var(--text-muted); font-size: 1rem; max-width: 600px; margin: 0 auto; }

/* Content section (subpages) */
.content-section { padding: 3rem 0; }
.content-section .container { max-width: 860px; }
.content-section h2 {
  font-size: 1.6rem; color: var(--accent); margin-top: 2.5rem; margin-bottom: 0.75rem;
  padding-left: 1rem; border-left: 3px solid var(--accent);
}
.content-section h2:first-child { margin-top: 0; }
.content-section h3 { font-size: 1.2rem; margin-top: 1.75rem; }
.content-section p { color: var(--text-secondary); line-height: 1.85; }
.content-section ul, .content-section ol { margin: 1rem 0 1.5rem 1.5rem; color: var(--text-secondary); line-height: 1.85; }
.content-section ul li, .content-section ol li { position: relative; padding-left: 1.2rem; margin-bottom: 0.5rem; }
.content-section ul li::before { content: '🌸'; position: absolute; left: 0; top: 0; font-size: 0.8rem; }
.content-section ol { counter-reset: item; }
.content-section ol li::before { content: counter(item) "."; counter-increment: item; position: absolute; left: 0; top: 0; color: var(--accent); font-weight: 600; }

/* Info box */
.info-box {
  background: var(--accent-light); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 1.25rem 1.5rem; margin: 1.5rem 0;
}
.info-box h4 { color: var(--accent); margin-bottom: 0.5rem; font-size: 1rem; }
.info-box p { margin-bottom: 0; font-size: 0.95rem; }

/* FAQ Accordion */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--border); border-radius: var(--radius-md);
  margin-bottom: 0.75rem; overflow: hidden; background: var(--bg-card);
  transition: box-shadow var(--transition);
}
.faq-item:hover { box-shadow: var(--shadow-sm); }
.faq-item.open { box-shadow: var(--shadow-sm); border-color: var(--accent); }
.faq-question {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1rem 1.25rem; background: none; border: none; cursor: pointer;
  font-family: var(--font-main); font-size: 1rem; font-weight: 600;
  color: var(--text-primary); text-align: left;
  transition: color var(--transition);
}
.faq-question:hover { color: var(--accent); }
.faq-icon {
  flex-shrink: 0; width: 24px; height: 24px;
  transition: transform 0.3s ease; color: var(--accent);
  display: flex; align-items: center; justify-content: center;
}
.faq-item.open .faq-icon { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.35s ease, padding 0.35s ease; }
.faq-item.open .faq-answer { max-height: 600px; }
.faq-answer-inner { padding: 0 1.25rem 1.25rem; color: var(--text-secondary); font-size: 0.95rem; line-height: 1.8; }

/* Character Cards */
.character-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.5rem; }
.character-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 2rem; text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.character-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.character-avatar {
  width: 100px; height: 100px; border-radius: 50%;
  background: linear-gradient(135deg, var(--sakura-light), var(--sakura-petal));
  margin: 0 auto 1rem; display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem; color: var(--accent);
  border: 3px solid var(--sakura);
}
.character-card h3 { font-size: 1.25rem; margin-bottom: 0.25rem; }
.character-role { font-size: 0.85rem; color: var(--accent); font-weight: 500; margin-bottom: 0.75rem; }
.character-card p { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.7; }

/* Character trait tags */
.char-tags { display: flex; justify-content: center; gap: 0.4rem; flex-wrap: wrap; margin-bottom: 0.75rem; }
.char-tag {
  display: inline-block; padding: 0.15rem 0.65rem; border-radius: 14px;
  background: var(--accent-light); color: var(--accent);
  font-size: 0.78rem; font-weight: 500;
}

/* Story Blocks */
.story-block {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 1.5rem; margin-bottom: 1.5rem;
  border-left: 4px solid var(--sakura);
}
.story-block h3 { color: var(--accent); margin-bottom: 0.5rem; }
.story-block p { color: var(--text-secondary); font-size: 0.95rem; }

/* Guide Steps */
.guide-steps { counter-reset: step; }
.guide-step {
  display: flex; gap: 1.5rem; align-items: flex-start;
  margin-bottom: 2rem; padding: 1.5rem;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-md); box-shadow: var(--shadow-sm);
}
.guide-step-num {
  flex-shrink: 0; width: 48px; height: 48px; border-radius: 50%;
  background: var(--accent-gradient); color: var(--text-white);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1.2rem;
}
.guide-step-content h3 { font-size: 1.15rem; margin-bottom: 0.4rem; }
.guide-step-content p { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.7; }

/* Ending Cards */
.ending-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.ending-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 1.5rem;
  text-align: center; box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.ending-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.ending-icon {
  font-size: 2.5rem; margin-bottom: 0.75rem;
}
.ending-card h3 { font-size: 1.15rem; color: var(--accent); margin-bottom: 0.5rem; }
.ending-card p { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.7; }
.ending-type {
  display: inline-block; padding: 0.2rem 0.75rem; border-radius: 14px;
  background: var(--accent-light); color: var(--accent);
  font-size: 0.8rem; font-weight: 600; margin-bottom: 0.5rem;
}

/* Breadcrumbs */
.breadcrumbs { padding: 0.75rem 0; font-size: 0.85rem; color: var(--text-muted); border-bottom: 1px solid var(--border); }
.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs span { margin: 0 0.4rem; }

/* Tag list */
.tag-list { display: flex; justify-content: center; gap: 0.5rem; flex-wrap: wrap; margin: 1.5rem 0; }
.tag-item {
  display: inline-block; padding: 0.35rem 1rem; border-radius: 20px;
  background: var(--sakura-light); color: var(--accent);
  font-size: 0.9rem; font-weight: 500;
  border: 1px solid var(--border);
}

/* Lightbox */
.lightbox { display: none; position: fixed; inset: 0; z-index: 9999; background: rgba(74,53,72,0.92); justify-content: center; align-items: center; padding: 2rem; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 85vh; border-radius: var(--radius-md); box-shadow: 0 8px 40px rgba(0,0,0,0.3); }
.lightbox-close { position: absolute; top: 1.5rem; right: 2rem; width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,0.15); border: none; color: #fff; font-size: 1.5rem; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background var(--transition); }
.lightbox-close:hover { background: rgba(255,255,255,0.25); }

/* Footer */
.site-footer { background: var(--bg-card); border-top: 1px solid var(--border); padding: 2rem 0; text-align: center; }
.site-footer .footer-inner { max-width: var(--max-width); margin: 0 auto; padding: 0 1.25rem; }
.site-footer .copyright { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; }

/* Lazy load fade */
img[loading="lazy"] { opacity: 0; transition: opacity 0.4s ease; }
img[loading="lazy"].loaded { opacity: 1; }

/* Responsive */
@media (max-width: 768px) {
  h1 { font-size: 1.75rem; } h2 { font-size: 1.4rem; }
  .hero-content h1 { font-size: 2rem; }
  .hero-stats { gap: 1.5rem; }
  .hero-stat-value { font-size: 1.5rem; }
  .menu-toggle { display: flex; }
  .nav-menu {
    position: fixed; top: var(--header-height); left: 0; right: 0;
    background: rgba(255,255,255,0.96); backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--border);
    flex-direction: column; padding: 1rem 0; gap: 0.25rem;
    transform: translateY(-120%); opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    box-shadow: var(--shadow-md);
  }
  .nav-menu.open { transform: translateY(0); opacity: 1; }
  .nav-menu a { width: 100%; text-align: center; padding: 0.75rem 1rem; }
  .nav-cta { margin-left: 0; margin-top: 0.5rem; width: calc(100% - 2rem); text-align: center; justify-content: center; }
  .features-grid, .screenshots-grid, .character-grid { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: 1fr; }
  .section, .cta-section { padding: 2.5rem 0; }
  .guide-step { flex-direction: column; gap: 1rem; text-align: center; }
  .guide-step-num { margin: 0 auto; }
}
@media (max-width: 480px) {
  .hero-content h1 { font-size: 1.6rem; }
  .hero-stats { flex-direction: column; gap: 1rem; }
}
