/* ============================================================
   BUNNY GARDEN 兔兔秘密花园 — 春日花园主题 CSS
   色彩：樱花粉(#F48FB1) · 青草绿(#81C784) · 兔子白(#FAFAFA) · 胡萝卜橙(#FF7043)
   ============================================================ */

/* ---- CSS Custom Properties ---- */
:root {
  --font-sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-serif: "Noto Serif SC", "STSong", "SimSun", Georgia, serif;

  --pink: #F48FB1;
  --pink-soft: #FCE4EC;
  --pink-fierce: #EC407A;
  --green: #81C784;
  --green-soft: #E8F5E9;
  --green-dark: #388E3C;
  --white: #FAFAFA;
  --orange: #FF7043;
  --orange-soft: #FFF3E0;

  --bg: #FAFAFA;
  --bg-card: #FFFFFF;
  --text: #333333;
  --text-soft: #666666;
  --text-muted: #999999;
  --border: #E8E8E8;

  --header-bg: #2D1B2E;
  --header-text: #FAFAFA;
  --header-accent: #F48FB1;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.10);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --radius: 12px;

  --max-width: 1200px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: var(--pink-fierce); transition: color 0.2s; }
a:hover { color: var(--pink); }
ul, ol { padding-left: 0; list-style: none; }

/* ---- Accessibility ---- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

/* ---- Header / Navigation ---- */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  border-bottom: 3px solid var(--header-accent);
  padding: 0 24px;
}
header .header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
header .logo {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--header-text);
  display: flex;
  align-items: center;
  gap: 10px;
}
header .logo img { width: 32px; height: 32px; border-radius: 6px; }
header nav { display: flex; align-items: center; gap: 28px; }
header nav a {
  color: var(--header-text);
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
  opacity: 0.85;
}
header nav a:hover { opacity: 1; color: var(--header-accent); }
header nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--header-accent);
  transition: width 0.25s;
}
header nav a:hover::after { width: 100%; }

.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, var(--pink), var(--pink-fierce));
  color: #fff !important;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 10px 22px;
  border-radius: 25px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
  opacity: 1 !important;
}
.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: #fff !important;
}
.btn-cta::after { display: none; }

/* ---- Hero Section ---- */
.hero {
  position: relative;
  background: linear-gradient(160deg, #F48FB1 0%, #FCE4EC 40%, #E8F5E9 100%);
  padding: 80px 24px 100px;
  text-align: center;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 80%, rgba(255,112,67,0.15) 0%, transparent 50%),
    radial-gradient(circle at 85% 20%, rgba(244,143,177,0.2) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(129,199,132,0.1) 0%, transparent 60%);
  pointer-events: none;
}
.hero::after {
  content: '🐰🌸';
  position: absolute;
  bottom: 16px;
  right: 24px;
  font-size: 3rem;
  opacity: 0.15;
  pointer-events: none;
}
.hero-title-main {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 700;
  color: var(--header-bg);
  text-shadow: 0 2px 12px rgba(244,143,177,0.3);
  position: relative;
  z-index: 1;
}
.hero-subtitle {
  font-size: 1.15rem;
  color: #555;
  margin-top: 12px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 1;
}
.hero-tagline {
  font-size: 1.05rem;
  color: var(--pink-fierce);
  margin-top: 8px;
  font-weight: 500;
  position: relative;
  z-index: 1;
}
.hero-img {
  margin: 32px auto 0;
  max-width: 900px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 1;
}

/* ---- Hero Sub-page ---- */
.hero-subpage {
  padding: 40px 24px 48px;
}
.hero-subpage-title {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--header-bg);
  text-shadow: 0 1px 8px rgba(244,143,177,0.2);
}

/* ---- Content Section ---- */
.content-section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 60px 24px;
}
.content-section h2 {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
  position: relative;
  padding-left: 20px;
}
.content-section h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 4px;
  background: var(--pink);
  border-radius: 2px;
}
.content-section h3 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text);
  margin: 28px 0 12px;
}
.content-section p {
  font-size: 1.02rem;
  color: var(--text-soft);
  margin-bottom: 16px;
  text-align: justify;
}
.content-section p + p { margin-top: -4px; }

/* ---- Info Cards ---- */
.info-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin: 40px 0;
}
.info-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--pink);
}
.info-card h3 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 8px;
}
.info-card p {
  font-size: 0.95rem;
  color: var(--text-soft);
  margin: 0;
}

/* ---- Feature Grid ---- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin: 40px 0;
}
.feature-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.feature-card .feature-icon {
  font-size: 2.2rem;
  margin-bottom: 12px;
}
.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.feature-card p {
  font-size: 0.95rem;
  color: var(--text-soft);
  margin: 0;
}

/* ---- Screenshot Gallery ---- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin: 40px 0;
}
.gallery-grid img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s, box-shadow 0.25s;
  cursor: pointer;
}
.gallery-grid img:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-lg);
}

/* ---- Lightbox ---- */
.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 200;
  justify-content: center;
  align-items: center;
}
.lightbox-overlay.active { display: flex; }
.lightbox-overlay img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 8px;
  box-shadow: 0 0 60px rgba(0,0,0,0.5);
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.5rem;
  cursor: pointer;
  z-index: 201;
}

/* ---- Testimonials ---- */
.testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin: 40px 0;
}
.testimonial-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  position: relative;
}
.testimonial-card::before {
  content: '"';
  font-family: var(--font-serif);
  font-size: 3rem;
  color: var(--pink-soft);
  position: absolute;
  top: 8px;
  left: 16px;
  line-height: 1;
}
.testimonial-card p {
  font-size: 0.95rem;
  color: var(--text-soft);
  font-style: italic;
  padding-left: 24px;
  margin: 0;
}
.testimonial-card .author {
  margin-top: 12px;
  font-style: normal;
  font-weight: 600;
  color: var(--pink-fierce);
  padding-left: 24px;
}

/* ---- CTA Banner (index only) ---- */
.cta-banner {
  background: linear-gradient(135deg, var(--pink), var(--pink-fierce));
  padding: 48px 24px;
  text-align: center;
  border-radius: var(--radius);
  margin: 48px 0;
  color: #fff;
  box-shadow: var(--shadow-md);
}
.cta-banner h2 {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #fff !important;
  padding-left: 0 !important;
}
.cta-banner h2::before { display: none; }
.cta-banner p {
  font-size: 1.05rem;
  opacity: 0.9;
  margin-bottom: 24px;
  color: #fff;
  text-align: center;
}
.btn-cta-lg {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: var(--pink-fierce) !important;
  font-weight: 700;
  font-size: 1.1rem;
  padding: 14px 40px;
  border-radius: 30px;
  box-shadow: var(--shadow-md);
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-cta-lg:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  color: var(--pink-fierce) !important;
}

/* ---- Character Cards ---- */
.char-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin: 40px 0;
}
.char-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s;
}
.char-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.char-card img {
  width: 100%;
  height: 320px;
  object-fit: cover;
}
.char-card-body {
  padding: 20px;
}
.char-card-body h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 4px;
}
.char-card-body .char-subtitle {
  font-size: 0.85rem;
  color: var(--pink-fierce);
  font-weight: 500;
  margin-bottom: 12px;
}
.char-traits {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}
.char-trait {
  background: var(--pink-soft);
  color: var(--pink-fierce);
  font-size: 0.8rem;
  padding: 3px 10px;
  border-radius: 12px;
  font-weight: 500;
}
.char-card-body p {
  font-size: 0.92rem;
  color: var(--text-soft);
  margin: 0;
}

/* ---- Relationship Table ---- */
.relation-table-section { margin: 40px 0; }

/* ---- FAQ Accordion ---- */
.faq-list { margin: 40px 0; }
.faq-item {
  background: var(--bg-card);
  border-radius: var(--radius);
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--text);
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  transition: background 0.2s;
}
.faq-q:hover { background: var(--pink-soft); }
.faq-q::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--pink);
  font-weight: 300;
  transition: transform 0.3s;
}
.faq-item.open .faq-q::after {
  content: '−';
  transform: rotate(180deg);
}
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}
.faq-item.open .faq-a {
  max-height: 600px;
  padding: 0 24px 18px;
}
.faq-a p {
  font-size: 0.95rem;
  color: var(--text-soft);
  margin: 0;
}

/* ---- System Requirements Table ---- */
.sys-reqs-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 0.95rem;
}
.sys-reqs-table thead {
  background: var(--pink-soft);
}
.sys-reqs-table th {
  padding: 12px 16px;
  text-align: left;
  font-weight: 700;
  color: var(--pink-fierce);
  border-bottom: 2px solid var(--pink);
}
.sys-reqs-table td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text-soft);
}
.sys-reqs-table tr:nth-child(even) { background: var(--bg); }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ---- Guide Steps ---- */
.guide-intro {
  font-size: 1.02rem;
  color: var(--text-soft);
  margin-bottom: 24px;
  text-align: justify;
}
.guide-steps { counter-reset: step; margin: 24px 0; }
.guide-step {
  counter-increment: step;
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 24px 24px 24px 72px;
  margin-bottom: 16px;
  position: relative;
  box-shadow: var(--shadow-sm);
}
.guide-step::before {
  content: counter(step);
  position: absolute;
  left: 20px;
  top: 20px;
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--pink), var(--pink-fierce));
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.guide-step h3 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 6px;
  color: var(--text);
}
.guide-step p {
  font-size: 0.95rem;
  color: var(--text-soft);
  margin: 0;
}

/* ---- Route Section ---- */
.route-heading {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--pink-fierce);
  margin: 28px 0 12px;
  padding-left: 16px;
  border-left: 3px solid var(--pink);
}
.route-desc {
  font-size: 1rem;
  color: var(--text-soft);
  margin-bottom: 16px;
  text-align: justify;
}

/* ---- Chapter Section ---- */
.chapter-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--green-dark);
  margin: 20px 0 8px;
}

/* ---- Tips Box ---- */
.tips-box {
  background: var(--green-soft);
  border-left: 4px solid var(--green);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 16px 20px;
  margin: 20px 0;
}
.tips-box h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 6px;
}
.tips-box p {
  font-size: 0.93rem;
  color: var(--text-soft);
  margin: 0;
}

/* ---- Story Branching ---- */
.branch-list { margin: 20px 0; }
.branch-item {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 18px 24px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--orange);
}
.branch-item h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--orange);
  margin-bottom: 4px;
}
.branch-item p {
  font-size: 0.93rem;
  color: var(--text-soft);
  margin: 0;
}

/* ---- Utility Classes ---- */

/* List styles */
.content-list {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 16px;
}
.content-list-num {
  list-style: decimal;
  padding-left: 24px;
  margin-bottom: 16px;
}
.content-li {
  color: var(--text-soft);
  margin-bottom: 5px;
  font-size: 0.95rem;
}
.content-li-sm {
  color: var(--text-soft);
  margin-bottom: 4px;
  font-size: 0.93rem;
}
.content-li-md {
  color: var(--text-soft);
  margin-bottom: 8px;
  font-size: 0.95rem;
}
.content-li-lg {
  color: var(--text-soft);
  margin-bottom: 10px;
  font-size: 0.95rem;
}

/* Strong color variants */
.strong-pink { color: var(--pink-fierce); }
.strong-red { color: #E53935; }
.strong-gold { color: #F9A825; }
.strong-muted { color: var(--text-muted); }
.strong-navy { color: #1A237E; }

/* Table highlight */
.td-highlight {
  color: var(--pink-fierce);
  font-weight: 700;
}

/* System requirements headings */
.sys-reqs-h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  margin: 28px 0 12px;
}
.sys-reqs-h3:first-of-type { margin-top: 24px; }

/* Section sub-headings (characters page) */
.section-subheading {
  text-align: center;
  margin: 40px 0 24px;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--pink-fierce);
}

/* ---- Footer ---- */
footer {
  background: var(--header-bg);
  padding: 24px;
  text-align: center;
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  margin-top: 60px;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  header .header-inner { flex-wrap: wrap; height: auto; padding: 12px 0; gap: 10px; }
  header nav { gap: 16px; flex-wrap: wrap; justify-content: center; }
  .hero { padding: 50px 20px 70px; }
  .hero-title-main { font-size: 2.2rem; }
  .hero-subpage-title { font-size: 1.6rem; }
  .content-section { padding: 40px 20px; }
  .content-section h2 { font-size: 1.8rem; }
  .info-cards { grid-template-columns: 1fr 1fr; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .testimonials { grid-template-columns: 1fr; }
  .char-grid { grid-template-columns: 1fr 1fr; }
  .cta-banner h2 { font-size: 1.6rem; }
}

@media (max-width: 480px) {
  header nav { gap: 10px; }
  header nav a { font-size: 0.82rem; }
  .hero { padding: 40px 16px 56px; }
  .hero-title-main { font-size: 1.8rem; }
  .hero-subpage-title { font-size: 1.35rem; }
  .hero-subtitle { font-size: 1rem; }
  .content-section { padding: 32px 16px; }
  .content-section h2 { font-size: 1.5rem; }
  .info-cards { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .char-grid { grid-template-columns: 1fr; }
  .guide-step { padding: 16px 16px 16px 56px; }
  .guide-step::before { left: 12px; top: 14px; width: 30px; height: 30px; font-size: 0.95rem; }
  .cta-banner { padding: 32px 16px; }
  .btn-cta-lg { font-size: 1rem; padding: 12px 30px; }
}
