/* ================================================================
   蛇之交响曲 | Symphony of the Serpent
   Serpentine Elegance Theme
   Emerald scales, obsidian blacks, golden snake-eye motifs,
   sinuous organic curves, light pearl background
   ================================================================ */

:root {
  /* Core palette */
  --pearl: #faf7f2;
  --pearl-dim: #f0ece5;
  --pearl-dark: #e8e3d8;
  --emerald: #2d8a6e;
  --emerald-deep: #1a5c47;
  --emerald-light: #4db892;
  --emerald-glow: #7ed4b0;
  --obsidian: #1a1a1f;
  --obsidian-soft: #2a2a32;
  --obsidian-muted: #3a3a44;
  --gold: #c9a84c;
  --gold-bright: #e0c060;
  --gold-deep: #a07820;
  --gold-glow: #f0d878;

  /* Functional */
  --text-primary: var(--obsidian);
  --text-secondary: #555556;
  --text-muted: #888889;
  --text-light: #aaa;
  --bg-body: var(--pearl);
  --bg-card: #ffffff;
  --bg-section: var(--pearl-dim);
  --bg-dark: var(--obsidian);
  --bg-dark-soft: var(--obsidian-soft);
  --border-subtle: #e0dccf;
  --border-medium: #c8c4b5;
  --accent: var(--emerald);
  --accent-hover: var(--emerald-deep);
  --accent-glow: var(--emerald-glow);
  --cta: var(--gold);
  --cta-hover: var(--gold-bright);
  --cta-text: var(--obsidian);

  /* Typography */
  --font-display: 'Georgia', 'Noto Serif SC', 'SimSun', serif;
  --font-body: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', 'Hiragino Sans GB', sans-serif;

  /* Layout */
  --max-width: 1200px;
  --nav-height: 68px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-sm: 0 1px 3px rgba(26, 26, 31, 0.06);
  --shadow-md: 0 4px 16px rgba(26, 26, 31, 0.08);
  --shadow-lg: 0 8px 32px rgba(26, 26, 31, 0.12);
  --shadow-gold: 0 2px 12px rgba(201, 168, 76, 0.25);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ================================================================
   RESET & BASE
   ================================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--bg-body);
  line-height: 1.75;
  min-height: 100vh;
  overflow-x: hidden;
}

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-display);
  font-weight: 700;
  line-height: 1.3;
  color: var(--obsidian);
}

h1 { font-size: 2.4rem; margin-bottom: 1rem; }
h2 { font-size: 1.8rem; margin-bottom: 0.8rem; }
h3 { font-size: 1.3rem; margin-bottom: 0.6rem; }
h4 { font-size: 1.1rem; margin-bottom: 0.5rem; }

p { margin-bottom: 1rem; }

/* ================================================================
   ORGANIC CURVE DECORATORS
   ================================================================ */
.serpentine-curve-top {
  position: relative;
  overflow: hidden;
}
.serpentine-curve-top::before {
  content: '';
  position: absolute;
  top: 0;
  left: -5%;
  right: -5%;
  height: 60px;
  background: var(--bg-body);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  z-index: 2;
  transform: translateY(-30px);
}

.serpentine-curve-bottom {
  position: relative;
}
.serpentine-curve-bottom::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: -5%;
  right: -5%;
  height: 60px;
  background: var(--bg-body);
  border-radius: 0 0 50% 50% / 0 0 100% 100%;
  z-index: 2;
  transform: translateY(30px);
}

/* Snake-scale border pattern */
.scale-border {
  position: relative;
}
.scale-border::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: repeating-linear-gradient(
    90deg,
    var(--emerald) 0px, var(--emerald) 12px,
    var(--gold) 12px, var(--gold) 14px,
    transparent 14px, transparent 18px
  );
  border-radius: 2px 2px 0 0;
}

/* ================================================================
   NAVIGATION
   ================================================================ */
nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  height: var(--nav-height);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--obsidian);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.nav-logo img {
  height: 36px;
  width: auto;
  border-radius: 4px;
}
.nav-logo:hover { color: var(--emerald); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}
.nav-links a {
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.92rem;
  font-weight: 500;
  transition: all var(--transition);
  position: relative;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--emerald);
  background: rgba(45, 138, 110, 0.06);
}
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 3px;
  background: var(--emerald);
  border-radius: 2px;
}

.nav-cta {
  display: inline-flex !important;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1.4rem !important;
  background: linear-gradient(135deg, var(--cta), var(--cta-hover)) !important;
  color: var(--cta-text) !important;
  border-radius: var(--radius-xl) !important;
  font-weight: 700 !important;
  font-size: 0.9rem !important;
  letter-spacing: 0.03em;
  box-shadow: var(--shadow-gold);
  transition: all var(--transition) !important;
}
.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(201, 168, 76, 0.4);
  color: var(--cta-text) !important;
  background: linear-gradient(135deg, var(--cta-hover), var(--gold-glow)) !important;
}
.nav-cta::before {
  content: '⬇';
  font-size: 0.85rem;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--obsidian);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ================================================================
   HERO
   ================================================================ */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--bg-dark);
}

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

/* Per-page hero backgrounds (no inline styles!) */
.hero-home .hero-bg { background-image: url('../img/header.jpg'); }
.hero-story .hero-bg { background-image: url('../img/screenshot-02.png'); }
.hero-characters .hero-bg { background-image: url('../img/screenshot-03.jpg'); }
.hero-guide .hero-bg { background-image: url('../img/screenshot-01.webp'); }
.hero-faq .hero-bg { background-image: url('../img/screenshot-04.webp'); }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(26, 26, 31, 0.7) 0%,
    rgba(26, 92, 71, 0.5) 50%,
    rgba(26, 26, 31, 0.85) 100%
  );
  z-index: 1;
}

/* Snake-eye motif on hero overlay */
.hero-overlay::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
  width: 80px;
  height: 80px;
  border: 3px solid rgba(201, 168, 76, 0.3);
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  opacity: 0.25;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 5rem 1.5rem 4rem;
  text-align: center;
  color: #ffffff;
}

.hero-badge {
  display: inline-block;
  padding: 0.3rem 1rem;
  background: rgba(201, 168, 76, 0.2);
  border: 1px solid rgba(201, 168, 76, 0.4);
  border-radius: var(--radius-xl);
  color: var(--gold-bright);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 1.2rem;
}

.hero-content h1 {
  font-size: 3rem;
  color: #ffffff;
  text-shadow: 0 2px 20px rgba(0,0,0,0.5);
  margin-bottom: 0.5rem;
  letter-spacing: 0.04em;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 2rem;
  letter-spacing: 0.06em;
}

/* Hero stats */
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}
.hero-stat-value {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--gold-bright);
  font-family: var(--font-display);
}
.hero-stat-label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2.2rem;
  background: linear-gradient(135deg, var(--cta), var(--cta-hover));
  color: var(--cta-text);
  border-radius: var(--radius-xl);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  box-shadow: var(--shadow-gold);
  transition: all var(--transition);
}
.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(201, 168, 76, 0.45);
  color: var(--cta-text);
}

/* Hero scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  cursor: pointer;
  color: rgba(255,255,255,0.5);
  font-size: 0.8rem;
  animation: bounce-down 2s infinite;
}
.hero-scroll-arrow {
  width: 20px;
  height: 20px;
  border-right: 2px solid rgba(255,255,255,0.5);
  border-bottom: 2px solid rgba(255,255,255,0.5);
  transform: rotate(45deg);
}

@keyframes bounce-down {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ================================================================
   SECTIONS
   ================================================================ */
.section {
  padding: 4rem 1.5rem;
}

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

.section-dark {
  background: var(--bg-dark);
  color: #ccc;
}

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

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--emerald);
  margin-bottom: 0.5rem;
}

.section-header h2 {
  position: relative;
  display: inline-block;
  padding-bottom: 0.8rem;
}
.section-header h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--emerald), var(--gold));
  border-radius: 2px;
}

.section-header p {
  color: var(--text-secondary);
  max-width: 650px;
  margin: 0.8rem auto 0;
}

/* ================================================================
   CONTENT PAGE HERO (smaller for subpages)
   ================================================================ */
.page-hero {
  position: relative;
  overflow: hidden;
  background: var(--bg-dark);
}
.page-hero .hero-content {
  padding: 3.5rem 1.5rem 2.5rem;
}
.page-hero h1 {
  font-size: 2.2rem;
}
.page-hero .hero-subtitle {
  font-size: 1rem;
  margin-bottom: 0;
}

/* ================================================================
   FEATURE CARDS
   ================================================================ */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--emerald), var(--gold));
  border-radius: 2px 2px 0 0;
  opacity: 0;
  transition: opacity var(--transition);
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--emerald-light);
}
.feature-card:hover::before { opacity: 1; }

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--emerald), var(--emerald-deep));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
  font-size: 1.4rem;
  color: #fff;
}

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

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  margin: 0;
}

/* ================================================================
   SCREENSHOT GALLERY
   ================================================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.2rem;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  aspect-ratio: 16/9;
}
.gallery-item:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-lg);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.gallery-item:hover img {
  transform: scale(1.08);
}
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26,26,31,0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}
.gallery-overlay::after {
  content: '🔍 查看大图';
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  opacity: 0;
  transform: translateY(8px);
  transition: all var(--transition);
}
.gallery-item:hover .gallery-overlay {
  background: rgba(26,26,31,0.45);
}
.gallery-item:hover .gallery-overlay::after {
  opacity: 1;
  transform: translateY(0);
}

/* ================================================================
   REVIEWS / TESTIMONIALS
   ================================================================ */
.review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
}
.review-stars {
  color: var(--gold);
  font-size: 1rem;
  letter-spacing: 0.15em;
  margin-bottom: 0.8rem;
}
.review-text {
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-style: italic;
  margin-bottom: 1rem;
  line-height: 1.7;
}
.review-author {
  font-weight: 600;
  color: var(--obsidian);
  font-size: 0.9rem;
}

/* ================================================================
   CTA BANNER
   ================================================================ */
.cta-banner {
  background: linear-gradient(135deg, var(--obsidian), var(--emerald-deep));
  text-align: center;
  padding: 3.5rem 1.5rem;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(201, 168, 76, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 50%, rgba(45, 138, 110, 0.12) 0%, transparent 50%);
}
.cta-banner h2 {
  color: #fff;
  font-size: 1.8rem;
  margin-bottom: 0.8rem;
  position: relative;
}
.cta-banner p {
  color: rgba(255,255,255,0.7);
  max-width: 560px;
  margin: 0 auto 1.8rem;
  position: relative;
}
.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2.5rem;
  background: linear-gradient(135deg, var(--cta), var(--cta-hover));
  color: var(--cta-text);
  border-radius: var(--radius-xl);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  box-shadow: var(--shadow-gold);
  transition: all var(--transition);
  position: relative;
}
.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(201, 168, 76, 0.45);
  color: var(--cta-text);
}

/* ================================================================
   GAME INFO TABLE
   ================================================================ */
.info-table {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0;
  max-width: 600px;
  margin: 0 auto;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.info-table dt {
  background: var(--bg-section);
  padding: 0.8rem 1.2rem;
  font-weight: 600;
  color: var(--obsidian);
  font-size: 0.92rem;
  border-bottom: 1px solid var(--border-subtle);
}
.info-table dd {
  padding: 0.8rem 1.2rem;
  color: var(--text-secondary);
  font-size: 0.92rem;
  border-bottom: 1px solid var(--border-subtle);
}
.info-table dt:last-of-type,
.info-table dd:last-of-type {
  border-bottom: none;
}

/* ================================================================
   CONTENT PAGES LAYOUT
   ================================================================ */
.content-page {
  padding: 3rem 1.5rem;
}
.content-inner {
  max-width: 860px;
  margin: 0 auto;
}

.article-section {
  margin-bottom: 2.5rem;
}
.article-section h2 {
  color: var(--emerald-deep);
  border-left: 3px solid var(--gold);
  padding-left: 1rem;
  margin-bottom: 1rem;
}
.article-section p {
  color: var(--text-secondary);
  text-indent: 2em;
}

/* Character cards */
.char-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}
.char-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: all var(--transition);
}
.char-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--emerald-light);
}
.char-card h3 {
  color: var(--emerald-deep);
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
}
.char-card .char-role {
  display: inline-block;
  padding: 0.15rem 0.7rem;
  background: rgba(45, 138, 110, 0.08);
  color: var(--emerald);
  border-radius: var(--radius-xl);
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
}
.char-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin: 0;
}

/* Guide tips */
.tip-box {
  background: linear-gradient(135deg, rgba(45, 138, 110, 0.05), rgba(201, 168, 76, 0.05));
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border-left: 4px solid var(--emerald);
}
.tip-box h3 {
  color: var(--emerald-deep);
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}
.tip-box p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin: 0;
}

/* System requirements box */
.sys-req {
  background: var(--bg-section);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}
.sys-req h3 {
  color: var(--obsidian);
  text-align: center;
  margin-bottom: 1rem;
}
.sys-req-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.8rem;
}
.sys-req-item {
  text-align: center;
  padding: 0.8rem;
}
.sys-req-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}
.sys-req-value {
  font-weight: 600;
  color: var(--obsidian);
  font-size: 0.95rem;
}

/* ================================================================
   FAQ ACCORDION
   ================================================================ */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
}
.faq-item {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  margin-bottom: 0.8rem;
  overflow: hidden;
  background: var(--bg-card);
}
.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 1.2rem 1.5rem;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  color: var(--obsidian);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-body);
  transition: background var(--transition);
}
.faq-question:hover {
  background: rgba(45, 138, 110, 0.03);
}
.faq-question::after {
  content: '+';
  font-size: 1.3rem;
  color: var(--emerald);
  font-weight: 400;
  transition: transform var(--transition);
}
.faq-item.open .faq-question::after {
  content: '−';
  transform: rotate(180deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}
.faq-item.open .faq-answer {
  max-height: 400px;
}
.faq-answer-inner {
  padding: 0 1.5rem 1.2rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.8;
}

/* ================================================================
   LIGHTBOX
   ================================================================ */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(26, 26, 31, 0.92);
  backdrop-filter: blur(8px);
  justify-content: center;
  align-items: center;
  cursor: pointer;
}
.lightbox.active {
  display: flex;
}
.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: var(--radius-md);
  box-shadow: 0 0 60px rgba(0,0,0,0.5);
}
.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
  z-index: 1;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  transition: background var(--transition);
}
.lightbox-close:hover {
  background: rgba(255,255,255,0.2);
}

/* ================================================================
   FOOTER
   ================================================================ */
footer {
  text-align: center;
  padding: 2rem 1.5rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-card);
}
footer p { margin: 0; }

/* ================================================================
   UTILITY
   ================================================================ */
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }

/* ================================================================
   TAGS / BADGES
   ================================================================ */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
}
.tag {
  display: inline-block;
  padding: 0.25rem 0.9rem;
  background: rgba(45, 138, 110, 0.08);
  color: var(--emerald-deep);
  border: 1px solid rgba(45, 138, 110, 0.2);
  border-radius: var(--radius-xl);
  font-size: 0.82rem;
  font-weight: 500;
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(16px);
    flex-direction: column;
    padding: 1rem;
    gap: 0.3rem;
    border-bottom: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-md);
  }
  .nav-links.open { display: flex; }
  .nav-links a { width: 100%; text-align: center; }

  .hero-content { padding: 3rem 1rem 2.5rem; }
  .hero-content h1 { font-size: 2rem; }
  .hero-stats { gap: 1.5rem; }

  .section { padding: 2.5rem 1rem; }
  .feature-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .review-grid { grid-template-columns: 1fr; }
  .char-grid { grid-template-columns: 1fr; }
  .info-table { grid-template-columns: 1fr; }
  .info-table dt {
    border-bottom: none;
    padding-bottom: 0.2rem;
  }

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

@media (max-width: 480px) {
  html { font-size: 15px; }
  .gallery-grid { grid-template-columns: 1fr; }
  .hero-content h1 { font-size: 1.6rem; }
  .hero-stats { gap: 1rem; }
  .hero-stat-value { font-size: 1.3rem; }
}
