/* ============================================================
   Together Bnb (与你在一起) - Warm Togetherness Theme
   Sunset oranges & soft purples, cozy evening vibes
   ============================================================ */

/* CSS Custom Properties */
:root {
  /* Core palette - warm sunset */
  --sunset-primary: #FF7B42;
  --sunset-light: #FF9F5C;
  --sunset-glow: #FFB786;
  --sunset-pale: #FFE0CC;

  /* Soft purple accents */
  --purple-primary: #8B5CF6;
  --purple-light: #A78BFA;
  --purple-soft: #C4B5FD;
  --purple-pale: #EDE9FE;

  /* Warm neutrals */
  --cream-bg: #FFF8F0;
  --cream-card: #FFFDF9;
  --warm-white: #FFFBF5;
  --warm-gray: #F5EDE3;

  /* Text colors */
  --text-primary: #4A3728;
  --text-secondary: #7B6350;
  --text-muted: #9B8470;
  --text-light: #C4B0A0;

  /* Accent */
  --gold-accent: #F59E0B;
  --gold-light: #FCD34D;
  --rose-accent: #F472B6;

  /* Functional */
  --link-color: var(--purple-primary);
  --link-hover: var(--sunset-primary);
  --border-color: #E8D5C4;
  --shadow-sm: 0 2px 8px rgba(74, 55, 40, 0.08);
  --shadow-md: 0 4px 16px rgba(74, 55, 40, 0.12);
  --shadow-lg: 0 8px 32px rgba(74, 55, 40, 0.15);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  /* Layout */
  --max-width: 1200px;
  --header-height: 72px;

  /* Typography */
  --font-body: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', 'Hiragino Sans GB', sans-serif;
}

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

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

body {
  font-family: var(--font-body);
  background: var(--cream-bg);
  color: var(--text-primary);
  line-height: 1.8;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

/* ===== HEADER & NAVIGATION ===== */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(135deg, rgba(255, 248, 240, 0.97) 0%, rgba(255, 251, 245, 0.97) 100%);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  height: var(--header-height);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--sunset-primary), var(--purple-primary));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.1rem;
  font-weight: 800;
}

.logo-text {
  background: linear-gradient(135deg, var(--sunset-primary), var(--purple-primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

nav a {
  color: var(--text-secondary);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.25s ease;
  position: relative;
}

nav a:hover,
nav a.active {
  color: var(--sunset-primary);
  background: var(--sunset-pale);
}

nav a.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 3px;
  background: var(--sunset-primary);
  border-radius: 2px;
}

.nav-cta {
  background: linear-gradient(135deg, var(--sunset-primary), var(--purple-primary)) !important;
  color: white !important;
  font-weight: 600 !important;
  padding: 10px 24px !important;
  border-radius: 50px !important;
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.35);
  transition: all 0.3s ease !important;
  margin-left: 8px;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.45);
}

/* Hamburger menu */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* ===== MAIN CONTENT ===== */
main {
  flex: 1;
}

/* ===== HERO SECTION ===== */
.hero {
  position: relative;
  background: linear-gradient(170deg, var(--purple-pale) 0%, var(--sunset-pale) 40%, var(--cream-bg) 100%);
  padding: 80px 24px 60px;
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 140%;
  height: 200%;
  background:
    radial-gradient(circle at 30% 40%, rgba(245, 158, 11, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 70% 60%, rgba(139, 92, 246, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(255, 123, 66, 0.05) 0%, transparent 60%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--sunset-pale), var(--purple-pale));
  color: var(--purple-primary);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 18px;
  border-radius: 50px;
  margin-bottom: 24px;
  letter-spacing: 1px;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 16px;
  line-height: 1.3;
  letter-spacing: 1px;
}

.hero h1 .highlight {
  background: linear-gradient(135deg, var(--sunset-primary), var(--purple-primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

.hero-image {
  max-width: 700px;
  margin: 40px auto 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 4px solid white;
}

.hero-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* ===== SECTION STYLES ===== */
section {
  padding: 80px 24px;
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header h2 {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--sunset-primary), var(--purple-primary));
  border-radius: 2px;
}

.section-header .section-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 16px auto 0;
}

.section-alt {
  background: var(--warm-white);
}

/* ===== FEATURE CARDS ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.feature-card {
  background: white;
  border-radius: var(--radius-md);
  padding: 36px 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  text-align: center;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--sunset-glow);
}

.feature-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
}

.feature-icon.sunset {
  background: var(--sunset-pale);
  color: var(--sunset-primary);
}

.feature-icon.purple {
  background: var(--purple-pale);
  color: var(--purple-primary);
}

.feature-icon.gold {
  background: #FEF3C7;
  color: var(--gold-accent);
}

.feature-card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ===== SCREENSHOT GALLERY ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.gallery-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: all 0.3s ease;
  aspect-ratio: 16 / 9;
  border: 3px solid white;
}

.gallery-item:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-md);
}

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

.gallery-full {
  grid-column: 1 / -1;
}

/* ===== REVIEWS ===== */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.review-card {
  background: white;
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}

.review-stars {
  color: var(--gold-accent);
  font-size: 1rem;
  margin-bottom: 12px;
  letter-spacing: 2px;
}

.review-text {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 16px;
  font-style: italic;
}

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

/* ===== LIGHTBOX ===== */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  border-radius: var(--radius-md);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  z-index: 10000;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== CONTENT PAGES ===== */
.content-page {
  padding: 60px 24px;
}

.content-page .section-inner {
  max-width: 900px;
}

.page-title {
  text-align: center;
  margin-bottom: 20px;
}

.page-title h1 {
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--sunset-primary), var(--purple-primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 10px;
}

.page-intro {
  text-align: center;
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 650px;
  margin: 0 auto 48px;
  line-height: 1.8;
}

/* ===== CONTENT BLOCKS ===== */
.article-block {
  background: white;
  border-radius: var(--radius-md);
  padding: 36px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}

.article-block h2 {
  font-size: 1.5rem;
  color: var(--text-primary);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--sunset-pale);
}

.article-block h3 {
  font-size: 1.2rem;
  color: var(--purple-primary);
  margin: 24px 0 12px;
}

.article-block p {
  color: var(--text-secondary);
  line-height: 1.9;
  margin-bottom: 14px;
}

.article-block ul,
.article-block ol {
  margin: 12px 0;
  padding-left: 24px;
  color: var(--text-secondary);
}

.article-block li {
  margin-bottom: 8px;
  line-height: 1.8;
}

/* ===== CHARACTER CARDS ===== */
.char-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.char-card {
  background: white;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

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

.char-visual {
  height: 200px;
  background: linear-gradient(135deg, var(--sunset-pale), var(--purple-pale));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: var(--purple-light);
}

.char-info {
  padding: 24px;
}

.char-info h3 {
  font-size: 1.3rem;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.char-role {
  display: inline-block;
  background: var(--sunset-pale);
  color: var(--sunset-primary);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 3px 12px;
  border-radius: 50px;
  margin-bottom: 12px;
}

.char-info p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

.char-traits {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.char-trait {
  background: var(--warm-gray);
  color: var(--text-muted);
  font-size: 0.8rem;
  padding: 4px 10px;
  border-radius: 50px;
}

/* ===== GUIDE STEPS ===== */
.guide-step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 28px;
}

.guide-step-num {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sunset-primary), var(--purple-primary));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.guide-step-content {
  background: white;
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  flex: 1;
}

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

.guide-step-content p {
  color: var(--text-secondary);
  line-height: 1.8;
}

/* ===== STORY TIMELINE ===== */
.timeline {
  position: relative;
  padding-left: 36px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 8px;
  bottom: 8px;
  width: 3px;
  background: linear-gradient(180deg, var(--sunset-primary), var(--purple-primary), var(--sunset-primary));
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  margin-bottom: 36px;
}

.timeline-dot {
  position: absolute;
  left: -30px;
  top: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: white;
  border: 3px solid var(--purple-primary);
  box-shadow: 0 0 0 4px var(--purple-pale);
}

.timeline-content h3 {
  color: var(--purple-primary);
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.timeline-content p {
  color: var(--text-secondary);
  line-height: 1.9;
}

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

.faq-item {
  background: white;
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 20px 28px;
  text-align: left;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-body);
  transition: all 0.25s ease;
}

.faq-question:hover {
  background: var(--warm-gray);
}

.faq-question .faq-icon {
  font-size: 1.3rem;
  color: var(--purple-primary);
  transition: transform 0.3s ease;
  flex-shrink: 0;
  margin-left: 16px;
}

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

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

.faq-item.open .faq-answer {
  max-height: 500px;
}

.faq-answer-inner {
  padding: 0 28px 24px;
  color: var(--text-secondary);
  line-height: 1.9;
  font-size: 0.95rem;
}

/* ===== FOOTER ===== */
footer {
  background: var(--text-primary);
  color: var(--text-light);
  text-align: center;
  padding: 28px 24px;
  font-size: 0.9rem;
  margin-top: auto;
}

footer p {
  color: var(--text-light);
}

/* ===== PAGE BANNER ===== */
.page-banner {
  background: linear-gradient(170deg, var(--purple-pale) 0%, var(--sunset-pale) 60%, var(--cream-bg) 100%);
  padding: 60px 24px 48px;
  text-align: center;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  nav {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--cream-bg);
    flex-direction: column;
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
  }

  nav.active {
    display: flex;
  }

  nav a {
    width: 100%;
    padding: 12px 16px;
  }

  .nav-cta {
    margin-left: 0;
    margin-top: 4px;
    text-align: center;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  section {
    padding: 48px 20px;
  }

  .section-header h2 {
    font-size: 1.7rem;
  }

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

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

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

  .guide-step {
    flex-direction: column;
    gap: 12px;
  }
}

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

  .hero h1 {
    font-size: 1.6rem;
  }

  .article-block {
    padding: 24px;
  }

  .content-page {
    padding: 40px 16px;
  }
}
