/* === 夏色泡影 - Summer Bubble Theme === */
/* Bubble iridescent pastels & pool-water turquoises */
/* Floating ephemeral motifs on light airy background */

:root {
  /* Core palette */
  --bg: #f6fafc;
  --bg-card: #ffffff;
  --bg-alt: #eef6fa;

  /* Bubble iridescent pastels */
  --bubble-blue: #a8d8ea;
  --bubble-pink: #f0c6e3;
  --bubble-lavender: #c9b1ff;
  --bubble-mint: #b8f0d8;
  --bubble-peach: #fde2d5;

  /* Pool-water turquoises */
  --pool-light: #40e0d0;
  --pool-mid: #48d1cc;
  --pool-deep: #2ca8a0;

  /* Accent */
  --accent: #e87fb8;
  --accent-soft: #f5a6cf;
  --accent-glow: rgba(232, 127, 184, 0.25);

  /* Text */
  --text: #3a3a4a;
  --text-soft: #6b6b7b;
  --text-muted: #9494a4;
  --text-on-dark: #f0f4f8;

  /* Header */
  --header-bg: #1e2a3a;
  --header-border: #40e0d0;

  /* Typography */
  --font-sans: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-serif: 'Noto Serif SC', 'SimSun', 'STSong', serif;

  /* Spacing */
  --content-max: 1100px;
  --radius: 12px;
  --radius-sm: 8px;

  /* Shadows */
  --shadow-card: 0 2px 16px rgba(64, 224, 208, 0.08);
  --shadow-hover: 0 6px 24px rgba(64, 224, 208, 0.14);
  --shadow-header: 0 2px 12px rgba(0,0,0,0.15);
}

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

html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.8;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* === Floating Bubble Background === */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 15% 20%, rgba(168, 216, 234, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 85% 30%, rgba(240, 198, 227, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 25% 65%, rgba(201, 177, 255, 0.10) 0%, transparent 45%),
    radial-gradient(circle at 75% 75%, rgba(184, 240, 216, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(64, 224, 208, 0.06) 0%, transparent 60%);
}

/* Floating bubbles via pseudo-elements */
.bubbles-container {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

/* === Header === */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  border-bottom: 3px solid var(--header-border);
  box-shadow: var(--shadow-header);
}

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

.site-logo {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--pool-light);
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: color 0.3s;
}

.site-logo:hover { color: var(--accent-soft); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  color: var(--text-on-dark);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.3s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--pool-light);
  transition: width 0.3s;
}

.nav-links a:hover { color: var(--pool-light); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: var(--pool-light); }
.nav-links a.active::after { width: 100%; }

.header-cta {
  display: inline-block;
  padding: 8px 24px;
  background: linear-gradient(135deg, var(--pool-light), var(--pool-mid));
  color: #fff;
  border-radius: 24px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 2px 8px rgba(64, 224, 208, 0.3);
}

.header-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(64, 224, 208, 0.45);
}

/* === Main Content === */
main {
  position: relative;
  z-index: 1;
}

.container {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 20px;
}

/* === Hero Section === */
.hero {
  position: relative;
  text-align: center;
  padding: 80px 20px 90px;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg,
    rgba(168, 216, 234, 0.25) 0%,
    rgba(240, 198, 227, 0.18) 30%,
    rgba(184, 240, 216, 0.15) 60%,
    rgba(246, 250, 252, 0.95) 100%);
  z-index: 1;
}

.hero-img {
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1100px;
  height: 400px;
  object-fit: cover;
  border-radius: 0 0 60px 60px;
  opacity: 0.7;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  margin: 0 auto;
  padding-top: 60px;
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: 2.8rem;
  color: #1e2a3a;
  margin-bottom: 12px;
  text-shadow: 0 2px 8px rgba(255,255,255,0.6);
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-soft);
  margin-bottom: 10px;
}

.hero-tagline {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 30px;
}

.hero-cta {
  display: inline-block;
  padding: 14px 40px;
  background: linear-gradient(135deg, var(--pool-light), var(--pool-mid));
  color: #fff;
  border-radius: 30px;
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 700;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 4px 20px rgba(64, 224, 208, 0.35);
}

.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(64, 224, 208, 0.5);
}

/* Page hero (non-index) */
.page-hero {
  text-align: center;
  padding: 50px 20px 40px;
  background: linear-gradient(180deg,
    rgba(168, 216, 234, 0.2) 0%,
    rgba(246, 250, 252, 0) 100%);
}

.page-hero h1 {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  color: #1e2a3a;
  margin-bottom: 8px;
}

.page-hero .hero-subtitle {
  color: var(--text-soft);
}

/* === Section === */
.section {
  padding: 50px 0;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--text);
  margin-bottom: 28px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--bubble-blue);
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 60px;
  height: 2px;
  background: var(--pool-light);
}

/* === Info Cards (index) === */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.info-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-card);
  border-left: 4px solid var(--pool-light);
  transition: transform 0.3s, box-shadow 0.3s;
}

.info-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.info-card h3 {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--pool-deep);
  margin-bottom: 8px;
}

.info-card p {
  font-size: 0.9rem;
  color: var(--text-soft);
}

/* === Feature Cards === */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow-card);
  border-top: 3px solid var(--bubble-pink);
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 80px; height: 80px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--bubble-pink) 0%, transparent 70%);
  opacity: 0.15;
  transform: translate(30%, -30%);
}

.feature-card:nth-child(2) { border-top-color: var(--bubble-blue); }
.feature-card:nth-child(2)::before { background: radial-gradient(circle, var(--bubble-blue) 0%, transparent 70%); }
.feature-card:nth-child(3) { border-top-color: var(--bubble-lavender); }
.feature-card:nth-child(3)::before { background: radial-gradient(circle, var(--bubble-lavender) 0%, transparent 70%); }
.feature-card:nth-child(4) { border-top-color: var(--bubble-mint); }
.feature-card:nth-child(4)::before { background: radial-gradient(circle, var(--bubble-mint) 0%, transparent 70%); }
.feature-card:nth-child(5) { border-top-color: var(--bubble-peach); }
.feature-card:nth-child(5)::before { background: radial-gradient(circle, var(--bubble-peach) 0%, transparent 70%); }
.feature-card:nth-child(6) { border-top-color: var(--pool-light); }
.feature-card:nth-child(6)::before { background: radial-gradient(circle, var(--pool-light) 0%, transparent 70%); }

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.feature-card h3 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 10px;
}

.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-fit, minmax(300px, 1fr));
  gap: 16px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s;
  aspect-ratio: 16/9;
}

.gallery-item:hover { transform: scale(1.03); }

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

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(30, 42, 58, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}

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

.gallery-overlay span {
  color: #fff;
  font-size: 2rem;
  font-weight: 300;
}

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

.lightbox.active { display: flex; }

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: var(--radius);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  background: none;
  border: none;
  z-index: 1001;
}

/* === Reviews / Quotes === */
.quote-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.quote-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-card);
  border-left: 4px solid var(--bubble-lavender);
  position: relative;
}

.quote-card::before {
  content: '"';
  position: absolute;
  top: 10px;
  left: 16px;
  font-family: var(--font-serif);
  font-size: 3rem;
  color: var(--bubble-lavender);
  opacity: 0.3;
  line-height: 1;
}

.quote-card p {
  font-size: 0.95rem;
  color: var(--text);
  font-style: italic;
  margin-bottom: 10px;
  padding-left: 20px;
}

.quote-author {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* === CTA Banner (index only) === */
.cta-banner {
  text-align: center;
  padding: 60px 20px;
  background: linear-gradient(135deg,
    rgba(168, 216, 234, 0.2),
    rgba(240, 198, 227, 0.2),
    rgba(184, 240, 216, 0.2));
  border-radius: var(--radius);
  margin: 40px 0;
}

.cta-banner h2 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--text);
  margin-bottom: 12px;
}

.cta-banner p {
  color: var(--text-soft);
  margin-bottom: 24px;
}

.cta-btn {
  display: inline-block;
  padding: 14px 40px;
  background: linear-gradient(135deg, var(--accent), var(--accent-soft));
  color: #fff;
  border-radius: 30px;
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 700;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 4px 20px var(--accent-glow);
}

.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(232, 127, 184, 0.4);
}

/* === Guide Page === */
.guide-steps {
  counter-reset: step;
  max-width: 800px;
  margin: 0 auto;
}

.guide-step {
  counter-increment: step;
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 28px 28px 28px 70px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-card);
  position: relative;
}

.guide-step::before {
  content: counter(step);
  position: absolute;
  left: 20px;
  top: 28px;
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--pool-light), var(--pool-mid));
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
}

.guide-step h3 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 8px;
}

.guide-step p {
  font-size: 0.9rem;
  color: var(--text-soft);
}

.tip-box {
  background: linear-gradient(135deg, rgba(168, 216, 234, 0.15), rgba(184, 240, 216, 0.15));
  border-left: 4px solid var(--pool-light);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin: 16px 0;
}

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

.guide-intro {
  margin-bottom: 18px;
  color: var(--text-soft);
}

.route-heading {
  font-family: var(--font-serif);
  color: var(--pool-deep);
  margin: 24px 0 10px;
}

.route-desc {
  color: var(--text-soft);
  margin-bottom: 16px;
}

/* === Story Page === */
.story-section {
  max-width: 800px;
  margin: 0 auto;
}

.story-section h2 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--pool-deep);
  margin: 36px 0 14px;
  padding-left: 16px;
  border-left: 3px solid var(--pool-light);
}

.chapter-title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--accent);
  margin-top: 16px;
  margin-bottom: 6px;
}

.story-section p {
  font-size: 0.95rem;
  color: var(--text-soft);
  margin-bottom: 14px;
  text-indent: 2em;
}

/* === Characters Page === */
.char-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.char-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s, box-shadow 0.3s;
}

.char-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.char-card-img {
  width: 100%;
  height: 320px;
  object-fit: cover;
}

.char-card-body {
  padding: 20px;
}

.char-card-body h2 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--text);
  margin-bottom: 4px;
}

.char-role {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 12px;
}

.char-traits {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.char-trait {
  display: inline-block;
  padding: 4px 10px;
  background: var(--bg-alt);
  border-radius: 16px;
  font-size: 0.8rem;
  color: var(--text-soft);
}

.char-desc {
  font-size: 0.88rem;
  color: var(--text-soft);
  line-height: 1.7;
}

/* === FAQ Page === */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-card);
  border-radius: var(--radius);
  margin-bottom: 12px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.faq-question {
  padding: 18px 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
  color: var(--text);
  font-size: 0.95rem;
  transition: background 0.2s;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  font-family: var(--font-sans);
}

.faq-question:hover { background: var(--bg-alt); }

.faq-icon {
  font-size: 1.3rem;
  color: var(--pool-light);
  transition: transform 0.3s;
  flex-shrink: 0;
  margin-left: 12px;
}

.faq-item.open .faq-icon { transform: rotate(45deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  padding: 0 24px;
}

.faq-item.open .faq-answer {
  max-height: 600px;
  padding: 0 24px 18px;
}

.faq-answer p {
  font-size: 0.9rem;
  color: var(--text-soft);
  line-height: 1.7;
}

/* System Requirements Table */
.sys-req {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 0.9rem;
}

.sys-req th, .sys-req td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--bubble-blue);
}

.sys-req th {
  background: var(--bg-alt);
  color: var(--pool-deep);
  font-weight: 600;
  width: 30%;
}

.sys-req tr:hover td { background: rgba(168, 216, 234, 0.08); }

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* === Footer === */
.site-footer {
  background: var(--header-bg);
  color: var(--text-muted);
  text-align: center;
  padding: 20px;
  font-size: 0.85rem;
  margin-top: 60px;
  position: relative;
  z-index: 1;
}

.site-footer p { margin: 0; }

/* === 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-inner {
    flex-wrap: wrap;
    height: auto;
    padding: 10px 16px;
    gap: 10px;
  }

  .nav-links {
    order: 3;
    width: 100%;
    justify-content: center;
    gap: 16px;
    font-size: 0.85rem;
  }

  .hero { padding: 40px 16px 50px; }
  .hero h1 { font-size: 2rem; }
  .hero-content { padding-top: 30px; }

  .page-hero { padding: 30px 16px 25px; }
  .page-hero h1 { font-size: 1.6rem; }

  .section { padding: 32px 0; }
  .section-title { font-size: 1.3rem; }

  .gallery-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
  .feature-grid { grid-template-columns: 1fr; }
  .char-grid { grid-template-columns: 1fr; }
  .quote-grid { grid-template-columns: 1fr; }

  .guide-step { padding: 20px 16px 20px 55px; }
  .guide-step::before { left: 12px; top: 20px; width: 30px; height: 30px; font-size: 0.85rem; }

  .char-card-img { height: 260px; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.6rem; }
  .hero-cta { padding: 12px 28px; font-size: 0.95rem; }
  .header-cta { padding: 6px 16px; font-size: 0.8rem; }
  .nav-links { gap: 12px; }
  .nav-links a { font-size: 0.8rem; }
}
