/* ===== 背德浴场 - Bathhouse/Onsen Theme ===== */
:root {
  /* Warm steamy tones */
  --accent: #c97b5b;
  --accent-hover: #b36a4a;
  --accent-light: #f5e1d8;
  /* Cedar wood browns */
  --wood: #8b5e3c;
  --wood-dark: #5c3d28;
  --wood-light: #c4a78a;
  /* Soft misty whites */
  --bg: #faf8f5;
  --bg-card: #fffdfa;
  --bg-header: rgba(140, 90, 60, 0.95);
  --bg-hero: linear-gradient(135deg, #f5ebe0 0%, #e8d5c0 30%, #d4c5b0 60%, #f0e6d8 100%);
  --bg-section: #f7f3ed;
  /* Bamboo green accents */
  --bamboo: #6b8f71;
  --bamboo-light: #a3c4a6;
  --bamboo-dark: #4a6b50;
  /* Text */
  --text: #3a2a1e;
  --text-heading: #2a1a10;
  --text-muted: #8b7355;
  --text-light: #b8a088;
  /* Steam/mist effects */
  --mist: rgba(255, 255, 255, 0.7);
  --mist-heavy: rgba(255, 255, 255, 0.85);
  /* Misc */
  --radius: 8px;
  --radius-lg: 12px;
  --shadow: 0 2px 8px rgba(92, 61, 40, 0.08);
  --shadow-lg: 0 4px 16px rgba(92, 61, 40, 0.12);
  --font: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --transition: 0.2s ease;
  --max-width: 1100px;
}

/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-hover); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* ===== Utility ===== */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ===== Header ===== */
.site-header {
  background: var(--bg-header);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 2px solid var(--bamboo);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 64px;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: #fff;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}
.site-logo img { width: 36px; height: auto; border-radius: 4px; }
.site-logo span { color: #f5e1d8; }
.main-nav { display: flex; align-items: center; gap: 0.25rem; }
.main-nav a {
  color: rgba(255,255,255,0.85);
  padding: 0.4rem 1rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 500;
  transition: all var(--transition);
}
.main-nav a:hover,
.main-nav a.active { color: #fff; background: rgba(255,255,255,0.12); }
.nav-cta {
  background: var(--accent) !important;
  color: #fff !important;
  font-weight: 600 !important;
  padding: 0.5rem 1.2rem !important;
}
.nav-cta:hover { background: var(--accent-hover) !important; }
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 1px;
  transition: all var(--transition);
}

/* ===== Hero ===== */
.hero {
  background: var(--bg-hero);
  position: relative;
  overflow: hidden;
  padding: 6rem 0 4rem;
  text-align: center;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: 
    radial-gradient(ellipse at 30% 20%, rgba(255,255,255,0.5) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 50%, rgba(200,180,155,0.25) 0%, transparent 50%);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 2; }
.hero h1 {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--text-heading);
  margin-bottom: 0.6rem;
  letter-spacing: 0.04em;
  text-shadow: 0 2px 12px rgba(255,255,255,0.6);
}
.hero .subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-weight: 400;
}
.hero .hero-tags {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2rem;
}
.hero-tags span {
  background: var(--accent-light);
  color: var(--accent-hover);
  padding: 0.3rem 0.9rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
}
.hero-img-wrap {
  max-width: 700px;
  margin: 1.5rem auto 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.hero-img-wrap img { width: 100%; }

/* ===== Section ===== */
.section { padding: 4rem 0; }
.section-alt { background: var(--bg-section); }
.section-title {
  text-align: center;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 0.4rem;
  position: relative;
  padding-bottom: 1rem;
}
.section-title::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background: var(--bamboo);
  margin: 0.5rem auto 0;
  border-radius: 2px;
}
.section-desc {
  text-align: center;
  color: var(--text-muted);
  max-width: 650px;
  margin: 0 auto 2.5rem;
}

/* ===== Info Grid ===== */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}
.info-card {
  background: var(--bg-card);
  border: 1px solid rgba(200,180,155,0.3);
  border-radius: var(--radius);
  padding: 1.2rem;
  text-align: center;
  box-shadow: var(--shadow);
}
.info-card .info-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.3rem;
}
.info-card .info-value { font-weight: 600; color: var(--text-heading); font-size: 1rem; }

/* ===== 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-lg);
  padding: 1.8rem;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--bamboo);
  transition: transform var(--transition), box-shadow var(--transition);
}
.feature-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.feature-card h3 {
  font-size: 1.15rem;
  color: var(--wood-dark);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.feature-card .feat-icon {
  font-size: 1.5rem;
  color: var(--bamboo);
}
.feature-card p { color: var(--text-muted); font-size: 0.93rem; line-height: 1.6; }

/* ===== Screenshot Gallery ===== */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
}
.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform var(--transition);
  position: relative;
}
.gallery-item:hover { transform: scale(1.02); }
.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.9);
  z-index: 200;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.lightbox.active { display: flex; }
.lightbox img {
  max-width: 90vw;
  max-height: 80vh;
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}
.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  z-index: 201;
}
.lightbox-caption {
  color: rgba(255,255,255,0.8);
  margin-top: 1rem;
  font-size: 0.9rem;
}
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  font-size: 2rem;
  padding: 0.6rem 1rem;
  cursor: pointer;
  border-radius: var(--radius);
  transition: background var(--transition);
}
.lightbox-nav:hover { background: rgba(255,255,255,0.3); }
.lightbox-prev { left: 1.5rem; }
.lightbox-next { right: 1.5rem; }

/* ===== Guide Steps ===== */
.guide-step {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  align-items: flex-start;
}
.guide-step-num {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
}
.guide-step-content h3 { color: var(--wood-dark); margin-bottom: 0.4rem; font-size: 1.1rem; }
.guide-step-content p { color: var(--text-muted); font-size: 0.93rem; line-height: 1.7; }

/* ===== Story Block ===== */
.story-block {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--accent);
}
.story-block h3 {
  color: var(--wood-dark);
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
}
.story-block p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.8; }

/* ===== 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-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition);
}
.char-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.char-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  background: var(--bg-section);
}
.char-card-body { padding: 1.3rem; }
.char-card-body h3 {
  font-size: 1.15rem;
  color: var(--wood-dark);
  margin-bottom: 0.3rem;
}
.char-card-body .char-role {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.char-card-body p { color: var(--text-muted); font-size: 0.88rem; line-height: 1.6; }

/* ===== FAQ Accordion ===== */
.faq-list { max-width: 750px; margin: 0 auto; }
.faq-item {
  background: var(--bg-card);
  border-radius: var(--radius);
  margin-bottom: 0.6rem;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 1rem 1.3rem;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  color: var(--wood-dark);
  text-align: left;
  font-family: var(--font);
}
.faq-q .faq-icon { font-size: 1.2rem; color: var(--bamboo); transition: transform var(--transition); }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}
.faq-item.open .faq-a {
  max-height: 300px;
  padding: 0 1.3rem 1rem;
}
.faq-a p { color: var(--text-muted); font-size: 0.93rem; line-height: 1.7; }

/* ===== CTA Banner ===== */
.cta-banner {
  background: linear-gradient(135deg, var(--wood-dark) 0%, var(--wood) 60%, var(--bamboo-dark) 100%);
  color: #fff;
  text-align: center;
  padding: 3rem 1.5rem;
  border-radius: var(--radius-lg);
  margin-top: 1.5rem;
}
.cta-banner h2 { font-size: 1.6rem; margin-bottom: 0.5rem; }
.cta-banner p { color: rgba(255,255,255,0.8); margin-bottom: 1.5rem; }
.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 0.8rem 2.2rem;
  border-radius: 25px;
  font-weight: 700;
  font-size: 1.05rem;
  transition: all var(--transition);
  border: none;
  cursor: pointer;
  font-family: var(--font);
}
.btn-primary:hover { background: var(--accent-hover); color: #fff; transform: translateY(-1px); }
.btn-secondary {
  display: inline-block;
  background: var(--bamboo);
  color: #fff;
  padding: 0.8rem 2.2rem;
  border-radius: 25px;
  font-weight: 700;
  font-size: 1.05rem;
  transition: all var(--transition);
  border: none;
  cursor: pointer;
  font-family: var(--font);
}
.btn-secondary:hover { background: var(--bamboo-dark); color: #fff; transform: translateY(-1px); }

/* ===== Breadcrumbs ===== */
.breadcrumbs {
  font-size: 0.88rem;
  color: var(--text-muted);
  padding: 1rem 0;
}
.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs span { color: var(--wood); }

/* ===== Tips Box ===== */
.tip-box {
  background: var(--accent-light);
  border: 1px solid rgba(201, 123, 91, 0.25);
  border-radius: var(--radius);
  padding: 1.2rem 1.5rem;
  margin: 1.5rem 0;
}
.tip-box strong { color: var(--accent-hover); }
.tip-box p { color: var(--text-muted); font-size: 0.93rem; }

/* ===== Schema / Misc ===== */
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }

/* ===== Footer ===== */
.site-footer {
  background: var(--wood-dark);
  color: rgba(255,255,255,0.6);
  text-align: center;
  padding: 2rem 1.5rem;
  font-size: 0.85rem;
  line-height: 1.8;
}
.site-footer a { color: var(--accent-light); }
.site-footer a:hover { color: #fff; }

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .hero h1 { font-size: 2rem; }
  .hero { padding: 3rem 0 2rem; }
  .section { padding: 2.5rem 0; }
  .feature-grid { grid-template-columns: 1fr; }
  .char-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
  .guide-step { flex-direction: column; gap: 0.8rem; }
  .header-inner { height: 56px; }
  .main-nav { 
    display: none;
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    background: var(--bg-header);
    flex-direction: column;
    padding: 0.8rem;
    gap: 0.3rem;
    border-bottom: 2px solid var(--bamboo);
    backdrop-filter: blur(8px);
  }
  .main-nav.open { display: flex; }
  .main-nav a { width: 100%; text-align: center; padding: 0.7rem; }
  .menu-toggle { display: flex; }
}
@media (min-width: 769px) {
  .main-nav { display: flex !important; }
}
