/* ==========================================
   甜蜜夏日 - Sweet Summer Theme
   Sunny yellows, sky blues, watermelon pink/red accents
   Beachy fresh vibe, light bright background
   ========================================== */

/* --- CSS Custom Properties --- */
:root {
  --bg: #fffdf7;
  --bg-cream: #fff9ee;
  --bg-card: #ffffff;
  --bg-hero: linear-gradient(160deg, #d4efff 0%, #a8ddf0 15%, #fff9ee 50%, #fff3d6 85%, #ffe89c 100%);
  --text: #3d3628;
  --text-muted: #7a7260;
  --text-light: #b0a590;
  --heading: #2c2416;
  --accent: #e63946;
  --accent-hover: #c1121f;
  --accent-light: #fce4e6;
  --accent-soft: #fff0f1;
  --sky: #0077b6;
  --sky-light: #90e0ef;
  --sky-soft: #e0f4ff;
  --sun: #f4c542;
  --sun-light: #f9e79f;
  --sun-soft: #fff8e1;
  --melon: #ff6b7f;
  --melon-light: #ffb3bf;
  --melon-soft: #fff0f3;
  --border: #e8ddd0;
  --border-light: #f0e8dc;
  --shadow-sm: 0 1px 3px rgba(61,54,40,0.06);
  --shadow: 0 2px 12px rgba(61,54,40,0.08);
  --shadow-lg: 0 8px 30px rgba(61,54,40,0.10);
  --shadow-card: 0 2px 8px rgba(61,54,40,0.05);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --font: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', sans-serif;
  --max-width: 1100px;
  --nav-height: 64px;
  --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;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--sky); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent); }

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 { color: var(--heading); line-height: 1.3; font-weight: 600; }
h1 { font-size: 2.4rem; margin-bottom: 1rem; }
h2 { font-size: 1.8rem; margin-bottom: 0.8rem; }
h3 { font-size: 1.3rem; margin-bottom: 0.5rem; }
p { margin-bottom: 1rem; }
ul, ol { padding-left: 1.5rem; margin-bottom: 1rem; }
li { margin-bottom: 0.4rem; }

/* --- Utility Classes --- */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.pt-2 { padding-top: 2rem; }
.pt-3 { padding-top: 3rem; }
.pb-2 { padding-bottom: 2rem; }
.pb-3 { padding-bottom: 3rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.section-title { text-align: center; margin-bottom: 2.5rem; color: var(--heading); }
.section-subtitle { text-align: center; color: var(--text-muted); font-size: 1.05rem; margin-top: -1.5rem; margin-bottom: 2.5rem; }

/* --- Header / Navigation --- */
header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,253,247,0.92);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--sun-light);
  height: var(--nav-height);
}
header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 100%; max-width: var(--max-width);
}
.logo {
  display: flex; align-items: center; gap: 0.6rem;
  font-size: 1.15rem; font-weight: 700; color: var(--heading);
  white-space: nowrap;
}
.logo-icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--sun) 0%, var(--accent) 100%);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  color: #fff;
}
nav { display: flex; align-items: center; gap: 0.3rem; }
nav a {
  color: var(--text); padding: 0.5rem 1rem;
  border-radius: var(--radius-sm); font-size: 0.95rem;
  font-weight: 500; transition: all var(--transition);
}
nav a:hover, nav a.active { background: var(--sun-soft); color: var(--accent); }

.nav-cta {
  background: var(--accent) !important;
  color: #fff !important;
  padding: 0.55rem 1.3rem !important;
  border-radius: 20px !important;
  font-weight: 600 !important;
  margin-left: 0.5rem;
  transition: all var(--transition) !important;
  box-shadow: 0 2px 8px rgba(230,57,70,0.3);
}
.nav-cta:hover {
  background: var(--accent-hover) !important;
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(230,57,70,0.45);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none; background: none; border: none; cursor: pointer;
  padding: 0.4rem; width: 36px; height: 36px;
  position: relative;
}
.menu-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--text); margin: 5px auto;
  transition: all 0.3s ease;
}
.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); }

/* --- Hero Section --- */
.hero {
  background: var(--bg-hero);
  padding: 5rem 0 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--sky-light), var(--accent), var(--sun));
}
.hero::after {
  content: '';
  position: absolute; top: -40%; left: -20%;
  width: 140%; height: 180%;
  background:
    radial-gradient(ellipse at 30% 60%, rgba(0,119,182,0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 40%, rgba(244,197,66,0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 20%, rgba(230,57,70,0.04) 0%, transparent 50%);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 1; }
.hero h1 {
  font-size: 2.8rem; margin-bottom: 1.2rem;
  background: linear-gradient(135deg, var(--sky) 0%, #0096c7 40%, var(--accent) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero .subtitle {
  font-size: 1.15rem; color: var(--text-muted); max-width: 620px;
  margin: 0 auto 2rem; line-height: 1.8;
}
.hero-visual {
  max-width: 700px; margin: 2rem auto 0;
  height: 200px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--sky-soft) 0%, var(--sun-soft) 60%, var(--sun-light) 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 5rem;
  box-shadow: var(--shadow-lg);
  border: 2px solid var(--sky-light);
  overflow: hidden;
  position: relative;
}
.hero-visual::before {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 30%;
  background: linear-gradient(180deg, transparent, rgba(249,231,159,0.5));
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

/* --- Page Header (inner pages) --- */
.page-header {
  background: var(--bg-hero);
  padding: 3rem 0 2rem;
  text-align: center;
  position: relative;
}
.page-header::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--sky-light), var(--accent), var(--sun));
}
.page-header h1 {
  font-size: 2.2rem;
  background: linear-gradient(135deg, var(--sky) 0%, #0096c7 40%, var(--accent) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.page-header p { color: var(--text-muted); font-size: 1.05rem; max-width: 600px; margin: 0 auto; }

/* --- Sections --- */
section { padding: 4rem 0; }
section:nth-child(even) { background: var(--bg-cream); }

/* --- Hero Tags --- */
.hero-tags { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; margin-bottom: 1.5rem; }

/* --- Stats Row --- */
.stats-row {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 2rem;
  padding: 2rem 0; background: var(--bg-card);
  border-bottom: 1px solid var(--border-light);
}
.stat-item { text-align: center; }
.stat-value { font-size: 2rem; font-weight: 700; color: var(--accent); }
.stat-label { font-size: 0.9rem; color: var(--text-muted); margin-top: 0.2rem; }

/* --- Info Cards Grid --- */
.info-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.2rem; margin-top: 2rem;
}
.info-card {
  background: var(--bg-card); border-radius: var(--radius);
  padding: 1.5rem; text-align: center;
  box-shadow: var(--shadow-card); border: 1px solid var(--border-light);
  transition: transform var(--transition), box-shadow var(--transition);
  border-top: 3px solid var(--sky);
}
.info-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.info-card .info-icon { font-size: 2rem; margin-bottom: 0.6rem; }
.info-card .info-label { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0.3rem; }
.info-card .info-value { font-size: 1rem; font-weight: 600; color: var(--heading); }

/* --- Feature Cards --- */
.feature-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.feature-card {
  background: var(--bg-card); border-radius: var(--radius);
  padding: 2rem; box-shadow: var(--shadow-card);
  border: 1px solid var(--border-light);
  display: flex; gap: 1rem; align-items: flex-start;
  border-left: 4px solid var(--sun);
}
.feature-card .feature-icon {
  font-size: 2rem; flex-shrink: 0;
  width: 50px; height: 50px;
  display: flex; align-items: center; justify-content: center;
  background: var(--sun-soft); border-radius: var(--radius-sm);
}
.feature-card h3 { font-size: 1.15rem; margin-bottom: 0.4rem; color: var(--accent); }
.feature-card p { font-size: 0.95rem; color: var(--text-muted); margin-bottom: 0; }

/* --- Story Content --- */
.story-block {
  background: var(--bg-card); border-radius: var(--radius);
  padding: 2rem; margin-bottom: 2rem;
  box-shadow: var(--shadow-card); border-left: 4px solid var(--accent);
}
.story-block h3 { color: var(--sky); margin-bottom: 0.5rem; }
.story-block p:last-child { margin-bottom: 0; }

.story-quote {
  background: var(--sun-soft); border-radius: var(--radius);
  padding: 2rem 2.5rem; text-align: center;
  font-size: 1.1rem; color: var(--heading); font-style: italic;
  margin: 2rem 0; border: 2px solid var(--sun);
  position: relative;
}
.story-quote::before { content: '☀'; position: absolute; top: -15px; left: 20px; font-size: 1.8rem; font-style: normal; }
.story-quote::after { content: '🌊'; position: absolute; bottom: -15px; right: 20px; font-size: 1.8rem; font-style: normal; }

.accent-line {
  background: linear-gradient(90deg, var(--sky-light), var(--accent), var(--sun));
  height: 3px; border-radius: 2px; margin: 2rem 0;
}

/* --- Character Cards --- */
.char-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.char-card {
  background: var(--bg-card); border-radius: var(--radius);
  padding: 2rem; text-align: center;
  box-shadow: var(--shadow-card); border: 1px solid var(--border-light);
  transition: transform var(--transition), box-shadow var(--transition);
}
.char-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.char-avatar {
  width: 100px; height: 100px; border-radius: 50%;
  margin: 0 auto 1rem;
  background: linear-gradient(135deg, var(--sun-soft), var(--melon-light));
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem; overflow: hidden;
  border: 3px solid var(--melon);
}
.char-card h3 { font-size: 1.2rem; margin-bottom: 0.3rem; }
.char-card .char-role { color: var(--accent); font-size: 0.9rem; font-weight: 600; margin-bottom: 0.8rem; }
.char-card p { font-size: 0.93rem; color: var(--text-muted); margin-bottom: 0; }

.char-traits {
  display: flex; flex-wrap: wrap; gap: 0.4rem; justify-content: center;
  margin-top: 0.8rem;
}
.char-trait {
  background: var(--sun-soft); color: #8a6d14;
  padding: 0.25rem 0.7rem; border-radius: 15px;
  font-size: 0.8rem; font-weight: 600;
}

.char-cv {
  font-size: 0.85rem; color: var(--text-light); margin-top: 0.5rem;
}

/* --- Guide Steps --- */
.guide-steps { counter-reset: step; max-width: 800px; margin: 0 auto; }
.guide-step {
  background: var(--bg-card); border-radius: var(--radius);
  padding: 2rem 2rem 2rem 5rem; position: relative;
  margin-bottom: 1.5rem; box-shadow: var(--shadow-card);
  border: 1px solid var(--border-light);
  counter-increment: step;
}
.guide-step::before {
  content: counter(step);
  position: absolute; left: 1.5rem; top: 1.8rem;
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--sky), var(--accent));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1.1rem;
}
.guide-step h3 { margin-bottom: 0.5rem; }
.guide-step p:last-child { margin-bottom: 0; }
.guide-tip {
  background: var(--sun-soft); border-radius: var(--radius-sm);
  padding: 0.7rem 1rem; margin-top: 0.8rem;
  font-size: 0.9rem; color: #8a6d14;
  border-left: 3px solid var(--sun);
}

/* --- FAQ Accordion --- */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  background: var(--bg-card); border-radius: var(--radius);
  margin-bottom: 0.8rem; box-shadow: var(--shadow-card);
  border: 1px solid var(--border-light);
  overflow: hidden;
}
.faq-question {
  width: 100%; text-align: left; padding: 1.2rem 1.5rem;
  background: none; border: none; cursor: pointer;
  font-size: 1.05rem; font-weight: 600; color: var(--heading);
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font); transition: background var(--transition);
}
.faq-question:hover { background: var(--sky-soft); }
.faq-question .arrow {
  font-size: 0.8rem; transition: transform var(--transition);
  color: var(--accent); flex-shrink: 0; margin-left: 1rem;
}
.faq-answer {
  max-height: 0; overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 1.5rem;
}
.faq-answer p { font-size: 0.95rem; color: var(--text-muted); margin-bottom: 0; }
.faq-item.open .faq-answer {
  max-height: 500px; padding: 0 1.5rem 1.2rem;
}
.faq-item.open .faq-question .arrow { transform: rotate(180deg); }
.faq-item.open .faq-question { background: var(--sky-soft); }

/* --- Tags --- */
.tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.5rem; }
.tag {
  background: var(--sun-soft); color: #8a6d14;
  padding: 0.3rem 0.8rem; border-radius: 15px;
  font-size: 0.85rem; font-weight: 500;
}
.tag-red {
  background: var(--accent-soft); color: var(--accent);
  padding: 0.3rem 0.8rem; border-radius: 15px;
  font-size: 0.85rem; font-weight: 500;
}
.tag-sky {
  background: var(--sky-soft); color: var(--sky);
  padding: 0.3rem 0.8rem; border-radius: 15px;
  font-size: 0.85rem; font-weight: 500;
}
.tag-melon {
  background: var(--melon-soft); color: #d4445a;
  padding: 0.3rem 0.8rem; border-radius: 15px;
  font-size: 0.85rem; font-weight: 500;
}

/* --- Breadcrumbs --- */
.breadcrumbs {
  padding: 0.8rem 0; font-size: 0.9rem; color: var(--text-muted);
  max-width: var(--max-width); margin: 0 auto; padding: 0.8rem 1.5rem;
}
.breadcrumbs a { color: var(--sky); }
.breadcrumbs span { color: var(--text-light); }

/* --- CTA Banner --- */
.cta-banner {
  background: linear-gradient(135deg, var(--sky-soft), var(--sun-soft));
  border-radius: var(--radius-lg);
  padding: 3rem 2rem; text-align: center;
  margin: 2rem 0;
  border: 2px solid var(--sun);
}
.cta-banner h2 { margin-bottom: 0.6rem; color: var(--heading); }
.cta-banner p { color: var(--text-muted); max-width: 500px; margin: 0 auto 1.5rem; }

/* --- Buttons --- */
.btn {
  display: inline-block; padding: 0.8rem 2rem;
  font-size: 1.05rem; font-weight: 600; border-radius: 25px;
  transition: all var(--transition); cursor: pointer;
  border: none; text-align: center;
}
.btn-primary {
  background: var(--accent); color: #fff;
  box-shadow: 0 4px 16px rgba(230,57,70,0.35);
}
.btn-primary:hover {
  background: var(--accent-hover); color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(230,57,70,0.5);
}
.btn-sky {
  background: var(--sky); color: #fff;
  box-shadow: 0 4px 16px rgba(0,119,182,0.3);
}
.btn-sky:hover { background: #005f8c; color: #fff; transform: translateY(-2px); }

/* --- Wave Divider --- */
.wave-divider {
  height: 40px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 40'%3E%3Cpath fill='%2390e0ef' d='M0,20 C150,0 300,40 450,20 C600,0 750,40 900,20 C1050,0 1200,40 1200,20 L1200,40 L0,40 Z' opacity='0.2'/%3E%3Cpath fill='%230077b6' d='M0,25 C200,10 400,40 600,25 C800,10 1000,40 1200,25 L1200,40 L0,40 Z' opacity='0.15'/%3E%3C/svg%3E") repeat-x;
  background-size: 600px 40px;
  margin: 2rem 0;
}

/* --- Gallery Placeholders --- */
.gallery {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
.gallery-placeholder {
  aspect-ratio: 16/9; border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--sky-soft), var(--sun-soft));
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem; transition: transform var(--transition), box-shadow var(--transition);
  border: 2px solid var(--sky-light);
}
a:hover .gallery-placeholder {
  transform: scale(1.03); box-shadow: var(--shadow);
}

/* --- Ending Cards --- */
.ending-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.ending-card {
  background: var(--bg-card); border-radius: var(--radius);
  padding: 1.5rem; box-shadow: var(--shadow-card);
  border: 1px solid var(--border-light);
  border-top: 3px solid var(--melon);
}
.ending-card h3 { color: var(--accent); font-size: 1.1rem; }
.ending-card p { font-size: 0.93rem; color: var(--text-muted); margin-bottom: 0; }

/* --- Heart/Sun Divider --- */
.sun-divider { text-align: center; font-size: 1.5rem; color: var(--sun); margin: 2rem 0; }

/* --- Footer --- */
footer {
  background: linear-gradient(180deg, var(--bg-cream), var(--sun-soft));
  border-top: 2px solid var(--sun-light);
  padding: 2rem 0;
  text-align: center;
}
footer p { color: var(--text-light); font-size: 0.88rem; margin-bottom: 0; }

/* --- Lightbox --- */
.lightbox {
  display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.85); z-index: 1000; align-items: center; justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 90vh; border-radius: var(--radius-sm); }
.lightbox-close {
  position: absolute; top: 20px; right: 30px;
  color: #fff; font-size: 2rem; cursor: pointer;
  transition: color var(--transition);
}
.lightbox-close:hover { color: var(--accent); }

/* --- Responsive --- */
@media (max-width: 768px) {
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.4rem; }
  .hero { padding: 3rem 0 2rem; }
  .hero h1 { font-size: 2rem; }
  .hero .subtitle { font-size: 1rem; }
  .hero-visual { height: 150px; font-size: 3.5rem; }
  .menu-toggle { display: block; }
  nav {
    display: none; position: absolute; top: var(--nav-height);
    left: 0; width: 100%; background: rgba(255,253,247,0.98);
    backdrop-filter: blur(12px); flex-direction: column;
    padding: 1rem 1.5rem; gap: 0.3rem;
    border-bottom: 2px solid var(--sun-light);
    box-shadow: var(--shadow);
  }
  nav.open { display: flex; }
  nav a { width: 100%; padding: 0.7rem 1rem; }
  .nav-cta { margin-left: 0; text-align: center; }
  .feature-grid { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: repeat(2, 1fr); }
  .char-grid { grid-template-columns: 1fr; }
  .guide-step { padding: 1.5rem 1.5rem 1.5rem 4rem; }
  .guide-step::before { left: 1rem; top: 1.3rem; width: 34px; height: 34px; font-size: 1rem; }
  .stats-row { gap: 1rem; }
}
@media (max-width: 480px) {
  .info-grid { grid-template-columns: 1fr; }
}
