/* ============================================================
   Cute Honey 中文官网 — 浅色甜蜜益智风格
   Palette: 蜂蜜金 #FFA000 | 可爱粉 #F06292 | 奶白 #FFF8E1 | 糖果紫 #CE93D8
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;600;700;900&family=Noto+Sans+SC:wght@300;400;500;700&display=swap');

/* ========== CSS Custom Properties ========== */
:root {
  --font-serif: 'Noto Serif SC', 'SimSun', 'STSong', serif;
  --font-sans: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;

  /* Palette */
  --honey-gold: #FFA000;
  --honey-gold-dk: #E68A00;
  --honey-gold-lt: #FFD54F;
  --candy-pink: #F06292;
  --candy-pink-dk: #D94575;
  --candy-pink-lt: #F8BBD0;
  --candy-purple: #CE93D8;
  --candy-purple-dk: #B06BC0;
  --candy-purple-lt: #E1BEE7;
  --cream: #FFF8E1;
  --cream-dk: #F5EDD0;

  /* Semantic */
  --accent: var(--honey-gold);
  --accent-dk: var(--honey-gold-dk);
  --accent-lt: var(--honey-gold-lt);
  --secondary: var(--candy-pink);
  --secondary-dk: var(--candy-pink-dk);
  --secondary-lt: var(--candy-pink-lt);
  --special: var(--candy-purple);
  --special-dk: var(--candy-purple-dk);
  --special-lt: var(--candy-purple-lt);

  --bg: #FFFBF5;
  --bg-card: #FFFFFF;
  --bg-warm: #FFF8E1;
  --bg-header: #2D1B0E;
  --bg-footer: #2D1B0E;
  --bg-gradient-top: linear-gradient(135deg, #FFF8E1 0%, #F3E5F5 50%, #FCE4EC 100%);

  --text: #3E2723;
  --text-soft: #6D4C41;
  --text-muted: #A1887F;
  --text-light: #EFEBE9;

  --danger-red: #D32F2F;
  --pink-fierce: var(--candy-pink-dk);
  --accent-gold: var(--honey-gold-dk);
  --uniform-navy: #4A148C;
  --steel-light: #F3E5F5;

  --border: #E8D5C4;
  --shadow: 0 2px 12px rgba(139, 90, 43, 0.08);
  --shadow-lg: 0 8px 32px rgba(139, 90, 43, 0.12);

  --content-max: 1100px;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --header-height: 64px;
}

/* ========== Reset ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-dk); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--secondary); }

/* ========== Accessibility ========== */
.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;
}

/* ========== Header ========== */
header {
  position: sticky; top: 0; z-index: 1000;
  background: var(--bg-header);
  border-bottom: 3px solid var(--honey-gold);
  height: var(--header-height);
}
.header-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
}
.logo img { width: 36px; height: 36px; border-radius: 6px; }
nav { display: flex; align-items: center; gap: 28px; }
nav a {
  color: #D7CCC8;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s;
}
nav a:hover, nav a.active { color: var(--honey-gold); }

/* CTA Button */
.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, var(--honey-gold), var(--honey-gold-dk));
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 8px 22px;
  border-radius: 24px;
  white-space: nowrap;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(255, 160, 0, 0.35);
}
.btn-cta:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(255, 160, 0, 0.5);
}
.btn-cta::after { content: ' →'; }

/* ========== Hero Section ========== */
.hero {
  position: relative;
  background: var(--bg-gradient-top);
  padding: 60px 24px 80px;
  text-align: center;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at 50% 40%, rgba(255,160,0,0.08) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 70%, rgba(240,98,146,0.06) 0%, transparent 50%),
              radial-gradient(ellipse at 20% 70%, rgba(206,147,216,0.06) 0%, transparent 50%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; max-width: 800px; margin: 0 auto; }
.hero-title-main {
  font-family: var(--font-serif);
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--accent-dk);
  text-shadow: 0 1px 3px rgba(255,160,0,0.15);
  margin-bottom: 12px;
  line-height: 1.3;
}
.hero-title-main .jp-subtitle {
  display: block;
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--text-muted);
  margin-top: 6px;
  letter-spacing: 0.05em;
}
.hero-tagline {
  font-size: 1.15rem;
  color: var(--text-soft);
  max-width: 600px;
  margin: 0 auto 8px;
  line-height: 1.7;
}

/* sub-page hero */
.hero-subpage { padding: 40px 24px 48px; }
.hero-subpage-title { font-size: 2rem; font-weight: 700; }

/* ========== Content Sections ========== */
.content-section {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 64px 24px;
}
.section-alt { background: var(--bg-warm); }
.section-no-padding { padding: 0; }

/* Section headings */
.section-heading {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  color: var(--accent-dk);
  margin-bottom: 8px;
}
.section-heading-alt {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  color: var(--accent-dk);
  margin-bottom: 20px;
}
.section-subtext {
  text-align: center;
  color: var(--text-soft);
  margin-bottom: 24px;
}
.section-subheading {
  text-align: center;
  margin: 40px 0 24px;
}
.section-title-group-spaced { margin-top: 48px; }

/* ========== Index — Hero Image ========== */
.hero-img-wrap {
  position: relative;
  max-width: 720px;
  margin: 32px auto -60px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  z-index: 2;
}
.hero-img-wrap img { width: 100%; }

/* ========== Game Info Cards ========== */
.game-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  margin: 0 auto 12px;
  max-width: 800px;
}
.game-info-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 20px 12px;
  text-align: center;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--accent);
  transition: transform 0.2s;
}
.game-info-card:hover { transform: translateY(-3px); }
.game-info-card .info-icon { font-size: 2rem; margin-bottom: 6px; }
.game-info-card .info-value {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-dk);
}
.game-info-card .info-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 2px;
}
.game-info-desc {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 0;
}

/* ========== Prose ========== */
.prose-centered {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 32px;
  color: var(--text-soft);
  line-height: 1.85;
  font-size: 0.95rem;
}
.prose-centered:last-of-type { margin-bottom: 40px; }

/* ========== Feature Cards ========== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 12px;
}
.feature-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--secondary);
  transition: transform 0.2s, box-shadow 0.2s;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.feature-card:nth-child(even) { border-left-color: var(--accent); }
.feature-card:nth-child(3n) { border-left-color: var(--special); }
.feature-card .feature-icon { font-size: 2.2rem; margin-bottom: 10px; }
.feature-card h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.feature-card p {
  font-size: 0.9rem;
  color: var(--text-soft);
  line-height: 1.7;
}

/* ========== Screenshot Gallery ========== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 0.2s;
}
.gallery-item:hover { transform: scale(1.03); }
.gallery-item img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.88);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
.lightbox.active { display: flex; }
.lightbox img { max-width: 90vw; max-height: 85vh; border-radius: 8px; }
.lightbox-close {
  position: absolute;
  top: 20px; right: 30px;
  font-size: 2.5rem;
  color: #fff;
  cursor: pointer;
  background: none; border: none;
}

/* ========== Player Reviews ========== */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}
.review-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.review-card .review-stars { color: var(--honey-gold); font-size: 1.1rem; margin-bottom: 10px; }
.review-card .review-text {
  font-size: 0.9rem;
  color: var(--text-soft);
  line-height: 1.7;
  font-style: italic;
}
.review-card .review-author {
  margin-top: 12px;
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ========== CTA Banner ========== */
.cta-banner {
  background: linear-gradient(135deg, var(--honey-gold-lt), var(--cream));
  text-align: center;
  padding: 48px 24px;
  border-radius: var(--radius-lg);
  margin: 0 auto;
  max-width: 800px;
}
.cta-banner h2 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--accent-dk);
  margin-bottom: 8px;
}
.cta-banner p {
  color: var(--text-soft);
  margin-bottom: 20px;
}
.btn-cta-lg {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--secondary), var(--secondary-dk));
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 14px 40px;
  border-radius: 30px;
  box-shadow: 0 4px 20px rgba(240, 98, 146, 0.4);
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-cta-lg:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(240, 98, 146, 0.55);
}

/* ========== Accordion FAQ ========== */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 18px 24px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  text-align: left;
  transition: color 0.2s;
}
.faq-question:hover { color: var(--accent-dk); }
.faq-question .faq-icon {
  font-size: 1.5rem;
  color: var(--accent);
  transition: transform 0.3s;
  flex-shrink: 0;
  margin-left: 12px;
}
.faq-item.open .faq-question .faq-icon { transform: rotate(45deg); }
.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;
  padding: 0 24px 20px;
}
.faq-answer p {
  font-size: 0.92rem;
  color: var(--text-soft);
  line-height: 1.75;
}
.faq-intro {
  color: var(--text-soft);
  margin-bottom: 32px;
}
.faq-note { margin-top: 16px; }

/* ========== System Requirements Table ========== */
.table-scroll { overflow-x: auto; margin: 0 auto 16px; max-width: 800px; }
.sys-reqs-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  font-size: 0.9rem;
}
.sys-reqs-table th {
  background: var(--accent);
  color: #fff;
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
}
.sys-reqs-table td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text-soft);
}
.sys-reqs-table tr:last-child td { border-bottom: none; }
.sys-reqs-table td:first-child {
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}
.td-highlight { color: var(--pink-fierce); font-weight: 700; }
.sys-reqs-h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent-dk);
  margin-top: 24px;
  margin-bottom: 12px;
}
.sys-reqs-h3:first-of-type { margin-top: 8px; }
.sys-note {
  margin-top: 20px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ========== Guide Page ========== */
.guide-intro {
  color: var(--text-soft);
  margin-bottom: 20px;
  line-height: 1.8;
}
.guide-intro-top { margin-top: 4px; }
.guide-steps-wrapper { counter-reset: guide-step; }
.guide-step {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--accent);
}
.guide-step h3 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.guide-step h3::before {
  counter-increment: guide-step;
  content: '#' counter(guide-step) ' ';
  color: var(--accent);
}
.guide-step:nth-child(odd) { border-left-color: var(--secondary); }
.guide-step:nth-child(3n) { border-left-color: var(--special); }
.guide-step p, .guide-step li {
  font-size: 0.9rem;
  color: var(--text-soft);
  line-height: 1.7;
}
.tip-box {
  background: var(--cream);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin: 14px 0;
}
.tip-box p {
  font-size: 0.88rem;
  color: var(--text-soft);
}
.tip-box strong { color: var(--accent-dk); }
.route-desc {
  color: var(--text-soft);
  line-height: 1.8;
  margin-bottom: 14px;
}
.route-heading {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent-dk);
  margin: 24px 0 10px;
}

/* ========== Story Page ========== */
.chapter-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent-dk);
  margin: 24px 0 8px;
}
.story-block {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--special);
}
.story-block:nth-child(even) { border-left-color: var(--accent); }
.story-block:nth-child(3n) { border-left-color: var(--secondary); }

/* ========== Characters Page ========== */
.characters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.char-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s;
}
.char-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.char-card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}
.char-card .char-info { padding: 18px 20px; }
.char-card .char-name {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}
.char-card .char-role {
  font-size: 0.82rem;
  color: var(--accent-dk);
  font-weight: 600;
  margin-bottom: 8px;
}
.char-card .char-desc {
  font-size: 0.86rem;
  color: var(--text-soft);
  line-height: 1.6;
  margin-bottom: 10px;
}
.char-card .char-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.char-tag {
  display: inline-block;
  font-size: 0.72rem;
  padding: 3px 10px;
  border-radius: 12px;
  background: var(--cream);
  color: var(--accent-dk);
  font-weight: 500;
}

/* ========== Content List Classes ========== */
.content-list { list-style: disc; padding-left: 20px; }
.content-list-num { list-style: decimal; padding-left: 24px; }
.content-li { margin-bottom: 5px; color: var(--text-soft); }
.content-li-sm { margin-bottom: 4px; color: var(--text-soft); }
.content-li-md { margin-bottom: 8px; color: var(--text-soft); }
.content-li-lg { margin-bottom: 10px; color: var(--text-soft); }

/* ========== Colored Strong Tags ========== */
.strong-pink { color: var(--pink-fierce); }
.strong-red { color: var(--danger-red); }
.strong-gold { color: var(--accent-gold); }
.strong-muted { color: var(--text-muted); }
.strong-navy { color: var(--uniform-navy); }

/* ========== Footer ========== */
footer {
  background: var(--bg-footer);
  text-align: center;
  padding: 28px 24px;
  color: #8D6E63;
  font-size: 0.85rem;
}
footer p { margin: 0; }

/* ========== Responsive ========== */
@media (max-width: 768px) {
  :root { --content-max: 100%; }
  .header-inner { padding: 0 16px; }
  nav { gap: 16px; }
  nav a { font-size: 0.82rem; }
  .logo { font-size: 1.1rem; }
  .hero { padding: 40px 16px 50px; }
  .hero-title-main { font-size: 2rem; }
  .hero-tagline { font-size: 1rem; }
  .hero-img-wrap { margin: 24px auto -40px; }
  .content-section { padding: 48px 16px; }
  .feature-grid { grid-template-columns: 1fr; }
  .reviews-grid { grid-template-columns: 1fr; }
  .characters-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .faq-question { font-size: 0.95rem; padding: 14px 18px; }
  .hero-subpage { padding: 32px 16px 40px; }
  .hero-subpage-title { font-size: 1.6rem; }
  .btn-cta-lg { font-size: 0.95rem; padding: 12px 32px; }
}

@media (max-width: 480px) {
  .hero-title-main { font-size: 1.6rem; }
  .hero-subpage-title { font-size: 1.4rem; }
  .section-heading, .section-heading-alt { font-size: 1.5rem; }
  .btn-cta { font-size: 0.8rem; padding: 6px 16px; }
  nav { gap: 10px; }
  nav a { font-size: 0.75rem; }
  .logo { font-size: 0.95rem; }
  .game-info-grid { grid-template-columns: repeat(2, 1fr); }
}
