/* === 甜蜜女友 - Sweet Candy Romance Theme === */
:root {
  --accent: #f4a7b9;
  --accent-hover: #e893a8;
  --accent-light: #fde4ec;
  --coral: #ff8a80;
  --coral-dark: #e56a5d;
  --bg: #fefaf6;
  --bg-cream: #fefaf6;
  --bg-card: #ffffff;
  --bg-hero: linear-gradient(135deg, #fef5f7 0%, #fde4ec 30%, #ffe8e0 70%, #fefaf6 100%);
  --bg-header: rgba(255, 245, 247, 0.95);
  --text: #4a3040;
  --text-light: #7a6070;
  --text-muted: #a08898;
  --border: #f5e0e8;
  --border-light: #fbeef3;
  --shadow: 0 2px 12px rgba(244, 167, 185, 0.12);
  --shadow-hover: 0 6px 24px rgba(244, 167, 185, 0.22);
  --radius: 14px;
  --radius-sm: 8px;
  --font: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', 'Hiragino Sans GB', sans-serif;
  --max-width: 1100px;
  --transition: 0.25s ease;
}

/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
}

/* Decorative heart background pattern */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(circle at 5% 15%, rgba(244, 167, 185, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 92% 78%, rgba(255, 138, 128, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 50% 40%, rgba(244, 167, 185, 0.04) 0%, transparent 60%);
}

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 { padding-left: 1.5rem; }

/* === Header === */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-header);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.8rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
}
.logo .heart-icon {
  color: var(--accent);
  font-size: 1.4rem;
}
.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  padding: 0;
}
.nav-menu a {
  color: var(--text-light);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color var(--transition);
}
.nav-menu a:hover,
.nav-menu a.active { color: var(--accent); }

.nav-cta {
  background: linear-gradient(135deg, var(--accent), var(--coral));
  color: #fff !important;
  padding: 0.5rem 1.4rem !important;
  border-radius: 25px;
  font-weight: 600 !important;
  font-size: 0.9rem !important;
  transition: opacity var(--transition), transform var(--transition) !important;
  box-shadow: 0 3px 12px rgba(244, 167, 185, 0.35);
}
.nav-cta:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

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

/* === Main Content === */
main {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* === Hero Section === */
.hero {
  text-align: center;
  padding: 4rem 1.5rem 3rem;
  background: var(--bg-hero);
  border-radius: 0 0 var(--radius) var(--radius);
  margin-bottom: 2.5rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 150px; height: 150px;
  background: radial-gradient(circle, rgba(244, 167, 185, 0.15) 0%, transparent 70%);
  border-radius: 50%;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -30px; left: -30px;
  width: 120px; height: 120px;
  background: radial-gradient(circle, rgba(255, 138, 128, 0.12) 0%, transparent 70%);
  border-radius: 50%;
}
.hero-alt { background: linear-gradient(135deg, #fef5f7 0%, #fdf0f4 40%, #ffece5 100%); }
.hero h1 {
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--coral-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}
.hero .subtitle {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 650px;
  margin: 0 auto 2rem;
  position: relative;
  z-index: 1;
  line-height: 1.8;
}
.hero-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  position: relative;
  z-index: 1;
}
.tag {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  background: var(--accent-light);
  color: var(--accent);
  border: 1px solid var(--border-light);
}
.tag-pink { background: var(--accent-light); color: var(--accent); border-color: var(--border-light); }
.tag-coral { background: #ffe8e0; color: var(--coral-dark); border-color: #ffddd0; }

.hero-visual {
  margin: 2rem auto 0;
  max-width: 700px;
  position: relative;
  z-index: 1;
}
.hero-visual-inner {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, #fde4ec, #ffe8e0, #fde4ec);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  border: 2px dashed var(--border);
}
.heart-divider {
  text-align: center;
  margin: 2rem 0;
  font-size: 1.2rem;
  color: var(--accent);
  letter-spacing: 0.4rem;
}

/* === Info Cards Grid === */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 3rem;
}
.info-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 1.2rem;
  text-align: center;
  box-shadow: var(--shadow);
}
.info-card .info-icon {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}
.info-card .info-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.info-card .info-value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-top: 0.3rem;
}

/* === Feature Cards === */
.section-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1.5rem;
  text-align: center;
  position: relative;
}
.section-title::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--coral));
  border-radius: 2px;
  margin: 0.6rem auto 0;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.2rem;
  margin-bottom: 3rem;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition), transform var(--transition);
}
.feature-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}
.feature-card .feature-icon {
  font-size: 2.2rem;
  margin-bottom: 0.8rem;
}
.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.feature-card p {
  font-size: 0.93rem;
  color: var(--text-light);
  line-height: 1.7;
}

/* === Game Description / Story Block === */
.story-block {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 3rem;
  box-shadow: var(--shadow);
}
.story-block h2 {
  font-size: 1.5rem;
  color: var(--text);
  margin-bottom: 1rem;
}
.story-block p {
  color: var(--text-light);
  line-height: 1.9;
  margin-bottom: 1rem;
  font-size: 0.98rem;
}
.story-block .accent-border {
  border-left: 4px solid var(--accent);
  padding-left: 1rem;
  font-style: italic;
  color: var(--text-muted);
  margin: 1.5rem 0;
}

/* === Character Cards === */
.char-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}
.char-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition), transform var(--transition);
}
.char-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}
.char-avatar {
  width: 100%;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  background: linear-gradient(135deg, #fde4ec, #ffe8e0);
}
.char-info {
  padding: 1.3rem;
}
.char-info h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.3rem;
}
.char-role {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.7rem;
}
.char-desc {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.7;
}
.char-traits {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.8rem;
}
.char-traits .tag {
  font-size: 0.78rem;
  padding: 0.25rem 0.7rem;
}

/* === Guide Steps === */
.guide-steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin-bottom: 3rem;
}
.guide-step {
  counter-increment: step;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 1.5rem 1.5rem 1.5rem 4rem;
  margin-bottom: 1rem;
  position: relative;
  box-shadow: var(--shadow);
}
.guide-step::before {
  content: counter(step);
  position: absolute;
  left: 1.2rem;
  top: 1.5rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--coral));
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.guide-step h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.4rem;
}
.guide-step p {
  font-size: 0.93rem;
  color: var(--text-light);
  line-height: 1.7;
}
.tip-block {
  background: var(--accent-light);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 1rem 1.3rem;
  margin: 1.5rem 0 3rem;
}
.tip-block p {
  font-size: 0.93rem;
  color: var(--text);
  margin: 0;
}

/* === FAQ Accordion === */
.faq-list {
  margin-bottom: 3rem;
}
.faq-item {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  margin-bottom: 0.6rem;
  overflow: hidden;
  background: var(--bg-card);
  box-shadow: var(--shadow);
}
.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 1.1rem 1.3rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font);
  transition: background var(--transition);
}
.faq-question:hover { background: var(--accent-light); }
.faq-question::after {
  content: '♥';
  font-size: 0.7rem;
  color: var(--accent);
  transition: transform var(--transition);
}
.faq-item.open .faq-question::after { 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: 500px;
  padding: 0 1.3rem 1.1rem;
}
.faq-answer p {
  font-size: 0.93rem;
  color: var(--text-light);
  line-height: 1.8;
}

/* === CTA Banner === */
.cta-banner {
  text-align: center;
  background: linear-gradient(135deg, var(--accent-light), #ffe8e0);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  margin-bottom: 3rem;
  border: 1px solid var(--border);
}
.cta-banner h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.6rem;
}
.cta-banner p {
  color: var(--text-light);
  margin-bottom: 1.5rem;
}
.btn-cta {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent), var(--coral));
  color: #fff !important;
  padding: 0.8rem 2.2rem;
  border-radius: 30px;
  font-weight: 700;
  font-size: 1.05rem;
  transition: opacity var(--transition), transform var(--transition);
  box-shadow: 0 4px 16px rgba(244, 167, 185, 0.4);
}
.btn-cta:hover { opacity: 0.9; color: #fff !important; transform: translateY(-2px); }

/* === Gallery === */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-bottom: 3rem;
}
.gallery a {
  border-radius: var(--radius-sm);
  overflow: hidden;
  display: block;
  border: 1px solid var(--border-light);
  transition: box-shadow var(--transition), transform var(--transition);
}
.gallery a:hover {
  box-shadow: var(--shadow-hover);
  transform: scale(1.02);
}
.gallery-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #fde4ec, #ffe8e0);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--accent);
}

/* === Breadcrumbs === */
.breadcrumbs {
  padding: 1.2rem 0 0.5rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}
.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs span { color: var(--accent); font-weight: 500; }

/* === Stats / Info Row === */
.stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  margin-bottom: 3rem;
}
.stat-item {
  text-align: center;
}
.stat-value {
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--coral-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* === Tables === */
.info-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 3rem;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-light);
}
.info-table th,
.info-table td {
  padding: 0.8rem 1.2rem;
  text-align: left;
  font-size: 0.93rem;
}
.info-table th {
  background: var(--accent-light);
  color: var(--accent);
  font-weight: 600;
  width: 30%;
}
.info-table td {
  color: var(--text-light);
  border-bottom: 1px solid var(--border-light);
}
.info-table tr:last-child td { border-bottom: none; }

/* === Endings Grid === */
.ending-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.2rem;
  margin-bottom: 3rem;
}
.ending-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  border-top: 3px solid var(--accent);
}
.ending-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.ending-card p {
  font-size: 0.93rem;
  color: var(--text-light);
  line-height: 1.7;
}

/* === Blockquote === */
blockquote {
  background: var(--accent-light);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--text-light);
}

/* === Content Sections === */
.content-section {
  margin-bottom: 3rem;
}
.content-section h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.content-section h2 .section-heart {
  color: var(--accent);
  font-size: 1.2rem;
}
.content-section p {
  font-size: 0.96rem;
  color: var(--text-light);
  line-height: 1.9;
  margin-bottom: 1rem;
}
.content-section ul {
  color: var(--text-light);
  line-height: 1.9;
  margin-bottom: 1rem;
}
.content-section ul li {
  margin-bottom: 0.4rem;
}

/* === Lightbox === */
.lightbox {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.88);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
}
.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  z-index: 1001;
}

/* === Footer === */
footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border-light);
  padding: 2rem 1.5rem;
  margin-top: 3rem;
  position: relative;
  z-index: 1;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.88rem;
}
.footer-inner .footer-heart {
  color: var(--accent);
}

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

/* === Responsive === */
@media (max-width: 768px) {
  .hero h1 { font-size: 1.8rem; }
  .hero { padding: 2.5rem 1rem 2rem; }
  .menu-toggle { display: flex; }
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--bg-header);
    backdrop-filter: blur(12px);
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-light);
  }
  .nav-menu.open { display: flex; }
  .nav-menu li { padding: 0.6rem 1.5rem; }
  .nav-menu a.nav-cta {
    display: inline-block;
    margin: 0.5rem 1.5rem;
  }
  .info-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: 1fr; }
  .char-grid { grid-template-columns: 1fr; }
  .section-title { font-size: 1.3rem; }
  .stats-row { gap: 1.2rem; }
  .stat-value { font-size: 1.6rem; }
}
