/* ============================================================
   清洁工传奇 — Cleaning Comedy Theme
   Mop-bucket blues & sparkle whites + bubble motifs
   Quirky humorous aesthetic on light clean background
   ============================================================ */

:root {
  --bg: #f5f9fc;
  --bg-alt: #eef4f8;
  --bg-header: #1e3a5f;
  --bg-footer: #1e3a5f;
  --accent: #3b8ed4;
  --accent-hover: #2c6faa;
  --accent-light: #e1f0fb;
  --accent-glow: rgba(59, 142, 212, 0.15);
  --sparkle: #ffffff;
  --bubble: #c5e3f6;
  --bubble-light: #e8f4fd;
  --text: #2c3e50;
  --text-light: #5a6c7d;
  --text-muted: #8899aa;
  --text-inverse: #ffffff;
  --border: #d5e3ee;
  --shadow-sm: 0 1px 3px rgba(30, 58, 95, 0.06);
  --shadow-md: 0 4px 12px rgba(30, 58, 95, 0.08);
  --shadow-lg: 0 8px 30px rgba(30, 58, 95, 0.10);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --font-heading: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-body: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --max-width: 1200px;
}

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

/* Bubble background motif */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(59, 142, 212, 0.04) 0%, transparent 50%),
    radial-gradient(circle at 85% 35%, rgba(59, 142, 212, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 50% 70%, rgba(59, 142, 212, 0.04) 0%, transparent 50%),
    radial-gradient(circle at 25% 80%, rgba(197, 227, 246, 0.06) 0%, transparent 40%),
    radial-gradient(circle at 75% 15%, rgba(197, 227, 246, 0.05) 0%, transparent 40%);
}

/* === Header === */
header {
  position: sticky; top: 0; z-index: 1000;
  background: var(--bg-header);
  border-bottom: 3px solid var(--accent);
  box-shadow: 0 2px 12px rgba(30, 58, 95, 0.15);
}
.header-inner {
  max-width: var(--max-width); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; height: 64px;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--text-inverse);
  font-family: var(--font-heading); font-size: 1.25rem; font-weight: 700;
  letter-spacing: 0.5px;
}
.logo-icon {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, #5ba8e6, #2c6faa);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; box-shadow: 0 0 12px rgba(91, 168, 230, 0.3);
}
.logo-text { white-space: nowrap; }

nav { display: flex; align-items: center; gap: 6px; }
nav a {
  color: rgba(255,255,255,0.85); text-decoration: none;
  padding: 8px 16px; border-radius: var(--radius-sm);
  font-size: 0.95rem; transition: all 0.2s;
  white-space: nowrap;
}
nav a:hover, nav a.active { color: #fff; background: rgba(255,255,255,0.1); }
nav .nav-cta {
  background: var(--accent); color: #fff; font-weight: 600;
  padding: 8px 20px; border-radius: 20px; margin-left: 8px;
  box-shadow: 0 2px 8px rgba(59, 142, 212, 0.35);
  transition: all 0.2s;
}
nav .nav-cta:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(59, 142, 212, 0.4); }
.menu-toggle { display: none; background: none; border: none; color: #fff; font-size: 1.5rem; cursor: pointer; padding: 4px 8px; }

/* === Hero === */
.hero {
  position: relative; overflow: hidden;
  background: var(--bg-header);
  display: flex; align-items: center; justify-content: center;
  min-height: 420px;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(59,142,212,0.2) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 60%, rgba(91,168,230,0.15) 0%, transparent 60%);
  z-index: 1;
}
/* Bubble decorations */
.hero::after {
  content: '';
  position: absolute; z-index: 1; pointer-events: none;
  top: 10%; right: 8%; width: 80px; height: 80px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.15);
  background: radial-gradient(circle at 35% 35%, rgba(255,255,255,0.1) 0%, transparent 60%);
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center;
  opacity: 0.35;
}
.hero-home .hero-bg { background-image: url('../img/header.png'); }
.hero-guide .hero-bg { background-image: url('../img/screenshot-06.png'); }
.hero-story .hero-bg { background-image: url('../img/screenshot-05.png'); }
.hero-characters .hero-bg { background-image: url('../img/screenshot-04.png'); }
.hero-faq .hero-bg { background-image: url('../img/header.png'); }

.hero-overlay {
  position: relative; z-index: 2; text-align: center;
  padding: 60px 24px; max-width: 800px;
}
.hero h1 {
  font-family: var(--font-heading); font-size: 2.8rem; font-weight: 800;
  color: #fff; line-height: 1.3; margin-bottom: 16px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
  background: linear-gradient(180deg, #ffffff 0%, #c5e3f6 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p {
  font-size: 1.15rem; color: rgba(255,255,255,0.85);
  max-width: 600px; margin: 0 auto 28px;
}

/* Hero bubbles floating */
.hero-bubbles {
  position: absolute; inset: 0; pointer-events: none; z-index: 1;
}
.hero-bubbles span {
  position: absolute; border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.12);
  background: radial-gradient(circle at 40% 40%, rgba(255,255,255,0.08) 0%, transparent 60%);
}
.hero-bubbles span:nth-child(1) { width: 40px; height: 40px; top: 20%; left: 15%; }
.hero-bubbles span:nth-child(2) { width: 60px; height: 60px; top: 50%; left: 8%; }
.hero-bubbles span:nth-child(3) { width: 50px; height: 50px; top: 30%; right: 12%; }
.hero-bubbles span:nth-child(4) { width: 35px; height: 35px; bottom: 25%; right: 18%; }
.hero-bubbles span:nth-child(5) { width: 45px; height: 45px; bottom: 15%; left: 22%; }

.hero-tags {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
  margin-bottom: 28px;
}
.tag {
  display: inline-block; padding: 6px 16px; border-radius: 20px;
  font-size: 0.85rem; font-weight: 500;
  background: rgba(255,255,255,0.15); color: #fff;
  backdrop-filter: blur(4px);
}
.tag-blue { background: rgba(59,142,212,0.35); }
.tag-clean { background: rgba(91,168,230,0.3); }
.tag-sparkle { background: rgba(255,255,255,0.2); }

.btn {
  display: inline-block; padding: 14px 36px; border-radius: 28px;
  font-size: 1.05rem; font-weight: 700; text-decoration: none;
  transition: all 0.25s; cursor: pointer; border: none;
  font-family: var(--font-heading);
}
.btn-primary {
  background: linear-gradient(135deg, #4da0e8, #3b8ed4);
  color: #fff; box-shadow: 0 4px 16px rgba(59,142,212,0.4);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(59,142,212,0.5); }
.btn-secondary {
  background: rgba(255,255,255,0.15); color: #fff;
  border: 1.5px solid rgba(255,255,255,0.3);
}
.btn-secondary:hover { background: rgba(255,255,255,0.25); }

/* === Page Hero (subpages) === */
.page-hero {
  position: relative; overflow: hidden; min-height: 260px;
  background: var(--bg-header);
  display: flex; align-items: center; justify-content: center;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: radial-gradient(ellipse at 50% 40%, var(--accent-glow) 0%, transparent 70%);
}
.page-hero .hero-bg { position: absolute; inset: 0; z-index: 0; opacity: 0.25; background-size: cover; background-position: center; }
.page-hero-content {
  position: relative; z-index: 2; text-align: center; padding: 48px 24px;
}
.page-hero h1 {
  font-family: var(--font-heading); font-size: 2.2rem; font-weight: 800;
  color: #fff; margin-bottom: 8px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.page-hero p { color: rgba(255,255,255,0.8); font-size: 1.05rem; max-width: 600px; margin: 0 auto; }

/* === Sections === */
section { position: relative; z-index: 1; }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.section { padding: 64px 0; }
.section-alt { background: var(--bg-alt); }

.section-title {
  text-align: center; margin-bottom: 40px;
}
.section-title h2 {
  font-family: var(--font-heading); font-size: 1.8rem; font-weight: 700;
  color: var(--text); margin-bottom: 8px;
}
.section-title p {
  color: var(--text-light); font-size: 1rem; max-width: 600px; margin: 0 auto;
}

/* Bubble divider */
.bubble-divider {
  text-align: center; margin: 40px 0 50px;
  font-size: 1.5rem; letter-spacing: 12px; color: var(--accent);
  opacity: 0.5;
}

/* === Info Cards === */
.info-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px; margin-bottom: 12px;
}
.info-card {
  background: #fff; border-radius: var(--radius-md);
  padding: 24px 20px; text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: all 0.2s;
}
.info-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--accent); }
.info-card .info-icon { font-size: 1.8rem; margin-bottom: 8px; }
.info-card .info-label { font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px; }
.info-card .info-value { font-size: 1.1rem; font-weight: 700; color: var(--text); }

/* === Feature Cards === */
.feature-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}
.feature-card {
  background: #fff; border-radius: var(--radius-lg);
  padding: 32px 28px; border: 1px solid var(--border);
  box-shadow: var(--shadow-sm); transition: all 0.25s;
  position: relative; overflow: hidden;
}
.feature-card::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: linear-gradient(180deg, var(--accent), #5ba8e6);
  border-radius: 4px 0 0 4px;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.feature-card .feature-icon {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--accent-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; margin-bottom: 16px;
}
.feature-card h3 { font-family: var(--font-heading); font-size: 1.15rem; margin-bottom: 8px; color: var(--text); }
.feature-card p { color: var(--text-light); font-size: 0.95rem; line-height: 1.6; }

/* === Story Blocks === */
.story-block {
  background: #fff; border-radius: var(--radius-lg);
  padding: 32px; margin-bottom: 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--accent);
}
.story-block h3 {
  font-family: var(--font-heading); font-size: 1.25rem; margin-bottom: 12px;
  color: var(--text);
}
.story-block p { color: var(--text-light); font-size: 0.95rem; line-height: 1.8; }
.story-chapter {
  display: inline-block; padding: 4px 14px; border-radius: 14px;
  font-size: 0.8rem; font-weight: 600; margin-bottom: 12px;
  background: var(--accent-light); color: var(--accent);
}

/* === Character Cards === */
.char-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.char-card {
  background: #fff; border-radius: var(--radius-lg);
  overflow: hidden; border: 1px solid var(--border);
  box-shadow: var(--shadow-sm); transition: all 0.25s;
}
.char-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.char-header {
  background: linear-gradient(135deg, var(--bg-header), #2c5080);
  padding: 28px 24px 20px; text-align: center;
}
.char-avatar {
  width: 80px; height: 80px; border-radius: 50%;
  margin: 0 auto 12px; display: flex; align-items: center; justify-content: center;
  font-size: 2.2rem;
  background: linear-gradient(135deg, #5ba8e6, var(--accent));
  box-shadow: 0 0 20px rgba(59,142,212,0.3);
}
.char-header h3 { color: #fff; font-family: var(--font-heading); font-size: 1.2rem; margin-bottom: 4px; }
.char-role { color: rgba(255,255,255,0.7); font-size: 0.85rem; }
.char-body { padding: 24px; }
.char-body p { color: var(--text-light); font-size: 0.9rem; line-height: 1.7; }
.char-traits {
  display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px;
}
.char-trait {
  display: inline-block; padding: 3px 12px; border-radius: 14px;
  font-size: 0.78rem; background: var(--accent-light); color: var(--accent);
}

/* === Guide Steps === */
.guide-steps { max-width: 800px; margin: 0 auto; }
.guide-step {
  display: flex; gap: 20px; margin-bottom: 32px; align-items: flex-start;
}
.guide-num {
  flex-shrink: 0; width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #5ba8e6);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; font-weight: 700;
  box-shadow: 0 4px 12px rgba(59,142,212,0.25);
}
.guide-content { flex: 1; }
.guide-content h3 { font-family: var(--font-heading); font-size: 1.15rem; margin-bottom: 8px; color: var(--text); }
.guide-content p { color: var(--text-light); font-size: 0.95rem; line-height: 1.7; }

/* === Tip Box === */
.tip-box {
  background: var(--accent-light); border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm); padding: 16px 20px;
  margin: 20px 0; font-size: 0.9rem; color: var(--text);
}
.tip-box strong { color: var(--accent); }

/* === FAQ === */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-md); margin-bottom: 12px;
  overflow: hidden; transition: all 0.2s;
  box-shadow: var(--shadow-sm);
}
.faq-item:hover { border-color: var(--accent); }
.faq-q {
  width: 100%; background: none; border: none; text-align: left;
  padding: 18px 24px; font-size: 1rem; font-weight: 600;
  color: var(--text); cursor: pointer; display: flex;
  align-items: center; justify-content: space-between;
  font-family: var(--font-heading);
}
.faq-q .faq-icon {
  font-size: 1.2rem; color: var(--accent);
  transition: transform 0.3s; flex-shrink: 0;
}
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-a {
  max-height: 0; overflow: hidden; transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 24px; font-size: 0.95rem; color: var(--text-light); line-height: 1.7;
}
.faq-item.open .faq-a { max-height: 300px; padding: 0 24px 20px; }

/* === Gallery === */
.gallery-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}
.gallery-item {
  border-radius: var(--radius-md); overflow: hidden;
  cursor: pointer; transition: all 0.25s;
  box-shadow: var(--shadow-sm); border: 1px solid var(--border);
}
.gallery-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.gallery-item img { width: 100%; height: 200px; object-fit: cover; display: block; }

/* === Reviews === */
.review-cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.review-card {
  background: #fff; border-radius: var(--radius-md);
  padding: 24px; border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.review-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.review-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, var(--accent), #5ba8e6);
}
.review-meta .review-name { font-weight: 600; color: var(--text); font-size: 0.95rem; }
.review-meta .review-time { font-size: 0.8rem; color: var(--text-muted); }
.review-badge {
  display: inline-block; padding: 3px 10px; border-radius: 12px;
  font-size: 0.75rem; font-weight: 600; margin-bottom: 8px;
}
.review-badge.positive { background: #d4edda; color: #155724; }
.review-badge.neutral { background: #fff3cd; color: #856404; }
.review-card p { color: var(--text-light); font-size: 0.9rem; line-height: 1.7; }

/* === Stats Row === */
.stats-row {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 40px;
  margin: 24px 0;
}
.stat-item { text-align: center; }
.stat-value {
  font-size: 2rem; font-weight: 800; color: var(--accent);
  font-family: var(--font-heading);
}
.stat-label { font-size: 0.85rem; color: var(--text-muted); }

/* === CTA Banner === */
.cta-banner {
  background: linear-gradient(135deg, var(--bg-header), #2c5080);
  border-radius: var(--radius-xl); padding: 48px 32px;
  text-align: center; position: relative; overflow: hidden;
  margin: 40px 0;
}
.cta-banner::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(59,142,212,0.2) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(91,168,230,0.15) 0%, transparent 50%);
}
.cta-banner h2 {
  position: relative; z-index: 1; color: #fff;
  font-family: var(--font-heading); font-size: 1.8rem; margin-bottom: 12px;
}
.cta-banner p {
  position: relative; z-index: 1; color: rgba(255,255,255,0.8);
  font-size: 1rem; margin-bottom: 24px;
}
.cta-banner .btn { position: relative; z-index: 1; }

/* === Breadcrumb === */
.breadcrumb {
  max-width: var(--max-width); margin: 0 auto; padding: 16px 24px 0;
  font-size: 0.85rem; color: var(--text-muted);
}
.breadcrumb a { color: var(--accent); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* === Update Timeline === */
.timeline { max-width: 800px; margin: 0 auto; }
.timeline-item {
  display: flex; gap: 20px; margin-bottom: 24px;
}
.timeline-badge {
  flex-shrink: 0; padding: 4px 14px; border-radius: 16px;
  font-size: 0.8rem; font-weight: 600; height: fit-content;
  background: var(--accent); color: #fff;
}
.timeline-content h4 { font-size: 1rem; color: var(--text); margin-bottom: 4px; }
.timeline-content p { color: var(--text-light); font-size: 0.9rem; }

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

/* === Table === */
.info-table {
  width: 100%; border-collapse: collapse; margin: 20px 0;
  border-radius: var(--radius-md); overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.info-table th, .info-table td {
  padding: 14px 20px; text-align: left;
  border-bottom: 1px solid var(--border);
}
.info-table th {
  background: var(--accent-light); color: var(--accent);
  font-weight: 600; font-size: 0.9rem;
}
.info-table td { font-size: 0.95rem; color: var(--text); }
.info-table tr:last-child td { border-bottom: none; }

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

/* === Footer === */
footer {
  background: var(--bg-footer); color: rgba(255,255,255,0.6);
  text-align: center; padding: 32px 24px; font-size: 0.85rem;
}
footer p { max-width: 600px; margin: 0 auto; }

/* === Breadcrumb spacer === */
.breadcrumb-spacer + .page-hero { margin-top: -16px; }

/* === Intro Text === */
.intro-text {
  max-width: 800px; margin: 0 auto; font-size: 1rem;
  color: var(--text-light); line-height: 1.9; text-align: center;
}

/* === Utilities === */
.text-center { text-align: center; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.pb-0 { padding-bottom: 0; }
.max-w-800 { max-width: 800px; margin-left: auto; margin-right: auto; }

/* === Responsive === */
@media (max-width: 768px) {
  .header-inner { padding: 0 16px; }
  .menu-toggle { display: block; }
  nav {
    display: none; flex-direction: column; position: absolute;
    top: 64px; left: 0; right: 0; background: var(--bg-header);
    padding: 16px; gap: 4px; border-top: 1px solid rgba(255,255,255,0.1);
    box-shadow: var(--shadow-lg);
  }
  nav.open { display: flex; }
  nav a { width: 100%; padding: 12px 16px; }
  nav .nav-cta { margin-left: 0; text-align: center; }

  .hero { min-height: 320px; }
  .hero h1 { font-size: 2rem; }
  .hero p { font-size: 1rem; }
  .hero-overlay { padding: 40px 20px; }
  .page-hero h1 { font-size: 1.7rem; }

  .section { padding: 40px 0; }
  .info-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid, .char-grid, .gallery-grid, .review-cards { grid-template-columns: 1fr; }
  .stats-row { gap: 24px; }
  .guide-step { flex-direction: column; gap: 12px; }
  .cta-banner { padding: 32px 20px; }
  .cta-banner h2 { font-size: 1.4rem; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.6rem; }
  .info-grid { grid-template-columns: 1fr 1fr; }
  .section-title h2 { font-size: 1.4rem; }
  .btn { padding: 12px 28px; font-size: 0.95rem; }
}
