/* ============================================================
   夏日之吻 (Summer Kiss) — Summer Romance Theme
   Blush-pink sunsets · Ocean-breeze blues · Lip-stain motifs
   ============================================================ */

/* --- Custom Properties --- */
:root {
  /* Warm base */
  --bg: #fef9f5;
  --bg-alt: #fdf4ed;
  --text: #3d2c2c;
  --text-muted: #7a6a68;
  --text-light: #a89590;

  /* Blush-pink palette */
  --blush-light: #fce4e0;
  --blush: #f2a9a4;
  --blush-deep: #e8918a;
  --blush-dark: #d4687a;

  /* Lip-stain reds */
  --lip-light: #e8838e;
  --lip: #c94b5a;
  --lip-deep: #a83a48;

  /* Ocean blues */
  --ocean-light: #c8e0e8;
  --ocean: #7eb8c9;
  --ocean-deep: #5a9fb5;
  --ocean-dark: #3d7a8f;

  /* Sunset golds */
  --gold-light: #fdf0d5;
  --gold: #f0c27a;
  --gold-deep: #d9a85c;

  /* Header */
  --header-bg: #2d2a35;
  --header-text: #f5f0ed;
  --header-accent: #e8918a;

  /* Cards & accents */
  --card-bg: #fffaf7;
  --card-border: #f0e3dc;
  --card-shadow: 0 2px 12px rgba(200, 120, 110, 0.08);

  /* Fonts */
  --font-heading: 'Noto Serif SC', 'SimSun', 'STSong', 'Songti SC', serif;
  --font-body: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', 'Hiragino Sans GB', sans-serif;

  /* Spacing */
  --max-width: 1100px;
  --nav-height: 64px;
  --radius: 10px;
  --radius-sm: 6px;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* Body background pattern — subtle lip/kiss motif */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 15% 20%, rgba(242, 169, 164, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 85% 70%, rgba(126, 184, 201, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(240, 194, 122, 0.03) 0%, transparent 70%);
  opacity: 1;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
}

h1 { font-size: 2.2rem; letter-spacing: 0.04em; }
h2 { font-size: 1.7rem; margin: 2rem 0 1rem; position: relative; }
h3 { font-size: 1.3rem; margin: 1.5rem 0 0.75rem; }
h4 { font-size: 1.1rem; margin: 1rem 0 0.5rem; }

/* Section heading decorative lip-stain underline */
h2::after {
  content: '';
  display: block;
  width: 56px;
  height: 4px;
  margin-top: 10px;
  background: linear-gradient(90deg, var(--lip), var(--blush));
  border-radius: 2px;
  position: relative;
}

h2::before {
  content: '💋';
  position: absolute;
  left: -36px;
  top: 2px;
  font-size: 1rem;
  opacity: 0.5;
}

p { margin-bottom: 1rem; }

a {
  color: var(--lip);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover { color: var(--lip-deep); text-decoration: underline; }

/* --- Layout --- */
main {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
  flex: 1;
}

/* ============================================================
   HEADER & NAVIGATION
   ============================================================ */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  border-bottom: 3px solid var(--header-accent);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.15);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  height: var(--nav-height);
}

/* Site logo/brand */
.site-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-brand a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--header-text);
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
}

.site-brand a:hover {
  color: var(--blush);
  text-decoration: none;
}

.site-logo {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

/* Navigation */
nav ul {
  display: flex;
  gap: 0.25rem;
  list-style: none;
  align-items: center;
}

nav ul li a {
  display: block;
  padding: 0.45rem 1rem;
  color: var(--header-text);
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  transition: background 0.2s, color 0.2s;
  text-decoration: none;
}

nav ul li a:hover,
nav ul li a.active {
  background: rgba(232, 145, 138, 0.2);
  color: var(--blush);
  text-decoration: none;
}

/* Header CTA button */
.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.5rem 1.4rem;
  background: linear-gradient(135deg, var(--lip), var(--lip-deep));
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 24px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(201, 75, 90, 0.35);
}

.header-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(201, 75, 90, 0.45);
  color: #fff;
  text-decoration: none;
}

.header-cta::before {
  content: '⬇';
  font-size: 0.85rem;
}

/* ============================================================
   HERO SECTION (index)
   ============================================================ */
.hero {
  position: relative;
  margin: -2rem -1.5rem 2.5rem;
  padding: 0;
  overflow: hidden;
  border-radius: 0 0 var(--radius) var(--radius);
}

.hero-image {
  width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: cover;
  display: block;
}

/* Gradient overlay on hero */
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(transparent, rgba(254, 249, 245, 0.85));
  pointer-events: none;
}

.hero-content {
  position: absolute;
  bottom: 2rem;
  left: 2rem;
  right: 2rem;
  z-index: 2;
}

.hero-content h2 {
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  font-size: 2rem;
  margin: 0;
}

.hero-content h2::after {
  background: linear-gradient(90deg, var(--blush-light), var(--gold));
}

.hero-content h2::before {
  display: none;
}

.hero-content p {
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
  max-width: 600px;
}

/* ============================================================
   CARDS
   ============================================================ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-left: 4px solid var(--blush);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--card-shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(200, 120, 110, 0.12);
}

.card h3 {
  margin-top: 0;
  color: var(--lip);
}

.card-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  display: block;
}

/* Feature cards with ocean accent */
.card.feature-ocean { border-left-color: var(--ocean); }
.card.feature-gold { border-left-color: var(--gold); }
.card.feature-lip { border-left-color: var(--lip); }

/* --- Character Cards --- */
.char-card {
  display: flex;
  gap: 1.5rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-left: 4px solid var(--blush);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--card-shadow);
  align-items: flex-start;
}

.char-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--blush-light);
  flex-shrink: 0;
}

.char-info h3 {
  margin-top: 0;
  color: var(--lip);
}

.char-info .char-cv {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.char-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.char-stat {
  background: var(--blush-light);
  color: var(--lip-deep);
  padding: 0.2rem 0.75rem;
  border-radius: 16px;
  font-size: 0.82rem;
  font-weight: 500;
}

.char-stat.ocean {
  background: var(--ocean-light);
  color: var(--ocean-dark);
}

.char-stat.gold {
  background: var(--gold-light);
  color: var(--gold-deep);
}

/* --- Screenshot Gallery --- */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 2rem 0;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.2s, transform 0.2s;
}

.gallery-item:hover {
  border-color: var(--blush);
  transform: scale(1.02);
}

.gallery-item img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.gallery-item::after {
  content: '🔍';
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  opacity: 0;
  transition: opacity 0.2s;
}

.gallery-item:hover::after { opacity: 1; }

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.88);
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  cursor: default;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  font-size: 2.2rem;
  color: #fff;
  cursor: pointer;
  z-index: 1001;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  transition: background 0.2s;
}

.lightbox-close:hover { background: rgba(255, 255, 255, 0.3); }

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2.5rem;
  color: #fff;
  cursor: pointer;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  transition: background 0.2s;
}

.lightbox-prev { left: 1.5rem; }
.lightbox-next { right: 1.5rem; }
.lightbox-prev:hover,
.lightbox-next:hover { background: rgba(255, 255, 255, 0.28); }

/* ============================================================
   ACCORDION (FAQ)
   ============================================================ */
.accordion {
  margin: 2rem 0;
}

.accordion-item {
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  overflow: hidden;
  background: var(--card-bg);
}

.accordion-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--text);
  text-align: left;
  transition: background 0.2s;
}

.accordion-header:hover {
  background: var(--blush-light);
}

.accordion-header::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--blush);
  transition: transform 0.3s;
  flex-shrink: 0;
  margin-left: 1rem;
}

.accordion-item.active .accordion-header::after {
  content: '−';
  color: var(--lip);
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}

.accordion-item.active .accordion-body {
  max-height: 600px;
  padding: 0 1.25rem 1.25rem;
}

.accordion-body p {
  margin: 0;
}

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-banner {
  text-align: center;
  padding: 3rem 2rem;
  margin: 3rem 0 1rem;
  background: linear-gradient(135deg, var(--blush-light), var(--ocean-light));
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}

/* Lip-stain kiss mark decorative */
.cta-banner::before {
  content: '💋';
  position: absolute;
  top: -10px;
  right: 20px;
  font-size: 4rem;
  opacity: 0.1;
  transform: rotate(15deg);
}

.cta-banner h2 {
  margin-top: 0;
}

.cta-banner h2::before { display: none; }

.cta-banner .cta-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 1rem;
  padding: 0.9rem 2.5rem;
  background: linear-gradient(135deg, var(--lip), var(--lip-deep));
  color: #fff;
  font-size: 1.15rem;
  font-weight: 700;
  border-radius: 30px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(201, 75, 90, 0.4);
}

.cta-banner .cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(201, 75, 90, 0.5);
  color: #fff;
  text-decoration: none;
}

/* ============================================================
   REVIEWS / TESTIMONIALS
   ============================================================ */
.reviews {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  margin: 2rem 0;
}

.review-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--card-shadow);
  position: relative;
}

.review-card::before {
  content: '"';
  position: absolute;
  top: 8px;
  left: 12px;
  font-size: 3rem;
  font-family: var(--font-heading);
  color: var(--blush);
  opacity: 0.25;
  line-height: 1;
}

.review-card p {
  font-style: italic;
  margin-bottom: 0.75rem;
  padding-left: 1rem;
}

.review-card .reviewer {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* ============================================================
   STEP GUIDE (guide page)
   ============================================================ */
.step-list {
  counter-reset: step;
  list-style: none;
  margin: 2rem 0;
  padding: 0;
}

.step-list li {
  counter-increment: step;
  position: relative;
  padding: 1.5rem 1.5rem 1.5rem 3.5rem;
  margin-bottom: 1.25rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-left: 4px solid var(--ocean);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
}

.step-list li::before {
  content: counter(step);
  position: absolute;
  left: 1rem;
  top: 1.5rem;
  width: 32px;
  height: 32px;
  background: var(--ocean);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 700;
}

.tip-box {
  background: var(--gold-light);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin: 1.25rem 0;
}

.tip-box strong {
  color: var(--gold-deep);
}

/* ============================================================
   STORY PAGE
   ============================================================ */
.story-section {
  margin: 2rem 0;
}

.chapter-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--lip);
  margin: 1.8rem 0 0.6rem;
  letter-spacing: 0.03em;
}

.chapter-title::before {
  content: '📖 ';
  font-size: 0.95rem;
}

.ending-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.ending-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
}

.ending-card .ending-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  display: block;
}

.ending-card h4 {
  margin-top: 0;
  color: var(--lip);
}

/* ============================================================
   TABLE (system requirements)
   ============================================================ */
.table-scroll {
  overflow-x: auto;
  margin: 1.5rem 0;
  border-radius: var(--radius);
  border: 1px solid var(--card-border);
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card-bg);
  min-width: 500px;
}

table th,
table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--card-border);
}

table th {
  background: var(--blush-light);
  color: var(--lip-deep);
  font-weight: 700;
  white-space: nowrap;
}

table tr:last-child td {
  border-bottom: none;
}

table tr:hover td {
  background: rgba(252, 228, 224, 0.3);
}

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb {
  display: flex;
  gap: 0.4rem;
  list-style: none;
  padding: 0;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.breadcrumb li:not(:last-child)::after {
  content: '›';
  margin-left: 0.4rem;
  color: var(--text-light);
}

.breadcrumb a {
  color: var(--text-muted);
}

.breadcrumb a:hover {
  color: var(--lip);
}

.breadcrumb li:last-child {
  color: var(--lip);
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  position: relative;
  z-index: 1;
  background: var(--header-bg);
  color: var(--header-text);
  text-align: center;
  padding: 1.5rem;
  font-size: 0.88rem;
  border-top: 3px solid var(--header-accent);
}

footer p {
  margin: 0;
  opacity: 0.7;
}

/* ============================================================
   SCREEN READER ONLY
   ============================================================ */
.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;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  /* Header */
  .header-inner {
    flex-wrap: wrap;
    height: auto;
    padding: 0.6rem 1rem;
    gap: 0.5rem;
  }

  .site-brand a {
    font-size: 1.15rem;
  }

  nav ul {
    flex-wrap: wrap;
    gap: 0;
  }

  nav ul li a {
    padding: 0.35rem 0.65rem;
    font-size: 0.85rem;
  }

  .header-cta {
    font-size: 0.85rem;
    padding: 0.4rem 1rem;
  }

  /* Hero */
  .hero-content {
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
  }

  .hero-content h2 {
    font-size: 1.4rem;
  }

  /* Cards */
  .card-grid {
    grid-template-columns: 1fr;
  }

  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .char-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .char-stats {
    justify-content: center;
  }

  .reviews {
    grid-template-columns: 1fr;
  }

  .ending-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  main {
    padding: 1.5rem 1rem 2rem;
  }

  h1 { font-size: 1.7rem; }
  h2 { font-size: 1.4rem; }
}

@media (max-width: 480px) {
  .gallery {
    grid-template-columns: 1fr;
  }

  .ending-grid {
    grid-template-columns: 1fr;
  }

  .hero-content h2 {
    font-size: 1.15rem;
  }

  .hero-content p {
    font-size: 0.85rem;
  }

  .cta-banner {
    padding: 2rem 1rem;
  }

  .cta-banner .cta-button {
    font-size: 1rem;
    padding: 0.7rem 1.8rem;
  }

  .step-list li {
    padding-left: 2rem;
  }

  nav ul li a {
    padding: 0.3rem 0.5rem;
    font-size: 0.78rem;
  }
}
