/* ============================================================
   与傲娇妹妹的治愈日常 — Cozy Tsundere Healing Theme
   Soft oranges, gentle teals, coral pops, light cream base
   ============================================================ */

/* --- Custom Properties --- */
:root {
  /* Palette */
  --bg: #fefaf6;
  --bg-cream: #fdf5ed;
  --bg-card: #fffdf9;
  --bg-header: rgba(254, 250, 246, 0.96);
  --text: #3d2e28;
  --text-muted: #8c7b6e;
  --text-light: #b0a090;
  --accent: #e8985e;
  --accent-hover: #d4784e;
  --accent-light: #fdf0e0;
  --coral: #ff6b6b;
  --coral-hover: #ee5a5a;
  --coral-light: #fff0f0;
  --teal: #5eaaad;
  --teal-hover: #4d9497;
  --teal-light: #e8f5f5;
  --pastel-orange: #ffe0d0;
  --pastel-teal: #d4f0f0;
  --pastel-pink: #ffe8e0;
  --border: #e8dcd0;
  --border-light: #f0e8dc;
  --shadow: 0 2px 12px rgba(61, 46, 40, 0.06);
  --shadow-lg: 0 8px 32px rgba(61, 46, 40, 0.10);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --transition: 0.25s ease;

  /* Typography */
  --font: 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans SC', sans-serif;
  --font-heading: var(--font);
  --font-size-xs: 0.8rem;
  --font-size-sm: 0.9rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.15rem;
  --font-size-xl: 1.35rem;
  --font-size-2xl: 1.65rem;
  --font-size-3xl: 2rem;
  --font-size-hero: 2.5rem;

  /* Layout */
  --max-width: 1100px;
  --header-height: 64px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  font-size: var(--font-size-base);
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  -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; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.35;
  color: var(--text);
}

h1 { font-size: var(--font-size-3xl); }
h2 { font-size: var(--font-size-2xl); }
h3 { font-size: var(--font-size-xl); }

p { margin-bottom: 1rem; }

/* --- Utility Classes --- */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 4rem 0; }
.section-alt { background: var(--bg-cream); }
.section-title {
  text-align: center;
  font-size: var(--font-size-2xl);
  margin-bottom: 0.5rem;
}
.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  font-size: var(--font-size-base);
}
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* --- Header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-header);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  height: var(--header-height);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}
.logo:hover { color: var(--accent); }
.logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pastel-orange), var(--coral-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

/* Nav */
.main-nav { display: flex; align-items: center; gap: 0.25rem; }
.main-nav a {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: var(--font-size-sm);
  font-weight: 500;
  transition: all var(--transition);
}
.main-nav a:hover,
.main-nav a.active { color: var(--accent); background: var(--accent-light); }

.nav-cta {
  display: inline-flex !important;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 1.25rem !important;
  background: var(--coral) !important;
  color: #fff !important;
  border-radius: 50px !important;
  font-weight: 600 !important;
  transition: all var(--transition) !important;
  box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
}
.nav-cta:hover {
  background: var(--coral-hover) !important;
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(255, 107, 107, 0.4);
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* --- Hero --- */
.hero {
  background: linear-gradient(160deg, var(--pastel-orange) 0%, var(--bg) 40%, var(--pastel-teal) 100%);
  padding: 4rem 0 3rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255,107,107,0.08) 0%, transparent 70%);
  border-radius: 50%;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -5%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(94,170,173,0.07) 0%, transparent 70%);
  border-radius: 50%;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-text h1 {
  font-size: var(--font-size-hero);
  color: var(--text);
  margin-bottom: 1rem;
  line-height: 1.25;
}
.hero-text h1 .accent-text {
  background: linear-gradient(135deg, var(--coral), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-text .hero-desc {
  color: var(--text-muted);
  font-size: var(--font-size-lg);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}
.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.tag {
  display: inline-block;
  padding: 0.3rem 0.85rem;
  border-radius: 50px;
  font-size: var(--font-size-xs);
  font-weight: 500;
}
.tag-orange { background: var(--pastel-orange); color: #c07040; }
.tag-teal { background: var(--pastel-teal); color: #3d7a7c; }
.tag-coral { background: var(--coral-light); color: #c05050; }
.tag-cream { background: var(--bg-cream); color: #8c6b50; }

.hero-visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.hero-visual img {
  width: 100%;
  height: auto;
  display: block;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 2rem;
  background: var(--coral);
  color: #fff;
  font-size: var(--font-size-lg);
  font-weight: 600;
  border-radius: 50px;
  transition: all var(--transition);
  box-shadow: 0 4px 16px rgba(255, 107, 107, 0.35);
}
.hero-cta:hover {
  background: var(--coral-hover);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(255, 107, 107, 0.45);
}

/* --- Info Cards (Homepage) --- */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}
.info-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  transition: all var(--transition);
}
.info-card:hover {
  box-shadow: var(--shadow);
  border-color: var(--pastel-orange);
}
.info-card .card-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}
.info-card h3 {
  font-size: var(--font-size-base);
  margin-bottom: 0.35rem;
}
.info-card p {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  margin-bottom: 0;
}

/* --- 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: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 2rem;
  transition: all var(--transition);
  position: relative;
}
.feature-card:hover {
  box-shadow: var(--shadow);
  border-color: var(--teal-light);
}
.feature-card .feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}
.feature-card .feature-icon.icon-orange { background: var(--pastel-orange); }
.feature-card .feature-icon.icon-teal { background: var(--pastel-teal); }
.feature-card .feature-icon.icon-coral { background: var(--coral-light); }
.feature-card h3 { font-size: var(--font-size-lg); margin-bottom: 0.5rem; }
.feature-card p { color: var(--text-muted); font-size: var(--font-size-sm); margin-bottom: 0; }

/* --- Screenshot Gallery --- */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--transition);
  aspect-ratio: 16/9;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item:hover { box-shadow: var(--shadow-lg); }

/* --- CTA Banner --- */
.cta-banner {
  background: linear-gradient(135deg, var(--pastel-orange), var(--coral-light), var(--pastel-teal));
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  text-align: center;
  margin-top: 2rem;
}
.cta-banner h3 {
  font-size: var(--font-size-xl);
  margin-bottom: 0.5rem;
}
.cta-banner p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

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

/* --- Page Hero (subpages) --- */
.page-hero {
  background: linear-gradient(160deg, var(--pastel-orange) 0%, var(--bg) 50%, var(--pastel-teal) 100%);
  padding: 3rem 0;
  text-align: center;
}
.page-hero h1 { margin-bottom: 0.5rem; }
.page-hero p { color: var(--text-muted); font-size: var(--font-size-lg); }

/* --- Content Blocks --- */
.content-block {
  max-width: 800px;
  margin: 0 auto;
}
.content-block h2 { margin: 2.5rem 0 1rem; }
.content-block h2:first-child { margin-top: 0; }
.content-block p { color: var(--text-muted); }

/* --- Guide Steps --- */
.guide-step {
  display: flex;
  gap: 1.25rem;
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  margin-bottom: 1.25rem;
  transition: all var(--transition);
}
.guide-step:hover { box-shadow: var(--shadow); }
.guide-step .step-num {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--pastel-orange);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: var(--font-size-lg);
}
.guide-step .step-content h3 {
  font-size: var(--font-size-lg);
  margin-bottom: 0.35rem;
}
.guide-step .step-content p {
  color: var(--text-muted);
  font-size: var(--font-size-sm);
  margin-bottom: 0;
}

/* Tip box */
.tip-box {
  background: var(--teal-light);
  border-left: 4px solid var(--teal);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}
.tip-box strong { color: var(--teal-hover); }
.tip-box p { margin-bottom: 0; font-size: var(--font-size-sm); }

/* --- Story Blocks --- */
.story-block {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border-light);
  border-left: 4px solid var(--accent);
  transition: all var(--transition);
}
.story-block:hover { box-shadow: var(--shadow); }
.story-block h3 {
  font-size: var(--font-size-lg);
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.story-block p {
  color: var(--text-muted);
  font-size: var(--font-size-sm);
  margin-bottom: 0;
}
.story-block .chapter-label {
  display: inline-block;
  font-size: var(--font-size-xs);
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

/* Ending cards */
.ending-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}
.ending-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  transition: all var(--transition);
}
.ending-card:hover { box-shadow: var(--shadow); }
.ending-card .ending-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}
.ending-card h4 {
  font-size: var(--font-size-base);
  margin-bottom: 0.5rem;
}
.ending-card p {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  margin-bottom: 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: 1px solid var(--border-light);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
}
.char-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--pastel-orange);
}
.char-card .char-header {
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid var(--border-light);
}
.char-card .char-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  flex-shrink: 0;
}
.char-card .char-avatar.av-orange { background: var(--pastel-orange); }
.char-card .char-avatar.av-teal { background: var(--pastel-teal); }
.char-card .char-avatar.av-coral { background: var(--coral-light); }
.char-card .char-avatar.av-cream { background: var(--bg-cream); }
.char-card .char-info h3 {
  font-size: var(--font-size-lg);
  margin-bottom: 0.25rem;
}
.char-card .char-info .char-role {
  font-size: var(--font-size-xs);
  color: var(--accent);
  font-weight: 600;
}
.char-card .char-body {
  padding: 1.5rem;
}
.char-card .trait-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
}
.char-card .trait-tags .tag {
  font-size: 0.75rem;
  padding: 0.2rem 0.65rem;
}
.char-card .char-body p {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  margin-bottom: 0;
}

/* --- FAQ Accordion --- */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  overflow: hidden;
  background: var(--bg-card);
}
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  font-size: var(--font-size-base);
  font-weight: 600;
  color: var(--text);
  text-align: left;
  transition: all var(--transition);
}
.faq-question:hover { color: var(--accent); background: var(--accent-light); }
.faq-question .faq-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: transform var(--transition);
}
.faq-item.open .faq-question .faq-icon { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.faq-item.open .faq-answer { max-height: 500px; }
.faq-answer-inner {
  padding: 0 1.5rem 1.25rem;
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  line-height: 1.7;
}

/* --- Lightbox --- */
.lightbox {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(61, 46, 40, 0.92);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.lightbox.active { display: flex; }
.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: var(--radius-sm);
  box-shadow: 0 0 60px rgba(0,0,0,0.5);
}
.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}
.lightbox-close:hover { background: rgba(255,255,255,0.3); }

/* --- Footer --- */
.site-footer {
  background: var(--bg-cream);
  border-top: 1px solid var(--border-light);
  padding: 2rem 0;
  text-align: center;
}
.site-footer p {
  color: var(--text-light);
  font-size: var(--font-size-sm);
  margin-bottom: 0;
}

/* --- Stats Row --- */
.stats-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin: 1.5rem 0;
}
.stat-item { text-align: center; }
.stat-item .stat-value {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  color: var(--accent);
}
.stat-item .stat-label {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
}

/* --- Table --- */
.info-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: var(--font-size-sm);
}
.info-table th,
.info-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-light);
}
.info-table th {
  width: 120px;
  color: var(--text-muted);
  font-weight: 500;
}
.info-table td { color: var(--text); }

/* --- Blockquote --- */
blockquote {
  border-left: 3px solid var(--accent);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: var(--accent-light);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--text-muted);
}

/* --- Petal Divider (cozy/healing accent) --- */
.petal-divider {
  text-align: center;
  color: var(--pastel-orange);
  font-size: 1.5rem;
  margin: 2rem 0;
  letter-spacing: 0.5rem;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  :root {
    --font-size-hero: 1.8rem;
    --font-size-3xl: 1.6rem;
    --font-size-2xl: 1.35rem;
    --font-size-xl: 1.15rem;
  }

  .section { padding: 2.5rem 0; }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .hero-visual { order: -1; }

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

  .menu-toggle { display: flex; }
  .main-nav {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--bg-header);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 1rem;
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow-lg);
  }
  .main-nav.open { display: flex; }
  .main-nav a { width: 100%; padding: 0.75rem 1rem; }
}

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