/* ============================================================
   合欢宗女修传 — Daoist Dual-Cultivation Theme
   Peach pinks · Misty whites · Lotus petals · Ethereal clouds
   ============================================================ */

/* --- CSS Custom Properties --- */
:root {
  /* Core palette */
  --peach: #d4788a;           /* 桃花主色调 */
  --peach-light: #e8a0b4;     /* 浅桃花 */
  --peach-pale: #f4c4d0;      /* 淡桃 */
  --peach-ghost: #fdf0f3;     /* 极淡桃 */
  --pink-deep: #c25a6e;       /* 深粉 */
  --mist: #faf5f0;            /* 雾白背景 */
  --mist-dark: #f0e8e0;       /* 深雾 */
  --cloud: #fefcf8;           /* 云白 */
  --gold: #c9a030;            /* 金箔点缀 */
  --gold-light: #e0c878;      /* 淡金 */
  --jade: #7aac8e;            /* 玉绿点缀 */
  --jade-light: #a8d0b8;      /* 淡玉 */
  --text: #3d2c2c;            /* 正文色 */
  --text-light: #6b5555;      /* 浅文 */
  --text-muted: #9e8a8a;      /* 灰色文字 */
  --border: #e8d5d5;          /* 边框 */
  --border-light: #f2e5e5;    /* 浅边框 */
  --white: #ffffff;
  --shadow-sm: 0 2px 8px rgba(180, 120, 130, 0.08);
  --shadow-md: 0 4px 16px rgba(180, 120, 130, 0.12);
  --shadow-lg: 0 8px 32px rgba(180, 120, 130, 0.16);
  --radius: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --font-heading: 'Noto Serif SC', 'Songti SC', 'STSong', Georgia, serif;
  --font-body: 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', system-ui, sans-serif;
  --max-width: 1100px;
}

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

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

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--mist);
  background-image:
    radial-gradient(ellipse at 15% 10%, rgba(244, 196, 208, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse at 85% 20%, rgba(232, 160, 180, 0.10) 0%, transparent 60%),
    radial-gradient(ellipse at 50% 50%, rgba(250, 245, 240, 0.80) 0%, transparent 70%),
    radial-gradient(ellipse at 20% 85%, rgba(122, 172, 142, 0.06) 0%, transparent 55%);
  line-height: 1.75;
  min-height: 100vh;
}

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

h1 { font-size: 2.4rem; }
h2 { font-size: 1.8rem; }
h3 { font-size: 1.3rem; }

a {
  color: var(--peach);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover { color: var(--pink-deep); }

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

/* --- Header / Navigation --- */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(254, 252, 248, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

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

.logo {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--peach);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  color: var(--text-light);
  font-size: 0.95rem;
  padding: 0.25rem 0;
  position: relative;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--peach);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--peach-light), var(--peach));
  border-radius: 1px;
}

.nav-cta {
  background: linear-gradient(135deg, var(--peach), var(--pink-deep));
  color: var(--white) !important;
  padding: 0.45rem 1.2rem !important;
  border-radius: 24px;
  font-weight: 600;
  font-size: 0.9rem !important;
  box-shadow: 0 2px 8px rgba(180, 90, 110, 0.3);
  transition: all 0.2s !important;
}
.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(180, 90, 110, 0.4);
}

.nav-cta::after { display: none !important; }

/* Mobile menu button */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-light);
  padding: 0.5rem;
}

/* --- Main Container --- */
main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --- Hero Section --- */
.hero {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin: 2rem auto;
  max-width: var(--max-width);
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--peach-ghost), var(--cloud));
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(212, 120, 138, 0.30) 0%, transparent 65%),
    radial-gradient(ellipse at 70% 60%, rgba(250, 245, 240, 0.70) 0%, transparent 65%),
    linear-gradient(180deg, rgba(254, 252, 248, 0.00) 40%, rgba(254, 252, 248, 0.60) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 3rem 2rem;
  max-width: 700px;
}

.hero-content h1 {
  font-size: 3rem;
  background: linear-gradient(135deg, var(--pink-deep), var(--peach));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.75rem;
}

.hero-content .hero-tagline {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 1rem;
}

.hero-tags {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.hero-tags span {
  background: rgba(244, 196, 208, 0.25);
  color: var(--pink-deep);
  padding: 0.3rem 0.9rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid rgba(212, 120, 138, 0.2);
}

.hero-cta {
  display: inline-block;
  background: linear-gradient(135deg, var(--peach), var(--pink-deep));
  color: var(--white);
  padding: 0.8rem 2.5rem;
  border-radius: 28px;
  font-size: 1.1rem;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(180, 90, 110, 0.35);
  transition: all 0.25s;
}
.hero-cta:hover {
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(180, 90, 110, 0.45);
}

/* --- Page Hero (sub pages) --- */
.page-hero {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin: 2rem auto;
  max-width: var(--max-width);
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--peach-ghost), var(--cloud));
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.page-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 30%, rgba(212, 120, 138, 0.25) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 70%, rgba(250, 245, 240, 0.60) 0%, transparent 60%),
    linear-gradient(180deg, rgba(254, 252, 248, 0.30) 0%, rgba(254, 252, 248, 0.80) 100%);
}

.page-hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 2.5rem 2rem;
}

.page-hero-content h1 {
  font-size: 2.2rem;
  background: linear-gradient(135deg, var(--pink-deep), var(--peach));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.page-hero-content p {
  color: var(--text-light);
  font-size: 1rem;
}

/* --- Section Styles --- */
section {
  padding: 2.5rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
}

.section-title h2 {
  font-size: 1.8rem;
  color: var(--text);
  display: inline-block;
  position: relative;
}

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

.section-title p {
  color: var(--text-muted);
  margin-top: 1rem;
  font-size: 0.95rem;
}

/* --- Lotus Divider --- */
.lotus-divider {
  text-align: center;
  margin: 1.5rem 0;
  color: var(--peach-light);
  font-size: 1.2rem;
  letter-spacing: 0.6em;
}

/* --- Info Cards Grid --- */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.info-card {
  background: var(--cloud);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1rem;
  text-align: center;
  transition: all 0.25s;
  box-shadow: var(--shadow-sm);
}

.info-card:hover {
  border-color: var(--peach-light);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.info-card .info-icon {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.info-card .info-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}

.info-card .info-value {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
}

/* --- Feature Cards --- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: var(--cloud);
  border: 1px solid var(--border-light);
  border-left: 4px solid var(--peach-light);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: all 0.25s;
  box-shadow: var(--shadow-sm);
}

.feature-card:hover {
  border-left-color: var(--peach);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.feature-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  color: var(--text);
}

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

/* --- Story Blocks --- */
.story-block {
  background: var(--cloud);
  border: 1px solid var(--border-light);
  border-left: 4px solid var(--peach);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.story-block h3 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
  color: var(--peach);
}

.story-block p {
  color: var(--text-light);
  line-height: 1.8;
}

.story-chapter {
  display: inline-block;
  background: linear-gradient(135deg, var(--peach-light), var(--peach-ghost));
  color: var(--pink-deep);
  padding: 0.2rem 0.8rem;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

/* --- Character Cards --- */
.char-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.char-card {
  background: var(--cloud);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.25s;
  box-shadow: var(--shadow-sm);
}

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

.char-card-header {
  background: linear-gradient(135deg, var(--peach-ghost), var(--peach-pale));
  padding: 1rem 1.25rem;
  border-bottom: 2px solid var(--peach-light);
}

.char-card-header h3 {
  color: var(--pink-deep);
  font-size: 1.1rem;
  margin-bottom: 0.2rem;
}

.char-card-header .char-title {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.char-card-body {
  padding: 1.25rem;
}

.char-card-body p {
  color: var(--text-light);
  font-size: 0.93rem;
  line-height: 1.7;
}

.char-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--peach-light), var(--peach-pale));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 0.75rem;
  border: 3px solid var(--peach-ghost);
  box-shadow: 0 0 0 2px var(--peach-light);
}

.char-tags {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}

.char-tags span {
  background: rgba(244, 196, 208, 0.2);
  color: var(--pink-deep);
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
  font-size: 0.8rem;
  border: 1px solid rgba(212, 120, 138, 0.15);
}

/* --- Guide Steps --- */
.guide-steps {
  counter-reset: step;
}

.guide-step {
  display: flex;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
  background: var(--cloud);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s;
}

.guide-step:hover {
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}

.guide-step-num {
  counter-increment: step;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--peach), var(--pink-deep));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  box-shadow: 0 2px 8px rgba(180, 90, 110, 0.3);
}

.guide-step-content h3 {
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
}

.guide-step-content p {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* --- 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(--cloud);
  transition: all 0.2s;
}

.faq-item:hover {
  border-color: var(--peach-light);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  font-family: var(--font-body);
  text-align: left;
  transition: color 0.2s;
}

.faq-question:hover {
  color: var(--peach);
}

.faq-toggle {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--peach-ghost);
  color: var(--peach);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  transition: all 0.25s;
  margin-left: 0.75rem;
}

.faq-item.active .faq-toggle {
  background: var(--peach);
  color: var(--white);
  transform: rotate(45deg);
}

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

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

.faq-answer-inner {
  padding: 0 1.25rem 1.25rem;
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.75;
}

/* --- CTA Banner --- */
.cta-banner {
  background: linear-gradient(135deg, var(--peach-ghost), var(--cloud));
  border: 1px solid var(--peach-pale);
  border-radius: var(--radius-xl);
  padding: 2.5rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 120, 138, 0.15), transparent 70%);
}

.cta-banner::after {
  content: '';
  position: absolute;
  bottom: -30px;
  left: -30px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(122, 172, 142, 0.10), transparent 70%);
}

.cta-banner h2 {
  font-size: 1.6rem;
  margin-bottom: 0.75rem;
  position: relative;
  z-index: 1;
}

.cta-banner p {
  color: var(--text-light);
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.cta-banner .btn {
  position: relative;
  z-index: 1;
}

.btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--peach), var(--pink-deep));
  color: var(--white);
  padding: 0.7rem 2rem;
  border-radius: 24px;
  font-size: 1rem;
  font-weight: 700;
  box-shadow: 0 3px 12px rgba(180, 90, 110, 0.3);
  transition: all 0.25s;
  cursor: pointer;
  border: none;
}
.btn:hover {
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(180, 90, 110, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--peach);
  border: 2px solid var(--peach);
  box-shadow: none;
}
.btn-outline:hover {
  background: var(--peach);
  color: var(--white);
}

/* --- Gallery / Screenshots --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.gallery-grid img {
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.25s;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.gallery-grid img:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-md);
  border-color: var(--peach-light);
}

/* --- Lightbox --- */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(30, 15, 15, 0.92);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  color: var(--white);
  font-size: 2.5rem;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.2s;
  background: none;
  border: none;
  z-index: 1001;
}
.lightbox-close:hover { opacity: 1; }

/* --- Review Cards --- */
.review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.review-card {
  background: var(--cloud);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.review-card p {
  color: var(--text-light);
  font-style: italic;
  line-height: 1.75;
}

.review-card .review-author {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: normal;
}

/* --- Stats Row --- */
.stats-row {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  text-align: center;
}

.stat-item .stat-value {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--peach);
}

.stat-item .stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.stat-suffix {
  font-size: 0.5em;
  vertical-align: super;
}

/* --- Download Card --- */
.download-card {
  background: linear-gradient(135deg, var(--peach-ghost), var(--cloud));
  border: 2px solid var(--peach-pale);
  border-radius: var(--radius-xl);
  padding: 2rem;
  text-align: center;
  max-width: 500px;
  margin: 0 auto;
}

.download-card h3 {
  color: var(--pink-deep);
  margin-bottom: 1rem;
}

.download-card .version-info {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}

/* --- Info Table --- */
.info-table {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  border-collapse: collapse;
}

.info-table tr {
  border-bottom: 1px solid var(--border-light);
}

.info-table tr:last-child {
  border-bottom: none;
}

.info-table td {
  padding: 0.8rem 1rem;
}

.info-table td:first-child {
  font-weight: 600;
  color: var(--text);
  width: 120px;
  white-space: nowrap;
}

.info-table td:last-child {
  color: var(--text-light);
}

/* --- Breadcrumbs --- */
.breadcrumbs {
  padding: 1rem 0 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.breadcrumbs a {
  color: var(--text-muted);
}
.breadcrumbs a:hover {
  color: var(--peach);
}

.breadcrumbs .sep {
  margin: 0 0.5rem;
}

/* --- Footer --- */
footer {
  text-align: center;
  padding: 2rem 1.5rem;
  margin-top: 3rem;
  border-top: 1px solid var(--border-light);
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* --- Tags --- */
.tag {
  display: inline-block;
  padding: 0.2rem 0.7rem;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 500;
}

.tag-peach {
  background: rgba(244, 196, 208, 0.2);
  color: var(--pink-deep);
  border: 1px solid rgba(212, 120, 138, 0.15);
}

.tag-gold {
  background: rgba(201, 160, 48, 0.12);
  color: var(--gold);
  border: 1px solid rgba(201, 160, 48, 0.2);
}

.tag-jade {
  background: rgba(122, 172, 142, 0.12);
  color: var(--jade);
  border: 1px solid rgba(122, 172, 142, 0.2);
}

/* --- Tip Box --- */
.tip-box {
  background: rgba(244, 196, 208, 0.08);
  border: 1px solid var(--peach-pale);
  border-left: 4px solid var(--peach);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin: 1.25rem 0;
}

.tip-box p {
  color: var(--text-light);
  font-size: 0.93rem;
}

/* --- Blockquote --- */
blockquote {
  border-left: 3px solid var(--peach-light);
  padding: 0.75rem 1.25rem;
  margin: 1rem 0;
  background: rgba(244, 196, 208, 0.06);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--text-light);
  font-style: italic;
}

/* --- Ending Cards --- */
.ending-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.25rem;
}

.ending-card {
  background: var(--cloud);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s;
}

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

.ending-card h3 {
  color: var(--peach);
  margin-bottom: 0.5rem;
}

.ending-card p {
  color: var(--text-light);
  font-size: 0.93rem;
}

/* --- Per-Page Hero Backgrounds --- */
.hero-home .hero-bg { background-image: url('../img/hero-01.jpg'); }
.hero-guide .page-hero-bg { background-image: url('../img/screenshot-03.jpg'); }
.hero-characters .page-hero-bg { background-image: url('../img/gallery-04.jpg'); }
.hero-story .page-hero-bg { background-image: url('../img/scene-06.jpg'); }
.hero-faq .page-hero-bg { background-image: url('../img/hero-08.jpg'); }

/* --- Utility --- */
.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; }

/* --- Responsive --- */
@media (max-width: 768px) {
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.4rem; }

  .header-inner { padding: 0.6rem 1rem; }

  .menu-toggle { display: block; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(254, 252, 248, 0.98);
    backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 1rem;
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow-md);
  }

  .nav-links.active { display: flex; }

  .hero { min-height: 320px; }
  .hero-content { padding: 2rem 1rem; }
  .hero-content h1 { font-size: 2rem; }

  .page-hero { min-height: 180px; }
  .page-hero-content h1 { font-size: 1.6rem; }

  .feature-grid { grid-template-columns: 1fr; }
  .char-grid { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-row { gap: 1.5rem; }
  .guide-step { flex-direction: column; align-items: flex-start; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .hero-content h1 { font-size: 1.6rem; }
  .info-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .review-grid { grid-template-columns: 1fr; }
}
